Connecting to database specified by database.yml Connecting to database specified by database.yml  (262.8ms) CREATE TABLE `account_domains` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `account_id` int(11), `url` varchar(255), `verified` tinyint(1), `primary` tinyint(1)) ENGINE=InnoDB  (276.3ms) CREATE TABLE `account_roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `account_user_id` int(11)) ENGINE=InnoDB  (118.5ms) CREATE TABLE `account_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `account_id` int(11), `user_id` int(11)) ENGINE=InnoDB  (138.3ms) CREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `name` varchar(255), `subscription_id` int(11), `subdomain` varchar(255)) ENGINE=InnoDB  (131.9ms) CREATE TABLE `api_tokens` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `token` varchar(255), `description` varchar(255), `api_type` varchar(255), `tokenable_id` int(11), `tokenable_type` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (206.2ms) CREATE TABLE `delayed_jobs` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `priority` int(11) DEFAULT 0, `attempts` int(11) DEFAULT 0, `handler` text, `last_error` text, `run_at` datetime, `locked_at` datetime, `failed_at` datetime, `locked_by` varchar(255), `queue` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (201.6ms) CREATE INDEX `delayed_jobs_priority` ON `delayed_jobs` (`priority`, `run_at`)  (142.2ms) CREATE TABLE `social_accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `social_id` int(11), `user_id` int(11), `provider` varchar(255), `token` varchar(255), `secret` varchar(255)) ENGINE=InnoDB  (154.0ms) CREATE TABLE `user_invitations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `invited_by` int(11), `email` varchar(255), `sent_at` datetime, `account_id` int(11), `token` varchar(255), `roles` varchar(255)) ENGINE=InnoDB  (285.5ms) CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `birthdate` date, `name` varchar(255), `locale` varchar(255), `guest` tinyint(1)) ENGINE=InnoDB  (160.4ms) CREATE UNIQUE INDEX `index_users_on_confirmation_token` ON `users` (`confirmation_token`)  (157.0ms) CREATE INDEX `index_users_on_email` ON `users` (`email`)  (150.3ms) CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)  (125.9ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (136.2ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT version FROM `schema_migrations`  (1.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20121108115535')  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120528164634')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120529134109')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120529162901')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120529174755')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120529180814')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120530114709')  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120531171438')  (1.1ms) INSERT INTO `schema_migrations` (version) VALUES ('20120604131034')  (0.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120605142527')  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120612141130')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120613173114')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120615180728')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120629154429')  (1.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20120629195345')  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20120705202827')  (0.6ms) INSERT INTO `schema_migrations` (version) VALUES ('20120716145846')  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120719162426')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120725170859')  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120803172545')  (1.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121023113304')  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (28.3ms) SELECT DATABASE() as db  (1.5ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (21.0ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (9.4ms) TRUNCATE TABLE `account_users`;  (1.1ms) TRUNCATE TABLE `accounts`;  (1.4ms) TRUNCATE TABLE `api_tokens`;  (1.5ms) TRUNCATE TABLE `delayed_jobs`;  (0.7ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (15.9ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 156ms (Views: 81.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:03', '2012-11-28 22:13:03', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:03') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:04', NULL, NULL, NULL, '2012-11-28 22:13:04')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:04', `updated_at` = '2012-11-28 22:13:04', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:04', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 1\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:03.863661000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:03.927689000Z\n updated_at: 2012-11-28 22:13:03.927689000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_1', '2012-12-05 22:13:04', '2012-11-28 22:13:04')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:13:04', `updated_at` = '2012-11-28 22:13:04' WHERE `users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 1121ms (ActiveRecord: 77.8ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 64ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:13:05', 'a6uHuug03C1keIoo9Fv_ljvMcHQ') Sent mail to test@test.test (143ms) Date: Wed, 28 Nov 2012 20:13:05 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68c718ece6_158a80435d484179@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1a6uHuug03C1keIoo9Fv_ljvMcHQ  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:13:05', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:13:05 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68c71ac044_158a80435d48418d4@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 2 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:13:05', '9uhCvDybS7mxpAwqPDLnL4YnUqg') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:13:05 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68c71b2894_158a80435d48419a6@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/39uhCvDybS7mxpAwqPDLnL4YnUqg  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:13:05', 'eD5o5xbs0xEPTlHUK9gZMkTTX_w') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:13:05 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68c71bcd24_158a80435d4842050@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4eD5o5xbs0xEPTlHUK9gZMkTTX_w  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:05', '2012-11-28 22:13:05', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:05') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:05', 'User', '5084fb75ad2f198e3e3f67814ec716e4', 2, 'User', '2012-11-28 22:13:05') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:05', NULL, NULL, NULL, '2012-11-28 22:13:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:05', `updated_at` = '2012-11-28 22:13:05', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 2\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:05.795062000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:05.796073000Z\n updated_at: 2012-11-28 22:13:05.796073000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_2', '2012-12-05 22:13:05', '2012-11-28 22:13:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 2) LIMIT 1  (0.5ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$4nNx1E7IGQ6YsedqmzmMluIXs7lrOMCxkFeJGdLjF/s34C67W7DcC', `updated_at` = '2012-11-28 22:13:05' WHERE `users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:05', '2012-11-28 22:13:05', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:05', 'User', 'b178320ffa3bb1fed588a23fce15bfc7', 3, 'User', '2012-11-28 22:13:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:05', NULL, NULL, NULL, '2012-11-28 22:13:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:05', `updated_at` = '2012-11-28 22:13:05', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 3\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:05.877312000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:05.878077000Z\n updated_at: 2012-11-28 22:13:05.878077000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_3', '2012-12-05 22:13:05', '2012-11-28 22:13:05')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 3) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:05', '2012-11-28 22:13:05', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:05', 'User', '590566ce8b949b1854332f44f97ffca2', 4, 'User', '2012-11-28 22:13:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:05', NULL, NULL, NULL, '2012-11-28 22:13:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:05', `updated_at` = '2012-11-28 22:13:05', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:05.911587000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:05.912479000Z\n updated_at: 2012-11-28 22:13:05.912479000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_4', '2012-12-05 22:13:05', '2012-11-28 22:13:05')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'tR6DHELWMhpetZPs3pGV' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:06', 'tR6DHELWMhpetZPs3pGV', '2012-11-28 22:13:06', '2012-11-28 22:13:06', 'confirmation@skip.test', '$2a$04$.URIysW.G5IFPyBzSfh2IeSFO4cKeW422AJMy/gDI5/uDkTiEHSL6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', '95b6118d928b47b65195e43daf52e5ab', 5, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b68c72b144_158a80435d48421f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'nmLgj7o1sGCtFZFGqY2K' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:06', 'nmLgj7o1sGCtFZFGqY2K', NULL, '2012-11-28 22:13:06', 'confirmation@needed.test', '$2a$04$X.tfA7mVjBC1vZv3K/zb6.yBRhtEXnGM7N2X8qXrGfnmqSGBdmKD.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68c72185fc_158a80435d48422f8@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', '69b1516908041b7ca377caf78ed350c9', 6, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68c7220e02_158a80435d48423c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '57DiixzoTyGGposRXLst' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:06', '57DiixzoTyGGposRXLst', NULL, '2012-11-28 22:13:06', 'reconfirmation@needed.test', '$2a$04$WQKVyjcs49y6IzDkVh11Uuk/NLICbm/C.P74TbcgHC2Ys7dr5ujq.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68c7227ec5_158a80435d48424d6@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', '2115f5fdb6a636a0e61348336eb3db14', 7, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68c723068e_158a80435d48425cb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 7) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:13:06' WHERE `users`.`id` = 7 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'qq5sBFqdASGmHPzBo1yy' LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:13:06', `confirmation_token` = 'qq5sBFqdASGmHPzBo1yy' WHERE `users`.`id` = 7 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b68c72370ab_158a80435d4842656@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'xoQ38x94cyzzAEnY5fvh' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:06', 'xoQ38x94cyzzAEnY5fvh', NULL, '2012-11-28 22:13:06', 'reconfirmation@needed.test', '$2a$04$INluB0sFD76sP9ECHAU22ecrmE77FthQQSXqDzrF2K3rOfUj2e6/S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68c723e009_158a80435d4842751@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', 'c9bb6e76c6db1f5d79687d9c492beec8', 8, 'User', '2012-11-28 22:13:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68c72468e3_158a80435d48428d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 8) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:13:06' WHERE `users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', 'bbf30addfb7614ae56eca3f2eabc2a94', 9, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 9)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 9 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', 'b127690380b94d72c07332f9ca648629', 10, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (10.0ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b68c725c176_158a80435d484294f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 10)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 10 LIMIT 1  (9.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'XQDKB4H94aHczCQLm574' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:06', 'XQDKB4H94aHczCQLm574', NULL, '2012-11-28 22:13:06', 'test@email.test', '$2a$04$Mg.krDRPTzMT7n5TMIEYEOWUH9V7A7iHAfHOm7td.JmOF6XCzK4Ou', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68c7266959_158a80435d484303c@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', '7bdf1d8848e7ad229a5a1626f9c533d7', 11, 'User', '2012-11-28 22:13:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68c726f5fd_158a80435d48431dd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'hCTLRZyCjkmx8vtMn9WN' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:06', 'hCTLRZyCjkmx8vtMn9WN', NULL, '2012-11-28 22:13:06', 'test@email.test', '$2a$04$75iCyF5E4/KeiRGv9vIQE.VJlqlkOFbrVUp0g3y2AU3zF6olGUX9e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') Sent mail to test@email.test (82ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68c7276b0d_158a80435d4843263@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', '3c0b432f4915e8198761257c08a165f3', 12, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 20:13:06 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68c728ea1f_158a80435d48433a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', 'ee8d5a724e44fd3c0b983dad8f8ddf33', 13, 'User', '2012-11-28 22:13:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 13\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:06.608808000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:06.609458000Z\n updated_at: 2012-11-28 22:13:06.609458000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_13', '2012-12-05 22:13:06', '2012-11-28 22:13:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', '9f1d497fbd5a39ece4e2a820ed08d334', 14, 'User', '2012-11-28 22:13:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 14\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:06.634969000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:06.635486000Z\n updated_at: 2012-11-28 22:13:06.635486000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_14', '2012-12-05 22:13:06', '2012-11-28 22:13:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', '3b66ffbfd66b7e8dfbb853e921e5f93e', 15, 'User', '2012-11-28 22:13:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 15\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:06.659803000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:06.660257000Z\n updated_at: 2012-11-28 22:13:06.660257000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_15', '2012-12-05 22:13:06', '2012-11-28 22:13:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', 'a61fd30a9344932800d508a0576d644d', 16, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 16) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 16\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:06.684109000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:06.684722000Z\n updated_at: 2012-11-28 22:13:06.684722000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_16', '2012-12-05 22:13:06', '2012-11-28 22:13:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', '93388e50245d9f73ef3b3b412362aefd', 17, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 17\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:06.708391000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:06.708852000Z\n updated_at: 2012-11-28 22:13:06.708852000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_17', '2012-12-05 22:13:06', '2012-11-28 22:13:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', 'd0e7b62efa11628f631055f561ae9df6', 18, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 18\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:06.733939000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:06.734368000Z\n updated_at: 2012-11-28 22:13:06.734368000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_18', '2012-12-05 22:13:06', '2012-11-28 22:13:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', 'd4d54ccc4abab2f37e54c33f475881cb', 19, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account18' WHERE `accounts`.`id` = 18 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 19\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:06.759308000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:06.759925000Z\n updated_at: 2012-11-28 22:13:06.759925000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_19', '2012-12-05 22:13:06', '2012-11-28 22:13:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:06', '2012-11-28 22:13:06', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:06', 'User', 'd2d77258077acdd95c644921a2c2b9a7', 20, 'User', '2012-11-28 22:13:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:06', NULL, NULL, NULL, '2012-11-28 22:13:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:06', `updated_at` = '2012-11-28 22:13:06', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 20\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:06.782957000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:06.783402000Z\n updated_at: 2012-11-28 22:13:06.783402000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_20', '2012-12-05 22:13:06', '2012-11-28 22:13:06')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (24.0ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (6.7ms) TRUNCATE TABLE `account_users`;  (6.8ms) TRUNCATE TABLE `accounts`;  (1.3ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 154ms (Views: 78.1ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:45', '2012-11-28 22:13:45', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:45') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:45', NULL, NULL, NULL, '2012-11-28 22:13:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:45', `updated_at` = '2012-11-28 22:13:45', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 1\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:45.346700000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:45.354171000Z\n updated_at: 2012-11-28 22:13:45.354171000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_1', '2012-12-05 22:13:45', '2012-11-28 22:13:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:13:45', `updated_at` = '2012-11-28 22:13:45' WHERE `users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 453ms (ActiveRecord: 21.1ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 63ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:13:46', 'CycMbw0qs4zeGDjmeWywQ5Q168k') Sent mail to test@test.test (139ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68c9a4ae6b_15a880435d4814360@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1CycMbw0qs4zeGDjmeWywQ5Q168k  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:13:46', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68c9a67c39_15a880435d4814455@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.5ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 2 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:13:46', 'QJXP3UvEJbmD84mtZ8bV2u4rVR4') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68c9a6e2aa_15a880435d4814548@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3QJXP3UvEJbmD84mtZ8bV2u4rVR4  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:13:46', 'p0nMNUSFLiy-fVp4OF_sg7q7Q1k') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68c9a77f2a_15a880435d48146ca@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4p0nMNUSFLiy-fVp4OF_sg7q7Q1k  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:46', '2012-11-28 22:13:46', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:46') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:46', 'User', '93bb7be53f4512513812b1fff427f457', 2, 'User', '2012-11-28 22:13:46') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:46', NULL, NULL, NULL, '2012-11-28 22:13:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:46', `updated_at` = '2012-11-28 22:13:46', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 2\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:46.512124000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:46.512945000Z\n updated_at: 2012-11-28 22:13:46.512945000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_2', '2012-12-05 22:13:46', '2012-11-28 22:13:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 2) LIMIT 1  (0.5ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$Swqaj1AWf42cIwu//ZuWRuyVn.4GO4ckL6ZCpMoZiiJBsSTfLIuTy', `updated_at` = '2012-11-28 22:13:46' WHERE `users`.`id` = 2  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:46', '2012-11-28 22:13:46', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:46', 'User', 'eddc2763608068e92c47d7b21692026f', 3, 'User', '2012-11-28 22:13:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:46', NULL, NULL, NULL, '2012-11-28 22:13:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:46', `updated_at` = '2012-11-28 22:13:46', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 3\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:46.591426000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:46.592214000Z\n updated_at: 2012-11-28 22:13:46.592214000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_3', '2012-12-05 22:13:46', '2012-11-28 22:13:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 3) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:46', '2012-11-28 22:13:46', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:46', 'User', '8d82687caa598609261450ccda9f1e00', 4, 'User', '2012-11-28 22:13:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:46', NULL, NULL, NULL, '2012-11-28 22:13:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:46', `updated_at` = '2012-11-28 22:13:46', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:46.625468000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:46.626280000Z\n updated_at: 2012-11-28 22:13:46.626280000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_4', '2012-12-05 22:13:46', '2012-11-28 22:13:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'LrtbqsMkeBjmbZsqtXsV' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:46', 'LrtbqsMkeBjmbZsqtXsV', '2012-11-28 22:13:46', '2012-11-28 22:13:46', 'confirmation@skip.test', '$2a$04$RtvC8/hUCYo0WgKJ.oeyBuBWtTlewY5wETosBQDGpTx1kH7CtcnM.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:46', 'User', '8324d3cba5738fc34ce2c4aa9cfffe8e', 5, 'User', '2012-11-28 22:13:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:46', NULL, NULL, NULL, '2012-11-28 22:13:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:46', `updated_at` = '2012-11-28 22:13:46', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b68c9ab9b23_15a880435d4814751@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'mL8dZMx5JmffwdSWQZWz' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:46', 'mL8dZMx5JmffwdSWQZWz', NULL, '2012-11-28 22:13:46', 'confirmation@needed.test', '$2a$04$kaBdr4GMSXLxCKgLAupSve3oii1HmYzbyzw4y4t90UVkTuBnOFC7q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:46') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68c9ac29f7_15a880435d48148a1@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:46', 'User', '7c98b2216647c7b5486ba97ee18c03b7', 6, 'User', '2012-11-28 22:13:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:46', NULL, NULL, NULL, '2012-11-28 22:13:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:46', `updated_at` = '2012-11-28 22:13:46', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68c9acb18c_15a880435d481490@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '2iMu8qYk3pz1RZ9b8MP6' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:46', '2iMu8qYk3pz1RZ9b8MP6', NULL, '2012-11-28 22:13:46', 'reconfirmation@needed.test', '$2a$04$65/Ml3qZnIVi3rV5A1JbxOvDLg9UYpMSBoeNki93X0xDh4E5SWIcy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:46') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68c9ad2464_15a880435d4815087@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:46', 'User', '0396ce27a6b36c2eba20382887b1e085', 7, 'User', '2012-11-28 22:13:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:46', NULL, NULL, NULL, '2012-11-28 22:13:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:46', `updated_at` = '2012-11-28 22:13:46', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68c9adaffe_15a880435d481516a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 7) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:13:46' WHERE `users`.`id` = 7 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'r3nxypS8ojMpMyYN3UVo' LIMIT 1  (0.3ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:13:46', `confirmation_token` = 'r3nxypS8ojMpMyYN3UVo' WHERE `users`.`id` = 7 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b68c9ae16cc_15a880435d48152f9@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'n7Xm43bnx2RKoRhtUR2y' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:46', 'n7Xm43bnx2RKoRhtUR2y', NULL, '2012-11-28 22:13:46', 'reconfirmation@needed.test', '$2a$04$Kt6GGV6o44GntdCZT8jMl.AmtSpEoEDkjnjZgwvvQ9vaprhuN90hu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:46') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68c9ae8772_15a880435d48153a1@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:46', 'User', '6b5d8f2e04989eee441218bc96590f1a', 8, 'User', '2012-11-28 22:13:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:46', NULL, NULL, NULL, '2012-11-28 22:13:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:46', `updated_at` = '2012-11-28 22:13:46', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:13:46 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68c9af1502_15a880435d4815426@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 8) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:13:47' WHERE `users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', 'efa5738507615ec068498ef476a0d164', 9, 'User', '2012-11-28 22:13:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 9)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 9 LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '128b8ca79b6c470f8687daedfa96fd04', 10, 'User', '2012-11-28 22:13:47') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 10) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:13:47 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b68c9bfdd7_15a880435d48155e9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 10)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 10 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'Am6xeaxEd1cWz6XhTXz4' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:47', 'Am6xeaxEd1cWz6XhTXz4', NULL, '2012-11-28 22:13:47', 'test@email.test', '$2a$04$nKsCNCf7Wm/mDGkKgk00weKaE.NbFOlzzNoSWYd5K0Vraojl2YcRu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:13:47 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68c9b186b2_15a880435d48156b3@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '49676c2d69516ad4d0b29234d866356b', 11, 'User', '2012-11-28 22:13:47') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:13:47 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68c9b214b9_15a880435d48157b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11  (9.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '7amPHgPhHXchTNkmyf6F' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:13:47', '7amPHgPhHXchTNkmyf6F', NULL, '2012-11-28 22:13:47', 'test@email.test', '$2a$04$Ey4vp5i444cIzeh.MhI4Ae859.TQDGkibvwv/6sfU/PCGHN2yBli2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') Sent mail to test@email.test (83ms) Date: Wed, 28 Nov 2012 20:13:47 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68c9b3d5f1_15a880435d4815818@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '545eaa68676aa7f14d8638317340ed18', 12, 'User', '2012-11-28 22:13:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:13:47 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68c9b42b9e_15a880435d481598e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '5df3df8ca1a54c18172fc813a42c0dc6', 13, 'User', '2012-11-28 22:13:47') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 13\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:47.294504000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:47.295032000Z\n updated_at: 2012-11-28 22:13:47.295032000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_13', '2012-12-05 22:13:47', '2012-11-28 22:13:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '2899f32819dfdcb642c87f0f635b576d', 14, 'User', '2012-11-28 22:13:47') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 14) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 14\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:47.320067000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:47.320573000Z\n updated_at: 2012-11-28 22:13:47.320573000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_14', '2012-12-05 22:13:47', '2012-11-28 22:13:47')  (0.2ms) RELEASE SAVEPOINT active_record_1  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', 'db61d8e0d42b19e05d2d64acb2276719', 15, 'User', '2012-11-28 22:13:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 15\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:47.346780000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:47.347415000Z\n updated_at: 2012-11-28 22:13:47.347415000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_15', '2012-12-05 22:13:47', '2012-11-28 22:13:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '0c2e7a78c5bc9043b112067d28c9e533', 16, 'User', '2012-11-28 22:13:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 16) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 16\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:47.373259000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:47.373732000Z\n updated_at: 2012-11-28 22:13:47.373732000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_16', '2012-12-05 22:13:47', '2012-11-28 22:13:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '922b1c20f82eb05856b2d96d3c0e0ca2', 17, 'User', '2012-11-28 22:13:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 17\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:47.397545000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:47.398181000Z\n updated_at: 2012-11-28 22:13:47.398181000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_17', '2012-12-05 22:13:47', '2012-11-28 22:13:47')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '1f286e32fc88e4746f57724baf982a3d', 18, 'User', '2012-11-28 22:13:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 18) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 18\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:47.422558000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:47.423024000Z\n updated_at: 2012-11-28 22:13:47.423024000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_18', '2012-12-05 22:13:47', '2012-11-28 22:13:47')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '19f8dc41d4b8ae0460bbd8419017c435', 19, 'User', '2012-11-28 22:13:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account18' WHERE `accounts`.`id` = 18 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 19\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:47.446756000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:47.447217000Z\n updated_at: 2012-11-28 22:13:47.447217000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_19', '2012-12-05 22:13:47', '2012-11-28 22:13:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:13:47', '2012-11-28 22:13:47', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:13:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:13:47', 'User', '9734fe777c08169f497e1249afc30d01', 20, 'User', '2012-11-28 22:13:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:13:47', NULL, NULL, NULL, '2012-11-28 22:13:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:13:47', `updated_at` = '2012-11-28 22:13:47', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:13:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 20\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:13:47.470103000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:13:47.470562000Z\n updated_at: 2012-11-28 22:13:47.470562000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_20', '2012-12-05 22:13:47', '2012-11-28 22:13:47')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `delayed_jobs`  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.3ms) TRUNCATE TABLE `account_domains`;  (0.7ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.4ms) TRUNCATE TABLE `delayed_jobs`;  (0.8ms) TRUNCATE TABLE `social_accounts`;  (1.7ms) TRUNCATE TABLE `user_invitations`;  (39.9ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (20.0ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 154ms (Views: 78.8ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:42', '2012-11-28 22:15:42', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:42') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:42', NULL, NULL, NULL, '2012-11-28 22:15:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:42', `updated_at` = '2012-11-28 22:15:42', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 1\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:42.104499000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:42.111651000Z\n updated_at: 2012-11-28 22:15:42.111651000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_1', '2012-12-05 22:15:42', '2012-11-28 22:15:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:15:42', `updated_at` = '2012-11-28 22:15:42' WHERE `users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 455ms (ActiveRecord: 22.4ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 339ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:15:43', 'AWsbprKFlzuy3zrP-4vt30VX5-Y') Sent mail to test@test.test (142ms) Date: Wed, 28 Nov 2012 20:15:43 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68d0f634f4_166380435d48154bc@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1AWsbprKFlzuy3zrP-4vt30VX5-Y  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:15:43', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:15:43 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68d0f80723_166380435d481558e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 2 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:15:43', 'EZOAwUaGTv9wwZboN2XfGd9CUZE') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:15:43 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68d0f86c4e_166380435d481567e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3EZOAwUaGTv9wwZboN2XfGd9CUZE  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:15:43', '6Hh3vZGBovDL28t-hH57oE9gIMs') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:15:43 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68d0f90a83_166380435d4815796@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/46Hh3vZGBovDL28t-hH57oE9gIMs  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:43', '2012-11-28 22:15:43', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:43', 'User', '3385d4fe4f7e8296cd805b0e8ae487e5', 2, 'User', '2012-11-28 22:15:43') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:43', NULL, NULL, NULL, '2012-11-28 22:15:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:43', `updated_at` = '2012-11-28 22:15:43', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 2\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:43.615106000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:43.616083000Z\n updated_at: 2012-11-28 22:15:43.616083000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_2', '2012-12-05 22:15:43', '2012-11-28 22:15:43')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 2) LIMIT 1  (0.5ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$Eaqc4M.gxHYFZnt3FiZwa.WfvagkzKx50vBhMwNfLyvtd/ay8tKHq', `updated_at` = '2012-11-28 22:15:43' WHERE `users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:43', '2012-11-28 22:15:43', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:43') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:43', 'User', 'c83607147e3a996e38dc4df4bf07981e', 3, 'User', '2012-11-28 22:15:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:43', NULL, NULL, NULL, '2012-11-28 22:15:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:43', `updated_at` = '2012-11-28 22:15:43', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 3\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:43.693757000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:43.694515000Z\n updated_at: 2012-11-28 22:15:43.694515000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_3', '2012-12-05 22:15:43', '2012-11-28 22:15:43')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 3) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:43', '2012-11-28 22:15:43', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:43', 'User', 'e6e42a0726840b111a412ff57fd330ba', 4, 'User', '2012-11-28 22:15:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:43', NULL, NULL, NULL, '2012-11-28 22:15:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:43', `updated_at` = '2012-11-28 22:15:43', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:43.728142000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:43.729369000Z\n updated_at: 2012-11-28 22:15:43.729369000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_4', '2012-12-05 22:15:43', '2012-11-28 22:15:43')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'zpyqLFvpkxEhEaydaqnM' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:15:43', 'zpyqLFvpkxEhEaydaqnM', '2012-11-28 22:15:43', '2012-11-28 22:15:43', 'confirmation@skip.test', '$2a$04$ab3gd87627wzmgExF4fwjeBGKq/x57KutQWr7EY7M2LpUqQEZ4ahG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:15:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:43', 'User', '63237342bebaa48657bbc53204c919fd', 5, 'User', '2012-11-28 22:15:43') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:43', NULL, NULL, NULL, '2012-11-28 22:15:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:43', `updated_at` = '2012-11-28 22:15:43', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 20:15:43 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b68d0fd345a_166380435d48158e9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'siXxUJJ339XSEsQPoyXq' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:15:43', 'siXxUJJ339XSEsQPoyXq', NULL, '2012-11-28 22:15:43', 'confirmation@needed.test', '$2a$04$ZGWEdcEDzM1LuTqBIIciyu8toWMeo4p3XnLsMhsU.npVmZ8YHRxtm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:15:43') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:15:43 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68d0fdc41f_166380435d48159c9@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:43', 'User', 'a7aa0f7445cfed8be0249b7481e15ffa', 6, 'User', '2012-11-28 22:15:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:43', NULL, NULL, NULL, '2012-11-28 22:15:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:43', `updated_at` = '2012-11-28 22:15:43', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:15:43 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68d0fe4d9a_166380435d4816090@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '6uqhvkBgU6pnhJRxarzY' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:15:43', '6uqhvkBgU6pnhJRxarzY', NULL, '2012-11-28 22:15:43', 'reconfirmation@needed.test', '$2a$04$cDpTeFbBZ5AnMZRQ5cYVGOWmp2nebDcyhytJSCWHtglTzkUpdyKY.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:15:43') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:15:43 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68d0febfdc_166380435d481619e@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:43', 'User', '2e72b8dd2269a5d125b9f5cd9e23dd72', 7, 'User', '2012-11-28 22:15:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:43', NULL, NULL, NULL, '2012-11-28 22:15:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:43', `updated_at` = '2012-11-28 22:15:43', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68d10874_166380435d48162f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 7) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:15:44' WHERE `users`.`id` = 7 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '3WPz6y3gxFsrK2m8hYpx' LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:15:44', `confirmation_token` = '3WPz6y3gxFsrK2m8hYpx', `confirmation_sent_at` = '2012-11-28 22:15:44' WHERE `users`.`id` = 7 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b68d107082_166380435d481637a@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'K8vTBsz2kD81U1kxKwYh' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:15:44', 'K8vTBsz2kD81U1kxKwYh', NULL, '2012-11-28 22:15:44', 'reconfirmation@needed.test', '$2a$04$HQ0iViNu5j94.VT5nXCeSulqRrb6scscbV8NUCa4NLEVkaRidL0Zi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68d10df91_166380435d4816449@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', 'b09a5b2b401c80d82df1e397b6ec5bb7', 8, 'User', '2012-11-28 22:15:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68d1016a8c_166380435d48165f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 8) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:15:44' WHERE `users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', '48e2fe0e547dd16d3f7608c0fdd17a7e', 9, 'User', '2012-11-28 22:15:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 9)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 9 LIMIT 1  (4.4ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', '5159ab07af3fbf93bc07845926ff986b', 10, 'User', '2012-11-28 22:15:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b68d102a670_166380435d48166fb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 10)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 10 LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'nVEBkZxyPdu5MdydKNH7' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:15:44', 'nVEBkZxyPdu5MdydKNH7', NULL, '2012-11-28 22:15:44', 'test@email.test', '$2a$04$4NV/huTYHqkRYJ8p/3dHX.WZ37PbEJVJXbh6msThmy7S6CMBV2Qr2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68d1032ea5_166380435d48167df@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', 'e75103b498e8ddb88c638b32a6228cc6', 11, 'User', '2012-11-28 22:15:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 11) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68d103b6c4_166380435d4816874@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '8ZaMzhWsNAopdmkN9F56' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:15:44', '8ZaMzhWsNAopdmkN9F56', NULL, '2012-11-28 22:15:44', 'test@email.test', '$2a$04$GOl/MU7r6N2X3c4Fu5Vw0.I5Z.sjOtIcguPqxF8miu2yn6xSQJjki', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68d1043f0f_166380435d48169c8@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', 'baa1979ce2a96fa8f8347699028272e6', 12, 'User', '2012-11-28 22:15:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 20:15:44 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68d1049768_166380435d4817098@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', '20560e5508d405b3766ec53ab748bbb4', 13, 'User', '2012-11-28 22:15:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 13\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:44.399114000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:44.399872000Z\n updated_at: 2012-11-28 22:15:44.399872000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_13', '2012-12-05 22:15:44', '2012-11-28 22:15:44')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', '6553c8ac32c65270d13d277cd0fb4812', 14, 'User', '2012-11-28 22:15:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 14\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:44.425621000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:44.426063000Z\n updated_at: 2012-11-28 22:15:44.426063000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_14', '2012-12-05 22:15:44', '2012-11-28 22:15:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', '802ffbdec36daeae510a9972949e1f67', 15, 'User', '2012-11-28 22:15:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 15\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:44.457846000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:44.458337000Z\n updated_at: 2012-11-28 22:15:44.458337000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_15', '2012-12-05 22:15:44', '2012-11-28 22:15:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', 'dd4459a79464d170b0bcd92773124a72', 16, 'User', '2012-11-28 22:15:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 16\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:44.481821000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:44.482452000Z\n updated_at: 2012-11-28 22:15:44.482452000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_16', '2012-12-05 22:15:44', '2012-11-28 22:15:44')  (0.2ms) RELEASE SAVEPOINT active_record_1  (9.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', '8ef38632b6bc56f72cdce0445188218d', 17, 'User', '2012-11-28 22:15:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 17\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:44.516346000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:44.517022000Z\n updated_at: 2012-11-28 22:15:44.517022000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_17', '2012-12-05 22:15:44', '2012-11-28 22:15:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', 'a127e22d67bc88cefea6708e26c58006', 18, 'User', '2012-11-28 22:15:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 18\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:44.540524000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:44.540983000Z\n updated_at: 2012-11-28 22:15:44.540983000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_18', '2012-12-05 22:15:44', '2012-11-28 22:15:44')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', '59529b615ab00d94708e997176f112ed', 19, 'User', '2012-11-28 22:15:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account18' WHERE `accounts`.`id` = 18 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 19) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 19\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:44.565473000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:44.566045000Z\n updated_at: 2012-11-28 22:15:44.566045000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_19', '2012-12-05 22:15:44', '2012-11-28 22:15:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:15:44', '2012-11-28 22:15:44', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:15:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:15:44', 'User', '4f4462923521cee4d0b6bd326bc8e098', 20, 'User', '2012-11-28 22:15:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:15:44', NULL, NULL, NULL, '2012-11-28 22:15:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:15:44', `updated_at` = '2012-11-28 22:15:44', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 20) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:15:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 20\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:15:44.588488000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:15:44.588915000Z\n updated_at: 2012-11-28 22:15:44.588915000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_20', '2012-12-05 22:15:44', '2012-11-28 22:15:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (19.9ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (1.1ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.7ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 94ms (Views: 78.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:07', '2012-11-28 22:16:07', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:07') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:07', NULL, NULL, NULL, '2012-11-28 22:16:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:07', `updated_at` = '2012-11-28 22:16:07', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 1\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:07.476077000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:07.483456000Z\n updated_at: 2012-11-28 22:16:07.483456000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_1', '2012-12-05 22:16:07', '2012-11-28 22:16:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:16:07', `updated_at` = '2012-11-28 22:16:07' WHERE `users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 452ms (ActiveRecord: 20.6ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 3ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:16:08', 'e7H1rXBvAw-MmI2K5J3H1jvQais') Sent mail to test@test.test (140ms) Date: Wed, 28 Nov 2012 20:16:08 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68d2879753_166e80435d488128b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1e7H1rXBvAw-MmI2K5J3H1jvQais  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:16:08', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:16:08 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68d2887af9_166e80435d488134b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 2 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:16:08', 'jG9UtODNoMjT9BPa0mutztT-Dxg') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:16:08 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68d288e186_166e80435d488148f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3jG9UtODNoMjT9BPa0mutztT-Dxg  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:16:08', 'lFQfYswUKAJ6PYZ4d5Au7F5kYl4') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:16:08 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68d2898191_166e80435d488157@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4lFQfYswUKAJ6PYZ4d5Au7F5kYl4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:08', '2012-11-28 22:16:08', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:08') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:08', 'User', '7f7d674762ccda8a5c3bab148f12590b', 2, 'User', '2012-11-28 22:16:08') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:08', NULL, NULL, NULL, '2012-11-28 22:16:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:08', `updated_at` = '2012-11-28 22:16:08', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:08', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 2\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:08.644986000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:08.645815000Z\n updated_at: 2012-11-28 22:16:08.645815000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_2', '2012-12-05 22:16:08', '2012-11-28 22:16:08')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 2) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$u9Jq/IJHZXwGwyJnq.dqeeQnsdB/DPT7FlU.2Vx.Ras6r1d4aHFH2', `updated_at` = '2012-11-28 22:16:08' WHERE `users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:08', '2012-11-28 22:16:08', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:08', 'User', 'd04b9ef152a5d06714efae0b81286922', 3, 'User', '2012-11-28 22:16:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:08', NULL, NULL, NULL, '2012-11-28 22:16:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:08', `updated_at` = '2012-11-28 22:16:08', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:08', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 3\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:08.788087000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:08.788826000Z\n updated_at: 2012-11-28 22:16:08.788826000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_3', '2012-12-05 22:16:08', '2012-11-28 22:16:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 3) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:08', '2012-11-28 22:16:08', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:08', 'User', '7ae44d0b921c7ab8fa339ccecc0c1e0c', 4, 'User', '2012-11-28 22:16:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:08', NULL, NULL, NULL, '2012-11-28 22:16:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:08', `updated_at` = '2012-11-28 22:16:08', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:08', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:08.822346000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:08.823485000Z\n updated_at: 2012-11-28 22:16:08.823485000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_4', '2012-12-05 22:16:08', '2012-11-28 22:16:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'mmvK5s85A2PBbdXjHdus' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:16:08', 'mmvK5s85A2PBbdXjHdus', '2012-11-28 22:16:08', '2012-11-28 22:16:08', 'confirmation@skip.test', '$2a$04$6K20Xuq3A4cfXlFHfEldeOSAQ3Z9z4nsKxs4xeT9ZFfiYXtm0sTTS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:16:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:08', 'User', 'e706a510b0ad077b0eee66f6d6e1bf20', 5, 'User', '2012-11-28 22:16:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:08', NULL, NULL, NULL, '2012-11-28 22:16:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:08', `updated_at` = '2012-11-28 22:16:08', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 20:16:08 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b68d28da027_166e80435d48816a0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'nt4kHZYB6cJeGdSd9QbX' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:16:08', 'nt4kHZYB6cJeGdSd9QbX', NULL, '2012-11-28 22:16:08', 'confirmation@needed.test', '$2a$04$sAoOygqP3KuYzOBLXmDEAuBIIikTp/WC02fbhAXwhhBm1lSJwmn0y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:16:08') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:16:08 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68d28e318c_166e80435d48817ed@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:08', 'User', '4ddf834e31eef73e6572da26ce84ed55', 6, 'User', '2012-11-28 22:16:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:08', NULL, NULL, NULL, '2012-11-28 22:16:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:08', `updated_at` = '2012-11-28 22:16:08', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:16:08 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68d28ebadf_166e80435d488184c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'WwSkajQxnrNWQ6SjCUzJ' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:16:08', 'WwSkajQxnrNWQ6SjCUzJ', NULL, '2012-11-28 22:16:08', 'reconfirmation@needed.test', '$2a$04$W4i1qSbfbJOuuA/V9e3V0.Oon/3RQZtSY7d/N4A5PHfcnIjF9HvUi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:16:08') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:16:08 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68d28f2aac_166e80435d4881988@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', '7dcb15d0b53bca1d4b67093bef4ce494', 7, 'User', '2012-11-28 22:16:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68d2974e5_166e80435d4882030@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 7) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:16:09' WHERE `users`.`id` = 7 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'kXD1fqndAxFm3GzeMwgE' LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:16:09', `confirmation_token` = 'kXD1fqndAxFm3GzeMwgE', `confirmation_sent_at` = '2012-11-28 22:16:09' WHERE `users`.`id` = 7 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b68d29dcd9_166e80435d488219c@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'syQrkSHtvuGsZwiH6ypQ' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:16:09', 'syQrkSHtvuGsZwiH6ypQ', NULL, '2012-11-28 22:16:09', 'reconfirmation@needed.test', '$2a$04$u1BNzLJyECL0HMulaTJMz.J2wuZgxs7fWCLSw3iMZ..07Onyrz6Ba', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68d2914ca5_166e80435d4882286@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', '062e35c5f432a85663e8ec255f83a933', 8, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68d291d919_166e80435d488231f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 8) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:16:09' WHERE `users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', '995f5d15a5a30fb4a21bea135fc1d407', 9, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 9)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 9 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', '495169259af46952e6e558cc6aac237d', 10, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 10) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b68d2932305_166e80435d4882469@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 10)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 10 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'GfGpAazynsQYfxCnxtNF' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:16:09', 'GfGpAazynsQYfxCnxtNF', NULL, '2012-11-28 22:16:09', 'test@email.test', '$2a$04$w4JVqH9RKT1/Ywbw1fEb3.fNtyB9k0hHf84Ez/.vurDHgbsiV6k92', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68d293b9c2_166e80435d48825b1@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.5ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', 'b251ad9499351a5052bb9cd43f7ffe73', 11, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin') Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68d2957195_166e80435d4882690@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '816HPVm5e58epXJfa1FK' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:16:09', '816HPVm5e58epXJfa1FK', NULL, '2012-11-28 22:16:09', 'test@email.test', '$2a$04$Eu5FnJ7yN/DH6jjBlFKGFO1oy/WNU3.oVDIEONFWqZroyKII.lgnO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68d295eaf7_166e80435d4882788@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', 'aafd17c92c63d1c02f23fb3b5fa9b865', 12, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:16:09 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68d296405f_166e80435d48828db@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', 'fc1a006215941b656dae59820a0a706a', 13, 'User', '2012-11-28 22:16:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 13\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:09.431366000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:09.432139000Z\n updated_at: 2012-11-28 22:16:09.432139000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_13', '2012-12-05 22:16:09', '2012-11-28 22:16:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', 'f2702a04c503955cdc1e8f757f678682', 14, 'User', '2012-11-28 22:16:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 14\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:09.456846000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:09.457334000Z\n updated_at: 2012-11-28 22:16:09.457334000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_14', '2012-12-05 22:16:09', '2012-11-28 22:16:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', 'deec845c47d336a15b1aca1461683ea9', 15, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 15\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:09.480417000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:09.481045000Z\n updated_at: 2012-11-28 22:16:09.481045000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_15', '2012-12-05 22:16:09', '2012-11-28 22:16:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', '7577fa68f3314c249ef4b457495f7aee', 16, 'User', '2012-11-28 22:16:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 16\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:09.505093000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:09.505555000Z\n updated_at: 2012-11-28 22:16:09.505555000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_16', '2012-12-05 22:16:09', '2012-11-28 22:16:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', '48951a9c9d7b7c99380ce8c82936b13d', 17, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 17) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 17\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:09.529179000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:09.529705000Z\n updated_at: 2012-11-28 22:16:09.529705000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_17', '2012-12-05 22:16:09', '2012-11-28 22:16:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (3.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', 'e5647dad5671f861db8e733a187598c8', 18, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 18\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:09.556771000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:09.557182000Z\n updated_at: 2012-11-28 22:16:09.557182000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_18', '2012-12-05 22:16:09', '2012-11-28 22:16:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', 'd03c67f2c39480f3b0db0f45287e62ed', 19, 'User', '2012-11-28 22:16:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account18' WHERE `accounts`.`id` = 18 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 19) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 19\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:09.580936000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:09.581385000Z\n updated_at: 2012-11-28 22:16:09.581385000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_19', '2012-12-05 22:16:09', '2012-11-28 22:16:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:16:09', '2012-11-28 22:16:09', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:16:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:16:09', 'User', '4679fe8c1f4b22d932ed441631bd1039', 20, 'User', '2012-11-28 22:16:09') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:16:09', NULL, NULL, NULL, '2012-11-28 22:16:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:16:09', `updated_at` = '2012-11-28 22:16:09', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:16:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 20\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:16:09.604717000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:16:09.605169000Z\n updated_at: 2012-11-28 22:16:09.605169000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_20', '2012-12-05 22:16:09', '2012-11-28 22:16:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateAccount (20120528164634)  (0.6ms) CREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Mysql2::Error: Table 'accounts' already exists: CREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.6ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (27.1ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (1.2ms) TRUNCATE TABLE `account_users`;  (1.1ms) TRUNCATE TABLE `accounts`;  (0.8ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (1.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 158ms (Views: 141.3ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:28', '2012-11-28 22:18:28', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:28') SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:28', NULL, NULL, NULL, '2012-11-28 22:18:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:28', `updated_at` = '2012-11-28 22:18:28', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 1\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:28.561888000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:28.569228000Z\n updated_at: 2012-11-28 22:18:28.569228000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_1', '2012-12-05 22:18:28', '2012-11-28 22:18:28')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:18:28', `updated_at` = '2012-11-28 22:18:28' WHERE `users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 520ms (ActiveRecord: 21.4ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 340ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:18:29', 'PCtDN5_JkRY6ID3lD5_heBK6-fo') Sent mail to test@test.test (79ms) Date: Wed, 28 Nov 2012 20:18:29 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68db5d52d2_173780435d4857846@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1PCtDN5_JkRY6ID3lD5_heBK6-fo  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:18:29', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:18:29 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68db5f1cd8_173780435d48579fc@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 2 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:18:30', 'NLYg3mSRjuU2woX-3WjFB8V12i0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68db64095_173780435d4858045@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3NLYg3mSRjuU2woX-3WjFB8V12i0  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:18:30', 'HDNZ-hOnMDDMFQSYqBEOoIF2Ezs') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68db6e4dc_173780435d485813c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4HDNZ-hOnMDDMFQSYqBEOoIF2Ezs  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '6f0db1909dfc81d86394e0a79ee53287', 2, 'User', '2012-11-28 22:18:30') ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:30', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 2\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:30.080755000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:30.081751000Z\n updated_at: 2012-11-28 22:18:30.081751000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_2', '2012-12-05 22:18:30', '2012-11-28 22:18:30')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 2) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$mbG6JVRD/pThucnFKyESduqqtyJ6Yt2UMm.d3yPyCB5c4KHs4QJU6', `updated_at` = '2012-11-28 22:18:30' WHERE `users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', 'd4ed824c4633e8f9ec91e123af96bc13', 3, 'User', '2012-11-28 22:18:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:30', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 3\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:30.161350000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:30.162112000Z\n updated_at: 2012-11-28 22:18:30.162112000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_3', '2012-12-05 22:18:30', '2012-11-28 22:18:30')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 3) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '496bc99098fb365ed844ebfde7e412c6', 4, 'User', '2012-11-28 22:18:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:30', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:30.195505000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:30.196669000Z\n updated_at: 2012-11-28 22:18:30.196669000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_4', '2012-12-05 22:18:30', '2012-11-28 22:18:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (7.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'mAt76vsge5jGcZBzVLde' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:18:30', 'mAt76vsge5jGcZBzVLde', '2012-11-28 22:18:30', '2012-11-28 22:18:30', 'confirmation@skip.test', '$2a$04$tcVZv3DH7iZRZ6xD224azudilqx18K0T7DsKEKg2tvJkvtyxxGev.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '9e48eea370e5e7592d1c57e39d68de94', 5, 'User', '2012-11-28 22:18:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin') Sent mail to confirmation@skip.test (7ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b68db642608_173780435d485829d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'DWE1Kwa86Vw8pCTpiupi' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:18:30', 'DWE1Kwa86Vw8pCTpiupi', NULL, '2012-11-28 22:18:30', 'confirmation@needed.test', '$2a$04$1WAzYghaCMYuAKeuh6R5yO5/vzWp.UZSaPL/LLG4N6da5KQqSzSXq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68db65c3eb_173780435d4858326@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '0453d649ecffd91b4ea3bb8384c527b6', 6, 'User', '2012-11-28 22:18:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68db6649b4_173780435d48584d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (3.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'xyoSHKRnh96Xzz6D3mwq' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:18:30', 'xyoSHKRnh96Xzz6D3mwq', NULL, '2012-11-28 22:18:30', 'reconfirmation@needed.test', '$2a$04$Dskpvg8cW3hn6e38BuJAz.qwwHWK3SLk7x8pwarRgD.bhJm9k8Meq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68db66c474_173780435d485857@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '1dbb3aa491a679442280ef152d01a187', 7, 'User', '2012-11-28 22:18:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68db674bed_173780435d4858652@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 7) LIMIT 1  (0.5ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:18:30' WHERE `users`.`id` = 7 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'AL4zgrjVRhx8MNQFSs4U' LIMIT 1  (0.3ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:18:30', `confirmation_token` = 'AL4zgrjVRhx8MNQFSs4U' WHERE `users`.`id` = 7 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b68db67b3cf_173780435d48587c0@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'piaoeKmiHqWsXgzRQHB5' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:18:30', 'piaoeKmiHqWsXgzRQHB5', NULL, '2012-11-28 22:18:30', 'reconfirmation@needed.test', '$2a$04$xpW92XH2UH7P3hsnpRUiNOBwWzLMo3zJhEyPA735T.XjypQDzTiXW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68db6826f0_173780435d4858829@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', 'cc36bdeacabeec1c26b62253c38f15d3', 8, 'User', '2012-11-28 22:18:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68db68b005_173780435d48589ab@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 8) LIMIT 1  (0.5ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:18:30' WHERE `users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '727a66471f0057d0b3217919b009d35f', 9, 'User', '2012-11-28 22:18:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 9)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 9 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', 'b74a9bee24eb695f70f1aa5e2896f450', 10, 'User', '2012-11-28 22:18:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b68db69e5ab_173780435d485905e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 10)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 10 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'fJs49bqAJxwNUpyzyURX' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:18:30', 'fJs49bqAJxwNUpyzyURX', NULL, '2012-11-28 22:18:30', 'test@email.test', '$2a$04$jbQnfXHphMiJXd1soDidK.qwFexS8QLPIKC3Nzc5rVyWXPugkzQQu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68db6a6ee0_173780435d48591e4@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', 'bfe5ec05a83c9e10ea1dac8524fd6442', 11, 'User', '2012-11-28 22:18:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 11) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin') Sent mail to test@email.test (8ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68db6af7e0_173780435d4859287@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'FGEycwBtJSjWMqBnxbTV' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:18:30', 'FGEycwBtJSjWMqBnxbTV', NULL, '2012-11-28 22:18:30', 'test@email.test', '$2a$04$/lQuED.Sb6b4DTPohKFAmuKh8n.6Q7ThRJh2a8wRcpj2QfCoqvZJS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68db6b72ae_173780435d485939c@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '135fae93d48cba623c340b307becdd53', 12, 'User', '2012-11-28 22:18:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 20:18:30 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68db6bca0e_173780435d48594e8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '96040a759ae6edb3004a53cada1e87d8', 13, 'User', '2012-11-28 22:18:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 13) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:30', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 13\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:30.793275000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:30.794028000Z\n updated_at: 2012-11-28 22:18:30.794028000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_13', '2012-12-05 22:18:30', '2012-11-28 22:18:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '3d5b83e563d54ed6fe4d8775453efaea', 14, 'User', '2012-11-28 22:18:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:30', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 14\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:30.819280000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:30.819720000Z\n updated_at: 2012-11-28 22:18:30.819720000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_14', '2012-12-05 22:18:30', '2012-11-28 22:18:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', 'd09b8075e99c33b9973db45fca395c81', 15, 'User', '2012-11-28 22:18:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:30', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 15\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:30.928305000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:30.928954000Z\n updated_at: 2012-11-28 22:18:30.928954000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_15', '2012-12-05 22:18:30', '2012-11-28 22:18:30')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '7e35233cb98215f069a2d56456dd41b3', 16, 'User', '2012-11-28 22:18:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:30', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 16\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:30.954363000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:30.954822000Z\n updated_at: 2012-11-28 22:18:30.954822000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_16', '2012-12-05 22:18:30', '2012-11-28 22:18:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:30', '2012-11-28 22:18:30', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:30') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:30', 'User', '79fbaf40e20d02ad329fe7bcad3639d2', 17, 'User', '2012-11-28 22:18:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:30', NULL, NULL, NULL, '2012-11-28 22:18:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:30', `updated_at` = '2012-11-28 22:18:30', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 17\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:30.978855000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:30.979502000Z\n updated_at: 2012-11-28 22:18:30.979502000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_17', '2012-12-05 22:18:30', '2012-11-28 22:18:31')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:31', '2012-11-28 22:18:31', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:31', 'User', '5d83645c3f3c16c3e673a77886deca8e', 18, 'User', '2012-11-28 22:18:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:31', NULL, NULL, NULL, '2012-11-28 22:18:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:31', `updated_at` = '2012-11-28 22:18:31', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 18) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 18\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:31.003972000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:31.004433000Z\n updated_at: 2012-11-28 22:18:31.004433000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_18', '2012-12-05 22:18:31', '2012-11-28 22:18:31')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:31', '2012-11-28 22:18:31', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:31', 'User', '4518210e9bd61dc362d60819c436b0d1', 19, 'User', '2012-11-28 22:18:31') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:31', NULL, NULL, NULL, '2012-11-28 22:18:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:31', `updated_at` = '2012-11-28 22:18:31', `subdomain` = 'account18' WHERE `accounts`.`id` = 18 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 19\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:31.029269000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:31.029722000Z\n updated_at: 2012-11-28 22:18:31.029722000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_19', '2012-12-05 22:18:31', '2012-11-28 22:18:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:18:31', '2012-11-28 22:18:31', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:18:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:18:31', 'User', '10b1c28590f3d79fea4117bf0d170160', 20, 'User', '2012-11-28 22:18:31') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:18:31', NULL, NULL, NULL, '2012-11-28 22:18:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:18:31', `updated_at` = '2012-11-28 22:18:31', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 20) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:18:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 20\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:18:31.052321000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:18:31.052710000Z\n updated_at: 2012-11-28 22:18:31.052710000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_20', '2012-12-05 22:18:31', '2012-11-28 22:18:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (22.9ms) TRUNCATE TABLE `account_domains`;  (1.5ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (1.3ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.2ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 155ms (Views: 78.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:16', '2012-11-28 22:20:16', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:16') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:16', NULL, NULL, NULL, '2012-11-28 22:20:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:16', `updated_at` = '2012-11-28 22:20:16', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:17', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 1\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:16.665289000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:16.672343000Z\n updated_at: 2012-11-28 22:20:16.672343000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_1', '2012-12-05 22:20:17', '2012-11-28 22:20:17')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:20:17', `updated_at` = '2012-11-28 22:20:17' WHERE `users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 456ms (ActiveRecord: 21.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 340ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:20:17', 'E9l7JPIBrpKlk843BcynfmVlskU') Sent mail to test@test.test (141ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68e21ec06c_17af80435d4817380@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1E9l7JPIBrpKlk843BcynfmVlskU  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:20:18', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68e2214b94_17af80435d48174cf@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.5ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 2 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:20:18', 'A-oycOvz9Fmfsn6X-qzsvWz4oK4') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68e221b445_17af80435d4817566@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3A-oycOvz9Fmfsn6X-qzsvWz4oK4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:20:18', 'c5gi5ORHb-bx0WRuFH8IR3MFiLg') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68e222543d_17af80435d48176f7@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4c5gi5ORHb-bx0WRuFH8IR3MFiLg  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:18', '2012-11-28 22:20:18', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', 'b0312757e79fac9388bd185299629718', 2, 'User', '2012-11-28 22:20:18') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:18', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 2\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:18.174805000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:18.175786000Z\n updated_at: 2012-11-28 22:20:18.175786000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_2', '2012-12-05 22:20:18', '2012-11-28 22:20:18')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 2) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$8HQbccw5KMmZqCyJ8pMVROrIImuq.pHvXC9UiVVD9P8XBco1TNy02', `updated_at` = '2012-11-28 22:20:18' WHERE `users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:18', '2012-11-28 22:20:18', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', '421abc4b1fd61fb874be0c05ff752c8d', 3, 'User', '2012-11-28 22:20:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:18', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 3\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:18.255922000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:18.256725000Z\n updated_at: 2012-11-28 22:20:18.256725000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_3', '2012-12-05 22:20:18', '2012-11-28 22:20:18')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 3) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:18', '2012-11-28 22:20:18', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', 'a71534a758a5e8ea927ea2bdf4e396e0', 4, 'User', '2012-11-28 22:20:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:18', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:18.290399000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:18.291228000Z\n updated_at: 2012-11-28 22:20:18.291228000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_4', '2012-12-05 22:20:18', '2012-11-28 22:20:18')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'WfREcyEtgwXGrYFsPqzH' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:20:18', 'WfREcyEtgwXGrYFsPqzH', '2012-11-28 22:20:18', '2012-11-28 22:20:18', 'confirmation@skip.test', '$2a$04$OgvspjRUYnWkCb3oYIH8AekAY7Pw6Og4Avppmrho7LE7voMqmUgea', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', '99b45be5394522124372117e3d3a2cba', 5, 'User', '2012-11-28 22:20:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b68e226863a_17af80435d481777c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'aHLsuuAE9sCFYonPmK2u' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:20:18', 'aHLsuuAE9sCFYonPmK2u', NULL, '2012-11-28 22:20:18', 'confirmation@needed.test', '$2a$04$rX98GxYD7bzjm4KR6HsMouP1j5gx.qSUXocgL4BUh2w1p8eiCLeOm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68e2271457_17af80435d481786d@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', 'd4ab0079f1c1271b89b8a44f360a0e7c', 6, 'User', '2012-11-28 22:20:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68e227a2b7_17af80435d48179f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'sowx3VydHvuuC8R15Hfq' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:20:18', 'sowx3VydHvuuC8R15Hfq', NULL, '2012-11-28 22:20:18', 'reconfirmation@needed.test', '$2a$04$JchXVIYF4t7o8QpoGGpB/.4w78cwKJlhv3Lj5Z58eLUyPK4BB5QBW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68e22814b7_17af80435d4818062@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', '14ab72687ca0564ab5be95ec3e2eec02', 7, 'User', '2012-11-28 22:20:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68e2289efa_17af80435d48181f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 7) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:20:18' WHERE `users`.`id` = 7 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'gHuJkERkKYdZxHGWSnzL' LIMIT 1  (0.3ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:20:18', `confirmation_token` = 'gHuJkERkKYdZxHGWSnzL' WHERE `users`.`id` = 7 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b68e2290858_17af80435d48182c8@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'HmzQQxzF3L7psFz1mJfc' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:20:18', 'HmzQQxzF3L7psFz1mJfc', NULL, '2012-11-28 22:20:18', 'reconfirmation@needed.test', '$2a$04$UIT.OSwq52VVD.EYuLqJ6eahyl99quOO7G7CBv57z6hLM98HsvKJK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68e22979ab_17af80435d4818361@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', '8ce28f521234039ba6a07735d4510dc5', 8, 'User', '2012-11-28 22:20:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68e22a04e8_17af80435d481840@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 8) LIMIT 1  (0.5ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:20:18' WHERE `users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:18', '2012-11-28 22:20:18', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', 'bbab8aba75d81cb06277c94d02728f7a', 9, 'User', '2012-11-28 22:20:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 9)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 9 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:18', '2012-11-28 22:20:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', '35bb8cd152ecc9d89ff83ae64d2d0307', 10, 'User', '2012-11-28 22:20:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b68e22b4588_17af80435d48185a2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 10)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 10 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '24LPcyxw1gvw9bfpmLwV' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:20:18', '24LPcyxw1gvw9bfpmLwV', NULL, '2012-11-28 22:20:18', 'test@email.test', '$2a$04$VWxizDSPqmSGBEbRVoadBuob7zuIqoWrNq/UYf0EFuofbq2jKnKb2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68e22bcdb0_17af80435d48186f1@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', '0f732d2716af186d68825c65bc92d62b', 11, 'User', '2012-11-28 22:20:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68e22c57a2_17af80435d4818729@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11  (8.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '4kAqqbQWtGHK8FpLGGqF' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:20:18', '4kAqqbQWtGHK8FpLGGqF', NULL, '2012-11-28 22:20:18', 'test@email.test', '$2a$04$hBs.vRLQlfjxsNF0LlOva.IcszRea8Jp6IMsSzbvdnwiMF9IsH5yu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68e22e1020_17af80435d4818885@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', 'e2a172fad2b83c9cc6aeb260e7372915', 12, 'User', '2012-11-28 22:20:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:20:18 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68e22e66af_17af80435d4818966@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:18', '2012-11-28 22:20:18', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', 'a85cafdef2e4266aa81d658b8fc90c63', 13, 'User', '2012-11-28 22:20:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:18', NULL, NULL, NULL, '2012-11-28 22:20:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:18', `updated_at` = '2012-11-28 22:20:18', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:18', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 13\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:18.965383000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:18.965971000Z\n updated_at: 2012-11-28 22:20:18.965971000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_13', '2012-12-05 22:20:18', '2012-11-28 22:20:18')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:18', '2012-11-28 22:20:18', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:18', 'User', '5ef5c1af4a81819368bd5f2a5b4d8fe7', 14, 'User', '2012-11-28 22:20:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:19', NULL, NULL, NULL, '2012-11-28 22:20:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:19', `updated_at` = '2012-11-28 22:20:19', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 14\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:18.992813000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:18.993327000Z\n updated_at: 2012-11-28 22:20:18.993327000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_14', '2012-12-05 22:20:19', '2012-11-28 22:20:19')  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:19', '2012-11-28 22:20:19', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:19', 'User', '82747a61d7082496afebbab104567fea', 15, 'User', '2012-11-28 22:20:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:19', NULL, NULL, NULL, '2012-11-28 22:20:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:19', `updated_at` = '2012-11-28 22:20:19', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 15) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 15\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:19.026534000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:19.027216000Z\n updated_at: 2012-11-28 22:20:19.027216000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_15', '2012-12-05 22:20:19', '2012-11-28 22:20:19')  (0.2ms) RELEASE SAVEPOINT active_record_1  (50.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:19', '2012-11-28 22:20:19', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:19', 'User', '43699c05bf0d91f9e3d78c0efc982d5c', 16, 'User', '2012-11-28 22:20:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:19', NULL, NULL, NULL, '2012-11-28 22:20:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:19', `updated_at` = '2012-11-28 22:20:19', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 16) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 16\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:19.105672000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:19.106315000Z\n updated_at: 2012-11-28 22:20:19.106315000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_16', '2012-12-05 22:20:19', '2012-11-28 22:20:19')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:19', '2012-11-28 22:20:19', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:19', 'User', '656abd73c37b25a80e8b19f60d53c0f2', 17, 'User', '2012-11-28 22:20:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:19', NULL, NULL, NULL, '2012-11-28 22:20:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:19', `updated_at` = '2012-11-28 22:20:19', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 17) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 17\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:19.131689000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:19.132140000Z\n updated_at: 2012-11-28 22:20:19.132140000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_17', '2012-12-05 22:20:19', '2012-11-28 22:20:19')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:19', '2012-11-28 22:20:19', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:19', 'User', '7cfa8918559e8babe19ad42e23c935b2', 18, 'User', '2012-11-28 22:20:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:19', NULL, NULL, NULL, '2012-11-28 22:20:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:19', `updated_at` = '2012-11-28 22:20:19', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 18\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:19.157642000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:19.158103000Z\n updated_at: 2012-11-28 22:20:19.158103000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_18', '2012-12-05 22:20:19', '2012-11-28 22:20:19')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:19', '2012-11-28 22:20:19', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:19', 'User', 'dfc7b756b95717c91335f4fd16775138', 19, 'User', '2012-11-28 22:20:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:19', NULL, NULL, NULL, '2012-11-28 22:20:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:19', `updated_at` = '2012-11-28 22:20:19', `subdomain` = 'account18' WHERE `accounts`.`id` = 18 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 19\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:19.181650000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:19.182115000Z\n updated_at: 2012-11-28 22:20:19.182115000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_19', '2012-12-05 22:20:19', '2012-11-28 22:20:19')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:20:19', '2012-11-28 22:20:19', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:20:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:20:19', 'User', 'd624a554b64e02a4589cd995feb942d4', 20, 'User', '2012-11-28 22:20:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:20:19', NULL, NULL, NULL, '2012-11-28 22:20:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:20:19', `updated_at` = '2012-11-28 22:20:19', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:20:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 20\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:20:19.205379000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:20:19.205823000Z\n updated_at: 2012-11-28 22:20:19.205823000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_20', '2012-12-05 22:20:19', '2012-11-28 22:20:19')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (21.5ms) TRUNCATE TABLE `account_domains`;  (1.4ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (1.3ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 154ms (Views: 79.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:18', '2012-11-28 22:21:18', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:18') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:18', NULL, NULL, NULL, '2012-11-28 22:21:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:18', `updated_at` = '2012-11-28 22:21:18', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:18', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 1\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:18.196355000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:18.203499000Z\n updated_at: 2012-11-28 22:21:18.203499000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_1', '2012-12-05 22:21:18', '2012-11-28 22:21:18')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:21:18', `updated_at` = '2012-11-28 22:21:18' WHERE `users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 454ms (ActiveRecord: 22.2ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 3ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:21:18', 'ArwvIfBQnXIQHBOjr-EVmssGSl4') Sent mail to test@test.test (138ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68e5f26925_17bf80435d48149a5@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1ArwvIfBQnXIQHBOjr-EVmssGSl4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:21:19', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68e5f43371_17bf80435d48150ee@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 2 LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:21:19', 'EWNAik1bJsLFz_0YZ964ErfKc6c') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68e5f49c09_17bf80435d48151d6@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3EWNAik1bJsLFz_0YZ964ErfKc6c  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:21:19', '_of4ACRktvnvE4wQK7wpULlQ9_8') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b68e5f5392b_17bf80435d48152e3@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4_of4ACRktvnvE4wQK7wpULlQ9_8  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:19', '2012-11-28 22:21:19', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', 'a428263f30e02fd83fd549edec0f3c3f', 2, 'User', '2012-11-28 22:21:19') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 2\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:19.365914000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:19.366885000Z\n updated_at: 2012-11-28 22:21:19.366885000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_2', '2012-12-05 22:21:19', '2012-11-28 22:21:19')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 2) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$BSjRMjsTxjgB7it6yqRAZeLsxFqFhSZ5UmzPpClklGNBpJQHoF8.S', `updated_at` = '2012-11-28 22:21:19' WHERE `users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:19', '2012-11-28 22:21:19', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', '3502f26aecda343ad71d74e9b23b5a52', 3, 'User', '2012-11-28 22:21:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 3\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:19.445114000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:19.445887000Z\n updated_at: 2012-11-28 22:21:19.445887000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_3', '2012-12-05 22:21:19', '2012-11-28 22:21:19')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 3) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:19', '2012-11-28 22:21:19', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', '95eadad425ff06eb49bee10a4e32e240', 4, 'User', '2012-11-28 22:21:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:19.479450000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:19.480341000Z\n updated_at: 2012-11-28 22:21:19.480341000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_4', '2012-12-05 22:21:19', '2012-11-28 22:21:19')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'iPYdzfTA4SMFZP9SWnnh' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:21:19', 'iPYdzfTA4SMFZP9SWnnh', '2012-11-28 22:21:19', '2012-11-28 22:21:19', 'confirmation@skip.test', '$2a$04$qVBPtx9rlPfiZZClxA.Ruur/yXBFrKzVXPB2ajlfjk6NOxXPaE4tO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', 'd4df0ae55c50fda2698ae7fa7921b18a', 5, 'User', '2012-11-28 22:21:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b68e5f95f9d_17bf80435d4815377@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'cqs2xpLf5zpRbmKHPJog' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:21:19', 'cqs2xpLf5zpRbmKHPJog', NULL, '2012-11-28 22:21:19', 'confirmation@needed.test', '$2a$04$FmqqZ1UhOc8fX/Ocr9FMie6CARBFhu62V/RCfqyHLZsgegdJE6BLW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68e5f9ef7d_17bf80435d48154a6@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', '5959986c17dc69fb3170cc77ae636618', 6, 'User', '2012-11-28 22:21:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68e5fa7550_17bf80435d48155f0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '2pwsoqtMapYEYWezxESD' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:21:19', '2pwsoqtMapYEYWezxESD', NULL, '2012-11-28 22:21:19', 'reconfirmation@needed.test', '$2a$04$0yOJm31gtyHnejZ1Smx.C.ZXt/PTqT85qGy2/oW79llCzz04CVTEG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68e5fae364_17bf80435d4815641@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', 'c36a06ed54d678cf7e3e8ea4fd174190', 7, 'User', '2012-11-28 22:21:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68e5fb6dfd_17bf80435d48157da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 7) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:21:19' WHERE `users`.`id` = 7 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'Bns3GbQqa5cp1ZdiT8yN' LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:21:19', `confirmation_token` = 'Bns3GbQqa5cp1ZdiT8yN' WHERE `users`.`id` = 7 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b68e5fbd6a6_17bf80435d48158dc@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'd3BxANJVryk9uxLxqqeH' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:21:19', 'd3BxANJVryk9uxLxqqeH', NULL, '2012-11-28 22:21:19', 'reconfirmation@needed.test', '$2a$04$lo9lVXCVUT8mBhPpADRPA.slAAQiHCSG3eMrLmW/7dptO5S2DK6Qa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68e5fc4984_17bf80435d481596e@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', 'e80067725afe895f2859411b986332d8', 8, 'User', '2012-11-28 22:21:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68e5fcd2a8_17bf80435d4816085@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 8) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:21:19' WHERE `users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:19', '2012-11-28 22:21:19', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', '1ba42071bb4f09e7f8fdb51b4378e934', 9, 'User', '2012-11-28 22:21:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 9)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 9 LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:19', '2012-11-28 22:21:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', 'a4ca0834d4daf7aa933ea4ad77913f15', 10, 'User', '2012-11-28 22:21:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 10) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b68e5fdf8f0_17bf80435d48161b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 10)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 10 LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'WiiV9MBa2vimLgPpzx4z' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:21:19', 'WiiV9MBa2vimLgPpzx4z', NULL, '2012-11-28 22:21:19', 'test@email.test', '$2a$04$QDXf/rEjdXzJFaugtZjWeeA0Rp.hZsqzx1EKBOObki6LfVWBf.aQm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:21:19') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68e5fe7bc6_17bf80435d48162b3@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:19', 'User', '87ae76bb063afcd8aeb45cd3c6461b08', 11, 'User', '2012-11-28 22:21:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:19', NULL, NULL, NULL, '2012-11-28 22:21:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:19', `updated_at` = '2012-11-28 22:21:19', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:21:19 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68e5ff0340_17bf80435d4816373@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11  (11.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'jMgqzxRb1NnNtyssKqt9' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:21:20', 'jMgqzxRb1NnNtyssKqt9', NULL, '2012-11-28 22:21:20', 'test@email.test', '$2a$04$YvkBU8kx2117Zm3ssuovWeWxMduh7VOQH9Nu7vEJtBdD5Civ7qwsy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:21:20 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68e605e12_17bf80435d481642d@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', 'f41b6705c504a19eb47b055264d74e3d', 12, 'User', '2012-11-28 22:21:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:21:20 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68e60b5a5_17bf80435d48165ef@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:20', '2012-11-28 22:21:20', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', '486f7fad2012c2e4c01d3bac51e6e3f2', 13, 'User', '2012-11-28 22:21:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:20', NULL, NULL, NULL, '2012-11-28 22:21:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:20', `updated_at` = '2012-11-28 22:21:20', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 13\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:20.143469000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:20.144098000Z\n updated_at: 2012-11-28 22:21:20.144098000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_13', '2012-12-05 22:21:20', '2012-11-28 22:21:20')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:20', '2012-11-28 22:21:20', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', 'd4feb55177ea71afb963357332dbaedd', 14, 'User', '2012-11-28 22:21:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:20', NULL, NULL, NULL, '2012-11-28 22:21:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:20', `updated_at` = '2012-11-28 22:21:20', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 14\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:20.169482000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:20.169930000Z\n updated_at: 2012-11-28 22:21:20.169930000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_14', '2012-12-05 22:21:20', '2012-11-28 22:21:20')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:20', '2012-11-28 22:21:20', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', 'a207103dd40c0ff2b052583d9f88cf6a', 15, 'User', '2012-11-28 22:21:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:20', NULL, NULL, NULL, '2012-11-28 22:21:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:20', `updated_at` = '2012-11-28 22:21:20', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 15\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:20.193187000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:20.193649000Z\n updated_at: 2012-11-28 22:21:20.193649000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_15', '2012-12-05 22:21:20', '2012-11-28 22:21:20')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:20', '2012-11-28 22:21:20', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', '0d2b02d89c891f97d1c377a9959a2d50', 16, 'User', '2012-11-28 22:21:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:20', NULL, NULL, NULL, '2012-11-28 22:21:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:20', `updated_at` = '2012-11-28 22:21:20', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 16) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 16\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:20.216778000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:20.217425000Z\n updated_at: 2012-11-28 22:21:20.217425000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_16', '2012-12-05 22:21:20', '2012-11-28 22:21:20')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:20', '2012-11-28 22:21:20', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', 'b8cec9028f2a3eb52ca71ae121697ff5', 17, 'User', '2012-11-28 22:21:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:20', NULL, NULL, NULL, '2012-11-28 22:21:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:20', `updated_at` = '2012-11-28 22:21:20', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 17\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:20.242462000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:20.243053000Z\n updated_at: 2012-11-28 22:21:20.243053000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_17', '2012-12-05 22:21:20', '2012-11-28 22:21:20')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:20', '2012-11-28 22:21:20', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', 'b26defd4910fed11588b206903486abb', 18, 'User', '2012-11-28 22:21:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:20', NULL, NULL, NULL, '2012-11-28 22:21:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:20', `updated_at` = '2012-11-28 22:21:20', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 18) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 18\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:20.266828000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:20.267240000Z\n updated_at: 2012-11-28 22:21:20.267240000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_18', '2012-12-05 22:21:20', '2012-11-28 22:21:20')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:20', '2012-11-28 22:21:20', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', 'd900b7883b7a106b5238f351850b7b82', 19, 'User', '2012-11-28 22:21:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:20', NULL, NULL, NULL, '2012-11-28 22:21:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:20', `updated_at` = '2012-11-28 22:21:20', `subdomain` = 'account18' WHERE `accounts`.`id` = 18 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 19\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:20.291221000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:20.291669000Z\n updated_at: 2012-11-28 22:21:20.291669000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_19', '2012-12-05 22:21:20', '2012-11-28 22:21:20')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:21:20', '2012-11-28 22:21:20', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:21:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:21:20', 'User', '22896c6f1e87679c361707f829a2a23e', 20, 'User', '2012-11-28 22:21:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 20 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:21:20', NULL, NULL, NULL, '2012-11-28 22:21:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:21:20', `updated_at` = '2012-11-28 22:21:20', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 20) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:21:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 20\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:21:20.314122000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:21:20.314551000Z\n updated_at: 2012-11-28 22:21:20.314551000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_20', '2012-12-05 22:21:20', '2012-11-28 22:21:20')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (14.7ms) TRUNCATE TABLE `account_domains`;  (1.3ms) TRUNCATE TABLE `account_roles`;  (0.6ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:57', '2012-11-28 22:24:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:57') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 1 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:57', 'User', '7f6311be03f4dcfa84343067b5db25f7', 1, 'User', '2012-11-28 22:24:57') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 1 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:57', NULL, NULL, NULL, '2012-11-28 22:24:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:57', `updated_at` = '2012-11-28 22:24:57', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 1\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:57.339313000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:57.346445000Z\n updated_at: 2012-11-28 22:24:57.346445000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_1', '2012-12-05 22:24:57', '2012-11-28 22:24:57')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 1) LIMIT 1  (0.5ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$haSHH6gvoIgYSSABL.6KyOoahpJpqE1zzUdypaG/yubp4GbH8gedK', `updated_at` = '2012-11-28 22:24:57' WHERE `users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_1' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:57', '2012-11-28 22:24:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:57', 'User', '7b2b4e57c506ecf3ed00ef64e8833ba8', 2, 'User', '2012-11-28 22:24:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 2 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:57', NULL, NULL, NULL, '2012-11-28 22:24:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:57', `updated_at` = '2012-11-28 22:24:57', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 2\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:57.834358000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:57.835149000Z\n updated_at: 2012-11-28 22:24:57.835149000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_2', '2012-12-05 22:24:57', '2012-11-28 22:24:57')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 2) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:57', '2012-11-28 22:24:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:57', 'User', 'e9c3fd996e1013faa2ee7f2c082ca42e', 3, 'User', '2012-11-28 22:24:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 3 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:57', NULL, NULL, NULL, '2012-11-28 22:24:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:57', `updated_at` = '2012-11-28 22:24:57', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 3\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:57.923035000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:57.923877000Z\n updated_at: 2012-11-28 22:24:57.923877000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_3', '2012-12-05 22:24:57', '2012-11-28 22:24:57')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'sUqQq6T6ieiiufprpDLg' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:24:57', 'sUqQq6T6ieiiufprpDLg', '2012-11-28 22:24:57', '2012-11-28 22:24:57', 'confirmation@skip.test', '$2a$04$kWTBaQTa3ICQZLjwpzFfO.JtcjVk1rUzyZOaH7LZzPxMK7BzMed9a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:24:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:57', 'User', 'c576cd6119e7320cc2d7d9dfc9052bd6', 4, 'User', '2012-11-28 22:24:57') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 4 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:57', NULL, NULL, NULL, '2012-11-28 22:24:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:57', `updated_at` = '2012-11-28 22:24:57', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to confirmation@skip.test (127ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b68f3a593c1_188a80435d4851431@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'hsspK6VgygwjsEhmd3zc' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:24:58', 'hsspK6VgygwjsEhmd3zc', NULL, '2012-11-28 22:24:58', 'confirmation@needed.test', '$2a$04$SY061.lL0FBjE7tjWdHKPu5SG2IMcwRm0jKSIa3j4iFbTK9B22cQq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:24:58') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/confirmation_instructions.html.haml (2.5ms) Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68f3a76105_188a80435d485156d@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:58', 'User', 'e331bbf65f3e4d3f437acca71085547d', 5, 'User', '2012-11-28 22:24:58') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 5 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:58', NULL, NULL, NULL, '2012-11-28 22:24:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:58', `updated_at` = '2012-11-28 22:24:58', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b68f3a7ebd3_188a80435d48516ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'f5xzpVFWRLqPTFzRH5o8' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:24:58', 'f5xzpVFWRLqPTFzRH5o8', NULL, '2012-11-28 22:24:58', 'reconfirmation@needed.test', '$2a$04$vwuC6lXWPnR69jW8g2E8h./nw733GgT./NVvagO.2A2K8sDwq0AW6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:24:58') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/confirmation_instructions.html.haml (0.6ms) Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68f3a85e05_188a80435d4851755@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:58', 'User', '4bfdd2b20da601fe6fdc152d6c802797', 6, 'User', '2012-11-28 22:24:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 6 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:58', NULL, NULL, NULL, '2012-11-28 22:24:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:58', `updated_at` = '2012-11-28 22:24:58', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68f3a8e67e_188a80435d4851886@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 6) LIMIT 1  (0.5ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:24:58' WHERE `users`.`id` = 6 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'orjFHNjwtTRrEzdsZ2ps' LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:24:58', `confirmation_token` = 'orjFHNjwtTRrEzdsZ2ps' WHERE `users`.`id` = 6 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/confirmation_instructions.html.haml (0.6ms) Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b68f3a94f90_188a80435d4851925@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'de2MApwZsHqY8FmNxy5V' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:24:58', 'de2MApwZsHqY8FmNxy5V', NULL, '2012-11-28 22:24:58', 'reconfirmation@needed.test', '$2a$04$ezTujABdTU1grVe3loKqguzTJTLExnPKcnvlCsITmduNGb3a7uyty', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:24:58') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/confirmation_instructions.html.haml (0.7ms) Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68f3a9c142_188a80435d48520f@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:58', 'User', '843445e1f2227090a3e3ab792ff426c5', 7, 'User', '2012-11-28 22:24:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 7 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:58', NULL, NULL, NULL, '2012-11-28 22:24:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:58', `updated_at` = '2012-11-28 22:24:58', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b68f3aa4928_188a80435d4852179@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 7) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:24:58' WHERE `users`.`id` = 7  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:58', '2012-11-28 22:24:58', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:24:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:58', 'User', '4c0dc284e62c8fc2475c8c6b61f5fa99', 8, 'User', '2012-11-28 22:24:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 8 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:58', NULL, NULL, NULL, '2012-11-28 22:24:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:58', `updated_at` = '2012-11-28 22:24:58', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:58', '2012-11-28 22:24:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:24:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:58', 'User', 'bb3afcb0371848e09aa75747446aadc0', 9, 'User', '2012-11-28 22:24:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 9 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:58', NULL, NULL, NULL, '2012-11-28 22:24:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:58', `updated_at` = '2012-11-28 22:24:58', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b68f3ab8714_188a80435d48522df@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 9)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 9 LIMIT 1  (7.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'RHYvm2EHexL2MZEBZaxD' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:24:58', 'RHYvm2EHexL2MZEBZaxD', NULL, '2012-11-28 22:24:58', 'test@email.test', '$2a$04$7FaaLOqrRcLaxDZ9kXQQ0OPg5a52lxecw0W8Bms6DUVtem0rAkI1a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:24:58') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/confirmation_instructions.html.haml (0.6ms) Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68f3ac28d2_188a80435d4852380@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:58', 'User', '7afacd82f1d38e799c123a9dc622ab0c', 10, 'User', '2012-11-28 22:24:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 10 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:58', NULL, NULL, NULL, '2012-11-28 22:24:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:58', `updated_at` = '2012-11-28 22:24:58', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68f3acaf0d_188a80435d485245@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'sHo5SwrHsYTxST5pYr9p' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:24:58', 'sHo5SwrHsYTxST5pYr9p', NULL, '2012-11-28 22:24:58', 'test@email.test', '$2a$04$crJvrYd6sluwy3laBKNZiOjDMtaGDwUMmsS3pCXaRsVN6RtsohGFG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:24:58') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/confirmation_instructions.html.haml (0.6ms) Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68f3ae9bc0_188a80435d4852516@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:58', 'User', 'e3306a3a5a7bb061fd24053b912b5f76', 11, 'User', '2012-11-28 22:24:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 11 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:24:58 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b68f3aef1e1_188a80435d485269a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:59', '2012-11-28 22:24:59', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:59', 'User', '3b4edd920278d1c8f955ed747f6be4be', 12, 'User', '2012-11-28 22:24:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 12 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:59', NULL, NULL, NULL, '2012-11-28 22:24:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:59', `updated_at` = '2012-11-28 22:24:59', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 12) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 12\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:59.000300000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:59.001146000Z\n updated_at: 2012-11-28 22:24:59.001146000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_12', '2012-12-05 22:24:59', '2012-11-28 22:24:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:59', '2012-11-28 22:24:59', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:59', 'User', '7c0a7fd5c1b52a23efd6228a12b5dfdb', 13, 'User', '2012-11-28 22:24:59') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 13 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:59', NULL, NULL, NULL, '2012-11-28 22:24:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:59', `updated_at` = '2012-11-28 22:24:59', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 13\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:59.032919000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:59.033416000Z\n updated_at: 2012-11-28 22:24:59.033416000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_13', '2012-12-05 22:24:59', '2012-11-28 22:24:59')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:59', '2012-11-28 22:24:59', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:59', 'User', '96ab091616b46e1da6ab0c14124e3b7a', 14, 'User', '2012-11-28 22:24:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 14 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:59', NULL, NULL, NULL, '2012-11-28 22:24:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:59', `updated_at` = '2012-11-28 22:24:59', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 14\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:59.056734000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:59.057215000Z\n updated_at: 2012-11-28 22:24:59.057215000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_14', '2012-12-05 22:24:59', '2012-11-28 22:24:59')  (0.3ms) RELEASE SAVEPOINT active_record_1  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:59', '2012-11-28 22:24:59', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:59', 'User', '245e6db82e92e844c2dab4a485a9fd23', 15, 'User', '2012-11-28 22:24:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 15 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:59', NULL, NULL, NULL, '2012-11-28 22:24:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:59', `updated_at` = '2012-11-28 22:24:59', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 15\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:59.083053000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:59.083540000Z\n updated_at: 2012-11-28 22:24:59.083540000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_15', '2012-12-05 22:24:59', '2012-11-28 22:24:59')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:59', '2012-11-28 22:24:59', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:59') ApiToken Exists (0.8ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:59', 'User', '1966b0e05c124fb6f61a696279ecf49b', 16, 'User', '2012-11-28 22:24:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 16 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:59', NULL, NULL, NULL, '2012-11-28 22:24:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:59', `updated_at` = '2012-11-28 22:24:59', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 16) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 16\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:59.106784000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:59.107243000Z\n updated_at: 2012-11-28 22:24:59.107243000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_16', '2012-12-05 22:24:59', '2012-11-28 22:24:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:59', '2012-11-28 22:24:59', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:59', 'User', '62ac56c6a716ed467bbc88188bdf0fc9', 17, 'User', '2012-11-28 22:24:59') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 17 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:59', NULL, NULL, NULL, '2012-11-28 22:24:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:59', `updated_at` = '2012-11-28 22:24:59', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 17) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 17\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:59.134178000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:59.134820000Z\n updated_at: 2012-11-28 22:24:59.134820000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_17', '2012-12-05 22:24:59', '2012-11-28 22:24:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:59', '2012-11-28 22:24:59', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:59', 'User', 'bfe845424f2beda92cbc4648b6253984', 18, 'User', '2012-11-28 22:24:59') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 18 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:59', NULL, NULL, NULL, '2012-11-28 22:24:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:59', `updated_at` = '2012-11-28 22:24:59', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 18) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 18\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:59.157982000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:59.158574000Z\n updated_at: 2012-11-28 22:24:59.158574000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_18', '2012-12-05 22:24:59', '2012-11-28 22:24:59')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:24:59', '2012-11-28 22:24:59', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:24:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:24:59', 'User', 'aba43875445351886d29fc07c6c56d42', 19, 'User', '2012-11-28 22:24:59') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 19 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:24:59', NULL, NULL, NULL, '2012-11-28 22:24:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:24:59', `updated_at` = '2012-11-28 22:24:59', `subdomain` = 'account18' WHERE `accounts`.`id` = 18 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 19\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:24:59.180706000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:24:59.181290000Z\n updated_at: 2012-11-28 22:24:59.181290000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_19', '2012-12-05 22:24:59', '2012-11-28 22:24:59')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `delayed_jobs`  (5.8ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (28.7ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (0.6ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:27', 'teste@teste.com', '$2a$04$C3S07i7eJjDjOkB0HQt4LeS1mPIJGtOp5goh82xf.iXdbg/lpYxHm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:27') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', NULL, NULL, NULL, '2012-11-28 22:30:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', 'jabanilson', NULL, 1, '2012-11-28 22:30:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', 'jabanilson', NULL, 1, '2012-11-28 22:30:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.7ms) Completed 200 OK in 142ms (Views: 82.5ms | ActiveRecord: 0.6ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:27', 'teste@teste.com', '$2a$04$2KaUgXfWD32O5cksOl.Tl.YWEDgjlw1hSNodfUK5xp3ITGRnrp3nq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', NULL, NULL, NULL, '2012-11-28 22:30:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', 'jabanilson', NULL, 1, '2012-11-28 22:30:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', 'jabanilson', NULL, 1, '2012-11-28 22:30:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 5 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND `accounts`.`id` = 4 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 4 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 40ms (Views: 30.3ms | ActiveRecord: 3.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:27', 'teste@teste.com', '$2a$04$ajo/Oeatf2I71uS/q0I7jeKXIT9eVtQQhgSpi2.k7GJrRJs7K4Nja', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', NULL, NULL, NULL, '2012-11-28 22:30:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 3) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', 'jabanilson', NULL, 1, '2012-11-28 22:30:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:27', 'jabanilson', NULL, 1, '2012-11-28 22:30:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:27', `updated_at` = '2012-11-28 22:30:27', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 8 WHERE `account_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 3 AND `account_users`.`account_id` = 7 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (5) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (7) AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 7 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 189ms (Views: 1.8ms | ActiveRecord: 2.0ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$q4YfnAubYTUASGRYPCnjqun6NQGR08WSJIrjgl.2px4Ypt6WsKfzm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 4) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account11' WHERE `accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account12' WHERE `accounts`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 11 WHERE `account_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"10"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 10 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND `accounts`.`id` = 10 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 10\n created_at: 2012-11-28 22:30:28.000000000Z\n updated_at: 2012-11-28 22:30:28.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account10\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_10_destroy', '2012-11-28 22:30:28', '2012-11-28 22:30:28')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_10_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 34ms (ActiveRecord: 5.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$rEwSaT1iknqJdIoePTQ7zOtsCMvIxP2tmqOX4Ram4ABdlCpqtXQza', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account14' WHERE `accounts`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account15' WHERE `accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 14 WHERE `account_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 13 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND `accounts`.`id` = 13 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 13\n created_at: 2012-11-28 22:30:28.000000000Z\n updated_at: 2012-11-28 22:30:28.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account13\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_13_destroy', '2012-11-28 22:30:28', '2012-11-28 22:30:28')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$tIlZd4xKZxPgudkiv3WfD.Sm8r7EMz1AS3uuBQX0TopaicV2KBZyC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account17' WHERE `accounts`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 17 WHERE `account_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"16"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$/6giziQvaknEZXAE5VxOme6hHhRmjjXUHZKkV7ogRalpR3K2l/4MS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account20' WHERE `accounts`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account21' WHERE `accounts`.`id` = 21  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (21, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 20 WHERE `account_users`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 19\n created_at: 2012-11-28 22:30:28.000000000Z\n updated_at: 2012-11-28 22:30:28.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account19\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_19_destroy', '2012-11-28 22:30:28', '2012-11-28 22:30:28')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"19"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 7 AND `account_users`.`account_id` = 19 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 13 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND `accounts`.`id` = 19 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.2ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$/fVtDm.Cv7HbVvf2z9TRiulHJyZls1um.1ly8lv9vTuM8ehSg8I.u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account22' WHERE `accounts`.`id` = 22 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 22 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (22, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account23' WHERE `accounts`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account24' WHERE `accounts`.`id` = 24  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 23 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 23 WHERE `account_users`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 22\n created_at: 2012-11-28 22:30:28.000000000Z\n updated_at: 2012-11-28 22:30:28.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account22\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_22_destroy', '2012-11-28 22:30:28', '2012-11-28 22:30:28')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"22"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 22 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND `accounts`.`id` = 22 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (10.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$vn.Q.9r0UfGIhjS92VG/i.mBBNZdjJPUvkj9ymzWFd0BnvdH3RTlK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account25' WHERE `accounts`.`id` = 25 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (25, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account27' WHERE `accounts`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 9) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 26 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 26 WHERE `account_users`.`id` = 18  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"25"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '25') LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$bM2MydOvBaNyqvu3FTeTeue56s5DjzI452jJ0Jr5XhiLcVrir0PZi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account28' WHERE `accounts`.`id` = 28 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (28, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account29' WHERE `accounts`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account30' WHERE `accounts`.`id` = 30  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (30, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 29 WHERE `account_users`.`id` = 20  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"28"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 28 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account28' AND `accounts`.`id` != 28) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:30:28' WHERE `accounts`.`id` = 28  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/28 Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$m8qLekoQ2q5BJA/T1DIcPuoXop1xlXOiBmLX3Z0V2D1jaS15EgX0S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account31' WHERE `accounts`.`id` = 31 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (31, 11) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account32' WHERE `accounts`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account33' WHERE `accounts`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (33, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 32 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 32 WHERE `account_users`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"31"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 11 AND `account_users`.`account_id` = 31 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 21 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account31' AND `accounts`.`id` != 31) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:30:28' WHERE `accounts`.`id` = 31  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/31 Completed 302 Found in 10ms (ActiveRecord: 2.2ms)  (10.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$7cz/8hvwLU1OyHeRBJAw6Ouf7YzQ1RZi/pyT2BAKryC44HjpbEO7a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account34' WHERE `accounts`.`id` = 34 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (34, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account35' WHERE `accounts`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account36' WHERE `accounts`.`id` = 36  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (36, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 35 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 35 WHERE `account_users`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"34"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 34 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 23 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account34' AND `accounts`.`id` != 34) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:30:28' WHERE `accounts`.`id` = 34  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/34 Completed 302 Found in 9ms (ActiveRecord: 1.8ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$abTuj.iwBPvjYU6A0HbxV.q1fYuf1r6S2P8O0PGkFIWX6rpTPt7R6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account37' WHERE `accounts`.`id` = 37 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (37, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account38' WHERE `accounts`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account39' WHERE `accounts`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (39, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 38 WHERE `account_users`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account40' WHERE `accounts`.`id` = 40  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (40, 13) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 4.4ms)  (7.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:28', '2012-11-28 22:30:28', 'teste@teste.com', '$2a$04$CAwBjx2o0379cO6yf34/SecD9.tMcSgutFvGYsEV6.IWXas6WN7mK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account41' WHERE `accounts`.`id` = 41 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (41, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account42' WHERE `accounts`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', 'jabanilson', NULL, 1, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account43' WHERE `accounts`.`id` = 43  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (43, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 42 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 42 WHERE `account_users`.`id` = 29  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account44' WHERE `accounts`.`id` = 44  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (44, 14) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 90ms (ActiveRecord: 4.3ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 Processing by Iugu::AccountController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:28', NULL, NULL, NULL, '2012-11-28 22:30:28')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:28', `updated_at` = '2012-11-28 22:30:28', `subdomain` = 'account45' WHERE `accounts`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (45, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 14ms (ActiveRecord: 3.8ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14  (6.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$nEDU.hJiTy5kOFomBz9PXelYoaoOsL48e6eoRv71e4EJZ49ZbsD6C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account46' WHERE `accounts`.`id` = 46 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (46, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account47' WHERE `accounts`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account48' WHERE `accounts`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (48, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 47 WHERE `account_users`.`id` = 33  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 15 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_47_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 15 AND `account_users`.`account_id` = 47 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 33 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND `accounts`.`id` = 47 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 47 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:29', 'token x', '3fc6f35a40e249df53a26aa2fce8716e', 47, 'Account', '2012-11-28 22:30:29')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/47 Completed 302 Found in 38ms (ActiveRecord: 6.3ms)  (31.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$UE9rQbVy7vouM.DeuRb9uOdPpxoWht4hUGFPwOU2.kouJPXPdsI/y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account49' WHERE `accounts`.`id` = 49 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 49 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (49, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account50' WHERE `accounts`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account51' WHERE `accounts`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (51, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 50 WHERE `account_users`.`id` = 35  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"50"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 16 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_50_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 16 AND `account_users`.`account_id` = 50 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 35 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND `accounts`.`id` = 50 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 50 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:29', 'token x', 'd378ad7b25781291013aa55db8ddf198', 50, 'Account', '2012-11-28 22:30:29')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/50 Completed 302 Found in 14ms (ActiveRecord: 3.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$8mMp0wu16JD2KWjbzC9gIemn1IVZ5Q1g4GtQPllS2r9NBPzpA/mSm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account52' WHERE `accounts`.`id` = 52 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (52, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account53' WHERE `accounts`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account54' WHERE `accounts`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (54, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 53 WHERE `account_users`.`id` = 37  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 17 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND `accounts`.`id` = 53 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 53 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:29', 'token x', 'eda872ff059b12ddeef79d9594e42104', 53, 'Account', '2012-11-28 22:30:29')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/53 Completed 302 Found in 14ms (ActiveRecord: 3.4ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$x/0nyyXsf7uONnAvyQVGFO4/WbxEwhstatVDcMaY9W4oDQzNnan4G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account55' WHERE `accounts`.`id` = 55 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (55, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account56' WHERE `accounts`.`id` = 56  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account57' WHERE `accounts`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (57, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 56 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 56 WHERE `account_users`.`id` = 39  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 55 AND `account_domains`.`url` = 'controller.test.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (55, NULL, 'controller.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"55"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 18 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_55_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 18 AND `account_users`.`account_id` = 55 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND `accounts`.`id` = 55 LIMIT 1 Completed 200 OK in 31ms (Views: 20.8ms | ActiveRecord: 2.2ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$Bf3jt3gAJ/brp9h8IInw1ebrSM2mY8Byu76jI6XqGfIK2XwJEKpY6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account58' WHERE `accounts`.`id` = 58 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (58, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account59' WHERE `accounts`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account60' WHERE `accounts`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (60, 19) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 59 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 59 WHERE `account_users`.`id` = 41  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"58"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 19 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_58_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 19 AND `account_users`.`account_id` = 58 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND `accounts`.`id` = 58 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 58 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (58, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/58/domain/2 Completed 302 Found in 84ms (ActiveRecord: 3.5ms) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$3ch7LVWGLQayE2oXcUpDQuFv/.KQPLj0ndTZIoyBCbBG3JfJ1uV.C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account61' WHERE `accounts`.`id` = 61 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (61, 20) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account62' WHERE `accounts`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account63' WHERE `accounts`.`id` = 63  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (63, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 62 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 62 WHERE `account_users`.`id` = 43  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 20 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 61 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (61, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/61/domain/3 Completed 302 Found in 14ms (ActiveRecord: 3.3ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.7ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$ZzjaoJVvZTlmATXmgrnaE./8NypmPo6sPvSlO03oRse7xaRSRTgx.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account64' WHERE `accounts`.`id` = 64 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (64, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account65' WHERE `accounts`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account66' WHERE `accounts`.`id` = 66  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (66, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 65 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 65 WHERE `account_users`.`id` = 45  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (64, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"64", "domain_id"=>"4"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 21 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_64_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 21 AND `account_users`.`account_id` = 64 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND `accounts`.`id` = 64 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`id` = 4 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 4  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`primary` = 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/64/domains Completed 302 Found in 16ms (ActiveRecord: 3.7ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$/sQSgYJJPmVQzj9at4FXRePFU2cnzK.vDtPLz2RohRFIU0nMYmWjS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account67' WHERE `accounts`.`id` = 67 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (67, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account68' WHERE `accounts`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account69' WHERE `accounts`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (69, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 68 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 68 WHERE `account_users`.`id` = 47  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (67, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"67", "domain_id"=>"5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 22 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_67_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 22 AND `account_users`.`account_id` = 67 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND `accounts`.`id` = 67 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/67/domains Completed 302 Found in 15ms (ActiveRecord: 3.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$HJDGYaE/9PtITHufns0Lv.0U9Dct7YD1msTw9K6BUZA2vmZGDzybS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account70' WHERE `accounts`.`id` = 70 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (70, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account71' WHERE `accounts`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account72' WHERE `accounts`.`id` = 72  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (72, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 71 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 71 WHERE `account_users`.`id` = 49  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (70, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"70", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 23 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_70_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 23 AND `account_users`.`account_id` = 70 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND `accounts`.`id` = 70 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/70/domains Completed 302 Found in 11ms (ActiveRecord: 2.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$Ea9cKhXtEkFSQGWUqzyFnOvXRgM0d1m9Yqhk0lpF7d/IXHPL8E2ei', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account73' WHERE `accounts`.`id` = 73 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (73, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account74' WHERE `accounts`.`id` = 74  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account75' WHERE `accounts`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (75, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 74 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 74 WHERE `account_users`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (73, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"73", "domain_id"=>"1273816283761238716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 24 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_73_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 24 AND `account_users`.`account_id` = 73 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND `accounts`.`id` = 73 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/73/domains Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$5d.WHADijKRyRhVCZ1N02.epsSE5zXftQbOhcYZCVFT5xSYnJiLd6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account76' WHERE `accounts`.`id` = 76 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (76, 25) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account77' WHERE `accounts`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account78' WHERE `accounts`.`id` = 78  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (78, 25) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 77 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 77 WHERE `account_users`.`id` = 53  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (76, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"76", "domain_id"=>"8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 25 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_76_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND `accounts`.`id` = 76 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`id` = 8 LIMIT 1 Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 1.9ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$9.CRTifo4GXZGToimE3bP.y/or2MBsWCb1lu7nzHw84ahWHQwlbxG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account79' WHERE `accounts`.`id` = 79 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (79, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account80' WHERE `accounts`.`id` = 80  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account81' WHERE `accounts`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (81, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 80 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 80 WHERE `account_users`.`id` = 55  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (79, NULL, 'instructions.test.net', NULL)  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"79", "domain_id"=>"1209371923812238"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 26 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_79_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND `accounts`.`id` = 79 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/79/domains Completed 302 Found in 7ms (ActiveRecord: 1.7ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:29', '2012-11-28 22:30:29', 'teste@teste.com', '$2a$04$UzRQIxFKRVUDXt4ybat9QO7Ih7fD5t3Z0sX3NJRm/VcmTRSXlWag2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:29') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', NULL, NULL, NULL, '2012-11-28 22:30:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account82' WHERE `accounts`.`id` = 82 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (82, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account83' WHERE `accounts`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:29', 'jabanilson', NULL, 1, '2012-11-28 22:30:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:29', `updated_at` = '2012-11-28 22:30:29', `subdomain` = 'account84' WHERE `accounts`.`id` = 84  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (84, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 83 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 83 WHERE `account_users`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.4ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (82, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"82", "domain_id"=>"1209371923812238"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_82_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND `accounts`.`id` = 82 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/82/domains Completed 302 Found in 7ms (ActiveRecord: 1.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$L.4jdoqLJ2E/JuGrfCPIaejyuxWol2.ObtnlZMrlwMsZR2Gcw5vq6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account85' WHERE `accounts`.`id` = 85 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (85, 28) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account86' WHERE `accounts`.`id` = 86  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account87' WHERE `accounts`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (87, 28) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 86 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 86 WHERE `account_users`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (85, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"85", "domain_id"=>"11"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 28 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_85_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 28 AND `account_users`.`account_id` = 85 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND `accounts`.`id` = 85 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`id` = 11 LIMIT 1 Redirected to http://test.host/settings/account/85/domains Completed 302 Found in 12ms (ActiveRecord: 2.4ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$gi.6oHIV0d158OfAm0fV9uGRWdvNhoDZJXKnQLKCuzt6fkxl0HYS2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account88' WHERE `accounts`.`id` = 88 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (88, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account89' WHERE `accounts`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account90' WHERE `accounts`.`id` = 90  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (90, 29) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 89 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 89 WHERE `account_users`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (88, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"88", "domain_id"=>"12"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 29 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_88_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 29 AND `account_users`.`account_id` = 88 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND `accounts`.`id` = 88 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`id` = 12 LIMIT 1 Redirected to http://test.host/settings/account/88/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$QxHFX0r4EOHOZPTBfX7Azug5ZlKFgzXvGhaA1A/y.p2rfaR7ztyUO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account91' WHERE `accounts`.`id` = 91 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (91, 30) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (1.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account92' WHERE `accounts`.`id` = 92  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account93' WHERE `accounts`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (93, 30) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 92 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 92 WHERE `account_users`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (91, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"91", "domain_id"=>"13"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 30 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_91_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 30 AND `account_users`.`account_id` = 91 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND `accounts`.`id` = 91 LIMIT 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`id` = 13 LIMIT 1 Redirected to http://test.host/settings/account/91/domain/13 Completed 302 Found in 10ms (ActiveRecord: 1.4ms)  (18.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$jmpaRkjOtodVEQ4ulcFscOxFAEnjvG4/yODJ3uhRlOhyOfeoSXZLa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account94' WHERE `accounts`.`id` = 94 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (94, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account95' WHERE `accounts`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account96' WHERE `accounts`.`id` = 96  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (96, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 95 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 95 WHERE `account_users`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (94, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"94", "domain_id"=>"14"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 31 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 31 AND `account_users`.`account_id` = 94 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND `accounts`.`id` = 94 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`id` = 14 LIMIT 1 Redirected to http://test.host/settings/account/94/domain/14 Completed 302 Found in 11ms (ActiveRecord: 2.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$U8r5e9Vx8wymueFfIHNBGO656sUiPGx70Qig7dYRLBLv8UbL1Pn52', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account97' WHERE `accounts`.`id` = 97 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (97, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account98' WHERE `accounts`.`id` = 98  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account99' WHERE `accounts`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (99, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 98 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 98 WHERE `account_users`.`id` = 67  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (97, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"97", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 32 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_97_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 32 AND `account_users`.`account_id` = 97 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND `accounts`.`id` = 97 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/97/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$mdw2vWBRa8.HYccZLNdISOS/iIRZQ86ALFaq5hu1Xa8ixsc5AL9pC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account100' WHERE `accounts`.`id` = 100 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (100, 33) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account101' WHERE `accounts`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account102' WHERE `accounts`.`id` = 102  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (102, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 101 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 101 WHERE `account_users`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (100, NULL, 'verify.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"100", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 33 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_100_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 33 AND `account_users`.`account_id` = 100 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND `accounts`.`id` = 100 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/100/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$qlBW1vnel4VMW2uyf3zxJes3Vq9Hpzn2V/sJ72H1rnyhM0zF5fWni', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account103' WHERE `accounts`.`id` = 103 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (103, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account104' WHERE `accounts`.`id` = 104  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account105' WHERE `accounts`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (105, 34) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 104 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 104 WHERE `account_users`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (103, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"103", "domain_id"=>"17"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 34 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_103_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 34 AND `account_users`.`account_id` = 103 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND `accounts`.`id` = 103 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`id` = 17 LIMIT 1 Redirected to http://test.host/settings/account/103/domains Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$.uy7EinwUYqbOdh/w.dnu.c1Qyv8q7.74KES0bjs6JuqCts.oQ2tu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account106' WHERE `accounts`.`id` = 106 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (106, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account107' WHERE `accounts`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account108' WHERE `accounts`.`id` = 108  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (108, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 107 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 107 WHERE `account_users`.`id` = 73  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (106, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"106", "domain_id"=>"18"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 35 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_106_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 35 AND `account_users`.`account_id` = 106 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND `accounts`.`id` = 106 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`id` = 18 LIMIT 1 Redirected to http://test.host/settings/account/106/domains Completed 302 Found in 87ms (ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$4pBRPHFgaiDdRLAVCZl4yuN5p.kVHurT7ACXvTHehNhBuWRsviqOG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account109' WHERE `accounts`.`id` = 109 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (109, 36) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account110' WHERE `accounts`.`id` = 110  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account111' WHERE `accounts`.`id` = 111  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (111, 36) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 110 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 110 WHERE `account_users`.`id` = 75  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`url` = 'primary.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (109, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"109", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 36 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_109_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 36 AND `account_users`.`account_id` = 109 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND `accounts`.`id` = 109 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/109/domains Completed 302 Found in 10ms (ActiveRecord: 2.5ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$x.ZgukCLOsNmWQ.oukd7Y.BZACtUD9KcrDHhvyVxE.EfKLbtRnCoy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account112' WHERE `accounts`.`id` = 112 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (112, 37) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account113' WHERE `accounts`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account114' WHERE `accounts`.`id` = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (114, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 113 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 113 WHERE `account_users`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (112, NULL, 'primary.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"112", "domain_id"=>"1231241243141314"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 37 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_112_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 37 AND `account_users`.`account_id` = 112 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND `accounts`.`id` = 112 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/112/domains Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$ZoyZFFbGz/wdvHM652MOg.TwApJ/EX0i8eQBQWAj.qU6SYKZWeDh2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account115' WHERE `accounts`.`id` = 115 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (115, 38) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account116' WHERE `accounts`.`id` = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account117' WHERE `accounts`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (117, 38) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 116 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 116 WHERE `account_users`.`id` = 79  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"115"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 38 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_115_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 38 AND `account_users`.`account_id` = 115 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND `accounts`.`id` = 115 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 115) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:30:30' WHERE `accounts`.`id` = 115  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/115/domains Completed 302 Found in 13ms (ActiveRecord: 3.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$vHYQZrZ3Ad4iahsD0yLafO93sJvV9fehPpdG/ebm2wseWvTQrSF2O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account118' WHERE `accounts`.`id` = 118 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (118, 39) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account119' WHERE `accounts`.`id` = 119  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account120' WHERE `accounts`.`id` = 120  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (120, 39) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 119 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 119 WHERE `account_users`.`id` = 81  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"118"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 39 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_118_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 39 AND `account_users`.`account_id` = 118 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND `accounts`.`id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 118) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:30:30' WHERE `accounts`.`id` = 118  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/118/domains Completed 302 Found in 13ms (ActiveRecord: 3.5ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$yCIMDnkbJpIWz0USWxpOZ.6DJRAqXtCdlANmGrKbl0/RoUyQC6fGO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', NULL, NULL, NULL, '2012-11-28 22:30:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account121' WHERE `accounts`.`id` = 121 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (121, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account122' WHERE `accounts`.`id` = 122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:30', 'jabanilson', NULL, 1, '2012-11-28 22:30:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:30', `updated_at` = '2012-11-28 22:30:30', `subdomain` = 'account123' WHERE `accounts`.`id` = 123  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (123, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 122 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 122 WHERE `account_users`.`id` = 83  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 40 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 121) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:30:30' WHERE `accounts`.`id` = 121  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/121/domains Completed 302 Found in 13ms (ActiveRecord: 2.8ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.7ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:30', '2012-11-28 22:30:30', 'teste@teste.com', '$2a$04$Yt.JF3I0X9PSmCXgKFZNpON7lGjY9aA0QM8GobzO./NJxInh29.72', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account124' WHERE `accounts`.`id` = 124 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (124, 41) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account125' WHERE `accounts`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account126' WHERE `accounts`.`id` = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (126, 41) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 125 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 125 WHERE `account_users`.`id` = 85  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"124"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 41 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_124_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 41 AND `account_users`.`account_id` = 124 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$IWRwclXJbzOI/XkjUaCPUObsUYVesSdIE.o1Hc6dKERhX.utw3v/G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account127' WHERE `accounts`.`id` = 127 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (127, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account128' WHERE `accounts`.`id` = 128  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account129' WHERE `accounts`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (129, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 128 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 128 WHERE `account_users`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 42 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_127_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$mk9Mr8XSnNKYcQ5gthsx3ew6YFhdor0mLKO//GwfVN61Qu2AJFthi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account130' WHERE `accounts`.`id` = 130 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (130, 43) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account131' WHERE `accounts`.`id` = 131  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account132' WHERE `accounts`.`id` = 132  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (132, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 131 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 131 WHERE `account_users`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"130", "domain_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 43 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_130_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$.B/xpK7iZ1AYk/7zdl2Xveh7tULpJEZQJaA4w9dlTYBybHDgXj46i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account133' WHERE `accounts`.`id` = 133 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (133, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account134' WHERE `accounts`.`id` = 134  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account135' WHERE `accounts`.`id` = 135  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (135, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 134 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 134 WHERE `account_users`.`id` = 91  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"133"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 44 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_133_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 44 AND `account_users`.`account_id` = 133 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$wrIwKCAH.D4WKCR/zYDSCOoKuUf6IbVeicm/5CBGK/5f1PahmSZjW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account136' WHERE `accounts`.`id` = 136 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (136, 45) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account137' WHERE `accounts`.`id` = 137  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account138' WHERE `accounts`.`id` = 138  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (138, 45) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 137 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 137 WHERE `account_users`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 136 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"136", "user_id"=>"45"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 45 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 AND `account_users`.`account_id` = 136 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND `accounts`.`id` = 136 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 136 AND `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136) Completed 200 OK in 15ms (Views: 4.0ms | ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$uT7d/U3GodeOkBT3Vho3a.jMyVGRS9GIL/0xx1vJRGR2T9MllCiU2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account139' WHERE `accounts`.`id` = 139 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (139, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account140' WHERE `accounts`.`id` = 140  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account141' WHERE `accounts`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (141, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 140 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 140 WHERE `account_users`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 139 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"139", "user_id"=>"46"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 46 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 AND `account_users`.`account_id` = 139 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND `accounts`.`id` = 139 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 139 AND `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139) Completed 200 OK in 12ms (Views: 1.8ms | ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$apBz6EYywa4b2lLHBU2.eeFaabk83BkTXuhPvNtiGpyLCdBqyp2dC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account142' WHERE `accounts`.`id` = 142 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (142, 47) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account143' WHERE `accounts`.`id` = 143  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account144' WHERE `accounts`.`id` = 144  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (144, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 143 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 143 WHERE `account_users`.`id` = 97  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142) Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"142", "user_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 47 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 AND `account_users`.`account_id` = 142 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND `accounts`.`id` = 142 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 142 AND `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 142 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/142/users Completed 302 Found in 15ms (ActiveRecord: 3.5ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account145' WHERE `accounts`.`id` = 145  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$YeVai8EVEoBfOTCKUa8ihup9EyLDQSIphnF1oUxGx/d4Vj5.0IkYK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account146' WHERE `accounts`.`id` = 146 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (146, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account147' WHERE `accounts`.`id` = 147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account148' WHERE `accounts`.`id` = 148  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (148, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 147 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 147 WHERE `account_users`.`id` = 99  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 145\n created_at: 2012-11-28 22:30:31.489597000Z\n updated_at: 2012-11-28 22:30:31.489597000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account145\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_145_destroy', '2012-11-28 22:30:31', '2012-11-28 22:30:31')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"145"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 48 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 145 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_145_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 22ms (Views: 17.7ms | ActiveRecord: 1.1ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account149' WHERE `accounts`.`id` = 149  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$5wtWc7UwnRh5tty3hZHiEuSsML9TAMw4UzZff8e4Kqc.y0qnRagry', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account150' WHERE `accounts`.`id` = 150 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (150, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account151' WHERE `accounts`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account152' WHERE `accounts`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (152, 49) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 151 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 151 WHERE `account_users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"149"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 49 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 149 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_149_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 15.8ms | ActiveRecord: 1.2ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$XSebJiG9rdMTnJ/nQka8c.6sNy5wFlsmtNNpyCjIoHesadRCXOUjK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account153' WHERE `accounts`.`id` = 153 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (153, 50) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account154' WHERE `accounts`.`id` = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account155' WHERE `accounts`.`id` = 155  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (155, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 154 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 154 WHERE `account_users`.`id` = 103  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 AND (accounts.id = NULL) LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"153"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 50 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_153_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 1.4ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$FemyaArfWTGMqtRbFZCT4Oi.RUm5zkGZWlYVvwenfzwm6xvRSn3dy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account156' WHERE `accounts`.`id` = 156 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (156, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account157' WHERE `accounts`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account158' WHERE `accounts`.`id` = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (158, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 157 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 157 WHERE `account_users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 51 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Completed 200 OK in 6ms (Views: 1.8ms | ActiveRecord: 1.3ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Completed 404 Not Found in 2ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$DVIDRlEo1Xiachh81MkJh.sKBk5LBj692I9jtl4w2/LtsAw91Ta/O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account159' WHERE `accounts`.`id` = 159 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (159, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account160' WHERE `accounts`.`id` = 160  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account161' WHERE `accounts`.`id` = 161  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (161, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 160 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 160 WHERE `account_users`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"159", "user_id"=>"52"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 52 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_159_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 159 AND `account_users`.`user_id` = 52 LIMIT 1 Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$GWOkRKk/A5CBqzCddlhT2Oq751DOK9qRulEZy2Upsg0P.1ojYsOgK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account162' WHERE `accounts`.`id` = 162 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account163' WHERE `accounts`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account164' WHERE `accounts`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (164, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 163 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 163 WHERE `account_users`.`id` = 109  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'targetdestroy@teste.teste', '$2a$04$aEugn25ETu2IgUibHFVyfuUHPSKoYkOpE6gLozoAByty2Z0psamR.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account165' WHERE `accounts`.`id` = 165 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (165, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"54"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 53 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:31', '2012-11-28 22:30:31', 'teste@teste.com', '$2a$04$0JqK.huzrTBxZz6ShcBA9.qL4bE8dkrndsvT8XDtzLNbA6Q.xOL8u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', NULL, NULL, NULL, '2012-11-28 22:30:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account166' WHERE `accounts`.`id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account167' WHERE `accounts`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:31', 'jabanilson', NULL, 1, '2012-11-28 22:30:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:31', `updated_at` = '2012-11-28 22:30:31', `subdomain` = 'account168' WHERE `accounts`.`id` = 168  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (168, 55) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 167 WHERE `account_users`.`id` = 113  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'targetdestroy@teste.teste', '$2a$04$FTJFIBIb4Od6NtJkg/B0ZOAfl9ze8Q8cZ43XCCfIFe9EzEx6nomfm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account169' WHERE `accounts`.`id` = 169 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (169, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"166", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 55 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_166_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 55 AND `account_users`.`account_id` = 166 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 166 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'teste@teste.com', '$2a$04$lwlwXqy.BxhQv6YTN6EXa.DC84kAKHmOq3MxKJhqX/BI.RLzctoY2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account170' WHERE `accounts`.`id` = 170 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 57) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account171' WHERE `accounts`.`id` = 171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account172' WHERE `accounts`.`id` = 172  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (172, 57) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 171 WHERE `account_users`.`id` = 117  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'targetdestroy@teste.teste', '$2a$04$aqpheihfm2w8WGOGPLzrce8Zj7Yz7rb04DY47Ycklruxnaq/IO6RK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account173' WHERE `accounts`.`id` = 173 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 173 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (173, 58) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 170 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 237 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"170", "user_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 57 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_170_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 57 AND `account_users`.`account_id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 170 AND `account_users`.`user_id` = 58 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 119\n account_id: 170\n user_id: 58\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_119_destroy', '2012-11-28 22:30:32', '2012-11-28 22:30:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_119_destroy' LIMIT 1 Redirected to http://test.host/settings/account/170/users Completed 302 Found in 16ms (ActiveRecord: 3.8ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'teste@teste.com', '$2a$04$hZUfbrk8IVMfKxuqW4B3F.vMwYyII6Ftt8rskjTKZuFR3eUsGIwdK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account174' WHERE `accounts`.`id` = 174 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account175' WHERE `accounts`.`id` = 175  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account176' WHERE `accounts`.`id` = 176  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (176, 59) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 175 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 175 WHERE `account_users`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'targetdestroy@teste.teste', '$2a$04$OFRiB4fq.4xsNap4UgYTIutUrYFR.L30geC00qZ.RCuJyVfuivO82', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account177' WHERE `accounts`.`id` = 177 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 177 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (177, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 174 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 246 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 247  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"174", "user_id"=>"60"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 59 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_174_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 59 AND `account_users`.`account_id` = 174 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 174 AND `account_users`.`user_id` = 60 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 10ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'teste@teste.com', '$2a$04$2RL7Y/6wHhMlWjVpUQvsbeari5yQOFMNKeDdYkMeUxhGVRW3APAWO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account178' WHERE `accounts`.`id` = 178 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account179' WHERE `accounts`.`id` = 179  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account180' WHERE `accounts`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (180, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 179 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 179 WHERE `account_users`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'targetdestroy@teste.teste', '$2a$04$.D0Njp1RFIX9SWCDLHwBmOCWd1wS4bqt8sXxUCqRpb.FG5.QTflry', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account181' WHERE `accounts`.`id` = 181 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 181 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (181, 62) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 62) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (124) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (178)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 178 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 249 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 250  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"178", "user_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 61 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_178_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 61 AND `account_users`.`account_id` = 178 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Completed 404 Not Found in 9ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'teste@teste.com', '$2a$04$otuERXHozNMmDwfo9GtJ9.NRjdvQzpK8VNbx7jX1tXm6y/3vdyI9i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account182' WHERE `accounts`.`id` = 182 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account183' WHERE `accounts`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account184' WHERE `accounts`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (184, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 183 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 183 WHERE `account_users`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'target@test.test', '$2a$04$J7wkduPq2m/xG.1fC/yjSevM2JdNvgSiTy78jtipGXEw6va.kk2Ne', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account185' WHERE `accounts`.`id` = 185 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 185 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (185, 64) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 64) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 131  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 182 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 264 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 265  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 131\n account_id: 182\n user_id: 64\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_131_destroy', '2012-11-28 22:30:32', '2012-11-28 22:30:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"64"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 63 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'teste@teste.com', '$2a$04$SZK/IJKEo1ehPiNpn7reeeKpjheYLYXGy/lKipwS.yIBTWvDYyal.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account186' WHERE `accounts`.`id` = 186 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account187' WHERE `accounts`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account188' WHERE `accounts`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (188, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 187 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 187 WHERE `account_users`.`id` = 133  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'target@test.test', '$2a$04$ZQjWBbie/B9z6MMylDEjhOWcJlKj765HgDD1DS4NP2zy2jSRLGrMq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account189' WHERE `accounts`.`id` = 189 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 189 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (189, 66) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 66) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 135  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 186 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 273 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 274  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 135\n account_id: 186\n user_id: 66\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_135_destroy', '2012-11-28 22:30:32', '2012-11-28 22:30:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"186", "user_id"=>"18237198237192837"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 65 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_186_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 65 AND `account_users`.`account_id` = 186 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 186 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'teste@teste.com', '$2a$04$pX4T6LCynknZKZG0fh4/3eTj7qom6q39wpJ4ugVmcmchh.5TRVBlC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account190' WHERE `accounts`.`id` = 190 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 67) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account191' WHERE `accounts`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account192' WHERE `accounts`.`id` = 192  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (192, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 191 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 191 WHERE `account_users`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'target@test.test', '$2a$04$NKhss7DBJGgAtZRjYEB7I.m64vVlw5p1bCvIcR9Fz3IG2aHBjo7R.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account193' WHERE `accounts`.`id` = 193 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (193, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 139  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 282 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 139\n account_id: 190\n user_id: 68\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_139_destroy', '2012-11-28 22:30:32', '2012-11-28 22:30:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"190", "user_id"=>"68"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 67 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_190_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 190 AND `account_users`.`user_id` = 68 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/190/users Completed 302 Found in 12ms (ActiveRecord: 3.3ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'teste@teste.com', '$2a$04$r69ywUSTglvB406MrS7EPOgpvVgyJd7omRzsyQ7bemFWs4q3BpRbW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account194' WHERE `accounts`.`id` = 194 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 69) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account195' WHERE `accounts`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account196' WHERE `accounts`.`id` = 196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (196, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 195 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 195 WHERE `account_users`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'target@test.test', '$2a$04$1M32fgdImX.iNsgbO2U/qeEr8eMuDGlY5Kxzy.Lv9rEx1uTN14vSq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account197' WHERE `accounts`.`id` = 197 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (197, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 143  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 291 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 143\n account_id: 194\n user_id: 70\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_143_destroy', '2012-11-28 22:30:32', '2012-11-28 22:30:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"194", "user_id"=>"70"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 69 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_194_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 194 AND `account_users`.`user_id` = 70 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/194/users Completed 302 Found in 12ms (ActiveRecord: 3.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'teste@teste.com', '$2a$04$VjTt4yOgWegmLz40kJwMOOW8QUytGvTn2i9wLUM.Tgh7lDwchlNjq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account198' WHERE `accounts`.`id` = 198 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account199' WHERE `accounts`.`id` = 199  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account200' WHERE `accounts`.`id` = 200  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (200, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 199 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 199 WHERE `account_users`.`id` = 145  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'target@test.test', '$2a$04$bn4DYNXvYmAEQziX2EOS5uMcfmRYNx0xslTDlWNRVdLVeRB4wTADy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account201' WHERE `accounts`.`id` = 201 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 201 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (201, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 147  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 300 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 147\n account_id: 198\n user_id: 72\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_147_destroy', '2012-11-28 22:30:32', '2012-11-28 22:30:32')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:32', '2012-11-28 22:30:32', 'notowner@account.test', '$2a$04$Fs5X1fBjuqF44TWIz7sP1eGbTfd.STx9bUFywQKsEQGo6iCb4OgQm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', NULL, NULL, NULL, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account202' WHERE `accounts`.`id` = 202 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (202, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:32', 'jabanilson', NULL, 1, '2012-11-28 22:30:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:32', `updated_at` = '2012-11-28 22:30:32', `subdomain` = 'account203' WHERE `accounts`.`id` = 203  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (203, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 198 WHERE `account_users`.`id` = 149  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 294 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"198", "user_id"=>"72"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 71 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_198_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 18ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:33', '2012-11-28 22:30:33', 'teste@teste.com', '$2a$04$toNsXUkBD5g0645i39mQgumElPjRLSlwXXrLtYwYXK2Zc8wBg/LCC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', NULL, NULL, NULL, '2012-11-28 22:30:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account204' WHERE `accounts`.`id` = 204 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (204, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account205' WHERE `accounts`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account206' WHERE `accounts`.`id` = 206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (206, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 205 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 205 WHERE `account_users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account207' WHERE `accounts`.`id` = 207  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"207"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 74 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 74 AND `account_users`.`account_id` = 207 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:33', '2012-11-28 22:30:33', 'teste@teste.com', '$2a$04$sUGHXaN/DfxW2ty2w5A14Owd4F1bmhi4OGNQ192ibP9cUgSyIwOUa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', NULL, NULL, NULL, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account208' WHERE `accounts`.`id` = 208 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (208, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account209' WHERE `accounts`.`id` = 209  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account210' WHERE `accounts`.`id` = 210  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (210, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 209 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 209 WHERE `account_users`.`id` = 153  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"208"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 75 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 75 AND `account_users`.`account_id` = 208 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 Completed 200 OK in 21ms (Views: 4.1ms | ActiveRecord: 4.7ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:33', '2012-11-28 22:30:33', 'teste@teste.com', '$2a$04$7bqzyNME9.IWW/TAV62oRucC4RN.arfQqT9QZ4wA2nlt5XO12APiO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:33') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', NULL, NULL, NULL, '2012-11-28 22:30:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account211' WHERE `accounts`.`id` = 211 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (211, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account212' WHERE `accounts`.`id` = 212  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account213' WHERE `accounts`.`id` = 213  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (213, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 212 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 212 WHERE `account_users`.`id` = 155  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"211"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 76 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 76 AND `account_users`.`account_id` = 211 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 211 AND `users`.`email` = 'create@controller.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (211, 'create@controller.teste', 76, NULL, '2012-11-28 22:30:33', 'xi9vaLNmY8CpypeWgDT5d6NDAMg') Sent mail to create@controller.teste (147ms) Date: Wed, 28 Nov 2012 20:30:33 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b6908982432_190880435d4875881@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1xi9vaLNmY8CpypeWgDT5d6NDAMg  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/211/users Completed 302 Found in 402ms (ActiveRecord: 2.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:33', '2012-11-28 22:30:33', 'teste@teste.com', '$2a$04$qwJSn0PXMIMdj9tfq8MNCe2DPf0SdxOswGz5/kflXCcYSUDNSSwb2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', NULL, NULL, NULL, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account214' WHERE `accounts`.`id` = 214 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 214 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (214, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account215' WHERE `accounts`.`id` = 215  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account216' WHERE `accounts`.`id` = 216  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (216, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 215 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 215 WHERE `account_users`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"214"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 77 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 77 AND `account_users`.`account_id` = 214 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 214 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (214, 'create@controller.teste', 77, NULL, '2012-11-28 22:30:33', 'TVIC6L-unvzDzYrv5Y_BSpclQpI') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 20:30:33 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b69089adad5_190880435d4875995@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2TVIC6L-unvzDzYrv5Y_BSpclQpI  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/214/users Completed 302 Found in 30ms (ActiveRecord: 2.8ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:33', '2012-11-28 22:30:33', 'teste@teste.com', '$2a$04$vcryY23be8QVpAW.WMAbhuz9QDVrsCGTiivbo8FaPXJFbhSWvkVAi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', NULL, NULL, NULL, '2012-11-28 22:30:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account217' WHERE `accounts`.`id` = 217 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (217, 78) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account218' WHERE `accounts`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account219' WHERE `accounts`.`id` = 219  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (219, 78) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 218 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 218 WHERE `account_users`.`id` = 159  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 78 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 217 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (217, 'create@controller.teste', 78, NULL, '2012-11-28 22:30:33', 'QZJ5vZ95aYrq6wT_otxsJqU_z8g') Sent mail to create@controller.teste (7ms) Date: Wed, 28 Nov 2012 20:30:33 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b69089c0baf_190880435d4876087@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3QZJ5vZ95aYrq6wT_otxsJqU_z8g  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/217/users Completed 302 Found in 31ms (ActiveRecord: 2.5ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:33', '2012-11-28 22:30:33', 'teste@teste.com', '$2a$04$q0dSKDMclmMKxVMvntLa1.E1HiJ.K4FO0pp89vU9KvoCf7PMjwcoW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', NULL, NULL, NULL, '2012-11-28 22:30:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account220' WHERE `accounts`.`id` = 220 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 220 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (220, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account221' WHERE `accounts`.`id` = 221  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account222' WHERE `accounts`.`id` = 222  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (222, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 221 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 221 WHERE `account_users`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account223' WHERE `accounts`.`id` = 223  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 223 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (223, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:33', '9aYDTHLgSPd-vYnAI7PCRkBc9n0') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:30:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b69089d51f5_190880435d4876166@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/49aYDTHLgSPd-vYnAI7PCRkBc9n0  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 79 WHERE `user_invitations`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 79 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.2ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:33', '2012-11-28 22:30:33', 'teste@teste.com', '$2a$04$JxCSdRaVkiHaVainsWa4Y.bGabqaBFVAfkx6/xUw0p.EFvGNmCLqy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', NULL, NULL, NULL, '2012-11-28 22:30:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account224' WHERE `accounts`.`id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (224, 80) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account225' WHERE `accounts`.`id` = 225  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account226' WHERE `accounts`.`id` = 226  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (226, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 225 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 225 WHERE `account_users`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account227' WHERE `accounts`.`id` = 227  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 227 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (227, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:33', 'MrMfkMfRJUb48hG95VLbrfdmSJk') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b69089e800f_190880435d4876251@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5MrMfkMfRJUb48hG95VLbrfdmSJk  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = 80 WHERE `user_invitations`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"5MrMfkMfRJUb48hG95VLbrfdmSJk"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 5 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 1.2ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:33', '2012-11-28 22:30:33', 'teste@teste.com', '$2a$04$TrK8ZBdgNjFgYIcAtmrvuOItD1ImrExaRb17l5z1mDR1Ig3.4oaqK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', NULL, NULL, NULL, '2012-11-28 22:30:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account228' WHERE `accounts`.`id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (228, 81) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account229' WHERE `accounts`.`id` = 229  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:33', 'jabanilson', NULL, 1, '2012-11-28 22:30:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:33', `updated_at` = '2012-11-28 22:30:33', `subdomain` = 'account230' WHERE `accounts`.`id` = 230  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (230, 81) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 229 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 229 WHERE `account_users`.`id` = 165  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account231' WHERE `accounts`.`id` = 231  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account232' WHERE `accounts`.`id` = 232  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 232 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (232, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:34', 'WiqM0IfsJrWd-WGZ3p4nCVnmucU') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6908a1bd46_190880435d48763d4@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/6WiqM0IfsJrWd-WGZ3p4nCVnmucU  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 231 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 231 WHERE `user_invitations`.`id` = 6  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 81 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$ynkCAoSQEtnf58NlZv5bKOkYFyeObBpf91sIytxdlAwYnmIB7A3ci', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account233' WHERE `accounts`.`id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (233, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account234' WHERE `accounts`.`id` = 234  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account235' WHERE `accounts`.`id` = 235  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (235, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 234 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 234 WHERE `account_users`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account236' WHERE `accounts`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account237' WHERE `accounts`.`id` = 237  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 237 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (237, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:34', 'pSbEQw89qOYTWJ3OU5-LfObiLHs') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6908a303c9_190880435d4876487@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/7pSbEQw89qOYTWJ3OU5-LfObiLHs  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 236 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 236 WHERE `user_invitations`.`id` = 7  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"7pSbEQw89qOYTWJ3OU5-LfObiLHs"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 82 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 7 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 236 AND `account_users`.`user_id` = 82  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (236, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 4.4ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$Zz0xlMfFrIXN7OhZmyJg9.BVOGMST.WXZlV9NXjN3kIVmteB2Di7K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account238' WHERE `accounts`.`id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (238, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account239' WHERE `accounts`.`id` = 239  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account240' WHERE `accounts`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (240, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 239 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 239 WHERE `account_users`.`id` = 170  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account241' WHERE `accounts`.`id` = 241  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account242' WHERE `accounts`.`id` = 242  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 242 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (242, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:34', 'XpXoJIe2c8WUlCegbvRuMexZSuM') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6908a48576_190880435d487654c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/8XpXoJIe2c8WUlCegbvRuMexZSuM  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 241 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 241 WHERE `user_invitations`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (241, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"8XpXoJIe2c8WUlCegbvRuMexZSuM"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 83 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 8 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 241 AND `account_users`.`user_id` = 83 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$VLFVgBiFzFm/0/P97WsQ4OEFsNVFNiteB.RFcG5LmnVsrW.gQ6WLa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account243' WHERE `accounts`.`id` = 243 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (243, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account244' WHERE `accounts`.`id` = 244  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account245' WHERE `accounts`.`id` = 245  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (245, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 244 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 244 WHERE `account_users`.`id` = 173  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account246' WHERE `accounts`.`id` = 246  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account247' WHERE `accounts`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 247 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (247, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:34', 'YD_OAVVu-9nIotLS2GwJ1KlvjUs') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6908a60204_190880435d48766d3@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9YD_OAVVu-9nIotLS2GwJ1KlvjUs  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 246 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 246 WHERE `user_invitations`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (246, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9YD_OAVVu-9nIotLS2GwJ1KlvjUs"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 84 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 246 AND `account_users`.`user_id` = 84 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$5knqJjXwHfHyxGAdvPyQmOQA3K4Ur857zuTZDW8TJu3ojjNjoFchm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account248' WHERE `accounts`.`id` = 248 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (248, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account249' WHERE `accounts`.`id` = 249  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account250' WHERE `accounts`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (250, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 249 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 249 WHERE `account_users`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 85 LIMIT 1 Completed 404 Not Found in 2ms  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$U8MMrjrscEwKuYsKPKdGb.KpmBwJYk5lNb8cccpIX/bRPNa3Eumhy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account251' WHERE `accounts`.`id` = 251 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 251 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (251, 86) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account252' WHERE `accounts`.`id` = 252  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account253' WHERE `accounts`.`id` = 253  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (253, 86) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 252 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 252 WHERE `account_users`.`id` = 178  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 86 LIMIT 1 Completed 200 OK in 30ms (Views: 27.3ms | ActiveRecord: 0.3ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$DQ5SbsVz/hVRBNU.IJqH4unPEDX4Dl6vxldnollFPSoJcMuKDTKNy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account254' WHERE `accounts`.`id` = 254 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 254 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (254, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account255' WHERE `accounts`.`id` = 255  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account256' WHERE `accounts`.`id` = 256  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (256, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 255 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 255 WHERE `account_users`.`id` = 180  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 87 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 87  (0.3ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 22:30:34' WHERE `users`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 94ms (Views: 82.3ms | ActiveRecord: 3.7ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$Dn/.xncofhosTDC.iSAtUegWl8gN2VdZkEkHF2P2cC3tf3FTG0od.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account257' WHERE `accounts`.`id` = 257 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 257 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (257, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account258' WHERE `accounts`.`id` = 258  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account259' WHERE `accounts`.`id` = 259  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (259, 88) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 258 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 258 WHERE `account_users`.`id` = 182  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 88 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 88  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 22:30:34' WHERE `users`.`id` = 88  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.3ms)  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account260' WHERE `accounts`.`id` = 260  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account261' WHERE `accounts`.`id` = 261  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (261, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 260 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 260 WHERE `account_users`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = 257) LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$R7g8hWNsBdpGwmo5oSKoaOIPvJw2UA/AzGG9h3Mj72QQ.bOclYMKW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account262' WHERE `accounts`.`id` = 262 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 262 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (262, 89) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account263' WHERE `accounts`.`id` = 263  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account264' WHERE `accounts`.`id` = 264  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (264, 89) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 263 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 263 WHERE `account_users`.`id` = 185  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 89 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 89\n email: teste@teste.com\n encrypted_password: $2a$04$R7g8hWNsBdpGwmo5oSKoaOIPvJw2UA/AzGG9h3Mj72QQ.bOclYMKW\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:34.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:34.000000000Z\n updated_at: 2012-11-28 22:30:34.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_89_destroy', '2012-11-28 22:30:34', '2012-11-28 22:30:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$Zf7quWlnOeg.HS29ihN3pumX.6pZUZanj9Ea0MGWTNE/pndxeRcwG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account265' WHERE `accounts`.`id` = 265 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 265 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (265, 90) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account266' WHERE `accounts`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account267' WHERE `accounts`.`id` = 267  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (267, 90) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 266 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 266 WHERE `account_users`.`id` = 187  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 90 LIMIT 1 Completed 404 Not Found in 2ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$YcEjXjg5Hmz8funIrYcTY.iTN5evObvZTEfruknHWwlep30pp6C6q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account268' WHERE `accounts`.`id` = 268 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 268 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (268, 91) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account269' WHERE `accounts`.`id` = 269  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account270' WHERE `accounts`.`id` = 270  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (270, 91) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 269 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 269 WHERE `account_users`.`id` = 189  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 91\n email: teste@teste.com\n encrypted_password: $2a$04$YcEjXjg5Hmz8funIrYcTY.iTN5evObvZTEfruknHWwlep30pp6C6q\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:34.888942000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:34.889396000Z\n updated_at: 2012-11-28 22:30:34.889396000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_91_destroy', '2012-11-28 22:30:34', '2012-11-28 22:30:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:34', '2012-11-28 22:30:34', 'teste@teste.com', '$2a$04$yq3O75ovBoDYiZd93NzvhOscH7dmoXaF3pqd8PWlgJscCJExZbBd6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', NULL, NULL, NULL, '2012-11-28 22:30:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account271' WHERE `accounts`.`id` = 271 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 271 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (271, 92) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account272' WHERE `accounts`.`id` = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:34', 'jabanilson', NULL, 1, '2012-11-28 22:30:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:34', `updated_at` = '2012-11-28 22:30:34', `subdomain` = 'account273' WHERE `accounts`.`id` = 273  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (273, 92) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 272 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 272 WHERE `account_users`.`id` = 191  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 92 WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 AND `social_accounts`.`id` = 1 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$3.HKmgOA2AtNQWGuxBO6D.eF/LOc8pXiDweo9/oEawMskuoANPB1m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account274' WHERE `accounts`.`id` = 274 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (274, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account275' WHERE `accounts`.`id` = 275  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account276' WHERE `accounts`.`id` = 276  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (276, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 275 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 275 WHERE `account_users`.`id` = 193  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 93 WHERE `social_accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"2"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 AND `social_accounts`.`id` = 2 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$zsqjDH1Yir1eQjObZHeptu2x4Ey0YAAi3nioAbHm8mQdo0QRAFpnK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account277' WHERE `accounts`.`id` = 277 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 277 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (277, 94) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account278' WHERE `accounts`.`id` = 278  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account279' WHERE `accounts`.`id` = 279  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (279, 94) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 278 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 278 WHERE `account_users`.`id` = 195  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 94 WHERE `social_accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', '', '$2a$04$eqS2lCjFqkkQGE9BcmmLZ.YtsEyI9WPNDxttI2KkQYC0J4Hyx./w2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `social_accounts` SET `user_id` = 95 WHERE `social_accounts`.`id` = 4 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account280' WHERE `accounts`.`id` = 280 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 280 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (280, 95) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 AND `social_accounts`.`id` = 4 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$G6KJB0jMMTPNvr2zbdb.7eLW.ATalp6zDpk8JvBdbRX1mWUBNNfzS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account281' WHERE `accounts`.`id` = 281 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (281, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account282' WHERE `accounts`.`id` = 282  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account283' WHERE `accounts`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (283, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 282 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 282 WHERE `account_users`.`id` = 198  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 96 WHERE `social_accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', '', '$2a$04$lQpbXW10iQHfuDrvRXoyU.h0ly/GEW1vEBaLMGykKoM/AEyCqYyjO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `social_accounts` SET `user_id` = 97 WHERE `social_accounts`.`id` = 6 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account284' WHERE `accounts`.`id` = 284 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 284 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (284, 97) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"6"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 AND `social_accounts`.`id` = 6 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$JetaQlSNwdSHsQBWR7P4tOl72ieeQwuGajkOSjvT15LtRDhaBpkRK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account285' WHERE `accounts`.`id` = 285 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 285 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (285, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account286' WHERE `accounts`.`id` = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account287' WHERE `accounts`.`id` = 287  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (287, 98) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 286 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 286 WHERE `account_users`.`id` = 201  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 98 WHERE `social_accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 98 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 98 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$IelIPso8nT2QIMM8mwBO/ehbI7LYjdjwaQM.Be/POiJJPcuBnsaXa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account288' WHERE `accounts`.`id` = 288 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 288 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (288, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account289' WHERE `accounts`.`id` = 289  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account290' WHERE `accounts`.`id` = 290  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (290, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 289 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 289 WHERE `account_users`.`id` = 203  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 99 WHERE `social_accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 99 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 99 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$z7Ei3MyEwi4A6/hL5w2/eeNxWd3Z3gI8oc2bwYVsQQ2zvH.SAEAae', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account291' WHERE `accounts`.`id` = 291 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 291 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (291, 100) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account292' WHERE `accounts`.`id` = 292  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account293' WHERE `accounts`.`id` = 293  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (293, 100) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 292 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 292 WHERE `account_users`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 100 WHERE `social_accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account294' WHERE `accounts`.`id` = 294 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 294 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (294, 101) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 101\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:35.474377000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:35.475032000Z\n updated_at: 2012-11-28 22:30:35.475032000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_101', '2012-12-05 22:30:35', '2012-11-28 22:30:35')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 101 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 101 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 101) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$zKszELIWOKJWanf2xHrrUuPeM/VKGBPKlXgVkeVIVLGoS3HB5A0Oa', `updated_at` = '2012-11-28 22:30:35' WHERE `users`.`id` = 101  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_101' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 AND (accounts.id = 291) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 3.9ms)  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$JmG0VBtQpkrkpl6hS4fWsuibNymARxZakMgAs6LehN7FOlB0yUsjK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account295' WHERE `accounts`.`id` = 295 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 295 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (295, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account296' WHERE `accounts`.`id` = 296  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account297' WHERE `accounts`.`id` = 297  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (297, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 296 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 296 WHERE `account_users`.`id` = 208  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 102 WHERE `social_accounts`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account298' WHERE `accounts`.`id` = 298 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 298 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (298, 103) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 103\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:35.559635000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:35.560309000Z\n updated_at: 2012-11-28 22:30:35.560309000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_103', '2012-12-05 22:30:35', '2012-11-28 22:30:35')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 103 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 103 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 103) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$iHBXEFbaZKuQvRiPkWQBdOziLurS8VmvW1hpMvG0tcZApPICVYc.y', `updated_at` = '2012-11-28 22:30:35' WHERE `users`.`id` = 103  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_103' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 AND (accounts.id = 295) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$0lj58CnJmxDhL7uLv6tdK..j.S6sd.BNKWornA4I9/.F8SbnMRrja', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account299' WHERE `accounts`.`id` = 299 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 299 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (299, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account300' WHERE `accounts`.`id` = 300  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account301' WHERE `accounts`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (301, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 300 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 300 WHERE `account_users`.`id` = 211  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 104 WHERE `social_accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account302' WHERE `accounts`.`id` = 302 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (302, 105) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 105\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:35.643686000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:35.644371000Z\n updated_at: 2012-11-28 22:30:35.644371000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_105', '2012-12-05 22:30:35', '2012-11-28 22:30:35')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 105 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 105 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 105) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$xJ4oPnsqGrIWnJLUjt6XgOzxaXV42/x9WA2L1q29dtO.rKmJ8OwIG', `updated_at` = '2012-11-28 22:30:35' WHERE `users`.`id` = 105  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_105' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 AND (accounts.id = 299) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.6ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$DYUNQrWthQmuXWimUhg3b.mN32m1WSQ/T7lNd.tjikPnMusLzgE7W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account303' WHERE `accounts`.`id` = 303 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 303 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (303, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account304' WHERE `accounts`.`id` = 304  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account305' WHERE `accounts`.`id` = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (305, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 304 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 304 WHERE `account_users`.`id` = 214  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 106 WHERE `social_accounts`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account306' WHERE `accounts`.`id` = 306 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 306 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (306, 107) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 107\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:35.726706000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:35.727393000Z\n updated_at: 2012-11-28 22:30:35.727393000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_107', '2012-12-05 22:30:35', '2012-11-28 22:30:35')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 107 LIMIT 1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (1.2ms) ROLLBACK  (0.3ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account307' WHERE `accounts`.`id` = 307 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 307 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (307, 108) AccountRole Exists (0.8ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 108\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:35.760561000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:35.761641000Z\n updated_at: 2012-11-28 22:30:35.761641000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_108', '2012-12-05 22:30:35', '2012-11-28 22:30:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35' WHERE `users`.`id` = 108  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 126ms (ActiveRecord: 7.0ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 5ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$KKgSleFsY6j3Vonv3nIsI.cejRFB9OPEFWe.EDqfiehYaKWgo3QCy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account308' WHERE `accounts`.`id` = 308 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (308, 109) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account309' WHERE `accounts`.`id` = 309  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account310' WHERE `accounts`.`id` = 310  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (310, 109) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 309 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 309 WHERE `account_users`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 109 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:35', '2012-11-28 22:30:35', 'teste@teste.com', '$2a$04$5apIUNojNO6NXzPK/6y2s.18klyOlEo6wErkUI24ZTyLn8kRnFLJK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', NULL, NULL, NULL, '2012-11-28 22:30:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account311' WHERE `accounts`.`id` = 311 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 110) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account312' WHERE `accounts`.`id` = 312  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:35', 'jabanilson', NULL, 1, '2012-11-28 22:30:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:35', `updated_at` = '2012-11-28 22:30:35', `subdomain` = 'account313' WHERE `accounts`.`id` = 313  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (313, 110) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 312 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 312 WHERE `account_users`.`id` = 220  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'user2@email.email', '$2a$04$0xQ.5EpdGv/AAg4nrPJB9.B74FacQd4EUGQVAUFO3XbpzKcc48aUq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account314' WHERE `accounts`.`id` = 314 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (314, 111) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 111) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 311 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 446 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 110 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.6ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'teste@teste.com', '$2a$04$uIPgql2ywTVjCnIvy8apq.ECVg9XAk4j1IgGCCUlsL/TFHU0c4i9.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account315' WHERE `accounts`.`id` = 315 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 112) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account316' WHERE `accounts`.`id` = 316  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account317' WHERE `accounts`.`id` = 317  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (317, 112) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 316 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 316 WHERE `account_users`.`id` = 224  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'user2@email.email', '$2a$04$qj5d.EVeMgLm/XSSGHCRpu0r/oeoaTeaCXEy5tXQ9.AF96T6t5jky', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account318' WHERE `accounts`.`id` = 318 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (318, 113) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 113) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 455 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 112 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'teste@teste.com', '$2a$04$RqtAPSqQeCSo5tgOJ9uZAuTra1q36.vKk8N4KTGhtVJmjCxcB3NeC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account319' WHERE `accounts`.`id` = 319 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 114) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account320' WHERE `accounts`.`id` = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account321' WHERE `accounts`.`id` = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (321, 114) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 320 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 320 WHERE `account_users`.`id` = 228  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'user2@email.email', '$2a$04$gy49FU.T10Tp6sh0uz.iEePB32xGaiV8KT5JrmQNT6.s1QjbbnZs.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account322' WHERE `accounts`.`id` = 322 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (322, 115) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 115) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 319 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 465 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"319"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 114 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"319"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.6ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'teste@teste.com', '$2a$04$rpOEBeknDwruVV0a4NcpS.90Sv/iMXW4MLk29THQa8SWDk5f8iYD6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account323' WHERE `accounts`.`id` = 323 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 116) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account324' WHERE `accounts`.`id` = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account325' WHERE `accounts`.`id` = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (325, 116) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 324 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 324 WHERE `account_users`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'user2@email.email', '$2a$04$L0T9gpO047XmDWf8VW/q0unQkClPWBhZTKlFfpcwRLofLdHIwyTGO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account326' WHERE `accounts`.`id` = 326 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (326, 117) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 323 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 474 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"323"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 116 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 6ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'teste@teste.com', '$2a$04$YWpKUw9kH1U51uJJQhHRZ.HwyzsNQVqVKsEnLsAifhM/ljYMLIyMW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account327' WHERE `accounts`.`id` = 327 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account328' WHERE `accounts`.`id` = 328  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account329' WHERE `accounts`.`id` = 329  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (329, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 328 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 328 WHERE `account_users`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'user2@email.email', '$2a$04$p9DD3awANfKOLTZNlfDFQO0LBO6GE780XTOzqhwXa7PEGRpKXlnyi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account330' WHERE `accounts`.`id` = 330 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 330 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (330, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 119) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 327 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 483 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 484  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 491  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"327"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 118 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'teste@teste.com', '$2a$04$UIYNiXYBdN/omj5GWIB4LuTIZOtTWoEbDt38RQiDERV349IEr8haS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account331' WHERE `accounts`.`id` = 331 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account332' WHERE `accounts`.`id` = 332  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account333' WHERE `accounts`.`id` = 333  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (333, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 332 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 332 WHERE `account_users`.`id` = 240  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:36', '2012-11-28 22:30:36', 'user2@email.email', '$2a$04$o9qK4bC.Djy3qwxgdBh.gemaCLwBZP1Ei/Z5tWozudgAZXEP1fvca', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', NULL, NULL, NULL, '2012-11-28 22:30:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account334' WHERE `accounts`.`id` = 334 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 334 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (334, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 331 LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 120 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 231213231231312312341 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account335' WHERE `accounts`.`id` = 335  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 335 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (335, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:36', '3D-BpX7Jw4enzLib1f2bpaZEa1o') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:36 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6908ca7c83_190880435d4876771@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/103D-BpX7Jw4enzLib1f2bpaZEa1o  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:36', 'jabanilson', NULL, 1, '2012-11-28 22:30:36')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:36', `updated_at` = '2012-11-28 22:30:36', `subdomain` = 'account336' WHERE `accounts`.`id` = 336  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 336 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (336, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:36', 'q63BZQrSWiJ9eiVU1n5LN4U_Oqs') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:36 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6908cb1dd4_190880435d4876893@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/11q63BZQrSWiJ9eiVU1n5LN4U_Oqs  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account337' WHERE `accounts`.`id` = 337  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 337 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (337, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account338' WHERE `accounts`.`id` = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 338 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (338, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account339' WHERE `accounts`.`id` = 339  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 339 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (339, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account340' WHERE `accounts`.`id` = 340  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 340 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (340, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account341' WHERE `accounts`.`id` = 341  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 341 AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (341, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account342' WHERE `accounts`.`id` = 342  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 342 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (342, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account343' WHERE `accounts`.`id` = 343  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account344' WHERE `accounts`.`id` = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 344 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (344, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account345' WHERE `accounts`.`id` = 345  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (345, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account346' WHERE `accounts`.`id` = 346  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 346 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (346, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account347' WHERE `accounts`.`id` = 347  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 347 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (347, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account348' WHERE `accounts`.`id` = 348  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url1.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url1.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url2.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 348  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 31  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 31  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 32 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 32 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account349' WHERE `accounts`.`id` = 349  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 349 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (349, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account350' WHERE `accounts`.`id` = 350  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 350 AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (350, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account351' WHERE `accounts`.`id` = 351  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 351 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (351, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account352' WHERE `accounts`.`id` = 352  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 352 AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (352, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account353' WHERE `accounts`.`id` = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 353 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (353, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:37', 'jabanilson', NULL, 1, '2012-11-28 22:30:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:37', `updated_at` = '2012-11-28 22:30:37', `subdomain` = 'account354' WHERE `accounts`.`id` = 354  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (354, NULL, 'www.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:39', 'jabanilson', NULL, 1, '2012-11-28 22:30:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:39', `updated_at` = '2012-11-28 22:30:39', `subdomain` = 'account355' WHERE `accounts`.`id` = 355  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 355 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (355, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:39', 'jabanilson', NULL, 1, '2012-11-28 22:30:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:39', `updated_at` = '2012-11-28 22:30:39', `subdomain` = 'account356' WHERE `accounts`.`id` = 356  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`url` = 'invalid.url.false' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (356, NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 40  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`verified` = 1 LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:39', 'jabanilson', NULL, 1, '2012-11-28 22:30:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:39', `updated_at` = '2012-11-28 22:30:39', `subdomain` = 'account357' WHERE `accounts`.`id` = 357  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 357 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (357, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:39', 'jabanilson', NULL, 1, '2012-11-28 22:30:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:39', `updated_at` = '2012-11-28 22:30:39', `subdomain` = 'account358' WHERE `accounts`.`id` = 358  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 358 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (358, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 42  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:39', 'jabanilson', NULL, 1, '2012-11-28 22:30:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:39', `updated_at` = '2012-11-28 22:30:39', `subdomain` = 'account359' WHERE `accounts`.`id` = 359  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (359, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`verified` = 1 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 43  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 42 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:40', 'jabanilson', NULL, 1, '2012-11-28 22:30:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:40', `updated_at` = '2012-11-28 22:30:40', `subdomain` = 'account360' WHERE `accounts`.`id` = 360  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 360 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (360, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:40', 'jabanilson', NULL, 1, '2012-11-28 22:30:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:40', `updated_at` = '2012-11-28 22:30:40', `subdomain` = 'account361' WHERE `accounts`.`id` = 361  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:40', 'jabanilson', NULL, 1, '2012-11-28 22:30:40')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:40', `updated_at` = '2012-11-28 22:30:40', `subdomain` = 'account362' WHERE `accounts`.`id` = 362  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (362, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 45 LIMIT 1  (84.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account363' WHERE `accounts`.`id` = 363  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 363 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (363, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account364' WHERE `accounts`.`id` = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account365' WHERE `accounts`.`id` = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 365 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (365, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account366' WHERE `accounts`.`id` = 366  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 366 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (366, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 47  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 48  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 364  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 48  (0.0ms) RELEASE SAVEPOINT active_record_1  (3.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account367' WHERE `accounts`.`id` = 367  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 367 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (367, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account368' WHERE `accounts`.`id` = 368  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account369' WHERE `accounts`.`id` = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 369 AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (369, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account370' WHERE `accounts`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 370 AND `account_domains`.`url` = 'www.url2.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (370, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 368  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 50 LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account371' WHERE `accounts`.`id` = 371  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 371 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (371, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account372' WHERE `accounts`.`id` = 372  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account373' WHERE `accounts`.`id` = 373  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 373 AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (373, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account374' WHERE `accounts`.`id` = 374  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 374 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (374, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 53  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$ORkRmc9U2kCiLfIlZVZXluV1Lv5.Xtdpe/bc4q2l2LYya2uwi.B.6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account375' WHERE `accounts`.`id` = 375 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (375, 122) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 375 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 502  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 243) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$NcmFLeus3pcWDDwBtwl2POGunYr6YW.1fxZMHjvFLGUU1JowqIK7.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account376' WHERE `accounts`.`id` = 376 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 376 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (376, 123) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 376 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 244) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1  (1.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$N366BDNSsFdFdG0p1R9aaueo9rPQVByTVBB6b.wpAePrxUWFPVmIO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account377' WHERE `accounts`.`id` = 377 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 377 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (377, 124) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 377 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 508  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 245) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$FQKntTYcsz0F/vPj0J90v.O5jVfIHDDYqBVWZ5NYfurULFybCYhGG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account378' WHERE `accounts`.`id` = 378 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 378 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (378, 125) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 378 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 511  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 246) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'guest')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != 512 AND `account_roles`.`account_user_id` = 246) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` LIMIT 1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'me@me.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'me@me.com', '$2a$04$YlJnEUd0CpNzXlQ4jFP6buALJHOq7EAveHfMYnHhoTTrqtisq780C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account384' WHERE `accounts`.`id` = 384 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 384 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (384, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account385' WHERE `accounts`.`id` = 385  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account386' WHERE `accounts`.`id` = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (386, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 385 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 385 WHERE `account_users`.`id` = 248  (0.1ms) RELEASE SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` INNER JOIN `account_users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 385 AND `users`.`id` = 126 LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdominio' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account389' WHERE `accounts`.`id` = 389  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 389 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account391' WHERE `accounts`.`id` = 391  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 391 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account393' WHERE `accounts`.`id` = 393  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 393\n created_at: 2012-11-28 22:30:42.486418000Z\n updated_at: 2012-11-28 22:30:42.486418000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account393\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_393_destroy', '2012-11-28 22:30:42', '2012-11-28 22:30:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_393_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account395' WHERE `accounts`.`id` = 395  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_395_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account397' WHERE `accounts`.`id` = 397  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 397\n created_at: 2012-11-28 22:30:42.505310000Z\n updated_at: 2012-11-28 22:30:42.505310000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account397\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_397_destroy', '2012-11-28 22:30:42', '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_397_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account399' WHERE `accounts`.`id` = 399  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_399_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account401' WHERE `accounts`.`id` = 401  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 401\n created_at: 2012-11-28 22:30:42.523013000Z\n updated_at: 2012-11-28 22:30:42.523013000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account401\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_401_destroy', '2012-11-28 22:30:42', '2012-11-28 22:30:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 21  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account403' WHERE `accounts`.`id` = 403  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 403\n created_at: 2012-11-28 22:30:42.536313000Z\n updated_at: 2012-11-28 22:30:42.536313000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account403\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_403_destroy', '2012-11-28 22:30:42', '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 22  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account405' WHERE `accounts`.`id` = 405  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account407' WHERE `accounts`.`id` = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 407\n created_at: 2012-11-28 22:30:42.555761000Z\n updated_at: 2012-11-28 22:30:42.555761000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account407\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_407_destroy', '2012-11-28 22:30:42', '2012-11-28 22:30:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42' WHERE `delayed_jobs`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$3V7P2i/lJjjR4hxvNyi/4ObMDw/knL8OkcJ2ituX1WaZclGXUVw2u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account409' WHERE `accounts`.`id` = 409 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 409 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (409, 127) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 127 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 409 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 518  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 249 AND `account_roles`.`name` = 'user' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$MFtOj/geb1ri6NqrDONvMOI3Xv155LoUlqHp7OdPyanVVMn.dwjN6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account411' WHERE `accounts`.`id` = 411 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 411 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (411, 128) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 128 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 411 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 521  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 250 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account413' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account413' AND `accounts`.`id` != 413) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'Named', `updated_at` = '2012-11-28 22:30:42' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account415' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account415' AND `accounts`.`id` != 415) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = NULL, `updated_at` = '2012-11-28 22:30:42' WHERE `accounts`.`id` = 415  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account417' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account417' AND `accounts`.`id` != 417) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-11-28 22:30:42' WHERE `accounts`.`id` = 417  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 419 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (419, NULL, 'getfromdomain.account.test', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 55  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'getfromdomain.account.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 419 LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 421 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (421, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 56  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'subdomainfind.iugusdk.dev' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'subdomainfind' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'unico', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:30:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 423 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (423, NULL, 'getfromdomain.account.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 57  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'notused.domain.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'notused.domain.test' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account424' WHERE `accounts`.`id` = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$r08n9.2LQNH5MFpYtpfYqO0J1KEpxZhEv9iIxncXTGcLX46NBYxMm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account425' WHERE `accounts`.`id` = 425 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (425, 129) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (424, 129) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account426' WHERE `accounts`.`id` = 426  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$5uDRk/oZhSzVy5fAC6RoqONDLiocp5Y9odksO6Iw2ez81/9J6CVAC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account427' WHERE `accounts`.`id` = 427 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 427 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (427, 130) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (426, 130) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 426 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 530  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 254) LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 531 AND `account_roles`.`account_user_id` = 254) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254 AND `account_roles`.`name` = 'user' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account428' WHERE `accounts`.`id` = 428  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$pjFHeJ1hufsW25HLQfcbDuwVH4lJyTN6FOvxupn/dYuVcwafJEu3q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account429' WHERE `accounts`.`id` = 429 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 429 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (429, 131) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (428, 131) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 428 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 535  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 256) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 536 AND `account_roles`.`account_user_id` = 256) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account430' WHERE `accounts`.`id` = 430  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$Fkal98pHdxYCH8Y28joyxOOZFHG2KAp7Zv5ohbpEU05GW6UaSUzDm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account431' WHERE `accounts`.`id` = 431 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 431 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (431, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (430, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 430 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 540  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 258) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 541 AND `account_roles`.`account_user_id` = 258) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258 AND `account_roles`.`name` = 'user' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', 'jabanilson', NULL, 1, '2012-11-28 22:30:42')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account432' WHERE `accounts`.`id` = 432  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:42', '2012-11-28 22:30:42', 'teste@teste.com', '$2a$04$lNAJqM/n/CGx4SbEyl9XGe1cNLO3fKfG9HVPGSPtUpCVCFgAtGdLK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:42', NULL, NULL, NULL, '2012-11-28 22:30:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:42', `updated_at` = '2012-11-28 22:30:42', `subdomain` = 'account433' WHERE `accounts`.`id` = 433 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 433 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (433, 133) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (432, 133) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'notowner@account.test', '$2a$04$4NO7oeysXJJg0btrWitl7uKBKJXqOoxV.9CmLfkZs93TuOu127pQy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account434' WHERE `accounts`.`id` = 434 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (434, 134) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account435' WHERE `accounts`.`id` = 435  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (435, 134) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 432 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 432 WHERE `account_users`.`id` = 262  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 432 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 545  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260 AND `account_roles`.`name` = 'my_owner' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account436' WHERE `accounts`.`id` = 436  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$Yz64ILQgFQNpk2zBlx/5x.pt8weQbpq9RuI2mxbZJI7mQmdUCBIA2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account437' WHERE `accounts`.`id` = 437 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 437 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (437, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (436, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'notowner@account.test', '$2a$04$XpGE/vx4CT2/koEtOGvXouolDoDCYnkD8GGuT5fN71nxVmwNGazJO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account438' WHERE `accounts`.`id` = 438 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 438 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (438, 136) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account439' WHERE `accounts`.`id` = 439  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (439, 136) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 436 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 436 WHERE `account_users`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 436 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 553  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264 AND `account_roles`.`name` = 'my_user' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account440' WHERE `accounts`.`id` = 440  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$SCqKyH96Jnb3JLWgVW3VZ.z/0C43m/v/sbDJiVLdhkrYtMxTBC0Xm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account441' WHERE `accounts`.`id` = 441 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (441, 137) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (440, 137) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 440 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 562  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_guest' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268 AND `account_roles`.`name` = 'my_guest' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account442' WHERE `accounts`.`id` = 442  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$T56r8HstlA1KaXGCPweVr.6ipStbAou4qUbJEuZnTp16LTOixt5Um', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account443' WHERE `accounts`.`id` = 443 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (443, 138) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (442, 138) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 270  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 442 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 567  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account444' WHERE `accounts`.`id` = 444  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$4dOMFOAB9AUcVcS3oXS1m.Zb.KKuBXZ0o82x9YbTK6.4zOD6.tPyq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account445' WHERE `accounts`.`id` = 445 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (445, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (444, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 272  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 444 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 572  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account446' WHERE `accounts`.`id` = 446  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$Bnpt1e7nUAMd9ajvK4home4hrOL9DQPTwKRBSYca40K.rDv7HXE.m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account447' WHERE `accounts`.`id` = 447 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (447, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (446, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 274  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 446 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 576  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account448' WHERE `accounts`.`id` = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$.j1IjpSrRqR7Pq0/H8k5H.xIk0U456GUUShkKATZT6auA1JVLeu16', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account449' WHERE `accounts`.`id` = 449 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 449 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (449, 141) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (448, 141) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 276  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 448 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 580  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account450' WHERE `accounts`.`id` = 450  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$8y4w6fUa6j3DIvcizkRYmeHjndu12UIB5Lwc2ACbDEs8.blF4roDC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account451' WHERE `accounts`.`id` = 451 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (451, 142) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (450, 142) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 278\n account_id: 450\n user_id: 142\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_278_destroy', '2012-11-28 22:30:43', '2012-11-28 22:30:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_278_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account452' WHERE `accounts`.`id` = 452  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$g5fPSdArOMtONGDOGL15LeGDfCHoJy1pdpTdwGEAaPlN3NyJYYN1S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account453' WHERE `accounts`.`id` = 453 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (453, 143) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (452, 143) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_280_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account454' WHERE `accounts`.`id` = 454  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$h1YFEMXrwcZ7UofjtMD5Rum5eSJUvHuYEoUQU/fYNCg43pmmPWuei', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account455' WHERE `accounts`.`id` = 455 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (455, 144) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (454, 144) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account456' WHERE `accounts`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 282\n account_id: 454\n user_id: 144\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_282_destroy', '2012-11-28 22:30:43', '2012-11-28 22:30:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_282_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account457' WHERE `accounts`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$XCXva9DnjRnxdXYVsJTOY.Cm1czbUfrjbt6plV1CIyX/6U7qumjEi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account458' WHERE `accounts`.`id` = 458 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (458, 145) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (457, 145) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account459' WHERE `accounts`.`id` = 459  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_284_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account460' WHERE `accounts`.`id` = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$YCSzCDoE2yoVGU7lnc/iA.ue6DB.UG.JVcKFJ1K4v2HdQ9h0DgCKK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account461' WHERE `accounts`.`id` = 461 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 461 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (461, 146) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (460, 146) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account462' WHERE `accounts`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 286\n account_id: 460\n user_id: 146\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_286_destroy', '2012-11-28 22:30:43', '2012-11-28 22:30:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 26  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account463' WHERE `accounts`.`id` = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$siCkyEH4MTf6IyFQw9eRCex2IdcMW52aByJQVvNVfsDlny66AEtta', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account464' WHERE `accounts`.`id` = 464 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 464 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (464, 147) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (463, 147) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account465' WHERE `accounts`.`id` = 465  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 288\n account_id: 463\n user_id: 147\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_288_destroy', '2012-11-28 22:30:43', '2012-11-28 22:30:43')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 27  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account466' WHERE `accounts`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$wjBuYWyBay.XxOtdJTmbve85A9FP.25VbeyvyAGIqWYR9klFLudHi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account467' WHERE `accounts`.`id` = 467 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 467 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (467, 148) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (466, 148) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account468' WHERE `accounts`.`id` = 468  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account469' WHERE `accounts`.`id` = 469  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$Tj4mtGxSP6x22l8AbMRsc.NypBmb0FWv7CU5e5asUyzTp1MZc6Sg.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account470' WHERE `accounts`.`id` = 470 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 470 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (470, 149) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (469, 149) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account471' WHERE `accounts`.`id` = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 292\n account_id: 469\n user_id: 149\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_292_destroy', '2012-11-28 22:30:43', '2012-11-28 22:30:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43' WHERE `delayed_jobs`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account472' WHERE `accounts`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 472 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:43', 'api token', '8dca826167ec6689ad11fa9ea252b5e7', 472, 'Account', '2012-11-28 22:30:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '8dca826167ec6689ad11fa9ea252b5e7' LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '8dca826167ec6689ad11fa9ea252b5e7' LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account473' WHERE `accounts`.`id` = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 473 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:43', 'api token', '1a09f5117ab9e34dbf3efa0a069a75ec', 473, 'Account', '2012-11-28 22:30:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account474' WHERE `accounts`.`id` = 474  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 474 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:43', 'api token', 'cfceeeae976e070010c98beb84956e45', 474, 'Account', '2012-11-28 22:30:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account475' WHERE `accounts`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 475 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:43', 'api token', 'e871483d45f60346440e45e08aca7ee8', 475, 'Account', '2012-11-28 22:30:43')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account476' WHERE `accounts`.`id` = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:43', 'token 1', '389cb45b39141412f085d2658254e09a', 476, 'Account', '2012-11-28 22:30:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`token` = BINARY '389cb45b39141412f085d2658254e09a' AND `api_tokens`.`id` != 8) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`id` != 8 AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account477' WHERE `accounts`.`id` = 477  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 477 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:30:43', 'api token', 'a1b679b2e80271c68a6162f501bd46df', 477, 'Account', '2012-11-28 22:30:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', '', '$2a$04$c7TDJQgEg4sEPosa.zk1Ue8Wfa3Kx8Ya2D4sVzF9BkJ7b2lhuKMlO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account478' WHERE `accounts`.`id` = 478 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 478 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (478, 150) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 150 WHERE `social_accounts`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$VWWgwpSROiqW/hhDRh4ypuYbKPajvzGAClAeENKbI3S4gA9oh1Vu.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account479' WHERE `accounts`.`id` = 479 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 479 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (479, 151) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 151)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '', `updated_at` = '2012-11-28 22:30:43' WHERE `users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 151  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'teste@teste.com', '$2a$04$UuIKMud4/FrXW8Ww0fVmiu/Wh8nUi/YGdUXOp1EZBNcFFrV/ecW2i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account480' WHERE `accounts`.`id` = 480 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 480 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (480, 152) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 152)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'testing@email.test' AND `users`.`id` != 152) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '$2a$04$Wg2ZeYDYtEhAvyi9VtQk4uqh4rWt0.IixSKZpw1f0ZK2LtcGFPYDu', `updated_at` = '2012-11-28 22:30:43' WHERE `users`.`id` = 152  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 15  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', 'jabanilson', NULL, 1, '2012-11-28 22:30:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account481' WHERE `accounts`.`id` = 481  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:43', '2012-11-28 22:30:43', 'invited@test.test', '$2a$04$nR5w10BUOhKh51fM65sen.TP9HG54LH9zs9.MaTBuebB5B5EjJrmS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:43', NULL, NULL, NULL, '2012-11-28 22:30:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:43', `updated_at` = '2012-11-28 22:30:43', `subdomain` = 'account482' WHERE `accounts`.`id` = 482 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (482, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 481 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (481, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 481 AND `users`.`email` = 'invited@test.test'  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:30:43', '_Vtweg0tR7sgJrlc3NoEuqxWHEw') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:43 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b69093ed23c_190880435d487699e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/12_Vtweg0tR7sgJrlc3NoEuqxWHEw  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:30:43', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:43 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b69093f3377_190880435d4877065@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/13oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 13 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:30:44', 'GiG9s_u1m_T0dFGpmmW8LvNPC-c') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6909454f4_190880435d4877145@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/14GiG9s_u1m_T0dFGpmmW8LvNPC-c  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:30:44', 'Z9E7updJdymOKd4fR_ijnfpArJc') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b69094b6de_190880435d48772de@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/15Z9E7updJdymOKd4fR_ijnfpArJc  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account483' WHERE `accounts`.`id` = 483  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 483 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (483, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:44', 'bLD87WHpOhlVbH-ycseojxmW4Q8') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b690941289a_190880435d48773bf@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/16bLD87WHpOhlVbH-ycseojxmW4Q8  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 16 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account484' WHERE `accounts`.`id` = 484  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 484 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (484, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:44', '1G98KHePTA4FmpF1bOHGKkxwT-c') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6909419f64_190880435d48774f5@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/171G98KHePTA4FmpF1bOHGKkxwT-c  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.5ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 1238 LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account485' WHERE `accounts`.`id` = 485  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 485 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (485, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:44', 'TfXBw5mLrjwGHGeX0-fvhuTsrCM') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6909421887_190880435d487751c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/18TfXBw5mLrjwGHGeX0-fvhuTsrCM  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account486' WHERE `accounts`.`id` = 486  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$o23f1OTpgkAQYJN.2qOg9uuczzgTFs7CCNxiSz1nxsFLQy3FxeADG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account487' WHERE `accounts`.`id` = 487 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (487, 154) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 486 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 486 WHERE `user_invitations`.`id` = 18  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (486, 154) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (299) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (486)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account488' WHERE `accounts`.`id` = 488  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 488 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (488, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:44', 'nqp5wPd54Mp2DZ-e0TsZo_HCyeQ') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b690944a8d9_190880435d4877694@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/19nqp5wPd54Mp2DZ-e0TsZo_HCyeQ  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account489' WHERE `accounts`.`id` = 489  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$KUlGMUZQQhoBr.r8kxhqxO5AmWOxOk/A6i6BONSzQZjDJPMVS/.Eq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account490' WHERE `accounts`.`id` = 490 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 490 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (490, 155) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 489 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = 19  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 488 AND `account_users`.`user_id` = 155  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (488, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 488 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 630  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301 AND `account_roles`.`name` = 'user' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account491' WHERE `accounts`.`id` = 491  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 491 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (491, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:44', 'SPQJ_JaEHpU7jeb6-OWHusMEqNg') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b690945f227_190880435d4877744@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/20SPQJ_JaEHpU7jeb6-OWHusMEqNg  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account492' WHERE `accounts`.`id` = 492  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$b1meBYg2pdbbBjmAVtU1rufyFVGlP74qVwuXLJYZg3NBb5d0i.b4O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account493' WHERE `accounts`.`id` = 493 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 493 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (493, 156) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 492 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 492 WHERE `user_invitations`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 492 AND `account_users`.`user_id` = 156  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (492, 156) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account494' WHERE `accounts`.`id` = 494  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 494 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (494, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:30:44', 'ooBRPTFQ7Yq5rTh-MP9EVzs_yoU') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6909470e9a_190880435d48778ed@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/21ooBRPTFQ7Yq5rTh-MP9EVzs_yoU  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account495' WHERE `accounts`.`id` = 495  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$ka8Gbt6BDG3T0MkHhIcNL.X52sob4QsmpdpTXEWjSrvdZuiwV19RW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account496' WHERE `accounts`.`id` = 496 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (496, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 495 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 495 WHERE `user_invitations`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (495, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 495 AND `account_users`.`user_id` = 157  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$jZw3XTawXMh8E8hT4NoojuIDR3Hh5vmUMQXszspJxvRx8ovWhJ3mS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account497' WHERE `accounts`.`id` = 497 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (497, 158) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$n9KjfV/.1GOacGa.RFTA4Otjpnud/CHfiLbsSjh8bdp.PVI9yn7am', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account498' WHERE `accounts`.`id` = 498 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (498, 159) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$mQ2ToqDFg1.ZbZXirQL1Zu1oJKN.aJn2FylzFykceLJHjE7YAN9uO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account499' WHERE `accounts`.`id` = 499 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 499 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (499, 160) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$eXKGknywx6HhUQxW1iWK/O.HyPaU.iUVbCn2JmBL9wLDX7D2DrpD.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account500' WHERE `accounts`.`id` = 500 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (500, 161) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 161  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$xiV.tahT7ZijGQK0K7m5NeinxF8FWGqBbvtUbixmxgKvq/KyF4qBi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:44', 'User', '39131c649185410574ad7d2856834696', 162, 'User', '2012-11-28 22:30:44') ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account501' WHERE `accounts`.`id` = 501 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 501 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (501, 162) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'teste@teste.com', '$2a$04$AyJByRpA/Pb86WwqIto8xui5K7oXNyPrna731.s2jKbvQCUq09/WW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:44', 'User', '7ed654bd049e1725bcca8dd4bcdcf267', 163, 'User', '2012-11-28 22:30:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account502' WHERE `accounts`.`id` = 502 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 502 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (502, 163) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69094a7f38_190880435d48779a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'account1@before.destroy', '$2a$04$MQcS9FgcIcUvDrOdeBEAeOYVOiC1.LqsW6xvb1kSvgKPraDRes7Mm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:44', 'User', 'ff84ce1882d6922171b812a0975058ec', 164, 'User', '2012-11-28 22:30:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account503' WHERE `accounts`.`id` = 503 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (503, 164) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b69094b2c6b_190880435d487809c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 164\n email: account1@before.destroy\n encrypted_password: $2a$04$MQcS9FgcIcUvDrOdeBEAeOYVOiC1.LqsW6xvb1kSvgKPraDRes7Mm\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:44.701487000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:44.701867000Z\n updated_at: 2012-11-28 22:30:44.701867000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_164_destroy', '2012-11-28 22:30:44', '2012-11-28 22:30:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_164_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 164 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (312) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (503) SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 312\n account_id: 503\n user_id: 164\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_312_destroy', '2012-11-28 22:30:44', '2012-11-28 22:30:44') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 164 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 503 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 503\n created_at: 2012-11-28 22:30:44.000000000Z\n updated_at: 2012-11-28 22:30:44.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account503\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_503_destroy', '2012-11-28 22:30:44', '2012-11-28 22:30:44') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_503_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'account1@before.destroy', '$2a$04$w4hFyymF2vmIlMVTHMg4Be.6JeBqY8L6O.d43drZZ9RrWIVFxtFpC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:44', 'User', 'ab63e72259d3e38ced7cc902af9c2db5', 165, 'User', '2012-11-28 22:30:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account504' WHERE `accounts`.`id` = 504 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 504 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (504, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b69094da518_190880435d48781ac@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', 'jabanilson', NULL, 1, '2012-11-28 22:30:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account505' WHERE `accounts`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (505, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165 ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 165\n email: account1@before.destroy\n encrypted_password: $2a$04$w4hFyymF2vmIlMVTHMg4Be.6JeBqY8L6O.d43drZZ9RrWIVFxtFpC\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:44.863879000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:44.864272000Z\n updated_at: 2012-11-28 22:30:44.864272000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_165_destroy', '2012-11-28 22:30:44', '2012-11-28 22:30:44')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_165_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 165 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (313, 314) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (504, 505) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 313\n account_id: 504\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_313_destroy', '2012-11-28 22:30:44', '2012-11-28 22:30:44') SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 314\n account_id: 505\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_314_destroy', '2012-11-28 22:30:44', '2012-11-28 22:30:44') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 165 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 504 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 504\n created_at: 2012-11-28 22:30:44.000000000Z\n updated_at: 2012-11-28 22:30:44.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account504\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_504_destroy', '2012-11-28 22:30:44', '2012-11-28 22:30:44')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 505 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 505\n created_at: 2012-11-28 22:30:44.000000000Z\n updated_at: 2012-11-28 22:30:44.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account505\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_505_destroy', '2012-11-28 22:30:44', '2012-11-28 22:30:44') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = 165  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_505_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'account1@before.destroy', '$2a$04$RxjpXJ2I/KCOHgKnzkMeteD.EQzwRziDMqoy2G.PiFnIHB3CtlhEq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:44', 'User', 'ece56f319b8cba98dc95665a5b9bedbd', 166, 'User', '2012-11-28 22:30:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:44', NULL, NULL, NULL, '2012-11-28 22:30:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:44', `updated_at` = '2012-11-28 22:30:44', `subdomain` = 'account506' WHERE `accounts`.`id` = 506 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 166) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:30:44 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b69094efb8d_190880435d4878283@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:44', '2012-11-28 22:30:44', 'account2@before.destroy', '$2a$04$rc6sbCjHag0271rPFKUDN.urdOMHlfL0eojH5blNWUru9NOAeorq2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'b4514ea8539bf1adda56f794ed0e8c07', 167, 'User', '2012-11-28 22:30:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account507' WHERE `accounts`.`id` = 507 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (507, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'admin') Sent mail to account2@before.destroy (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50b6909563fa_190880435d48783da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 166\n email: account1@before.destroy\n encrypted_password: $2a$04$RxjpXJ2I/KCOHgKnzkMeteD.EQzwRziDMqoy2G.PiFnIHB3CtlhEq\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:44.951002000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:44.951386000Z\n updated_at: 2012-11-28 22:30:44.951386000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_166_destroy', '2012-11-28 22:30:45', '2012-11-28 22:30:45')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_166_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 166 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 166 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (315) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (506) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 315\n account_id: 506\n user_id: 166\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_315_destroy', '2012-11-28 22:30:45', '2012-11-28 22:30:45') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 166 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 506 SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = 166  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_506_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:45', '2012-11-28 22:30:45', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', '610bda4f0e2420c67478fe465a0af821', 168, 'User', '2012-11-28 22:30:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account508' WHERE `accounts`.`id` = 508 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (508, 168) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 168\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:45.063807000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:45.064503000Z\n updated_at: 2012-11-28 22:30:45.064503000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_168', '2012-12-05 22:30:45', '2012-11-28 22:30:45')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 168 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 168) LIMIT 1  (0.5ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$skhOmSsXdgLWuhkwodIgmOmljEzGnSU7XNxq.IdSKFj8xfLMUA2p.', `updated_at` = '2012-11-28 22:30:45' WHERE `users`.`id` = 168  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_168' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:45', '2012-11-28 22:30:45', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'cf20e81866bdf8a17bbce77899c11efb', 169, 'User', '2012-11-28 22:30:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account509' WHERE `accounts`.`id` = 509 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (509, 169) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 169\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:45.099154000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:45.099929000Z\n updated_at: 2012-11-28 22:30:45.099929000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_169', '2012-12-05 22:30:45', '2012-11-28 22:30:45')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 169 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 169) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:45', '2012-11-28 22:30:45', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'e8109e8b04fb61df43b8bbc338ee731c', 170, 'User', '2012-11-28 22:30:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account510' WHERE `accounts`.`id` = 510 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (510, 170) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 170\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:45.132881000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:45.133847000Z\n updated_at: 2012-11-28 22:30:45.133847000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_170', '2012-12-05 22:30:45', '2012-11-28 22:30:45')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 170  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'yp8oXCvczzFPDKVZUxKW' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:30:45', 'yp8oXCvczzFPDKVZUxKW', '2012-11-28 22:30:45', '2012-11-28 22:30:45', 'confirmation@skip.test', '$2a$04$GeKWHrdr7N4BOvTrRjV2nexiHIbtg2hDjMyxdj3RprGXPqGwIIo2q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'fa30eeb577f4fe3c664e621834af9e71', 171, 'User', '2012-11-28 22:30:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account511' WHERE `accounts`.`id` = 511 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 511 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (511, 171) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b69095301c8_190880435d48784c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'g29zhRTpq1hVLs4gyGTu' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:30:45', 'g29zhRTpq1hVLs4gyGTu', NULL, '2012-11-28 22:30:45', 'confirmation@needed.test', '$2a$04$v/DxHcaN4KDJyvDRxtXtL.qrLo0rNp2K3oFhoHK1/ZZkRG7OpyPwK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b69095391d7_190880435d487855f@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'a2b33f27ee334bed510bcf887af725fe', 172, 'User', '2012-11-28 22:30:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account512' WHERE `accounts`.`id` = 512 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 512 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (512, 172) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'admin') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b69095419e8_190880435d487869b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'GV1PaS4xqA8xrmphFiRC' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:30:45', 'GV1PaS4xqA8xrmphFiRC', NULL, '2012-11-28 22:30:45', 'reconfirmation@needed.test', '$2a$04$RfzztROL7q9Gug5lF4FhN.JB92L9wKGJGkj9rBgAjvmGqEaTTeSK6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6909548b44_190880435d48787e9@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', '834dadbd908ab6e5f946cbf759ac19bf', 173, 'User', '2012-11-28 22:30:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account513' WHERE `accounts`.`id` = 513 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 513 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (513, 173) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b69095675d2_190880435d487881a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 173 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 173) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:30:45' WHERE `users`.`id` = 173 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'fhLEHqcQqFwvZKCZXyAP' LIMIT 1  (0.3ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:30:45', `confirmation_token` = 'fhLEHqcQqFwvZKCZXyAP' WHERE `users`.`id` = 173 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b690956de30_190880435d48789e8@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'ak5i7heuysYxH1whyJCy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:30:45', 'ak5i7heuysYxH1whyJCy', NULL, '2012-11-28 22:30:45', 'reconfirmation@needed.test', '$2a$04$UCA3sZehqrUZ0I8pKOAe/.cnqcfhv9gb9DejsfukiVNeGYvQzzCu.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6909574f6b_190880435d487903f@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'ecf8d85bb65043b192bea0cfe6e357c5', 174, 'User', '2012-11-28 22:30:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account514' WHERE `accounts`.`id` = 514 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (514, 174) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b690957d7b8_190880435d487913@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 174 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 174) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:30:45' WHERE `users`.`id` = 174  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:45', 'teste@teste.com', '$2a$04$QkRAAvHpqGpHj5bpTyyOy.xLqq8.9B6E1u5XTm1RBZZSkDV7JPy3S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', '2248b3382ded5d3574de264d56246777', 175, 'User', '2012-11-28 22:30:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account515' WHERE `accounts`.`id` = 515 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 515 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (515, 175) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690958a2fe_190880435d4879264@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 175)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 175  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:45', 'teste@teste.com', '$2a$04$mS7PuAZ6cEgdmf5cVk1KReJo0jIlfLB9FHXJnUQweAYGLxrhaPZwa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'dd717b8bcdc685c6e6289fe6bb543044', 176, 'User', '2012-11-28 22:30:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account516' WHERE `accounts`.`id` = 516 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 516 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (516, 176) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69095960ad_190880435d4879368@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 176)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 176 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:45', '2012-11-28 22:30:45', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'fe26de0ba601e0e4706df16981b93442', 177, 'User', '2012-11-28 22:30:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account517' WHERE `accounts`.`id` = 517 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 517 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (517, 177) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 177)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 177 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:45', '2012-11-28 22:30:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', 'c3fc54c5fe58700f5b306a9be73f9fc8', 178, 'User', '2012-11-28 22:30:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account518' WHERE `accounts`.`id` = 518 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 518 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (518, 178) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69095a6e94_190880435d4879475@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 178)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 178 LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:45', 'teste@teste.com', '$2a$04$997vpNSmBICs8Dd5d0ZXyOr859vXirziFlNiGIDubNtixDAvKZQ0e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', '67db9fac4f54fbed0d0fb2bff1572a84', 179, 'User', '2012-11-28 22:30:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account519' WHERE `accounts`.`id` = 519 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (519, 179) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69095b2c2e_190880435d4879592@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 179)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 179 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:45', 'teste@teste.com', '$2a$04$Md9A4VD4QmujLVl/4yiUDuWTdcTkOcS4TzOuFETXT0Yrx.7zHJU3e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', '82a42cbf9e8681a4afa29b0ce6df440e', 180, 'User', '2012-11-28 22:30:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account520' WHERE `accounts`.`id` = 520 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (520, 180) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69095becd2_190880435d487968a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 180)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 180 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `token` = 'newtoken' WHERE `social_accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`id` = 21 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'JLpQigBZQH93LX4QUdWy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:30:45', 'JLpQigBZQH93LX4QUdWy', NULL, '2012-11-28 22:30:45', 'test@email.test', '$2a$04$m2zPEaHb0dSqhRKZA9vsIOHMOlL6cEuSmx1SfXR2a9Ry8dkbspaqq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b69095c7775_190880435d4879737@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', '3c3391982fb418ba6c6c66b0bc1613b3', 181, 'User', '2012-11-28 22:30:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:45', NULL, NULL, NULL, '2012-11-28 22:30:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:45', `updated_at` = '2012-11-28 22:30:45', `subdomain` = 'account521' WHERE `accounts`.`id` = 521 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 521 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (521, 181) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'admin') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b69095cfed6_190880435d487983c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 181  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'uDrPVwpoDEX17Kk8sis4' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:30:45', 'uDrPVwpoDEX17Kk8sis4', NULL, '2012-11-28 22:30:45', 'test@email.test', '$2a$04$r9p1EuT.jzwGOdNsr0ONtOl10oZCTT0gr32MQ1Ls0pc1AA6kZgWL.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:45') Sent mail to test@email.test (102ms) Date: Wed, 28 Nov 2012 20:30:45 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b69095eea51_190880435d4879992@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:45', 'User', '6b0bbf38be391253d179d362f059e99a', 182, 'User', '2012-11-28 22:30:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b69095f412d_190880435d48800c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 182  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$2baoknvrigOEV.8YPM/eE.f7s/TL1xgzkBEPas0cCdCEybK9QacEG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '2c8412f56fefa7d3eb7988d47ab9c53a', 183, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account522' WHERE `accounts`.`id` = 522 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 522 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (522, 183) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69096b1cb_190880435d4880146@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$HaWezBi2UxXNgfUibiEcceOAzp6V7Gt7PqfpsM79lI3q5ObWGQ8lm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'ac65fb26e628f8553523256efa9705b7', 184, 'User', '2012-11-28 22:30:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account523' WHERE `accounts`.`id` = 523 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (523, 184) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909616856_190880435d48802e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 AND (accounts.id = 523) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$4vWSyAReg2zplWgsCbIbDemamUNDMCXW2.9S1WtGAw.hfdZK1MX0K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '7c86d883f3800b9f2d695521eeab22be', 185, 'User', '2012-11-28 22:30:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account524' WHERE `accounts`.`id` = 524 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 524 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (524, 185) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909622f40_190880435d488035a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 AND (accounts.id = 524) LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$6Ou3fF3YFwxAuYD1mK2hdurFDu6IpKtLl9cPeehl2ErqSK3i8NDKS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '0772ebae08fb3bef5c2f1fea7318ef5e', 186, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account525' WHERE `accounts`.`id` = 525 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (525, 186) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690962ebd4_190880435d4880421@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 186\n email: teste@teste.com\n encrypted_password: $2a$04$6Ou3fF3YFwxAuYD1mK2hdurFDu6IpKtLl9cPeehl2ErqSK3i8NDKS\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:30:27.019357000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.161076000Z\n updated_at: 2012-11-28 22:30:46.161076000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_186_destroy', '2012-11-28 22:30:46', '2012-11-28 22:30:46')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_186_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$had2A4bgItewwWgQfVDyPugnWSkOJ0XZtM7xhnlWpWavOmHYOPzsq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '85c9016226d5a377898e6972106e6cdb', 187, 'User', '2012-11-28 22:30:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account526' WHERE `accounts`.`id` = 526 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 526 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (526, 187) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690963afaf_190880435d488053@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_187_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$DNuKT5u0iol1NfNq9vBs2eJmNh1ejeB7Ey/ooaL0tpjn3tuJsfkGO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'fd69f2cddcd75e80eb18a3f139ace9e4', 188, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account527' WHERE `accounts`.`id` = 527 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 527 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (527, 188) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909645d9d_190880435d48806a7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 188\n email: teste@teste.com\n encrypted_password: $2a$04$DNuKT5u0iol1NfNq9vBs2eJmNh1ejeB7Ey/ooaL0tpjn3tuJsfkGO\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:30:27.019357000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.256374000Z\n updated_at: 2012-11-28 22:30:46.256374000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_188_destroy', '2012-11-28 22:30:46', '2012-11-28 22:30:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_188_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$4CplzgG8J.xj.wu2P/ZdaeKb7vX2uJGL8C7pEUYpzsYjvIjjphueO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'e3164e674bbceab4457893bdafd535c4', 189, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account528' WHERE `accounts`.`id` = 528 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 528 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (528, 189) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909651a25_190880435d488075e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_189_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$ZxBvH9OzTt8qrpzRBNr0Nuh2c8YTmL5ZKZ2DG3yYZSaTZKJCx83fy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'e308a548c28355c48f6b4b8c0fe4ff4c', 190, 'User', '2012-11-28 22:30:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account529' WHERE `accounts`.`id` = 529 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (529, 190) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690965d158_190880435d48808da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 190\n email: teste@teste.com\n encrypted_password: $2a$04$ZxBvH9OzTt8qrpzRBNr0Nuh2c8YTmL5ZKZ2DG3yYZSaTZKJCx83fy\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:30:27.019357000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.350636000Z\n updated_at: 2012-11-28 22:30:46.350636000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_190_destroy', '2012-11-28 22:30:46', '2012-11-28 22:30:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 44  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$HM1u9sUHRzzELWK.LjERm.HDenazTxRpe9iJPX/fGftjnLp/qV2A.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'e5ad49a8d318f7263f2caac025e1c6d0', 191, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account530' WHERE `accounts`.`id` = 530 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 530 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (530, 191) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909669c25_190880435d4880967@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 191\n email: teste@teste.com\n encrypted_password: $2a$04$HM1u9sUHRzzELWK.LjERm.HDenazTxRpe9iJPX/fGftjnLp/qV2A.\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:30:27.019357000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.402981000Z\n updated_at: 2012-11-28 22:30:46.402981000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_191_destroy', '2012-11-28 22:30:46', '2012-11-28 22:30:46')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$CSP2eBtJRRC9RCvBx0K.nefzq2P.E0oLpvzpIVRzKAOJnz3FFaP9O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '65e2032409dd07aaa1a6bc0008d6dfee', 192, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account531' WHERE `accounts`.`id` = 531 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 531 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (531, 192) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909690921_190880435d48810af@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$ruKHpJZkLG7lxpcNRrkz9ep3YATiL0Srf6gnjxG/3u64g4V8XkVPi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '3d911cc4d54f4216d26c4f53e000c02f', 193, 'User', '2012-11-28 22:30:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account532' WHERE `accounts`.`id` = 532 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (532, 193) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690969b85d_190880435d48811a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 193\n email: teste@teste.com\n encrypted_password: $2a$04$ruKHpJZkLG7lxpcNRrkz9ep3YATiL0Srf6gnjxG/3u64g4V8XkVPi\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:30:27.019357000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.607276000Z\n updated_at: 2012-11-28 22:30:46.607276000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_193_destroy', '2012-11-28 22:30:46', '2012-11-28 22:30:46')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46' WHERE `delayed_jobs`.`id` = 46  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$dcoHD0z9jzBjhOpJsG7dbuyOud/asuNY9165JPm6GEb3xP74sBiuO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'e324c30b2074e8761b21927c38392c29', 194, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account533' WHERE `accounts`.`id` = 533 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 533 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (533, 194) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69096a8108_190880435d488129c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 194 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 533 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 716  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 343 AND `account_roles`.`name` = 'user' LIMIT 1  (7.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:46', 'teste@teste.com', '$2a$04$4cP5ZWr1lma2jKFsE8sNwuaL8RgiGcwY6yqPYqzI3x7.hB0yHDqHO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'fd83270c976e77fe58b67c0df0356184', 195, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account534' WHERE `accounts`.`id` = 534 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 534 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (534, 195) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69096b9575_190880435d4881343@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 195 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 534 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 719  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 344 AND `account_roles`.`name` = 'admin' LIMIT 1  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:46', '2012-11-28 22:30:46', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '75dd2f1bb6c43081ce030252642687ef', 196, 'User', '2012-11-28 22:30:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account535' WHERE `accounts`.`id` = 535 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (535, 196) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 196\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:46.787265000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.787847000Z\n updated_at: 2012-11-28 22:30:46.787847000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_196', '2012-12-05 22:30:46', '2012-11-28 22:30:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (10.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:46', '2012-11-28 22:30:46', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '040e1d039259ad0f5cfd6bac6343a31d', 197, 'User', '2012-11-28 22:30:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account536' WHERE `accounts`.`id` = 536 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 536 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (536, 197) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 197\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:46.822844000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.823349000Z\n updated_at: 2012-11-28 22:30:46.823349000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_197', '2012-12-05 22:30:46', '2012-11-28 22:30:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:46', '2012-11-28 22:30:46', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '746e14c4bf7799506690f3dda5090b78', 198, 'User', '2012-11-28 22:30:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account537' WHERE `accounts`.`id` = 537 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (537, 198) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 198\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:46.848136000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.848600000Z\n updated_at: 2012-11-28 22:30:46.848600000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_198', '2012-12-05 22:30:46', '2012-11-28 22:30:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:46', '2012-11-28 22:30:46', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '2fd8d21637005d20d92dfb23bc5c92fd', 199, 'User', '2012-11-28 22:30:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account538' WHERE `accounts`.`id` = 538 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (538, 199) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 199\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:46.881014000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.881506000Z\n updated_at: 2012-11-28 22:30:46.881506000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_199', '2012-12-05 22:30:46', '2012-11-28 22:30:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:46', '2012-11-28 22:30:46', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '79d241458bc5df0c384b14ff0fe1a8ad', 200, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account539' WHERE `accounts`.`id` = 539 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 539 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (539, 200) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 200\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:46.905149000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.905620000Z\n updated_at: 2012-11-28 22:30:46.905620000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_200', '2012-12-05 22:30:46', '2012-11-28 22:30:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:46', '2012-11-28 22:30:46', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'e62b35c6478f2dcd3d573619eadda7c6', 201, 'User', '2012-11-28 22:30:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account540' WHERE `accounts`.`id` = 540 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (540, 201) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 201\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:46.939502000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.940014000Z\n updated_at: 2012-11-28 22:30:46.940014000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_201', '2012-12-05 22:30:46', '2012-11-28 22:30:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:46', '2012-11-28 22:30:46', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', 'eaf9f09d901c351e5ba89553c0bb58a8', 202, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account541' WHERE `accounts`.`id` = 541 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 541 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (541, 202) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 202\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:46.963878000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.964524000Z\n updated_at: 2012-11-28 22:30:46.964524000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_202', '2012-12-05 22:30:46', '2012-11-28 22:30:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:46', '2012-11-28 22:30:46', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:30:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:46', 'User', '867bf3dde5fbb62f6971d78ccd0acd70', 203, 'User', '2012-11-28 22:30:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:46', NULL, NULL, NULL, '2012-11-28 22:30:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:46', `updated_at` = '2012-11-28 22:30:46', `subdomain` = 'account542' WHERE `accounts`.`id` = 542 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (542, 203) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 203\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:30:46.988091000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:30:46.988554000Z\n updated_at: 2012-11-28 22:30:46.988554000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_203', '2012-12-05 22:30:47', '2012-11-28 22:30:47')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:47', '2012-11-28 22:30:47', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:47') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:47', 'User', 'b0a7198e335487aae392bedc323ca3a9', 204, 'User', '2012-11-28 22:30:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:47', NULL, NULL, NULL, '2012-11-28 22:30:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:47', `updated_at` = '2012-11-28 22:30:47', `subdomain` = 'account543' WHERE `accounts`.`id` = 543 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (543, 204) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:30:47 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909741482_190880435d48814d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 204)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:47 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Completed 200 OK in 165ms (Views: 161.8ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 543 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (543, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/543/domains" for 127.0.0.1 at 2012-11-28 20:30:47 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"543"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_543_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 204 AND `account_users`.`account_id` = 543 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND `accounts`.`id` = 543 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 Completed 200 OK in 752ms (Views: 741.1ms | ActiveRecord: 3.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:48', '2012-11-28 22:30:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:48', 'User', 'db02bafe0809f84d52ecb51abfa5dd95', 205, 'User', '2012-11-28 22:30:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:48', NULL, NULL, NULL, '2012-11-28 22:30:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:48', `updated_at` = '2012-11-28 22:30:48', `subdomain` = 'account544' WHERE `accounts`.`id` = 544 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (544, 205) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69098749e3_190880435d48815a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 205)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (544, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/544/domains" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"544"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_544_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 205 AND `account_users`.`account_id` = 544 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND `accounts`.`id` = 544 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`account_id` = 544 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 544 AND `account_users`.`user_id` = 205 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (354) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (544) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 Completed 200 OK in 22ms (Views: 10.7ms | ActiveRecord: 3.5ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:48', '2012-11-28 22:30:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:48', 'User', '0fa5e44ffc6239a14eac8b8b5ee343fb', 206, 'User', '2012-11-28 22:30:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:48', NULL, NULL, NULL, '2012-11-28 22:30:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:48', `updated_at` = '2012-11-28 22:30:48', `subdomain` = 'account545' WHERE `accounts`.`id` = 545 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (545, 206) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690988d0d5_190880435d48816ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 206)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (545, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/545/domains" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"545"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_545_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 206 AND `account_users`.`account_id` = 545 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND `accounts`.`id` = 545 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`account_id` = 545 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 545 AND `account_users`.`user_id` = 206 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (355) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (545) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 Completed 200 OK in 22ms (Views: 10.8ms | ActiveRecord: 4.1ms)  (9.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:48', '2012-11-28 22:30:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:48', 'User', 'c49770042a719a534c06a3d6fe7e213e', 207, 'User', '2012-11-28 22:30:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:48', NULL, NULL, NULL, '2012-11-28 22:30:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:48', `updated_at` = '2012-11-28 22:30:48', `subdomain` = 'account546' WHERE `accounts`.`id` = 546 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (546, 207) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69098a7559_190880435d4881740@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 207)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (546, NULL, 'index.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/546/domains" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"546"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_546_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 207 AND `account_users`.`account_id` = 546 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND `accounts`.`id` = 546 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`account_id` = 546 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 546 AND `account_users`.`user_id` = 207 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (356) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (546) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 Completed 200 OK in 23ms (Views: 11.4ms | ActiveRecord: 4.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:48', '2012-11-28 22:30:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:48', 'User', 'd93b63bfba55800f8301d58a280d4057', 208, 'User', '2012-11-28 22:30:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:48', NULL, NULL, NULL, '2012-11-28 22:30:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:48', `updated_at` = '2012-11-28 22:30:48', `subdomain` = 'account547' WHERE `accounts`.`id` = 547 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (547, 208) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:30:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69098d73db_190880435d48818d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 208)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 147ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (547, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 62  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/547/domains" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"547"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_547_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 208 AND `account_users`.`account_id` = 547 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND `accounts`.`id` = 547 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`account_id` = 547 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 547 AND `account_users`.`user_id` = 208 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (357) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (547) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 Completed 200 OK in 22ms (Views: 10.7ms | ActiveRecord: 4.0ms)  (9.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:48', '2012-11-28 22:30:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:48', 'User', '34e4123e01c922ba3b7bd4aa99452e7b', 209, 'User', '2012-11-28 22:30:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:48', NULL, NULL, NULL, '2012-11-28 22:30:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:48', `updated_at` = '2012-11-28 22:30:48', `subdomain` = 'account548' WHERE `accounts`.`id` = 548 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (548, 209) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69098f26f7_190880435d48819e8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 209)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (548, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 63  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/548/domains" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"548"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_548_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 209 AND `account_users`.`account_id` = 548 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND `accounts`.`id` = 548 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`account_id` = 548 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 548 AND `account_users`.`user_id` = 209 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (358) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (548) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 Completed 200 OK in 23ms (Views: 10.9ms | ActiveRecord: 4.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:49', '2012-11-28 22:30:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:49') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:49', 'User', 'e64ede75112f0909d2ab582d6a2c3b27', 210, 'User', '2012-11-28 22:30:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:49', NULL, NULL, NULL, '2012-11-28 22:30:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:49', `updated_at` = '2012-11-28 22:30:49', `subdomain` = 'account549' WHERE `accounts`.`id` = 549 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (549, 210) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69099174fa_190880435d4882098@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 210)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (549, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 64  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/549/domains" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"549"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_549_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 210 AND `account_users`.`account_id` = 549 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND `accounts`.`id` = 549 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`account_id` = 549 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 549 AND `account_users`.`user_id` = 210 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (359) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (549) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 Completed 200 OK in 23ms (Views: 11.0ms | ActiveRecord: 4.1ms)  (6.2ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:49', '2012-11-28 22:30:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:49') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:49', 'User', '0325fc60fac6df3cb665c26067bde1af', 211, 'User', '2012-11-28 22:30:49') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:49', NULL, NULL, NULL, '2012-11-28 22:30:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:49', `updated_at` = '2012-11-28 22:30:49', `subdomain` = 'account550' WHERE `accounts`.`id` = 550 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (550, 211) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690994943f_190880435d488213b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 211)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 148ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (550, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 550 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 752  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/550/domains" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"550"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_550_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND `accounts`.`id` = 550 LIMIT 1 AccountDomain Load (0.6ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`account_id` = 550 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 550 AND `account_users`.`user_id` = 211 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (360) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (550) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 Completed 200 OK in 23ms (Views: 10.8ms | ActiveRecord: 4.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:49', '2012-11-28 22:30:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:49', 'User', '33bbaf378bb4791a9c85aaff253ec883', 212, 'User', '2012-11-28 22:30:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:49', NULL, NULL, NULL, '2012-11-28 22:30:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:49', `updated_at` = '2012-11-28 22:30:49', `subdomain` = 'account551' WHERE `accounts`.`id` = 551 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (551, 212) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69099637c1_190880435d4882263@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 212)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 551 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 754  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/551/user/212/roles" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"551", "user_id"=>"212"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 212 AND `account_users`.`account_id` = 551 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND `accounts`.`id` = 551 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 Completed 200 OK in 28ms (Views: 15.4ms | ActiveRecord: 4.0ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:49', '2012-11-28 22:30:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:49', 'User', '9f9db7a01490dc9d53595d13c0f5e1d3', 213, 'User', '2012-11-28 22:30:49') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:49', NULL, NULL, NULL, '2012-11-28 22:30:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:49', `updated_at` = '2012-11-28 22:30:49', `subdomain` = 'account552' WHERE `accounts`.`id` = 552 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 552 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (552, 213) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690997f1ac_190880435d488234b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 213)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 552 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 756  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/552/user/213/roles" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"552", "user_id"=>"213"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 213 AND `account_users`.`account_id` = 552 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND `accounts`.`id` = 552 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 Completed 200 OK in 26ms (Views: 12.8ms | ActiveRecord: 4.3ms)  (5.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:49', '2012-11-28 22:30:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:49', 'User', 'e67b35a26d02c2c47047809386e12c14', 214, 'User', '2012-11-28 22:30:49') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:49', NULL, NULL, NULL, '2012-11-28 22:30:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:49', `updated_at` = '2012-11-28 22:30:49', `subdomain` = 'account553' WHERE `accounts`.`id` = 553 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (553, 214) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69099b2b1a_190880435d48824c6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 214)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 147ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 553 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 758  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/553/user/214/roles" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"553", "user_id"=>"214"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 214 AND `account_users`.`account_id` = 553 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND `accounts`.`id` = 553 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 Completed 200 OK in 26ms (Views: 12.9ms | ActiveRecord: 4.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:49', '2012-11-28 22:30:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:49', 'User', '509075e461ba4d240b6b672e347bf71f', 215, 'User', '2012-11-28 22:30:49') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:49', NULL, NULL, NULL, '2012-11-28 22:30:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:49', `updated_at` = '2012-11-28 22:30:49', `subdomain` = 'account554' WHERE `accounts`.`id` = 554 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 554 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (554, 215) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69099cd34f_190880435d48825cb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 215)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 554 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 760  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/554/user/215/roles" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"554", "user_id"=>"215"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 215 AND `account_users`.`account_id` = 554 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND `accounts`.`id` = 554 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 Completed 200 OK in 25ms (Views: 12.6ms | ActiveRecord: 3.9ms)  (11.2ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:49', '2012-11-28 22:30:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:49', 'User', '2659a2e1bba5eb86cc67207f6a1b2759', 216, 'User', '2012-11-28 22:30:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:49', NULL, NULL, NULL, '2012-11-28 22:30:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:49', `updated_at` = '2012-11-28 22:30:49', `subdomain` = 'account555' WHERE `accounts`.`id` = 555 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (555, 216) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69099ea393_190880435d48826dd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 216)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:49 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:49', 'notowner@account.test', '$2a$04$e9f1tvniEnoxxG/r68IOh.oJcSlSoYNmLO8KRe6MUuRio66exqPQ6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:49', 'User', 'e603156c20bef4525a521ed0e4b4fe0c', 217, 'User', '2012-11-28 22:30:49') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account556' WHERE `accounts`.`id` = 556 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 556 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (556, 217) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6909a5dc4_190880435d488271e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', 'jabanilson', NULL, 1, '2012-11-28 22:30:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account557' WHERE `accounts`.`id` = 557  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (557, 217) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 555 WHERE `account_users`.`id` = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 555 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 761 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 762  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/555/user/216/roles" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"555", "user_id"=>"216"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 216 AND `account_users`.`account_id` = 555 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND `accounts`.`id` = 555 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 Completed 200 OK in 27ms (Views: 14.1ms | ActiveRecord: 4.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:50', '2012-11-28 22:30:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:50', 'User', 'fac039454540075dea7f936323f3af65', 218, 'User', '2012-11-28 22:30:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account558' WHERE `accounts`.`id` = 558 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (558, 218) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909a36dd6_190880435d48828b5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 218)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:50', 'notowner@account.test', '$2a$04$i.QUs61KOeQ804nK8NQV/eR/7G0bYWXzLtD2brGLQ75Uzrt4eMQEe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:50', 'User', '1e816a3228fb25e0808d0086ef62eac1', 219, 'User', '2012-11-28 22:30:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account559' WHERE `accounts`.`id` = 559 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (559, 219) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6909a4677d_190880435d488292a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', 'jabanilson', NULL, 1, '2012-11-28 22:30:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account560' WHERE `accounts`.`id` = 560  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (560, 219) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 558 WHERE `account_users`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 558 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 768 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 769  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/558/user/218/roles" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"558", "user_id"=>"218"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 218 AND `account_users`.`account_id` = 558 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND `accounts`.`id` = 558 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 Completed 200 OK in 26ms (Views: 13.6ms | ActiveRecord: 4.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:50', '2012-11-28 22:30:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:50', 'User', '9bb67420e5c35389d77fb06b950c4128', 220, 'User', '2012-11-28 22:30:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account561' WHERE `accounts`.`id` = 561 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (561, 220) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909a5f48f_190880435d48830d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 220)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:50', 'notowner@account.test', '$2a$04$NgnSTWEe8hUE1gCE2z64ROZhwJju66ny1XAyCCIdxTDazlTGg6AVu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:50', 'User', '546abeaa80ecfc1ff3a21115a689cce4', 221, 'User', '2012-11-28 22:30:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account562' WHERE `accounts`.`id` = 562 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (562, 221) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6909a6f798_190880435d4883198@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', 'jabanilson', NULL, 1, '2012-11-28 22:30:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account563' WHERE `accounts`.`id` = 563  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (563, 221) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 561 WHERE `account_users`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 561 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 775 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 776  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/561/user/220/roles" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"561", "user_id"=>"220"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 220 AND `account_users`.`account_id` = 561 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND `accounts`.`id` = 561 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 Completed 200 OK in 26ms (Views: 13.5ms | ActiveRecord: 3.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:50', '2012-11-28 22:30:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:50', 'User', '954c36fdb80f91ba123af1c95631a0b6', 222, 'User', '2012-11-28 22:30:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account564' WHERE `accounts`.`id` = 564 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (564, 222) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909aa18fa_190880435d48832f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 222)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:50', 'notowner@account.test', '$2a$04$6dbf37faICSxYd5qCCyRtunzwIIbX9RHY1vkGyNa1uQMh2rQQTl0.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:50', 'User', 'd36c88a1aabbf0939c159fe285524c3d', 223, 'User', '2012-11-28 22:30:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account565' WHERE `accounts`.`id` = 565 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 565 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (565, 223) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6909ab18c1_190880435d488334c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', 'jabanilson', NULL, 1, '2012-11-28 22:30:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account566' WHERE `accounts`.`id` = 566  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (566, 223) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 564 WHERE `account_users`.`id` = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 564 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 782 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 783  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/564/user/222/roles" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"564", "user_id"=>"222"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 222 AND `account_users`.`account_id` = 564 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND `accounts`.`id` = 564 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 Completed 200 OK in 26ms (Views: 13.7ms | ActiveRecord: 4.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:50', '2012-11-28 22:30:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:50', 'User', '0bb4a9c4057653f713476fe4b27d10e2', 224, 'User', '2012-11-28 22:30:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account567' WHERE `accounts`.`id` = 567 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 567 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (567, 224) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909aca531_190880435d48834d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 224)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 224 AND `account_users`.`account_id` = 567 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (377) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (567) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Completed 200 OK in 17ms (Views: 13.7ms | ActiveRecord: 1.9ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:50', '2012-11-28 22:30:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:50') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:50', 'User', '96de6e46b64fb183dd30361265c1f1ed', 225, 'User', '2012-11-28 22:30:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:50', NULL, NULL, NULL, '2012-11-28 22:30:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:50', `updated_at` = '2012-11-28 22:30:50', `subdomain` = 'account568' WHERE `accounts`.`id` = 568 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (568, 225) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:50 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909adff67_190880435d48835db@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 225)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:50 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 1.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 2.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:51', '2012-11-28 22:30:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:51', 'User', '2d616504cb76e71ce75493415d004d51', 226, 'User', '2012-11-28 22:30:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', NULL, NULL, NULL, '2012-11-28 22:30:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account569' WHERE `accounts`.`id` = 569 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 569 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (569, 226) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909b1ca07_190880435d48836fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 226)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 1.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 2.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:51', '2012-11-28 22:30:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:51', 'User', '8ae7dec85d9bfaaaaa8808c62eb182ec', 227, 'User', '2012-11-28 22:30:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', NULL, NULL, NULL, '2012-11-28 22:30:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account570' WHERE `accounts`.`id` = 570 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 570 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (570, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909b35084_190880435d488378d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 227)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 10.8ms | ActiveRecord: 1.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 380\n account_id: 570\n user_id: 227\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_380_destroy', '2012-11-28 22:30:51', '2012-11-28 22:30:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', 'jabanilson', NULL, 1, '2012-11-28 22:30:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account571' WHERE `accounts`.`id` = 571  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (571, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 2.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:51', '2012-11-28 22:30:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:51', 'User', '3c58315d58ebffe3da3c06449c3ab020', 228, 'User', '2012-11-28 22:30:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', NULL, NULL, NULL, '2012-11-28 22:30:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account572' WHERE `accounts`.`id` = 572 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 572 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (572, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:30:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909b58103_190880435d488389b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 228)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 382\n account_id: 572\n user_id: 228\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_382_destroy', '2012-11-28 22:30:51', '2012-11-28 22:30:51')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', 'jabanilson', NULL, 1, '2012-11-28 22:30:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account573' WHERE `accounts`.`id` = 573  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (573, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', 'jabanilson', NULL, 1, '2012-11-28 22:30:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account574' WHERE `accounts`.`id` = 574  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (574, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 2.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:51', '2012-11-28 22:30:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:51', 'User', 'f174f156d801dda5c37cd2e9376e1b67', 229, 'User', '2012-11-28 22:30:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', NULL, NULL, NULL, '2012-11-28 22:30:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account575' WHERE `accounts`.`id` = 575 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 575 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (575, 229) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909b96520_190880435d488396b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 229)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 14ms (Views: 10.8ms | ActiveRecord: 1.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 16ms (Views: 13.0ms | ActiveRecord: 1.8ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 385\n account_id: 575\n user_id: 229\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_385_destroy', '2012-11-28 22:30:51', '2012-11-28 22:30:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', 'jabanilson', NULL, 1, '2012-11-28 22:30:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account576' WHERE `accounts`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (576, 229) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', 'jabanilson', NULL, 1, '2012-11-28 22:30:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account577' WHERE `accounts`.`id` = 577  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (577, 229) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 2.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:51', '2012-11-28 22:30:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:51', 'User', 'e5732e523a83237747cf18e1dfc85260', 230, 'User', '2012-11-28 22:30:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', NULL, NULL, NULL, '2012-11-28 22:30:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account578' WHERE `accounts`.`id` = 578 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 578 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (578, 230) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909bbdaa4_190880435d488405b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 230)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 230 AND `account_users`.`account_id` = 578 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (388) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (578) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', 'jabanilson', NULL, 1, '2012-11-28 22:30:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account579' WHERE `accounts`.`id` = 579  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (579, 230) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/579" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"579"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND `accounts`.`id` = 579 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 579 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 579 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_579_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 146ms (Views: 137.9ms | ActiveRecord: 4.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:51', '2012-11-28 22:30:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:51', 'User', '6fc20a8936f0cc39ebde04cda8f087a2', 231, 'User', '2012-11-28 22:30:51') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:51', NULL, NULL, NULL, '2012-11-28 22:30:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:51', `updated_at` = '2012-11-28 22:30:51', `subdomain` = 'account580' WHERE `accounts`.`id` = 580 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 580 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (580, 231) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909c5e50_190880435d4884146@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 231)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 231 AND `account_users`.`account_id` = 580 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (390) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (580) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', 'jabanilson', NULL, 1, '2012-11-28 22:30:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account581' WHERE `accounts`.`id` = 581  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (581, 231) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/581" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"581"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND `accounts`.`id` = 581 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 581 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 581 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_581_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 31ms (Views: 23.9ms | ActiveRecord: 3.8ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:52', '2012-11-28 22:30:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:52', 'User', '06012d0c3387fc3197f618323101cdef', 232, 'User', '2012-11-28 22:30:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', NULL, NULL, NULL, '2012-11-28 22:30:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account582' WHERE `accounts`.`id` = 582 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 582 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (582, 232) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909c26c58_190880435d4884276@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 232)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 232 AND `account_users`.`account_id` = 582 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (392) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (582) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', 'jabanilson', NULL, 1, '2012-11-28 22:30:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account583' WHERE `accounts`.`id` = 583  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (583, 232) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 583 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 822  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/583" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"583"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND `accounts`.`id` = 583 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 583 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 583 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_583_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 3.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:52', '2012-11-28 22:30:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:52', 'User', '3ce23c5652cdaeaafc3a386bde6349be', 233, 'User', '2012-11-28 22:30:52') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', NULL, NULL, NULL, '2012-11-28 22:30:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account584' WHERE `accounts`.`id` = 584 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 584 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (584, 233) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909c62aa2_190880435d48843c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 233)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 152ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 233 AND `account_users`.`account_id` = 584 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (394) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (584) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', 'jabanilson', NULL, 1, '2012-11-28 22:30:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account585' WHERE `accounts`.`id` = 585  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (585, 233) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 585 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 827  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/585" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"585"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND `accounts`.`id` = 585 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 585 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 585 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_585_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 31ms (Views: 23.1ms | ActiveRecord: 3.9ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:52', '2012-11-28 22:30:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:52', 'User', 'c02fbe7f889f9aab31930e9f0f74a844', 234, 'User', '2012-11-28 22:30:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', NULL, NULL, NULL, '2012-11-28 22:30:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account586' WHERE `accounts`.`id` = 586 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 586 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (586, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909c85083_190880435d488444c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 234)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 234 AND `account_users`.`account_id` = 586 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (396) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (586) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', 'jabanilson', NULL, 1, '2012-11-28 22:30:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account587' WHERE `accounts`.`id` = 587  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (587, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 587 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 831  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/587" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"587"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND `accounts`.`id` = 587 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 587 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 587 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_587_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 29ms (Views: 22.4ms | ActiveRecord: 3.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:52', '2012-11-28 22:30:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:52', 'User', '45a753dee691fefac6790073f27211dd', 235, 'User', '2012-11-28 22:30:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', NULL, NULL, NULL, '2012-11-28 22:30:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account588' WHERE `accounts`.`id` = 588 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 588 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (588, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909ca6db4_190880435d488455f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 235)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 235 AND `account_users`.`account_id` = 588 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (398) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (588) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 1.6ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', 'jabanilson', NULL, 1, '2012-11-28 22:30:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account589' WHERE `accounts`.`id` = 589  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (589, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 589 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 835  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/589" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"589"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND `accounts`.`id` = 589 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 589 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 589 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_589_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 30ms (Views: 22.5ms | ActiveRecord: 4.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:52', '2012-11-28 22:30:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:52', 'User', '663bc0cd16a04e052e33607288313d55', 236, 'User', '2012-11-28 22:30:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', NULL, NULL, NULL, '2012-11-28 22:30:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account590' WHERE `accounts`.`id` = 590 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 590 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (590, 236) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:30:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909ce38cd_190880435d488464d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 236)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 236 AND `account_users`.`account_id` = 590 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (400) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (590) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 1.9ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:52', 'jabanilson', NULL, 1, '2012-11-28 22:30:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:52', `updated_at` = '2012-11-28 22:30:52', `subdomain` = 'account591' WHERE `accounts`.`id` = 591  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (591, 236) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 591 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 839  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/591" for 127.0.0.1 at 2012-11-28 20:30:52 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"591"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND `accounts`.`id` = 591 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 591 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 591 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_591_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 33ms (Views: 25.6ms | ActiveRecord: 3.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:53', '2012-11-28 22:30:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:53', 'User', '1a5e794d5a40816bdf4cc49c6a75cf8d', 237, 'User', '2012-11-28 22:30:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:53', NULL, NULL, NULL, '2012-11-28 22:30:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:53', `updated_at` = '2012-11-28 22:30:53', `subdomain` = 'account592' WHERE `accounts`.`id` = 592 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 592 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (592, 237) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909d12999_190880435d488479f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 237)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 237 AND `account_users`.`account_id` = 592 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (402) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (592) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 1.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:53', 'jabanilson', NULL, 1, '2012-11-28 22:30:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:53', `updated_at` = '2012-11-28 22:30:53', `subdomain` = 'account593' WHERE `accounts`.`id` = 593  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (593, 237) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 593 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 843  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 30ms (Views: 22.9ms | ActiveRecord: 3.6ms) Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 32ms (Views: 23.5ms | ActiveRecord: 4.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:53', '2012-11-28 22:30:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:53') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:53', 'User', '31645088a88b99a1fd3ecef30de2b7c1', 238, 'User', '2012-11-28 22:30:53') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:53', NULL, NULL, NULL, '2012-11-28 22:30:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:53', `updated_at` = '2012-11-28 22:30:53', `subdomain` = 'account594' WHERE `accounts`.`id` = 594 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 594 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (594, 238) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909d575f6_190880435d48848b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 238)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 238 AND `account_users`.`account_id` = 594 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (404) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (594) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 1.9ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:53', 'jabanilson', NULL, 1, '2012-11-28 22:30:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:53', `updated_at` = '2012-11-28 22:30:53', `subdomain` = 'account595' WHERE `accounts`.`id` = 595  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (595, 238) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 595 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 847  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 31ms (Views: 23.0ms | ActiveRecord: 3.8ms) Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 30ms (Views: 22.6ms | ActiveRecord: 3.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:53', '2012-11-28 22:30:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:53') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:53', 'User', '5f2b15bc26bfcb23eb8ab70fd160c504', 239, 'User', '2012-11-28 22:30:53') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:53', NULL, NULL, NULL, '2012-11-28 22:30:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:53', `updated_at` = '2012-11-28 22:30:53', `subdomain` = 'account596' WHERE `accounts`.`id` = 596 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 596 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (596, 239) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909d82593_190880435d4884999@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 239)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 1.7ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:53', 'jabanilson', NULL, 1, '2012-11-28 22:30:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:53', `updated_at` = '2012-11-28 22:30:53', `subdomain` = 'account597' WHERE `accounts`.`id` = 597  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (597, 239) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 597 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 851  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 134ms (Views: 126.7ms | ActiveRecord: 3.9ms) Started DELETE "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"597"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 597 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 597\n created_at: 2012-11-28 22:30:53.000000000Z\n updated_at: 2012-11-28 22:30:53.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account597\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_597_destroy', '2012-11-28 22:30:53', '2012-11-28 22:30:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 13ms (ActiveRecord: 2.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 2.2ms) Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 32ms (Views: 23.5ms | ActiveRecord: 4.3ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:53', '2012-11-28 22:30:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:53', 'User', '3ca39b3af9e0feb1f09c6052ba254240', 240, 'User', '2012-11-28 22:30:53') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:53', NULL, NULL, NULL, '2012-11-28 22:30:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:53', `updated_at` = '2012-11-28 22:30:53', `subdomain` = 'account598' WHERE `accounts`.`id` = 598 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 598 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (598, 240) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:30:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909dd91ba_190880435d48850ac@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 240)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 17ms (Views: 12.6ms | ActiveRecord: 1.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:53', 'jabanilson', NULL, 1, '2012-11-28 22:30:53')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:53', `updated_at` = '2012-11-28 22:30:53', `subdomain` = 'account599' WHERE `accounts`.`id` = 599  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (599, 240) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 599 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 855  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:30:53 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 34ms (Views: 27.3ms | ActiveRecord: 3.4ms) Started DELETE "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 599 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:30:54', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 599\n created_at: 2012-11-28 22:30:53.000000000Z\n updated_at: 2012-11-28 22:30:53.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account599\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_599_destroy', '2012-11-29 22:30:54', '2012-11-28 22:30:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 14ms (ActiveRecord: 2.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 17ms (Views: 13.1ms | ActiveRecord: 2.0ms) Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 141ms (Views: 132.9ms | ActiveRecord: 3.8ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:54', '2012-11-28 22:30:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:54', 'User', '00d4982efc37db0a979fe88c7f29f46b', 241, 'User', '2012-11-28 22:30:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', NULL, NULL, NULL, '2012-11-28 22:30:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account600' WHERE `accounts`.`id` = 600 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 600 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (600, 241) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909e37d11_190880435d48851c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 241)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 241 AND `account_users`.`account_id` = 600 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (410) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (600) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', 'jabanilson', NULL, 1, '2012-11-28 22:30:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account601' WHERE `accounts`.`id` = 601  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (601, 241) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:54', 'notowner@account.test', '$2a$04$bpt6nIJ4SAhVTsz2tcL5hOtZ/p5.lSL6909hYCOEDFDuefTW01SrG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:54', 'User', '28f60c43ef6f6e43af979662ba05f7ac', 242, 'User', '2012-11-28 22:30:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', NULL, NULL, NULL, '2012-11-28 22:30:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account602' WHERE `accounts`.`id` = 602 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 602 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (602, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:30:54 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6909e4eb76_190880435d488521a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', 'jabanilson', NULL, 1, '2012-11-28 22:30:54')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account603' WHERE `accounts`.`id` = 603  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (603, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 601 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 601 WHERE `account_users`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 601 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 858 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 859  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/601" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"601"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND `accounts`.`id` = 601 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 601 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 29ms (Views: 21.7ms | ActiveRecord: 3.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:54', '2012-11-28 22:30:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:54', 'User', '232216de288a549b3285a852c41b7ba1', 243, 'User', '2012-11-28 22:30:54') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', NULL, NULL, NULL, '2012-11-28 22:30:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account604' WHERE `accounts`.`id` = 604 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 604 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (604, 243) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909e686b1_190880435d488532@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 243)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 243 AND `account_users`.`account_id` = 604 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (414) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (604) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 14ms (Views: 9.7ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', 'jabanilson', NULL, 1, '2012-11-28 22:30:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account605' WHERE `accounts`.`id` = 605  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (605, 243) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:54', 'notowner@account.test', '$2a$04$DaC7MqTGDByiCjGPt1p3dOTXol2Inde8F57Wj14uV.c9nEC0qDN.e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:54', 'User', '62a1ce932aacc611a9db59a2d8128e63', 244, 'User', '2012-11-28 22:30:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', NULL, NULL, NULL, '2012-11-28 22:30:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account606' WHERE `accounts`.`id` = 606 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 606 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (606, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:30:54 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6909e7eedb_190880435d488549d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', 'jabanilson', NULL, 1, '2012-11-28 22:30:54')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account607' WHERE `accounts`.`id` = 607  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (607, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 605 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 605 WHERE `account_users`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 605 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 867 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 868  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/605" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"605"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND `accounts`.`id` = 605 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 605 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 35ms (Views: 27.3ms | ActiveRecord: 3.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:54', '2012-11-28 22:30:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:54', 'User', '44284825f969c4ec370ac1f0a4936e6f', 245, 'User', '2012-11-28 22:30:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', NULL, NULL, NULL, '2012-11-28 22:30:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account608' WHERE `accounts`.`id` = 608 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 608 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (608, 245) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:30:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909eb6f4d_190880435d48855e8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 245)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 245 AND `account_users`.`account_id` = 608 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (418) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (608) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', 'jabanilson', NULL, 1, '2012-11-28 22:30:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account609' WHERE `accounts`.`id` = 609  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (609, 245) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:54', 'notowner@account.test', '$2a$04$iwgn6EuQJduw/ikr0DkcIegD7Ejodt1uRYceztXgaDYBJ6sBE5zCa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:54', 'User', '3f23d30aa00b8026e136893eee378aec', 246, 'User', '2012-11-28 22:30:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', NULL, NULL, NULL, '2012-11-28 22:30:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account610' WHERE `accounts`.`id` = 610 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 610 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (610, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:30:54 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6909ecf8f7_190880435d4885646@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', 'jabanilson', NULL, 1, '2012-11-28 22:30:54')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account611' WHERE `accounts`.`id` = 611  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (611, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 609 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 609 WHERE `account_users`.`id` = 421  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 609 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 876 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 877  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/609" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"609"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND `accounts`.`id` = 609 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 609 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 28ms (Views: 21.5ms | ActiveRecord: 3.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:54', '2012-11-28 22:30:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:54', 'User', '12f7fdb19ba7b3ca82155f5de1f81ac1', 247, 'User', '2012-11-28 22:30:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', NULL, NULL, NULL, '2012-11-28 22:30:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account612' WHERE `accounts`.`id` = 612 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 612 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (612, 247) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909ee8ff9_190880435d488578b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 247)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:54 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 247 AND `account_users`.`account_id` = 612 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (422) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (612) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:54', 'jabanilson', NULL, 1, '2012-11-28 22:30:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:54', `updated_at` = '2012-11-28 22:30:54', `subdomain` = 'account613' WHERE `accounts`.`id` = 613  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (613, 247) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:55', 'notowner@account.test', '$2a$04$oLpP.UR/mlrcGEyQdyJOju99IDVjgwnjjl0nmJ0E1hQ.HJWiU/pVC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:55', 'User', 'e04770522391dee9947e58ab258d2674', 248, 'User', '2012-11-28 22:30:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', NULL, NULL, NULL, '2012-11-28 22:30:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account614' WHERE `accounts`.`id` = 614 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 614 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (614, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:30:55 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6909fb7fe_190880435d4885863@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', 'jabanilson', NULL, 1, '2012-11-28 22:30:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account615' WHERE `accounts`.`id` = 615  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (615, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 613 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 613 WHERE `account_users`.`id` = 425  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 613 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 885 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 886  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/613" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"613"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND `accounts`.`id` = 613 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 613 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 29ms (Views: 21.4ms | ActiveRecord: 3.6ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:55', '2012-11-28 22:30:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:55', 'User', '2a646fdfff99d1e214ea577dff2b42a8', 249, 'User', '2012-11-28 22:30:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', NULL, NULL, NULL, '2012-11-28 22:30:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account616' WHERE `accounts`.`id` = 616 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 616 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (616, 249) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909f3f5cc_190880435d4885981@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 249)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 249 AND `account_users`.`account_id` = 616 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (426) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (616) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', 'jabanilson', NULL, 1, '2012-11-28 22:30:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account617' WHERE `accounts`.`id` = 617  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (617, 249) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/617" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"617"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND `accounts`.`id` = 617 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 617 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 617 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_617_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 27ms (Views: 19.6ms | ActiveRecord: 3.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:55', '2012-11-28 22:30:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:55', 'User', '06ddaee23021c668f733416c234e8492', 250, 'User', '2012-11-28 22:30:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', NULL, NULL, NULL, '2012-11-28 22:30:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account618' WHERE `accounts`.`id` = 618 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 618 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (618, 250) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909f60184_190880435d4886023@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 250)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 250 AND `account_users`.`account_id` = 618 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (428) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (618) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', 'jabanilson', NULL, 1, '2012-11-28 22:30:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account619' WHERE `accounts`.`id` = 619  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (619, 250) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/619" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"619"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND `accounts`.`id` = 619 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 619 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_619_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 25ms (Views: 18.3ms | ActiveRecord: 3.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:55', 'teste@teste.com', '$2a$04$.BdPXUtJXGZSn5pjCTi8Numhcm3BsXNYWLO7/8NxC.BJ4qV1SjbXm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:55', 'User', '76dcc5f4ff3915c20e5474145033e5f6', 251, 'User', '2012-11-28 22:30:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', NULL, NULL, NULL, '2012-11-28 22:30:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account620' WHERE `accounts`.`id` = 620 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 620 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (620, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909f7ed73_190880435d48861d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:55', '2012-11-28 22:30:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:55', 'User', '61d21a9a8974de515475dee929078aeb', 252, 'User', '2012-11-28 22:30:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', NULL, NULL, NULL, '2012-11-28 22:30:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account621' WHERE `accounts`.`id` = 621 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 252) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:30:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909fa420a_190880435d4886213@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 252)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 161ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 904 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 905  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 903  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Started GET "/settings/account/621/users" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"621"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_621_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431, 432) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_431_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 251 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_432_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 Completed 200 OK in 37ms (Views: 28.1ms | ActiveRecord: 5.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:55', 'teste@teste.com', '$2a$04$l1n3LP9tKNnt3fy62UHIFOqjmDvadWvRioEtApTEWqe.ABwQIxjtu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:55', 'User', 'f1fac93e20691306636ca0c7d97155db', 253, 'User', '2012-11-28 22:30:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', NULL, NULL, NULL, '2012-11-28 22:30:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account622' WHERE `accounts`.`id` = 622 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 622 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (622, 253) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909fc72d4_190880435d4886356@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:55', '2012-11-28 22:30:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:55', 'User', 'bd6a67e1381c7cc7c5acb832a0754966', 254, 'User', '2012-11-28 22:30:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', NULL, NULL, NULL, '2012-11-28 22:30:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account623' WHERE `accounts`.`id` = 623 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 254) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6909fd221c_190880435d4886446@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 254)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 253) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 911 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 912  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 910  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Started GET "/settings/account/623/users" for 127.0.0.1 at 2012-11-28 20:30:55 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"623"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_623_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434, 435) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_434_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 253 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_435_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 Completed 200 OK in 33ms (Views: 24.1ms | ActiveRecord: 5.2ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:55', 'teste@teste.com', '$2a$04$G6pKGdKF.XUAHO/xYVFele0fkAleudz2H3hMiVKiPpISMAwM8skG6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:55', 'User', 'c2a8657688583a819e89ecd800eb71f0', 255, 'User', '2012-11-28 22:30:55') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:55', NULL, NULL, NULL, '2012-11-28 22:30:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:55', `updated_at` = '2012-11-28 22:30:55', `subdomain` = 'account624' WHERE `accounts`.`id` = 624 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 624 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (624, 255) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6909ff2d8a_190880435d4886515@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:56', '2012-11-28 22:30:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', '5a08f41b84e5c4b995c1d47850fb6895', 256, 'User', '2012-11-28 22:30:56') ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account625' WHERE `accounts`.`id` = 625 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 256) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a024614_190880435d4886666@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 256)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 158ms (ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 255) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 918 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 919  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 917  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Started GET "/settings/account/625/users" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"625"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_625_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437, 438) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_437_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 255 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_438_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 Completed 200 OK in 33ms (Views: 24.2ms | ActiveRecord: 5.4ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:56', 'teste@teste.com', '$2a$04$QviTSvijnv334Q6Uy4Orp.Mq6y9K6O8hbmSjdUv6LpQrZq5UNuGCi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', '06970029c4404fa401b43dfdc586d0c2', 257, 'User', '2012-11-28 22:30:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account626' WHERE `accounts`.`id` = 626 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 626 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (626, 257) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a0451da_190880435d4886768@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:56', '2012-11-28 22:30:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', '6c8dbc989681c2cb2dcee8a1e951f33a', 258, 'User', '2012-11-28 22:30:56') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account627' WHERE `accounts`.`id` = 627 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 258) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a050186_190880435d4886844@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 258)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 257) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 925 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 926  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 924  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Started GET "/settings/account/627/users" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"627"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_627_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440, 441) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_440_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 257 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_441_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 Completed 200 OK in 33ms (Views: 24.2ms | ActiveRecord: 5.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:56', 'teste@teste.com', '$2a$04$RO.y2hckPSiCicpGCoVZUOUJFRtSYawBlvftXa7gTg.r2A/8H0tBS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', '945662487f4e42c1a6c996f14789e7ea', 259, 'User', '2012-11-28 22:30:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account628' WHERE `accounts`.`id` = 628 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 628 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (628, 259) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a070f48_190880435d4886972@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:56', '2012-11-28 22:30:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', '464c1d2a9fed14bc015cb63a4d9b96a1', 260, 'User', '2012-11-28 22:30:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account629' WHERE `accounts`.`id` = 629 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 260) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a0968e3_190880435d4887049@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 260)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 158ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 259) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 932 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 933  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 931  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Started GET "/settings/account/629/users" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"629"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_629_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443, 444) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_443_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 259 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_444_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 Completed 200 OK in 33ms (Views: 24.7ms | ActiveRecord: 4.7ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:56', 'teste@teste.com', '$2a$04$g/UtWwZ6omvxzwm.Rv/aBOs/zJEBO6CXjuWFpymKib0/M4WRiN5DW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', '742d2f62228d38fc3e877a24ac160bad', 261, 'User', '2012-11-28 22:30:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account630' WHERE `accounts`.`id` = 630 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 630 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (630, 261) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a0b74de_190880435d48871c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:56', '2012-11-28 22:30:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', '359c7f7fa595a4529bd369b047457a1c', 262, 'User', '2012-11-28 22:30:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account631' WHERE `accounts`.`id` = 631 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 262) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a0c260f_190880435d4887236@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 262)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 261) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 940 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 941  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 939  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Started GET "/settings/account/631/users" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"631"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_631_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446, 447) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_446_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 261 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_447_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 Completed 200 OK in 32ms (Views: 23.6ms | ActiveRecord: 5.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:56', 'teste@teste.com', '$2a$04$HgVf3FCxRh.vydjOiuav5eDhEkygStffKmXQPwerOZC06EuN7lmwq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', '5ac516315be1dbb5b13e57f94ab88fa7', 263, 'User', '2012-11-28 22:30:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account632' WHERE `accounts`.`id` = 632 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 632 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (632, 263) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a0e2fe5_190880435d488734e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:56', '2012-11-28 22:30:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:56', 'User', 'f4eb02e84f891f279abe46a9173dd98c', 264, 'User', '2012-11-28 22:30:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:56', NULL, NULL, NULL, '2012-11-28 22:30:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:56', `updated_at` = '2012-11-28 22:30:56', `subdomain` = 'account633' WHERE `accounts`.`id` = 633 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 264) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a1149f5_190880435d488745@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 264)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 158ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 263) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 948 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 949  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 947  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Started GET "/settings/account/633/users" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"633"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_633_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449, 450) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_449_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 263 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_450_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 Completed 200 OK in 32ms (Views: 23.4ms | ActiveRecord: 5.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:57', 'teste@teste.com', '$2a$04$IHGyEL9bbJfWSb2r8l1ISeIRbwAUfHw5LIDC3ECzoVTEKbpWiO1Fy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', '5fefa587d92d97edde0358c05a2ca9ba', 265, 'User', '2012-11-28 22:30:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account634' WHERE `accounts`.`id` = 634 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 634 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (634, 265) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a1352d9_190880435d4887543@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:57', '2012-11-28 22:30:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', 'ba383c0dfd38575b11117aeb74f42667', 266, 'User', '2012-11-28 22:30:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account635' WHERE `accounts`.`id` = 635 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 266) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a140bf5_190880435d488766b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 266)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 265) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635)  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 956 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 957  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 955  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Started GET "/settings/account/635/users" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"635"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_635_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452, 453) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_452_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 265 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_453_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 Completed 200 OK in 33ms (Views: 24.5ms | ActiveRecord: 5.0ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:57', 'teste@teste.com', '$2a$04$stS9g55UYLSfeYUTCvNBg.2/yTAtmd6BFXGtPdiHjXHiQtbvkIxsa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', '21e53a906c681effb8491ee86c80accf', 267, 'User', '2012-11-28 22:30:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account636' WHERE `accounts`.`id` = 636 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 636 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (636, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a162c6c_190880435d488778e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:57', '2012-11-28 22:30:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', 'daf62ca3a62104ea152a1c39e6258313', 268, 'User', '2012-11-28 22:30:57') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account637' WHERE `accounts`.`id` = 637 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 268) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a16dd2c_190880435d48878a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 268)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Completed 200 OK in 119ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:57', 'notowner@account.test', '$2a$04$.2pImU5P.YL/E9IRxDXyH.SYzcixL2MIYuORaR7WOmUuubQgyf0My', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', '3357cebd77b5739dc736841e91ee2e84', 269, 'User', '2012-11-28 22:30:57') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account638' WHERE `accounts`.`id` = 638 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 638 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (638, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b690a1989d4_190880435d48879c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', 'jabanilson', NULL, 1, '2012-11-28 22:30:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account639' WHERE `accounts`.`id` = 639  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (639, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 637 WHERE `account_users`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 968 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 969  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 962 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 963  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Started GET "/settings/account/637/users" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"637"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_637_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455, 457, 458) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 269 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 Completed 200 OK in 44ms (Views: 36.2ms | ActiveRecord: 4.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:57', 'teste@teste.com', '$2a$04$G6.5oTJT6qkSXXxYr2EniOXyiRx195YwmMWHpkXnAe0I7A6J.xNhS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', 'd560cc1cbb8e036e1e0f9beacd312228', 270, 'User', '2012-11-28 22:30:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account640' WHERE `accounts`.`id` = 640 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 640 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (640, 270) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a1bae68_190880435d4888034@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:57', '2012-11-28 22:30:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', 'bb41fb3ac79c6048290dc90044e6b3e2', 271, 'User', '2012-11-28 22:30:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account641' WHERE `accounts`.`id` = 641 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 271) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a1c5e58_190880435d488814b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 271)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:57', 'notowner@account.test', '$2a$04$gejUr3zcJIzq0Cwm2u9cq.j2H3oUvaYh0F3WKkO5DltkHdh7sa4mW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', 'd85445c3d45256ea5405c76c5b9f5a0e', 272, 'User', '2012-11-28 22:30:57') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account642' WHERE `accounts`.`id` = 642 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 642 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (642, 272) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:30:57 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b690a1d5413_190880435d4888257@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', 'jabanilson', NULL, 1, '2012-11-28 22:30:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account643' WHERE `accounts`.`id` = 643  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (643, 272) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 641 WHERE `account_users`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 270) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 980 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 981  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 974 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 975  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Started GET "/settings/account/641/users" for 127.0.0.1 at 2012-11-28 20:30:57 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"641"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_641_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460, 462, 463) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 272 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 Completed 200 OK in 44ms (Views: 35.6ms | ActiveRecord: 4.9ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:57', 'teste@teste.com', '$2a$04$tnkkfslou9N6XAHPqsWPt.2D8lZy2.UjRTe91sUP4dF4Uqpsqhz2e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:57', 'User', '5844aba278ee9198626d4822181da4ee', 273, 'User', '2012-11-28 22:30:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:57', NULL, NULL, NULL, '2012-11-28 22:30:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:57', `updated_at` = '2012-11-28 22:30:57', `subdomain` = 'account644' WHERE `accounts`.`id` = 644 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 644 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (644, 273) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a21e318_190880435d4888354@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:58', '2012-11-28 22:30:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', 'c75153b100cfbe2eb8fe4b7de3355dde', 274, 'User', '2012-11-28 22:30:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account645' WHERE `accounts`.`id` = 645 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 274) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a2292f5_190880435d4888471@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 274)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:58', 'notowner@account.test', '$2a$04$5MNUbI30oUIl27GugSvfQevX.eZTAGCQG8hjY0ZakU2yPeT8CeH6C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', '6a542de8ebb2bc034287f277a1526a63', 275, 'User', '2012-11-28 22:30:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account646' WHERE `accounts`.`id` = 646 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 646 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (646, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b690a2387a7_190880435d488855d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', 'jabanilson', NULL, 1, '2012-11-28 22:30:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account647' WHERE `accounts`.`id` = 647  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (647, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 645 WHERE `account_users`.`id` = 467  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 273) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 992 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 993  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 986 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 987  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Started GET "/settings/account/645/users" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"645"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_645_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465, 467, 468) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 275 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 Completed 200 OK in 44ms (Views: 35.8ms | ActiveRecord: 4.9ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:58', 'teste@teste.com', '$2a$04$2B6logzgQkMUEK/yjt/fSeRqufsoiVVurc58dTXeBInVi55lmAJ5C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', '14eac985c1fd544db27a9a2aed79f279', 276, 'User', '2012-11-28 22:30:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account648' WHERE `accounts`.`id` = 648 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 648 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (648, 276) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a25acd6_190880435d4888645@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:58', '2012-11-28 22:30:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', 'f75951006c56a435d329f784909bf23b', 277, 'User', '2012-11-28 22:30:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account649' WHERE `accounts`.`id` = 649 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 277) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a265d87_190880435d4888752@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 277)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:58', 'notowner@account.test', '$2a$04$AwursuvQjLPy1MVU93x7GuNfIiDHUPF4BsNFNcGR7g0k.qr2ZRt2C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', '2fbd25feb62cc59a1534f2f55573dc87', 278, 'User', '2012-11-28 22:30:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account650' WHERE `accounts`.`id` = 650 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 650 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (650, 278) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b690a2751b8_190880435d4888839@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', 'jabanilson', NULL, 1, '2012-11-28 22:30:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account651' WHERE `accounts`.`id` = 651  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (651, 278) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 649 WHERE `account_users`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 276) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1004 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1005  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 998 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 999  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Started GET "/settings/account/649/users" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"649"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_649_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470, 472, 473) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 278 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 Completed 200 OK in 44ms (Views: 35.8ms | ActiveRecord: 4.6ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:58', 'teste@teste.com', '$2a$04$mSgKmLwkvM2o8mMw7VIwde6Ta1lhhO8WEis83hNpbzMOgKFyYOqb.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', 'b083b1fc8cea32fd02cbd8eb8042f3a0', 279, 'User', '2012-11-28 22:30:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account652' WHERE `accounts`.`id` = 652 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 652 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (652, 279) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a2b237e_190880435d48889fe@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:58', '2012-11-28 22:30:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', '84aafa07e1aa094219d93526b267b7c7', 280, 'User', '2012-11-28 22:30:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account653' WHERE `accounts`.`id` = 653 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 280) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a2bd090_190880435d488907f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 280)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 279) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1012 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1013  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1010 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1011  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Started GET "/settings/account/653/users" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"653"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_653_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475, 476) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_475_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 279 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_476_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 Completed 200 OK in 32ms (Views: 23.3ms | ActiveRecord: 5.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:58', 'teste@teste.com', '$2a$04$9bZ/zXuj82cu5UpyI5lNzuUkWJJSXY/C8OGHNPK7jVcwwYeCfF0nq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', '8bf4a732e0485748a6587b9465f43ca0', 281, 'User', '2012-11-28 22:30:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account654' WHERE `accounts`.`id` = 654 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 654 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (654, 281) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a2ddd4f_190880435d4889144@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:58', '2012-11-28 22:30:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:58', 'User', '2d35528d55fd9da5fcae2c3af9b422bc', 282, 'User', '2012-11-28 22:30:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:58', NULL, NULL, NULL, '2012-11-28 22:30:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:58', `updated_at` = '2012-11-28 22:30:58', `subdomain` = 'account655' WHERE `accounts`.`id` = 655 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 282) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:30:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a2e8b04_190880435d4889253@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 282)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:58 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 281) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1020 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1021  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1018 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1019  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Started GET "/settings/account/655/users" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"655"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_655_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478, 479) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_478_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 281 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_479_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 Completed 200 OK in 167ms (Views: 30.3ms | ActiveRecord: 4.9ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:59', 'teste@teste.com', '$2a$04$gUfb0gTPPAMh1NGOhHttMO6J4QFeMGtBItl/Ige/MUWtS6WNCldWu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', '43f86709d4b119d40e2fdcfa19a6174f', 283, 'User', '2012-11-28 22:30:59') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account656' WHERE `accounts`.`id` = 656 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 656 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (656, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'admin') Sent mail to teste@teste.com (10ms) Date: Wed, 28 Nov 2012 20:30:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a3379db_190880435d488932d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:59', '2012-11-28 22:30:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', 'c9ac24bc69abcb6ee874e69df84834d9', 284, 'User', '2012-11-28 22:30:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account657' WHERE `accounts`.`id` = 657 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 284) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:30:59 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a343eac_190880435d488944c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 284)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1028 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1029  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1026 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1027  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Started GET "/settings/account/657/users" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"657"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_657_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481, 482) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_481_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 283 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_482_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 Completed 200 OK in 33ms (Views: 24.4ms | ActiveRecord: 5.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:59', 'teste@teste.com', '$2a$04$AHdKNZ3qeK4ZwShCa3TwYeYNzwKRnJOnY0I.Mu3.gVasYtODeEzNC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', 'bdc37dba12402555991164a42f865834', 285, 'User', '2012-11-28 22:30:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account658' WHERE `accounts`.`id` = 658 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 658 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (658, 285) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:30:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a36529b_190880435d48895d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:59', '2012-11-28 22:30:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', '5625692fe7df0afea2584ec35894b11d', 286, 'User', '2012-11-28 22:30:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account659' WHERE `accounts`.`id` = 659 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 286) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:59 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a370733_190880435d4889699@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 286)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (485) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1036 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1037  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1034 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1035  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Started GET "/settings/account/659/users" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"659"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_659_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484, 485) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_484_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 285 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_485_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 Completed 200 OK in 147ms (Views: 138.3ms | ActiveRecord: 5.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:59', 'teste@teste.com', '$2a$04$b5fPn3TV.pyf/xBT1yhg7ORIEiWkzhDa4r6AuMBjpZ6jXXpfV0dc6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', '02a242b38835003bf19f4f9fb92891a0', 287, 'User', '2012-11-28 22:30:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account660' WHERE `accounts`.`id` = 660 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 660 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (660, 287) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a3adcc0_190880435d4889761@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:59', '2012-11-28 22:30:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', '53d366d58e3cb9a3fbd22e68bb223444', 288, 'User', '2012-11-28 22:30:59') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account661' WHERE `accounts`.`id` = 661 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (661, 288) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:59 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a3b9845_190880435d488988e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 288)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 661 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1043  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Started GET "/settings/account/661/users" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"661"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_661_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_487_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 Completed 200 OK in 25ms (Views: 17.5ms | ActiveRecord: 3.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:59', 'teste@teste.com', '$2a$04$G7OLJEUEt9aWFIEuXK95s.d8YvBb7hz3eqDlQe.nfLK5EK/6Rqmfy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', '591ce0a0254c8a430ed3f6e4b7fb3b44', 289, 'User', '2012-11-28 22:30:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account662' WHERE `accounts`.`id` = 662 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 662 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (662, 289) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:30:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a3d3b48_190880435d488999a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:59', '2012-11-28 22:30:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', '9ff713d92c4a770930890dcf8e83576e', 290, 'User', '2012-11-28 22:30:59') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account663' WHERE `accounts`.`id` = 663 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (663, 290) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:30:59 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a3defe6_190880435d48900b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 290)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 663 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1047  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Started GET "/settings/account/663/users" for 127.0.0.1 at 2012-11-28 20:30:59 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"663"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_663_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_489_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 Completed 200 OK in 25ms (Views: 17.8ms | ActiveRecord: 3.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:30:59', 'teste@teste.com', '$2a$04$pAcaf/anfBTnd64SsGGaCuFBOo/K2pNxRlg1FkhanbUqAxZDWqp9G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:30:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:30:59', 'User', '9321f644916333268e85ac61520a21e4', 291, 'User', '2012-11-28 22:30:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:30:59', NULL, NULL, NULL, '2012-11-28 22:30:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:30:59', `updated_at` = '2012-11-28 22:30:59', `subdomain` = 'account664' WHERE `accounts`.`id` = 664 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 664 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (664, 291) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:31:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a44c63_190880435d48901b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:00', '2012-11-28 22:31:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:00', 'User', 'd0d80c8dc931a1285252a84a47fc91ee', 292, 'User', '2012-11-28 22:31:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:00', NULL, NULL, NULL, '2012-11-28 22:31:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:00', `updated_at` = '2012-11-28 22:31:00', `subdomain` = 'account665' WHERE `accounts`.`id` = 665 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (665, 292) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:00 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a42cec5_190880435d489026f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 292)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 167ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 665 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1051  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Started GET "/settings/account/665/users" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"665"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_665_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_491_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 Completed 200 OK in 23ms (Views: 16.4ms | ActiveRecord: 3.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:00', 'teste@teste.com', '$2a$04$K6xoCOnzeBAFueJeALcm3.2i6/ke1wsaFrRLa6/R.HD5CuleB9nue', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:00', 'User', '0cffc07c6211efce8e4dab4ccc26ba49', 293, 'User', '2012-11-28 22:31:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:00', NULL, NULL, NULL, '2012-11-28 22:31:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:00', `updated_at` = '2012-11-28 22:31:00', `subdomain` = 'account666' WHERE `accounts`.`id` = 666 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 666 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (666, 293) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:31:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a445c49_190880435d4890355@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:00', '2012-11-28 22:31:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:00', 'User', '7fcfab89ea4852685ac523ea27e926c7', 294, 'User', '2012-11-28 22:31:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:00', NULL, NULL, NULL, '2012-11-28 22:31:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:00', `updated_at` = '2012-11-28 22:31:00', `subdomain` = 'account667' WHERE `accounts`.`id` = 667 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (667, 294) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:00 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a450a9e_190880435d4890479@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 294)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 667 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1055  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Started GET "/settings/account/667/users" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"667"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_667_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_493_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 Completed 200 OK in 25ms (Views: 16.9ms | ActiveRecord: 3.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:00', 'teste@teste.com', '$2a$04$1gHYcm.5dqIY2LdzskZ7J.L6qs0iEw2VbGefSJRgzFrwsw7Wi5/US', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:00') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:00', 'User', '5da24ee5425a3fdecd3794d339b798df', 295, 'User', '2012-11-28 22:31:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:00', NULL, NULL, NULL, '2012-11-28 22:31:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:00', `updated_at` = '2012-11-28 22:31:00', `subdomain` = 'account668' WHERE `accounts`.`id` = 668 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 668 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (668, 295) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:31:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a469ef1_190880435d4890521@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:00', '2012-11-28 22:31:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:00', 'User', '09f45671f1ef71db9a2f1e11d937e60d', 296, 'User', '2012-11-28 22:31:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:00', NULL, NULL, NULL, '2012-11-28 22:31:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:00', `updated_at` = '2012-11-28 22:31:00', `subdomain` = 'account669' WHERE `accounts`.`id` = 669 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 296) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:00 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a47513c_190880435d48906a2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 296)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 295) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1060 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1061  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1059  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 33ms (Views: 24.1ms | ActiveRecord: 5.0ms) Started DELETE "/settings/account/669/user/295" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"669", "user_id"=>"295"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 296 AND `account_users`.`account_id` = 669 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 496\n account_id: 669\n user_id: 295\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_496_destroy', '2012-11-28 22:31:00', '2012-11-28 22:31:00')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/669/users Completed 302 Found in 16ms (ActiveRecord: 3.6ms) Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 30ms (Views: 22.0ms | ActiveRecord: 4.7ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:00', 'teste@teste.com', '$2a$04$2Kd9yLHKWNiZSArUBYJFZOEheVjQGafSnV6KXi6GyxOzTvh5MXdFa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:00', 'User', '690b25d92c1c9ed2b7999989ef809a0c', 297, 'User', '2012-11-28 22:31:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:00', NULL, NULL, NULL, '2012-11-28 22:31:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:00', `updated_at` = '2012-11-28 22:31:00', `subdomain` = 'account670' WHERE `accounts`.`id` = 670 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 670 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (670, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:31:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a4bf245_190880435d48907a8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:00', '2012-11-28 22:31:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:00', 'User', '3ab5e7aac264957cab279661c70bb962', 298, 'User', '2012-11-28 22:31:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:00', NULL, NULL, NULL, '2012-11-28 22:31:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:00', `updated_at` = '2012-11-28 22:31:00', `subdomain` = 'account671' WHERE `accounts`.`id` = 671 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 298) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:31:00 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a4ca401_190880435d4890878@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 298)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1067 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1068  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1066  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 33ms (Views: 24.2ms | ActiveRecord: 5.3ms) Started DELETE "/settings/account/671/user/297" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"671", "user_id"=>"297"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 298 AND `account_users`.`account_id` = 671 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 499\n account_id: 671\n user_id: 297\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_499_destroy', '2012-11-28 22:31:00', '2012-11-28 22:31:00')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/671/users Completed 302 Found in 16ms (ActiveRecord: 3.6ms) Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 20:31:00 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 31ms (Views: 22.9ms | ActiveRecord: 4.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:00', 'teste@teste.com', '$2a$04$iz9YtqDRdA0Om3RscakYguOxgM5Ql1kDriEIiieb7kojoMgC1jZ8C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:00', 'User', '16722d53f3e3acaae6bd8e54a7bba29c', 299, 'User', '2012-11-28 22:31:00') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:01', NULL, NULL, NULL, '2012-11-28 22:31:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:01', `updated_at` = '2012-11-28 22:31:01', `subdomain` = 'account672' WHERE `accounts`.`id` = 672 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 672 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (672, 299) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:31:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a52266e_190880435d489091e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:01', '2012-11-28 22:31:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:01', 'User', '9dbb4a2e3113ed3cec5cf2eaf98db608', 300, 'User', '2012-11-28 22:31:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:01', NULL, NULL, NULL, '2012-11-28 22:31:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:01', `updated_at` = '2012-11-28 22:31:01', `subdomain` = 'account673' WHERE `accounts`.`id` = 673 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 300) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:01 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a52d549_190880435d489103@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 300)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 299) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1074 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1075  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1073  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 32ms (Views: 23.8ms | ActiveRecord: 4.9ms) Started DELETE "/settings/account/673/user/299" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"673", "user_id"=>"299"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 300 AND `account_users`.`account_id` = 673 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 502\n account_id: 673\n user_id: 299\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_502_destroy', '2012-11-29 22:31:01', '2012-11-28 22:31:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/673/users Completed 302 Found in 17ms (ActiveRecord: 3.9ms) Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 30ms (Views: 22.3ms | ActiveRecord: 4.7ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:01', 'teste@teste.com', '$2a$04$X/g3u8K1SvZ0Z4mtZtLsWu8v5uD1kfPx0VUiICh2cShEZE.Cb9nES', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:01') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:01', 'User', 'be63abd8a01bade8c403e0aea8cff0a0', 301, 'User', '2012-11-28 22:31:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:01', NULL, NULL, NULL, '2012-11-28 22:31:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:01', `updated_at` = '2012-11-28 22:31:01', `subdomain` = 'account674' WHERE `accounts`.`id` = 674 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 674 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (674, 301) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:31:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a55b623_190880435d48911bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:01', '2012-11-28 22:31:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:01', 'User', 'fd8cdb7b4f2f2333a21e5f4280e2ce44', 302, 'User', '2012-11-28 22:31:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:01', NULL, NULL, NULL, '2012-11-28 22:31:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:01', `updated_at` = '2012-11-28 22:31:01', `subdomain` = 'account675' WHERE `accounts`.`id` = 675 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 302) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:01 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a566597_190880435d48912ab@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 302)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 301) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1081 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1082  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1080  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 147ms (Views: 24.3ms | ActiveRecord: 5.1ms) Started DELETE "/settings/account/675/user/301" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"675", "user_id"=>"301"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 302 AND `account_users`.`account_id` = 675 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 505\n account_id: 675\n user_id: 301\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_505_destroy', '2012-11-29 22:31:01', '2012-11-28 22:31:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/675/users Completed 302 Found in 16ms (ActiveRecord: 3.9ms) Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 30ms (Views: 22.7ms | ActiveRecord: 4.6ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/orkut" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::OmniauthCallbacksController#passthru as HTML Parameters: {"provider"=>"orkut"} Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:01', '2012-11-28 22:31:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:01', 'User', 'a6c76c751b8c542ad291b8712ff21025', 303, 'User', '2012-11-28 22:31:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:01', NULL, NULL, NULL, '2012-11-28 22:31:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:01', `updated_at` = '2012-11-28 22:31:01', `subdomain` = 'account676' WHERE `accounts`.`id` = 676 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 676 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (676, 303) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:01 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a5b5efa_190880435d48913f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 303)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.6ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:01', '2012-11-28 22:31:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:01', 'User', '2ef82e9d8222592f1c085df68fc788b0', 304, 'User', '2012-11-28 22:31:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:01', NULL, NULL, NULL, '2012-11-28 22:31:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:01', `updated_at` = '2012-11-28 22:31:01', `subdomain` = 'account677' WHERE `accounts`.`id` = 677 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 677 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (677, 304) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:01 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a5c74ef_190880435d489147@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 304)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 20:31:01 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (5.0ms) Completed 200 OK in 185ms (Views: 183.1ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:02', 'test@test.test', '$2a$04$dGxR/N86X1j7NSg4JYzNA.jqFLMQSL5qo/1elt3qErQlKy8tj04cy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:02', 'User', '4f7cde962733220dd94c9d6d5b196b6c', 305, 'User', '2012-11-28 22:31:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', NULL, NULL, NULL, '2012-11-28 22:31:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account678' WHERE `accounts`.`id` = 678 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 678 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (678, 305) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b690a610ca0_190880435d489158a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 LIMIT 1 Completed 302 Found in 46ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 305)  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_305_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 Completed 200 OK in 45ms (Views: 40.7ms | ActiveRecord: 2.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'facebook@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:02', 'facebook@test.test', '$2a$04$.C/KY9GNt4Z2x1lk0Y0E/uTMEgQaVIJK90YzAaZB2LSEoUAjAP1wW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:02', 'User', '2d5ec0a9986a19c7e9a01e17c532fbdb', 306, 'User', '2012-11-28 22:31:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', NULL, NULL, NULL, '2012-11-28 22:31:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account679' WHERE `accounts`.`id` = 679 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 679 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (679, 306) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a660208_190880435d48916cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test' Redirected to http://iugusdk.dev/ Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:02', '2012-11-28 22:31:02', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:02', 'User', '47f16e13b37be520daba9f3888d0e786', 307, 'User', '2012-11-28 22:31:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', NULL, NULL, NULL, '2012-11-28 22:31:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account680' WHERE `accounts`.`id` = 680 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 680 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (680, 307) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 307)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 30ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.5ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:02', 'test@test.test', '$2a$04$YCrwGT9oIa3N3XBLyvDiSuW2LKZCpa.SGrbP4Dp3A.I0Lmo8bL.02', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:02', 'User', 'd391531aa432f095bc029d88d6b774e7', 308, 'User', '2012-11-28 22:31:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', NULL, NULL, NULL, '2012-11-28 22:31:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account681' WHERE `accounts`.`id` = 681 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 681 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (681, 308) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b690a6838e6_190880435d4891790@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 308)  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_308_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 Completed 200 OK in 24ms (Views: 19.6ms | ActiveRecord: 2.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:02', '2012-11-28 22:31:02', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:02', 'User', '9cfebab71afc3c33521abca0fa6db478', 309, 'User', '2012-11-28 22:31:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', NULL, NULL, NULL, '2012-11-28 22:31:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account682' WHERE `accounts`.`id` = 682 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 682 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (682, 309) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a6bd035_190880435d4891860@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 309)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 309 AND `account_users`.`account_id` = 682 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (512) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (682) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 512\n account_id: 682\n user_id: 309\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_512_destroy', '2012-11-29 22:31:02', '2012-11-28 22:31:02')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', 'jabanilson', NULL, 1, '2012-11-28 22:31:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account683' WHERE `accounts`.`id` = 683  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (683, 309) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_309_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:02', '2012-11-28 22:31:02', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:02', 'User', '9cde9d5c7ca2a7d3fa445e3318e98294', 310, 'User', '2012-11-28 22:31:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', NULL, NULL, NULL, '2012-11-28 22:31:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account684' WHERE `accounts`.`id` = 684 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 684 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (684, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a6db12f_190880435d4891990@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 310)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 310 AND `account_users`.`account_id` = 684 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (514) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (684) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 514\n account_id: 684\n user_id: 310\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_514_destroy', '2012-11-29 22:31:02', '2012-11-28 22:31:02')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', 'jabanilson', NULL, 1, '2012-11-28 22:31:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account685' WHERE `accounts`.`id` = 685  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (685, 310) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:02', 'jabanilson', NULL, 1, '2012-11-28 22:31:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:02', `updated_at` = '2012-11-28 22:31:02', `subdomain` = 'account686' WHERE `accounts`.`id` = 686  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (686, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:02 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_310_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 Completed 200 OK in 136ms (Views: 131.6ms | ActiveRecord: 2.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:03', '2012-11-28 22:31:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', 'e03da44a281177ce5a6cfcb4d155fb87', 311, 'User', '2012-11-28 22:31:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account687' WHERE `accounts`.`id` = 687 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 687 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (687, 311) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a724123_190880435d48920aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 311)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_311_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 21ms (Views: 17.3ms | ActiveRecord: 2.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:03', '2012-11-28 22:31:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', 'b1c998e41013637c57258d3e9f951632', 312, 'User', '2012-11-28 22:31:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account688' WHERE `accounts`.`id` = 688 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 688 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (688, 312) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a73bca5_190880435d48921e7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 312)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:03', 'teste@teste.com', '$2a$04$kUWqRJNY7u9wLAiQbmyXju1.tOwTbyu1PxE5m1h4.gQGCm.x2hEkC', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', '6fc27d8359e27a345fbe32b83c07fa4c', 313, 'User', '2012-11-28 22:31:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account689' WHERE `accounts`.`id` = 689 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 689 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (689, 313) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a74a94a_190880435d48922d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', 'jabanilson', NULL, 1, '2012-11-28 22:31:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account690' WHERE `accounts`.`id` = 690  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', 'jabanilson', NULL, 1, '2012-11-28 22:31:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account691' WHERE `accounts`.`id` = 691  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 691 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (691, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:31:03', 'tKjSff4EDdFNRbVCnmUuAZ2P5tE') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b690a751b46_190880435d48923d0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/22tKjSff4EDdFNRbVCnmUuAZ2P5tE  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 690 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 690, `invited_by` = 313 WHERE `user_invitations`.`id` = 22  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/22tKjSff4EDdFNRbVCnmUuAZ2P5tE" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"22tKjSff4EDdFNRbVCnmUuAZ2P5tE"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 22 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 313 LIMIT 1 Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.1ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:03', '2012-11-28 22:31:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', 'f2d61e2fa7420237c90c02aeffb94a19', 314, 'User', '2012-11-28 22:31:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account692' WHERE `accounts`.`id` = 692 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 692 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (692, 314) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a77ec80_190880435d4892486@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 314)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 166ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:03', 'teste@teste.com', '$2a$04$kQZPxJiL62AKkn3mgYzJnuO56aUeOq2EDf.B8tq8f0XYcmXkj8C/S', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', 'c30b0eb112267a719621cd330dace3c3', 315, 'User', '2012-11-28 22:31:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account693' WHERE `accounts`.`id` = 693 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 693 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (693, 315) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a78d0cd_190880435d4892588@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', 'jabanilson', NULL, 1, '2012-11-28 22:31:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account694' WHERE `accounts`.`id` = 694  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', 'jabanilson', NULL, 1, '2012-11-28 22:31:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account695' WHERE `accounts`.`id` = 695  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 695 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (695, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:31:03', 'djgxQkpCCKXIUyb2-LXvLbBD3Vc') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b690a794389_190880435d4892620@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/23djgxQkpCCKXIUyb2-LXvLbBD3Vc  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 694 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 694, `invited_by` = 315 WHERE `user_invitations`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/23djgxQkpCCKXIUyb2-LXvLbBD3Vc" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"23djgxQkpCCKXIUyb2-LXvLbBD3Vc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 23 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 315 LIMIT 1 Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 1.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:03', '2012-11-28 22:31:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', 'c70983142a564027fd87d9355afb3a08', 316, 'User', '2012-11-28 22:31:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account696' WHERE `accounts`.`id` = 696 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 696 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (696, 316) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a7a426a_190880435d48927cc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 316)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:03', 'teste@teste.com', '$2a$04$Yc97e9CY90BFUdv.wMvyverdbs.cCWvEIOLN1GqEu0TpR.9g9vQOa', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', '6159990b3ca286abd4914d49f137f364', 317, 'User', '2012-11-28 22:31:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account697' WHERE `accounts`.`id` = 697 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 697 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (697, 317) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b690a7b2923_190880435d48928eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', 'jabanilson', NULL, 1, '2012-11-28 22:31:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account698' WHERE `accounts`.`id` = 698  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', 'jabanilson', NULL, 1, '2012-11-28 22:31:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account699' WHERE `accounts`.`id` = 699  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 699 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (699, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:31:03', 'RQnfjMZ6rhUB94Jlq_rgrjxGdbQ') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b690a7b9c1e_190880435d48929cd@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/24RQnfjMZ6rhUB94Jlq_rgrjxGdbQ  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 698 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 698, `invited_by` = 317 WHERE `user_invitations`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/24RQnfjMZ6rhUB94Jlq_rgrjxGdbQ" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"24RQnfjMZ6rhUB94Jlq_rgrjxGdbQ"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 24 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 317 LIMIT 1 Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 1.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:03', '2012-11-28 22:31:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', 'ebb6880178d5d6d0f7e224708eb88a53', 318, 'User', '2012-11-28 22:31:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account700' WHERE `accounts`.`id` = 700 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 318) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a7c9de2_190880435d4893062@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 318)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 167ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:03 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:03', 'tester@roles.test', '$2a$04$wU.EgcF73rREf.AXugQDeufioqIZxdS.bjc0zO2UD3rOZxYc01emu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:03', 'User', '513341e57a14d5a634c60fc3dd73415a', 319, 'User', '2012-11-28 22:31:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:03', NULL, NULL, NULL, '2012-11-28 22:31:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:03', `updated_at` = '2012-11-28 22:31:03', `subdomain` = 'account701' WHERE `accounts`.`id` = 701 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 701 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (701, 319) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a81484_190880435d4893117@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 319) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/700/invite" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"700"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 318 AND `account_users`.`account_id` = 700 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 700 AND `account_users`.`user_id` = 318 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (524) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (700) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 3.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:04', '2012-11-28 22:31:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', '4dd99e8edfc55b9368afc0634f856111', 320, 'User', '2012-11-28 22:31:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account702' WHERE `accounts`.`id` = 702 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 320) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a816bd1_190880435d48932db@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 320)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:04', 'tester@roles.test', '$2a$04$3NAx7IyriWzmLxOoptOQOe4BVLy1EaMCYcgAixzoOxXOWHdkWNcGW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', '7b150a98f752661709ac61eaea328df8', 321, 'User', '2012-11-28 22:31:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account703' WHERE `accounts`.`id` = 703 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 703 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (703, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a82607c_190880435d489331a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/702/invite" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"702"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 320 AND `account_users`.`account_id` = 702 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 702 AND `account_users`.`user_id` = 320 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (527) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (702) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.3ms | ActiveRecord: 2.9ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:04', '2012-11-28 22:31:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', '68be816bc240316fe504ddd0953b89f7', 322, 'User', '2012-11-28 22:31:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account704' WHERE `accounts`.`id` = 704 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 322) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a83b3ba_190880435d489349e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 322)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:04', 'tester@roles.test', '$2a$04$91P3s0lxz7s07bA8H9XRROoIBY8Pe8MuYKvHcdExLzYigYDY2RIYe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', '638a9ac2459ffe292231b776997a4545', 323, 'User', '2012-11-28 22:31:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account705' WHERE `accounts`.`id` = 705 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 705 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (705, 323) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a84a6f9_190880435d4893586@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 323) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/704/invite" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"704"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 322 AND `account_users`.`account_id` = 704 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 704 AND `account_users`.`user_id` = 322 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (530) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (704) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.2ms | ActiveRecord: 2.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:04', '2012-11-28 22:31:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', '13ce7747aa35ecdd8114403ebc644b20', 324, 'User', '2012-11-28 22:31:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account706' WHERE `accounts`.`id` = 706 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 324) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a87c26c_190880435d48936c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 324)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:04', 'tester@roles.test', '$2a$04$7zBWsIgBs11idM91Tl3ztOXFsHdSxENsWlsTt8Tg75K4/ly1u8l56', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', '0824b276df704feb83cbdaf40d294e5d', 325, 'User', '2012-11-28 22:31:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account707' WHERE `accounts`.`id` = 707 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 707 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (707, 325) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a88b19a_190880435d489378f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 325) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/706/invite" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"706"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 324 AND `account_users`.`account_id` = 706 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 706 AND `account_users`.`user_id` = 324 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (533) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (706) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.0ms | ActiveRecord: 2.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:04', '2012-11-28 22:31:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', 'ae8ee1e10185734011c6b199177e20ef', 326, 'User', '2012-11-28 22:31:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account708' WHERE `accounts`.`id` = 708 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 326) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a89fac9_190880435d48938ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 326)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:04', 'tester@roles.test', '$2a$04$7NdLHZU6T4XZ2EypDttUte355cGRilkT7o.C6p1yoVS972senIGBG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', '4f461c5443cac104ce4eecbb554369d1', 327, 'User', '2012-11-28 22:31:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account709' WHERE `accounts`.`id` = 709 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 709 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (709, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a8af23e_190880435d4893989@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/708/invite" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"708"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 326 AND `account_users`.`account_id` = 708 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 708 AND `account_users`.`user_id` = 326 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (536) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (708) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.0ms | ActiveRecord: 2.7ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:04', '2012-11-28 22:31:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', 'd9b9df125d1f017f297beb5bb3b27c17', 328, 'User', '2012-11-28 22:31:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account710' WHERE `accounts`.`id` = 710 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 328) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a8e1006_190880435d489407d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 328)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 171ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:04 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:04', 'tester@roles.test', '$2a$04$oGqP4Lg/JZbBpxsOj5nSd.poDW0bEEoQIgWbP5qhxlaEXdyONtnW2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:04', 'User', '106202d564fcdfb51e9b130840c02010', 329, 'User', '2012-11-28 22:31:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:04', NULL, NULL, NULL, '2012-11-28 22:31:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:04', `updated_at` = '2012-11-28 22:31:04', `subdomain` = 'account711' WHERE `accounts`.`id` = 711 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 711 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (711, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:31:04 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a8f01e4_190880435d4894151@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/710/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"710"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 328 AND `account_users`.`account_id` = 710 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 710 AND `account_users`.`user_id` = 328 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (539) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (710) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.7ms | ActiveRecord: 2.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:05', '2012-11-28 22:31:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', 'a6b911fc0d61e2c2f97d50fe744efc04', 330, 'User', '2012-11-28 22:31:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account712' WHERE `accounts`.`id` = 712 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 330) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:31:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a91116e_190880435d48942b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 330)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:05', 'tester@roles.test', '$2a$04$g3kaEK7qFvjBY9OE1KeQXO4Jf7huDV0HPsFgcAp950/fjT9Ehf5D2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', '512862fa7aeacf484eb0155b0169bd4b', 331, 'User', '2012-11-28 22:31:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account713' WHERE `accounts`.`id` = 713 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 713 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (713, 331) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:31:05 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a921102_190880435d4894333@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 331) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.6ms | ActiveRecord: 3.0ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542  (0.3ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 712 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1156 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:05', '2012-11-28 22:31:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', '7496dd96ef6795b5a3cea20a1acecc74', 332, 'User', '2012-11-28 22:31:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account714' WHERE `accounts`.`id` = 714 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 332) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'admin') Sent mail to facebook@test.test (127ms) Date: Wed, 28 Nov 2012 20:31:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a93d4f7_190880435d48944ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 332)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 171ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:05', 'tester@roles.test', '$2a$04$hVG2uBDaN4bXeWjIfjQxiem6fsBJfT.bB3AitKYRA1lcuO98c7gjK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', '59c4b6937375b80007832f24c04b4737', 333, 'User', '2012-11-28 22:31:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account715' WHERE `accounts`.`id` = 715 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 715 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (715, 333) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:31:05 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a969d86_190880435d4894539@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 333) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 2.7ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 714 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1163 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 3.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:05', '2012-11-28 22:31:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', '040741eabcebb7cca58d6a9c0dbf9267', 334, 'User', '2012-11-28 22:31:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account716' WHERE `accounts`.`id` = 716 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 334) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a98585b_190880435d4894651@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 334)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:05', 'tester@roles.test', '$2a$04$hTilHYkw/MIp1Sh/GRJ8NOB5bgxZ/Rp9LhKj2AxjEG6SLylKbHure', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', '979e716129fea7880323ee1231165822', 335, 'User', '2012-11-28 22:31:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account717' WHERE `accounts`.`id` = 717 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 717 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (717, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:31:05 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a994823_190880435d4894739@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 3.1ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 716 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1170 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 9.6ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:05', '2012-11-28 22:31:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', '3dd9d92c044fc647f7e4aa3149b0ac76', 336, 'User', '2012-11-28 22:31:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account718' WHERE `accounts`.`id` = 718 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 336) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'admin') Sent mail to facebook@test.test (128ms) Date: Wed, 28 Nov 2012 20:31:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690a9b0597_190880435d489488b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 336)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 171ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:05', 'tester@roles.test', '$2a$04$PaAO5N7uNz4kwy8//5IAhO4q24IQFQu8beyqhJr78swCoo7sZPGh2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', '35d52707ef1bf88f9d6907be16151b46', 337, 'User', '2012-11-28 22:31:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account719' WHERE `accounts`.`id` = 719 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 719 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (719, 337) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:31:05 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690a9dd128_190880435d48949d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 337) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 2.9ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 718 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1177 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1178  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 3.0ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:05', '2012-11-28 22:31:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:05', 'User', 'a479842851433159620f4e3cc9226ef7', 338, 'User', '2012-11-28 22:31:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:05', NULL, NULL, NULL, '2012-11-28 22:31:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:05', `updated_at` = '2012-11-28 22:31:05', `subdomain` = 'account720' WHERE `accounts`.`id` = 720 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 338) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690aa4eca_190880435d4895043@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 338)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:06', 'tester@roles.test', '$2a$04$aBcuQ9vPj5CI5sX52FzPYOH4OYVR.4p8Y7UvPFNrHFeDaAu3denke', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:06', 'User', '0ff1f3853e811fbdffea48964ec41780', 339, 'User', '2012-11-28 22:31:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:06', NULL, NULL, NULL, '2012-11-28 22:31:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:06', `updated_at` = '2012-11-28 22:31:06', `subdomain` = 'account721' WHERE `accounts`.`id` = 721 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 721 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (721, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690aa13e49_190880435d489516d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 339) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 2.7ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 720 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1184 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1185  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 12.8ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:06', '2012-11-28 22:31:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:06', 'User', '4d71bc5e0b3b56b22395b5ef9ed918ef', 340, 'User', '2012-11-28 22:31:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:06', NULL, NULL, NULL, '2012-11-28 22:31:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:06', `updated_at` = '2012-11-28 22:31:06', `subdomain` = 'account722' WHERE `accounts`.`id` = 722 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 340) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin') Sent mail to facebook@test.test (126ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690aa304dc_190880435d489522@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 340)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 169ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:06', 'tester@roles.test', '$2a$04$n26XxDxbt8D6ZArev7aUUOBRYuRK.pyWSSju8yMQcRWiwNvtWNUDS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:06', 'User', '79419ae296c42191a896e1070b5da568', 341, 'User', '2012-11-28 22:31:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:06', NULL, NULL, NULL, '2012-11-28 22:31:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:06', `updated_at` = '2012-11-28 22:31:06', `subdomain` = 'account723' WHERE `accounts`.`id` = 723 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 723 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (723, 341) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690aa5c883_190880435d4895344@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 341) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.6ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 722 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1191 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 12.7ms | ActiveRecord: 3.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:06', '2012-11-28 22:31:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:06', 'User', '13a93f2b6f3b397896c1686171bf367f', 342, 'User', '2012-11-28 22:31:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:06', NULL, NULL, NULL, '2012-11-28 22:31:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:06', `updated_at` = '2012-11-28 22:31:06', `subdomain` = 'account724' WHERE `accounts`.`id` = 724 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 342) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690aa79306_190880435d48954a0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 342)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:06', 'tester@roles.test', '$2a$04$vz7EOu93KINkK5xOyN9KUOT/LhM3q6BZTBR.TmPZd6m3.QwxhPfu.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:06', 'User', 'd8bfe70285798dd35349f2f457860c4b', 343, 'User', '2012-11-28 22:31:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:06', NULL, NULL, NULL, '2012-11-28 22:31:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:06', `updated_at` = '2012-11-28 22:31:06', `subdomain` = 'account725' WHERE `accounts`.`id` = 725 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 725 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (725, 343) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690aa88626_190880435d489554b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 343) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 3.1ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 724 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1198 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 20ms (Views: 12.6ms | ActiveRecord: 2.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:06', '2012-11-28 22:31:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:06', 'User', 'e8e74583219e4f333488a3ffc151864d', 344, 'User', '2012-11-28 22:31:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:06', NULL, NULL, NULL, '2012-11-28 22:31:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:06', `updated_at` = '2012-11-28 22:31:06', `subdomain` = 'account726' WHERE `accounts`.`id` = 726 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 344) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin') Sent mail to facebook@test.test (128ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690aaa50b8_190880435d48956a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 344)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 173ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:06', 'tester@roles.test', '$2a$04$aXZmIzsF7ZLwNAVuakkMj.sQ.bJB9RMFYwuzROO1gcnrB709.mXK.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:06', 'User', '5abf2d9fd11206180a0d0876fe681584', 345, 'User', '2012-11-28 22:31:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:06', NULL, NULL, NULL, '2012-11-28 22:31:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:06', `updated_at` = '2012-11-28 22:31:06', `subdomain` = 'account727' WHERE `accounts`.`id` = 727 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 727 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (727, 345) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b690aad1e3c_190880435d48957f2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 345) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.6ms | ActiveRecord: 3.1ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 726 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1205 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1206  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 12.4ms | ActiveRecord: 3.1ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:06', '2012-11-28 22:31:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:06', 'User', 'cdfefb36a6c8040e36d9f0cfef6b7621', 346, 'User', '2012-11-28 22:31:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:06', NULL, NULL, NULL, '2012-11-28 22:31:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:06', `updated_at` = '2012-11-28 22:31:06', `subdomain` = 'account728' WHERE `accounts`.`id` = 728 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 728 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (728, 346) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690aaee61f_190880435d4895874@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 346)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:06 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_346_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.2ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:07', '2012-11-28 22:31:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:07', 'User', 'bf7e83a246aadff71c741d11a1365734', 347, 'User', '2012-11-28 22:31:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:07', NULL, NULL, NULL, '2012-11-28 22:31:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:07', `updated_at` = '2012-11-28 22:31:07', `subdomain` = 'account729' WHERE `accounts`.`id` = 729 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 729 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (729, 347) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690ab2d6ff_190880435d48959a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 347)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 167ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 2.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 21ms (Views: 17.2ms | ActiveRecord: 2.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:07', '2012-11-28 22:31:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:07', 'User', 'd8858cdb5289b4a43a9c040e4b47de8e', 348, 'User', '2012-11-28 22:31:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:07', NULL, NULL, NULL, '2012-11-28 22:31:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:07', `updated_at` = '2012-11-28 22:31:07', `subdomain` = 'account730' WHERE `accounts`.`id` = 730 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 730 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (730, 348) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690ab49e1d_190880435d489604@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 348)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.2ms | ActiveRecord: 2.6ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:07', '2012-11-28 22:31:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:07', 'User', '2077e0d8697e788fcfc4f0bc9f517715', 349, 'User', '2012-11-28 22:31:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:07', NULL, NULL, NULL, '2012-11-28 22:31:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:07', `updated_at` = '2012-11-28 22:31:07', `subdomain` = 'account731' WHERE `accounts`.`id` = 731 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 731 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (731, 349) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690ab8457b_190880435d4896119@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 349)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 170ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.6ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 349\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:31:07.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:31:07.000000000Z\n updated_at: 2012-11-28 22:31:07.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_349_destroy', '2012-11-28 22:31:07', '2012-11-28 22:31:07')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.7ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 2.3ms)  (4.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:07', '2012-11-28 22:31:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:07', 'User', '5b68a61052b0b0484d955535e7af3499', 350, 'User', '2012-11-28 22:31:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:07', NULL, NULL, NULL, '2012-11-28 22:31:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:07', `updated_at` = '2012-11-28 22:31:07', `subdomain` = 'account732' WHERE `accounts`.`id` = 732 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 732 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (732, 350) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690aba5410_190880435d489629f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 350)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 9.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 350\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:31:07.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:31:07.000000000Z\n updated_at: 2012-11-28 22:31:07.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_350_destroy', '2012-11-28 22:31:07', '2012-11-28 22:31:07')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 2.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:07', '2012-11-28 22:31:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:07', 'User', 'd10c96fd8c84621745a92d5333e7768d', 351, 'User', '2012-11-28 22:31:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:07', NULL, NULL, NULL, '2012-11-28 22:31:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:07', `updated_at` = '2012-11-28 22:31:07', `subdomain` = 'account733' WHERE `accounts`.`id` = 733 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 733 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (733, 351) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690abe3b8c_190880435d4896317@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 351)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.5ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 351\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:31:07.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:31:07.000000000Z\n updated_at: 2012-11-28 22:31:07.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_351_destroy', '2012-11-28 22:31:07', '2012-11-28 22:31:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:31:07', `updated_at` = '2012-11-28 22:31:07' WHERE `delayed_jobs`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:07 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:08', '2012-11-28 22:31:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:08', 'User', '91be270fb8e3ae13bb0588fbbd500b45', 352, 'User', '2012-11-28 22:31:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:08', NULL, NULL, NULL, '2012-11-28 22:31:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:08', `updated_at` = '2012-11-28 22:31:08', `subdomain` = 'account734' WHERE `accounts`.`id` = 734 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 734 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (734, 352) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690acef1d_190880435d48964a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 352)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 168ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 Completed 200 OK in 18ms (Views: 14.8ms | ActiveRecord: 1.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:08', '2012-11-28 22:31:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:08', 'User', '5e6de608238b378794b1a92cf27ef021', 353, 'User', '2012-11-28 22:31:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:08', NULL, NULL, NULL, '2012-11-28 22:31:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:08', `updated_at` = '2012-11-28 22:31:08', `subdomain` = 'account735' WHERE `accounts`.`id` = 735 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 735 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (735, 353) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:31:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b690ac47e5d_190880435d48965d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 353)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_353_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 183ms (Views: 181.7ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:31:08', '2012-11-28 22:31:08', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:31:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:08', 'User', 'a08d8e8059d29f48ae6cadc927122e69', 354, 'User', '2012-11-28 22:31:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:08', NULL, NULL, NULL, '2012-11-28 22:31:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:08', `updated_at` = '2012-11-28 22:31:08', `subdomain` = 'account736' WHERE `accounts`.`id` = 736 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 736 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (736, 354) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 574) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 574 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (574, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 574) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 574 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (574, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:31:08', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 354\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:31:08.560717000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:31:08.561596000Z\n updated_at: 2012-11-28 22:31:08.561596000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_354', '2012-12-05 22:31:08', '2012-11-28 22:31:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:31:08', `updated_at` = '2012-11-28 22:31:08' WHERE `users`.`id` = 354  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 354 AND (accounts.id = '735') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 354 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 33ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 354 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:31:08 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 354 LIMIT 1 Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'good@email.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:30:27', '2012-11-28 22:31:08', 'good@email.com', '$2a$04$0Io8Dnk6v2Dy3kcRLQNsz.mTSXINDDAUVtr9/Zzr1DynOHE20BgI6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:31:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 355 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:31:08', 'User', 'a6b6e2afb81d3b5e5f52f377214c4d6e', 355, 'User', '2012-11-28 22:31:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 355 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:31:08', NULL, NULL, NULL, '2012-11-28 22:31:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:31:08', `updated_at` = '2012-11-28 22:31:08', `subdomain` = 'account737' WHERE `accounts`.`id` = 737 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 737 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (737, 355) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 575) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (575, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 575) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 575 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (575, 'admin') Sent mail to good@email.com (7ms) Date: Wed, 28 Nov 2012 20:31:08 -0200 From: Iugu Reply-To: Iugu To: good@email.com Message-ID: <50b690aca0c14_190880435d4896678@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 355  (1.0ms) ROLLBACK  (0.1ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notanemail' LIMIT 1  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (23.3ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (6.9ms) TRUNCATE TABLE `account_users`;  (1.4ms) TRUNCATE TABLE `accounts`;  (1.1ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:19', 'teste@teste.com', '$2a$04$2pciqADHIxTKNH2nyTMUXeIPlZlkvjWdGgXnWYeSGB1NYHDa4ymWC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:19') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', NULL, NULL, NULL, '2012-11-28 22:35:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.7ms) Completed 200 OK in 72ms (Views: 68.8ms | ActiveRecord: 0.5ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:19', 'teste@teste.com', '$2a$04$cWhll8aTLXGWmHJQigZ4WeGDYx7Z7Zer.Rjud1nv3jtAX6zkmBdTS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', NULL, NULL, NULL, '2012-11-28 22:35:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 5 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND `accounts`.`id` = 4 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 4 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 13ms (Views: 2.6ms | ActiveRecord: 3.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:19', 'teste@teste.com', '$2a$04$XK8BQashD9IQIb2rd7m9k.DFetMso4kUN4ieDhcyhebCu8bF.XVqS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:19') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', NULL, NULL, NULL, '2012-11-28 22:35:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 8 WHERE `account_users`.`id` = 6  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 3 AND `account_users`.`account_id` = 7 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (5) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (7) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 7 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 132ms (Views: 1.8ms | ActiveRecord: 2.1ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:19', 'teste@teste.com', '$2a$04$0.VDgqSpbqBmit1cXcnX2eXL0s5KIiaYWdsD/5RkBRoWrn4Ka8cGG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', NULL, NULL, NULL, '2012-11-28 22:35:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 4) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account11' WHERE `accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account12' WHERE `accounts`.`id` = 12  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 4) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 11 WHERE `account_users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"10"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 10 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND `accounts`.`id` = 10 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 10\n created_at: 2012-11-28 22:35:19.000000000Z\n updated_at: 2012-11-28 22:35:19.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account10\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_10_destroy', '2012-11-28 22:35:19', '2012-11-28 22:35:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_10_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 33ms (ActiveRecord: 5.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:19', 'teste@teste.com', '$2a$04$RywoHdM.VXTD57F4zaLcdOUxDCyBOFMrUvEh3ULhcUQGdueP5Xchq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', NULL, NULL, NULL, '2012-11-28 22:35:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account14' WHERE `accounts`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:19', 'jabanilson', NULL, 1, '2012-11-28 22:35:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:19', `updated_at` = '2012-11-28 22:35:19', `subdomain` = 'account15' WHERE `accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 14 WHERE `account_users`.`id` = 10  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 13 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND `accounts`.`id` = 13 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 13\n created_at: 2012-11-28 22:35:19.000000000Z\n updated_at: 2012-11-28 22:35:19.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account13\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_13_destroy', '2012-11-28 22:35:20', '2012-11-28 22:35:20')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 12ms (ActiveRecord: 2.6ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$HCeSvmgwPQ4bahkAUjDJW.0qHYeWXZZW/4c2A3w1bLJ0aPBlNvU5O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account17' WHERE `accounts`.`id` = 17  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 17 WHERE `account_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"16"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$w6UKfvuU74I2s5JqHg4Q4ORiV/.GMczu27S.Qhy266sGOMiT0w4WG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account20' WHERE `accounts`.`id` = 20  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account21' WHERE `accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (21, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 20 WHERE `account_users`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 19\n created_at: 2012-11-28 22:35:20.000000000Z\n updated_at: 2012-11-28 22:35:20.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account19\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_19_destroy', '2012-11-28 22:35:20', '2012-11-28 22:35:20')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"19"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 7 AND `account_users`.`account_id` = 19 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 13 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND `accounts`.`id` = 19 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$YGf8Bu.pBAyKfycOB4vrreGqflWL1SjSyzVhi3G.uZD2jgNrjtJYi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account22' WHERE `accounts`.`id` = 22 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 22 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (22, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account23' WHERE `accounts`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account24' WHERE `accounts`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 23 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 23 WHERE `account_users`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 22\n created_at: 2012-11-28 22:35:20.000000000Z\n updated_at: 2012-11-28 22:35:20.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account22\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_22_destroy', '2012-11-28 22:35:20', '2012-11-28 22:35:20')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"22"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 22 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND `accounts`.`id` = 22 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$.2y6X.auyXFU9AmufptxP.EyW1zNKOqL9h4axox1DYwkFJF2lAM9O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account25' WHERE `accounts`.`id` = 25 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (25, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account27' WHERE `accounts`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 26 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 26 WHERE `account_users`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"25"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '25') LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (10.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$KnhLTwKTKwiPO26oTTFMYukMicOLv/YMIfBkXxcJQege/EleXFuAu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account28' WHERE `accounts`.`id` = 28 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (28, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account29' WHERE `accounts`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account30' WHERE `accounts`.`id` = 30  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (30, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 29 WHERE `account_users`.`id` = 20  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"28"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 28 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account28' AND `accounts`.`id` != 28) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:35:20' WHERE `accounts`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/28 Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$7AIefcWU/dAUnbDIJ0LTIOdN5xnIPuFufgW4/G6sP1yRjJBJZbS9i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account31' WHERE `accounts`.`id` = 31 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (31, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account32' WHERE `accounts`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account33' WHERE `accounts`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (33, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 32 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 32 WHERE `account_users`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"31"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 11 AND `account_users`.`account_id` = 31 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 21 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account31' AND `accounts`.`id` != 31) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:35:20' WHERE `accounts`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/31 Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$w6b4O0mjO2FuaMkg8XQURe6LfMnzHxzJr2uHeyuS4tvhWH8A6XRaG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account34' WHERE `accounts`.`id` = 34 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (34, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account35' WHERE `accounts`.`id` = 35  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account36' WHERE `accounts`.`id` = 36  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (36, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 35 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 35 WHERE `account_users`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"34"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 34 LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 23 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account34' AND `accounts`.`id` != 34) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:35:20' WHERE `accounts`.`id` = 34  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/34 Completed 302 Found in 77ms (ActiveRecord: 2.7ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$N.7P/BGE58ny6UeRBrxLbO6OQSGcZcFY2V/QznrD8nx3WawZ.3Ouq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account37' WHERE `accounts`.`id` = 37 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (37, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account38' WHERE `accounts`.`id` = 38  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account39' WHERE `accounts`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (39, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 38 WHERE `account_users`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account40' WHERE `accounts`.`id` = 40  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (40, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 3.5ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$ze.SJWO8v44m.y7KT56JJ.QNYO8WrY38WaRKkbjawwfrbyp7jEbHG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account41' WHERE `accounts`.`id` = 41 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (41, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account42' WHERE `accounts`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account43' WHERE `accounts`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (43, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 42 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 42 WHERE `account_users`.`id` = 29  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account44' WHERE `accounts`.`id` = 44  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (44, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 4.2ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 Processing by Iugu::AccountController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account45' WHERE `accounts`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (45, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 14ms (ActiveRecord: 3.4ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$S0geWWW1XdEdYmxtXeJoAOpHfjsrAkZHk3W5HKeN5cVfenjd9elo6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account46' WHERE `accounts`.`id` = 46 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (46, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account47' WHERE `accounts`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account48' WHERE `accounts`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (48, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 47 WHERE `account_users`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 15 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_47_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 15 AND `account_users`.`account_id` = 47 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 33 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND `accounts`.`id` = 47 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 47 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:20', 'token x', 'cc96aaebf8f4b40a734a61cb98370c48', 47, 'Account', '2012-11-28 22:35:20')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/47 Completed 302 Found in 39ms (ActiveRecord: 6.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$KuaQFGZAemC17zBb9Y6sy.pWA9hziDFWHLuTLydde9rU1LCKWcRWG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account49' WHERE `accounts`.`id` = 49 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 49 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (49, 16) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account50' WHERE `accounts`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account51' WHERE `accounts`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (51, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 50 WHERE `account_users`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"50"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 16 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_50_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 16 AND `account_users`.`account_id` = 50 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 35 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND `accounts`.`id` = 50 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 50 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:20', 'token x', 'a98a9915362a54dc512348d8e79d4c29', 50, 'Account', '2012-11-28 22:35:20')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/50 Completed 302 Found in 14ms (ActiveRecord: 3.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:20', '2012-11-28 22:35:20', 'teste@teste.com', '$2a$04$FNz/tEtUSYCSUiA8cZM5YuFVsmaIS.PEZBJv2.gpbwHdVX.qx1w5m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', NULL, NULL, NULL, '2012-11-28 22:35:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account52' WHERE `accounts`.`id` = 52 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (52, 17) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account53' WHERE `accounts`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:20', 'jabanilson', NULL, 1, '2012-11-28 22:35:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:20', `updated_at` = '2012-11-28 22:35:20', `subdomain` = 'account54' WHERE `accounts`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (54, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 53 WHERE `account_users`.`id` = 37  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 17 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND `accounts`.`id` = 53 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 53 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:20', 'token x', 'b6cde3a22f15ed69748d6b979893bc74', 53, 'Account', '2012-11-28 22:35:20')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/53 Completed 302 Found in 14ms (ActiveRecord: 2.6ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$28Hs2lgHCCclh9Tm4vy9reCVPL5pR4gko8qLY1rFWbwzviSH5F296', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account55' WHERE `accounts`.`id` = 55 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (55, 18) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account56' WHERE `accounts`.`id` = 56  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account57' WHERE `accounts`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (57, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 56 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 56 WHERE `account_users`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 55 AND `account_domains`.`url` = 'controller.test.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (55, NULL, 'controller.test.test', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"55"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 18 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_55_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 18 AND `account_users`.`account_id` = 55 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND `accounts`.`id` = 55 LIMIT 1 Completed 200 OK in 14ms (Views: 3.5ms | ActiveRecord: 2.4ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$AQLFw2oKZNpiXCMv2vqixehgqGNG618sKhepve/363x8nelGSAKBi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account58' WHERE `accounts`.`id` = 58 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (58, 19) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account59' WHERE `accounts`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account60' WHERE `accounts`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (60, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 59 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 59 WHERE `account_users`.`id` = 41  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"58"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 19 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_58_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 19 AND `account_users`.`account_id` = 58 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND `accounts`.`id` = 58 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 58 AND `account_domains`.`url` = 'new.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (58, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/58/domain/2 Completed 302 Found in 15ms (ActiveRecord: 3.9ms) AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$Z.Q2XkXSLaHfh.arzNPI6urb/ehf3WAWeno8hzpgdz/3B1knXqmHu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account61' WHERE `accounts`.`id` = 61 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (61, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account62' WHERE `accounts`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account63' WHERE `accounts`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (63, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 62 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 62 WHERE `account_users`.`id` = 43  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 20 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 61 AND `account_domains`.`url` = 'new.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (61, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/61/domain/3 Completed 302 Found in 14ms (ActiveRecord: 3.5ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.8ms | ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$rMforrqNiOEvgGP2ouoXpebA/qtwLpAhyYNBCUVndbwLQ.U1VgfoC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account64' WHERE `accounts`.`id` = 64 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (64, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account65' WHERE `accounts`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account66' WHERE `accounts`.`id` = 66  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (66, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 65 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 65 WHERE `account_users`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (64, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"64", "domain_id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 21 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_64_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 21 AND `account_users`.`account_id` = 64 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND `accounts`.`id` = 64 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 4  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`primary` = 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/64/domains Completed 302 Found in 16ms (ActiveRecord: 3.8ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$lq7x3cAkIyGQMfIqV3dumu0UD/gVo79JxqmsCU.heP6a5rVHMSR2S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account67' WHERE `accounts`.`id` = 67 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (67, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account68' WHERE `accounts`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account69' WHERE `accounts`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (69, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 68 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 68 WHERE `account_users`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (67, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"67", "domain_id"=>"5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 22 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_67_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 22 AND `account_users`.`account_id` = 67 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND `accounts`.`id` = 67 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/67/domains Completed 302 Found in 14ms (ActiveRecord: 3.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$Dz2I3QavjAJ6ym0YX6MOuec8btu5whWjFAZ4vhvR0GzwJH4OEFy4a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account70' WHERE `accounts`.`id` = 70 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (70, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account71' WHERE `accounts`.`id` = 71  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account72' WHERE `accounts`.`id` = 72  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (72, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 71 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 71 WHERE `account_users`.`id` = 49  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (70, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"70", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 23 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_70_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 23 AND `account_users`.`account_id` = 70 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND `accounts`.`id` = 70 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/70/domains Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$ff/b27mIr802VSlgF1JkxO4IN1LBbp0wi5nZq3ElFVaGR0CTKCpyO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account73' WHERE `accounts`.`id` = 73 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (73, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account74' WHERE `accounts`.`id` = 74  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account75' WHERE `accounts`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (75, 24) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 74 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 74 WHERE `account_users`.`id` = 51  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (73, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"73", "domain_id"=>"1273816283761238716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 24 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_73_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 24 AND `account_users`.`account_id` = 73 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND `accounts`.`id` = 73 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/73/domains Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$jbF.biP5nKmQqhtc2vxOC.Na18n66MPJsasOb50YmnWUiBaYcPkW6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account76' WHERE `accounts`.`id` = 76 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (76, 25) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account77' WHERE `accounts`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account78' WHERE `accounts`.`id` = 78  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (78, 25) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 77 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 77 WHERE `account_users`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (76, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"76", "domain_id"=>"8"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 25 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_76_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND `accounts`.`id` = 76 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`id` = 8 LIMIT 1 Completed 200 OK in 85ms (Views: 2.8ms | ActiveRecord: 2.0ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$/oEmT3l0OX146Ql1/1N0TehoRxqTxAWJxM689z2pwIJZH4EJgpGoK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account79' WHERE `accounts`.`id` = 79 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (79, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account80' WHERE `accounts`.`id` = 80  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account81' WHERE `accounts`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (81, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 80 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 80 WHERE `account_users`.`id` = 55  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (79, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"79", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 26 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_79_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND `accounts`.`id` = 79 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/79/domains Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$qUli/LxxwZW/F5ltG2tmgutbmhcy8VfHJJO2T.CqDPdMz8vYyuTA6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account82' WHERE `accounts`.`id` = 82 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (82, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account83' WHERE `accounts`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account84' WHERE `accounts`.`id` = 84  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (84, 27) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 83 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 83 WHERE `account_users`.`id` = 57  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (82, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"82", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_82_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND `accounts`.`id` = 82 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/82/domains Completed 302 Found in 7ms (ActiveRecord: 1.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$6PY8MUoKPXyQJkLphskSde64avx9hRzL2kUASP2hjCiS37GSTxUOS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account85' WHERE `accounts`.`id` = 85 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (85, 28) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account86' WHERE `accounts`.`id` = 86  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account87' WHERE `accounts`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (87, 28) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 86 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 86 WHERE `account_users`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (85, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"85", "domain_id"=>"11"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 28 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_85_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 28 AND `account_users`.`account_id` = 85 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND `accounts`.`id` = 85 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`id` = 11 LIMIT 1 Redirected to http://test.host/settings/account/85/domains Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (4.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$3h15CzJwUb971Fekpre6KO2Q38xutLbFcCvx08fZKoJwiC2p4M2q6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account88' WHERE `accounts`.`id` = 88 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (88, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account89' WHERE `accounts`.`id` = 89  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account90' WHERE `accounts`.`id` = 90  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (90, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 89 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 89 WHERE `account_users`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (88, NULL, 'verify.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"88", "domain_id"=>"12"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 29 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_88_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 29 AND `account_users`.`account_id` = 88 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND `accounts`.`id` = 88 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`id` = 12 LIMIT 1 Redirected to http://test.host/settings/account/88/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:21', '2012-11-28 22:35:21', 'teste@teste.com', '$2a$04$v2TQnh/gc4Q5.T9/c5oBNOmvY5tivYhZ2keMeouAA9UC0v8f7eelK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:21') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', NULL, NULL, NULL, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account91' WHERE `accounts`.`id` = 91 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (91, 30) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account92' WHERE `accounts`.`id` = 92  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:21', 'jabanilson', NULL, 1, '2012-11-28 22:35:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:21', `updated_at` = '2012-11-28 22:35:21', `subdomain` = 'account93' WHERE `accounts`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (93, 30) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 92 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 92 WHERE `account_users`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (91, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"91", "domain_id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 30 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_91_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 30 AND `account_users`.`account_id` = 91 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND `accounts`.`id` = 91 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`id` = 13 LIMIT 1 Redirected to http://test.host/settings/account/91/domain/13 Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (8.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$Y2n.MCUcKC9kB2sxukDnieiPGqWx5afR6EtrZiKKzj8OJRMgPC1Kq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account94' WHERE `accounts`.`id` = 94 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (94, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account95' WHERE `accounts`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account96' WHERE `accounts`.`id` = 96  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (96, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 95 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 95 WHERE `account_users`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (94, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"94", "domain_id"=>"14"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 31 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 31 AND `account_users`.`account_id` = 94 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND `accounts`.`id` = 94 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`id` = 14 LIMIT 1 Redirected to http://test.host/settings/account/94/domain/14 Completed 302 Found in 10ms (ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$gMj0dLbOG4oJwfBeNViyqexTq0iD7L0YF9phb6OlU2ssmoBP96Apy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account97' WHERE `accounts`.`id` = 97 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (97, 32) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account98' WHERE `accounts`.`id` = 98  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account99' WHERE `accounts`.`id` = 99  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (99, 32) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 98 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 98 WHERE `account_users`.`id` = 67  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (97, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"97", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 32 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_97_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 32 AND `account_users`.`account_id` = 97 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND `accounts`.`id` = 97 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/97/domains Completed 302 Found in 10ms (ActiveRecord: 2.3ms)  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$AOdMpOiJ9NiShbRIwZs.6.EdiA1hcLbArpCDDWM.qEuXFj03pk05S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account100' WHERE `accounts`.`id` = 100 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (100, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account101' WHERE `accounts`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account102' WHERE `accounts`.`id` = 102  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (102, 33) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 101 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 101 WHERE `account_users`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (100, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"100", "domain_id"=>"1231241241231241231234"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 33 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_100_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 33 AND `account_users`.`account_id` = 100 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND `accounts`.`id` = 100 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/100/domains Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$ZsEto1RL6XNSh5ZrB490aemGUJ0cT3qMSDMo9mmJkxFC244UEhVpq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account103' WHERE `accounts`.`id` = 103 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (103, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account104' WHERE `accounts`.`id` = 104  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account105' WHERE `accounts`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (105, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 104 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 104 WHERE `account_users`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (103, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"103", "domain_id"=>"17"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 34 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_103_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 34 AND `account_users`.`account_id` = 103 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND `accounts`.`id` = 103 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`id` = 17 LIMIT 1 Redirected to http://test.host/settings/account/103/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$3teHx.lOb9iOgPiEeSQUxuoL344ICTYx9auCbrq64fuGCgoHPd/d2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account106' WHERE `accounts`.`id` = 106 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (106, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account107' WHERE `accounts`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account108' WHERE `accounts`.`id` = 108  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (108, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 107 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 107 WHERE `account_users`.`id` = 73  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (106, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"106", "domain_id"=>"18"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 35 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_106_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 35 AND `account_users`.`account_id` = 106 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND `accounts`.`id` = 106 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`id` = 18 LIMIT 1 Redirected to http://test.host/settings/account/106/domains Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (16.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$Gz5dxk78n6UrdvlbuPAjIOT6WDQrLrXuslAvrpXqpvedMQora0DWi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account109' WHERE `accounts`.`id` = 109 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (109, 36) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account110' WHERE `accounts`.`id` = 110  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account111' WHERE `accounts`.`id` = 111  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (111, 36) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 110 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 110 WHERE `account_users`.`id` = 75  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (109, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"109", "domain_id"=>"1231241243141314"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 36 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_109_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 36 AND `account_users`.`account_id` = 109 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND `accounts`.`id` = 109 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/109/domains Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$Bmft0XRCO7Jj/Yule3sr.umtRXdVZOG9QinfKqgU2vnQ7qGt37IE.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account112' WHERE `accounts`.`id` = 112 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (112, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account113' WHERE `accounts`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account114' WHERE `accounts`.`id` = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (114, 37) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 113 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 113 WHERE `account_users`.`id` = 77  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`url` = 'primary.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (112, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"112", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 37 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_112_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 37 AND `account_users`.`account_id` = 112 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND `accounts`.`id` = 112 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/112/domains Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$hjxJcP3OKsBQ87/MxpJNmu72wa1Hu5SnGnU6lXbQWb.Q6bDMT.gLK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account115' WHERE `accounts`.`id` = 115 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (115, 38) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account116' WHERE `accounts`.`id` = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account117' WHERE `accounts`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (117, 38) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 116 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 116 WHERE `account_users`.`id` = 79  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"115"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 38 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_115_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 38 AND `account_users`.`account_id` = 115 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND `accounts`.`id` = 115 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 115) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:35:22' WHERE `accounts`.`id` = 115  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/115/domains Completed 302 Found in 13ms (ActiveRecord: 3.6ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$hESsaRT30zbBxvE3zLCI7uP9N0d/GIIZdTCKbav8FirWuBZdxK.mi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account118' WHERE `accounts`.`id` = 118 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (118, 39) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account119' WHERE `accounts`.`id` = 119  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account120' WHERE `accounts`.`id` = 120  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (120, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 119 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 119 WHERE `account_users`.`id` = 81  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"118"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 39 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_118_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 39 AND `account_users`.`account_id` = 118 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND `accounts`.`id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 118) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:35:22' WHERE `accounts`.`id` = 118  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/118/domains Completed 302 Found in 14ms (ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$4pW71lIezoNS8z34xF51TuHKxO4qyzm5JWxyW88MEmZRxT./uP6X2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account121' WHERE `accounts`.`id` = 121 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (121, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account122' WHERE `accounts`.`id` = 122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account123' WHERE `accounts`.`id` = 123  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (123, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 122 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 122 WHERE `account_users`.`id` = 83  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 40 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 121) LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:35:22' WHERE `accounts`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/121/domains Completed 302 Found in 13ms (ActiveRecord: 3.1ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.9ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$fo60fpxEsbiOWJsqsSC3ieXnM/tuxiQS.Q1.hQEzDIX0KALB98tRO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account124' WHERE `accounts`.`id` = 124 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (124, 41) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account125' WHERE `accounts`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account126' WHERE `accounts`.`id` = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (126, 41) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 125 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 125 WHERE `account_users`.`id` = 85  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"124"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 41 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_124_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 41 AND `account_users`.`account_id` = 124 LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$ItAWLE/YV5C4qez25V68YewqvRfzOECUtVuL5dQZx4Umf/JuWSDSm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account127' WHERE `accounts`.`id` = 127 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (127, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account128' WHERE `accounts`.`id` = 128  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account129' WHERE `accounts`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (129, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 128 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 128 WHERE `account_users`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 42 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_127_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$LH5tlXGAu6N8JCJuDmssDukTgXaDomHgXV24.G9tMTOU75HGlkjHu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account130' WHERE `accounts`.`id` = 130 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (130, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account131' WHERE `accounts`.`id` = 131  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account132' WHERE `accounts`.`id` = 132  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (132, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 131 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 131 WHERE `account_users`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"130", "domain_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 43 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_130_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:22', '2012-11-28 22:35:22', 'teste@teste.com', '$2a$04$HHY/IX84kSx98hfAhVxEQO4bjjnk4idsy0tqgA/6MkbnxoJfibTie', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', NULL, NULL, NULL, '2012-11-28 22:35:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account133' WHERE `accounts`.`id` = 133 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (133, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account134' WHERE `accounts`.`id` = 134  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:22', 'jabanilson', NULL, 1, '2012-11-28 22:35:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:22', `updated_at` = '2012-11-28 22:35:22', `subdomain` = 'account135' WHERE `accounts`.`id` = 135  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (135, 44) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 134 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 134 WHERE `account_users`.`id` = 91  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"133"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 44 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_133_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 44 AND `account_users`.`account_id` = 133 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$VXrH07eLx3JyrSixFLIL9.lUr3e8.IKGvQg.tG/T3GCaWyZ1LutgC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account136' WHERE `accounts`.`id` = 136 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (136, 45) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account137' WHERE `accounts`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account138' WHERE `accounts`.`id` = 138  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (138, 45) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 137 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 137 WHERE `account_users`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 136 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"136", "user_id"=>"45"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 45 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 AND `account_users`.`account_id` = 136 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND `accounts`.`id` = 136 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 136 AND `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136) Completed 200 OK in 15ms (Views: 3.4ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$iWcZtUQoBZjsVxlSbv8wku3H66eh2wRG//Je3gJp3K8of1ICw1IXG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account139' WHERE `accounts`.`id` = 139 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (139, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account140' WHERE `accounts`.`id` = 140  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account141' WHERE `accounts`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (141, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 140 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 140 WHERE `account_users`.`id` = 95  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 139 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"139", "user_id"=>"46"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 46 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 AND `account_users`.`account_id` = 139 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND `accounts`.`id` = 139 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 139 AND `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139) Completed 200 OK in 12ms (Views: 1.7ms | ActiveRecord: 2.5ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$jOG2yFCooXe6MM0CguQa6.gQdRMtDNDNlwD.UelsdOtrI9EBkkxsK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account142' WHERE `accounts`.`id` = 142 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 142 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (142, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account143' WHERE `accounts`.`id` = 143  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account144' WHERE `accounts`.`id` = 144  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (144, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 143 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 143 WHERE `account_users`.`id` = 97  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142) Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"142", "user_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 47 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 AND `account_users`.`account_id` = 142 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND `accounts`.`id` = 142 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 142 AND `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 142 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/142/users Completed 302 Found in 15ms (ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account145' WHERE `accounts`.`id` = 145  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$zAscY1a3t/SE1xFfv9YT5u/Gu.pIGH52bEeurtxsGNmJXqmxmX6u6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account146' WHERE `accounts`.`id` = 146 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 146 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (146, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account147' WHERE `accounts`.`id` = 147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account148' WHERE `accounts`.`id` = 148  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (148, 48) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 147 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 147 WHERE `account_users`.`id` = 99  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:23', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 145\n created_at: 2012-11-28 22:35:23.231401000Z\n updated_at: 2012-11-28 22:35:23.231401000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account145\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_145_destroy', '2012-11-28 22:35:23', '2012-11-28 22:35:23')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"145"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 48 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 145 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_145_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 8ms (Views: 3.6ms | ActiveRecord: 1.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account149' WHERE `accounts`.`id` = 149  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$xNfjCJZwx3CpH4pTdLX2fODuu3rF80nysrDqbgLaSnh6rwJpjNQhS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account150' WHERE `accounts`.`id` = 150 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (150, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account151' WHERE `accounts`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account152' WHERE `accounts`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (152, 49) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 151 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 151 WHERE `account_users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"149"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 49 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 149 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_149_destroy' LIMIT 1 Completed 200 OK in 99ms (Views: 95.0ms | ActiveRecord: 0.7ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$1UktXB7YE9/XQnEFe1iTIu0itGAv1GBVmhmlpcXSBD5YsImceXsAi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account153' WHERE `accounts`.`id` = 153 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (153, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account154' WHERE `accounts`.`id` = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account155' WHERE `accounts`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (155, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 154 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 154 WHERE `account_users`.`id` = 103  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"153"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 50 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_153_destroy' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.9ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$puvlShy.kRtUlfpb4uTub.S8paXPhXtymKL4goMKOqlE0XJzoxEQC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account156' WHERE `accounts`.`id` = 156 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (156, 51) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account157' WHERE `accounts`.`id` = 157  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account158' WHERE `accounts`.`id` = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (158, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 157 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 157 WHERE `account_users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 51 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Completed 200 OK in 7ms (Views: 1.8ms | ActiveRecord: 1.5ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Completed 404 Not Found in 2ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$7hz1WNqpVsSOnnhUbv5PwuFhhoqjn7CAbrK.LFtN0asOp0w.KeP/S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account159' WHERE `accounts`.`id` = 159 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (159, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account160' WHERE `accounts`.`id` = 160  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account161' WHERE `accounts`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (161, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 160 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 160 WHERE `account_users`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"159", "user_id"=>"52"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 52 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_159_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 159 AND `account_users`.`user_id` = 52 LIMIT 1 Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$NUTGc7fGCFndQhALiF0uleLakntal4qQOXKt3dLFoPdpCjLGyoatm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account162' WHERE `accounts`.`id` = 162 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account163' WHERE `accounts`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account164' WHERE `accounts`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (164, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 163 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 163 WHERE `account_users`.`id` = 109  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'targetdestroy@teste.teste', '$2a$04$PC8ox0i68dV2gt6M/t2druUa7w63uxZD2G9VuBJ93WVsCj//UK77a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account165' WHERE `accounts`.`id` = 165 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (165, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"54"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 53 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$SFnr/cGJR0Y..ib.EsWPM.tJmhQtI2.sjJOzvowsqmbTQQ0cda8fa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account166' WHERE `accounts`.`id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account167' WHERE `accounts`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account168' WHERE `accounts`.`id` = 168  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (168, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 167 WHERE `account_users`.`id` = 113  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'targetdestroy@teste.teste', '$2a$04$0yvbvo209amcQZT9kaLDOOb2BUiiIaze0iYPhiwrtFT4eYPUzDr22', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account169' WHERE `accounts`.`id` = 169 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (169, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"166", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 55 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_166_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 55 AND `account_users`.`account_id` = 166 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 166 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$PtlL85XdUog5A4aaYEVztuuLBKp8OJAlfvFae0e/3HCLPwoMiTUQ6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account170' WHERE `accounts`.`id` = 170 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account171' WHERE `accounts`.`id` = 171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account172' WHERE `accounts`.`id` = 172  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (172, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 171 WHERE `account_users`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'targetdestroy@teste.teste', '$2a$04$YqxrNTISU/7.POGOQmQFfuw0wf52qQPjd1nO.SYGV.qsduspvWO4y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account173' WHERE `accounts`.`id` = 173 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 173 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (173, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 58) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 170 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 237 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"170", "user_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_170_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 57 AND `account_users`.`account_id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 170 AND `account_users`.`user_id` = 58 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:23', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 119\n account_id: 170\n user_id: 58\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_119_destroy', '2012-11-28 22:35:23', '2012-11-28 22:35:23')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_119_destroy' LIMIT 1 Redirected to http://test.host/settings/account/170/users Completed 302 Found in 16ms (ActiveRecord: 4.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'teste@teste.com', '$2a$04$BTkjl6iGobhy2Oa30MO75u1.AA6.REURUS529KgKLeEqBFwZECa.e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account174' WHERE `accounts`.`id` = 174 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account175' WHERE `accounts`.`id` = 175  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', 'jabanilson', NULL, 1, '2012-11-28 22:35:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account176' WHERE `accounts`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (176, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 175 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 175 WHERE `account_users`.`id` = 121  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:23', '2012-11-28 22:35:23', 'targetdestroy@teste.teste', '$2a$04$2IqTFJOA2eluVWkavHDZjuNDTeBzN01aQPTtpWjv7p9UacJOtbcGq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:23', NULL, NULL, NULL, '2012-11-28 22:35:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:23', `updated_at` = '2012-11-28 22:35:23', `subdomain` = 'account177' WHERE `accounts`.`id` = 177 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 177 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (177, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 174 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 246 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"174", "user_id"=>"60"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 59 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_174_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 59 AND `account_users`.`account_id` = 174 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 174 AND `account_users`.`user_id` = 60 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 11ms  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$WVF1pmfiLzNVjYO5XDnEiu/9MhkRLrUBNJgj7Sjul5i84i6KxMu1K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account178' WHERE `accounts`.`id` = 178 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account179' WHERE `accounts`.`id` = 179  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account180' WHERE `accounts`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (180, 61) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 179 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 179 WHERE `account_users`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'targetdestroy@teste.teste', '$2a$04$QXXVxcibFgZn870YiSam0e98vFjQp/6gL6CaEwDhMFqy7VxIhPasS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account181' WHERE `accounts`.`id` = 181 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (181, 62) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 62) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (124) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (178)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 178 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 249 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"178", "user_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 61 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_178_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 61 AND `account_users`.`account_id` = 178 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Completed 404 Not Found in 9ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$sP3EXJYEvbY9K87pSLi.V.pnkLHW39bbMUJwYLuhDzi9XdAFDZ6v2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account182' WHERE `accounts`.`id` = 182 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account183' WHERE `accounts`.`id` = 183  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account184' WHERE `accounts`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (184, 63) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 183 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 183 WHERE `account_users`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'target@test.test', '$2a$04$x5/cuDAyfNmVCib6qwOJlObS5IXT63rbJlhAhtnmtNcSgXvKWOgi.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account185' WHERE `accounts`.`id` = 185 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 185 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (185, 64) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 64) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 131  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 182 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 264 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 265  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:24', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 131\n account_id: 182\n user_id: 64\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_131_destroy', '2012-11-28 22:35:24', '2012-11-28 22:35:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"64"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 63 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$1UQ35K2B3zq133nVxpaZ4uK4.TqmgG/Q3Pba6s/gOzcuKc5zsJhQO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account186' WHERE `accounts`.`id` = 186 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 65) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account187' WHERE `accounts`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account188' WHERE `accounts`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (188, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 187 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 187 WHERE `account_users`.`id` = 133  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'target@test.test', '$2a$04$egmKIeACsdcAjKqVCaykkO0yQ4FDXd6gWGzh7lKzcfXI0JLS4l66e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account189' WHERE `accounts`.`id` = 189 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 189 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (189, 66) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 66) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 135  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 186 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 273 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:24', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 135\n account_id: 186\n user_id: 66\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_135_destroy', '2012-11-28 22:35:24', '2012-11-28 22:35:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"186", "user_id"=>"18237198237192837"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 65 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_186_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 65 AND `account_users`.`account_id` = 186 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 186 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 10ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$Hvmdy.8QMVzzewG8FHSZ0.6iRnBb50gs8.Ew2ZAqlsq3N/o6omtVS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account190' WHERE `accounts`.`id` = 190 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 67) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account191' WHERE `accounts`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account192' WHERE `accounts`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (192, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 191 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 191 WHERE `account_users`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'target@test.test', '$2a$04$X/jYou52iOkfGuPuLd5eUOPd9gpx5CJKxQrL3jGDirQwdOeaAW3..', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account193' WHERE `accounts`.`id` = 193 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (193, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 139  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 282 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:24', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 139\n account_id: 190\n user_id: 68\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_139_destroy', '2012-11-28 22:35:24', '2012-11-28 22:35:24')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"190", "user_id"=>"68"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 67 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_190_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 190 AND `account_users`.`user_id` = 68 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/190/users Completed 302 Found in 11ms (ActiveRecord: 3.0ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$3L.ju0/7nfs5rmHy4SA2vOCjfwSoDUSGlRH1.1B07Rpt4PntusAw6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account194' WHERE `accounts`.`id` = 194 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account195' WHERE `accounts`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account196' WHERE `accounts`.`id` = 196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (196, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 195 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 195 WHERE `account_users`.`id` = 141  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'target@test.test', '$2a$04$8twwV3cZjfXqqMIw3MnvWOi9hnzsvjfIXCTY5KSWeBV7PMCa.2hY.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account197' WHERE `accounts`.`id` = 197 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (197, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 143  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 291 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 292  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:24', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 143\n account_id: 194\n user_id: 70\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_143_destroy', '2012-11-28 22:35:24', '2012-11-28 22:35:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"194", "user_id"=>"70"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 69 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_194_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 194 AND `account_users`.`user_id` = 70 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/194/users Completed 302 Found in 12ms (ActiveRecord: 3.3ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$P2Zw7xHv1TBe94LbswtpzeCNHFKx5zQDRhphaM5N56U2rratzHGbC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account198' WHERE `accounts`.`id` = 198 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account199' WHERE `accounts`.`id` = 199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account200' WHERE `accounts`.`id` = 200  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (200, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 199 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 199 WHERE `account_users`.`id` = 145  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'target@test.test', '$2a$04$TNef8eAtj.h6oTTsAzBNE.WCbKMmH4aasHfCPvhWulGxM08BLRs2e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account201' WHERE `accounts`.`id` = 201 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 201 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (201, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 147  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 300 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 301  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:24', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 147\n account_id: 198\n user_id: 72\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_147_destroy', '2012-11-28 22:35:24', '2012-11-28 22:35:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'notowner@account.test', '$2a$04$uiWgmAbYkbA/PqyLg1FJBuOP6FCaj6kZocblpBFPp0l12UVX9NL5q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account202' WHERE `accounts`.`id` = 202 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (202, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account203' WHERE `accounts`.`id` = 203  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (203, 73) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 198 WHERE `account_users`.`id` = 149  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 294 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"198", "user_id"=>"72"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 71 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_198_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.6ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$kQVFzBFt/F0JSeO8Mvv.bOgS.wHqNwWsDgYjmxjwnwHqluyzYjvFG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account204' WHERE `accounts`.`id` = 204 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (204, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account205' WHERE `accounts`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account206' WHERE `accounts`.`id` = 206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (206, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 205 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 205 WHERE `account_users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account207' WHERE `accounts`.`id` = 207  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"207"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 74 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 74 AND `account_users`.`account_id` = 207 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$amLl.da5e8E7odu9lNi79u.CTIwo7K/2vpVbT/0Zc1mCRGyLKTdo6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account208' WHERE `accounts`.`id` = 208 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (208, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account209' WHERE `accounts`.`id` = 209  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account210' WHERE `accounts`.`id` = 210  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (210, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 209 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 209 WHERE `account_users`.`id` = 153  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"208"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 75 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 75 AND `account_users`.`account_id` = 208 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 Completed 200 OK in 20ms (Views: 3.7ms | ActiveRecord: 4.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:24', '2012-11-28 22:35:24', 'teste@teste.com', '$2a$04$dn.Zz.vSDFvkfpjF6yAv2eL/E5FtLSz4yuvoAo9201uEjiexo0PE2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', NULL, NULL, NULL, '2012-11-28 22:35:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account211' WHERE `accounts`.`id` = 211 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 211 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (211, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account212' WHERE `accounts`.`id` = 212  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:24', 'jabanilson', NULL, 1, '2012-11-28 22:35:24')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:24', `updated_at` = '2012-11-28 22:35:24', `subdomain` = 'account213' WHERE `accounts`.`id` = 213  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (213, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 212 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 212 WHERE `account_users`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"211"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 76 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 76 AND `account_users`.`account_id` = 211 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 211 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (211, 'create@controller.teste', 76, NULL, '2012-11-28 22:35:25', 'g76HpI7YrGt2fyBfNOJ33TACQSY') Sent mail to create@controller.teste (147ms) Date: Wed, 28 Nov 2012 20:35:25 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b691ad590e0_197580435d489166c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1g76HpI7YrGt2fyBfNOJ33TACQSY  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/211/users Completed 302 Found in 407ms (ActiveRecord: 2.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:25', '2012-11-28 22:35:25', 'teste@teste.com', '$2a$04$TnuO1DjO6srTzKzRUdowOuS3sFeVVYYJt60LpiYaPF8GKha6CYK.e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:25') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', NULL, NULL, NULL, '2012-11-28 22:35:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account214' WHERE `accounts`.`id` = 214 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 214 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (214, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account215' WHERE `accounts`.`id` = 215  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account216' WHERE `accounts`.`id` = 216  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (216, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 215 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 215 WHERE `account_users`.`id` = 157  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"214"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 77 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 77 AND `account_users`.`account_id` = 214 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 214 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (214, 'create@controller.teste', 77, NULL, '2012-11-28 22:35:25', 't_g4QTnXL9BAFewbfwYl7gi_21Y') Sent mail to create@controller.teste (7ms) Date: Wed, 28 Nov 2012 20:35:25 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b691ad74813_197580435d48917d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2t_g4QTnXL9BAFewbfwYl7gi_21Y  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/214/users Completed 302 Found in 31ms (ActiveRecord: 2.7ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:25', '2012-11-28 22:35:25', 'teste@teste.com', '$2a$04$kKDiASURYNIXghi8b/0kDOIhJkkyYzq407/JgCgbep6fhw.bTqUDa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:25') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', NULL, NULL, NULL, '2012-11-28 22:35:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account217' WHERE `accounts`.`id` = 217 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (217, 78) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account218' WHERE `accounts`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account219' WHERE `accounts`.`id` = 219  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (219, 78) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 218 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 218 WHERE `account_users`.`id` = 159  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 78 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 217 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (217, 'create@controller.teste', 78, NULL, '2012-11-28 22:35:25', 'nqk-sdkCRHp79fMsJNAO19th55A') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 20:35:25 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b691ad87740_197580435d4891823@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3nqk-sdkCRHp79fMsJNAO19th55A  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/217/users Completed 302 Found in 30ms (ActiveRecord: 2.3ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 Completed 200 OK in 8ms (Views: 1.6ms | ActiveRecord: 1.6ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:25', '2012-11-28 22:35:25', 'teste@teste.com', '$2a$04$0cvqtlHAOwwAU12rHZ30wOnGs2RazSVXagT7LNN8HkKl0dUZoxxx.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:25') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', NULL, NULL, NULL, '2012-11-28 22:35:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account220' WHERE `accounts`.`id` = 220 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 220 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (220, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account221' WHERE `accounts`.`id` = 221  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account222' WHERE `accounts`.`id` = 222  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (222, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 221 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 221 WHERE `account_users`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account223' WHERE `accounts`.`id` = 223  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 223 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (223, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:25', 'vHBhWFntFcQjd3sihf9j3NmPEAM') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691ad9bbbc_197580435d4891964@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4vHBhWFntFcQjd3sihf9j3NmPEAM  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 79 WHERE `user_invitations`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 79 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:25', '2012-11-28 22:35:25', 'teste@teste.com', '$2a$04$S9cvdzfO6y00/OYdT7e9w.sWNbfqdfkj8Yxad2GLTH6Vs.dfx4mWC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:25') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', NULL, NULL, NULL, '2012-11-28 22:35:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account224' WHERE `accounts`.`id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (224, 80) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account225' WHERE `accounts`.`id` = 225  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account226' WHERE `accounts`.`id` = 226  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (226, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 225 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 225 WHERE `account_users`.`id` = 163  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account227' WHERE `accounts`.`id` = 227  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 227 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (227, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:25', '-dqeDFXFoZ6AIQMwF2YaDwhvwzE') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691adc1a98_197580435d4892011@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5-dqeDFXFoZ6AIQMwF2YaDwhvwzE  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `user_invitations` SET `invited_by` = 80 WHERE `user_invitations`.`id` = 5  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"5-dqeDFXFoZ6AIQMwF2YaDwhvwzE"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 5 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 1.0ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:25', '2012-11-28 22:35:25', 'teste@teste.com', '$2a$04$3IqfEWWsRAadyaylIp2byO69F9vK2O8JAgjCTD/PgDuKhHEG85D32', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:25') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', NULL, NULL, NULL, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account228' WHERE `accounts`.`id` = 228 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (228, 81) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account229' WHERE `accounts`.`id` = 229  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account230' WHERE `accounts`.`id` = 230  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (230, 81) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 229 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 229 WHERE `account_users`.`id` = 165  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account231' WHERE `accounts`.`id` = 231  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account232' WHERE `accounts`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 232 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (232, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:25', 'WUIUTKhQVMZhKxgAJoy2sHahWW8') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691add61e5_197580435d48921a0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/6WUIUTKhQVMZhKxgAJoy2sHahWW8  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 231 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 231 WHERE `user_invitations`.`id` = 6  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 81 LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:25', '2012-11-28 22:35:25', 'teste@teste.com', '$2a$04$.kvRPj0sc7PY7rl.OR7N1uhCXaVLKYWjCViQIzzjaEXlsI0RGF2uq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:25') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', NULL, NULL, NULL, '2012-11-28 22:35:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account233' WHERE `accounts`.`id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (233, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account234' WHERE `accounts`.`id` = 234  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account235' WHERE `accounts`.`id` = 235  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (235, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 234 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 234 WHERE `account_users`.`id` = 167  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account236' WHERE `accounts`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:25', 'jabanilson', NULL, 1, '2012-11-28 22:35:25')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:25', `updated_at` = '2012-11-28 22:35:25', `subdomain` = 'account237' WHERE `accounts`.`id` = 237  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 237 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (237, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:25', 'AIMczU-1BqZkrj1uBzOytjNhXjo') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691adea003_197580435d48922b2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/7AIMczU-1BqZkrj1uBzOytjNhXjo  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 236 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 236 WHERE `user_invitations`.`id` = 7  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"7AIMczU-1BqZkrj1uBzOytjNhXjo"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 82 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 7 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 236 AND `account_users`.`user_id` = 82  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (236, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 4.3ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$8be87Aw9FQ1VJD/pkLSwXuntxiTRnGdQy9HPMiEvGjSh4AHlIkXSq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account238' WHERE `accounts`.`id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (238, 83) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account239' WHERE `accounts`.`id` = 239  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account240' WHERE `accounts`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (240, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 239 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 239 WHERE `account_users`.`id` = 170  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account241' WHERE `accounts`.`id` = 241  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account242' WHERE `accounts`.`id` = 242  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 242 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (242, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:26', 'YshDpjR_CbVmdVBr-tLAEUySALY') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:26 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691aed732_197580435d489239d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/8YshDpjR_CbVmdVBr-tLAEUySALY  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 241 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 241 WHERE `user_invitations`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (241, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"8YshDpjR_CbVmdVBr-tLAEUySALY"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 83 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 241 AND `account_users`.`user_id` = 83 Redirected to http://test.host/ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (1.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$rQizhVwBsAo6PxcOxRyZG.vrcrx0RRNZeShsfZ/RwwzpurhNPBp9G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account243' WHERE `accounts`.`id` = 243 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (243, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account244' WHERE `accounts`.`id` = 244  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account245' WHERE `accounts`.`id` = 245  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (245, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 244 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 244 WHERE `account_users`.`id` = 173  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account246' WHERE `accounts`.`id` = 246  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account247' WHERE `accounts`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 247 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (247, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:26', '826fo_o6oPZbDMilK1-msAV9P_Q') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:26 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691ae25921_197580435d48924ee@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9826fo_o6oPZbDMilK1-msAV9P_Q  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 246 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 246 WHERE `user_invitations`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (246, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9826fo_o6oPZbDMilK1-msAV9P_Q"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 84 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 246 AND `account_users`.`user_id` = 84 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$VTg7bCuct2md2ONbOhW1u.gWaOtGfQq2KHSzDtUWavg.rQ36FoI7W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account248' WHERE `accounts`.`id` = 248 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (248, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account249' WHERE `accounts`.`id` = 249  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account250' WHERE `accounts`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (250, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 249 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 249 WHERE `account_users`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 85 LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$5jIV6q28EY741yNvQGm/7uGHdBK.HOopRSQwALQH2csaq.gJxJ2ca', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account251' WHERE `accounts`.`id` = 251 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 251 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (251, 86) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account252' WHERE `accounts`.`id` = 252  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account253' WHERE `accounts`.`id` = 253  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (253, 86) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 252 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 252 WHERE `account_users`.`id` = 178  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 86 LIMIT 1 Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$WptgG4gaVvSAVZLp1edBeu/b8AO20TcN.BIa8wt83N8Wl1Lf7DQe6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account254' WHERE `accounts`.`id` = 254 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 254 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (254, 87) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account255' WHERE `accounts`.`id` = 255  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account256' WHERE `accounts`.`id` = 256  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (256, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 255 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 255 WHERE `account_users`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 87 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 87  (0.3ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 22:35:26' WHERE `users`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 3.1ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$SWTl6vXg5QrbutuYb8GFku0TbdJyrVxgGFK6u5acpBv9PCe3thaeG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account257' WHERE `accounts`.`id` = 257 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 257 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (257, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account258' WHERE `accounts`.`id` = 258  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account259' WHERE `accounts`.`id` = 259  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (259, 88) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 258 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 258 WHERE `account_users`.`id` = 182  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 88 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 88  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 22:35:26' WHERE `users`.`id` = 88  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.7ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account260' WHERE `accounts`.`id` = 260  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account261' WHERE `accounts`.`id` = 261  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (261, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 260 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 260 WHERE `account_users`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = 257) LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 0.6ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$R/JCDlmHioGVPD695Yk.OuidSD7.357nLCmXCvaXVfGLIIZ/P5NxW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account262' WHERE `accounts`.`id` = 262 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (262, 89) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account263' WHERE `accounts`.`id` = 263  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account264' WHERE `accounts`.`id` = 264  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (264, 89) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 263 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 263 WHERE `account_users`.`id` = 185  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 89 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:26', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 89\n email: teste@teste.com\n encrypted_password: $2a$04$R/JCDlmHioGVPD695Yk.OuidSD7.357nLCmXCvaXVfGLIIZ/P5NxW\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:26.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:26.000000000Z\n updated_at: 2012-11-28 22:35:26.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_89_destroy', '2012-11-28 22:35:26', '2012-11-28 22:35:26')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.4ms) Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$EtdB4BP3DTVXe5v7ZV1preg.brUvGiLmGBGuD4OdrGgzHtDIEDnlq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account265' WHERE `accounts`.`id` = 265 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 265 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (265, 90) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account266' WHERE `accounts`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account267' WHERE `accounts`.`id` = 267  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (267, 90) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 266 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 266 WHERE `account_users`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 90 LIMIT 1 Completed 404 Not Found in 2ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$nDO3cSJnESNMI.F96CRahOTTBATYNZXG4IRB8Ft1tDVX3UjDFvZG.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account268' WHERE `accounts`.`id` = 268 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 268 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (268, 91) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account269' WHERE `accounts`.`id` = 269  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account270' WHERE `accounts`.`id` = 270  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (270, 91) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 269 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 269 WHERE `account_users`.`id` = 189  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:26', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 91\n email: teste@teste.com\n encrypted_password: $2a$04$nDO3cSJnESNMI.F96CRahOTTBATYNZXG4IRB8Ft1tDVX3UjDFvZG.\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:26.627649000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:26.628027000Z\n updated_at: 2012-11-28 22:35:26.628027000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_91_destroy', '2012-11-28 22:35:26', '2012-11-28 22:35:26')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$oWUcvDyMIrk3WpU2rs8te.OWVYwc8c2vprzCCTIY2Aa6umMUL/CPK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account271' WHERE `accounts`.`id` = 271 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (271, 92) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account272' WHERE `accounts`.`id` = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account273' WHERE `accounts`.`id` = 273  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (273, 92) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 272 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 272 WHERE `account_users`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 92 WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 AND `social_accounts`.`id` = 1 LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$wFq/nfCzMj2pKyA5Pv6U/u/9qYwlSUaIrLlPHhR8uflUwHIZFCGM6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account274' WHERE `accounts`.`id` = 274 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 274 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (274, 93) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account275' WHERE `accounts`.`id` = 275  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account276' WHERE `accounts`.`id` = 276  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (276, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 275 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 275 WHERE `account_users`.`id` = 193  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 93 WHERE `social_accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"2"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 AND `social_accounts`.`id` = 2 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 7ms (ActiveRecord: 1.9ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$/wcATDfDQndCNztbFMeuGOVQ6RKInioFZDWaf0xYWvYuGCpDSCroa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account277' WHERE `accounts`.`id` = 277 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (277, 94) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account278' WHERE `accounts`.`id` = 278  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account279' WHERE `accounts`.`id` = 279  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (279, 94) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 278 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 278 WHERE `account_users`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 94 WHERE `social_accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', '', '$2a$04$p5IovXESizHZmTkW7hKP6OjIC7WvHx0ifHKeczCYdDP6jH5pClxTu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `social_accounts` SET `user_id` = 95 WHERE `social_accounts`.`id` = 4 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account280' WHERE `accounts`.`id` = 280 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 280 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (280, 95) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 AND `social_accounts`.`id` = 4 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:26', '2012-11-28 22:35:26', 'teste@teste.com', '$2a$04$CkYtSCeRSQwxtw8KpZFxaeKI.ME1RXkO7R8lggtn1fYcXp0y7jCka', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:26') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', NULL, NULL, NULL, '2012-11-28 22:35:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account281' WHERE `accounts`.`id` = 281 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (281, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account282' WHERE `accounts`.`id` = 282  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:26', 'jabanilson', NULL, 1, '2012-11-28 22:35:26')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:26', `updated_at` = '2012-11-28 22:35:26', `subdomain` = 'account283' WHERE `accounts`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (283, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 282 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 282 WHERE `account_users`.`id` = 198  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 96 WHERE `social_accounts`.`id` = 5  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', '', '$2a$04$DH02oO41jOw7/Dy4jPhGMeSCdIDXGUKqN6TIh/pReThq.npUhKTkO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.3ms) UPDATE `social_accounts` SET `user_id` = 97 WHERE `social_accounts`.`id` = 6 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account284' WHERE `accounts`.`id` = 284 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 284 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (284, 97) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"6"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 AND `social_accounts`.`id` = 6 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', 'teste@teste.com', '$2a$04$xit5HAXXM7v60oLS515GrOmMUHcJUA3gUVoxmUb3xq9/q48/am/TC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account285' WHERE `accounts`.`id` = 285 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 285 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (285, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account286' WHERE `accounts`.`id` = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account287' WHERE `accounts`.`id` = 287  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (287, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 286 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 286 WHERE `account_users`.`id` = 201  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 98 WHERE `social_accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 98 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 98 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', 'teste@teste.com', '$2a$04$xaVRucoC5Ax7JUpKkWzWC.DN4lDJrR0/iM2huG3iVixsZ4HI2vcWO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account288' WHERE `accounts`.`id` = 288 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 288 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (288, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account289' WHERE `accounts`.`id` = 289  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account290' WHERE `accounts`.`id` = 290  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (290, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 289 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 289 WHERE `account_users`.`id` = 203  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 99 WHERE `social_accounts`.`id` = 8  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 99 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 99 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', 'teste@teste.com', '$2a$04$9mhpimjN.ikq1EEgZOHt5uxpvMwT2b5m23SXpBXDhQ3sj5Jt7PSLe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account291' WHERE `accounts`.`id` = 291 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 291 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (291, 100) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account292' WHERE `accounts`.`id` = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account293' WHERE `accounts`.`id` = 293  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (293, 100) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 292 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 292 WHERE `account_users`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 100 WHERE `social_accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account294' WHERE `accounts`.`id` = 294 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 294 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (294, 101) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 101\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:27.198507000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:27.199191000Z\n updated_at: 2012-11-28 22:35:27.199191000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_101', '2012-12-05 22:35:27', '2012-11-28 22:35:27')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 101 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 101 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 101) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$S83XfITaKeNhG1t37xUdeuYjlNGcAWQbrtbuqlTVjqI4Xmqh2ypSK', `updated_at` = '2012-11-28 22:35:27' WHERE `users`.`id` = 101  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_101' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 AND (accounts.id = 291) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 3.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', 'teste@teste.com', '$2a$04$yyQ716thJ4JStjZ4mZ/w/OiH3leoZnOqoTFcg3OSGdJUhuxmEpzlK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account295' WHERE `accounts`.`id` = 295 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 295 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (295, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account296' WHERE `accounts`.`id` = 296  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account297' WHERE `accounts`.`id` = 297  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (297, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 296 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 296 WHERE `account_users`.`id` = 208  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 102 WHERE `social_accounts`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account298' WHERE `accounts`.`id` = 298 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 298 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (298, 103) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 103\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:27.281252000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:27.281962000Z\n updated_at: 2012-11-28 22:35:27.281962000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_103', '2012-12-05 22:35:27', '2012-11-28 22:35:27')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 103 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 103 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 103) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$eidJwLLn/lDSKbzO0G7QCeVTwWRd2OLaKNRR74QlqrMogAIPU67ti', `updated_at` = '2012-11-28 22:35:27' WHERE `users`.`id` = 103  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_103' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 AND (accounts.id = 295) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.6ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', 'teste@teste.com', '$2a$04$UW938q5Flq/pr0XEifjyaOX.knEU0Fo1TCTYI6YZ/NVhNda.1Yc3m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account299' WHERE `accounts`.`id` = 299 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 299 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (299, 104) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account300' WHERE `accounts`.`id` = 300  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account301' WHERE `accounts`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (301, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 300 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 300 WHERE `account_users`.`id` = 211  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 104 WHERE `social_accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account302' WHERE `accounts`.`id` = 302 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (302, 105) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 105\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:27.365988000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:27.366694000Z\n updated_at: 2012-11-28 22:35:27.366694000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_105', '2012-12-05 22:35:27', '2012-11-28 22:35:27')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 105 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 105 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 105) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$P9KrvrufRzoYgxSDA6k2i.BCDDPvtI9v/vGgjFaHEqQh/CfC4QpKq', `updated_at` = '2012-11-28 22:35:27' WHERE `users`.`id` = 105  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_105' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 AND (accounts.id = 299) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 101ms (ActiveRecord: 3.5ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (1.4ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', 'teste@teste.com', '$2a$04$FHchT/JN6pUdoACDlYMFMej60RpWjGwGDcDumAtMfKFBmdi4PpG3W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account303' WHERE `accounts`.`id` = 303 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (303, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account304' WHERE `accounts`.`id` = 304  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account305' WHERE `accounts`.`id` = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (305, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 304 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 304 WHERE `account_users`.`id` = 214  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 106 WHERE `social_accounts`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account306' WHERE `accounts`.`id` = 306 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 306 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (306, 107) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 107\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:27.538105000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:27.538792000Z\n updated_at: 2012-11-28 22:35:27.538792000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_107', '2012-12-05 22:35:27', '2012-11-28 22:35:27')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 107 LIMIT 1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (1.3ms) ROLLBACK  (0.3ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account307' WHERE `accounts`.`id` = 307 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 307 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (307, 108) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 108\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:27.572362000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:27.573434000Z\n updated_at: 2012-11-28 22:35:27.573434000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_108', '2012-12-05 22:35:27', '2012-11-28 22:35:27')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27' WHERE `users`.`id` = 108  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 39ms (ActiveRecord: 5.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 339ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:27', '2012-11-28 22:35:27', 'teste@teste.com', '$2a$04$XSMme2axQrPL5aqfOhmy3ep.9pbFwECh9XJkyKcA4zzG2Bp.L/mDC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', NULL, NULL, NULL, '2012-11-28 22:35:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account308' WHERE `accounts`.`id` = 308 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 308 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (308, 109) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account309' WHERE `accounts`.`id` = 309  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:27', 'jabanilson', NULL, 1, '2012-11-28 22:35:27')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:27', `updated_at` = '2012-11-28 22:35:27', `subdomain` = 'account310' WHERE `accounts`.`id` = 310  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (310, 109) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 309 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 309 WHERE `account_users`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 109 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'teste@teste.com', '$2a$04$XHxVjZRJMwU6ILi97gra7.cGGrVbi5lDF190zSg8P.UVO9GTGjSeK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account311' WHERE `accounts`.`id` = 311 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 110) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account312' WHERE `accounts`.`id` = 312  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account313' WHERE `accounts`.`id` = 313  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (313, 110) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 312 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 312 WHERE `account_users`.`id` = 220  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'user2@email.email', '$2a$04$9LWqm4tiwWtWK0eSxpOFhugpa.VcSd1/W8dTGLkGK4c1NfjjErmDC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account314' WHERE `accounts`.`id` = 314 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 314 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (314, 111) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 111) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 311 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 446 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 110 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.3ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'teste@teste.com', '$2a$04$954r2ygRdz7PgsjCIbLPbu.rYuBnkmg8Qucs8EDUSOgeVB4KmJBIm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account315' WHERE `accounts`.`id` = 315 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 112) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account316' WHERE `accounts`.`id` = 316  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account317' WHERE `accounts`.`id` = 317  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (317, 112) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 316 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 316 WHERE `account_users`.`id` = 224  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'user2@email.email', '$2a$04$YGgGGK37fQDpRGao5wIVeuE6ulLqTSvCdyUZ/TcmCkGHaHBxFBt0S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account318' WHERE `accounts`.`id` = 318 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 318 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (318, 113) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 113) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 455 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 456  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 112 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.5ms)  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'teste@teste.com', '$2a$04$LKjxr8JgNQPAc/P1CIDYQe7fxCs34hc1rFQzJxvjS2FciK4zQuwjm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account319' WHERE `accounts`.`id` = 319 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 114) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account320' WHERE `accounts`.`id` = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account321' WHERE `accounts`.`id` = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (321, 114) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 320 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 320 WHERE `account_users`.`id` = 228  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'user2@email.email', '$2a$04$R1NpzpEYrRt7RFUtmODj.e/c/1xrOc3DROU5LwF1tPztZF6nL1sIm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account322' WHERE `accounts`.`id` = 322 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (322, 115) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 115) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 319 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 465 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"319"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 114 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"319"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.7ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'teste@teste.com', '$2a$04$N2K594uIv5/ssklb8aj5muMv/eylaxqEgE4QLuL4qd/jIJ97c.ytC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account323' WHERE `accounts`.`id` = 323 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 116) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account324' WHERE `accounts`.`id` = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account325' WHERE `accounts`.`id` = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (325, 116) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 324 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 324 WHERE `account_users`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'user2@email.email', '$2a$04$oGlN9uUDi/XPM0ipXohoneX2xi.8PkMsS/KW4vjY/PJAU78.t91Zi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account326' WHERE `accounts`.`id` = 326 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (326, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 323 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 474 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"323"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 116 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 6ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'teste@teste.com', '$2a$04$UHf3JZ165g9yQBRKBdupHeR0QovDCOk7Yp6p7XFYNLJeO6us4HSVe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account327' WHERE `accounts`.`id` = 327 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account328' WHERE `accounts`.`id` = 328  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account329' WHERE `accounts`.`id` = 329  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (329, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 328 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 328 WHERE `account_users`.`id` = 236  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'user2@email.email', '$2a$04$T5uUTYVYPu68Z4Y0zwmwDO6iZYRGgiYCvQeQmChkXJvPet3wW/xWC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account330' WHERE `accounts`.`id` = 330 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 330 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (330, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 327 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 483 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 484  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 491  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"327"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 118 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'teste@teste.com', '$2a$04$Ui4vzkqgd/D7wJ4dyRn5zuXpwVdS8bmOhi95Vilnv/4/ggFRtE2wK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account331' WHERE `accounts`.`id` = 331 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account332' WHERE `accounts`.`id` = 332  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account333' WHERE `accounts`.`id` = 333  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (333, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 332 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 332 WHERE `account_users`.`id` = 240  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:28', '2012-11-28 22:35:28', 'user2@email.email', '$2a$04$D7Eyhxhsz7m./x3xiJQ0r.2b4ObsysN4MaBEgZdomEdi2o3iDB8LC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', NULL, NULL, NULL, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account334' WHERE `accounts`.`id` = 334 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 334 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (334, 121) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 331 LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 120 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 231213231231312312341 LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account335' WHERE `accounts`.`id` = 335  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 335 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (335, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:28', 'Fa8SIi-t_aJC-4pPMWe-FcTS12U') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:28 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691b0cb9be_197580435d4892556@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/10Fa8SIi-t_aJC-4pPMWe-FcTS12U  (0.3ms) RELEASE SAVEPOINT active_record_1  (3.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account336' WHERE `accounts`.`id` = 336  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 336 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (336, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:28', 'RBb8K2bOPI0tA8f7JYE_BCO96yc') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:28 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691b0d6c03_197580435d48926cd@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/11RBb8K2bOPI0tA8f7JYE_BCO96yc  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:28', 'jabanilson', NULL, 1, '2012-11-28 22:35:28')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:28', `updated_at` = '2012-11-28 22:35:28', `subdomain` = 'account337' WHERE `accounts`.`id` = 337  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 337 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (337, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account338' WHERE `accounts`.`id` = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 338 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (338, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account339' WHERE `accounts`.`id` = 339  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 339 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (339, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account340' WHERE `accounts`.`id` = 340  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 340 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (340, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account341' WHERE `accounts`.`id` = 341  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 341 AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (341, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account342' WHERE `accounts`.`id` = 342  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 342 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (342, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account343' WHERE `accounts`.`id` = 343  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account344' WHERE `accounts`.`id` = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 344 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (344, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account345' WHERE `accounts`.`id` = 345  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (345, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account346' WHERE `accounts`.`id` = 346  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 346 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (346, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account347' WHERE `accounts`.`id` = 347  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 347 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (347, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account348' WHERE `accounts`.`id` = 348  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url1.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url1.test.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url2.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 31  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 348  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 31  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 31  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 32 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 31  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 32 LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account349' WHERE `accounts`.`id` = 349  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 349 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (349, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account350' WHERE `accounts`.`id` = 350  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 350 AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (350, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account351' WHERE `accounts`.`id` = 351  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 351 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (351, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account352' WHERE `accounts`.`id` = 352  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 352 AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (352, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account353' WHERE `accounts`.`id` = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 353 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (353, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account354' WHERE `accounts`.`id` = 354  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (354, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 38  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account355' WHERE `accounts`.`id` = 355  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 355 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (355, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account356' WHERE `accounts`.`id` = 356  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (356, NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 40  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`verified` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account357' WHERE `accounts`.`id` = 357  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 357 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (357, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account358' WHERE `accounts`.`id` = 358  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 358 AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (358, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 42  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:29', 'jabanilson', NULL, 1, '2012-11-28 22:35:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:29', `updated_at` = '2012-11-28 22:35:29', `subdomain` = 'account359' WHERE `accounts`.`id` = 359  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (359, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 42 LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account360' WHERE `accounts`.`id` = 360  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 360 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (360, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account361' WHERE `accounts`.`id` = 361  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account362' WHERE `accounts`.`id` = 362  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (362, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 45 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account363' WHERE `accounts`.`id` = 363  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 363 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (363, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account364' WHERE `accounts`.`id` = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account365' WHERE `accounts`.`id` = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 365 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (365, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account366' WHERE `accounts`.`id` = 366  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 366 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (366, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 48  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 364  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 48  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account367' WHERE `accounts`.`id` = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 367 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (367, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account368' WHERE `accounts`.`id` = 368  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account369' WHERE `accounts`.`id` = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 369 AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (369, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account370' WHERE `accounts`.`id` = 370  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 370 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (370, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 50  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 51  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 368  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 51  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 50 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account371' WHERE `accounts`.`id` = 371  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 371 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (371, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account372' WHERE `accounts`.`id` = 372  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account373' WHERE `accounts`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 373 AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (373, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account374' WHERE `accounts`.`id` = 374  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 374 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (374, 0, 'www.url2.net', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 53  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:30', '2012-11-28 22:35:30', 'teste@teste.com', '$2a$04$QBh33RzLwRKmVj6zh8CJjeHHl58y6d57wXRm/Ow6wa7NzvKxZm1Z.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', NULL, NULL, NULL, '2012-11-28 22:35:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account375' WHERE `accounts`.`id` = 375 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (375, 122) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 375 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 502  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 243) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:30', '2012-11-28 22:35:30', 'teste@teste.com', '$2a$04$1L7nUn7aCwTl0thLtnmyI.LInscracJrSyARXBB3M5VSFe50zJUBG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', NULL, NULL, NULL, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account376' WHERE `accounts`.`id` = 376 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 376 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (376, 123) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 376 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 505  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 244) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:30', '2012-11-28 22:35:30', 'teste@teste.com', '$2a$04$kOK8lwnJLz55DYOXE6./ouffBANhaigI/2BzByHDad0D5YhUC5y6O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', NULL, NULL, NULL, '2012-11-28 22:35:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account377' WHERE `accounts`.`id` = 377 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (377, 124) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 377 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 508  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 245) LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'guest')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:30', '2012-11-28 22:35:30', 'teste@teste.com', '$2a$04$WJorFf.yakNz6WCKWdwK9.t1Ih3Kiiu4cxi1zPiI5KjblrssZGsaW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', NULL, NULL, NULL, '2012-11-28 22:35:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account378' WHERE `accounts`.`id` = 378 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 378 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (378, 125) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 378 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 511  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 246) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != 512 AND `account_roles`.`account_user_id` = 246) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', 'unico', 1, '2012-11-28 22:35:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', 'unico', 1, '2012-11-28 22:35:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', 'unico', 1, '2012-11-28 22:35:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', 'unico', 1, '2012-11-28 22:35:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` LIMIT 1 Account Exists (0.1ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', 'unico', 1, '2012-11-28 22:35:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'me@me.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:30', '2012-11-28 22:35:30', 'me@me.com', '$2a$04$rVdvO1rG2MCyRH.fLmIH.eXnldRiP64ePGZn8eVWAkgHIe26nahSO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:30') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', NULL, NULL, NULL, '2012-11-28 22:35:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account384' WHERE `accounts`.`id` = 384 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 384 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (384, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account385' WHERE `accounts`.`id` = 385  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account386' WHERE `accounts`.`id` = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (386, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 385 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 385 WHERE `account_users`.`id` = 248  (0.1ms) RELEASE SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` INNER JOIN `account_users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 385 AND `users`.`id` = 126 LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', 'unico', 1, '2012-11-28 22:35:30')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdominio' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', 'unico', 1, '2012-11-28 22:35:30')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:30', 'jabanilson', NULL, 1, '2012-11-28 22:35:30')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:30', `updated_at` = '2012-11-28 22:35:30', `subdomain` = 'account389' WHERE `accounts`.`id` = 389  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 389 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account391' WHERE `accounts`.`id` = 391  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 391 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account393' WHERE `accounts`.`id` = 393  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 393\n created_at: 2012-11-28 22:35:31.014171000Z\n updated_at: 2012-11-28 22:35:31.014171000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account393\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_393_destroy', '2012-11-28 22:35:31', '2012-11-28 22:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_393_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account395' WHERE `accounts`.`id` = 395  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_395_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account397' WHERE `accounts`.`id` = 397  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 397\n created_at: 2012-11-28 22:35:31.032627000Z\n updated_at: 2012-11-28 22:35:31.032627000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account397\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_397_destroy', '2012-11-28 22:35:31', '2012-11-28 22:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_397_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account399' WHERE `accounts`.`id` = 399  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_399_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account401' WHERE `accounts`.`id` = 401  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 401\n created_at: 2012-11-28 22:35:31.052074000Z\n updated_at: 2012-11-28 22:35:31.052074000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account401\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_401_destroy', '2012-11-28 22:35:31', '2012-11-28 22:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account403' WHERE `accounts`.`id` = 403  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 403\n created_at: 2012-11-28 22:35:31.064648000Z\n updated_at: 2012-11-28 22:35:31.064648000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account403\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_403_destroy', '2012-11-28 22:35:31', '2012-11-28 22:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account405' WHERE `accounts`.`id` = 405  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account407' WHERE `accounts`.`id` = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 407\n created_at: 2012-11-28 22:35:31.086266000Z\n updated_at: 2012-11-28 22:35:31.086266000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account407\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_407_destroy', '2012-11-28 22:35:31', '2012-11-28 22:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31' WHERE `delayed_jobs`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (107.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$Xzd2PBVAsoNap.BFZVEat.8K16Bs4ksx3p7kj97AvEQXEnZp42WTi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account409' WHERE `accounts`.`id` = 409 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 409 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (409, 127) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 127 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 409 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 518  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 249 AND `account_roles`.`name` = 'user' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$N7MrFmivy/Bh03D0T40.W.dmGPCFB9fVdDWlsk2ETP6SiGLzpJMtm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account411' WHERE `accounts`.`id` = 411 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 411 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (411, 128) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 128 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 411 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 521  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 250 AND `account_roles`.`name` = 'admin' LIMIT 1  (34.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account413' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account413' AND `accounts`.`id` != 413) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'Named', `updated_at` = '2012-11-28 22:35:31' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account415' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account415' AND `accounts`.`id` != 415) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = NULL, `updated_at` = '2012-11-28 22:35:31' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account417' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account417' AND `accounts`.`id` != 417) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-11-28 22:35:31' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 419 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (419, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 55  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'getfromdomain.account.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 419 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 421 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (421, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 56  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'subdomainfind.iugusdk.dev' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'subdomainfind' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'unico', 1, '2012-11-28 22:35:31')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:35:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 423 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (423, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 57  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'notused.domain.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'notused.domain.test' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account424' WHERE `accounts`.`id` = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$v4abTSdApy4KRhtRs0UDpOy7T/hcFi.PKSwcVjWeVT2dhXvm35gKW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account425' WHERE `accounts`.`id` = 425 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (425, 129) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (424, 129) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account426' WHERE `accounts`.`id` = 426  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$CrgbQsKhVCtGzp8J6xgwTO/hNuMyt2mNabSvXBdVSnSSAZmMFROWu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account427' WHERE `accounts`.`id` = 427 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 427 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (427, 130) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (426, 130) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 426 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 530  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 254) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 531 AND `account_roles`.`account_user_id` = 254) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254 AND `account_roles`.`name` = 'user' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account428' WHERE `accounts`.`id` = 428  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$ZFhXes7JGghMkavaG4TYPuFZr0a4Dsxi8N1hwfrW8DoInpNNYYQhC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account429' WHERE `accounts`.`id` = 429 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 429 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (429, 131) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (428, 131) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 428 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 535  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 256) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 536 AND `account_roles`.`account_user_id` = 256) LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account430' WHERE `accounts`.`id` = 430  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$4UVANZJsLmrXfva2235UtOY0RRXw0gNd9Q.Xy9NtLswYIrmRoAq36', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account431' WHERE `accounts`.`id` = 431 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 431 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (431, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (430, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 430 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 540  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 258) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 541 AND `account_roles`.`account_user_id` = 258) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258 AND `account_roles`.`name` = 'user' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account432' WHERE `accounts`.`id` = 432  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$6biXHPFtRaZ.fo3vWmTMwuVy5aBRk.3XA.oYAAIm3biwTZ4eo1XOe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account433' WHERE `accounts`.`id` = 433 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 433 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (433, 133) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (432, 133) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'notowner@account.test', '$2a$04$.gFywMii02mO4Z51wzgYs.oaKtixKIo/3zx.N8LE.s9rqGpjO1chO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account434' WHERE `accounts`.`id` = 434 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 434 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (434, 134) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account435' WHERE `accounts`.`id` = 435  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (435, 134) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 432 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 432 WHERE `account_users`.`id` = 262  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 432 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 545  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260 AND `account_roles`.`name` = 'my_owner' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account436' WHERE `accounts`.`id` = 436  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$hgKbbF.wveCBuTtRi8RFLuk5mP.NJJgTFLR0E8.uiBHGwFIqPe0Au', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account437' WHERE `accounts`.`id` = 437 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 437 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (437, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (436, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'notowner@account.test', '$2a$04$iu.p.zjT65d5phIagJXq/.u9R3Z34aZanl61JxCWJeg4giDH2ZnZK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account438' WHERE `accounts`.`id` = 438 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (438, 136) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account439' WHERE `accounts`.`id` = 439  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (439, 136) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 436 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 436 WHERE `account_users`.`id` = 266  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 436 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 553  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264 AND `account_roles`.`name` = 'my_user' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account440' WHERE `accounts`.`id` = 440  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$P2Jec5.Z5qImHGp3xz29nuI8rbd7.gyiqMMZnW0slAojW2sYc26eK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account441' WHERE `accounts`.`id` = 441 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (441, 137) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (440, 137) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 440 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 562  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_guest' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268 AND `account_roles`.`name` = 'my_guest' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account442' WHERE `accounts`.`id` = 442  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$59k76Ew2rU/9XRjrVtOcnuoz6wuP4vg37XbV/7Egb3iPrFHKdbdOK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account443' WHERE `accounts`.`id` = 443 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (443, 138) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (442, 138) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 270  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 442 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 567  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account444' WHERE `accounts`.`id` = 444  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$SQ1c3X7DSzaxPb8HBMGrCeEV4oLFRHWnZHEkmXuWucDROmChlB94K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account445' WHERE `accounts`.`id` = 445 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (445, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (444, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 272  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 444 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 572  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account446' WHERE `accounts`.`id` = 446  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$XzdVGmutbCNb/17TUcYr3OWPypKAYTpyWRWtW9X9U8UNaU0Vu8C0.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account447' WHERE `accounts`.`id` = 447 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (447, 140) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (446, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 274  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 446 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account448' WHERE `accounts`.`id` = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:31', '2012-11-28 22:35:31', 'teste@teste.com', '$2a$04$XxV.lxO/6pkgu0NKn9BUHOkVxwQegj2XAeh9mYC72hPv4/0.S38J.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', NULL, NULL, NULL, '2012-11-28 22:35:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account449' WHERE `accounts`.`id` = 449 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (449, 141) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (448, 141) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 276  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 448 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 580  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:31', 'jabanilson', NULL, 1, '2012-11-28 22:35:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:31', `updated_at` = '2012-11-28 22:35:31', `subdomain` = 'account450' WHERE `accounts`.`id` = 450  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$v23JPNlNAXejb1nCOSUpeekSpY7irdAopl28vGkIqdGVm9W5xIM8O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account451' WHERE `accounts`.`id` = 451 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (451, 142) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (450, 142) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 278\n account_id: 450\n user_id: 142\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_278_destroy', '2012-11-28 22:35:32', '2012-11-28 22:35:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_278_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account452' WHERE `accounts`.`id` = 452  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$bqYqO14d0QFA6o33WsVJc.w.U0/4aAVq.BWtad0bdauISUwpzMJ3m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account453' WHERE `accounts`.`id` = 453 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (453, 143) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (452, 143) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_280_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account454' WHERE `accounts`.`id` = 454  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$ndEuqEcp5/aL8cHIOJaDQeDyZ4K5z3U/FMc0ukzKEZG2cMa61nXyG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account455' WHERE `accounts`.`id` = 455 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 455 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (455, 144) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (454, 144) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account456' WHERE `accounts`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 282\n account_id: 454\n user_id: 144\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_282_destroy', '2012-11-28 22:35:32', '2012-11-28 22:35:32')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_282_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account457' WHERE `accounts`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$Xoa3OS2eGoVKuAHQQqXArOfsWPb3hJMcYhUsQpKV0DW27acmh/VNu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account458' WHERE `accounts`.`id` = 458 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (458, 145) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (457, 145) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account459' WHERE `accounts`.`id` = 459  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_284_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account460' WHERE `accounts`.`id` = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$nKN2adglfMPvy9CCwjls8eb5NFYm2U1Ab/.EdFZZl7VWYyGu0kk2e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account461' WHERE `accounts`.`id` = 461 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 461 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (461, 146) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (460, 146) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account462' WHERE `accounts`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 286\n account_id: 460\n user_id: 146\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_286_destroy', '2012-11-28 22:35:32', '2012-11-28 22:35:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account463' WHERE `accounts`.`id` = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$KAF0Vdg6rNa6EqCWSJa76uhUWc3apT3XR7LqL3F7P0M1sEVMOsXn6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account464' WHERE `accounts`.`id` = 464 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 464 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (464, 147) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (463, 147) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account465' WHERE `accounts`.`id` = 465  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 288\n account_id: 463\n user_id: 147\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_288_destroy', '2012-11-28 22:35:32', '2012-11-28 22:35:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account466' WHERE `accounts`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$1zH3oYEAqqfyN/SKeHILvus5zOenkixZhZfiAD7xNr/IbIAPNhA4a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account467' WHERE `accounts`.`id` = 467 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 467 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (467, 148) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (466, 148) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account468' WHERE `accounts`.`id` = 468  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account469' WHERE `accounts`.`id` = 469  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$vvZw/hNBy/DJhZ/WoBSkh.2XhB38h87dJem2E/YN13.iXyJbxm.Ce', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account470' WHERE `accounts`.`id` = 470 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 470 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (470, 149) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (469, 149) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account471' WHERE `accounts`.`id` = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 292\n account_id: 469\n user_id: 149\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_292_destroy', '2012-11-28 22:35:32', '2012-11-28 22:35:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32' WHERE `delayed_jobs`.`id` = 28  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account472' WHERE `accounts`.`id` = 472  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 472 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:32', 'api token', '17ebb575f6977511df189113649be0a2', 472, 'Account', '2012-11-28 22:35:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Load (0.1ms) SELECT `api_tokens`.* FROM `api_tokens` LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '17ebb575f6977511df189113649be0a2' LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '17ebb575f6977511df189113649be0a2' LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account473' WHERE `accounts`.`id` = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 473 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:32', 'api token', '630d103a2f76cb2068b1df41c4aefc32', 473, 'Account', '2012-11-28 22:35:32')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account474' WHERE `accounts`.`id` = 474  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 474 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:32', 'api token', '4aa169ebb08c011fba90fb8fb3bafa56', 474, 'Account', '2012-11-28 22:35:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (12.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account475' WHERE `accounts`.`id` = 475  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 475 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:32', 'api token', '05c919a840427eeb57fac5f39c49db5d', 475, 'Account', '2012-11-28 22:35:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account476' WHERE `accounts`.`id` = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:32', 'token 1', '553b4b28a211b8870b5dde4e387b08a8', 476, 'Account', '2012-11-28 22:35:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`token` = BINARY '553b4b28a211b8870b5dde4e387b08a8' AND `api_tokens`.`id` != 8) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`id` != 8 AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account477' WHERE `accounts`.`id` = 477  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 477 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:35:32', 'api token', '371f4f8106ff9d6d0a92bfa9f7a5dae4', 477, 'Account', '2012-11-28 22:35:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', '', '$2a$04$wg5mlkg0DE91wV0g4dFOWuLuToPouQ6Z30cLFP67O5sj1rkf1Enee', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account478' WHERE `accounts`.`id` = 478 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 478 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (478, 150) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 150 WHERE `social_accounts`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150  (7.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$16V.oJED/S6n/xKW5ar4Be1L.VfkoQFyLEZQkd9NUZqRF6t.yVwzy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account479' WHERE `accounts`.`id` = 479 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (479, 151) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 151)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '', `updated_at` = '2012-11-28 22:35:32' WHERE `users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 151  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$WtZyE2l.TLko7bB1VXhw5e1z/nKqlCMoDsAaajjN7cCvbBs5q24du', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account480' WHERE `accounts`.`id` = 480 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (480, 152) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 152)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'testing@email.test' AND `users`.`id` != 152) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '$2a$04$mkOxDwxMfASWNMrsmZNOg.QBHx3AuiztVJNFS5EfuQcDpUcN/U0L.', `updated_at` = '2012-11-28 22:35:32' WHERE `users`.`id` = 152  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account481' WHERE `accounts`.`id` = 481  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'invited@test.test', '$2a$04$AMe6YtbPlysbvk7eJrvQRugwfEdEHhjIhzgrj.qcqn5KeoGKSYzpK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account482' WHERE `accounts`.`id` = 482 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (482, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 481 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (481, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 481 AND `users`.`email` = 'invited@test.test'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:35:32', '__PQa_DkchB8Z68HDy_YPUjMc3I') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:32 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b691b4a3180_197580435d48927c6@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/12__PQa_DkchB8Z68HDy_YPUjMc3I  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:35:32', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:32 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b691b4a92ff_197580435d4892856@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/13oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 13 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:35:32', '2nABz3vjWMcaNw4NRRDSEgp-f8U') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:32 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b691b4af8fa_197580435d48929c0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/142nABz3vjWMcaNw4NRRDSEgp-f8U  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:35:32', 'jDroylT5YuvuZbumHFV6TkKK9CU') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:32 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b691b4cc1eb_197580435d4893099@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/15jDroylT5YuvuZbumHFV6TkKK9CU  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account483' WHERE `accounts`.`id` = 483  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 483 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (483, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:32', 'JKM_hSZrGl382GFjOiTepnFL6Nw') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:32 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691b4d33c0_197580435d48931cf@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/16JKM_hSZrGl382GFjOiTepnFL6Nw  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 16 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account484' WHERE `accounts`.`id` = 484  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 484 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (484, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:32', 'gcQ9f5zvnJQayiWexyVTklSyMws') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:35:32 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691b4da945_197580435d48932e5@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/17gcQ9f5zvnJQayiWexyVTklSyMws  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 1238 LIMIT 1  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account485' WHERE `accounts`.`id` = 485  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 485 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (485, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:32', '4nVi6j6ODBrUHcVASuqme3l0irc') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:32 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691b4e3427_197580435d48933df@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/184nVi6j6ODBrUHcVASuqme3l0irc  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account486' WHERE `accounts`.`id` = 486  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:32', '2012-11-28 22:35:32', 'teste@teste.com', '$2a$04$gi/daTOvmvy/gBM//9TruuKoDSAKyKXwXIJwCeheCGgZ6tTg00REK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', NULL, NULL, NULL, '2012-11-28 22:35:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account487' WHERE `accounts`.`id` = 487 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 487 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (487, 154) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 486 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 486 WHERE `user_invitations`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (486, 154) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (299) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (486)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:32', 'jabanilson', NULL, 1, '2012-11-28 22:35:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:32', `updated_at` = '2012-11-28 22:35:32', `subdomain` = 'account488' WHERE `accounts`.`id` = 488  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 488 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (488, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:32', 'mEs2cvlfabRejNLp3rOOnzXc4Kc') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:35:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691b5255d_197580435d4893413@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/19mEs2cvlfabRejNLp3rOOnzXc4Kc  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', 'jabanilson', NULL, 1, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account489' WHERE `accounts`.`id` = 489  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$9mKE7tC4NKSAvIjPR0r.VOf/K/ovaf2wmnips.c0BH4oPjjaS3JqK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account490' WHERE `accounts`.`id` = 490 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 490 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (490, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 489 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = 19  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 488 AND `account_users`.`user_id` = 155  (0.3ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (488, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 488 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 630  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'guest')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301 AND `account_roles`.`name` = 'user' LIMIT 1  (10.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', 'jabanilson', NULL, 1, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account491' WHERE `accounts`.`id` = 491  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 491 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (491, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:33', 'kvveIIyHkJ1_p4weGSEzqJ_cCxA') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:35:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691b519c55_197580435d4893511@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/20kvveIIyHkJ1_p4weGSEzqJ_cCxA  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', 'jabanilson', NULL, 1, '2012-11-28 22:35:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account492' WHERE `accounts`.`id` = 492  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$RDks.YtQIVnE/1WrE5HwG.lsEFmAqtNeT7s.2X/X3BuM9LxbIJu/u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account493' WHERE `accounts`.`id` = 493 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 493 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (493, 156) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 492 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 492 WHERE `user_invitations`.`id` = 20  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 492 AND `account_users`.`user_id` = 156  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (492, 156) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', 'jabanilson', NULL, 1, '2012-11-28 22:35:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account494' WHERE `accounts`.`id` = 494  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 494 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (494, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:33', 'dQYQGOcLjRIlOfff0348SNCwp2o') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691b52b364_197580435d489367f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/21dQYQGOcLjRIlOfff0348SNCwp2o  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', 'jabanilson', NULL, 1, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account495' WHERE `accounts`.`id` = 495  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$X5yGpVxnrfgeVS8bB.Lm9OE5jqvI/zEByypXaz9RDGl.6PIaj2n1W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account496' WHERE `accounts`.`id` = 496 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (496, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 495 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 495 WHERE `user_invitations`.`id` = 21  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (495, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 495 AND `account_users`.`user_id` = 157  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$bNG.o/P85XkNi8i6gFyVdubxixJCXQ.ayQytK.VFbcQGZSJ.lC046', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account497' WHERE `accounts`.`id` = 497 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (497, 158) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$HUyT6/a.7tw6WKQtCjLDy.wvIUIaR0h8Knizpfn8dm5xSAl0UzIcm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account498' WHERE `accounts`.`id` = 498 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 498 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (498, 159) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$uXcUCz1Dg17R8h7P/hgpLOegI46F9AyOOBsGfL/DoFGtmK3psFkDC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account499' WHERE `accounts`.`id` = 499 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 499 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (499, 160) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$gxNVhqTEbKEwFFMbAUL3RuDOVoew.zhQEYzwW7XGDIgjGoFIWeQnC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account500' WHERE `accounts`.`id` = 500 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (500, 161) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 161  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$mAO3IiuN0OmE6DVuAxYL3ezteSHpXzB6dkQy66NRt75rNka/fai6W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', 'e9359eb5e2b7b70186e144704a595488', 162, 'User', '2012-11-28 22:35:33') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account501' WHERE `accounts`.`id` = 501 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (501, 162) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'teste@teste.com', '$2a$04$qOztRUFQtTpBPLX88Jz9L.GF8olmmhlF0ziTTG.S9mWeXjukRQF6m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', '6dcb7715d2fb04a64d8169cb8bfd9f20', 163, 'User', '2012-11-28 22:35:33') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account502' WHERE `accounts`.`id` = 502 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (502, 163) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b57a35f_197580435d489377e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'account1@before.destroy', '$2a$04$/F4GZGxStyzC1jafzYmlUe9REy3.9ftZVoq6A.vWxi9FBwFRZF6Ra', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', '3a2546ee774cc656e6dc384f95202ce6', 164, 'User', '2012-11-28 22:35:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account503' WHERE `accounts`.`id` = 503 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 503 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (503, 164) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'admin') Sent mail to account1@before.destroy (6ms) Date: Wed, 28 Nov 2012 20:35:33 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b691b58559a_197580435d4893824@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 164\n email: account1@before.destroy\n encrypted_password: $2a$04$/F4GZGxStyzC1jafzYmlUe9REy3.9ftZVoq6A.vWxi9FBwFRZF6Ra\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:33.515827000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:33.516202000Z\n updated_at: 2012-11-28 22:35:33.516202000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_164_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_164_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 164 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (312) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (503) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 312\n account_id: 503\n user_id: 164\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_312_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 164 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 503 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 503\n created_at: 2012-11-28 22:35:33.000000000Z\n updated_at: 2012-11-28 22:35:33.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account503\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_503_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = 164  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_503_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'account1@before.destroy', '$2a$04$9wRi8u8GflcVkaCFWqa2ge43eK4DyhG4oPXsQtaIjf60Hq4KPtFF.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', '93701cdd6da927b889058a488b650c52', 165, 'User', '2012-11-28 22:35:33') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account504' WHERE `accounts`.`id` = 504 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (504, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:35:33 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b691b596787_197580435d4893959@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', 'jabanilson', NULL, 1, '2012-11-28 22:35:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account505' WHERE `accounts`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (505, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165 ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 165\n email: account1@before.destroy\n encrypted_password: $2a$04$9wRi8u8GflcVkaCFWqa2ge43eK4DyhG4oPXsQtaIjf60Hq4KPtFF.\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:33.585892000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:33.586262000Z\n updated_at: 2012-11-28 22:35:33.586262000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_165_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_165_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 165 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (313, 314) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (504, 505) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 313\n account_id: 504\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_313_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33') SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 314\n account_id: 505\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_314_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 165 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 504 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 504\n created_at: 2012-11-28 22:35:33.000000000Z\n updated_at: 2012-11-28 22:35:33.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account504\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_504_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 505 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 505\n created_at: 2012-11-28 22:35:33.000000000Z\n updated_at: 2012-11-28 22:35:33.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account505\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_505_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = 165  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_505_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'account1@before.destroy', '$2a$04$LBtuQau1toyRSC0HD2Y67eITv2dGZWvz.oi.zUPJchlSeF98i9L9i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', 'cc11f5f99bba3c90cec77cc3e7fd974d', 166, 'User', '2012-11-28 22:35:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account506' WHERE `accounts`.`id` = 506 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 166) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'admin') Sent mail to account1@before.destroy (6ms) Date: Wed, 28 Nov 2012 20:35:33 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b691b5ab57b_197580435d489408f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'account2@before.destroy', '$2a$04$NwrTDPEsVh9dNIwDwWMHy.W0bunPzgQxHOUe6MLd9OiDiZGb5BEJ6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', '835be0c9997e247869108a557de31d51', 167, 'User', '2012-11-28 22:35:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account507' WHERE `accounts`.`id` = 507 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (507, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'admin') Sent mail to account2@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:35:33 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50b691b5b6232_197580435d489415a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 166\n email: account1@before.destroy\n encrypted_password: $2a$04$LBtuQau1toyRSC0HD2Y67eITv2dGZWvz.oi.zUPJchlSeF98i9L9i\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:33.672141000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:33.672507000Z\n updated_at: 2012-11-28 22:35:33.672507000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_166_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_166_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 166 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 166 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (315) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (506) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 315\n account_id: 506\n user_id: 166\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_315_destroy', '2012-11-28 22:35:33', '2012-11-28 22:35:33') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 506 SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = 166  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_506_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', '971843152fa62bf080e628685e0775ce', 168, 'User', '2012-11-28 22:35:33') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account508' WHERE `accounts`.`id` = 508 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 508 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (508, 168) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 168\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:33.784236000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:33.784976000Z\n updated_at: 2012-11-28 22:35:33.784976000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_168', '2012-12-05 22:35:33', '2012-11-28 22:35:33')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 168 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 168) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$aMrzn2WlPxfMMk5Ws3S8c.JZ6NFI8wPFeCqrF/51izRZjEqXYeiTm', `updated_at` = '2012-11-28 22:35:33' WHERE `users`.`id` = 168  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_168' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', '99cc64699b193e0d57b14c7fa5c12753', 169, 'User', '2012-11-28 22:35:33') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account509' WHERE `accounts`.`id` = 509 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 509 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (509, 169) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 169\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:33.820823000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:33.821599000Z\n updated_at: 2012-11-28 22:35:33.821599000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_169', '2012-12-05 22:35:33', '2012-11-28 22:35:33')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 169 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 169) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:33', '2012-11-28 22:35:33', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', '1b0286be0be52b9dbfe717dc0e9217f6', 170, 'User', '2012-11-28 22:35:33') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account510' WHERE `accounts`.`id` = 510 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 510 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (510, 170) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 170\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:33.854665000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:33.855755000Z\n updated_at: 2012-11-28 22:35:33.855755000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_170', '2012-12-05 22:35:33', '2012-11-28 22:35:33')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 170  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'gDWxBJqEdYmFFsfKzLEa' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:35:33', 'gDWxBJqEdYmFFsfKzLEa', '2012-11-28 22:35:33', '2012-11-28 22:35:33', 'confirmation@skip.test', '$2a$04$vUcemusqn7OzDLKa1BjzXuSbszPfId8YS7r0/kipiQAkCXCulmKTq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:33') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:33', 'User', '80c8a9a0b1096c14e930c532854ec4ba', 171, 'User', '2012-11-28 22:35:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:33', NULL, NULL, NULL, '2012-11-28 22:35:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:33', `updated_at` = '2012-11-28 22:35:33', `subdomain` = 'account511' WHERE `accounts`.`id` = 511 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 511 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (511, 171) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b691b62a62_197580435d489427f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'zSwbDVksx1sH2p6zYdpJ' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:35:34', 'zSwbDVksx1sH2p6zYdpJ', NULL, '2012-11-28 22:35:34', 'confirmation@needed.test', '$2a$04$oVvIjCULe998CanZ8kmNFO4wYaLtkGA9JaDehzpkvhp/fJn2HobdO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b691b6b880_197580435d489435d@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '12a1563569a2f9daab865759a23f3409', 172, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account512' WHERE `accounts`.`id` = 512 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 512 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (512, 172) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b691b613c9b_197580435d4894449@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'Vvwk8CpoaBCiyGJbDzns' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:35:34', 'Vvwk8CpoaBCiyGJbDzns', NULL, '2012-11-28 22:35:34', 'reconfirmation@needed.test', '$2a$04$V5Tl9KV9VEGgbjsLUPlLruLDY8UnHvOz2NWPPydMFwIp5swIPD.tK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b691b61b06c_197580435d48945c6@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '3c88cc92d08c6830b4cf9c056567a959', 173, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account513' WHERE `accounts`.`id` = 513 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (513, 173) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b691b623d43_197580435d48946d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 173 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 173) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:35:34' WHERE `users`.`id` = 173 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '1qqyXd8VYNpGdp6kkp4q' LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:35:34', `confirmation_token` = '1qqyXd8VYNpGdp6kkp4q' WHERE `users`.`id` = 173 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b691b62a646_197580435d489475c@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'kcia5sx4VXfQSpbjNTrh' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:35:34', 'kcia5sx4VXfQSpbjNTrh', NULL, '2012-11-28 22:35:34', 'reconfirmation@needed.test', '$2a$04$iLtnq4HaKvTSZnadW451cuMFQRQApxXp6P1MDpNjuZhBofK/oHFou', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b691b6317d7_197580435d48948cb@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '6e127afd6369a223560b7c4cdc8b23de', 174, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account514' WHERE `accounts`.`id` = 514 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (514, 174) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b691b63a2ee_197580435d489491f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 174 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 174) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:35:34' WHERE `users`.`id` = 174  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$ZHMWa.Wo/rGe6zjRDnkOde/fPPCL2arzZ3H6UsvJ51nS/96c21eIi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', 'da38c0b54bb67e205ee056b8e037bd6b', 175, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account515' WHERE `accounts`.`id` = 515 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 515 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (515, 175) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b646ad8_197580435d489506a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 175)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 175  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$YCqY0/thH7sUlPHSZ6Pc8OHP6surBDq.WtxKRJ3lj7y7ysmg8URyu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '28b31049803c63a05feac0057ced7dee', 176, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account516' WHERE `accounts`.`id` = 516 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 516 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (516, 176) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b6524e5_197580435d489514f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 176)  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 176 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:34', '2012-11-28 22:35:34', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '9a46da9077ad8e657a84a7b359cb1481', 177, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account517' WHERE `accounts`.`id` = 517 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 517 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (517, 177) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 177)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 177 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:34', '2012-11-28 22:35:34', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', 'bc453a120b2cdf379387493ea44976f7', 178, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account518' WHERE `accounts`.`id` = 518 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 518 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (518, 178) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b66305d_197580435d48952da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 178)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 178 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$AkP3gjmEEz3nOS4GYwEb/.Jaz62W1P5q9lda5ZvYsp.RboPVA9ftO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '271da9b5acdbce6c11c6db02006891d5', 179, 'User', '2012-11-28 22:35:34') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account519' WHERE `accounts`.`id` = 519 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (519, 179) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b684de2_197580435d489536@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 179)  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 179 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$./og5CM1neYE3PEYPH0AQeBygtkpkxd6UmBbqUAup3LVqu92RSFdu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', 'ce1ae221be6c003581545cc9baf59413', 180, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account520' WHERE `accounts`.`id` = 520 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 520 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (520, 180) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b691012_197580435d489541b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 180)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 180 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `token` = 'newtoken' WHERE `social_accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`id` = 21 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '4Bp24fQqxkrqUbiy8HCf' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:35:34', '4Bp24fQqxkrqUbiy8HCf', NULL, '2012-11-28 22:35:34', 'test@email.test', '$2a$04$AwSGwOpOVACBWsvypL3qOeqUoKNhVuAeCMPRjwYwr6UfGgGT/THG6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b691b6997e7_197580435d48955f8@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', 'd2d57bc3997eabbcb262965061fece36', 181, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account521' WHERE `accounts`.`id` = 521 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (521, 181) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'admin') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b691b6a253c_197580435d48956e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 181  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'fe8zEmUpStPCTw9ntdVD' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:35:34', 'fe8zEmUpStPCTw9ntdVD', NULL, '2012-11-28 22:35:34', 'test@email.test', '$2a$04$fPfAr21qbwY6MZKMSOnyjOOV64BwLjJI9BHmnnmo594xRhAG8qTF.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b691b6a9d2c_197580435d489576a@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '9d4e8eba1207c1d947a0a9d8a123afcb', 182, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b691b6af52b_197580435d4895891@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 182  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$ho2n9IAenA6HSF7ipuXxG.H4DoaEg5GA/FfEo2UlyhBS9oGExQHdm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', 'e842fc6b7d10746fd456ff6d4e269cd8', 183, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account522' WHERE `accounts`.`id` = 522 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 522 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (522, 183) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b6baa20_197580435d48959d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$e8D6wL1B.hSpah12fLk5pOImDcyuFYnVow.L/OVKUIQq/l7JciWI2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '22b966d05f0143e5fe26206d498c0ace', 184, 'User', '2012-11-28 22:35:34') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account523' WHERE `accounts`.`id` = 523 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (523, 184) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b6c6b40_197580435d4896063@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 AND (accounts.id = 523) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$a3xtMl9/NqLyQd.yxvN6mOZAHHaejLAXO93YHx7fe8iYIGPvCBkti', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '6fa2362e83616e91dc0d62ad3aa12ccc', 185, 'User', '2012-11-28 22:35:34') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account524' WHERE `accounts`.`id` = 524 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 524 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (524, 185) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b6d33f7_197580435d4896125@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 AND (accounts.id = 524) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$E/IEE/RT.YlBPrlUCPxYJuWQcXNptpP0J2vt64.pYVyNYhYJhy146', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '6cd2bb2025287a080ecdcccc7c17922f', 186, 'User', '2012-11-28 22:35:34') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account525' WHERE `accounts`.`id` = 525 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (525, 186) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b6def14_197580435d489629a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 186\n email: teste@teste.com\n encrypted_password: $2a$04$E/IEE/RT.YlBPrlUCPxYJuWQcXNptpP0J2vt64.pYVyNYhYJhy146\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:35:19.003208000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:34.883378000Z\n updated_at: 2012-11-28 22:35:34.883378000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_186_destroy', '2012-11-28 22:35:34', '2012-11-28 22:35:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_186_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$kmrxu6mIB4TgsRV/XYLohOsZ7tXgAel5Cl7PVPlA9WRcRrpUDZRJm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '1c2a34c709732185443cc434ffcf2182', 187, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account526' WHERE `accounts`.`id` = 526 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 526 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (526, 187) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:34 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b6eb7a9_197580435d48963ce@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_187_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:34', 'teste@teste.com', '$2a$04$WP7A/pw3pvVA8zKu8W7D/.EjQUMFa92A0xkgmzvXaXT5QJqvchGb.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:34') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:34', 'User', '54b85d47faa106cbd42ef0b9881c20f5', 188, 'User', '2012-11-28 22:35:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:34', NULL, NULL, NULL, '2012-11-28 22:35:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:34', `updated_at` = '2012-11-28 22:35:34', `subdomain` = 'account527' WHERE `accounts`.`id` = 527 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 527 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (527, 188) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b7197c2_197580435d48964b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 188\n email: teste@teste.com\n encrypted_password: $2a$04$WP7A/pw3pvVA8zKu8W7D/.EjQUMFa92A0xkgmzvXaXT5QJqvchGb.\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:35:19.003208000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:34.980306000Z\n updated_at: 2012-11-28 22:35:34.980306000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_188_destroy', '2012-11-28 22:35:35', '2012-11-28 22:35:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_188_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:35', 'teste@teste.com', '$2a$04$E3qracX22CjpWpDE6v46V.56x8ydsL1e.Fuji1IEpkOXRhkV1x9Ma', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', 'e56ec8d6e38b5895572c53acf8d5d6da', 189, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account528' WHERE `accounts`.`id` = 528 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 528 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (528, 189) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b725709_197580435d4896597@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_189_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:35', 'teste@teste.com', '$2a$04$D7Kelx.JRO5gUIr1Vo4ckOckMimbYH0IsJa3GjmvH6eyB12Kt3k1e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '8438b5d25f128e1e4c4d6b1bd8d53794', 190, 'User', '2012-11-28 22:35:35') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account529' WHERE `accounts`.`id` = 529 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (529, 190) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b7305f4_197580435d48966a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 190\n email: teste@teste.com\n encrypted_password: $2a$04$D7Kelx.JRO5gUIr1Vo4ckOckMimbYH0IsJa3GjmvH6eyB12Kt3k1e\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:35:19.003208000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.168620000Z\n updated_at: 2012-11-28 22:35:35.168620000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_190_destroy', '2012-11-28 22:35:35', '2012-11-28 22:35:35')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 44  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:35', 'teste@teste.com', '$2a$04$8U6ShvSd82UtjdbREsz6T.7jRsTg/V4GHls8BU5lWBFtMf7gz3kGK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '97b106ec6498d54a55c4decadf522361', 191, 'User', '2012-11-28 22:35:35') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account530' WHERE `accounts`.`id` = 530 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 530 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (530, 191) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b73d2e5_197580435d4896745@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 191\n email: teste@teste.com\n encrypted_password: $2a$04$8U6ShvSd82UtjdbREsz6T.7jRsTg/V4GHls8BU5lWBFtMf7gz3kGK\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:35:19.003208000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.219707000Z\n updated_at: 2012-11-28 22:35:35.219707000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_191_destroy', '2012-11-28 22:35:35', '2012-11-28 22:35:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 45  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:35', 'teste@teste.com', '$2a$04$BnCD7laaR2v4.1BOVKSsOeHqFKC2lM8b.nhuaGFOlw7/JP1ySj8/m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '62f6b5a6ee86265aa7b03911a0d15902', 192, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account531' WHERE `accounts`.`id` = 531 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 531 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (531, 192) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b749a75_197580435d489687c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:35', 'teste@teste.com', '$2a$04$83oYsW0zbdgxAnVx5bIJgOFy7RSIDm7fZgLEAYYPoKJqYTl8Oy85G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', 'ded780c6a0d55462af719e51dd295877', 193, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account532' WHERE `accounts`.`id` = 532 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 532 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (532, 193) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b754c34_197580435d4896942@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 193\n email: teste@teste.com\n encrypted_password: $2a$04$83oYsW0zbdgxAnVx5bIJgOFy7RSIDm7fZgLEAYYPoKJqYTl8Oy85G\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:35:19.003208000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.317849000Z\n updated_at: 2012-11-28 22:35:35.317849000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_193_destroy', '2012-11-28 22:35:35', '2012-11-28 22:35:35')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35' WHERE `delayed_jobs`.`id` = 46  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:35', 'teste@teste.com', '$2a$04$vDrPzbFodXqoJgsrXDxgZOHaXHN5x6IXxYZEwcY60YSfVVAauoGZq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '485096068d3af44fbc1e3028108cafd9', 194, 'User', '2012-11-28 22:35:35') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account533' WHERE `accounts`.`id` = 533 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 533 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (533, 194) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b761970_197580435d4897053@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 194 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 533 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 716  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 343 AND `account_roles`.`name` = 'user' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:35', 'teste@teste.com', '$2a$04$VRYbzmk7qqUcucbP81p0IeBSzPzTA5LNVIoggPuiPybIlPyKRoIk.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '55b88c7995d37549427d29701144032f', 195, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account534' WHERE `accounts`.`id` = 534 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 534 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (534, 195) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691b7713f8_197580435d4897121@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 195 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 534 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 719  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 344 AND `account_roles`.`name` = 'admin' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '2bcb975957adf4b859940e8102fa2c9f', 196, 'User', '2012-11-28 22:35:35') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account535' WHERE `accounts`.`id` = 535 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (535, 196) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 196\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:35.491705000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.492288000Z\n updated_at: 2012-11-28 22:35:35.492288000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_196', '2012-12-05 22:35:35', '2012-11-28 22:35:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '2b66b1ba55a2be5a0dc6a4763e474df2', 197, 'User', '2012-11-28 22:35:35') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account536' WHERE `accounts`.`id` = 536 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 536 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (536, 197) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 197\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:35.518121000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.518574000Z\n updated_at: 2012-11-28 22:35:35.518574000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_197', '2012-12-05 22:35:35', '2012-11-28 22:35:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '4650720f389e5c8a3d50420edbe48eb0', 198, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account537' WHERE `accounts`.`id` = 537 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (537, 198) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 198\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:35.542624000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.543131000Z\n updated_at: 2012-11-28 22:35:35.543131000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_198', '2012-12-05 22:35:35', '2012-11-28 22:35:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '60b64655245c95c69625cc0c515611fe', 199, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account538' WHERE `accounts`.`id` = 538 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 538 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (538, 199) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 199\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:35.566988000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.567461000Z\n updated_at: 2012-11-28 22:35:35.567461000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_199', '2012-12-05 22:35:35', '2012-11-28 22:35:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', 'daf2a7bda4c2e34b513128e450718497', 200, 'User', '2012-11-28 22:35:35') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account539' WHERE `accounts`.`id` = 539 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 539 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (539, 200) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 200\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:35.690334000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.690854000Z\n updated_at: 2012-11-28 22:35:35.690854000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_200', '2012-12-05 22:35:35', '2012-11-28 22:35:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '66476d6190b2d7effeb3b2471bee99fe', 201, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account540' WHERE `accounts`.`id` = 540 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 540 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (540, 201) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 201\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:35.715967000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.716425000Z\n updated_at: 2012-11-28 22:35:35.716425000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_201', '2012-12-05 22:35:35', '2012-11-28 22:35:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', 'e18d1ee6577a28e5d39b31fbc9bb6565', 202, 'User', '2012-11-28 22:35:35') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account541' WHERE `accounts`.`id` = 541 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (541, 202) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 202\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:35.741595000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.742062000Z\n updated_at: 2012-11-28 22:35:35.742062000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_202', '2012-12-05 22:35:35', '2012-11-28 22:35:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '14f5edb6ed5784e5473fe64f1a7e75ae', 203, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account542' WHERE `accounts`.`id` = 542 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (542, 203) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 203\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:35:35.764423000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:35:35.764882000Z\n updated_at: 2012-11-28 22:35:35.764882000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_203', '2012-12-05 22:35:35', '2012-11-28 22:35:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:35 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:35 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:35', '2012-11-28 22:35:35', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:35', 'User', '496f3db5d4cff89edc42649d08f5304f', 204, 'User', '2012-11-28 22:35:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:35', NULL, NULL, NULL, '2012-11-28 22:35:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:35', `updated_at` = '2012-11-28 22:35:35', `subdomain` = 'account543' WHERE `accounts`.`id` = 543 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (543, 204) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:35 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b7e1c09_197580435d4897298@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 204)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:35 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 543 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (543, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/543/domains" for 127.0.0.1 at 2012-11-28 20:35:35 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"543"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_543_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 204 AND `account_users`.`account_id` = 543 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND `accounts`.`id` = 543 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 Completed 200 OK in 716ms (Views: 705.0ms | ActiveRecord: 3.1ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:36 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:36 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:36', '2012-11-28 22:35:36', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:36', 'User', 'cf5537724a67b715dc3279adfec13e3b', 205, 'User', '2012-11-28 22:35:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:36', NULL, NULL, NULL, '2012-11-28 22:35:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:36', `updated_at` = '2012-11-28 22:35:36', `subdomain` = 'account544' WHERE `accounts`.`id` = 544 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (544, 205) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:36 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b8e1a32_197580435d4897323@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 205)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:36 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (544, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/544/domains" for 127.0.0.1 at 2012-11-28 20:35:36 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"544"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_544_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 205 AND `account_users`.`account_id` = 544 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND `accounts`.`id` = 544 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`account_id` = 544 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 544 AND `account_users`.`user_id` = 205 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (354) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (544) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 Completed 200 OK in 23ms (Views: 11.0ms | ActiveRecord: 4.2ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:36 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:36 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:36', '2012-11-28 22:35:36', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:36') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:36', 'User', '36552a4d603ba91e623c904defa2337f', 206, 'User', '2012-11-28 22:35:36') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:36', NULL, NULL, NULL, '2012-11-28 22:35:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:36', `updated_at` = '2012-11-28 22:35:36', `subdomain` = 'account545' WHERE `accounts`.`id` = 545 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (545, 206) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b958a8_197580435d48974b0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 206)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (545, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 60  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/545/domains" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"545"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_545_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 206 AND `account_users`.`account_id` = 545 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND `accounts`.`id` = 545 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`account_id` = 545 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 545 AND `account_users`.`user_id` = 206 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (355) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (545) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 Completed 200 OK in 112ms (Views: 99.9ms | ActiveRecord: 4.3ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:37', '2012-11-28 22:35:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:37') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:37', 'User', '98bd02d90a09c028362712c80f497bc9', 207, 'User', '2012-11-28 22:35:37') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:37', NULL, NULL, NULL, '2012-11-28 22:35:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:37', `updated_at` = '2012-11-28 22:35:37', `subdomain` = 'account546' WHERE `accounts`.`id` = 546 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (546, 207) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b933d51_197580435d48975f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 207)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (546, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/546/domains" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"546"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_546_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 207 AND `account_users`.`account_id` = 546 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND `accounts`.`id` = 546 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`account_id` = 546 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 546 AND `account_users`.`user_id` = 207 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (356) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (546) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 Completed 200 OK in 23ms (Views: 10.8ms | ActiveRecord: 3.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:37', '2012-11-28 22:35:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:37') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:37', 'User', '98f925900e10661f0a38a899cafe254e', 208, 'User', '2012-11-28 22:35:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:37', NULL, NULL, NULL, '2012-11-28 22:35:37')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:37', `updated_at` = '2012-11-28 22:35:37', `subdomain` = 'account547' WHERE `accounts`.`id` = 547 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (547, 208) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b94c932_197580435d4897646@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 208)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (547, NULL, 'index.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 62  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/547/domains" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"547"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_547_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 208 AND `account_users`.`account_id` = 547 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND `accounts`.`id` = 547 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`account_id` = 547 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 547 AND `account_users`.`user_id` = 208 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (357) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (547) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 Completed 200 OK in 23ms (Views: 11.0ms | ActiveRecord: 4.1ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:37', '2012-11-28 22:35:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:37') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:37', 'User', '1b2f6a366dcfeeb63e5049789f19980d', 209, 'User', '2012-11-28 22:35:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:37', NULL, NULL, NULL, '2012-11-28 22:35:37')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:37', `updated_at` = '2012-11-28 22:35:37', `subdomain` = 'account548' WHERE `accounts`.`id` = 548 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (548, 209) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b96504e_197580435d48977ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 209)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (548, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 63  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/548/domains" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"548"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_548_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 209 AND `account_users`.`account_id` = 548 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND `accounts`.`id` = 548 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`account_id` = 548 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 548 AND `account_users`.`user_id` = 209 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (358) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (548) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 Completed 200 OK in 23ms (Views: 11.2ms | ActiveRecord: 4.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:37', '2012-11-28 22:35:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:37') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:37', 'User', '9fd322c095db428c1f952f9d272dd74e', 210, 'User', '2012-11-28 22:35:37') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:37', NULL, NULL, NULL, '2012-11-28 22:35:37')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:37', `updated_at` = '2012-11-28 22:35:37', `subdomain` = 'account549' WHERE `accounts`.`id` = 549 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (549, 210) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b994e5c_197580435d4897814@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 210)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (549, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 64  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/549/domains" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"549"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_549_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 210 AND `account_users`.`account_id` = 549 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND `accounts`.`id` = 549 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`account_id` = 549 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 549 AND `account_users`.`user_id` = 210 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (359) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (549) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 Completed 200 OK in 22ms (Views: 10.7ms | ActiveRecord: 4.1ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:37', '2012-11-28 22:35:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:37', 'User', '39f87c889e96a33c904cbd91de679a26', 211, 'User', '2012-11-28 22:35:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:37', NULL, NULL, NULL, '2012-11-28 22:35:37')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:37', `updated_at` = '2012-11-28 22:35:37', `subdomain` = 'account550' WHERE `accounts`.`id` = 550 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (550, 211) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b9ad01b_197580435d48979bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 211)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (550, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 550 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 752  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/550/domains" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"550"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_550_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND `accounts`.`id` = 550 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`account_id` = 550 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 550 AND `account_users`.`user_id` = 211 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (360) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (550) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 Completed 200 OK in 22ms (Views: 10.8ms | ActiveRecord: 4.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:37', '2012-11-28 22:35:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:37') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:37', 'User', '4cd246e4e7526fecc361dd81c67e0a5e', 212, 'User', '2012-11-28 22:35:37') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:37', NULL, NULL, NULL, '2012-11-28 22:35:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:37', `updated_at` = '2012-11-28 22:35:37', `subdomain` = 'account551' WHERE `accounts`.`id` = 551 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (551, 212) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:35:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691b9c7e36_197580435d4898065@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 212)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 551 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 754  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/551/user/212/roles" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"551", "user_id"=>"212"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 212 AND `account_users`.`account_id` = 551 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND `accounts`.`id` = 551 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 Completed 200 OK in 122ms (Views: 109.7ms | ActiveRecord: 3.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:37', '2012-11-28 22:35:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:37') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:37', 'User', '1c199ceedf2f7088ec69487b098b0090', 213, 'User', '2012-11-28 22:35:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account552' WHERE `accounts`.`id` = 552 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (552, 213) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691ba5fb5_197580435d4898119@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 213)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 552 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 756  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/552/user/213/roles" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"552", "user_id"=>"213"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 213 AND `account_users`.`account_id` = 552 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND `accounts`.`id` = 552 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 Completed 200 OK in 26ms (Views: 13.1ms | ActiveRecord: 3.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:38', '2012-11-28 22:35:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:38', 'User', 'cbdbc0b485dd062411e1f5ac2bb4f866', 214, 'User', '2012-11-28 22:35:38') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account553' WHERE `accounts`.`id` = 553 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (553, 214) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691ba20a5a_197580435d48982d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 214)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 553 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 758  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/553/user/214/roles" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"553", "user_id"=>"214"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 214 AND `account_users`.`account_id` = 553 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND `accounts`.`id` = 553 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 Completed 200 OK in 26ms (Views: 13.3ms | ActiveRecord: 3.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:38', '2012-11-28 22:35:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:38') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:38', 'User', 'a419dc9cac0e316305a5eb591169c351', 215, 'User', '2012-11-28 22:35:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account554' WHERE `accounts`.`id` = 554 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (554, 215) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691ba3b602_197580435d4898377@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 215)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 554 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 760  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/554/user/215/roles" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"554", "user_id"=>"215"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 215 AND `account_users`.`account_id` = 554 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND `accounts`.`id` = 554 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 Completed 200 OK in 125ms (Views: 13.6ms | ActiveRecord: 4.4ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:38', '2012-11-28 22:35:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:38') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:38', 'User', '4825996f227dbcb3dcddcdac7df38f6c', 216, 'User', '2012-11-28 22:35:38') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account555' WHERE `accounts`.`id` = 555 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (555, 216) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691ba6fd9c_197580435d48984e0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 216)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:38', 'notowner@account.test', '$2a$04$yLfvAAA.er.jVF1ms4kREeuXke2GNIhNse82z3xdZrglZHu5wgSoK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:38', 'User', '7a5764e4b34ceb69886d576df1dce40f', 217, 'User', '2012-11-28 22:35:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account556' WHERE `accounts`.`id` = 556 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 556 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (556, 217) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691ba812a5_197580435d4898573@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', 'jabanilson', NULL, 1, '2012-11-28 22:35:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account557' WHERE `accounts`.`id` = 557  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (557, 217) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 555 WHERE `account_users`.`id` = 367  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 555 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 761 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 762  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/555/user/216/roles" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"555", "user_id"=>"216"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 216 AND `account_users`.`account_id` = 555 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND `accounts`.`id` = 555 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 Completed 200 OK in 27ms (Views: 14.1ms | ActiveRecord: 4.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:38', '2012-11-28 22:35:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:38') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:38', 'User', 'a91387ff6d8787bca2d7507ec8469a29', 218, 'User', '2012-11-28 22:35:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account558' WHERE `accounts`.`id` = 558 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (558, 218) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691ba9aedf_197580435d4898677@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 218)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:38', 'notowner@account.test', '$2a$04$IADORFRVx5NiCCxR4WoNJOg1M7vUyYTZ.ppgkDL2PhmH87hPqjPX.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:38', 'User', '1f4551cb36def920b966691c8aa820c9', 219, 'User', '2012-11-28 22:35:38') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account559' WHERE `accounts`.`id` = 559 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (559, 219) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691baab6df_197580435d489872b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', 'jabanilson', NULL, 1, '2012-11-28 22:35:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account560' WHERE `accounts`.`id` = 560  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (560, 219) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 558 WHERE `account_users`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 558 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 768 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 769  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/558/user/218/roles" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"558", "user_id"=>"218"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 218 AND `account_users`.`account_id` = 558 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND `accounts`.`id` = 558 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 Completed 200 OK in 27ms (Views: 13.8ms | ActiveRecord: 4.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:38', '2012-11-28 22:35:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:38', 'User', 'adfa46f775c7d9283a00b724d573a922', 220, 'User', '2012-11-28 22:35:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account561' WHERE `accounts`.`id` = 561 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (561, 220) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691badd02e_197580435d489881e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 220)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 151ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:38', 'notowner@account.test', '$2a$04$hyfSuj77yYA.anx2.sgIA.wcI52I.p.EPWr1DJe7HZ85ZEbVAEl82', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:38', 'User', 'a369e68ba2a8ab7a15f77993395c8ed5', 221, 'User', '2012-11-28 22:35:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', NULL, NULL, NULL, '2012-11-28 22:35:38')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account562' WHERE `accounts`.`id` = 562 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (562, 221) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:35:38 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691baed1bb_197580435d4898994@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:38', 'jabanilson', NULL, 1, '2012-11-28 22:35:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:38', `updated_at` = '2012-11-28 22:35:38', `subdomain` = 'account563' WHERE `accounts`.`id` = 563  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (563, 221) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 561 WHERE `account_users`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 561 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 775 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 776  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/561/user/220/roles" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"561", "user_id"=>"220"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 220 AND `account_users`.`account_id` = 561 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND `accounts`.`id` = 561 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 Completed 200 OK in 26ms (Views: 14.2ms | ActiveRecord: 3.3ms)  (8.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:39', '2012-11-28 22:35:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:39') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:39', 'User', 'd92e8b7868b4671da0f4cd7070ceca8e', 222, 'User', '2012-11-28 22:35:39') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', NULL, NULL, NULL, '2012-11-28 22:35:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account564' WHERE `accounts`.`id` = 564 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (564, 222) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:35:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bb15993_197580435d4899071@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 222)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:39', 'notowner@account.test', '$2a$04$UM7nCeOc9bGexug.eLGYde.4x62lkJU6sUk.q0cZpDjwUfKbu6xVq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:39', 'User', '45b5a74b624a3ffcfb0a7171015de472', 223, 'User', '2012-11-28 22:35:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', NULL, NULL, NULL, '2012-11-28 22:35:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account565' WHERE `accounts`.`id` = 565 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 565 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (565, 223) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:35:39 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691bb267b1_197580435d4899196@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', 'jabanilson', NULL, 1, '2012-11-28 22:35:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account566' WHERE `accounts`.`id` = 566  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (566, 223) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 564 WHERE `account_users`.`id` = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 564 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 782 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 783  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/564/user/222/roles" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"564", "user_id"=>"222"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 222 AND `account_users`.`account_id` = 564 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND `accounts`.`id` = 564 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 Completed 200 OK in 27ms (Views: 14.1ms | ActiveRecord: 4.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:39', '2012-11-28 22:35:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:39', 'User', '7a60e6dfeba3a29f2e458f2009d4828e', 224, 'User', '2012-11-28 22:35:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', NULL, NULL, NULL, '2012-11-28 22:35:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account567' WHERE `accounts`.`id` = 567 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 567 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (567, 224) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bb57402_197580435d48992be@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 224)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 147ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 224 AND `account_users`.`account_id` = 567 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (377) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (567) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Completed 200 OK in 18ms (Views: 14.2ms | ActiveRecord: 2.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:39', '2012-11-28 22:35:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:39', 'User', '377006216832596af03bb4ee64035203', 225, 'User', '2012-11-28 22:35:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', NULL, NULL, NULL, '2012-11-28 22:35:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account568' WHERE `accounts`.`id` = 568 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (568, 225) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bb6d13b_197580435d48993a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 225)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 2.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:39', '2012-11-28 22:35:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:39', 'User', '1b2a5473e54a5a0b2261fe7167ef4288', 226, 'User', '2012-11-28 22:35:39') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', NULL, NULL, NULL, '2012-11-28 22:35:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account569' WHERE `accounts`.`id` = 569 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 569 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (569, 226) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bb85ad5_197580435d48994ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 226)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 1.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 2.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:39', '2012-11-28 22:35:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:39') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:39', 'User', 'e86de7d3b63cf5b7d9ebc62aa0d3d2aa', 227, 'User', '2012-11-28 22:35:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', NULL, NULL, NULL, '2012-11-28 22:35:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account570' WHERE `accounts`.`id` = 570 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 570 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (570, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:35:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bb9f16a_197580435d48995e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 227)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 Completed 200 OK in 103ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:39', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 380\n account_id: 570\n user_id: 227\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_380_destroy', '2012-11-28 22:35:39', '2012-11-28 22:35:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', 'jabanilson', NULL, 1, '2012-11-28 22:35:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account571' WHERE `accounts`.`id` = 571  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (571, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 2.4ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:39', '2012-11-28 22:35:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:39', 'User', '3fdcf181839df843599373330f294d56', 228, 'User', '2012-11-28 22:35:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', NULL, NULL, NULL, '2012-11-28 22:35:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account572' WHERE `accounts`.`id` = 572 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 572 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (572, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bbdab94_197580435d4899625@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 228)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 1.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:39', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 382\n account_id: 572\n user_id: 228\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_382_destroy', '2012-11-28 22:35:39', '2012-11-28 22:35:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', 'jabanilson', NULL, 1, '2012-11-28 22:35:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account573' WHERE `accounts`.`id` = 573  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (573, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:39', 'jabanilson', NULL, 1, '2012-11-28 22:35:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:39', `updated_at` = '2012-11-28 22:35:39', `subdomain` = 'account574' WHERE `accounts`.`id` = 574  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (574, 228) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:39 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 2.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:40', '2012-11-28 22:35:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:40') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:40', 'User', 'ed9fc3ed5ba1ea680e1809849eab729f', 229, 'User', '2012-11-28 22:35:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', NULL, NULL, NULL, '2012-11-28 22:35:40')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account575' WHERE `accounts`.`id` = 575 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 575 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (575, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:35:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bcc81f_197580435d489976f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 229)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 1.9ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 1.9ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:40', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 385\n account_id: 575\n user_id: 229\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_385_destroy', '2012-11-28 22:35:40', '2012-11-28 22:35:40')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', 'jabanilson', NULL, 1, '2012-11-28 22:35:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account576' WHERE `accounts`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (576, 229) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', 'jabanilson', NULL, 1, '2012-11-28 22:35:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account577' WHERE `accounts`.`id` = 577  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (577, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 2.2ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:40', '2012-11-28 22:35:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:40') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:40', 'User', '5609f433bb177c9e459cd7e0243b73be', 230, 'User', '2012-11-28 22:35:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', NULL, NULL, NULL, '2012-11-28 22:35:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account578' WHERE `accounts`.`id` = 578 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 578 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (578, 230) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:35:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bc4ba0b_197580435d48998f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 230)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 230 AND `account_users`.`account_id` = 578 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (388) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (578) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', 'jabanilson', NULL, 1, '2012-11-28 22:35:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account579' WHERE `accounts`.`id` = 579  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (579, 230) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/579" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"579"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND `accounts`.`id` = 579 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 579 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 579 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_579_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 40ms (Views: 32.1ms | ActiveRecord: 4.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:40', '2012-11-28 22:35:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:40') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:40', 'User', '614f5fad6fb04f77e50de4888b3ac7a6', 231, 'User', '2012-11-28 22:35:40') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', NULL, NULL, NULL, '2012-11-28 22:35:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account580' WHERE `accounts`.`id` = 580 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 580 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (580, 231) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:35:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bc6fca8_197580435d48999e5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 231)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 231 AND `account_users`.`account_id` = 580 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (390) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (580) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', 'jabanilson', NULL, 1, '2012-11-28 22:35:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account581' WHERE `accounts`.`id` = 581  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (581, 231) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/581" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"581"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND `accounts`.`id` = 581 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 581 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 581 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_581_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 30ms (Views: 22.6ms | ActiveRecord: 3.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:40', '2012-11-28 22:35:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:40', 'User', '17c709654527dddd75785e156eeb2465', 232, 'User', '2012-11-28 22:35:40') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', NULL, NULL, NULL, '2012-11-28 22:35:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account582' WHERE `accounts`.`id` = 582 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 582 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (582, 232) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bca9fad_197580435d48100047@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 232)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 155ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 232 AND `account_users`.`account_id` = 582 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (392) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (582) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', 'jabanilson', NULL, 1, '2012-11-28 22:35:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account583' WHERE `accounts`.`id` = 583  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (583, 232) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 583 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 822  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/583" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"583"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND `accounts`.`id` = 583 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 583 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 583 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_583_destroy' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 3.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:40', '2012-11-28 22:35:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:40') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:40', 'User', '9d67893a6e9ad942402d22f142c96335', 233, 'User', '2012-11-28 22:35:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', NULL, NULL, NULL, '2012-11-28 22:35:40')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account584' WHERE `accounts`.`id` = 584 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 584 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (584, 233) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bccc05f_197580435d4810014e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 233)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 233 AND `account_users`.`account_id` = 584 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (394) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (584) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', 'jabanilson', NULL, 1, '2012-11-28 22:35:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account585' WHERE `accounts`.`id` = 585  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (585, 233) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 585 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 827  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/585" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"585"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND `accounts`.`id` = 585 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 585 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 585 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_585_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 30ms (Views: 22.8ms | ActiveRecord: 3.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:40', '2012-11-28 22:35:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:40', 'User', '1b494e7a52e916ea9c38afcaad95c8fe', 234, 'User', '2012-11-28 22:35:40') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:40', NULL, NULL, NULL, '2012-11-28 22:35:40')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:40', `updated_at` = '2012-11-28 22:35:40', `subdomain` = 'account586' WHERE `accounts`.`id` = 586 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 586 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (586, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bcee6ff_197580435d481002e8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 234)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 234 AND `account_users`.`account_id` = 586 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (396) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (586) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 2.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', 'jabanilson', NULL, 1, '2012-11-28 22:35:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account587' WHERE `accounts`.`id` = 587  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (587, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 587 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 831  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/587" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"587"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND `accounts`.`id` = 587 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 587 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 587 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_587_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 30ms (Views: 22.5ms | ActiveRecord: 3.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:41', '2012-11-28 22:35:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:41') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:41', 'User', 'b1ed62d62ffea40564a325a261063207', 235, 'User', '2012-11-28 22:35:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', NULL, NULL, NULL, '2012-11-28 22:35:41')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account588' WHERE `accounts`.`id` = 588 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 588 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (588, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:41 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bd35707_197580435d48100328@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 235)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 235 AND `account_users`.`account_id` = 588 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (398) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (588) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', 'jabanilson', NULL, 1, '2012-11-28 22:35:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account589' WHERE `accounts`.`id` = 589  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (589, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 589 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 835  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/589" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"589"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND `accounts`.`id` = 589 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 589 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 589 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_589_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 31ms (Views: 23.1ms | ActiveRecord: 3.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:41', '2012-11-28 22:35:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:41', 'User', '7a84856fc5c469e0bf6ebcf4b05d4b5f', 236, 'User', '2012-11-28 22:35:41') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', NULL, NULL, NULL, '2012-11-28 22:35:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account590' WHERE `accounts`.`id` = 590 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 590 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (590, 236) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:41 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bd57add_197580435d48100462@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 236)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 236 AND `account_users`.`account_id` = 590 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (400) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (590) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', 'jabanilson', NULL, 1, '2012-11-28 22:35:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account591' WHERE `accounts`.`id` = 591  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (591, 236) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 591 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 839  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/591" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"591"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND `accounts`.`id` = 591 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 591 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 591 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_591_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 132ms (Views: 124.2ms | ActiveRecord: 4.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:41', '2012-11-28 22:35:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:41') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:41', 'User', '81e8bcaa86e92d09cf391e8fe2d5ca4e', 237, 'User', '2012-11-28 22:35:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', NULL, NULL, NULL, '2012-11-28 22:35:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account592' WHERE `accounts`.`id` = 592 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 592 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (592, 237) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:41 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bd9335b_197580435d481005cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 237)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 237 AND `account_users`.`account_id` = 592 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (402) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (592) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 1.8ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', 'jabanilson', NULL, 1, '2012-11-28 22:35:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account593' WHERE `accounts`.`id` = 593  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (593, 237) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 593 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 843  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 30ms (Views: 22.7ms | ActiveRecord: 3.8ms) Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 31ms (Views: 23.2ms | ActiveRecord: 3.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:41', '2012-11-28 22:35:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:41') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:41', 'User', '49962504fef93135562dc3401ad20f0d', 238, 'User', '2012-11-28 22:35:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', NULL, NULL, NULL, '2012-11-28 22:35:41')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account594' WHERE `accounts`.`id` = 594 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 594 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (594, 238) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:41 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bdbe1f1_197580435d48100621@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 238)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 238 AND `account_users`.`account_id` = 594 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (404) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (594) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 1.6ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:41', 'jabanilson', NULL, 1, '2012-11-28 22:35:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:41', `updated_at` = '2012-11-28 22:35:41', `subdomain` = 'account595' WHERE `accounts`.`id` = 595  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (595, 238) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 595 AND name = 'owner') SQL (0.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 847  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 30ms (Views: 22.8ms | ActiveRecord: 3.9ms) Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 20:35:41 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 133ms (Views: 23.1ms | ActiveRecord: 3.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:42', '2012-11-28 22:35:42', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:42', 'User', '8dec71a0ebe86de060488cd28709b14e', 239, 'User', '2012-11-28 22:35:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', NULL, NULL, NULL, '2012-11-28 22:35:42')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account596' WHERE `accounts`.`id` = 596 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 596 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (596, 239) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:42 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bedc7f_197580435d481007cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 239)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 1.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', 'jabanilson', NULL, 1, '2012-11-28 22:35:42')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account597' WHERE `accounts`.`id` = 597  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (597, 239) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 597 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 851  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 30ms (Views: 23.1ms | ActiveRecord: 3.7ms) Started DELETE "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"597"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 597 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 597\n created_at: 2012-11-28 22:35:42.000000000Z\n updated_at: 2012-11-28 22:35:42.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account597\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_597_destroy', '2012-11-28 22:35:42', '2012-11-28 22:35:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 13ms (ActiveRecord: 2.8ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.1ms) Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 31ms (Views: 23.1ms | ActiveRecord: 3.8ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:42', '2012-11-28 22:35:42', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:42', 'User', '86949b4a2558f483f86045c666060bef', 240, 'User', '2012-11-28 22:35:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', NULL, NULL, NULL, '2012-11-28 22:35:42')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account598' WHERE `accounts`.`id` = 598 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 598 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (598, 240) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:42 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691be5e9d6_197580435d48100887@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 240)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 148ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', 'jabanilson', NULL, 1, '2012-11-28 22:35:42')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account599' WHERE `accounts`.`id` = 599  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (599, 240) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 599 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 855  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 32ms (Views: 23.8ms | ActiveRecord: 3.9ms) Started DELETE "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 599 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 599\n created_at: 2012-11-28 22:35:42.000000000Z\n updated_at: 2012-11-28 22:35:42.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account599\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_599_destroy', '2012-11-29 22:35:42', '2012-11-28 22:35:42')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 13ms (ActiveRecord: 3.0ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 15ms (Views: 10.6ms | ActiveRecord: 2.2ms) Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 31ms (Views: 23.4ms | ActiveRecord: 3.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:42', '2012-11-28 22:35:42', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:42') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:42', 'User', '002eb3a3ce5e6cc3e5876906b62ad50b', 241, 'User', '2012-11-28 22:35:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', NULL, NULL, NULL, '2012-11-28 22:35:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account600' WHERE `accounts`.`id` = 600 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 600 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (600, 241) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:42 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691be92e5f_197580435d4810093b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 241)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 241 AND `account_users`.`account_id` = 600 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (410) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (600) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 1.6ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', 'jabanilson', NULL, 1, '2012-11-28 22:35:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account601' WHERE `accounts`.`id` = 601  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (601, 241) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:42', 'notowner@account.test', '$2a$04$TrwNTngPzlBFKL5F4O8bx.bgV8jxsm53NKNFdoEqkvjcy73CeUut2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:42') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:42', 'User', 'a8c40b6aa81b8780b42a18139acdd84c', 242, 'User', '2012-11-28 22:35:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', NULL, NULL, NULL, '2012-11-28 22:35:42')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account602' WHERE `accounts`.`id` = 602 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 602 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (602, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:35:42 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691beaa41c_197580435d48101012@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', 'jabanilson', NULL, 1, '2012-11-28 22:35:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account603' WHERE `accounts`.`id` = 603  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (603, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 601 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 601 WHERE `account_users`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 601 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 858 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 859  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/601" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"601"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND `accounts`.`id` = 601 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 601 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 134ms (Views: 126.4ms | ActiveRecord: 3.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:42', '2012-11-28 22:35:42', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:42') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:42', 'User', '94a5a55c47198bafd1f09800bf828381', 243, 'User', '2012-11-28 22:35:42') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', NULL, NULL, NULL, '2012-11-28 22:35:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account604' WHERE `accounts`.`id` = 604 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 604 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (604, 243) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:35:42 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691beddc72_197580435d4810119@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 243)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:42 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 243 AND `account_users`.`account_id` = 604 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (414) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (604) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', 'jabanilson', NULL, 1, '2012-11-28 22:35:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account605' WHERE `accounts`.`id` = 605  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (605, 243) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:42', 'notowner@account.test', '$2a$04$VC1OY03aAWl3Cws8yeDsUu9s3XevsyDAV8AHN4TnEG3WxzfMKL.LO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:42', 'User', '566a862e56c76942096f061ee21b3419', 244, 'User', '2012-11-28 22:35:42') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:42', NULL, NULL, NULL, '2012-11-28 22:35:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:42', `updated_at` = '2012-11-28 22:35:42', `subdomain` = 'account606' WHERE `accounts`.`id` = 606 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 606 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (606, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:35:43 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691bf752_197580435d4810123f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', 'jabanilson', NULL, 1, '2012-11-28 22:35:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account607' WHERE `accounts`.`id` = 607  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (607, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 605 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 605 WHERE `account_users`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 605 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 867 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 868  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/605" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"605"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND `accounts`.`id` = 605 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 605 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 29ms (Views: 22.4ms | ActiveRecord: 3.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:43', '2012-11-28 22:35:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:43') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:43', 'User', '2d301bc7d41e43f43dfe95b8ee2d4c69', 245, 'User', '2012-11-28 22:35:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', NULL, NULL, NULL, '2012-11-28 22:35:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account608' WHERE `accounts`.`id` = 608 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 608 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (608, 245) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:43 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bf19e86_197580435d48101337@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 245)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 245 AND `account_users`.`account_id` = 608 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (418) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (608) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', 'jabanilson', NULL, 1, '2012-11-28 22:35:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account609' WHERE `accounts`.`id` = 609  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (609, 245) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:43', 'notowner@account.test', '$2a$04$Egn.FyF.DdJPC1.8qz1Xfe1bDIeFjV7Otja7Uv2GgcL81FOEBnvUi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:43', 'User', 'cb60d9b85c4dfed39b078c31098e4175', 246, 'User', '2012-11-28 22:35:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', NULL, NULL, NULL, '2012-11-28 22:35:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account610' WHERE `accounts`.`id` = 610 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 610 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (610, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:35:43 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691bf30d9c_197580435d48101476@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', 'jabanilson', NULL, 1, '2012-11-28 22:35:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account611' WHERE `accounts`.`id` = 611  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (611, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 609 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 609 WHERE `account_users`.`id` = 421  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 609 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 876 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 877  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/609" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"609"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND `accounts`.`id` = 609 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 609 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 135ms (Views: 21.6ms | ActiveRecord: 3.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:43', '2012-11-28 22:35:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:43', 'User', '303a21ad3985317b64624103c3c230d0', 247, 'User', '2012-11-28 22:35:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', NULL, NULL, NULL, '2012-11-28 22:35:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account612' WHERE `accounts`.`id` = 612 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 612 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (612, 247) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:43 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bf643ac_197580435d481015bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 247)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 247 AND `account_users`.`account_id` = 612 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (422) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (612) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 1.8ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', 'jabanilson', NULL, 1, '2012-11-28 22:35:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account613' WHERE `accounts`.`id` = 613  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (613, 247) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:43', 'notowner@account.test', '$2a$04$mfEt.PcBJhvDSYr/KrbUseqcy/V91Z.YFOM23Y6yVk6zNKjoFRnia', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:43') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:43', 'User', '7ff4a05b2fb3da115c558a452561a136', 248, 'User', '2012-11-28 22:35:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', NULL, NULL, NULL, '2012-11-28 22:35:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account614' WHERE `accounts`.`id` = 614 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 614 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (614, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:35:43 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691bf7b1b7_197580435d48101647@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', 'jabanilson', NULL, 1, '2012-11-28 22:35:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account615' WHERE `accounts`.`id` = 615  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (615, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 613 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 613 WHERE `account_users`.`id` = 425  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 613 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 885 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 886  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/613" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"613"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND `accounts`.`id` = 613 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 613 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 28ms (Views: 21.2ms | ActiveRecord: 3.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:43', '2012-11-28 22:35:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:43', 'User', 'cf6cb983840c7e1d0cd13231353ebed9', 249, 'User', '2012-11-28 22:35:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', NULL, NULL, NULL, '2012-11-28 22:35:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account616' WHERE `accounts`.`id` = 616 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 616 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (616, 249) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:43 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bf9471b_197580435d4810172@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 249)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 249 AND `account_users`.`account_id` = 616 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (426) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (616) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 1.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', 'jabanilson', NULL, 1, '2012-11-28 22:35:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account617' WHERE `accounts`.`id` = 617  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (617, 249) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/617" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"617"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND `accounts`.`id` = 617 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 617 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 617 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_617_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 27ms (Views: 20.2ms | ActiveRecord: 3.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:43', '2012-11-28 22:35:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:43', 'User', 'c4a46b906754b10b0105b3361a55d9c5', 250, 'User', '2012-11-28 22:35:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', NULL, NULL, NULL, '2012-11-28 22:35:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account618' WHERE `accounts`.`id` = 618 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 618 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (618, 250) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:43 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691bfceff2_197580435d48101816@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 250)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 250 AND `account_users`.`account_id` = 618 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (428) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (618) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 1.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', 'jabanilson', NULL, 1, '2012-11-28 22:35:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account619' WHERE `accounts`.`id` = 619  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (619, 250) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/619" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"619"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND `accounts`.`id` = 619 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 619 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_619_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 25ms (Views: 17.9ms | ActiveRecord: 3.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:43', 'teste@teste.com', '$2a$04$bdqLxea2mnS21HhAaizoLubEZupBas2/on8XU050TnsmzAVeSmwyS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:43', 'User', '192e2caa56a7467297281a1ac92ead42', 251, 'User', '2012-11-28 22:35:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', NULL, NULL, NULL, '2012-11-28 22:35:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account620' WHERE `accounts`.`id` = 620 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 620 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (620, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691bfee26a_197580435d4810194e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:43', '2012-11-28 22:35:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:43', 'User', '73b604cd7999a6fd72e0bac605fa254e', 252, 'User', '2012-11-28 22:35:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:43', NULL, NULL, NULL, '2012-11-28 22:35:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:43', `updated_at` = '2012-11-28 22:35:43', `subdomain` = 'account621' WHERE `accounts`.`id` = 621 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 252) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:44 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c050af_197580435d481020ce@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 252)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 904 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 905  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 903  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Started GET "/settings/account/621/users" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"621"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_621_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431, 432) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_431_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 251 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_432_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 Completed 200 OK in 36ms (Views: 27.5ms | ActiveRecord: 5.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:44', 'teste@teste.com', '$2a$04$4j6B15CublHhFer74Pi6jObrKNmyPJfywSkuWmbTWALUScctJSEGC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:44', 'User', 'a55d6f8173f46740276ebefb6eb21441', 253, 'User', '2012-11-28 22:35:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:44', NULL, NULL, NULL, '2012-11-28 22:35:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:44', `updated_at` = '2012-11-28 22:35:44', `subdomain` = 'account622' WHERE `accounts`.`id` = 622 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 622 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (622, 253) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c026c53_197580435d481021ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:44', '2012-11-28 22:35:44', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:44', 'User', '0b80838ff54e4c6b87cc7a1cec675d02', 254, 'User', '2012-11-28 22:35:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:44', NULL, NULL, NULL, '2012-11-28 22:35:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:44', `updated_at` = '2012-11-28 22:35:44', `subdomain` = 'account623' WHERE `accounts`.`id` = 623 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 254) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:44 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c04b211_197580435d481022ee@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 254)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 153ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 253) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 911 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 912  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 910  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Started GET "/settings/account/623/users" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"623"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_623_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434, 435) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_434_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 253 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_435_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 Completed 200 OK in 33ms (Views: 24.7ms | ActiveRecord: 4.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:44', 'teste@teste.com', '$2a$04$GlnRR5e8URId6zQStAsqz.bTT2LtyI2oqJccffmAaOfsCdApXBeLS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:44', 'User', 'e1485cc20390e4033f8f7c40f0cceb2e', 255, 'User', '2012-11-28 22:35:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:44', NULL, NULL, NULL, '2012-11-28 22:35:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:44', `updated_at` = '2012-11-28 22:35:44', `subdomain` = 'account624' WHERE `accounts`.`id` = 624 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 624 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (624, 255) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c06bd18_197580435d48102333@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:44', '2012-11-28 22:35:44', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:44', 'User', 'a31af970787ad0b1ed3e9ad446132ee5', 256, 'User', '2012-11-28 22:35:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:44', NULL, NULL, NULL, '2012-11-28 22:35:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:44', `updated_at` = '2012-11-28 22:35:44', `subdomain` = 'account625' WHERE `accounts`.`id` = 625 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 256) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:44 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c077273_197580435d481024e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 256)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 255) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 918 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 919  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 917  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Started GET "/settings/account/625/users" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"625"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_625_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437, 438) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_437_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 255 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_438_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 Completed 200 OK in 32ms (Views: 23.5ms | ActiveRecord: 4.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:44', 'teste@teste.com', '$2a$04$YOYapGQqjfzJ4zfmIvD9GunFSAhGfzVbAhvB.1plfCCL7HeQSQkYu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:44', 'User', '283999bcfcea5852de27613f33255986', 257, 'User', '2012-11-28 22:35:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:44', NULL, NULL, NULL, '2012-11-28 22:35:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:44', `updated_at` = '2012-11-28 22:35:44', `subdomain` = 'account626' WHERE `accounts`.`id` = 626 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 626 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (626, 257) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c09839f_197580435d48102588@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:44', '2012-11-28 22:35:44', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:44', 'User', '6968df0098dad28f32a030b3191f3900', 258, 'User', '2012-11-28 22:35:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:44', NULL, NULL, NULL, '2012-11-28 22:35:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:44', `updated_at` = '2012-11-28 22:35:44', `subdomain` = 'account627' WHERE `accounts`.`id` = 627 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 258) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:44 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c0bd204_197580435d48102611@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 258)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 155ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 257) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 925 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 926  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 924  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Started GET "/settings/account/627/users" for 127.0.0.1 at 2012-11-28 20:35:44 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"627"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_627_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440, 441) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_440_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 257 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_441_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 Completed 200 OK in 32ms (Views: 23.8ms | ActiveRecord: 5.2ms)  (73.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:44', 'teste@teste.com', '$2a$04$IKnGAKHcFQZ/tc6deAE5v.efCc1G9GNR.WhPpuzfc7F9eFeZUQMJ2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:44', 'User', '2f7c53d975d20e8553c2745d3400214f', 259, 'User', '2012-11-28 22:35:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:44', NULL, NULL, NULL, '2012-11-28 22:35:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:44', `updated_at` = '2012-11-28 22:35:44', `subdomain` = 'account628' WHERE `accounts`.`id` = 628 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 628 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (628, 259) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c1be1_197580435d48102794@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:45', '2012-11-28 22:35:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', '8bc1ecd8d45a05295a7c5c9e02c2058a', 260, 'User', '2012-11-28 22:35:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account629' WHERE `accounts`.`id` = 629 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 260) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c1b97b_197580435d48102881@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 260)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 259) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629)  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 932 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 933  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 931  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Started GET "/settings/account/629/users" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"629"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_629_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443, 444) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_443_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 259 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_444_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 Completed 200 OK in 32ms (Views: 23.7ms | ActiveRecord: 5.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:45', 'teste@teste.com', '$2a$04$JM3NnL4PBRG.QmQLer5mNugzUMHBU4mwjRS0NUKIOcGTJ0chubBmO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', '8fce4efef995bc2def227b13aed296fd', 261, 'User', '2012-11-28 22:35:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account630' WHERE `accounts`.`id` = 630 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 630 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (630, 261) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c12cd33_197580435d481029de@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:45', '2012-11-28 22:35:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', 'e0b5adaa6e8d72827afaa7d26ff4b301', 262, 'User', '2012-11-28 22:35:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account631' WHERE `accounts`.`id` = 631 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 262) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c151ab0_197580435d48103060@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 262)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 155ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 261) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 940 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 941  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 939  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Started GET "/settings/account/631/users" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"631"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_631_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446, 447) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_446_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 261 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_447_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 Completed 200 OK in 32ms (Views: 23.9ms | ActiveRecord: 4.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:45', 'teste@teste.com', '$2a$04$xye0Z/c.j1zZjpf7ZYtjYeh.OUKqGtaNzP9L4R.eJYHfnysDCwEuC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', '8e77013b89e77cf6d06218326b2fa67b', 263, 'User', '2012-11-28 22:35:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account632' WHERE `accounts`.`id` = 632 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 632 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (632, 263) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c1725bd_197580435d48103142@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:45', '2012-11-28 22:35:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', '4278cd843b07427c6884f3246202d5f0', 264, 'User', '2012-11-28 22:35:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account633' WHERE `accounts`.`id` = 633 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 264) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c17d4d4_197580435d48103253@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 264)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 263) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 948 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 949  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 947  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Started GET "/settings/account/633/users" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"633"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_633_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449, 450) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_449_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 263 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_450_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 Completed 200 OK in 33ms (Views: 24.3ms | ActiveRecord: 4.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:45', 'teste@teste.com', '$2a$04$BQCKXfPs0AGF8ZBWHXWrFOG9SgDKSTBJ67wCy3VRMnq/MFPKsm0yK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', '107a353580ed94504015af59d5a3f70f', 265, 'User', '2012-11-28 22:35:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account634' WHERE `accounts`.`id` = 634 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 634 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (634, 265) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c19e9d6_197580435d4810337d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:45', '2012-11-28 22:35:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', '6c40b8edbc0b24bbb8ce0a36738a1eb7', 266, 'User', '2012-11-28 22:35:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account635' WHERE `accounts`.`id` = 635 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 266) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin') Sent mail to facebook@test.test (114ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c1c3e59_197580435d481034fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 266)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 156ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 265) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 956 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 957  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 955  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Started GET "/settings/account/635/users" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"635"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_635_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452, 453) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_452_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 265 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_453_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 Completed 200 OK in 32ms (Views: 23.6ms | ActiveRecord: 5.0ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:45', 'teste@teste.com', '$2a$04$cWc8U6w2ph/bW20cCCoXB.SxEzgt.BdvS4wo.9.obP.5vf/9jBXIa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', '89684be30067b2a7736fa0cd1bf764aa', 267, 'User', '2012-11-28 22:35:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account636' WHERE `accounts`.`id` = 636 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 636 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (636, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c1e4bf0_197580435d481035cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:45', '2012-11-28 22:35:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:45', 'User', 'f07a21b6946961050c1e6ba4882f7b9c', 268, 'User', '2012-11-28 22:35:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:45', NULL, NULL, NULL, '2012-11-28 22:35:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:45', `updated_at` = '2012-11-28 22:35:45', `subdomain` = 'account637' WHERE `accounts`.`id` = 637 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 268) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:45 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c1efb00_197580435d48103655@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 268)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:46', 'notowner@account.test', '$2a$04$BDLafxHUYC1uLeZgMPL5H.XICrROfW3KvXyU/jwx1fNGFddmZ3eRi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', 'fdfd1940e2f5118fa3ebc7475cfb9521', 269, 'User', '2012-11-28 22:35:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account638' WHERE `accounts`.`id` = 638 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 638 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (638, 269) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691c2a5a0_197580435d481037b7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', 'jabanilson', NULL, 1, '2012-11-28 22:35:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account639' WHERE `accounts`.`id` = 639  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (639, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 637 WHERE `account_users`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 968 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 969  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 962 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 963  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Started GET "/settings/account/637/users" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"637"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_637_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455, 457, 458) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 269 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 Completed 200 OK in 45ms (Views: 35.9ms | ActiveRecord: 4.7ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:46', 'teste@teste.com', '$2a$04$G3kJQzMSxYpM9k0LZ1vgxusBoTRmlqSSrEU77wlxQVhSmQlIzwOC2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', '08584d56a1d27472b31cdca85a2f491e', 270, 'User', '2012-11-28 22:35:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account640' WHERE `accounts`.`id` = 640 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 640 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (640, 270) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c22c97c_197580435d48103866@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:46', '2012-11-28 22:35:46', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', '2e068fd916dfed171e4a980ba2fb5435', 271, 'User', '2012-11-28 22:35:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account641' WHERE `accounts`.`id` = 641 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 271) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c253de4_197580435d481039c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 271)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 164ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:46', 'notowner@account.test', '$2a$04$7tXe9pQkYz2o8VanR4aBHOu/0Z78LEYeI6iczyJymWraRJuj9vbAm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', 'fcce161dddce8f40209407087fbc6a24', 272, 'User', '2012-11-28 22:35:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account642' WHERE `accounts`.`id` = 642 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 642 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (642, 272) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691c262ef7_197580435d48104022@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', 'jabanilson', NULL, 1, '2012-11-28 22:35:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account643' WHERE `accounts`.`id` = 643  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (643, 272) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 641 WHERE `account_users`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 270) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 980 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 981  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 974 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 975  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Started GET "/settings/account/641/users" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"641"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_641_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460, 462, 463) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 272 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 Completed 200 OK in 46ms (Views: 37.4ms | ActiveRecord: 4.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:46', 'teste@teste.com', '$2a$04$mkN45nXywvNp2xZ5hFyDqu3UrU0YEQsELgdbzcJ8RhHVZDWa6j5qS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', 'e285a2df48452ae1ff2390a4520ec907', 273, 'User', '2012-11-28 22:35:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account644' WHERE `accounts`.`id` = 644 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 644 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (644, 273) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c28718c_197580435d481041ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:46', '2012-11-28 22:35:46', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', '83bb820ee480547e9ecd1998cc24d16b', 274, 'User', '2012-11-28 22:35:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account645' WHERE `accounts`.`id` = 645 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 274) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c2922c0_197580435d4810426a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 274)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:46', 'notowner@account.test', '$2a$04$yHXeqMPj31ONmT0F20U.Iu2i9UccrS0u3e1viCiDw4oSiO63p07M.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', 'd144362858f9410f762ae90258aaf151', 275, 'User', '2012-11-28 22:35:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account646' WHERE `accounts`.`id` = 646 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 646 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (646, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691c2a23c8_197580435d48104336@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', 'jabanilson', NULL, 1, '2012-11-28 22:35:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account647' WHERE `accounts`.`id` = 647  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (647, 275) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 645 WHERE `account_users`.`id` = 467  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 273) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 992 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 993  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 986 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 987  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Started GET "/settings/account/645/users" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"645"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_645_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465, 467, 468) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 275 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 Completed 200 OK in 155ms (Views: 146.3ms | ActiveRecord: 4.7ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:46', 'teste@teste.com', '$2a$04$vrC3lSTBY.T5jn6Zz.NEvuLngL7fTCXci6a7huzVYQ7u2Rt.V2owK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', 'c231636db9180210c76408d838871255', 276, 'User', '2012-11-28 22:35:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account648' WHERE `accounts`.`id` = 648 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 648 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (648, 276) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c2df555_197580435d4810443@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:46', '2012-11-28 22:35:46', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', '8eed5fbdd182ffeeb0ed2542cc9985b0', 277, 'User', '2012-11-28 22:35:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:46', NULL, NULL, NULL, '2012-11-28 22:35:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:46', `updated_at` = '2012-11-28 22:35:46', `subdomain` = 'account649' WHERE `accounts`.`id` = 649 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 277) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:35:46 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c2ea4d5_197580435d4810453@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 277)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:46 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:46', 'notowner@account.test', '$2a$04$aUFYQFCfNFmrsmY4vZOejuHcLzOgjrdhV7HoXQBETQbzFWHIzv7me', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:46', 'User', '8734706c534759eaea8e94caa79254c2', 278, 'User', '2012-11-28 22:35:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account650' WHERE `accounts`.`id` = 650 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 650 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (650, 278) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b691c363cb_197580435d48104616@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', 'jabanilson', NULL, 1, '2012-11-28 22:35:47')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account651' WHERE `accounts`.`id` = 651  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (651, 278) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 649 WHERE `account_users`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 276) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1004 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1005  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 998 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 999  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Started GET "/settings/account/649/users" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"649"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_649_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470, 472, 473) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 278 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 Completed 200 OK in 46ms (Views: 37.6ms | ActiveRecord: 4.8ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:47', 'teste@teste.com', '$2a$04$gQPpdznItzxM9h5S1ZtPTeWPnjRU8AHKW5AX1fYtt8CqynTiJd5PS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:47', 'User', '13f8b2294cc6aa19aa6f998712429767', 279, 'User', '2012-11-28 22:35:47') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account652' WHERE `accounts`.`id` = 652 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 652 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (652, 279) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c3293b8_197580435d4810474@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:47', '2012-11-28 22:35:47', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:47', 'User', '624b2e21b32297b239cf08a5d3327f3a', 280, 'User', '2012-11-28 22:35:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account653' WHERE `accounts`.`id` = 653 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 280) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c3342e5_197580435d481048ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 280)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 279) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1012 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1013  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1010 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1011  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Started GET "/settings/account/653/users" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"653"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_653_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475, 476) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_475_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 279 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_476_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 Completed 200 OK in 33ms (Views: 24.2ms | ActiveRecord: 5.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:47', 'teste@teste.com', '$2a$04$rXpYF6A91ShhmP6sXnwUd.QRBTQyXlc6QQ00KF8W/NIt24bm2rU5O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:47', 'User', '57d1ccef309a4d9fe7c2a8ed3a29b54a', 281, 'User', '2012-11-28 22:35:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account654' WHERE `accounts`.`id` = 654 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 654 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (654, 281) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c3717b5_197580435d4810496a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:47', '2012-11-28 22:35:47', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:47', 'User', '4f477654440e70bf2c0e1c26d0696589', 282, 'User', '2012-11-28 22:35:47') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account655' WHERE `accounts`.`id` = 655 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 282) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c37c96e_197580435d4810509@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 282)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 281) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1020 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1021  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1018 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1019  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Started GET "/settings/account/655/users" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"655"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_655_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478, 479) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_478_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 281 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_479_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 Completed 200 OK in 33ms (Views: 24.0ms | ActiveRecord: 5.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:47', 'teste@teste.com', '$2a$04$UfoA03qu4kaiq3l7CeDAVOv2opWQ0FhVPPJbtGcByoTCiwQYOKLNu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:47', 'User', 'a63bf0d45aaccce2c42c14fdff062091', 283, 'User', '2012-11-28 22:35:47') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account656' WHERE `accounts`.`id` = 656 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 656 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (656, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c39e615_197580435d481051a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:47', '2012-11-28 22:35:47', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:47', 'User', 'd99e83036c1bce6c819177b72646faeb', 284, 'User', '2012-11-28 22:35:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account657' WHERE `accounts`.`id` = 657 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 284) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c3a940d_197580435d48105282@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 284)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1028 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1029  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1026 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1027  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Started GET "/settings/account/657/users" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"657"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_657_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481, 482) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_481_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 283 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_482_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 Completed 200 OK in 144ms (Views: 23.7ms | ActiveRecord: 5.3ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:47', 'teste@teste.com', '$2a$04$OKi25wTYC5coQv1hF/D.KO3fS8i/us7kP3Jhor0VV91ioscsoin5S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:47', 'User', 'c8ea5444ad47df215036be46d6148343', 285, 'User', '2012-11-28 22:35:47') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account658' WHERE `accounts`.`id` = 658 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 658 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (658, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c3e5229_197580435d481053f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:47', '2012-11-28 22:35:47', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:47', 'User', '782f28d12ed843a505eab541caea9859', 286, 'User', '2012-11-28 22:35:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:47', NULL, NULL, NULL, '2012-11-28 22:35:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:47', `updated_at` = '2012-11-28 22:35:47', `subdomain` = 'account659' WHERE `accounts`.`id` = 659 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 286) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:47 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c3f0038_197580435d48105416@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 286)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:47 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (485) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1036 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1037  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1034 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1035  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Started GET "/settings/account/659/users" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"659"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_659_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484, 485) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_484_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 285 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_485_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 Completed 200 OK in 32ms (Views: 23.3ms | ActiveRecord: 5.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:48', 'teste@teste.com', '$2a$04$X/hrTa3q2OAcZ2XENNNJEukbwmtAmVUwyyZH6sDuJtIt/Ohu1gpBG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', 'e927e062647aa8e2c417f4c06cf0fa74', 287, 'User', '2012-11-28 22:35:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account660' WHERE `accounts`.`id` = 660 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 660 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (660, 287) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c41c1bf_197580435d481055fe@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:48', '2012-11-28 22:35:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', 'c66693aa8a6207cc4132e8b6528a7eae', 288, 'User', '2012-11-28 22:35:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account661' WHERE `accounts`.`id` = 661 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (661, 288) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c4272d7_197580435d48105614@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 288)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 661 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1043  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Started GET "/settings/account/661/users" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"661"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_661_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_487_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 Completed 200 OK in 24ms (Views: 17.2ms | ActiveRecord: 3.0ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:48', 'teste@teste.com', '$2a$04$JpTUM1kPzJ9OxlrnkZs74uuXDDAlZf5e/SEB/RWf2nSYDv.h30EIK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', '769ac1c42c272a0aef436fb19f7ba1c3', 289, 'User', '2012-11-28 22:35:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account662' WHERE `accounts`.`id` = 662 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 662 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (662, 289) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c45dfdc_197580435d48105721@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:48', '2012-11-28 22:35:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', '3a77b3e43097703cf00eea6a0cc78e83', 290, 'User', '2012-11-28 22:35:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account663' WHERE `accounts`.`id` = 663 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (663, 290) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c469030_197580435d481058cb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 290)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 663 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1047  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Started GET "/settings/account/663/users" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"663"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_663_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_489_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 Completed 200 OK in 24ms (Views: 17.9ms | ActiveRecord: 3.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:48', 'teste@teste.com', '$2a$04$vNb1VO/HWiX3vWaih79uAOE2DB1CXOMPulNNaCOMJrfz2qhuQO3rK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', 'bfbea03a2616c3ff18a3d66e581cb196', 291, 'User', '2012-11-28 22:35:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account664' WHERE `accounts`.`id` = 664 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 664 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (664, 291) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c482583_197580435d4810595e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:48', '2012-11-28 22:35:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', '19f8476dee627a24f2659bf4374d6060', 292, 'User', '2012-11-28 22:35:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account665' WHERE `accounts`.`id` = 665 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (665, 292) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c48d677_197580435d481060f5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 292)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 665 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1051  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Started GET "/settings/account/665/users" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"665"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_665_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_491_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 Completed 200 OK in 23ms (Views: 16.6ms | ActiveRecord: 3.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:48', 'teste@teste.com', '$2a$04$gVzCIDe4U.ypu2kLF3zx9eZShHtYImMG5.2MckmWA.laWnkNrrRmK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', '218794388a76214cfadce4485f50991f', 293, 'User', '2012-11-28 22:35:48') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account666' WHERE `accounts`.`id` = 666 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 666 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (666, 293) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c4a70dc_197580435d481061fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:48', '2012-11-28 22:35:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', '7df04d436eb06ae56643a3f875111150', 294, 'User', '2012-11-28 22:35:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account667' WHERE `accounts`.`id` = 667 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (667, 294) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c4cf0ba_197580435d48106228@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 294)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 168ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 667 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1055  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Started GET "/settings/account/667/users" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"667"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_667_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_493_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 Completed 200 OK in 24ms (Views: 16.7ms | ActiveRecord: 3.6ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:48', 'teste@teste.com', '$2a$04$QRjEFMuf5wU3O31CwwkS6uhs0qz/oiHmjdqTLK08ztdI4MpC01t.K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', '89946d325276e31e1dee0547238604cc', 295, 'User', '2012-11-28 22:35:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account668' WHERE `accounts`.`id` = 668 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 668 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (668, 295) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c4e8353_197580435d481063c7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:48', '2012-11-28 22:35:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:48', 'User', '2ceaf97e043475f5eb40360c6132c68e', 296, 'User', '2012-11-28 22:35:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:48', NULL, NULL, NULL, '2012-11-28 22:35:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:48', `updated_at` = '2012-11-28 22:35:48', `subdomain` = 'account669' WHERE `accounts`.`id` = 669 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 296) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:48 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c4f3417_197580435d481064a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 296)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 295) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669)  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1060 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1061  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1059  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 32ms (Views: 24.2ms | ActiveRecord: 4.6ms) Started DELETE "/settings/account/669/user/295" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"669", "user_id"=>"295"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 296 AND `account_users`.`account_id` = 669 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (13.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:49', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 496\n account_id: 669\n user_id: 295\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_496_destroy', '2012-11-28 22:35:49', '2012-11-28 22:35:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/669/users Completed 302 Found in 30ms (ActiveRecord: 16.5ms) Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 4.1ms)  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (1.9ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:49', 'teste@teste.com', '$2a$04$rL4absNNI.dT1oUsO7NbluhMJnMXDhYDBbo3yIJxkgvO/DLShjl6u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:49', 'User', 'de3e3bacd07903975188f7d0f71ed405', 297, 'User', '2012-11-28 22:35:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:49', NULL, NULL, NULL, '2012-11-28 22:35:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:49', `updated_at` = '2012-11-28 22:35:49', `subdomain` = 'account670' WHERE `accounts`.`id` = 670 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 670 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (670, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:49 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c5324a4_197580435d4810655@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:49', '2012-11-28 22:35:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:49') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:49', 'User', '06d067f68a1adccbd2d536ed0a110626', 298, 'User', '2012-11-28 22:35:49') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:49', NULL, NULL, NULL, '2012-11-28 22:35:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:49', `updated_at` = '2012-11-28 22:35:49', `subdomain` = 'account671' WHERE `accounts`.`id` = 671 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 298) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:35:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c5598b1_197580435d4810666f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 298)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 168ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 297) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1067 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1068  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1066  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 32ms (Views: 23.9ms | ActiveRecord: 5.0ms) Started DELETE "/settings/account/671/user/297" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"671", "user_id"=>"297"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 298 AND `account_users`.`account_id` = 671 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:49', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 499\n account_id: 671\n user_id: 297\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_499_destroy', '2012-11-28 22:35:49', '2012-11-28 22:35:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/671/users Completed 302 Found in 17ms (ActiveRecord: 4.1ms) Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 31ms (Views: 22.8ms | ActiveRecord: 4.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:49', 'teste@teste.com', '$2a$04$xBJB3OjOBGeqESx6oGC8c.gjbFUNVExiHJMJHoR4gkNs6oF9NrT62', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:49') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:49', 'User', 'fd822b3b63a6580a02c5389bbc760af2', 299, 'User', '2012-11-28 22:35:49') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:49', NULL, NULL, NULL, '2012-11-28 22:35:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:49', `updated_at` = '2012-11-28 22:35:49', `subdomain` = 'account672' WHERE `accounts`.`id` = 672 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 672 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (672, 299) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:49 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c58973f_197580435d4810674f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:49', '2012-11-28 22:35:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:49') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:49', 'User', '3290ddb5df4d39f7ef5177076164e8f9', 300, 'User', '2012-11-28 22:35:49') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:49', NULL, NULL, NULL, '2012-11-28 22:35:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:49', `updated_at` = '2012-11-28 22:35:49', `subdomain` = 'account673' WHERE `accounts`.`id` = 673 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 300) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c59468f_197580435d4810688b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 300)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 299) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1074 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1075  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1073  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 4.8ms) Started DELETE "/settings/account/673/user/299" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"673", "user_id"=>"299"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 300 AND `account_users`.`account_id` = 673 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:49', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 502\n account_id: 673\n user_id: 299\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_502_destroy', '2012-11-29 22:35:49', '2012-11-28 22:35:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/673/users Completed 302 Found in 17ms (ActiveRecord: 3.5ms) Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 32ms (Views: 24.1ms | ActiveRecord: 4.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:49', 'teste@teste.com', '$2a$04$WqhKexyKd4DUHqfrazaEEee/OtlVBMt9lKOnDyONC.jz61dthdX3C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:49') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:49', 'User', '495a7a648e4fd6f397edf6c22d89b8be', 301, 'User', '2012-11-28 22:35:49') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:49', NULL, NULL, NULL, '2012-11-28 22:35:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:49', `updated_at` = '2012-11-28 22:35:49', `subdomain` = 'account674' WHERE `accounts`.`id` = 674 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 674 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (674, 301) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:49 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c5df7f2_197580435d4810696@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:49', '2012-11-28 22:35:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:49') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:49', 'User', 'd047413be46e0e5a4f92c507f4ed972b', 302, 'User', '2012-11-28 22:35:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:49', NULL, NULL, NULL, '2012-11-28 22:35:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:49', `updated_at` = '2012-11-28 22:35:49', `subdomain` = 'account675' WHERE `accounts`.`id` = 675 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 302) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:49 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c5ea62c_197580435d4810705f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 302)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:49 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 301) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1081 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1082  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1080  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 4.6ms) Started DELETE "/settings/account/675/user/301" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"675", "user_id"=>"301"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 302 AND `account_users`.`account_id` = 675 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 505\n account_id: 675\n user_id: 301\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_505_destroy', '2012-11-29 22:35:50', '2012-11-28 22:35:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/675/users Completed 302 Found in 17ms (ActiveRecord: 4.1ms) Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 32ms (Views: 23.9ms | ActiveRecord: 4.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/orkut" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::OmniauthCallbacksController#passthru as HTML Parameters: {"provider"=>"orkut"} Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:50', '2012-11-28 22:35:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:50', 'User', '7de2ce250701b25f4910e4e7caa247cf', 303, 'User', '2012-11-28 22:35:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:50', NULL, NULL, NULL, '2012-11-28 22:35:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:50', `updated_at` = '2012-11-28 22:35:50', `subdomain` = 'account676' WHERE `accounts`.`id` = 676 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 676 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (676, 303) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'owner') AccountRole Exists (117.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:50 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c6473fa_197580435d4810715c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 303)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 167ms (ActiveRecord: 124.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:50', '2012-11-28 22:35:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:50', 'User', '81441205f1b62b1c9dc02467a5619791', 304, 'User', '2012-11-28 22:35:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:50', NULL, NULL, NULL, '2012-11-28 22:35:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:50', `updated_at` = '2012-11-28 22:35:50', `subdomain` = 'account677' WHERE `accounts`.`id` = 677 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 677 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (677, 304) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:50 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c658848_197580435d481072e0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 304)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (5.1ms) Completed 200 OK in 43ms (Views: 41.7ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:50', 'test@test.test', '$2a$04$EhrKalVHsgkx3wOxklFEpuZVznDC5g73dzikM77yGaPfshz24deRC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:50', 'User', '1ab9db8ae938d8851cd41bfa56d3cf07', 305, 'User', '2012-11-28 22:35:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:50', NULL, NULL, NULL, '2012-11-28 22:35:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:50', `updated_at` = '2012-11-28 22:35:50', `subdomain` = 'account678' WHERE `accounts`.`id` = 678 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 678 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (678, 305) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:50 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b691c6744c9_197580435d48107399@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 LIMIT 1 Completed 302 Found in 29ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 305)  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_305_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 Completed 200 OK in 51ms (Views: 46.4ms | ActiveRecord: 2.7ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'facebook@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:50', 'facebook@test.test', '$2a$04$.Hx0FNpjTwU.jEpIB8FOhOcRy7J8uU4VepF27DSk/lDbiJuBAE5/m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:50') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:50', 'User', '8e8d09a0aee78f2e49a7a80c28d0e2f7', 306, 'User', '2012-11-28 22:35:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:50', NULL, NULL, NULL, '2012-11-28 22:35:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:50', `updated_at` = '2012-11-28 22:35:50', `subdomain` = 'account679' WHERE `accounts`.`id` = 679 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 679 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (679, 306) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:50 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c6bc303_197580435d481074ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test' Redirected to http://iugusdk.dev/ Completed 302 Found in 4ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:50', '2012-11-28 22:35:50', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:50', 'User', '6f1bcc85312f0a6ad5204d760c86691b', 307, 'User', '2012-11-28 22:35:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:50', NULL, NULL, NULL, '2012-11-28 22:35:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:50', `updated_at` = '2012-11-28 22:35:50', `subdomain` = 'account680' WHERE `accounts`.`id` = 680 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 680 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (680, 307) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 307)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 31ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 Completed 200 OK in 117ms (Views: 2.4ms | ActiveRecord: 0.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 20:35:50 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:50', 'test@test.test', '$2a$04$dlrFSjeyQ50VBh6ppvl7J..2KS7uv0eD6N/ouqVswSXG5Mx/Kkrem', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:50', 'User', 'abdcde4fc39bcd8faf1c1b19a733ffa6', 308, 'User', '2012-11-28 22:35:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', NULL, NULL, NULL, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account681' WHERE `accounts`.`id` = 681 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 681 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (681, 308) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'admin') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b691c76450_197580435d4810755c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 308)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_308_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 Completed 200 OK in 26ms (Views: 21.2ms | ActiveRecord: 2.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:51', '2012-11-28 22:35:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:51') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:51', 'User', '116a73bed123f1041b5db83f7ec7d3c5', 309, 'User', '2012-11-28 22:35:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', NULL, NULL, NULL, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account682' WHERE `accounts`.`id` = 682 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 682 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (682, 309) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c724f36_197580435d481076f2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 309)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 309 AND `account_users`.`account_id` = 682 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (512) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (682) SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 512\n account_id: 682\n user_id: 309\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_512_destroy', '2012-11-29 22:35:51', '2012-11-28 22:35:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', 'jabanilson', NULL, 1, '2012-11-28 22:35:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account683' WHERE `accounts`.`id` = 683  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (683, 309) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_309_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 Completed 200 OK in 24ms (Views: 19.7ms | ActiveRecord: 2.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:51', '2012-11-28 22:35:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:51', 'User', 'f79cfc8fe1d44300e5955cfb2b2407cf', 310, 'User', '2012-11-28 22:35:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', NULL, NULL, NULL, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account684' WHERE `accounts`.`id` = 684 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 684 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (684, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c75dc8e_197580435d481077ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 310)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 310 AND `account_users`.`account_id` = 684 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (514) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (684) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:35:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 514\n account_id: 684\n user_id: 310\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_514_destroy', '2012-11-29 22:35:51', '2012-11-28 22:35:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', 'jabanilson', NULL, 1, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account685' WHERE `accounts`.`id` = 685  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (685, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', 'jabanilson', NULL, 1, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account686' WHERE `accounts`.`id` = 686  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (686, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 2ms (ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_310_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 Completed 200 OK in 28ms (Views: 23.5ms | ActiveRecord: 2.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:51', '2012-11-28 22:35:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:51', 'User', 'a9f4fb1a1acf255c43f8f0056332a33c', 311, 'User', '2012-11-28 22:35:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', NULL, NULL, NULL, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account687' WHERE `accounts`.`id` = 687 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 687 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (687, 311) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c782637_197580435d481078d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 311)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_311_destroy' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 139ms (Views: 135.0ms | ActiveRecord: 2.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:51', '2012-11-28 22:35:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:51', 'User', 'a4ba39327f20e47fd6bd484ed4afe90a', 312, 'User', '2012-11-28 22:35:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', NULL, NULL, NULL, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account688' WHERE `accounts`.`id` = 688 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 688 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (688, 312) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c7b7ac3_197580435d48107918@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 312)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:51', 'teste@teste.com', '$2a$04$Whv.uH3Zcrl9KSEiWyl0men/SbsR.LpaTEM0bXxTaSzdMgSE46yGW', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:35:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:51', 'User', 'ab8a0a1ad8a3174f2e3483fae7b1c282', 313, 'User', '2012-11-28 22:35:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', NULL, NULL, NULL, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account689' WHERE `accounts`.`id` = 689 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 689 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (689, 313) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c7c73fc_197580435d4810802d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', 'jabanilson', NULL, 1, '2012-11-28 22:35:51')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account690' WHERE `accounts`.`id` = 690  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', 'jabanilson', NULL, 1, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account691' WHERE `accounts`.`id` = 691  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 691 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (691, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:51', '6xJEJITo6XUJxqXAN8lSbzBIr7o') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691c7cec31_197580435d4810813e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/226xJEJITo6XUJxqXAN8lSbzBIr7o  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 690 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 690, `invited_by` = 313 WHERE `user_invitations`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/226xJEJITo6XUJxqXAN8lSbzBIr7o" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"226xJEJITo6XUJxqXAN8lSbzBIr7o"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 22 LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 313 LIMIT 1 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:51', '2012-11-28 22:35:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:51', 'User', '78fe41f5ecfaed9df2898c77f4dcfb28', 314, 'User', '2012-11-28 22:35:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', NULL, NULL, NULL, '2012-11-28 22:35:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account692' WHERE `accounts`.`id` = 692 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 692 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (692, 314) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c7e027f_197580435d481082bb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 314)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:51 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:51', 'teste@teste.com', '$2a$04$s0mOK2vLbO5R9y1/rppZbeqqEuDIdPtDIwxMoGzaZIlPCCxJD7/Ci', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:35:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:51', 'User', 'b828b6f536d50dbf6ba565ea6dd754d9', 315, 'User', '2012-11-28 22:35:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', NULL, NULL, NULL, '2012-11-28 22:35:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account693' WHERE `accounts`.`id` = 693 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 693 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (693, 315) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c7ef787_197580435d481083c8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', 'jabanilson', NULL, 1, '2012-11-28 22:35:51')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account694' WHERE `accounts`.`id` = 694  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:51', 'jabanilson', NULL, 1, '2012-11-28 22:35:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:51', `updated_at` = '2012-11-28 22:35:51', `subdomain` = 'account695' WHERE `accounts`.`id` = 695  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 695 AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (695, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:51', 'ct5_ZSiaLWqLp3bwM_kGO53Fb-w') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691c828bc_197580435d481084f2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/23ct5_ZSiaLWqLp3bwM_kGO53Fb-w  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 694 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 694, `invited_by` = 315 WHERE `user_invitations`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/23ct5_ZSiaLWqLp3bwM_kGO53Fb-w" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"23ct5_ZSiaLWqLp3bwM_kGO53Fb-w"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 23 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 315 LIMIT 1 Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 1.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:52', '2012-11-28 22:35:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', '87130e33f97c6ad5d19b12ff422c521b', 316, 'User', '2012-11-28 22:35:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account696' WHERE `accounts`.`id` = 696 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 696 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (696, 316) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c831431_197580435d481085a1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 316)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:52', 'teste@teste.com', '$2a$04$IqhHE937hEfPUmV5QhpzJOg4w2NyDELk4zo4i48lqtQtT8ahqtRZu', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', '493eb9933b3d231380ab34278693d85b', 317, 'User', '2012-11-28 22:35:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account697' WHERE `accounts`.`id` = 697 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 697 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (697, 317) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b691c83fba2_197580435d481086d4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', 'jabanilson', NULL, 1, '2012-11-28 22:35:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account698' WHERE `accounts`.`id` = 698  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', 'jabanilson', NULL, 1, '2012-11-28 22:35:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account699' WHERE `accounts`.`id` = 699  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 699 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (699, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:35:52', 'z0__JRVfsWjfKulD3vk4oEd9fdQ') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b691c847033_197580435d4810877c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/24z0__JRVfsWjfKulD3vk4oEd9fdQ  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 698 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 698, `invited_by` = 317 WHERE `user_invitations`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/24z0__JRVfsWjfKulD3vk4oEd9fdQ" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"24z0__JRVfsWjfKulD3vk4oEd9fdQ"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 24 LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 317 LIMIT 1 Completed 200 OK in 7ms (Views: 3.2ms | ActiveRecord: 1.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:52', '2012-11-28 22:35:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', '9335dab94c10173fd608cb3f00858aa2', 318, 'User', '2012-11-28 22:35:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account700' WHERE `accounts`.`id` = 700 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 318) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c858004_197580435d481088bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 318)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:52', 'tester@roles.test', '$2a$04$pomgBuI2qAtntmjtrYPxseFby.s7p63odKnQjSUpi5cR0U2VgH1om', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', 'f0270eb4f601d6988929e81e6a38ebb3', 319, 'User', '2012-11-28 22:35:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account701' WHERE `accounts`.`id` = 701 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 701 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (701, 319) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691c867b3d_197580435d481089c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 319) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/700/invite" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"700"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 318 AND `account_users`.`account_id` = 700 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 700 AND `account_users`.`user_id` = 318 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (524) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (700) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 24ms (Views: 14.7ms | ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:52', '2012-11-28 22:35:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', '126c72fb1c62b95562a2a5f429e6df02', 320, 'User', '2012-11-28 22:35:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account702' WHERE `accounts`.`id` = 702 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 320) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c899437_197580435d481090a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 320)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 165ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.6ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:52', 'tester@roles.test', '$2a$04$LTV21pc1UnB2PDdKZec6TOjrlKNRWn2bpWnR24GeN4JlFJVOq0fSm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', '3d4f4ecba62bd7562e7ed1004bdb5eaa', 321, 'User', '2012-11-28 22:35:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account703' WHERE `accounts`.`id` = 703 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 703 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (703, 321) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691c8a8855_197580435d48109132@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/702/invite" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"702"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 320 AND `account_users`.`account_id` = 702 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 702 AND `account_users`.`user_id` = 320 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (527) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (702) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.6ms | ActiveRecord: 3.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:52', '2012-11-28 22:35:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', 'fee82ef42844c2510239f18b11f34d39', 322, 'User', '2012-11-28 22:35:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account704' WHERE `accounts`.`id` = 704 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 322) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c8bc5cc_197580435d48109276@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 322)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:52', 'tester@roles.test', '$2a$04$e.nghO0OCecfSvmLwueG5uiq49DOTf/.ZdcfRMTYCA8UiGV2sgVwK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', 'b90d64da49425dadf809acd185e47e5e', 323, 'User', '2012-11-28 22:35:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account705' WHERE `accounts`.`id` = 705 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 705 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (705, 323) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691c8cbe46_197580435d4810936@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 323) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/704/invite" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"704"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 322 AND `account_users`.`account_id` = 704 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 704 AND `account_users`.`user_id` = 322 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (530) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (704) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 9.9ms | ActiveRecord: 2.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:52', '2012-11-28 22:35:52', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', 'f7457ae621834adc8572680c38b9c1ad', 324, 'User', '2012-11-28 22:35:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account706' WHERE `accounts`.`id` = 706 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 324) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:52 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c8dfe51_197580435d4810948d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 324)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:52 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:52', 'tester@roles.test', '$2a$04$orfGEynH/sx8rpvfyHvFsuwKSmE34N8E4hJjvG3jw2AjJj1F3kFsq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:52', 'User', 'e14d7280a49e162c309ef1ee689217c4', 325, 'User', '2012-11-28 22:35:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:52', NULL, NULL, NULL, '2012-11-28 22:35:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:52', `updated_at` = '2012-11-28 22:35:52', `subdomain` = 'account707' WHERE `accounts`.`id` = 707 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 707 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (707, 325) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691c916f82_197580435d481095d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 325) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/706/invite" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"706"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 324 AND `account_users`.`account_id` = 706 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 706 AND `account_users`.`user_id` = 324 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (533) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (706) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.1ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:53', '2012-11-28 22:35:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:53') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:53', 'User', '07630ff960312b2f245582db931d1045', 326, 'User', '2012-11-28 22:35:53') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:53', NULL, NULL, NULL, '2012-11-28 22:35:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:53', `updated_at` = '2012-11-28 22:35:53', `subdomain` = 'account708' WHERE `accounts`.`id` = 708 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 326) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c92adaa_197580435d481096fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 326)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:53', 'tester@roles.test', '$2a$04$C8lufan0iVdbIvxztXvSbuEbHVv1GscktBRH76sQ0nde90HYCo7c.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:53', 'User', 'f324ab38773769a1d03f578492951c34', 327, 'User', '2012-11-28 22:35:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:53', NULL, NULL, NULL, '2012-11-28 22:35:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:53', `updated_at` = '2012-11-28 22:35:53', `subdomain` = 'account709' WHERE `accounts`.`id` = 709 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 709 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (709, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691c93a6e3_197580435d481097d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/708/invite" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"708"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 326 AND `account_users`.`account_id` = 708 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 708 AND `account_users`.`user_id` = 326 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (536) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (708) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:53', '2012-11-28 22:35:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:53') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:53', 'User', 'e479502556de93abef38055cec1f84a6', 328, 'User', '2012-11-28 22:35:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:53', NULL, NULL, NULL, '2012-11-28 22:35:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:53', `updated_at` = '2012-11-28 22:35:53', `subdomain` = 'account710' WHERE `accounts`.`id` = 710 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 328) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c94e884_197580435d48109871@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 328)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:53', 'tester@roles.test', '$2a$04$8i09rarOHb1w1gqW9a8LOuONcMXJ7RFso5Fp/pRz9llMEMW2J2ZSq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:53', 'User', 'de772337d452c4bcdc72a96bbad26720', 329, 'User', '2012-11-28 22:35:53') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:53', NULL, NULL, NULL, '2012-11-28 22:35:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:53', `updated_at` = '2012-11-28 22:35:53', `subdomain` = 'account711' WHERE `accounts`.`id` = 711 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 711 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (711, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691c95e3bd_197580435d48109920@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/710/invite" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"710"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 328 AND `account_users`.`account_id` = 710 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 710 AND `account_users`.`user_id` = 328 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (539) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (710) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.0ms | ActiveRecord: 2.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:53', '2012-11-28 22:35:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:53') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:53', 'User', '5904c4c2bc230bb6f1f9417304ce8157', 330, 'User', '2012-11-28 22:35:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:53', NULL, NULL, NULL, '2012-11-28 22:35:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:53', `updated_at` = '2012-11-28 22:35:53', `subdomain` = 'account712' WHERE `accounts`.`id` = 712 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 330) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c98fc1a_197580435d4811009c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 330)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 170ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:53', 'tester@roles.test', '$2a$04$/52DV5DXnJYu8/eIKQZRIeZF4URtnfLI/F8SVsHgV2cfBJ9hbrzzm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:53') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:53', 'User', 'b504b960917f31d792c69d34716bb3ca', 331, 'User', '2012-11-28 22:35:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:53', NULL, NULL, NULL, '2012-11-28 22:35:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:53', `updated_at` = '2012-11-28 22:35:53', `subdomain` = 'account713' WHERE `accounts`.`id` = 713 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 713 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (713, 331) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691c99fa51_197580435d48110181@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 331) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 11.4ms | ActiveRecord: 2.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 712 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1156 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 10.7ms | ActiveRecord: 3.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:53', '2012-11-28 22:35:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:53', 'User', '1894046b1a1524554cea3165521629d9', 332, 'User', '2012-11-28 22:35:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:53', NULL, NULL, NULL, '2012-11-28 22:35:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:53', `updated_at` = '2012-11-28 22:35:53', `subdomain` = 'account714' WHERE `accounts`.`id` = 714 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 332) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691c9bce3a_197580435d48110258@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 332)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:53', 'tester@roles.test', '$2a$04$uQOTKiAZHV6mQN0OL83wj.Uff71vluoIZ6UIQxdwtVLPyfxyYlH7i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:53', 'User', '71de7f4b2164571580a96dadc783ec3b', 333, 'User', '2012-11-28 22:35:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:53', NULL, NULL, NULL, '2012-11-28 22:35:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:53', `updated_at` = '2012-11-28 22:35:53', `subdomain` = 'account715' WHERE `accounts`.`id` = 715 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 715 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (715, 333) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:53 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691c9cc76c_197580435d4811036e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 333) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 2.8ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545  (0.3ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 714 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1163 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 2.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:54', '2012-11-28 22:35:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:54', 'User', '6d33fa6c6f99f7f7f2f66296df439b1a', 334, 'User', '2012-11-28 22:35:54') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:54', NULL, NULL, NULL, '2012-11-28 22:35:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:54', `updated_at` = '2012-11-28 22:35:54', `subdomain` = 'account716' WHERE `accounts`.`id` = 716 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 334) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691ca12028_197580435d4811042c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 334)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 171ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:54', 'tester@roles.test', '$2a$04$2S/SXCBxqFynZZO72CfBA.y.6dKnvm2uipIV.mKN3QKesNmGAXWnK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:54') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:54', 'User', '056c56bf3477e7807457b2bad71d8395', 335, 'User', '2012-11-28 22:35:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:54', NULL, NULL, NULL, '2012-11-28 22:35:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:54', `updated_at` = '2012-11-28 22:35:54', `subdomain` = 'account717' WHERE `accounts`.`id` = 717 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 717 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (717, 335) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:54 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691ca23a9c_197580435d4811055c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 335) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 10.7ms | ActiveRecord: 2.7ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 716 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1170 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1171  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 10.3ms | ActiveRecord: 2.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:54', '2012-11-28 22:35:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:54') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:54', 'User', '009b0ec3548a7c1c6857b7887aaf27cd', 336, 'User', '2012-11-28 22:35:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:54', NULL, NULL, NULL, '2012-11-28 22:35:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:54', `updated_at` = '2012-11-28 22:35:54', `subdomain` = 'account718' WHERE `accounts`.`id` = 718 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 336) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691ca42c97_197580435d481106ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 336)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.6ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:54', 'tester@roles.test', '$2a$04$.q4sAPZ6KuREVbBSWTUazuw/QfZc/6IPkRX3v2DyXa1S0gEa0z6RC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:54', 'User', '024de0c53c1f57a0be606f350537920c', 337, 'User', '2012-11-28 22:35:54') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:54', NULL, NULL, NULL, '2012-11-28 22:35:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:54', `updated_at` = '2012-11-28 22:35:54', `subdomain` = 'account719' WHERE `accounts`.`id` = 719 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 719 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (719, 337) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:54 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691ca53148_197580435d481107ce@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 337) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.3ms | ActiveRecord: 2.7ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 718 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1177 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1178  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.5ms | ActiveRecord: 2.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:54', '2012-11-28 22:35:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:54', 'User', '93f163d86f20751bc88a7ad1ed9f22c2', 338, 'User', '2012-11-28 22:35:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:54', NULL, NULL, NULL, '2012-11-28 22:35:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:54', `updated_at` = '2012-11-28 22:35:54', `subdomain` = 'account720' WHERE `accounts`.`id` = 720 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 338) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:35:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691ca8dc24_197580435d4811087a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 338)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 176ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:54', 'tester@roles.test', '$2a$04$N6QkXsKI5YcacDXIquYPKu6GjxByYN/BK.lz440CFIHOgegKSD9oC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:54', 'User', '84b4cf38bf8676f265d4168f436c03b0', 339, 'User', '2012-11-28 22:35:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:54', NULL, NULL, NULL, '2012-11-28 22:35:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:54', `updated_at` = '2012-11-28 22:35:54', `subdomain` = 'account721' WHERE `accounts`.`id` = 721 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 721 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (721, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:35:54 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691ca9dddf_197580435d481109a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.1ms | ActiveRecord: 2.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 720 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1184 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1185  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 12.9ms | ActiveRecord: 2.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:54', '2012-11-28 22:35:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:54', 'User', '387123ba7d80350b61ac464f9164ece5', 340, 'User', '2012-11-28 22:35:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:54', NULL, NULL, NULL, '2012-11-28 22:35:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:54', `updated_at` = '2012-11-28 22:35:54', `subdomain` = 'account722' WHERE `accounts`.`id` = 722 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 340) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:35:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691cabae4b_197580435d481110b3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 340)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:54', 'tester@roles.test', '$2a$04$J5UQ7SYyBgxE7FUQS0EvxeRR.1myZ.uJXPVEjRmTtFC5bDsK.Fcpy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:54', 'User', 'ca11fdb3676c23d7946d87cb2c2dac22', 341, 'User', '2012-11-28 22:35:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:54', NULL, NULL, NULL, '2012-11-28 22:35:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:54', `updated_at` = '2012-11-28 22:35:54', `subdomain` = 'account723' WHERE `accounts`.`id` = 723 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 723 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (723, 341) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:54 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691cacad45_197580435d48111132@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 341) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.5ms | ActiveRecord: 2.9ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 722 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1191 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 22ms (Views: 13.3ms | ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:55', '2012-11-28 22:35:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:55', 'User', '1d83acb81cf53747c693cde801f1af1b', 342, 'User', '2012-11-28 22:35:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:55', NULL, NULL, NULL, '2012-11-28 22:35:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:55', `updated_at` = '2012-11-28 22:35:55', `subdomain` = 'account724' WHERE `accounts`.`id` = 724 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 342) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:35:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691cb12a4a_197580435d481112ef@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 342)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:55', 'tester@roles.test', '$2a$04$dY7VaMMcBj1gUiroJ2UAL.8aSbBSlX.hDaio1DSQ1Yb/LQK9DNDs2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:55', 'User', '589b1c519504da3c26cef3c5414de7e6', 343, 'User', '2012-11-28 22:35:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:55', NULL, NULL, NULL, '2012-11-28 22:35:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:55', `updated_at` = '2012-11-28 22:35:55', `subdomain` = 'account725' WHERE `accounts`.`id` = 725 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 725 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (725, 343) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:55 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691cb22e6f_197580435d4811131c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 343) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.3ms | ActiveRecord: 2.8ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 724 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1198 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1199  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 12.9ms | ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:55', '2012-11-28 22:35:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:55', 'User', '154bf21cebb031608845229f1f9b74a2', 344, 'User', '2012-11-28 22:35:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:55', NULL, NULL, NULL, '2012-11-28 22:35:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:55', `updated_at` = '2012-11-28 22:35:55', `subdomain` = 'account726' WHERE `accounts`.`id` = 726 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 344) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691cb3fc25_197580435d48111443@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 344)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:19', '2012-11-28 22:35:55', 'tester@roles.test', '$2a$04$iQNRDWu/nysyTm05M.r1COPQZrZJ7qDEwVkYwp9DXUdTEbP.8f4x2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:55', 'User', 'a1e31165120b1f824d134024ef96fbef', 345, 'User', '2012-11-28 22:35:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:55', NULL, NULL, NULL, '2012-11-28 22:35:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:55', `updated_at` = '2012-11-28 22:35:55', `subdomain` = 'account727' WHERE `accounts`.`id` = 727 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 727 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (727, 345) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:35:55 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b691cb4fbfc_197580435d481115ab@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 345) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.4ms | ActiveRecord: 2.9ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 726 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1205 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 22ms (Views: 13.3ms | ActiveRecord: 3.1ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:55', '2012-11-28 22:35:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:55', 'User', '3ccbbd1ef850278aaa87040fd9e62494', 346, 'User', '2012-11-28 22:35:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:55', NULL, NULL, NULL, '2012-11-28 22:35:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:55', `updated_at` = '2012-11-28 22:35:55', `subdomain` = 'account728' WHERE `accounts`.`id` = 728 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 728 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (728, 346) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691cb8b9d0_197580435d48111618@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 346)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_346_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.7ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:55', '2012-11-28 22:35:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:55') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:55', 'User', '821df17ccd7b5f81d33089d51116b7e6', 347, 'User', '2012-11-28 22:35:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:55', NULL, NULL, NULL, '2012-11-28 22:35:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:55', `updated_at` = '2012-11-28 22:35:55', `subdomain` = 'account729' WHERE `accounts`.`id` = 729 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 729 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (729, 347) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691cba2132_197580435d48111727@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 347)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:35:55', '2012-11-28 22:35:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:35:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:35:55', 'User', '2ae71f20a5d7be7241da7e4bee14c766', 348, 'User', '2012-11-28 22:35:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:35:55', NULL, NULL, NULL, '2012-11-28 22:35:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:35:55', `updated_at` = '2012-11-28 22:35:55', `subdomain` = 'account730' WHERE `accounts`.`id` = 730 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 730 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (730, 348) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:35:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b691cbdc47a_197580435d4811189e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 348)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:35:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.4ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.8ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (25.8ms) TRUNCATE TABLE `account_domains`;  (1.2ms) TRUNCATE TABLE `account_roles`;  (1.4ms) TRUNCATE TABLE `account_users`;  (1.2ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:49', '2012-11-28 22:39:49', 'teste@teste.com', '$2a$04$oXvKFuLPuYlVL5zfaQLLTuUeayzGrutAHbRkJvmcuib4bBOGrK.Vu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:49') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', NULL, NULL, NULL, '2012-11-28 22:39:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', 'jabanilson', NULL, 1, '2012-11-28 22:39:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', 'jabanilson', NULL, 1, '2012-11-28 22:39:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.7ms) Completed 200 OK in 130ms (Views: 126.7ms | ActiveRecord: 0.5ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:49', '2012-11-28 22:39:49', 'teste@teste.com', '$2a$04$wTezFFEoxOyAWY3j5M5Gw.93ZF0pEuVr4Znl72is3ygGkDZSpuazC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', NULL, NULL, NULL, '2012-11-28 22:39:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', 'jabanilson', NULL, 1, '2012-11-28 22:39:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', 'jabanilson', NULL, 1, '2012-11-28 22:39:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 5 WHERE `account_users`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND `accounts`.`id` = 4 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 4 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 13ms (Views: 2.7ms | ActiveRecord: 3.5ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:49', '2012-11-28 22:39:49', 'teste@teste.com', '$2a$04$wyqnDn2QF5e/0x1Il4TljuS2MbLYqpENXMWi7nsZR.i1P7eDj96be', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', NULL, NULL, NULL, '2012-11-28 22:39:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', 'jabanilson', NULL, 1, '2012-11-28 22:39:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', 'jabanilson', NULL, 1, '2012-11-28 22:39:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 8 WHERE `account_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 3 AND `account_users`.`account_id` = 7 LIMIT 1 AccountRole Load (0.6ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (5) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (7) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 7 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 131ms (Views: 1.8ms | ActiveRecord: 2.1ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:49', '2012-11-28 22:39:49', 'teste@teste.com', '$2a$04$xLDq0MUtsds5GTnuGmIYIuyHwe99aMIyEYGS6Pe8bc9A.NuIdEwVy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', NULL, NULL, NULL, '2012-11-28 22:39:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', 'jabanilson', NULL, 1, '2012-11-28 22:39:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account11' WHERE `accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:49', 'jabanilson', NULL, 1, '2012-11-28 22:39:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:49', `updated_at` = '2012-11-28 22:39:49', `subdomain` = 'account12' WHERE `accounts`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 11 WHERE `account_users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"10"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 10 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND `accounts`.`id` = 10 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 10\n created_at: 2012-11-28 22:39:49.000000000Z\n updated_at: 2012-11-28 22:39:49.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account10\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_10_destroy', '2012-11-28 22:39:49', '2012-11-28 22:39:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_10_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 33ms (ActiveRecord: 5.1ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$I5v7CQTUIUFizc0jNkL46uPMaPq9ICVG244p82e09TrcUikJF866K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account14' WHERE `accounts`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account15' WHERE `accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 5) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 14 WHERE `account_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 13 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND `accounts`.`id` = 13 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 13\n created_at: 2012-11-28 22:39:50.000000000Z\n updated_at: 2012-11-28 22:39:50.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account13\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_13_destroy', '2012-11-28 22:39:50', '2012-11-28 22:39:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 11ms (ActiveRecord: 2.7ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$Dza7JfRnWmAA6JIU/46lwOaOfnwLfVQUAjOYk38x1Gw0pK2LObTTi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account17' WHERE `accounts`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 17 WHERE `account_users`.`id` = 12  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"16"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$MDb9Y/YtgnJkQ84weG5tauSVYhwXLs98PPbmSLV9rsV8FZT.M3RsG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account20' WHERE `accounts`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account21' WHERE `accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (21, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 20 WHERE `account_users`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 19\n created_at: 2012-11-28 22:39:50.000000000Z\n updated_at: 2012-11-28 22:39:50.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account19\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_19_destroy', '2012-11-28 22:39:50', '2012-11-28 22:39:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"19"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 7 AND `account_users`.`account_id` = 19 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 13 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND `accounts`.`id` = 19 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$NnXRHTE3SA2cgJgBf6wb5uits7IMIq3HK25xCELdGlRxdeWSsM7uC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account22' WHERE `accounts`.`id` = 22 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 22 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (22, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account23' WHERE `accounts`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account24' WHERE `accounts`.`id` = 24  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 23 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 23 WHERE `account_users`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 22\n created_at: 2012-11-28 22:39:50.000000000Z\n updated_at: 2012-11-28 22:39:50.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account22\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_22_destroy', '2012-11-28 22:39:50', '2012-11-28 22:39:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"22"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 22 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND `accounts`.`id` = 22 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 9ms (ActiveRecord: 2.0ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$rhMSqmZaJmLjNz/cut05Qu/.O2e48vSN7iZ7XWsBPaBNt48/O85Ra', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account25' WHERE `accounts`.`id` = 25 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (25, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account27' WHERE `accounts`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 26 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 26 WHERE `account_users`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"25"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '25') LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$unEmSz1CJ7APLMwjpe4a1uHPCNNGQwI/5n6ovNCLuyByGslj7q4M6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account28' WHERE `accounts`.`id` = 28 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (28, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account29' WHERE `accounts`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account30' WHERE `accounts`.`id` = 30  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (30, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 29 WHERE `account_users`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"28"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 28 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account28' AND `accounts`.`id` != 28) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:39:50' WHERE `accounts`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/28 Completed 302 Found in 11ms (ActiveRecord: 2.3ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$0guZPZTMoFqtuDN5vot2feG7NgHWKh8vJO8hDJibkD3s/AbWKhq76', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account31' WHERE `accounts`.`id` = 31 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (31, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account32' WHERE `accounts`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account33' WHERE `accounts`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (33, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 32 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 32 WHERE `account_users`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"31"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 11 AND `account_users`.`account_id` = 31 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 21 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account31' AND `accounts`.`id` != 31) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:39:50' WHERE `accounts`.`id` = 31  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/31 Completed 302 Found in 9ms (ActiveRecord: 2.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$Zhg3AboJj2GU8kMR47hxmOJetgDDLzjkOGTNeS6QOsBxedyPGVNYm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account34' WHERE `accounts`.`id` = 34 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (34, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account35' WHERE `accounts`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account36' WHERE `accounts`.`id` = 36  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (36, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 35 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 35 WHERE `account_users`.`id` = 24  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"34"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 34 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 23 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account34' AND `accounts`.`id` != 34) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:39:50' WHERE `accounts`.`id` = 34  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/34 Completed 302 Found in 9ms (ActiveRecord: 1.9ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$JwmrJN4o1fe.DowkNmCyDugk3HpI9GaNu2j41RdDHNROglM/ByzIO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account37' WHERE `accounts`.`id` = 37 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (37, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account38' WHERE `accounts`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account39' WHERE `accounts`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (39, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 38 WHERE `account_users`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account40' WHERE `accounts`.`id` = 40  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (40, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 4.4ms)  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$EYsbDswOYaCV4W1xMApmQ.lerVMXrKl5ojbd39ieNyJWDPJbgBVRi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account41' WHERE `accounts`.`id` = 41 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 41 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (41, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account42' WHERE `accounts`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account43' WHERE `accounts`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (43, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 42 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 42 WHERE `account_users`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account44' WHERE `accounts`.`id` = 44  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (44, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 88ms (ActiveRecord: 3.8ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 Processing by Iugu::AccountController#create as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account45' WHERE `accounts`.`id` = 45  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (45, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 14ms (ActiveRecord: 4.0ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14  (8.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$tENKVALArADmTib644/4quf45xrcH.6S/S/zd3siy0jPrnuqmFH4a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account46' WHERE `accounts`.`id` = 46 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (46, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account47' WHERE `accounts`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account48' WHERE `accounts`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (48, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 47 WHERE `account_users`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 15 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_47_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 15 AND `account_users`.`account_id` = 47 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 33 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND `accounts`.`id` = 47 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 47 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:39:50', 'token x', '088455419313f64c40928e41e5cfc471', 47, 'Account', '2012-11-28 22:39:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/47 Completed 302 Found in 38ms (ActiveRecord: 6.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:50', '2012-11-28 22:39:50', 'teste@teste.com', '$2a$04$GSXl17zxcgvGIQWfN9GjH.rzUubwaikh28mkKziFix6d5QfzSW.5a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', NULL, NULL, NULL, '2012-11-28 22:39:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account49' WHERE `accounts`.`id` = 49 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (49, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account50' WHERE `accounts`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:50', 'jabanilson', NULL, 1, '2012-11-28 22:39:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:50', `updated_at` = '2012-11-28 22:39:50', `subdomain` = 'account51' WHERE `accounts`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (51, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 50 WHERE `account_users`.`id` = 35  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"50"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 16 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_50_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 16 AND `account_users`.`account_id` = 50 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 35 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND `accounts`.`id` = 50 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 50 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:39:50', 'token x', '315b8d9c5cf77a808be48c5886d01814', 50, 'Account', '2012-11-28 22:39:50')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/50 Completed 302 Found in 14ms (ActiveRecord: 3.1ms)  (5.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$.ytgamMF4qO2hnTaQiINr.JROIX.mCMGNrhvZTiXlOS8o.WQfT2gy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account52' WHERE `accounts`.`id` = 52 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (52, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account53' WHERE `accounts`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account54' WHERE `accounts`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (54, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 53 WHERE `account_users`.`id` = 37  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 17 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND `accounts`.`id` = 53 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 53 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 SQL (0.5ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:39:51', 'token x', 'da388383cf9296f30a20d335b49e7620', 53, 'Account', '2012-11-28 22:39:51')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/53 Completed 302 Found in 16ms (ActiveRecord: 3.4ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (7.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$qAif1./L.YTxuK18tOFCO.u3tDCfljWqd/juWqRdUpKLdIm4mw/0G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account55' WHERE `accounts`.`id` = 55 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (55, 18) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account56' WHERE `accounts`.`id` = 56  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account57' WHERE `accounts`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (57, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 56 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 56 WHERE `account_users`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 55 AND `account_domains`.`url` = 'controller.test.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (55, NULL, 'controller.test.test', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"55"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 18 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_55_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 18 AND `account_users`.`account_id` = 55 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND `accounts`.`id` = 55 LIMIT 1 Completed 200 OK in 13ms (Views: 3.4ms | ActiveRecord: 2.3ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$iGsEk4oVM8W33raCBTnCUe7Sr2OZBziYQNk71u6IxYrMZgOsh7fAy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account58' WHERE `accounts`.`id` = 58 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (58, 19) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account59' WHERE `accounts`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account60' WHERE `accounts`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (60, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 59 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 59 WHERE `account_users`.`id` = 41  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"58"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 19 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_58_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 19 AND `account_users`.`account_id` = 58 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND `accounts`.`id` = 58 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 58 AND `account_domains`.`url` = 'new.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (58, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/58/domain/2 Completed 302 Found in 85ms (ActiveRecord: 3.9ms) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (3.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$3tnoVi4Up8J.6HCs4ZEAiug9bxvBmkWLvM4Po7lCNFUzmjX5Aql.W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account61' WHERE `accounts`.`id` = 61 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (61, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account62' WHERE `accounts`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account63' WHERE `accounts`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (63, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 62 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 62 WHERE `account_users`.`id` = 43  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 20 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 61 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (61, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/61/domain/3 Completed 302 Found in 14ms (ActiveRecord: 3.3ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.8ms | ActiveRecord: 2.9ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$tdnOy71wye8txUxeJycqNOh67wdzXlD.y9c6J2Ty7jEEfvqeEtwL2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account64' WHERE `accounts`.`id` = 64 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (64, 21) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account65' WHERE `accounts`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account66' WHERE `accounts`.`id` = 66  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (66, 21) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 65 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 65 WHERE `account_users`.`id` = 45  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (64, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"64", "domain_id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 21 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_64_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 21 AND `account_users`.`account_id` = 64 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND `accounts`.`id` = 64 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`id` = 4 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 4  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/64/domains Completed 302 Found in 15ms (ActiveRecord: 3.4ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$chiO8c.zBjBph0UynRjKQuaU8R3xNEO8EeW7KP8cEu6JsA5mPOUPq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account67' WHERE `accounts`.`id` = 67 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (67, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account68' WHERE `accounts`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account69' WHERE `accounts`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (69, 22) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 68 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 68 WHERE `account_users`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (67, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"67", "domain_id"=>"5"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 22 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_67_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 22 AND `account_users`.`account_id` = 67 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND `accounts`.`id` = 67 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/67/domains Completed 302 Found in 13ms (ActiveRecord: 3.4ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$UYf7ecT91Od7Zmz7sPI/DeDPRUrmKQa.d0zvN15r4wJ.G2jZlvPNu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account70' WHERE `accounts`.`id` = 70 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (70, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account71' WHERE `accounts`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account72' WHERE `accounts`.`id` = 72  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (72, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 71 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 71 WHERE `account_users`.`id` = 49  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (70, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"70", "domain_id"=>"1273816283761238716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 23 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_70_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 23 AND `account_users`.`account_id` = 70 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND `accounts`.`id` = 70 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/70/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$anYEHiGIT9tKzsaiRuzoYu9RoXdnnIKp8261HL7cg0eJq6Tue0yFO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account73' WHERE `accounts`.`id` = 73 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (73, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account74' WHERE `accounts`.`id` = 74  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account75' WHERE `accounts`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (75, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 74 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 74 WHERE `account_users`.`id` = 51  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (73, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"73", "domain_id"=>"1273816283761238716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 24 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_73_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 24 AND `account_users`.`account_id` = 73 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND `accounts`.`id` = 73 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/73/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$Nwltph/0d2qlYPCyJz8CReg3Y2t8ylDcEswNbDhbfEARs/Hq3jnrS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account76' WHERE `accounts`.`id` = 76 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (76, 25) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account77' WHERE `accounts`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account78' WHERE `accounts`.`id` = 78  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (78, 25) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 77 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 77 WHERE `account_users`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (76, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"76", "domain_id"=>"8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 25 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_76_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND `accounts`.`id` = 76 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`id` = 8 LIMIT 1 Completed 200 OK in 9ms (Views: 2.6ms | ActiveRecord: 1.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$I9iL/OgDmUl8Yk6JB0R88e8TgLnGUcRm0zuAaHZQhxttQOsTiEf4i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account79' WHERE `accounts`.`id` = 79 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (79, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account80' WHERE `accounts`.`id` = 80  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account81' WHERE `accounts`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (81, 26) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 80 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 80 WHERE `account_users`.`id` = 55  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (79, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"79", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 26 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_79_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND `accounts`.`id` = 79 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/79/domains Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$XvBu5M2zUqAGP.WiAkz2U.z2HSGP0kbxEOfhvoJLPkO5IDFMO9lI6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account82' WHERE `accounts`.`id` = 82 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (82, 27) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account83' WHERE `accounts`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account84' WHERE `accounts`.`id` = 84  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (84, 27) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 83 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 83 WHERE `account_users`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (82, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"82", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_82_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND `accounts`.`id` = 82 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/82/domains Completed 302 Found in 7ms (ActiveRecord: 1.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$N8PKxLhA7QmAU2nTH35D2ug8AFh5c.JaLakmwOAwduabMM4ZdQDBq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account85' WHERE `accounts`.`id` = 85 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (85, 28) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account86' WHERE `accounts`.`id` = 86  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account87' WHERE `accounts`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (87, 28) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 86 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 86 WHERE `account_users`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (85, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"85", "domain_id"=>"11"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 28 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_85_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 28 AND `account_users`.`account_id` = 85 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND `accounts`.`id` = 85 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`id` = 11 LIMIT 1 Redirected to http://test.host/settings/account/85/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:51', '2012-11-28 22:39:51', 'teste@teste.com', '$2a$04$TCnaUGSq3T8eYdG6zSBJdOCZ9dNKlHAg1bwrC9WWShE9BM4mzfjaq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', NULL, NULL, NULL, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account88' WHERE `accounts`.`id` = 88 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (88, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account89' WHERE `accounts`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:51', 'jabanilson', NULL, 1, '2012-11-28 22:39:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:51', `updated_at` = '2012-11-28 22:39:51', `subdomain` = 'account90' WHERE `accounts`.`id` = 90  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (90, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 89 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 89 WHERE `account_users`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (88, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"88", "domain_id"=>"12"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 29 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_88_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 29 AND `account_users`.`account_id` = 88 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND `accounts`.`id` = 88 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`id` = 12 LIMIT 1 Redirected to http://test.host/settings/account/88/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$eHAuGIT5zTxa6sP8xJhNEO.RsHDZal0gf/ivB4OPowEEDk6rTjKzy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account91' WHERE `accounts`.`id` = 91 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (91, 30) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account92' WHERE `accounts`.`id` = 92  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account93' WHERE `accounts`.`id` = 93  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (93, 30) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 92 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 92 WHERE `account_users`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (91, NULL, 'verify.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"91", "domain_id"=>"13"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 30 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_91_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 30 AND `account_users`.`account_id` = 91 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND `accounts`.`id` = 91 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`id` = 13 LIMIT 1 Redirected to http://test.host/settings/account/91/domain/13 Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$HUPCz2In0jblMG7UaLBU8epKgvqBRP7G2wim2ikTGOTsDhQYZqZRi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account94' WHERE `accounts`.`id` = 94 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (94, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account95' WHERE `accounts`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account96' WHERE `accounts`.`id` = 96  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (96, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 95 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 95 WHERE `account_users`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (94, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"94", "domain_id"=>"14"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 31 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 31 AND `account_users`.`account_id` = 94 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND `accounts`.`id` = 94 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`id` = 14 LIMIT 1 Redirected to http://test.host/settings/account/94/domain/14 Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$G6/Qi0zDFgwAfNvClI7GieyDW/0cokLJLvXjVAiJc29y.Qm9RHt5y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account97' WHERE `accounts`.`id` = 97 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (97, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account98' WHERE `accounts`.`id` = 98  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account99' WHERE `accounts`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (99, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 98 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 98 WHERE `account_users`.`id` = 67  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (97, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"97", "domain_id"=>"1231241241231241231234"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 32 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_97_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 32 AND `account_users`.`account_id` = 97 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND `accounts`.`id` = 97 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/97/domains Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$sTeL4VCpszLAPvSCFzJnbuW1tRCev1u87wgbaf10O0JuPW3OUGUHS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account100' WHERE `accounts`.`id` = 100 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (100, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account101' WHERE `accounts`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account102' WHERE `accounts`.`id` = 102  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (102, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 101 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 101 WHERE `account_users`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (100, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"100", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 33 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_100_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 33 AND `account_users`.`account_id` = 100 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND `accounts`.`id` = 100 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/100/domains Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$X/brcn3bWDE7pFmpewAite37otIXHrny1//oKfIakPRIH6/XkfANe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account103' WHERE `accounts`.`id` = 103 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (103, 34) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account104' WHERE `accounts`.`id` = 104  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account105' WHERE `accounts`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (105, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 104 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 104 WHERE `account_users`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (103, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"103", "domain_id"=>"17"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 34 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_103_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 34 AND `account_users`.`account_id` = 103 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND `accounts`.`id` = 103 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`id` = 17 LIMIT 1 Redirected to http://test.host/settings/account/103/domains Completed 302 Found in 12ms (ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$q4BVOXIuEJXFdZxrsFRzoOGMRQQCcLhca4ib7rmf3wqJ4UIy2zQv.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account106' WHERE `accounts`.`id` = 106 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (106, 35) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account107' WHERE `accounts`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account108' WHERE `accounts`.`id` = 108  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (108, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 107 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 107 WHERE `account_users`.`id` = 73  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (106, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"106", "domain_id"=>"18"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 35 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_106_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 35 AND `account_users`.`account_id` = 106 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND `accounts`.`id` = 106 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`id` = 18 LIMIT 1 Redirected to http://test.host/settings/account/106/domains Completed 302 Found in 87ms (ActiveRecord: 2.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$bgdXbRqW3m4lgDIrhKxQRuUwjhBE4k/Ts01.QPCNx7NNC48SNwVuO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account109' WHERE `accounts`.`id` = 109 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (109, 36) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account110' WHERE `accounts`.`id` = 110  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account111' WHERE `accounts`.`id` = 111  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (111, 36) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 110 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 110 WHERE `account_users`.`id` = 75  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (109, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"109", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 36 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_109_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 36 AND `account_users`.`account_id` = 109 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND `accounts`.`id` = 109 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/109/domains Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$jCxe.KmvQC9EvKqgeWt2tuX0DsSp6zLQUcxP2oA7SWYIGw72SJPCq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account112' WHERE `accounts`.`id` = 112 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (112, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account113' WHERE `accounts`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account114' WHERE `accounts`.`id` = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (114, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 113 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 113 WHERE `account_users`.`id` = 77  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (112, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"112", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 37 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_112_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 37 AND `account_users`.`account_id` = 112 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND `accounts`.`id` = 112 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/112/domains Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$U12IV5Hs7tmsRWx4qAaUre35LisBxddcF.VRlya5FE9cqZi80MFvu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account115' WHERE `accounts`.`id` = 115 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (115, 38) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account116' WHERE `accounts`.`id` = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account117' WHERE `accounts`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (117, 38) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 116 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 116 WHERE `account_users`.`id` = 79  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"115"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 38 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_115_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 38 AND `account_users`.`account_id` = 115 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND `accounts`.`id` = 115 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 115) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:39:52' WHERE `accounts`.`id` = 115  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/115/domains Completed 302 Found in 14ms (ActiveRecord: 3.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$j.tefgHNcixgPuWMzcJYru0wuNl6RkDmEPg9V7SN/mzrAzslDHfJW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account118' WHERE `accounts`.`id` = 118 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (118, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account119' WHERE `accounts`.`id` = 119  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account120' WHERE `accounts`.`id` = 120  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (120, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 119 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 119 WHERE `account_users`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"118"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 39 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_118_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 39 AND `account_users`.`account_id` = 118 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND `accounts`.`id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 118) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:39:52' WHERE `accounts`.`id` = 118  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/118/domains Completed 302 Found in 13ms (ActiveRecord: 3.5ms)  (5.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$qFHKjIQfyes01gicLK2Mh.wCN/jm9a/W/MW1dThPVjEdkm3z5fG1S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account121' WHERE `accounts`.`id` = 121 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (121, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account122' WHERE `accounts`.`id` = 122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account123' WHERE `accounts`.`id` = 123  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (123, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 122 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 122 WHERE `account_users`.`id` = 83  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 40 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 121) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:39:52' WHERE `accounts`.`id` = 121  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/121/domains Completed 302 Found in 13ms (ActiveRecord: 3.2ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 2.3ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$5yGFGq7s.5C7lPBcQIlwDuDC8G2UDObD/Avw8mLPjeh1H5teu1JDi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account124' WHERE `accounts`.`id` = 124 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (124, 41) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account125' WHERE `accounts`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account126' WHERE `accounts`.`id` = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (126, 41) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 125 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 125 WHERE `account_users`.`id` = 85  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"124"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 41 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_124_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 41 AND `account_users`.`account_id` = 124 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (9.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$YSVjnhFEDBQkdKLWM0CNfewWb9/PrFMUyPkgvwaCuMxW2NSUC/a5u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account127' WHERE `accounts`.`id` = 127 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (127, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account128' WHERE `accounts`.`id` = 128  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account129' WHERE `accounts`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (129, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 128 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 128 WHERE `account_users`.`id` = 87  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 42 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_127_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$8rcdvObAW/3xVUB2XoKPkebS/RDJmj4kNZ4YUjznNuxIFUXtLZpdK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account130' WHERE `accounts`.`id` = 130 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (130, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account131' WHERE `accounts`.`id` = 131  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account132' WHERE `accounts`.`id` = 132  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (132, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 131 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 131 WHERE `account_users`.`id` = 89  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"130", "domain_id"=>"1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 43 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_130_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (15.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:52', '2012-11-28 22:39:52', 'teste@teste.com', '$2a$04$Iv2P/CBlQnWZp89nCziTvOvoMd3Z3K9fcLulcIy2XIBVLH5YVc6NK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', NULL, NULL, NULL, '2012-11-28 22:39:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account133' WHERE `accounts`.`id` = 133 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (133, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account134' WHERE `accounts`.`id` = 134  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:52', 'jabanilson', NULL, 1, '2012-11-28 22:39:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:52', `updated_at` = '2012-11-28 22:39:52', `subdomain` = 'account135' WHERE `accounts`.`id` = 135  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (135, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 134 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 134 WHERE `account_users`.`id` = 91  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"133"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 44 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_133_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 44 AND `account_users`.`account_id` = 133 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$olt5Nn/pFslyXWKbGtOyPuzNQ7hQ.F9w8xXJ0xguuA0mK0CCFUm8K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account136' WHERE `accounts`.`id` = 136 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (136, 45) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account137' WHERE `accounts`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account138' WHERE `accounts`.`id` = 138  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (138, 45) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 137 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 137 WHERE `account_users`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 136 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"136", "user_id"=>"45"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 45 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 AND `account_users`.`account_id` = 136 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND `accounts`.`id` = 136 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 136 AND `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136) Completed 200 OK in 15ms (Views: 3.4ms | ActiveRecord: 2.6ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$Ktd3OEMq/mmF8gGfOyftN.iplxVrJ4ZvLZNTyPnHx4P6sOukT6vBO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account139' WHERE `accounts`.`id` = 139 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (139, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account140' WHERE `accounts`.`id` = 140  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account141' WHERE `accounts`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (141, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 140 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 140 WHERE `account_users`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 139 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"139", "user_id"=>"46"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 46 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 AND `account_users`.`account_id` = 139 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND `accounts`.`id` = 139 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 139 AND `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139) Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$5cPRy3oIBKXfY/R65DFm4uLDLh3EWzf50ZcCahEVFnvefGpcgLToK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account142' WHERE `accounts`.`id` = 142 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (142, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account143' WHERE `accounts`.`id` = 143  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account144' WHERE `accounts`.`id` = 144  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (144, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 143 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 143 WHERE `account_users`.`id` = 97  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142) Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"142", "user_id"=>"47"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 47 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 AND `account_users`.`account_id` = 142 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND `accounts`.`id` = 142 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 142 AND `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 142 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/142/users Completed 302 Found in 16ms (ActiveRecord: 3.3ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account145' WHERE `accounts`.`id` = 145  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$wCPSd2hGHL7ccdWLYwZjcusRxE7mk6cW32RDzD907xtid/DFAYiP2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account146' WHERE `accounts`.`id` = 146 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (146, 48) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account147' WHERE `accounts`.`id` = 147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account148' WHERE `accounts`.`id` = 148  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (148, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 147 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 147 WHERE `account_users`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 145\n created_at: 2012-11-28 22:39:53.298936000Z\n updated_at: 2012-11-28 22:39:53.298936000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account145\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_145_destroy', '2012-11-28 22:39:53', '2012-11-28 22:39:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"145"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 48 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 145 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_145_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 8ms (Views: 3.6ms | ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account149' WHERE `accounts`.`id` = 149  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$fGWJVIc4ziF9n57p0SA8vuA0sDSIwjpC09y9YvN0Nu50nCLvNBksa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account150' WHERE `accounts`.`id` = 150 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 150 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (150, 49) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account151' WHERE `accounts`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account152' WHERE `accounts`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (152, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 151 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 151 WHERE `account_users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"149"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 49 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 149 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_149_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 15.7ms | ActiveRecord: 1.1ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$zaRhmyl/sTIIwm2i/UBrPuql.w0S/rMsY1sa06LDpn7evKI9ObPqO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account153' WHERE `accounts`.`id` = 153 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (153, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account154' WHERE `accounts`.`id` = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account155' WHERE `accounts`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (155, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 154 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 154 WHERE `account_users`.`id` = 103  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"153"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 50 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_153_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 1.2ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$2Xsz89NJTn/V6TQPBo5geubneLHfzcnGoqsr8lbRz2LaDoO1n6pDm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account156' WHERE `accounts`.`id` = 156 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (156, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account157' WHERE `accounts`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account158' WHERE `accounts`.`id` = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (158, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 157 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 157 WHERE `account_users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 51 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Completed 200 OK in 7ms (Views: 1.8ms | ActiveRecord: 1.5ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Completed 404 Not Found in 2ms  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$siCsV.s7cKw7WZKZcwCwu.FBDwRF7/KbrLiJiFxcwu5W1NxWv8ICy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account159' WHERE `accounts`.`id` = 159 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (159, 52) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account160' WHERE `accounts`.`id` = 160  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account161' WHERE `accounts`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (161, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 160 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 160 WHERE `account_users`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"159", "user_id"=>"52"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 52 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_159_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 159 AND `account_users`.`user_id` = 52 LIMIT 1 Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 1.0ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$lMkBubP0/28cffdPTtuJa.lKxIhc11ifYsEJgbaHUruXdgHgtSRc6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account162' WHERE `accounts`.`id` = 162 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account163' WHERE `accounts`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account164' WHERE `accounts`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (164, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 163 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 163 WHERE `account_users`.`id` = 109  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'targetdestroy@teste.teste', '$2a$04$RdSw7PB7kQc/MDBarRKucu3cM4T050pC104XWuwvf3iC0rcn/hWyC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account165' WHERE `accounts`.`id` = 165 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (165, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"54"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 53 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$Lp8AhqCk/DtLVbIqFYHwJ.NqfBsOZkmeqnujM9VJIRHYUwOygB6Fu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account166' WHERE `accounts`.`id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 55) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account167' WHERE `accounts`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account168' WHERE `accounts`.`id` = 168  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (168, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 167 WHERE `account_users`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'targetdestroy@teste.teste', '$2a$04$3fV7UDflzVz07QmcIJ.xKecrO8lxgPApj.Pqi0D5HNvrGdzbHonOi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account169' WHERE `accounts`.`id` = 169 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (169, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"166", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 55 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_166_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 55 AND `account_users`.`account_id` = 166 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 166 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$V7n4IkeFOY/QNrZ5wcihtuXcpPzawohyiDfboFTh/3hayl3ks21aO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account170' WHERE `accounts`.`id` = 170 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account171' WHERE `accounts`.`id` = 171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account172' WHERE `accounts`.`id` = 172  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (172, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 171 WHERE `account_users`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'targetdestroy@teste.teste', '$2a$04$kTzVij.TeEwWE7CPkl6ojOkLumXGN0YWsMBAnkby.UprXhMPAMz.O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account173' WHERE `accounts`.`id` = 173 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (173, 58) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 170 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 237 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"170", "user_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_170_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 57 AND `account_users`.`account_id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 170 AND `account_users`.`user_id` = 58 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 119\n account_id: 170\n user_id: 58\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_119_destroy', '2012-11-28 22:39:53', '2012-11-28 22:39:53')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_119_destroy' LIMIT 1 Redirected to http://test.host/settings/account/170/users Completed 302 Found in 16ms (ActiveRecord: 4.0ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'teste@teste.com', '$2a$04$lJu.CwHbWtgFzKhTMdi9ROVPno3qKlJBpYSy2Fak7Qu66uSu2MCVW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account174' WHERE `accounts`.`id` = 174 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account175' WHERE `accounts`.`id` = 175  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', 'jabanilson', NULL, 1, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account176' WHERE `accounts`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (176, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 175 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 175 WHERE `account_users`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:53', '2012-11-28 22:39:53', 'targetdestroy@teste.teste', '$2a$04$38fzq5lG8hyjimNJq9Pvd.1WOp.H5GcF8hwTwTAngRw87mpYugS8G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:53') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:53', NULL, NULL, NULL, '2012-11-28 22:39:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:53', `updated_at` = '2012-11-28 22:39:53', `subdomain` = 'account177' WHERE `accounts`.`id` = 177 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (177, 60) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 60) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 174 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 246 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"174", "user_id"=>"60"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 59 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_174_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 59 AND `account_users`.`account_id` = 174 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 174 AND `account_users`.`user_id` = 60 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 11ms  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$EDXwaHxDm.EK41mWxaRQp.6Jc74v3vtXJNXzaPrKq20uIkMs.swOe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account178' WHERE `accounts`.`id` = 178 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account179' WHERE `accounts`.`id` = 179  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account180' WHERE `accounts`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (180, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 179 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 179 WHERE `account_users`.`id` = 125  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'targetdestroy@teste.teste', '$2a$04$rHpxUTtEEbi/sfgk2VGl6.2l6y5PcfFxeJ/QE52d7e5bdWqgWQIHi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account181' WHERE `accounts`.`id` = 181 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 181 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (181, 62) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 62) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (124) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (178)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 178 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 249 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"178", "user_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_178_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 61 AND `account_users`.`account_id` = 178 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Completed 404 Not Found in 9ms  (1.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$BWZsyzJz7oCsqk027yEvdeNYmiOXABrUDyNsKtX6O5rEgtrSsgf0y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account182' WHERE `accounts`.`id` = 182 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account183' WHERE `accounts`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account184' WHERE `accounts`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (184, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 183 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 183 WHERE `account_users`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'target@test.test', '$2a$04$PQazMbNv.vepaN0W8I45nu2aFPiBa/PAd1/9W7e..aXrmvGtCm17S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account185' WHERE `accounts`.`id` = 185 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 185 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (185, 64) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 64) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 131  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 182 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 264 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 265  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:54', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 131\n account_id: 182\n user_id: 64\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_131_destroy', '2012-11-28 22:39:54', '2012-11-28 22:39:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"64"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 63 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$QOaWFa2vnXzs4pCDfsNNu.cefGgGCHU1Y2fHXw5c9kj8Wq1B7sNPq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account186' WHERE `accounts`.`id` = 186 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account187' WHERE `accounts`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account188' WHERE `accounts`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (188, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 187 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 187 WHERE `account_users`.`id` = 133  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'target@test.test', '$2a$04$5Cv5YITgWG8wzuIeJLXNGOd9eCKhZtkStOIL9GK8OIH4TH1/iMDIe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account189' WHERE `accounts`.`id` = 189 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (189, 66) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 66) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 135  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 186 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 273 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:54', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 135\n account_id: 186\n user_id: 66\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_135_destroy', '2012-11-28 22:39:54', '2012-11-28 22:39:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"186", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 65 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_186_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 65 AND `account_users`.`account_id` = 186 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 186 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 9ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$e231/3kzocxSsrKAPYyxWO3W3gRYPvlNWMTUQ6xQvxeZ1OXzppVei', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account190' WHERE `accounts`.`id` = 190 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account191' WHERE `accounts`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account192' WHERE `accounts`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (192, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 191 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 191 WHERE `account_users`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'target@test.test', '$2a$04$BXjNWysF90KWGQc7S73Xfe4tlUTxt3y6Lh8keHnjj3gntLIrNR0IW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account193' WHERE `accounts`.`id` = 193 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (193, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 139  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 282 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:54', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 139\n account_id: 190\n user_id: 68\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_139_destroy', '2012-11-28 22:39:54', '2012-11-28 22:39:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"190", "user_id"=>"68"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 67 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_190_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 190 AND `account_users`.`user_id` = 68 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/190/users Completed 302 Found in 12ms (ActiveRecord: 3.4ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$DTS4uY72OGHwugM3CsPPrOVABUOLKSgqywqk4jLBmJCtPPo5NHK3u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account194' WHERE `accounts`.`id` = 194 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 69) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account195' WHERE `accounts`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account196' WHERE `accounts`.`id` = 196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (196, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 195 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 195 WHERE `account_users`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'target@test.test', '$2a$04$wXKdScGtdkh9SNSAN.aq5.SkA9OeHPg/RLnFkILhS.Qa5kLmTe0LS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account197' WHERE `accounts`.`id` = 197 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (197, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 143  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 291 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:54', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 143\n account_id: 194\n user_id: 70\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_143_destroy', '2012-11-28 22:39:54', '2012-11-28 22:39:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"194", "user_id"=>"70"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 69 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_194_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 194 AND `account_users`.`user_id` = 70 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/194/users Completed 302 Found in 12ms (ActiveRecord: 3.5ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$UYrbIg80lhwu0Aed3a9ew.YJGnoR3R7GAgGDcDfOgVYGy18OHrXje', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account198' WHERE `accounts`.`id` = 198 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account199' WHERE `accounts`.`id` = 199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account200' WHERE `accounts`.`id` = 200  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (200, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 199 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 199 WHERE `account_users`.`id` = 145  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'target@test.test', '$2a$04$SOWKE48WwEocEoMemdrTCuQ/bsOlU/7X/TFDlUyVI8..pyvLwte1u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account201' WHERE `accounts`.`id` = 201 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 201 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (201, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 72) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 147  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 300 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:54', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 147\n account_id: 198\n user_id: 72\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_147_destroy', '2012-11-28 22:39:54', '2012-11-28 22:39:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'notowner@account.test', '$2a$04$UnHun1euHCzEIZRxlilsGe4OE3hHBJrp5QPegTamjZbR9cn7t4.3O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account202' WHERE `accounts`.`id` = 202 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (202, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account203' WHERE `accounts`.`id` = 203  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (203, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 198 WHERE `account_users`.`id` = 149  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 294 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"198", "user_id"=>"72"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 71 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_198_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$Whtli9WcTwlq0g6CWlmCdeZYFmFHMwJMQEAouyYkxYBDihwQikopS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account204' WHERE `accounts`.`id` = 204 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (204, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account205' WHERE `accounts`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account206' WHERE `accounts`.`id` = 206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (206, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 205 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 205 WHERE `account_users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account207' WHERE `accounts`.`id` = 207  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"207"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 74 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 74 AND `account_users`.`account_id` = 207 LIMIT 1 Completed 404 Not Found in 3ms  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$IYmsogLayZX9BWmLOjJ79OpOhFjCIHV093Urvr90BU81Y7c0CR3OC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account208' WHERE `accounts`.`id` = 208 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (208, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account209' WHERE `accounts`.`id` = 209  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', 'jabanilson', NULL, 1, '2012-11-28 22:39:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account210' WHERE `accounts`.`id` = 210  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (210, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 209 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 209 WHERE `account_users`.`id` = 153  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"208"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 75 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 75 AND `account_users`.`account_id` = 208 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 Completed 200 OK in 20ms (Views: 3.6ms | ActiveRecord: 3.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:54', '2012-11-28 22:39:54', 'teste@teste.com', '$2a$04$KTwrCn4tm2SJiJkNVSTRUeH7APmoQXjoaTWRuZStmCA5e8rDa75Qi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:54', NULL, NULL, NULL, '2012-11-28 22:39:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:54', `updated_at` = '2012-11-28 22:39:54', `subdomain` = 'account211' WHERE `accounts`.`id` = 211 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (211, 76) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account212' WHERE `accounts`.`id` = 212  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account213' WHERE `accounts`.`id` = 213  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (213, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 212 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 212 WHERE `account_users`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"211"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 76 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 76 AND `account_users`.`account_id` = 211 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 211 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (211, 'create@controller.teste', 76, NULL, '2012-11-28 22:39:55', 'JbYx3E6MhfLVZUw7DJhIE5dYTu8') Sent mail to create@controller.teste (151ms) Date: Wed, 28 Nov 2012 20:39:55 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b692bb504ee_1a0480435d4835928@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1JbYx3E6MhfLVZUw7DJhIE5dYTu8  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/211/users Completed 302 Found in 407ms (ActiveRecord: 2.4ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:55', '2012-11-28 22:39:55', 'teste@teste.com', '$2a$04$1iurAjdK5ZJHqIgN6NazUe7rHwLpGdkqz80BYeRb2UVwYVRpl..l2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', NULL, NULL, NULL, '2012-11-28 22:39:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account214' WHERE `accounts`.`id` = 214 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 214 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (214, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account215' WHERE `accounts`.`id` = 215  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account216' WHERE `accounts`.`id` = 216  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (216, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 215 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 215 WHERE `account_users`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"214"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 77 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 77 AND `account_users`.`account_id` = 214 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 214 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (214, 'create@controller.teste', 77, NULL, '2012-11-28 22:39:55', 'VRZg6CG7B2wQifTh2pTwVr7LGhY') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 20:39:55 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b692bb7cd9b_1a0480435d4836054@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2VRZg6CG7B2wQifTh2pTwVr7LGhY  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/214/users Completed 302 Found in 31ms (ActiveRecord: 2.6ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:55', '2012-11-28 22:39:55', 'teste@teste.com', '$2a$04$X.HA9cEQDkq/YyJ.K3bxteZjWito4Ruw.IA7t82FoY22ZGAcEjQXK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', NULL, NULL, NULL, '2012-11-28 22:39:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account217' WHERE `accounts`.`id` = 217 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (217, 78) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account218' WHERE `accounts`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account219' WHERE `accounts`.`id` = 219  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (219, 78) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 218 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 218 WHERE `account_users`.`id` = 159  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 78 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 217 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (217, 'create@controller.teste', 78, NULL, '2012-11-28 22:39:55', 'r0kTRK0n79WmQ17_ANdCZ0h0css') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 20:39:55 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b692bb8fc5e_1a0480435d4836152@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3r0kTRK0n79WmQ17_ANdCZ0h0css  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/217/users Completed 302 Found in 30ms (ActiveRecord: 2.3ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 Completed 200 OK in 8ms (Views: 1.6ms | ActiveRecord: 1.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:55', '2012-11-28 22:39:55', 'teste@teste.com', '$2a$04$SY1wP/6WfIJXtH5cQJycLu22jc3ngtUHt1s6godDi3VANefVzeYTO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', NULL, NULL, NULL, '2012-11-28 22:39:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account220' WHERE `accounts`.`id` = 220 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 220 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (220, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account221' WHERE `accounts`.`id` = 221  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account222' WHERE `accounts`.`id` = 222  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (222, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 221 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 221 WHERE `account_users`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account223' WHERE `accounts`.`id` = 223  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 223 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (223, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:39:55', '_iDgrMLnEtYWlLcpHO3OCEvlpr4') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:39:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692bba3f65_1a0480435d4836276@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4_iDgrMLnEtYWlLcpHO3OCEvlpr4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 79 WHERE `user_invitations`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 79 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:55', '2012-11-28 22:39:55', 'teste@teste.com', '$2a$04$wp9j53qUm/k10AaANcTkg.Sz8OkRRp.sCnMyCrQ/oPMkt8/mLIH76', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', NULL, NULL, NULL, '2012-11-28 22:39:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account224' WHERE `accounts`.`id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 224 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (224, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account225' WHERE `accounts`.`id` = 225  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account226' WHERE `accounts`.`id` = 226  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (226, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 225 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 225 WHERE `account_users`.`id` = 163  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account227' WHERE `accounts`.`id` = 227  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 227 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (227, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:39:55', 'dSEnWJukJeJFxewNlfnkoleveGU') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:39:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692bbb6c68_1a0480435d483636b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5dSEnWJukJeJFxewNlfnkoleveGU  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = 80 WHERE `user_invitations`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"5dSEnWJukJeJFxewNlfnkoleveGU"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 5 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:55', '2012-11-28 22:39:55', 'teste@teste.com', '$2a$04$RQjbA1xCbvOYsqFgo64SbukTU846r8aClPbhzKmb0a5uzXIBIjrVa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', NULL, NULL, NULL, '2012-11-28 22:39:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account228' WHERE `accounts`.`id` = 228 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (228, 81) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account229' WHERE `accounts`.`id` = 229  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account230' WHERE `accounts`.`id` = 230  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (230, 81) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 229 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 229 WHERE `account_users`.`id` = 165  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account231' WHERE `accounts`.`id` = 231  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account232' WHERE `accounts`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 232 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (232, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:39:55', 'cU5CB7kpl4GL2C2Yc9m4_l-dC8w') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:39:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692bbdde7f_1a0480435d48364e4@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/6cU5CB7kpl4GL2C2Yc9m4_l-dC8w  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 231 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 231 WHERE `user_invitations`.`id` = 6  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 81 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:55', '2012-11-28 22:39:55', 'teste@teste.com', '$2a$04$GlSpCcwJ/CzD3y6PuNeFIeXjPMzIH8CKmDPefaeKtNrHcfP1H.fFC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', NULL, NULL, NULL, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account233' WHERE `accounts`.`id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (233, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account234' WHERE `accounts`.`id` = 234  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account235' WHERE `accounts`.`id` = 235  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (235, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 234 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 234 WHERE `account_users`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account236' WHERE `accounts`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:55', 'jabanilson', NULL, 1, '2012-11-28 22:39:55')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:55', `updated_at` = '2012-11-28 22:39:55', `subdomain` = 'account237' WHERE `accounts`.`id` = 237  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 237 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (237, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:39:55', 'UtBz94Cob_SpTdp-HiSd9xS52R0') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:39:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692bbf1dfb_1a0480435d4836552@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/7UtBz94Cob_SpTdp-HiSd9xS52R0  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 236 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 236 WHERE `user_invitations`.`id` = 7  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"7UtBz94Cob_SpTdp-HiSd9xS52R0"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 82 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 7 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 236 AND `account_users`.`user_id` = 82  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (236, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 4.4ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$QIuqJLDnrEoVxJGNGNzySeqYAz1Ne0nnJaFijQXTvFiUnWcBSOjyi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account238' WHERE `accounts`.`id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (238, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account239' WHERE `accounts`.`id` = 239  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account240' WHERE `accounts`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (240, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 239 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 239 WHERE `account_users`.`id` = 170  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account241' WHERE `accounts`.`id` = 241  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account242' WHERE `accounts`.`id` = 242  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 242 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (242, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:39:56', 'w03qRV1x7WQ3cpu0TXdB_GeBn_w') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:39:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692bc158b3_1a0480435d48366b3@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/8w03qRV1x7WQ3cpu0TXdB_GeBn_w  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 241 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 241 WHERE `user_invitations`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (241, 83) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"8w03qRV1x7WQ3cpu0TXdB_GeBn_w"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 83 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 241 AND `account_users`.`user_id` = 83 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$x9L27e55RrU/PD/XBGfvkulmomHcsUoW9qwsOgHvyGFnGJr/J9.7O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account243' WHERE `accounts`.`id` = 243 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (243, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account244' WHERE `accounts`.`id` = 244  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account245' WHERE `accounts`.`id` = 245  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (245, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 244 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 244 WHERE `account_users`.`id` = 173  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account246' WHERE `accounts`.`id` = 246  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account247' WHERE `accounts`.`id` = 247  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 247 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (247, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:39:56', 'yf_1vNRTLIJ63lOf5CtZhw_nF_E') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:39:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692bc2d0e9_1a0480435d483675e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9yf_1vNRTLIJ63lOf5CtZhw_nF_E  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 246 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 246 WHERE `user_invitations`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (246, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9yf_1vNRTLIJ63lOf5CtZhw_nF_E"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 84 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 246 AND `account_users`.`user_id` = 84 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$Ylc27q79Ndq48UNQ3DFT0uT2bdBBUsJoDdzMBWdl0oNlB3QFhLhn.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account248' WHERE `accounts`.`id` = 248 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (248, 85) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account249' WHERE `accounts`.`id` = 249  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account250' WHERE `accounts`.`id` = 250  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (250, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 249 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 249 WHERE `account_users`.`id` = 176  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 85 LIMIT 1 Completed 404 Not Found in 2ms  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$18ym3LraCYtDT6VXrvZq4uX/aXbD7XOBIJeqQROPeBJN0O8hECaZe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account251' WHERE `accounts`.`id` = 251 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 251 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (251, 86) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account252' WHERE `accounts`.`id` = 252  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account253' WHERE `accounts`.`id` = 253  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (253, 86) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 252 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 252 WHERE `account_users`.`id` = 178  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 86 LIMIT 1 Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$A7uwC5x6H0LfTh/oIozDLer4GSbhQZnL80usRGeUkql3C/w12Yr2G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account254' WHERE `accounts`.`id` = 254 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (254, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account255' WHERE `accounts`.`id` = 255  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account256' WHERE `accounts`.`id` = 256  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (256, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 255 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 255 WHERE `account_users`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 87 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 87  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 22:39:56' WHERE `users`.`id` = 87  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 97ms (Views: 1.8ms | ActiveRecord: 4.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$6am902izzLj0rAnU4CDRp.jM7nBNVhFaZsyMZ9p36Enk8klIWdfIy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account257' WHERE `accounts`.`id` = 257 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 257 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (257, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account258' WHERE `accounts`.`id` = 258  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account259' WHERE `accounts`.`id` = 259  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (259, 88) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 258 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 258 WHERE `account_users`.`id` = 182  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 88 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 88  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 22:39:56' WHERE `users`.`id` = 88  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account260' WHERE `accounts`.`id` = 260  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account261' WHERE `accounts`.`id` = 261  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (261, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 260 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 260 WHERE `account_users`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = 257) LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$iLW/Yed3gbkTs3nqmHq1c.D5K0zJ4.uZVmMRkG1VuluobDl8zojua', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account262' WHERE `accounts`.`id` = 262 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 262 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (262, 89) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account263' WHERE `accounts`.`id` = 263  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account264' WHERE `accounts`.`id` = 264  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (264, 89) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 263 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 263 WHERE `account_users`.`id` = 185  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 89 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:56', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 89\n email: teste@teste.com\n encrypted_password: $2a$04$iLW/Yed3gbkTs3nqmHq1c.D5K0zJ4.uZVmMRkG1VuluobDl8zojua\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:39:56.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:39:56.000000000Z\n updated_at: 2012-11-28 22:39:56.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_89_destroy', '2012-11-28 22:39:56', '2012-11-28 22:39:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$3hVXgCn21kY04zOZ3lhx6e7khnO.fcvqvMWLt4Bz8R2YewUY43VG6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account265' WHERE `accounts`.`id` = 265 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 265 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (265, 90) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account266' WHERE `accounts`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account267' WHERE `accounts`.`id` = 267  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (267, 90) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 266 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 266 WHERE `account_users`.`id` = 187  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 90 LIMIT 1 Completed 404 Not Found in 2ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$NQV58s5Xfnzo3uL1BfnpLOuX87VSBdgE7uX3MDsJ1I4OhSj.18kay', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account268' WHERE `accounts`.`id` = 268 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 268 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (268, 91) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account269' WHERE `accounts`.`id` = 269  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account270' WHERE `accounts`.`id` = 270  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (270, 91) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 269 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 269 WHERE `account_users`.`id` = 189  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:56', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 91\n email: teste@teste.com\n encrypted_password: $2a$04$NQV58s5Xfnzo3uL1BfnpLOuX87VSBdgE7uX3MDsJ1I4OhSj.18kay\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:39:56.656431000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:39:56.656828000Z\n updated_at: 2012-11-28 22:39:56.656828000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_91_destroy', '2012-11-28 22:39:56', '2012-11-28 22:39:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$pi8kmHj6yemOUoA1gbQ2I.RRXFhp7UVU1RI0FIRsFN4j6PxpsEQOu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account271' WHERE `accounts`.`id` = 271 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 271 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (271, 92) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account272' WHERE `accounts`.`id` = 272  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account273' WHERE `accounts`.`id` = 273  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (273, 92) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 272 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 272 WHERE `account_users`.`id` = 191  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 92 WHERE `social_accounts`.`id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 AND `social_accounts`.`id` = 1 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$OGRMIVk90JOpLzkcQWjD9.why.srRTnefVtf7wd9aqd6pa34H/ZKG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account274' WHERE `accounts`.`id` = 274 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 274 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (274, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account275' WHERE `accounts`.`id` = 275  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account276' WHERE `accounts`.`id` = 276  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (276, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 275 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 275 WHERE `account_users`.`id` = 193  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 93 WHERE `social_accounts`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"2"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 AND `social_accounts`.`id` = 2 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', 'teste@teste.com', '$2a$04$PvgfDjOu/.FNuLabzdDKpe9.p9qPpCEz6eMhWeQsNoP16p4Pmr0Oy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account277' WHERE `accounts`.`id` = 277 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 277 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (277, 94) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account278' WHERE `accounts`.`id` = 278  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', 'jabanilson', NULL, 1, '2012-11-28 22:39:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account279' WHERE `accounts`.`id` = 279  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (279, 94) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 278 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 278 WHERE `account_users`.`id` = 195  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 94 WHERE `social_accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:56', '2012-11-28 22:39:56', '', '$2a$04$CBa/sCNYeVmoQgqpDzgqWe/ltB.RvWavBKc3EPLDMpZW2zXG4oBBW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.3ms) UPDATE `social_accounts` SET `user_id` = 95 WHERE `social_accounts`.`id` = 4 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:56', NULL, NULL, NULL, '2012-11-28 22:39:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:56', `updated_at` = '2012-11-28 22:39:56', `subdomain` = 'account280' WHERE `accounts`.`id` = 280 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 280 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (280, 95) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 AND `social_accounts`.`id` = 4 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', 'teste@teste.com', '$2a$04$hl/DuiVCCmkly1ByRpINceFtmuqCs1KK2rnLFRarWozJQvfjbq..m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account281' WHERE `accounts`.`id` = 281 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (281, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account282' WHERE `accounts`.`id` = 282  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account283' WHERE `accounts`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (283, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 282 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 282 WHERE `account_users`.`id` = 198  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 96 WHERE `social_accounts`.`id` = 5  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', '', '$2a$04$N5m/6PSgp/oClh5Sb/Z9k.jSkinApMV5KbEFbeCwF/ybDABn3Jeou', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.4ms) UPDATE `social_accounts` SET `user_id` = 97 WHERE `social_accounts`.`id` = 6 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account284' WHERE `accounts`.`id` = 284 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 284 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (284, 97) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"6"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 AND `social_accounts`.`id` = 6 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', 'teste@teste.com', '$2a$04$2fnnPmZEDnyRJWwtvyLKa.NySQ7.k9eO2gx8Osi6YL80cJ8zrN8Tq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account285' WHERE `accounts`.`id` = 285 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 285 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (285, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account286' WHERE `accounts`.`id` = 286  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account287' WHERE `accounts`.`id` = 287  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (287, 98) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 286 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 286 WHERE `account_users`.`id` = 201  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 98 WHERE `social_accounts`.`id` = 7  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 98 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 98 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', 'teste@teste.com', '$2a$04$HLB7Ov5vir7sYv593Z1NAenxO5rIAiQY5Nd7CnTEY7grfOyGcKxB6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account288' WHERE `accounts`.`id` = 288 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 288 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (288, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account289' WHERE `accounts`.`id` = 289  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account290' WHERE `accounts`.`id` = 290  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (290, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 289 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 289 WHERE `account_users`.`id` = 203  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 99 WHERE `social_accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 99 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 99 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', 'teste@teste.com', '$2a$04$hnMArkNALxhlgmj/0LKb7uTdzmFl/yZRtFDLRf4q2nOEwF4y9F6Am', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account291' WHERE `accounts`.`id` = 291 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 291 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (291, 100) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account292' WHERE `accounts`.`id` = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account293' WHERE `accounts`.`id` = 293  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (293, 100) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 292 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 292 WHERE `account_users`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 100 WHERE `social_accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account294' WHERE `accounts`.`id` = 294 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 294 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (294, 101) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 101\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:39:57.221970000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:39:57.222740000Z\n updated_at: 2012-11-28 22:39:57.222740000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_101', '2012-12-05 22:39:57', '2012-11-28 22:39:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 101 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 101 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 101) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$YKxA9LzYpM63aYPq3BDN0utEMcRmHmXxqRvI.tVv9htzmY9vZ.bSG', `updated_at` = '2012-11-28 22:39:57' WHERE `users`.`id` = 101  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_101' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 AND (accounts.id = 291) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', 'teste@teste.com', '$2a$04$hosHoXBf9pnrHig/r0wskuNXHpKfomqpAUkKCEzPzgRehETxZpDj6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account295' WHERE `accounts`.`id` = 295 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 295 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (295, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account296' WHERE `accounts`.`id` = 296  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account297' WHERE `accounts`.`id` = 297  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (297, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 296 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 296 WHERE `account_users`.`id` = 208  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 102 WHERE `social_accounts`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account298' WHERE `accounts`.`id` = 298 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 298 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (298, 103) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 103\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:39:57.304996000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:39:57.305772000Z\n updated_at: 2012-11-28 22:39:57.305772000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_103', '2012-12-05 22:39:57', '2012-11-28 22:39:57')  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 103 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 103 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 103) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$qVotTPrRh1EsGZpgJ4TNxe2xshx/DHSfyLZSkY.bsORFQrA2701eW', `updated_at` = '2012-11-28 22:39:57' WHERE `users`.`id` = 103  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_103' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 AND (accounts.id = 295) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.8ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', 'teste@teste.com', '$2a$04$cN94JnTJFiRExl3DM0Qff.JULvlU4WbF/38zoYUunVBfviCetX9kq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account299' WHERE `accounts`.`id` = 299 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (299, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account300' WHERE `accounts`.`id` = 300  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account301' WHERE `accounts`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (301, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 300 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 300 WHERE `account_users`.`id` = 211  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 104 WHERE `social_accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account302' WHERE `accounts`.`id` = 302 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (302, 105) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 [1m (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 105\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:39:57.390673000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:39:57.391326000Z\n updated_at: 2012-11-28 22:39:57.391326000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_105', '2012-12-05 22:39:57', '2012-11-28 22:39:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 105 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 105 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 105) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$CqEnJ8v4hJy92q6dhL63Neja1nluIclRt6GucdaKhGqGvKFHTu/xG', `updated_at` = '2012-11-28 22:39:57' WHERE `users`.`id` = 105  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_105' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 AND (accounts.id = 299) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.4ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', 'teste@teste.com', '$2a$04$9EsBYqerpLSkWvIYXqCefOJqDbngkNC6BsYbxeqxXUBTKD6D1PBLK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account303' WHERE `accounts`.`id` = 303 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 303 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (303, 106) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account304' WHERE `accounts`.`id` = 304  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', 'jabanilson', NULL, 1, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account305' WHERE `accounts`.`id` = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (305, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 304 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 304 WHERE `account_users`.`id` = 214  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 106 WHERE `social_accounts`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account306' WHERE `accounts`.`id` = 306 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 306 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (306, 107) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 107\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:39:57.476496000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:39:57.477130000Z\n updated_at: 2012-11-28 22:39:57.477130000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_107', '2012-12-05 22:39:57', '2012-11-28 22:39:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 107 LIMIT 1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account307' WHERE `accounts`.`id` = 307 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 307 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (307, 108) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:39:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 108\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:39:57.509952000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:39:57.510962000Z\n updated_at: 2012-11-28 22:39:57.510962000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_108', '2012-12-05 22:39:57', '2012-11-28 22:39:57')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57' WHERE `users`.`id` = 108  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 124ms (ActiveRecord: 6.6ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 339ms  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:57', '2012-11-28 22:39:57', 'teste@teste.com', '$2a$04$BrAbb.GfA6DYkKn5WMeY8O04EDA5iXL0Qb4PDalreBL47Z9FckV7C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:57', NULL, NULL, NULL, '2012-11-28 22:39:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:57', `updated_at` = '2012-11-28 22:39:57', `subdomain` = 'account308' WHERE `accounts`.`id` = 308 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 308 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (308, 109) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account309' WHERE `accounts`.`id` = 309  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account310' WHERE `accounts`.`id` = 310  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (310, 109) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 309 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 309 WHERE `account_users`.`id` = 218  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 109 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'teste@teste.com', '$2a$04$qgKjvh6G6ent9VOKAj6k3e2qx56oTGlUQoZXRWB1/w3GKhVChfC1y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account311' WHERE `accounts`.`id` = 311 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 110) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account312' WHERE `accounts`.`id` = 312  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account313' WHERE `accounts`.`id` = 313  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (313, 110) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 312 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 312 WHERE `account_users`.`id` = 220  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'user2@email.email', '$2a$04$lctwkMJQEk9QtfT2QLoO5O4tb5uXDPP/DvoH.DJNmJr41Vyxt8Cwm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account314' WHERE `accounts`.`id` = 314 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (314, 111) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 111) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 311 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 446 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 110 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.6ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'teste@teste.com', '$2a$04$1nTn1ocsYyV9h8c3gxt1dOXFREVhm7pgCKFFm27MZ8i6mRsh2dcce', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account315' WHERE `accounts`.`id` = 315 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 112) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account316' WHERE `accounts`.`id` = 316  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account317' WHERE `accounts`.`id` = 317  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (317, 112) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 316 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 316 WHERE `account_users`.`id` = 224  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'user2@email.email', '$2a$04$Hgsjx5S0nsCqaeGzBV2pa.dgScAxiTgHt6CdWMAOu5a6G2zQOHThO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account318' WHERE `accounts`.`id` = 318 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (318, 113) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 113) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 455 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 112 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 463  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'teste@teste.com', '$2a$04$uj5VF6VGx.W0jeZ2afHq4.DXW5w9pRiDxc7EYDK.JfVHaxAS3VEJu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account319' WHERE `accounts`.`id` = 319 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 114) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account320' WHERE `accounts`.`id` = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account321' WHERE `accounts`.`id` = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (321, 114) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 320 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 320 WHERE `account_users`.`id` = 228  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'user2@email.email', '$2a$04$z8/LKAO3p9n4aQy/eqt4r.3lczeInQVvrzegwQgpS6iVbQemRiWgK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account322' WHERE `accounts`.`id` = 322 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (322, 115) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 115) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 319 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 465 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"319"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 114 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.5ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"319"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'teste@teste.com', '$2a$04$8zmgtNHtvYYEqOGbMe0jw.X4rwJRlHeSd6nkNiCbz8Ge/bIXEDmjW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account323' WHERE `accounts`.`id` = 323 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 116) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account324' WHERE `accounts`.`id` = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account325' WHERE `accounts`.`id` = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (325, 116) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 324 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 324 WHERE `account_users`.`id` = 232  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'user2@email.email', '$2a$04$1TyzPXZv3PY4MUSTwum4yuPqkob2UNeNuRq4HPxWLi.2BtQbYZKHS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account326' WHERE `accounts`.`id` = 326 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (326, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 323 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 474 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"323"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 116 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 6ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'teste@teste.com', '$2a$04$1xeOIbf83jBajlp4fZ0xd.O8RheQ2QzNdxGKhE3tsJKU7pcIlhlVK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account327' WHERE `accounts`.`id` = 327 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account328' WHERE `accounts`.`id` = 328  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account329' WHERE `accounts`.`id` = 329  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (329, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 328 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 328 WHERE `account_users`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'user2@email.email', '$2a$04$4XWlcroQIrrSFZQjywdc1uPXOVyZp7sJb9PCHozUrK7jW3207TtLy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account330' WHERE `accounts`.`id` = 330 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 330 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (330, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 327 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 483 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 484  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 491  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"327"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 118 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'teste@teste.com', '$2a$04$2IHwzW636ktjgvg/.pXvLOCd6NHaah0.cSreI8NspXoowBh0bg4xe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account331' WHERE `accounts`.`id` = 331 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account332' WHERE `accounts`.`id` = 332  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account333' WHERE `accounts`.`id` = 333  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (333, 120) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 332 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 332 WHERE `account_users`.`id` = 240  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:58', '2012-11-28 22:39:58', 'user2@email.email', '$2a$04$EgfqzRWlMG5r5brT3BHjbu5uVS4SINpqv2BYu2f61O7YAOOIVKDqC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:39:58') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', NULL, NULL, NULL, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account334' WHERE `accounts`.`id` = 334 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 334 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (334, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 331 LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 120 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 231213231231312312341 LIMIT 1 Completed 404 Not Found in 3ms  (4.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account335' WHERE `accounts`.`id` = 335  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 335 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (335, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:39:58', 'rl6LqnLgfFXZu5IMnyoy8qTvfSM') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:39:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692bebc618_1a0480435d483688d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/10rl6LqnLgfFXZu5IMnyoy8qTvfSM  (0.3ms) RELEASE SAVEPOINT active_record_1  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:58', 'jabanilson', NULL, 1, '2012-11-28 22:39:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:58', `updated_at` = '2012-11-28 22:39:58', `subdomain` = 'account336' WHERE `accounts`.`id` = 336  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 336 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (336, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:39:58', 'i1kz61CH1ve6QXTfcnBvBoNfuNY') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:39:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692bec8cd1_1a0480435d48369ac@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/11i1kz61CH1ve6QXTfcnBvBoNfuNY  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account337' WHERE `accounts`.`id` = 337  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 337 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (337, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account338' WHERE `accounts`.`id` = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 338 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (338, NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account339' WHERE `accounts`.`id` = 339  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 339 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (339, NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account340' WHERE `accounts`.`id` = 340  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 340 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (340, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account341' WHERE `accounts`.`id` = 341  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 341 AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (341, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account342' WHERE `accounts`.`id` = 342  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 342 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (342, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account343' WHERE `accounts`.`id` = 343  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account344' WHERE `accounts`.`id` = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 344 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (344, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account345' WHERE `accounts`.`id` = 345  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (345, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account346' WHERE `accounts`.`id` = 346  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 346 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (346, NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account347' WHERE `accounts`.`id` = 347  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 347 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (347, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account348' WHERE `accounts`.`id` = 348  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url1.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url1.test.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url2.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 32  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 348  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 31  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 31  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 32 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 31  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 32 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account349' WHERE `accounts`.`id` = 349  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 349 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (349, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account350' WHERE `accounts`.`id` = 350  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 350 AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (350, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account351' WHERE `accounts`.`id` = 351  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 351 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (351, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account352' WHERE `accounts`.`id` = 352  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 352 AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (352, NULL, 'www.normal.host', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account353' WHERE `accounts`.`id` = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 353 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (353, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account354' WHERE `accounts`.`id` = 354  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (354, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account355' WHERE `accounts`.`id` = 355  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 355 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (355, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account356' WHERE `accounts`.`id` = 356  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (356, NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 40  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`verified` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account357' WHERE `accounts`.`id` = 357  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 357 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (357, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account358' WHERE `accounts`.`id` = 358  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 358 AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (358, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 42  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:39:59', 'jabanilson', NULL, 1, '2012-11-28 22:39:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:39:59', `updated_at` = '2012-11-28 22:39:59', `subdomain` = 'account359' WHERE `accounts`.`id` = 359  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (359, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 42 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account360' WHERE `accounts`.`id` = 360  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 360 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (360, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account361' WHERE `accounts`.`id` = 361  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account362' WHERE `accounts`.`id` = 362  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (362, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 45 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account363' WHERE `accounts`.`id` = 363  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 363 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (363, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account364' WHERE `accounts`.`id` = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account365' WHERE `accounts`.`id` = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 365 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (365, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account366' WHERE `accounts`.`id` = 366  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 366 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (366, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 47  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 48  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 364  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 48  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account367' WHERE `accounts`.`id` = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 367 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (367, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account368' WHERE `accounts`.`id` = 368  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account369' WHERE `accounts`.`id` = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 369 AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (369, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account370' WHERE `accounts`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 370 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (370, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 50  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 51  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 368  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 50 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account371' WHERE `accounts`.`id` = 371  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 371 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (371, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account372' WHERE `accounts`.`id` = 372  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account373' WHERE `accounts`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 373 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (373, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', NULL, 1, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account374' WHERE `accounts`.`id` = 374  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 374 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (374, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:00', '2012-11-28 22:40:00', 'teste@teste.com', '$2a$04$mLfnlUwpTaUYrgVK.nSo5O7MujpTegLxstNKCNkaBI2O1TSRUSI2C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', NULL, NULL, NULL, '2012-11-28 22:40:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account375' WHERE `accounts`.`id` = 375 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 375 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (375, 122) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 375 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 502  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 243) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'guest')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:00', '2012-11-28 22:40:00', 'teste@teste.com', '$2a$04$b4eKEcg.ygEBWtgjnylhl.WVMx2.AAE2x7uTa1lltfc4Ah2HXIJWq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', NULL, NULL, NULL, '2012-11-28 22:40:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account376' WHERE `accounts`.`id` = 376 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 376 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (376, 123) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 376 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 244) LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:00', '2012-11-28 22:40:00', 'teste@teste.com', '$2a$04$zpdGWsYHDXw/bzSv4c8LN.It9JZeqjhAi9UeAePlj4EjyyxDNK6mK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', NULL, NULL, NULL, '2012-11-28 22:40:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account377' WHERE `accounts`.`id` = 377 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 377 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (377, 124) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 377 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 508  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 245) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:00', '2012-11-28 22:40:00', 'teste@teste.com', '$2a$04$bhwk/3r2znJIhU3ERnia6eeHs7iHtf.aM7dEEmnnnPZA8tEuSXmLS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', NULL, NULL, NULL, '2012-11-28 22:40:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:00', `updated_at` = '2012-11-28 22:40:00', `subdomain` = 'account378' WHERE `accounts`.`id` = 378 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 378 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (378, 125) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 378 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 511  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 246) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != 512 AND `account_roles`.`account_user_id` = 246) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', 'unico', 1, '2012-11-28 22:40:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:00', 'jabanilson', 'unico', 1, '2012-11-28 22:40:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` LIMIT 1 Account Exists (0.1ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'me@me.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'me@me.com', '$2a$04$nkAxhJc61v5V.sFUsrfC2eACZS8H2qvu1a8I0QxN9k8PAP6ZVTqoS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account384' WHERE `accounts`.`id` = 384 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (384, 126) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account385' WHERE `accounts`.`id` = 385  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account386' WHERE `accounts`.`id` = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (386, 126) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 385 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 385 WHERE `account_users`.`id` = 248  (0.1ms) RELEASE SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` INNER JOIN `account_users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 385 AND `users`.`id` = 126 LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdominio' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account389' WHERE `accounts`.`id` = 389  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 389 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account391' WHERE `accounts`.`id` = 391  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 391 LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account393' WHERE `accounts`.`id` = 393  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 393\n created_at: 2012-11-28 22:40:01.082922000Z\n updated_at: 2012-11-28 22:40:01.082922000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account393\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_393_destroy', '2012-11-28 22:40:01', '2012-11-28 22:40:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_393_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account395' WHERE `accounts`.`id` = 395  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_395_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account397' WHERE `accounts`.`id` = 397  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 397\n created_at: 2012-11-28 22:40:01.101577000Z\n updated_at: 2012-11-28 22:40:01.101577000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account397\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_397_destroy', '2012-11-28 22:40:01', '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_397_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account399' WHERE `accounts`.`id` = 399  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_399_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account401' WHERE `accounts`.`id` = 401  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 401\n created_at: 2012-11-28 22:40:01.122665000Z\n updated_at: 2012-11-28 22:40:01.122665000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account401\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_401_destroy', '2012-11-28 22:40:01', '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account403' WHERE `accounts`.`id` = 403  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 403\n created_at: 2012-11-28 22:40:01.135780000Z\n updated_at: 2012-11-28 22:40:01.135780000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account403\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_403_destroy', '2012-11-28 22:40:01', '2012-11-28 22:40:01')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account405' WHERE `accounts`.`id` = 405  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account407' WHERE `accounts`.`id` = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 407\n created_at: 2012-11-28 22:40:01.155288000Z\n updated_at: 2012-11-28 22:40:01.155288000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account407\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_407_destroy', '2012-11-28 22:40:01', '2012-11-28 22:40:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01' WHERE `delayed_jobs`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$0tML1b.YunRrDrLbB2kWAOq804ZxRkJcRI77HtZWj7tPIGZoN7uoa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account409' WHERE `accounts`.`id` = 409 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 409 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (409, 127) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 127 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 409 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 518  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 249 AND `account_roles`.`name` = 'user' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$2OOiq08UM8Qv500eosFNH.9FNpT/o/GNQII.2.ogTOLpnRzhRR9VC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account411' WHERE `accounts`.`id` = 411 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (411, 128) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 128 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 411 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 521  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 250 AND `account_roles`.`name` = 'admin' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account413' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account413' AND `accounts`.`id` != 413) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'Named', `updated_at` = '2012-11-28 22:40:01' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account415' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account415' AND `accounts`.`id` != 415) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = NULL, `updated_at` = '2012-11-28 22:40:01' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account417' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account417' AND `accounts`.`id` != 417) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-11-28 22:40:01' WHERE `accounts`.`id` = 417  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 419 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (419, NULL, 'getfromdomain.account.test', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 55  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'getfromdomain.account.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 419 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 421 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (421, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 56  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'subdomainfind.iugusdk.dev' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'subdomainfind' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'unico', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:40:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 423 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (423, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 57  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'notused.domain.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'notused.domain.test' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account424' WHERE `accounts`.`id` = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$p.5U5JDK0DIZvCwJ3lXUxe1scVcxHpMxuDlO1w8yGUpj7G.gh43hS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account425' WHERE `accounts`.`id` = 425 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 425 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (425, 129) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (424, 129) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account426' WHERE `accounts`.`id` = 426  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$0J2tCq56bPUa5nNZPaFCKuuijJ7iPhb06Km2c7giEoVJg7.WEGF6.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account427' WHERE `accounts`.`id` = 427 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 427 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (427, 130) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (426, 130) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 426 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 530  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 254) LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 531 AND `account_roles`.`account_user_id` = 254) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254 AND `account_roles`.`name` = 'user' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account428' WHERE `accounts`.`id` = 428  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$yP5dJAQPGJsVGKOZnzs1i.PkQHICswgKQVnm5R3xFQXcDiym3a4qu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account429' WHERE `accounts`.`id` = 429 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 429 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (429, 131) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (428, 131) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 428 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 535  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 256) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 536 AND `account_roles`.`account_user_id` = 256) LIMIT 1  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account430' WHERE `accounts`.`id` = 430  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$66wKCLYObzobjtAYWqFcAuritI.xOKNIibccJn8laycOv9oAhEtqS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account431' WHERE `accounts`.`id` = 431 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 431 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (431, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (430, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 430 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 540  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 258) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 541 AND `account_roles`.`account_user_id` = 258) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258 AND `account_roles`.`name` = 'user' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account432' WHERE `accounts`.`id` = 432  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$ej.QndDlHsBkyn2ppnlVK.YYl0Uk2QSgFRqAPP8wukUYKLBTWwj9q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account433' WHERE `accounts`.`id` = 433 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 433 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (433, 133) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (432, 133) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'notowner@account.test', '$2a$04$XepsKaiLfXwgRNDwYeonjOUwjHhs/OcqQZueNP1a7h42NX8ApUhby', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account434' WHERE `accounts`.`id` = 434 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 434 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (434, 134) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account435' WHERE `accounts`.`id` = 435  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (435, 134) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 432 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 432 WHERE `account_users`.`id` = 262  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 432 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 545  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260 AND `account_roles`.`name` = 'my_owner' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account436' WHERE `accounts`.`id` = 436  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$gAWAc7nu/UY017kbMJ7Sx.Uy8vFVyC1OhJNCyHZXXQ9tDfRwuB.r.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account437' WHERE `accounts`.`id` = 437 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 437 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (437, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_user')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (436, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'notowner@account.test', '$2a$04$XFEkvCkeM1eWSVyX8XD5aei8Yf/tGGYw55kON2i/nrhooPuVsmlzu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account438' WHERE `accounts`.`id` = 438 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 438 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (438, 136) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account439' WHERE `accounts`.`id` = 439  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (439, 136) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 436 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 436 WHERE `account_users`.`id` = 266  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 436 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 553  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264 AND `account_roles`.`name` = 'my_user' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account440' WHERE `accounts`.`id` = 440  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$VBSz70HNsj7oJTyHZWmUF.quxZtbBDatIwDhXLQZjHBnbwf3wxk0y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account441' WHERE `accounts`.`id` = 441 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 441 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (441, 137) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (440, 137) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 440 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 562  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_guest' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268 AND `account_roles`.`name` = 'my_guest' LIMIT 1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account442' WHERE `accounts`.`id` = 442  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$fD.iil/51u/tGh5/.Cz5FOlJWmSDMA.K6C0UHirSTqWVqcSo4007O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account443' WHERE `accounts`.`id` = 443 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (443, 138) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (442, 138) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 270  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 442 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 567  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account444' WHERE `accounts`.`id` = 444  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$GVYwqas/LTZpUm0iIiDvr.1UlV6HQZFrD/Z73iOxg70C7DLK3aQHq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account445' WHERE `accounts`.`id` = 445 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 445 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (445, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (444, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 272  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 444 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 572  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account446' WHERE `accounts`.`id` = 446  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$Au/89cyFSX.XpSWERspJq.c64hmm/kNvBXeaY2RqGzckjUkWXIWUu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account447' WHERE `accounts`.`id` = 447 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (447, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (446, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 274  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 446 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account448' WHERE `accounts`.`id` = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$fLpSII2KQh.qFDkBfjKxReq/llHNGmIvu0N.TdzUBsXgI1yzhADey', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account449' WHERE `accounts`.`id` = 449 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 449 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (449, 141) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (448, 141) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 276  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 448 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 580  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account450' WHERE `accounts`.`id` = 450  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$h5j3IojullDWby96nnXeougGErE9IZngKJ3pkOkTNJ5nd/EiIiwGu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account451' WHERE `accounts`.`id` = 451 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (451, 142) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (450, 142) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 278\n account_id: 450\n user_id: 142\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_278_destroy', '2012-11-28 22:40:01', '2012-11-28 22:40:01')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_278_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', 'jabanilson', NULL, 1, '2012-11-28 22:40:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account452' WHERE `accounts`.`id` = 452  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:01', '2012-11-28 22:40:01', 'teste@teste.com', '$2a$04$HpFGNJx4jFf6Jn1.uDCWjOSHzoQEWsanfVRyo/ZI4.n6I1gzO0Q4G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:01', NULL, NULL, NULL, '2012-11-28 22:40:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:01', `updated_at` = '2012-11-28 22:40:01', `subdomain` = 'account453' WHERE `accounts`.`id` = 453 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (453, 143) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (452, 143) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_280_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account454' WHERE `accounts`.`id` = 454  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$HIn4hoTAbskJPr.0jjtkdOixmvCqdSgkFU3HQFX/7GpcDlw6EjGE.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account455' WHERE `accounts`.`id` = 455 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 455 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (455, 144) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (454, 144) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account456' WHERE `accounts`.`id` = 456  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 282\n account_id: 454\n user_id: 144\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_282_destroy', '2012-11-28 22:40:02', '2012-11-28 22:40:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_282_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account457' WHERE `accounts`.`id` = 457  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$daTPqEQ/RuwW/NZEwkQDS.Bm9BRoCjQ2Z/betg2OT5GfEE.T6xDpu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account458' WHERE `accounts`.`id` = 458 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (458, 145) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (457, 145) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account459' WHERE `accounts`.`id` = 459  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_284_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account460' WHERE `accounts`.`id` = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$QnTWF3GVolvr7l3QKMBUkus3wb6YE1snmsKcFRSVbxCiKEdP0z9sK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account461' WHERE `accounts`.`id` = 461 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 461 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (461, 146) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (460, 146) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account462' WHERE `accounts`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 286\n account_id: 460\n user_id: 146\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_286_destroy', '2012-11-28 22:40:02', '2012-11-28 22:40:02')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 26  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account463' WHERE `accounts`.`id` = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$lqyhkHPM5J4HoHe8hEGqGu5ljUDqzx7Qz19u1GItD/DzVYHSkPDH.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account464' WHERE `accounts`.`id` = 464 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 464 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (464, 147) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (463, 147) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account465' WHERE `accounts`.`id` = 465  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 288\n account_id: 463\n user_id: 147\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_288_destroy', '2012-11-28 22:40:02', '2012-11-28 22:40:02')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account466' WHERE `accounts`.`id` = 466  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$wo9h5earGZxSG33bs/gjB.kH0N.8bN0ORSxnz5FG6.oANyaG6Ffbu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account467' WHERE `accounts`.`id` = 467 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 467 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (467, 148) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (466, 148) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account468' WHERE `accounts`.`id` = 468  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account469' WHERE `accounts`.`id` = 469  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$JPhYCXEseyo.C2leer9BHOVd3lJWEQE/62UIwQp2CO93u1GpcNwo.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account470' WHERE `accounts`.`id` = 470 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (470, 149) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (469, 149) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account471' WHERE `accounts`.`id` = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 292\n account_id: 469\n user_id: 149\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_292_destroy', '2012-11-28 22:40:02', '2012-11-28 22:40:02')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02' WHERE `delayed_jobs`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account472' WHERE `accounts`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 472 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:40:02', 'api token', '67c1fcce431eb166c6695069228a532b', 472, 'Account', '2012-11-28 22:40:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '67c1fcce431eb166c6695069228a532b' LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '67c1fcce431eb166c6695069228a532b' LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account473' WHERE `accounts`.`id` = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 473 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:40:02', 'api token', '518d505ebdc798f996eb97297b93960d', 473, 'Account', '2012-11-28 22:40:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account474' WHERE `accounts`.`id` = 474  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 474 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:40:02', 'api token', '1b7d59c56de18594b2d18d3c81fedd55', 474, 'Account', '2012-11-28 22:40:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account475' WHERE `accounts`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 475 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:40:02', 'api token', '50d67aa07fbafe05687a4e6755521215', 475, 'Account', '2012-11-28 22:40:02')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account476' WHERE `accounts`.`id` = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:40:02', 'token 1', '7d043400abc7a900edec58c4ebc55ba6', 476, 'Account', '2012-11-28 22:40:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`token` = BINARY '7d043400abc7a900edec58c4ebc55ba6' AND `api_tokens`.`id` != 8) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`id` != 8 AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account477' WHERE `accounts`.`id` = 477  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 477 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:40:02', 'api token', 'd192fc0b1dcca60bd7960b633ebf632b', 477, 'Account', '2012-11-28 22:40:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', '', '$2a$04$RnJa0EBXXlHFJMIphTlXW.FUYPM2UggPV1BEL9AnwX0fHrbu394Ym', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account478' WHERE `accounts`.`id` = 478 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 478 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (478, 150) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `social_accounts` SET `user_id` = 150 WHERE `social_accounts`.`id` = 13  (0.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$qWuLOHGEYZCAfVAuvPz4/eVoaRL8Un86j/m534zhyGw9c0DPtAWJ2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account479' WHERE `accounts`.`id` = 479 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 479 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (479, 151) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 151)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '', `updated_at` = '2012-11-28 22:40:02' WHERE `users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 151  (24.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$h.tB2B6RjIqXX7Gl6OVpNOg/rVeDeqYUmzb/dwpYjN8z8rgufKICe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account480' WHERE `accounts`.`id` = 480 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (480, 152) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 152)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'testing@email.test' AND `users`.`id` != 152) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '$2a$04$R76KgWzctU5fUscoYmoz/e1bhhDWxPz8niZi0UOVaXnjvbbFp77va', `updated_at` = '2012-11-28 22:40:02' WHERE `users`.`id` = 152  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account481' WHERE `accounts`.`id` = 481  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'invited@test.test', '$2a$04$LvhycYLutI.xZeXcvo4yQest7AmYR/RnBtMpC.XNLmU8iNyYiLUni', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account482' WHERE `accounts`.`id` = 482 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (482, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 481 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (481, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 481 AND `users`.`email` = 'invited@test.test'  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:40:02', '6DZpSXHdNnCxFjDQGXhGFjLaByk') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b692c2a4d7c_1a0480435d4837040@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/126DZpSXHdNnCxFjDQGXhGFjLaByk  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:40:02', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b692c2aaeee_1a0480435d4837154@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/13oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 13 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:40:02', 'L5wpxJfCwdr3nadL6gJlSLqVDLw') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b692c2b14a0_1a0480435d48372b0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/14L5wpxJfCwdr3nadL6gJlSLqVDLw  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:40:02', '_s0vUfea-KQSYkkFQ08wnTeA70E') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b692c2b8266_1a0480435d4837364@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/15_s0vUfea-KQSYkkFQ08wnTeA70E  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account483' WHERE `accounts`.`id` = 483  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 483 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (483, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:02', 'B0_Z7vP6aiLdPMfTb250pdKGsME') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:40:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692c2bf367_1a0480435d483741a@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/16B0_Z7vP6aiLdPMfTb250pdKGsME  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 16 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account484' WHERE `accounts`.`id` = 484  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 484 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (484, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:02', 'p-fy3zBDnl8QcFTfK9F5T-zjZjM') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:40:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692c2c68df_1a0480435d4837556@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/17p-fy3zBDnl8QcFTfK9F5T-zjZjM  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 1238 LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account485' WHERE `accounts`.`id` = 485  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 485 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (485, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:02', '9avGuRYw5WqAjvMRpJHNFpG7Qsw') Sent mail to teste@teste.teste (94ms) Date: Wed, 28 Nov 2012 20:40:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692c2cdee4_1a0480435d4837691@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/189avGuRYw5WqAjvMRpJHNFpG7Qsw  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account486' WHERE `accounts`.`id` = 486  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:02', '2012-11-28 22:40:02', 'teste@teste.com', '$2a$04$wqqPX1w.k9WQiH0XR/61OeH/hxRf.JaQ7Ef/B4jKN61PIxw/XOana', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:02') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', NULL, NULL, NULL, '2012-11-28 22:40:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account487' WHERE `accounts`.`id` = 487 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (487, 154) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 486 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 486 WHERE `user_invitations`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (486, 154) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (299) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (486)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:02', 'jabanilson', NULL, 1, '2012-11-28 22:40:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:02', `updated_at` = '2012-11-28 22:40:02', `subdomain` = 'account488' WHERE `accounts`.`id` = 488  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 488 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (488, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:02', 'C4zuiXshKp1wQy-sDVGadtdghLk') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692c3328d_1a0480435d4837781@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/19C4zuiXshKp1wQy-sDVGadtdghLk  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', 'jabanilson', NULL, 1, '2012-11-28 22:40:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account489' WHERE `accounts`.`id` = 489  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$QX1TQZ/923VlQWblThwITu8LIAlXniefLvOoJ1MYaLAIVyD/qTo.i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account490' WHERE `accounts`.`id` = 490 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 490 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (490, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 489 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = 19  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 488 AND `account_users`.`user_id` = 155  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (488, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 488 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 630  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301 AND `account_roles`.`name` = 'user' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', 'jabanilson', NULL, 1, '2012-11-28 22:40:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account491' WHERE `accounts`.`id` = 491  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 491 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (491, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:03', 'RhckkkRvtywfDy3RaQs4Izrs0D8') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692c31837f_1a0480435d483787e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/20RhckkkRvtywfDy3RaQs4Izrs0D8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', 'jabanilson', NULL, 1, '2012-11-28 22:40:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account492' WHERE `accounts`.`id` = 492  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$p2WJ2bcaHbpklml3PiNWZOk3n/ixwkyrs0tDsevbB..cT6oKKp8d.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account493' WHERE `accounts`.`id` = 493 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (493, 156) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 492 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 492 WHERE `user_invitations`.`id` = 20  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 492 AND `account_users`.`user_id` = 156  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (492, 156) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', 'jabanilson', NULL, 1, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account494' WHERE `accounts`.`id` = 494  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 494 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (494, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:03', 'yCIaj_h7uUGaBuVBQ9_p5q3EQAA') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692c329bb1_1a0480435d483797d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/21yCIaj_h7uUGaBuVBQ9_p5q3EQAA  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', 'jabanilson', NULL, 1, '2012-11-28 22:40:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account495' WHERE `accounts`.`id` = 495  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$dh7fspTm0Z8GgukiyO.WUOzJsdik1Aes3qbHKI.Zqm9jCSAH7QXrO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account496' WHERE `accounts`.`id` = 496 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (496, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 495 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 495 WHERE `user_invitations`.`id` = 21  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (495, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 495 AND `account_users`.`user_id` = 157  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$/s3BjgJAquFt7z65AVcDnuno9ntQ6AFqsG5Tczngg6dnKfjxJwlpi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account497' WHERE `accounts`.`id` = 497 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (497, 158) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$5vzb.4GoFLxdUiGHK5X2p.znbVCefshJAoBs1o8UZUBe17b0zYY9G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account498' WHERE `accounts`.`id` = 498 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (498, 159) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$OCshiMLUMLc/.KerXRPguuRl31U45hPwe/.9rVR8gXPj2KC6YwyVu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account499' WHERE `accounts`.`id` = 499 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (499, 160) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$aTZSTaDyZpwKx3VSUocNIuOK2MaN/4UFTSjBWLd2vNP9Lap55Q8AK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account500' WHERE `accounts`.`id` = 500 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (500, 161) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 161  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$sYXrf/zJ.Qk1AOecD0/bIuCkWhH9TmHF18fE03id1xNAoTzAmxT1G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', 'de2734370e4b87645e27118f78a8b88e', 162, 'User', '2012-11-28 22:40:03') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account501' WHERE `accounts`.`id` = 501 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (501, 162) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'teste@teste.com', '$2a$04$AIcWZXrs.TknkWNlFsGHCucS5GO/fhvcZjDlvdbXPZUREh5t016M2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', '1067f6dfc3ef65f9e8c97a9d1c4d100d', 163, 'User', '2012-11-28 22:40:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account502' WHERE `accounts`.`id` = 502 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 502 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (502, 163) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c364274_1a0480435d48380a6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'account1@before.destroy', '$2a$04$XON/URBBib0g4Pc5bVgo4ekz4sFS0DRej5xFG.VHuRqoNd1JxvuBi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', 'fdbb3d2ff398473354236f45b15ea26b', 164, 'User', '2012-11-28 22:40:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account503' WHERE `accounts`.`id` = 503 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (503, 164) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b692c3853ef_1a0480435d4838154@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 164\n email: account1@before.destroy\n encrypted_password: $2a$04$XON/URBBib0g4Pc5bVgo4ekz4sFS0DRej5xFG.VHuRqoNd1JxvuBi\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:03.425419000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:03.425867000Z\n updated_at: 2012-11-28 22:40:03.425867000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_164_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_164_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 164 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (312) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (503) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 312\n account_id: 503\n user_id: 164\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_312_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 164 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 503 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 503\n created_at: 2012-11-28 22:40:03.000000000Z\n updated_at: 2012-11-28 22:40:03.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account503\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_503_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = 164  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_503_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'account1@before.destroy', '$2a$04$0EPajCebsDT.HenaEicF9.xURGKzy0QgkXtqAC2SSiVw2E1oC99cO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', '016ac9bf5e78fa0581c83d99a880f086', 165, 'User', '2012-11-28 22:40:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account504' WHERE `accounts`.`id` = 504 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (504, 165) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b692c3960bd_1a0480435d4838289@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', 'jabanilson', NULL, 1, '2012-11-28 22:40:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account505' WHERE `accounts`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (505, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165 ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 165\n email: account1@before.destroy\n encrypted_password: $2a$04$0EPajCebsDT.HenaEicF9.xURGKzy0QgkXtqAC2SSiVw2E1oC99cO\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:03.584719000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:03.585117000Z\n updated_at: 2012-11-28 22:40:03.585117000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_165_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_165_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 165 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (313, 314) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (504, 505) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 313\n account_id: 504\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_313_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03') SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 314\n account_id: 505\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_314_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 165 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 504 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 504\n created_at: 2012-11-28 22:40:03.000000000Z\n updated_at: 2012-11-28 22:40:03.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account504\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_504_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03')  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 505 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 505\n created_at: 2012-11-28 22:40:03.000000000Z\n updated_at: 2012-11-28 22:40:03.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account505\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_505_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = 165  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_505_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'account1@before.destroy', '$2a$04$3Ln.cRN09u.Ij8GsvdeDDO3gSfMLH0cSOr3g3LlNvjiiQBpWDz3J6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', '4cd2e1f6676259ea711579f26b97ffb3', 166, 'User', '2012-11-28 22:40:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account506' WHERE `accounts`.`id` = 506 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 166) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b692c3abcf0_1a0480435d483833@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'account2@before.destroy', '$2a$04$/nrRhV6TVwN12.5kRp2/6.tFd.W4CEaCWZwWmkITK1du8zOgKHS0q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', '90f3805f072f1bb950b9995c2c81141c', 167, 'User', '2012-11-28 22:40:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account507' WHERE `accounts`.`id` = 507 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 507 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (507, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'admin') Sent mail to account2@before.destroy (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50b692c3b6cc7_1a0480435d483841d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 166\n email: account1@before.destroy\n encrypted_password: $2a$04$3Ln.cRN09u.Ij8GsvdeDDO3gSfMLH0cSOr3g3LlNvjiiQBpWDz3J6\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:03.672364000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:03.672752000Z\n updated_at: 2012-11-28 22:40:03.672752000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_166_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_166_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 166 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 166 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (315) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (506) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 315\n account_id: 506\n user_id: 166\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_315_destroy', '2012-11-28 22:40:03', '2012-11-28 22:40:03') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 506 SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = 166  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_506_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', 'e834fb7c8886e027e1d9623950c32b35', 168, 'User', '2012-11-28 22:40:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account508' WHERE `accounts`.`id` = 508 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (508, 168) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 168\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:03.786422000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:03.787160000Z\n updated_at: 2012-11-28 22:40:03.787160000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_168', '2012-12-05 22:40:03', '2012-11-28 22:40:03')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 168 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 168) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$QU865aG0s2cTq/Lj8TVRFOfOaMux1xp6NTGsAEPbRFZ1/T6tzfxOm', `updated_at` = '2012-11-28 22:40:03' WHERE `users`.`id` = 168  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_168' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', 'd1632c6a4193d9edabb35e148af513e2', 169, 'User', '2012-11-28 22:40:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account509' WHERE `accounts`.`id` = 509 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 509 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (509, 169) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 169\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:03.823088000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:03.823850000Z\n updated_at: 2012-11-28 22:40:03.823850000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_169', '2012-12-05 22:40:03', '2012-11-28 22:40:03')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 169 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 169) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:03', '2012-11-28 22:40:03', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', '6aea38b942798505b1d3d85715b77d01', 170, 'User', '2012-11-28 22:40:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account510' WHERE `accounts`.`id` = 510 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 510 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (510, 170) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 170\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:03.856312000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:03.857390000Z\n updated_at: 2012-11-28 22:40:03.857390000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_170', '2012-12-05 22:40:03', '2012-11-28 22:40:03')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 170  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'ZRzpqDH2Y677QhEKFCUR' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:40:03', 'ZRzpqDH2Y677QhEKFCUR', '2012-11-28 22:40:03', '2012-11-28 22:40:03', 'confirmation@skip.test', '$2a$04$.CKM3zU3J1cayUtA7qHOg.JCjh1LdN4lJuyaAbaa18VuxlGGmoen6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', 'bc0223b3c2c5a6793e39854cce2c574a', 171, 'User', '2012-11-28 22:40:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account511' WHERE `accounts`.`id` = 511 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 511 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (511, 171) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'admin') Sent mail to confirmation@skip.test (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b692c3e162e_1a0480435d4838564@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'jrsGwnhnqkpFWs9cJvzz' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:40:03', 'jrsGwnhnqkpFWs9cJvzz', NULL, '2012-11-28 22:40:03', 'confirmation@needed.test', '$2a$04$QCpW8rZ.wbJu5fQ7BNpysOWmUDV0vY1wr8N4VAShg.sW46j0YQmX6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:03') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b692c3ea71c_1a0480435d4838698@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:03', 'User', '5cd4c17ef7b9d63fc3d2484007b76246', 172, 'User', '2012-11-28 22:40:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:03', NULL, NULL, NULL, '2012-11-28 22:40:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:03', `updated_at` = '2012-11-28 22:40:03', `subdomain` = 'account512' WHERE `accounts`.`id` = 512 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (512, 172) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'admin') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:40:03 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b692c3f2f5b_1a0480435d48387e9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'fEKTiznpnAiprVtvMx8i' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:40:04', 'fEKTiznpnAiprVtvMx8i', NULL, '2012-11-28 22:40:04', 'reconfirmation@needed.test', '$2a$04$iwk2S4zmKkXICOblkexVTeVT/BrmJUQkEBSkDiF567OccoJBehLsy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b692c41bfe9_1a0480435d48388d@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '048956643da6ff488334697cd68a4214', 173, 'User', '2012-11-28 22:40:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account513' WHERE `accounts`.`id` = 513 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (513, 173) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b692c4248e5_1a0480435d48389db@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 173 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 173) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:40:04' WHERE `users`.`id` = 173 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '8b9AQGtZE6xiL31JPfRU' LIMIT 1  (0.3ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:40:04', `confirmation_token` = '8b9AQGtZE6xiL31JPfRU' WHERE `users`.`id` = 173 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b692c42b01f_1a0480435d48390f2@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'KdTJKZUT1bGoUNmfoCec' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:40:04', 'KdTJKZUT1bGoUNmfoCec', NULL, '2012-11-28 22:40:04', 'reconfirmation@needed.test', '$2a$04$w0w.6yzddb.lvBirGfAgI.XFZPEgA.SrSUM91gTIuD8c9HAqpioBK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b692c431dd3_1a0480435d483916e@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', 'e1340fb6cc7f47d0ed5318be1e08d935', 174, 'User', '2012-11-28 22:40:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account514' WHERE `accounts`.`id` = 514 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (514, 174) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b692c43aa2c_1a0480435d48392bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 174 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 174) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:40:04' WHERE `users`.`id` = 174  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$o30g2kmE326RB8A.WGgq3.VVbjaBmAjY..wZVgjuicAKJbkybKXTi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', 'ed3781195b974b433351fbd4e6a3dab6', 175, 'User', '2012-11-28 22:40:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account515' WHERE `accounts`.`id` = 515 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (515, 175) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c447a97_1a0480435d483936@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 175)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 175  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$750fz8QPtpOlHrDJ91zYHe4wPF/Lt1dfw5R6JJkpTA2U4MheY3o5G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '43f55b2d4998d459ba96b6e60651ddb9', 176, 'User', '2012-11-28 22:40:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account516' WHERE `accounts`.`id` = 516 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 516 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (516, 176) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c453ac6_1a0480435d483947d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 176)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 176 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:04', '2012-11-28 22:40:04', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '2930ca4b9d3d84260e471a871fcfcd0b', 177, 'User', '2012-11-28 22:40:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account517' WHERE `accounts`.`id` = 517 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (517, 177) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 177)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 177 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:04', '2012-11-28 22:40:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '7a58f703f0a770ca280cc35df0ff3cb8', 178, 'User', '2012-11-28 22:40:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account518' WHERE `accounts`.`id` = 518 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (518, 178) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c465bc2_1a0480435d48395e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 178)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 178 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$ScxBWtO6lEBf0Gc1I7.LqOhEP.MEkIVu.oO2pDqxkNNy2Jt3pbUxG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '9645fede882c53f6c748e3ca8ddfb0a5', 179, 'User', '2012-11-28 22:40:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account519' WHERE `accounts`.`id` = 519 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 519 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (519, 179) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c472927_1a0480435d48396e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 179)  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 179 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$oJAFR/pDdFx3t9t8mJAHDuU7gxCLG8AVHbkf/.whq7.Mt7dAh3cWW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '94caf6e4f59e58c7c286ccdc32a1eb99', 180, 'User', '2012-11-28 22:40:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account520' WHERE `accounts`.`id` = 520 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (520, 180) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c47fcdc_1a0480435d4839738@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 180)  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 180 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `social_accounts` SET `token` = 'newtoken' WHERE `social_accounts`.`id` = 21  (0.3ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`id` = 21 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'qaGt3YGRFsqeps7WGnpo' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:40:04', 'qaGt3YGRFsqeps7WGnpo', NULL, '2012-11-28 22:40:04', 'test@email.test', '$2a$04$yaBYbzhSHXPcQfIu6dG1tOHmM8TYPex2qCMNgB03maDcOxUc.2i.q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b692c488861_1a0480435d4839897@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '4c893e1fd1d92e2131de2ce8eb84235b', 181, 'User', '2012-11-28 22:40:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account521' WHERE `accounts`.`id` = 521 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (521, 181) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'admin') Sent mail to test@email.test (102ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b692c491021_1a0480435d483999d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 181  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'FEQHSrHHjFXwVi7WWfGY' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:40:04', 'FEQHSrHHjFXwVi7WWfGY', NULL, '2012-11-28 22:40:04', 'test@email.test', '$2a$04$jS7xJDWhvlkRBj3ZfOD6G.6/pK3bEBPBvSa8YR7wws3RLlBWg8IB2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b692c4b0d2f_1a0480435d4840090@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', 'd35bbeb00ff9ea927663cbcdaf012c75', 182, 'User', '2012-11-28 22:40:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b692c4b6a77_1a0480435d48401f0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 182  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$0X8cVCp10EnTN8AsZHRspOXrlnYYXkrloxQNal/KX0s7H6eJ7EGQ.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '7bd1fc149edfed8916a49a38c3ab5155', 183, 'User', '2012-11-28 22:40:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account522' WHERE `accounts`.`id` = 522 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 522 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (522, 183) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c4c289f_1a0480435d48402d4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$SdnEi5uMP1TwzMNKl7Qgs.OezGmV4DmCkWS9NcEjgNZB2KQk2xRB2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', 'cccbed1e2dafde7d19490269c6e47878', 184, 'User', '2012-11-28 22:40:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account523' WHERE `accounts`.`id` = 523 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (523, 184) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c4cec0c_1a0480435d48403e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 AND (accounts.id = 523) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$ClkQuzLBGSVJqjN3Vtir4.oNNaKGcudAH.YYDD9KoZcHIt81i5mcq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '6be35814eb4ae054688f402d146f9345', 185, 'User', '2012-11-28 22:40:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account524' WHERE `accounts`.`id` = 524 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (524, 185) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c4daf82_1a0480435d4840451@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 AND (accounts.id = 524) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$zMyn6opWHxeYjamp3Wi47.8G7kYFY9DfYrbdRj6/lPCB2X1tgTzVq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', 'f808eb1b6c96798ce1aac0d342d8f242', 186, 'User', '2012-11-28 22:40:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account525' WHERE `accounts`.`id` = 525 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 525 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (525, 186) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 20:40:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c4e81e0_1a0480435d48405c8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:04', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 186\n email: teste@teste.com\n encrypted_password: $2a$04$zMyn6opWHxeYjamp3Wi47.8G7kYFY9DfYrbdRj6/lPCB2X1tgTzVq\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:39:48.997646000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:04.914597000Z\n updated_at: 2012-11-28 22:40:04.914597000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_186_destroy', '2012-11-28 22:40:04', '2012-11-28 22:40:04')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_186_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:04', 'teste@teste.com', '$2a$04$Khyqm3eSbXsoiY0VDoJske7VvX.cD0eJ9t3dA36zWU9wa9wS0r58u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:04', 'User', '020f86ee1144f16829cb5c74488682a7', 187, 'User', '2012-11-28 22:40:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:04', NULL, NULL, NULL, '2012-11-28 22:40:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:04', `updated_at` = '2012-11-28 22:40:04', `subdomain` = 'account526' WHERE `accounts`.`id` = 526 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 526 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (526, 187) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c534b2_1a0480435d484062d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_187_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:05', 'teste@teste.com', '$2a$04$2.c4EL65zBLsNMmtBACJTeeqBwXtfo0JuXv2VOEqXfGoDDDqSDfru', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', '607977d12d756036e83f828a29c9a30a', 188, 'User', '2012-11-28 22:40:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account527' WHERE `accounts`.`id` = 527 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 527 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (527, 188) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c51043a_1a0480435d4840749@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 188\n email: teste@teste.com\n encrypted_password: $2a$04$2.c4EL65zBLsNMmtBACJTeeqBwXtfo0JuXv2VOEqXfGoDDDqSDfru\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:39:48.997646000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.030557000Z\n updated_at: 2012-11-28 22:40:05.030557000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_188_destroy', '2012-11-28 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_188_destroy' LIMIT 1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:05', 'teste@teste.com', '$2a$04$Yd9tDckZFz0GqYG3BaWwF.wKikpv9s8NdjMwyMnb1tnNIe.PwmdBu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'f72f1352dbcaca10f4b670bed3008cd4', 189, 'User', '2012-11-28 22:40:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account528' WHERE `accounts`.`id` = 528 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 528 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (528, 189) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c51d603_1a0480435d4840879@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_189_destroy' LIMIT 1  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:05', 'teste@teste.com', '$2a$04$rIDzhQqCHE/wfP7ZeCSJouJ8dZoeqXp/2gVJK2jrveNVeO3Po01TK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'e4675a61b1b0b888959e145eadff1521', 190, 'User', '2012-11-28 22:40:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account529' WHERE `accounts`.`id` = 529 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (529, 190) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c5297bd_1a0480435d48409fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 190\n email: teste@teste.com\n encrypted_password: $2a$04$rIDzhQqCHE/wfP7ZeCSJouJ8dZoeqXp/2gVJK2jrveNVeO3Po01TK\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:39:48.997646000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.137810000Z\n updated_at: 2012-11-28 22:40:05.137810000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_190_destroy', '2012-11-28 22:40:05', '2012-11-28 22:40:05')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 44  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:05', 'teste@teste.com', '$2a$04$1BQFkGQ9954F.DTNPsbB.O89nmGYRqr8Gclzx1nCC6lB7ufJiAI.e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', '7a06d1b14e47e213c240f305982cd38a', 191, 'User', '2012-11-28 22:40:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account530' WHERE `accounts`.`id` = 530 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 530 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (530, 191) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c5501ef_1a0480435d484105e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 191\n email: teste@teste.com\n encrypted_password: $2a$04$1BQFkGQ9954F.DTNPsbB.O89nmGYRqr8Gclzx1nCC6lB7ufJiAI.e\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:39:48.997646000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.191145000Z\n updated_at: 2012-11-28 22:40:05.191145000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_191_destroy', '2012-11-28 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:05', 'teste@teste.com', '$2a$04$fn92HiTK64/mT65RbuMbuuoUzo1Vpuajfxd.zZPuFk68d5LM5MrIi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'c05d126791ddf058cc4ded9187663a18', 192, 'User', '2012-11-28 22:40:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account531' WHERE `accounts`.`id` = 531 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 531 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (531, 192) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c55cd33_1a0480435d48411c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:05', 'teste@teste.com', '$2a$04$lEl77k2r3RaLndklhf48Z.NiW.p754deSs7U1H1snbVcukt4C/jjm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', '88543d5d4b9e4253a9421f530d608829', 193, 'User', '2012-11-28 22:40:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account532' WHERE `accounts`.`id` = 532 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 532 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (532, 193) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c568482_1a0480435d48412bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 193\n email: teste@teste.com\n encrypted_password: $2a$04$lEl77k2r3RaLndklhf48Z.NiW.p754deSs7U1H1snbVcukt4C/jjm\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:39:48.997646000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.396256000Z\n updated_at: 2012-11-28 22:40:05.396256000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_193_destroy', '2012-11-28 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05' WHERE `delayed_jobs`.`id` = 46  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:05', 'teste@teste.com', '$2a$04$OtnogulaTYTypTd.UndAROVtoISnyu2E4l8c0Gxof7ZsTu1apsDE6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'c445d05cec342cf07a10b6def4dd6ddd', 194, 'User', '2012-11-28 22:40:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account533' WHERE `accounts`.`id` = 533 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 533 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (533, 194) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c574f33_1a0480435d4841386@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 194 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 533 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 716  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 343 AND `account_roles`.`name` = 'user' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:05', 'teste@teste.com', '$2a$04$NrSMSsfwOkiwvXpBB62DQukivHypNeFip24JNchLusnxyqLQ2spOS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'babdc3867b6e2ddceb069f2b0506ecdd', 195, 'User', '2012-11-28 22:40:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account534' WHERE `accounts`.`id` = 534 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 534 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (534, 195) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'admin') Sent mail to teste@teste.com (10ms) Date: Wed, 28 Nov 2012 20:40:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692c58816b_1a0480435d48414f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 195 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 534 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 719  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 344 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:05', '2012-11-28 22:40:05', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', '5b4eda7f67723b9645c32c97b9b94a18', 196, 'User', '2012-11-28 22:40:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account535' WHERE `accounts`.`id` = 535 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (535, 196) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 196\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:05.591051000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.591865000Z\n updated_at: 2012-11-28 22:40:05.591865000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_196', '2012-12-05 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:05', '2012-11-28 22:40:05', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', '709912e596676471ab0a79a00de24e9b', 197, 'User', '2012-11-28 22:40:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account536' WHERE `accounts`.`id` = 536 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (536, 197) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 197\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:05.628182000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.628876000Z\n updated_at: 2012-11-28 22:40:05.628876000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_197', '2012-12-05 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:05', '2012-11-28 22:40:05', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'bf39608ed7be18390f92570d1d0a783c', 198, 'User', '2012-11-28 22:40:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account537' WHERE `accounts`.`id` = 537 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (537, 198) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 198\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:05.661490000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.662200000Z\n updated_at: 2012-11-28 22:40:05.662200000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_198', '2012-12-05 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:05', '2012-11-28 22:40:05', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'ecdf04524436ab3248b7f07f272bc635', 199, 'User', '2012-11-28 22:40:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account538' WHERE `accounts`.`id` = 538 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (538, 199) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 199\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:05.691816000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.692486000Z\n updated_at: 2012-11-28 22:40:05.692486000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_199', '2012-12-05 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:05', '2012-11-28 22:40:05', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', '51e430f88481ebdc930db68612e96e2c', 200, 'User', '2012-11-28 22:40:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account539' WHERE `accounts`.`id` = 539 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (539, 200) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 200\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:05.719707000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.720245000Z\n updated_at: 2012-11-28 22:40:05.720245000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_200', '2012-12-05 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:05', '2012-11-28 22:40:05', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'd966eb9891e602679199b316810a205d', 201, 'User', '2012-11-28 22:40:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account540' WHERE `accounts`.`id` = 540 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 540 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (540, 201) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 201\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:05.749673000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.750333000Z\n updated_at: 2012-11-28 22:40:05.750333000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_201', '2012-12-05 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:05', '2012-11-28 22:40:05', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', 'e0b590689561bf923355de1820b70713', 202, 'User', '2012-11-28 22:40:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account541' WHERE `accounts`.`id` = 541 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (541, 202) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 202\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:05.776516000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.777051000Z\n updated_at: 2012-11-28 22:40:05.777051000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_202', '2012-12-05 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:05', '2012-11-28 22:40:05', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:05', 'User', '3ccb7a756702391fba6a61805a23931c', 203, 'User', '2012-11-28 22:40:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:05', NULL, NULL, NULL, '2012-11-28 22:40:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:05', `updated_at` = '2012-11-28 22:40:05', `subdomain` = 'account542' WHERE `accounts`.`id` = 542 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (542, 203) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 203\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:05.806484000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:05.807000000Z\n updated_at: 2012-11-28 22:40:05.807000000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_203', '2012-12-05 22:40:05', '2012-11-28 22:40:05')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:06', '2012-11-28 22:40:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:06', 'User', 'aeb433fa2d2a2e9aac619788a3e238b6', 204, 'User', '2012-11-28 22:40:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:06', NULL, NULL, NULL, '2012-11-28 22:40:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:06', `updated_at` = '2012-11-28 22:40:06', `subdomain` = 'account543' WHERE `accounts`.`id` = 543 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (543, 204) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c613537_1a0480435d484151e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 204)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:06 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 543 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (543, NULL, 'index.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/543/domains" for 127.0.0.1 at 2012-11-28 20:40:06 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"543"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_543_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 204 AND `account_users`.`account_id` = 543 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND `accounts`.`id` = 543 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 Completed 200 OK in 739ms (Views: 727.8ms | ActiveRecord: 3.1ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:07', '2012-11-28 22:40:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:07') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:07', 'User', '93491e22d6722cb3cfab5a6e8c734d3a', 205, 'User', '2012-11-28 22:40:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:07', NULL, NULL, NULL, '2012-11-28 22:40:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:07', `updated_at` = '2012-11-28 22:40:07', `subdomain` = 'account544' WHERE `accounts`.`id` = 544 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (544, 205) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c71c627_1a0480435d4841628@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 205)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (544, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/544/domains" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"544"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_544_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 205 AND `account_users`.`account_id` = 544 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND `accounts`.`id` = 544 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`account_id` = 544 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 544 AND `account_users`.`user_id` = 205 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (354) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (544) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 Completed 200 OK in 23ms (Views: 11.0ms | ActiveRecord: 4.0ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:07', '2012-11-28 22:40:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:07', 'User', '6354b913216d836123b949f05cbe527f', 206, 'User', '2012-11-28 22:40:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:07', NULL, NULL, NULL, '2012-11-28 22:40:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:07', `updated_at` = '2012-11-28 22:40:07', `subdomain` = 'account545' WHERE `accounts`.`id` = 545 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (545, 206) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c735037_1a0480435d4841772@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 206)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (545, NULL, 'index.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 60  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/545/domains" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"545"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_545_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 206 AND `account_users`.`account_id` = 545 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND `accounts`.`id` = 545 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`account_id` = 545 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 545 AND `account_users`.`user_id` = 206 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (355) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (545) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 Completed 200 OK in 23ms (Views: 11.3ms | ActiveRecord: 4.1ms)  (1.4ms) ROLLBACK  (0.3ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:07', '2012-11-28 22:40:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:07', 'User', 'b4b9ce205b7990ad0f1181ba46a75991', 207, 'User', '2012-11-28 22:40:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:07', NULL, NULL, NULL, '2012-11-28 22:40:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:07', `updated_at` = '2012-11-28 22:40:07', `subdomain` = 'account546' WHERE `accounts`.`id` = 546 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (546, 207) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c74dd5b_1a0480435d48418d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 207)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (546, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/546/domains" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"546"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_546_destroy' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 207 AND `account_users`.`account_id` = 546 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND `accounts`.`id` = 546 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`account_id` = 546 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 546 AND `account_users`.`user_id` = 207 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (356) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (546) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 Completed 200 OK in 119ms (Views: 11.7ms | ActiveRecord: 4.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:07', '2012-11-28 22:40:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:07', 'User', '5f5a0bb5ec0c3a5d217cc5038b74b870', 208, 'User', '2012-11-28 22:40:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:07', NULL, NULL, NULL, '2012-11-28 22:40:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:07', `updated_at` = '2012-11-28 22:40:07', `subdomain` = 'account547' WHERE `accounts`.`id` = 547 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (547, 208) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c77e073_1a0480435d4841964@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 208)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (547, NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 62  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 62  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/547/domains" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"547"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_547_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 208 AND `account_users`.`account_id` = 547 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND `accounts`.`id` = 547 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`account_id` = 547 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 547 AND `account_users`.`user_id` = 208 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (357) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (547) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 Completed 200 OK in 24ms (Views: 11.4ms | ActiveRecord: 4.3ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:07', '2012-11-28 22:40:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:07', 'User', 'e038ed7e47ce73b22a86ee87008cac71', 209, 'User', '2012-11-28 22:40:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:07', NULL, NULL, NULL, '2012-11-28 22:40:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:07', `updated_at` = '2012-11-28 22:40:07', `subdomain` = 'account548' WHERE `accounts`.`id` = 548 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (548, 209) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c798c38_1a0480435d48420b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 209)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (548, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 63  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/548/domains" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"548"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_548_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 209 AND `account_users`.`account_id` = 548 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND `accounts`.`id` = 548 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`account_id` = 548 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 548 AND `account_users`.`user_id` = 209 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (358) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (548) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 Completed 200 OK in 24ms (Views: 11.2ms | ActiveRecord: 4.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:07', '2012-11-28 22:40:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:07', 'User', '8d83889c3c2162b33d2819f1ff0ae411', 210, 'User', '2012-11-28 22:40:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:07', NULL, NULL, NULL, '2012-11-28 22:40:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:07', `updated_at` = '2012-11-28 22:40:07', `subdomain` = 'account549' WHERE `accounts`.`id` = 549 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (549, 210) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c7b2376_1a0480435d484211c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 210)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (549, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 64  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/549/domains" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"549"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_549_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 210 AND `account_users`.`account_id` = 549 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND `accounts`.`id` = 549 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`account_id` = 549 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 549 AND `account_users`.`user_id` = 210 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (359) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (549) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 Completed 200 OK in 122ms (Views: 109.3ms | ActiveRecord: 4.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:07', '2012-11-28 22:40:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:07', 'User', 'e2a7a70a1a06f6008f72f662b81409fa', 211, 'User', '2012-11-28 22:40:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:07', NULL, NULL, NULL, '2012-11-28 22:40:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:07', `updated_at` = '2012-11-28 22:40:07', `subdomain` = 'account550' WHERE `accounts`.`id` = 550 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (550, 211) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c7e333d_1a0480435d4842212@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 211)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (550, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 550 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 752  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/550/domains" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"550"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_550_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND `accounts`.`id` = 550 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`account_id` = 550 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 550 AND `account_users`.`user_id` = 211 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (360) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (550) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 Completed 200 OK in 23ms (Views: 11.0ms | ActiveRecord: 3.9ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:08', '2012-11-28 22:40:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:08', 'User', 'a21d7ce5c6a9758d42e73d7e93cefd78', 212, 'User', '2012-11-28 22:40:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', NULL, NULL, NULL, '2012-11-28 22:40:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account551' WHERE `accounts`.`id` = 551 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (551, 212) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c89597_1a0480435d4842314@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 212)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 551 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 754  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/551/user/212/roles" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"551", "user_id"=>"212"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 212 AND `account_users`.`account_id` = 551 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND `accounts`.`id` = 551 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 Completed 200 OK in 29ms (Views: 15.9ms | ActiveRecord: 3.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:08', '2012-11-28 22:40:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:08', 'User', 'dc3f1ae8b8719b7fc5e11b4af089baa3', 213, 'User', '2012-11-28 22:40:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', NULL, NULL, NULL, '2012-11-28 22:40:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account552' WHERE `accounts`.`id` = 552 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 552 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (552, 213) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c826057_1a0480435d48424c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 213)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 552 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 756  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/552/user/213/roles" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"552", "user_id"=>"213"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 213 AND `account_users`.`account_id` = 552 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND `accounts`.`id` = 552 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 Completed 200 OK in 121ms (Views: 13.1ms | ActiveRecord: 4.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:08', '2012-11-28 22:40:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:08', 'User', '06fe7ca4252e1d39255cf7d7b150761c', 214, 'User', '2012-11-28 22:40:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', NULL, NULL, NULL, '2012-11-28 22:40:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account553' WHERE `accounts`.`id` = 553 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 553 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (553, 214) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:40:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c859112_1a0480435d48425a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 214)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 553 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 758  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/553/user/214/roles" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"553", "user_id"=>"214"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 214 AND `account_users`.`account_id` = 553 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND `accounts`.`id` = 553 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 Completed 200 OK in 26ms (Views: 13.2ms | ActiveRecord: 4.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:08', '2012-11-28 22:40:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:08', 'User', 'fa72f6a6051873a8954c35fe7851516a', 215, 'User', '2012-11-28 22:40:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', NULL, NULL, NULL, '2012-11-28 22:40:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account554' WHERE `accounts`.`id` = 554 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (554, 215) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c875afd_1a0480435d484261d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 215)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 554 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 760  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/554/user/215/roles" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"554", "user_id"=>"215"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 215 AND `account_users`.`account_id` = 554 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND `accounts`.`id` = 554 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 Completed 200 OK in 26ms (Views: 13.4ms | ActiveRecord: 3.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:08', '2012-11-28 22:40:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:08', 'User', 'a2b5da5945cac0ee8915e2427231c40e', 216, 'User', '2012-11-28 22:40:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', NULL, NULL, NULL, '2012-11-28 22:40:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account555' WHERE `accounts`.`id` = 555 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (555, 216) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c890b36_1a0480435d484272c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 216)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:08', 'notowner@account.test', '$2a$04$Dh7a/kcHrmbi6B25.mMFZupqUkB6A.ng7nrO1LeVH6THY6daoss/m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:08', 'User', 'b5b44cd795f99058c5a5a01c61f2c54d', 217, 'User', '2012-11-28 22:40:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', NULL, NULL, NULL, '2012-11-28 22:40:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account556' WHERE `accounts`.`id` = 556 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 556 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (556, 217) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:40:08 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692c8b9be6_1a0480435d484281d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', 'jabanilson', NULL, 1, '2012-11-28 22:40:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account557' WHERE `accounts`.`id` = 557  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (557, 217) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 555 WHERE `account_users`.`id` = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 555 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 761 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 762  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/555/user/216/roles" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"555", "user_id"=>"216"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 216 AND `account_users`.`account_id` = 555 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND `accounts`.`id` = 555 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 Completed 200 OK in 28ms (Views: 14.6ms | ActiveRecord: 3.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:08', '2012-11-28 22:40:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:08', 'User', '85de3a6b4f30b6c7110bf65590b1f25d', 218, 'User', '2012-11-28 22:40:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', NULL, NULL, NULL, '2012-11-28 22:40:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account558' WHERE `accounts`.`id` = 558 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (558, 218) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c8d3938_1a0480435d48429fe@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 218)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:08', 'notowner@account.test', '$2a$04$kiVN8C5cLMXKEK0Mi.6pmee0CuiCzJr1gFS.c5uqfvJp4uFM1BxMu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:08', 'User', '580a85a43309d89a3216dcfec1d155d8', 219, 'User', '2012-11-28 22:40:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', NULL, NULL, NULL, '2012-11-28 22:40:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account559' WHERE `accounts`.`id` = 559 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 559 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (559, 219) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:40:08 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692c8e3db2_1a0480435d4843084@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:08', 'jabanilson', NULL, 1, '2012-11-28 22:40:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:08', `updated_at` = '2012-11-28 22:40:08', `subdomain` = 'account560' WHERE `accounts`.`id` = 560  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (560, 219) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 558 WHERE `account_users`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 558 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 768 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 769  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/558/user/218/roles" for 127.0.0.1 at 2012-11-28 20:40:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"558", "user_id"=>"218"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 218 AND `account_users`.`account_id` = 558 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND `accounts`.`id` = 558 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 Completed 200 OK in 33ms (Views: 18.0ms | ActiveRecord: 4.2ms)  (8.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:09', '2012-11-28 22:40:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (9.9ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:09', 'User', '665d596663dec1520f32853d7859472d', 220, 'User', '2012-11-28 22:40:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', NULL, NULL, NULL, '2012-11-28 22:40:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account561' WHERE `accounts`.`id` = 561 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (561, 220) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c9121e3_1a0480435d484315@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 220)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 70ms (ActiveRecord: 15.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:09', 'notowner@account.test', '$2a$04$CsukWpvJv2eu/u5bwgS7XugkVwvmz9bkZQNlhEBYdh3W38/Q0MwyS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:09', 'User', '94c6f9d07bd116f2fd72f3fb859adee7', 221, 'User', '2012-11-28 22:40:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', NULL, NULL, NULL, '2012-11-28 22:40:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account562' WHERE `accounts`.`id` = 562 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (562, 221) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:40:09 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692c922ff5_1a0480435d484325b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', 'jabanilson', NULL, 1, '2012-11-28 22:40:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account563' WHERE `accounts`.`id` = 563  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (563, 221) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 561 WHERE `account_users`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 561 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 775 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 776  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/561/user/220/roles" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"561", "user_id"=>"220"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 220 AND `account_users`.`account_id` = 561 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND `accounts`.`id` = 561 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 Completed 200 OK in 33ms (Views: 15.6ms | ActiveRecord: 3.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:09', '2012-11-28 22:40:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:09', 'User', '0663ea933ddd4b95e02c9f92e70da957', 222, 'User', '2012-11-28 22:40:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', NULL, NULL, NULL, '2012-11-28 22:40:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account564' WHERE `accounts`.`id` = 564 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (564, 222) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c95aa0a_1a0480435d48433d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 222)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:09', 'notowner@account.test', '$2a$04$V.Jn5X/tsyNmllhX5K5LN.BlhrBDMw6RX12i1ui.fGNCInqdtHaMq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:09', 'User', '39c89dff1353acb5d0578de067d18ca5', 223, 'User', '2012-11-28 22:40:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', NULL, NULL, NULL, '2012-11-28 22:40:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account565' WHERE `accounts`.`id` = 565 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 565 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (565, 223) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:40:09 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692c96b8d7_1a0480435d4843413@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', 'jabanilson', NULL, 1, '2012-11-28 22:40:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account566' WHERE `accounts`.`id` = 566  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (566, 223) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 564 WHERE `account_users`.`id` = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 564 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 782 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 783  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/564/user/222/roles" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"564", "user_id"=>"222"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 222 AND `account_users`.`account_id` = 564 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND `accounts`.`id` = 564 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 Completed 200 OK in 34ms (Views: 16.6ms | ActiveRecord: 3.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:09', '2012-11-28 22:40:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:09', 'User', '08f6e11d508cf4e7ddb5b23a5b65bb2f', 224, 'User', '2012-11-28 22:40:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', NULL, NULL, NULL, '2012-11-28 22:40:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account567' WHERE `accounts`.`id` = 567 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 567 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (567, 224) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c987f3d_1a0480435d4843589@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 224)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 224 AND `account_users`.`account_id` = 567 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (377) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (567) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:09', '2012-11-28 22:40:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:09', 'User', '30d1d8a7e5c29e64c6271c15548d10eb', 225, 'User', '2012-11-28 22:40:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', NULL, NULL, NULL, '2012-11-28 22:40:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account568' WHERE `accounts`.`id` = 568 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 568 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (568, 225) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c9b97c4_1a0480435d484362e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 225)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 160ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Completed 200 OK in 18ms (Views: 14.0ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 1.9ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:09', '2012-11-28 22:40:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:09', 'User', '09cc6f3a12742f025643d4f51689dfc2', 226, 'User', '2012-11-28 22:40:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', NULL, NULL, NULL, '2012-11-28 22:40:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account569' WHERE `accounts`.`id` = 569 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 569 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (569, 226) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c9d5a71_1a0480435d484378@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 226)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.4ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:09', '2012-11-28 22:40:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:09', 'User', 'b8c298e53fb276bbfcb5cc00450186a1', 227, 'User', '2012-11-28 22:40:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:09', NULL, NULL, NULL, '2012-11-28 22:40:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:09', `updated_at` = '2012-11-28 22:40:09', `subdomain` = 'account570' WHERE `accounts`.`id` = 570 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 570 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (570, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692c9efa03_1a0480435d48438fa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 227)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 16ms (Views: 12.0ms | ActiveRecord: 1.7ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 380\n account_id: 570\n user_id: 227\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_380_destroy', '2012-11-28 22:40:10', '2012-11-28 22:40:10')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', 'jabanilson', NULL, 1, '2012-11-28 22:40:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account571' WHERE `accounts`.`id` = 571  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (571, 227) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 1.8ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:10', '2012-11-28 22:40:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:10', 'User', '91d66694771345d41242b269a70db172', 228, 'User', '2012-11-28 22:40:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', NULL, NULL, NULL, '2012-11-28 22:40:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account572' WHERE `accounts`.`id` = 572 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (572, 228) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692ca3acf2_1a0480435d4843998@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 228)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 157ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 15ms (Views: 11.3ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 16ms (Views: 12.5ms | ActiveRecord: 1.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 382\n account_id: 572\n user_id: 228\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_382_destroy', '2012-11-28 22:40:10', '2012-11-28 22:40:10')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', 'jabanilson', NULL, 1, '2012-11-28 22:40:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account573' WHERE `accounts`.`id` = 573  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (573, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', 'jabanilson', NULL, 1, '2012-11-28 22:40:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account574' WHERE `accounts`.`id` = 574  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (574, 228) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 2.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:10', '2012-11-28 22:40:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:10', 'User', 'b8632ac4703c25a7f24b735590481a98', 229, 'User', '2012-11-28 22:40:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', NULL, NULL, NULL, '2012-11-28 22:40:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account575' WHERE `accounts`.`id` = 575 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 575 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (575, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:40:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692ca629cc_1a0480435d4844086@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 229)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 19ms (Views: 14.7ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 16ms (Views: 11.9ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 385\n account_id: 575\n user_id: 229\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_385_destroy', '2012-11-28 22:40:10', '2012-11-28 22:40:10')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', 'jabanilson', NULL, 1, '2012-11-28 22:40:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account576' WHERE `accounts`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (576, 229) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', 'jabanilson', NULL, 1, '2012-11-28 22:40:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account577' WHERE `accounts`.`id` = 577  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (577, 229) AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (2.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 18ms (Views: 13.9ms | ActiveRecord: 2.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:10', '2012-11-28 22:40:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:10', 'User', 'd7c97320debc6302adcaa1ec21379b42', 230, 'User', '2012-11-28 22:40:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', NULL, NULL, NULL, '2012-11-28 22:40:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account578' WHERE `accounts`.`id` = 578 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 578 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (578, 230) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692ca9c931_1a0480435d48441c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 230)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 60ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 230 AND `account_users`.`account_id` = 578 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (388) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (578) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 132ms (Views: 11.0ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', 'jabanilson', NULL, 1, '2012-11-28 22:40:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account579' WHERE `accounts`.`id` = 579  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (579, 230) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/579" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"579"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND `accounts`.`id` = 579 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 579 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 579 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_579_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 46ms (Views: 38.1ms | ActiveRecord: 3.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:10', '2012-11-28 22:40:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:10', 'User', '786507e9ddd4e7aa808be85ac6852fd8', 231, 'User', '2012-11-28 22:40:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', NULL, NULL, NULL, '2012-11-28 22:40:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account580' WHERE `accounts`.`id` = 580 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 580 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (580, 231) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cadf20c_1a0480435d48442f0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 231)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 231 AND `account_users`.`account_id` = 580 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (390) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (580) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 1.7ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:10', 'jabanilson', NULL, 1, '2012-11-28 22:40:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:10', `updated_at` = '2012-11-28 22:40:10', `subdomain` = 'account581' WHERE `accounts`.`id` = 581  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (581, 231) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/581" for 127.0.0.1 at 2012-11-28 20:40:10 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"581"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND `accounts`.`id` = 581 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 581 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 581 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_581_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 36ms (Views: 28.9ms | ActiveRecord: 3.6ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:11', '2012-11-28 22:40:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:11', 'User', 'aaec1c284b8853fcf2a152a1ec8bb592', 232, 'User', '2012-11-28 22:40:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', NULL, NULL, NULL, '2012-11-28 22:40:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account582' WHERE `accounts`.`id` = 582 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 582 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (582, 232) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cb105dc_1a0480435d48443bb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 232)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 232 AND `account_users`.`account_id` = 582 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (392) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (582) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 2.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', 'jabanilson', NULL, 1, '2012-11-28 22:40:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account583' WHERE `accounts`.`id` = 583  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (583, 232) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 583 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 822  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/583" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"583"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND `accounts`.`id` = 583 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 583 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 583 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_583_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 143ms (Views: 135.5ms | ActiveRecord: 3.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:11', '2012-11-28 22:40:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:11', 'User', 'fac06a7a5183eb17484cbe4f70834520', 233, 'User', '2012-11-28 22:40:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', NULL, NULL, NULL, '2012-11-28 22:40:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account584' WHERE `accounts`.`id` = 584 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 584 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (584, 233) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:40:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cb50393_1a0480435d484449a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 233)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 233 AND `account_users`.`account_id` = 584 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (394) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (584) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', 'jabanilson', NULL, 1, '2012-11-28 22:40:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account585' WHERE `accounts`.`id` = 585  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (585, 233) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 585 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 827  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/585" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"585"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND `accounts`.`id` = 585 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 585 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 585 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_585_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 33ms (Views: 26.4ms | ActiveRecord: 3.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:11', '2012-11-28 22:40:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:11', 'User', '3cfbcb6eac5c3127d9becf42751416fd', 234, 'User', '2012-11-28 22:40:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', NULL, NULL, NULL, '2012-11-28 22:40:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account586' WHERE `accounts`.`id` = 586 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 586 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (586, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cb74c73_1a0480435d4844555@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 234)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 234 AND `account_users`.`account_id` = 586 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (396) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (586) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', 'jabanilson', NULL, 1, '2012-11-28 22:40:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account587' WHERE `accounts`.`id` = 587  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (587, 234) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 587 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 831  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/587" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"587"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND `accounts`.`id` = 587 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 587 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 587 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_587_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 31ms (Views: 23.2ms | ActiveRecord: 3.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:11', '2012-11-28 22:40:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:11', 'User', 'f5188c16fa6b10b46447cc14009d6d7f', 235, 'User', '2012-11-28 22:40:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', NULL, NULL, NULL, '2012-11-28 22:40:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account588' WHERE `accounts`.`id` = 588 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 588 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (588, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cbb14bd_1a0480435d484461c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 235)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 155ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 235 AND `account_users`.`account_id` = 588 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (398) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (588) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 18ms (Views: 14.3ms | ActiveRecord: 1.8ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', 'jabanilson', NULL, 1, '2012-11-28 22:40:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account589' WHERE `accounts`.`id` = 589  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (589, 235) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 589 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 835  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/589" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"589"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND `accounts`.`id` = 589 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 589 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 589 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_589_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 43ms (Views: 34.9ms | ActiveRecord: 3.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:11', '2012-11-28 22:40:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:11', 'User', '641ee918f5956cc4ff10c9ee02bc8c29', 236, 'User', '2012-11-28 22:40:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', NULL, NULL, NULL, '2012-11-28 22:40:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account590' WHERE `accounts`.`id` = 590 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 590 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (590, 236) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cbdc1ac_1a0480435d484476c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 236)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Account Load (1.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 236 AND `account_users`.`account_id` = 590 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (400) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (590) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 22ms (Views: 16.8ms | ActiveRecord: 3.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:11', 'jabanilson', NULL, 1, '2012-11-28 22:40:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:11', `updated_at` = '2012-11-28 22:40:11', `subdomain` = 'account591' WHERE `accounts`.`id` = 591  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (591, 236) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 591 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 839  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/591" for 127.0.0.1 at 2012-11-28 20:40:11 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"591"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND `accounts`.`id` = 591 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 591 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 591 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_591_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 42ms (Views: 33.7ms | ActiveRecord: 3.9ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:12', '2012-11-28 22:40:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:12', 'User', '1c273e4134c724357c435cef2aba32d5', 237, 'User', '2012-11-28 22:40:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:12', NULL, NULL, NULL, '2012-11-28 22:40:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:12', `updated_at` = '2012-11-28 22:40:12', `subdomain` = 'account592' WHERE `accounts`.`id` = 592 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 592 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (592, 237) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cc16a3f_1a0480435d4844826@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 237)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 237 AND `account_users`.`account_id` = 592 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (402) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (592) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 18ms (Views: 13.2ms | ActiveRecord: 1.8ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:12', 'jabanilson', NULL, 1, '2012-11-28 22:40:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:12', `updated_at` = '2012-11-28 22:40:12', `subdomain` = 'account593' WHERE `accounts`.`id` = 593  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (593, 237) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 593 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 843  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 33ms (Views: 25.2ms | ActiveRecord: 3.7ms) Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 41ms (Views: 32.7ms | ActiveRecord: 3.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:12', '2012-11-28 22:40:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:12', 'User', '28a9c5d9a95a5d66b9f3cc922182a29b', 238, 'User', '2012-11-28 22:40:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:12', NULL, NULL, NULL, '2012-11-28 22:40:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:12', `updated_at` = '2012-11-28 22:40:12', `subdomain` = 'account594' WHERE `accounts`.`id` = 594 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 594 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (594, 238) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:40:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cc63e64_1a0480435d4844950@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 238)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 5.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 238 AND `account_users`.`account_id` = 594 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (404) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (594) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 17ms (Views: 12.5ms | ActiveRecord: 1.9ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:12', 'jabanilson', NULL, 1, '2012-11-28 22:40:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:12', `updated_at` = '2012-11-28 22:40:12', `subdomain` = 'account595' WHERE `accounts`.`id` = 595  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (595, 238) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 595 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 847  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 48ms (Views: 39.1ms | ActiveRecord: 3.5ms) Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 38ms (Views: 27.9ms | ActiveRecord: 3.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:12', '2012-11-28 22:40:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:12', 'User', '919613f4ceb9bfc021d3bb8e6393d97e', 239, 'User', '2012-11-28 22:40:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:12', NULL, NULL, NULL, '2012-11-28 22:40:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:12', `updated_at` = '2012-11-28 22:40:12', `subdomain` = 'account596' WHERE `accounts`.`id` = 596 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 596 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (596, 239) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cc992b7_1a0480435d48450e3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 239)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 125ms (Views: 121.1ms | ActiveRecord: 1.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:12', 'jabanilson', NULL, 1, '2012-11-28 22:40:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:12', `updated_at` = '2012-11-28 22:40:12', `subdomain` = 'account597' WHERE `accounts`.`id` = 597  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (597, 239) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 597 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 851  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 34ms (Views: 25.7ms | ActiveRecord: 3.5ms) Started DELETE "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 597 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 597\n created_at: 2012-11-28 22:40:12.000000000Z\n updated_at: 2012-11-28 22:40:12.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account597\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_597_destroy', '2012-11-28 22:40:12', '2012-11-28 22:40:12')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 14ms (ActiveRecord: 2.7ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 2.1ms) Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 35ms (Views: 27.3ms | ActiveRecord: 3.9ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:12', '2012-11-28 22:40:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:12', 'User', '3c31bd35faba8c0fd8fe8f6379315c60', 240, 'User', '2012-11-28 22:40:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:12', NULL, NULL, NULL, '2012-11-28 22:40:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:12', `updated_at` = '2012-11-28 22:40:12', `subdomain` = 'account598' WHERE `accounts`.`id` = 598 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 598 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (598, 240) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692ccf11e7_1a0480435d4845166@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 240)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 15ms (Views: 10.6ms | ActiveRecord: 2.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', 'jabanilson', NULL, 1, '2012-11-28 22:40:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account599' WHERE `accounts`.`id` = 599  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (599, 240) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 599 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 855  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 33ms (Views: 25.5ms | ActiveRecord: 4.0ms) Started DELETE "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 599 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:13', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 599\n created_at: 2012-11-28 22:40:13.000000000Z\n updated_at: 2012-11-28 22:40:13.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account599\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_599_destroy', '2012-11-29 22:40:13', '2012-11-28 22:40:13')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 117ms (ActiveRecord: 2.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 15ms (Views: 11.7ms | ActiveRecord: 2.1ms) Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 32ms (Views: 23.9ms | ActiveRecord: 3.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:13', '2012-11-28 22:40:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:13', 'User', '1faf2b884ec1b57763d1734cfbd9e62f', 241, 'User', '2012-11-28 22:40:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', NULL, NULL, NULL, '2012-11-28 22:40:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account600' WHERE `accounts`.`id` = 600 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 600 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (600, 241) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cd4df60_1a0480435d48452d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 241)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 241 AND `account_users`.`account_id` = 600 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (410) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (600) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 16ms (Views: 10.9ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', 'jabanilson', NULL, 1, '2012-11-28 22:40:13')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account601' WHERE `accounts`.`id` = 601  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (601, 241) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:13', 'notowner@account.test', '$2a$04$Wyp00o.SYFZ1VkXmmT.5Z.w6Mav94YtNAP.4mEEZrP2sOOFYIeXxC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:13', 'User', 'd7abcb274c534bb17c51915ba8b654e3', 242, 'User', '2012-11-28 22:40:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', NULL, NULL, NULL, '2012-11-28 22:40:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account602' WHERE `accounts`.`id` = 602 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 602 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (602, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:40:13 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692cd65d96_1a0480435d48453aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', 'jabanilson', NULL, 1, '2012-11-28 22:40:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account603' WHERE `accounts`.`id` = 603  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (603, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 601 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 601 WHERE `account_users`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 601 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 858 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 859  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/601" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"601"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND `accounts`.`id` = 601 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 601 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 28ms (Views: 21.0ms | ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:13', '2012-11-28 22:40:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:13', 'User', '0b839b839c912dc859c83d39f71cdd1f', 243, 'User', '2012-11-28 22:40:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', NULL, NULL, NULL, '2012-11-28 22:40:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account604' WHERE `accounts`.`id` = 604 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 604 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (604, 243) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cd7fde3_1a0480435d4845420@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 243)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 243 AND `account_users`.`account_id` = 604 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (414) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (604) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 15ms (Views: 10.4ms | ActiveRecord: 2.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', 'jabanilson', NULL, 1, '2012-11-28 22:40:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account605' WHERE `accounts`.`id` = 605  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (605, 243) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:13', 'notowner@account.test', '$2a$04$ZduCfcuJa3.VxuhXSnSjdu1HziP.jw4ETjsLPkVklF9GQn3126Z/K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:13') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:13', 'User', '951c52ea396cc95407f80f6aa3b5d802', 244, 'User', '2012-11-28 22:40:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', NULL, NULL, NULL, '2012-11-28 22:40:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account606' WHERE `accounts`.`id` = 606 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 606 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (606, 244) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:40:13 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692cdb38cf_1a0480435d48455a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', 'jabanilson', NULL, 1, '2012-11-28 22:40:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account607' WHERE `accounts`.`id` = 607  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (607, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 605 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 605 WHERE `account_users`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 605 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 867 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 868  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/605" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"605"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND `accounts`.`id` = 605 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 605 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 30ms (Views: 22.8ms | ActiveRecord: 3.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:13', '2012-11-28 22:40:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:13', 'User', '04ebb3a8d90f06b028c6db2c1d59987e', 245, 'User', '2012-11-28 22:40:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', NULL, NULL, NULL, '2012-11-28 22:40:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account608' WHERE `accounts`.`id` = 608 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 608 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (608, 245) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:40:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cdce8fa_1a0480435d4845646@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 245)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 245 AND `account_users`.`account_id` = 608 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (418) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (608) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 1.9ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', 'jabanilson', NULL, 1, '2012-11-28 22:40:13')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account609' WHERE `accounts`.`id` = 609  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (609, 245) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:13', 'notowner@account.test', '$2a$04$oTX9jxcbpBj0aHFm8GVhxOaaqxAXlyd/LixsELYdrMybBSkHKHPze', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:13', 'User', 'd01b6f6969cc2e22775bade6ac3f927b', 246, 'User', '2012-11-28 22:40:13') ApiToken Load (0.1ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', NULL, NULL, NULL, '2012-11-28 22:40:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account610' WHERE `accounts`.`id` = 610 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 610 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (610, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:40:13 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692cde6df7_1a0480435d484573a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:13', 'jabanilson', NULL, 1, '2012-11-28 22:40:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:13', `updated_at` = '2012-11-28 22:40:13', `subdomain` = 'account611' WHERE `accounts`.`id` = 611  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (611, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 609 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 609 WHERE `account_users`.`id` = 421  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 609 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 876 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 877  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/609" for 127.0.0.1 at 2012-11-28 20:40:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"609"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND `accounts`.`id` = 609 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 609 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 30ms (Views: 22.5ms | ActiveRecord: 3.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:14', '2012-11-28 22:40:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:14', 'User', 'bb9dbba9808b5804cd99e16a4edd58f0', 247, 'User', '2012-11-28 22:40:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', NULL, NULL, NULL, '2012-11-28 22:40:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account612' WHERE `accounts`.`id` = 612 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 612 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (612, 247) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692ced944_1a0480435d48458e5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 247)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 247 AND `account_users`.`account_id` = 612 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (422) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (612) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 16ms (Views: 12.1ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', 'jabanilson', NULL, 1, '2012-11-28 22:40:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account613' WHERE `accounts`.`id` = 613  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (613, 247) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:14', 'notowner@account.test', '$2a$04$nAph9xVqxh1l.NaJZkvUqOu/CDZRTe2fdxdb/WFFb7/S2gy.JGAyC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:14', 'User', '31ea4d01a42e5712482cb52963bae606', 248, 'User', '2012-11-28 22:40:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', NULL, NULL, NULL, '2012-11-28 22:40:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account614' WHERE `accounts`.`id` = 614 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 614 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (614, 248) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:40:14 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692ce45ab2_1a0480435d48459b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', 'jabanilson', NULL, 1, '2012-11-28 22:40:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account615' WHERE `accounts`.`id` = 615  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (615, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 613 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 613 WHERE `account_users`.`id` = 425  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 613 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 885 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 886  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/613" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"613"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND `accounts`.`id` = 613 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 613 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 32ms (Views: 23.8ms | ActiveRecord: 3.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:14', '2012-11-28 22:40:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:14', 'User', 'c033249ca5264dd03647e5dc9bfcfa77', 249, 'User', '2012-11-28 22:40:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', NULL, NULL, NULL, '2012-11-28 22:40:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account616' WHERE `accounts`.`id` = 616 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 616 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (616, 249) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692ce61c31_1a0480435d48460ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 249)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 249 AND `account_users`.`account_id` = 616 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (426) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (616) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 2.0ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', 'jabanilson', NULL, 1, '2012-11-28 22:40:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account617' WHERE `accounts`.`id` = 617  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (617, 249) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/617" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"617"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND `accounts`.`id` = 617 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 617 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 617 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_617_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 28ms (Views: 20.7ms | ActiveRecord: 3.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:14', '2012-11-28 22:40:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:14', 'User', '759ae1dff897da7a3e765fa91a37d497', 250, 'User', '2012-11-28 22:40:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', NULL, NULL, NULL, '2012-11-28 22:40:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account618' WHERE `accounts`.`id` = 618 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 618 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (618, 250) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:40:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692ce854c5_1a0480435d48461e6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 250)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 250 AND `account_users`.`account_id` = 618 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (428) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (618) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 16ms (Views: 11.9ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', 'jabanilson', NULL, 1, '2012-11-28 22:40:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account619' WHERE `accounts`.`id` = 619  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (619, 250) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/619" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"619"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND `accounts`.`id` = 619 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 619 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_619_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 140ms (Views: 132.1ms | ActiveRecord: 3.3ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:14', 'teste@teste.com', '$2a$04$ehgLXdx76scfXxhBJjy9j..WRc.NrpKZvwl07GgEXh9nGOqYCUw9q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:14', 'User', 'c1b2c2ee408a39d61e64d7a2395e36c8', 251, 'User', '2012-11-28 22:40:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', NULL, NULL, NULL, '2012-11-28 22:40:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account620' WHERE `accounts`.`id` = 620 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 620 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (620, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692cec5162_1a0480435d484628d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:14', '2012-11-28 22:40:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:14', 'User', '9bfcc6d8804733edcd71e163891b6ed3', 252, 'User', '2012-11-28 22:40:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', NULL, NULL, NULL, '2012-11-28 22:40:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account621' WHERE `accounts`.`id` = 621 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 252) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:40:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692ced07be_1a0480435d4846356@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 252)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 904 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 905  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 903  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Started GET "/settings/account/621/users" for 127.0.0.1 at 2012-11-28 20:40:14 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"621"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_621_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431, 432) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_431_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 251 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_432_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 Completed 200 OK in 44ms (Views: 34.0ms | ActiveRecord: 4.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:14', 'teste@teste.com', '$2a$04$RzGFlm9dmj.ZEsfSsRqoWe1avSKAQM3nWtasgHRZoRcMCjjSgvj5e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:14', 'User', 'f7606dc1bd4f50bfe12074f322308549', 253, 'User', '2012-11-28 22:40:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:14', NULL, NULL, NULL, '2012-11-28 22:40:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:14', `updated_at` = '2012-11-28 22:40:14', `subdomain` = 'account622' WHERE `accounts`.`id` = 622 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 622 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (622, 253) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'admin') Sent mail to teste@teste.com (9ms) Date: Wed, 28 Nov 2012 20:40:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692cf34a6_1a0480435d4846462@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:15', '2012-11-28 22:40:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:15', 'User', '2359f909008fa35cd8d2fbb00cc29547', 254, 'User', '2012-11-28 22:40:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:15', NULL, NULL, NULL, '2012-11-28 22:40:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:15', `updated_at` = '2012-11-28 22:40:15', `subdomain` = 'account623' WHERE `accounts`.`id` = 623 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 254) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:40:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cf125cd_1a0480435d4846543@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 254)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 60ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 253) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 911 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 912  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 910  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Started GET "/settings/account/623/users" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"623"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_623_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434, 435) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_434_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 253 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_435_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 5.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:15', 'teste@teste.com', '$2a$04$0hRb7qDLjZ6.x97R9qS1PO3b9.TSJJJRLx.mYUOp4pc0rvTrg3xAu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:15', 'User', '33c1dad67a40483fdfbba9c66ce00672', 255, 'User', '2012-11-28 22:40:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:15', NULL, NULL, NULL, '2012-11-28 22:40:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:15', `updated_at` = '2012-11-28 22:40:15', `subdomain` = 'account624' WHERE `accounts`.`id` = 624 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 624 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (624, 255) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692cf51521_1a0480435d484663e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:15', '2012-11-28 22:40:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:15', 'User', 'de9fbdcc93a8907086cceb96579d1325', 256, 'User', '2012-11-28 22:40:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:15', NULL, NULL, NULL, '2012-11-28 22:40:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:15', `updated_at` = '2012-11-28 22:40:15', `subdomain` = 'account625' WHERE `accounts`.`id` = 625 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 256) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:40:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cf5cb0b_1a0480435d4846731@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 256)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 255) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 918 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 919  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 917  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Started GET "/settings/account/625/users" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"625"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_625_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437, 438) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_437_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 255 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_438_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 Completed 200 OK in 32ms (Views: 23.6ms | ActiveRecord: 5.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:15', 'teste@teste.com', '$2a$04$WRyWg5ofptGYgzbzYSxMr.yJuAEr2nE5cDFFex7swdJ6bAFA3142y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:15', 'User', '1028a0c7977a714001b155466ff9fb28', 257, 'User', '2012-11-28 22:40:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:15', NULL, NULL, NULL, '2012-11-28 22:40:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:15', `updated_at` = '2012-11-28 22:40:15', `subdomain` = 'account626' WHERE `accounts`.`id` = 626 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 626 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (626, 257) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:40:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692cf8010b_1a0480435d4846821@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:15', '2012-11-28 22:40:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:15', 'User', 'ddae55a41d735728b50b488ed305e8bb', 258, 'User', '2012-11-28 22:40:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:15', NULL, NULL, NULL, '2012-11-28 22:40:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:15', `updated_at` = '2012-11-28 22:40:15', `subdomain` = 'account627' WHERE `accounts`.`id` = 627 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 258) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:40:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cf8b1ed_1a0480435d4846933@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 258)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 257) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 925 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 926  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 924  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Started GET "/settings/account/627/users" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"627"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_627_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440, 441) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_440_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 257 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_441_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 Completed 200 OK in 33ms (Views: 25.3ms | ActiveRecord: 4.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:15', 'teste@teste.com', '$2a$04$mr5jE1RdN86ayRA1w68Ty.GatWNPqDLarBR8R/GIhHt8xdmyBVgaC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:15', 'User', '129b28be8d998c8323a17d18dbafcd63', 259, 'User', '2012-11-28 22:40:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:15', NULL, NULL, NULL, '2012-11-28 22:40:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:15', `updated_at` = '2012-11-28 22:40:15', `subdomain` = 'account628' WHERE `accounts`.`id` = 628 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 628 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (628, 259) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692cfc98eb_1a0480435d484709e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:15', '2012-11-28 22:40:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:15', 'User', '45b43f450df6e06262c70ee1486fbb84', 260, 'User', '2012-11-28 22:40:15') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:15', NULL, NULL, NULL, '2012-11-28 22:40:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:15', `updated_at` = '2012-11-28 22:40:15', `subdomain` = 'account629' WHERE `accounts`.`id` = 629 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 260) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:40:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692cfd47d1_1a0480435d4847130@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 260)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 259) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 932 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 933  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 931  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Started GET "/settings/account/629/users" for 127.0.0.1 at 2012-11-28 20:40:15 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"629"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_629_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443, 444) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_443_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 259 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_444_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 Completed 200 OK in 34ms (Views: 26.6ms | ActiveRecord: 4.2ms) User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:15', 'teste@teste.com', '$2a$04$211hq313xlRmJQ1I6o7ovO/AVKPu3KrtAxUq6bKxN/2HqXmetQ3Qq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:15', 'User', '9e8c7d9fed05b9ff738d104e01bf5d5b', 261, 'User', '2012-11-28 22:40:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:15', NULL, NULL, NULL, '2012-11-28 22:40:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:15', `updated_at` = '2012-11-28 22:40:15', `subdomain` = 'account630' WHERE `accounts`.`id` = 630 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 630 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (630, 261) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d03406_1a0480435d484729f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:16', '2012-11-28 22:40:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', 'ff1053fcb61c8e33f5bb7ae101ac219d', 262, 'User', '2012-11-28 22:40:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account631' WHERE `accounts`.`id` = 631 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 262) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d0df1b_1a0480435d48473ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 262)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 261) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 940 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 941  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 939  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Started GET "/settings/account/631/users" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"631"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_631_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446, 447) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_446_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 261 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_447_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 Completed 200 OK in 30ms (Views: 24.1ms | ActiveRecord: 3.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:16', 'teste@teste.com', '$2a$04$nzg/cWitRRDaMqtpAfCAleoRQbGPTCOnZysnSGkGdP1Plo4FKDj4e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', '90790db428319843de6e757835a86c07', 263, 'User', '2012-11-28 22:40:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account632' WHERE `accounts`.`id` = 632 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 632 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (632, 263) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d046969_1a0480435d484742c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:16', '2012-11-28 22:40:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', '566bb7095e3b7fdf931df476c5bb78e7', 264, 'User', '2012-11-28 22:40:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account633' WHERE `accounts`.`id` = 633 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 264) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d050bf8_1a0480435d484752a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 264)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 47ms (ActiveRecord: 4.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 263) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 948 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 949  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 947  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Started GET "/settings/account/633/users" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"633"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_633_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449, 450) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_449_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 263 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_450_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 Completed 200 OK in 31ms (Views: 24.3ms | ActiveRecord: 3.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:16', 'teste@teste.com', '$2a$04$Aa0HQ4OUb.ct0G4oK1RlHeBEj5IXPBMXPO9kGy6EFbyTFfunTIryy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', '38eccf37dcbe2db15c788744ac7992f7', 265, 'User', '2012-11-28 22:40:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account634' WHERE `accounts`.`id` = 634 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 634 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (634, 265) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d070d67_1a0480435d48476c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:16', '2012-11-28 22:40:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', 'a3ed7de817cd550f4d2262b168ac1e5d', 266, 'User', '2012-11-28 22:40:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account635' WHERE `accounts`.`id` = 635 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 266) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d07b3b5_1a0480435d4847750@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 266)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 47ms (ActiveRecord: 4.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 265) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 956 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 957  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 955  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Started GET "/settings/account/635/users" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"635"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_635_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452, 453) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_452_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 265 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_453_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 Completed 200 OK in 32ms (Views: 24.1ms | ActiveRecord: 4.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:16', 'teste@teste.com', '$2a$04$e69vglFzIKuHHworFu.Xk.kVjo6T4mwg/6bbyoZP637h95YMbEKau', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', 'e0320d1ef7d35162ebbde1fa413196e7', 267, 'User', '2012-11-28 22:40:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account636' WHERE `accounts`.`id` = 636 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 636 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (636, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d09babc_1a0480435d484783@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:16', '2012-11-28 22:40:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', '88e95c8eba9aa61c9fcf8f46f95d8d7b', 268, 'User', '2012-11-28 22:40:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account637' WHERE `accounts`.`id` = 637 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 268) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d0c1a52_1a0480435d48479a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 268)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 159ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:16', 'notowner@account.test', '$2a$04$LmQOhW6844Qy/uUbLlj3puPTbxgNKnJNNXN89514D1nMwfr18qqb.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', 'a7de18c890cf2fabd65f672f2c6f4ba3', 269, 'User', '2012-11-28 22:40:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account638' WHERE `accounts`.`id` = 638 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 638 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (638, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692d0d08f4_1a0480435d484806b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', 'jabanilson', NULL, 1, '2012-11-28 22:40:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account639' WHERE `accounts`.`id` = 639  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (639, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 637 WHERE `account_users`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 968 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 969  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 962 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 963  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Started GET "/settings/account/637/users" for 127.0.0.1 at 2012-11-28 20:40:16 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"637"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_637_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455, 457, 458) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 269 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 Completed 200 OK in 44ms (Views: 35.7ms | ActiveRecord: 4.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:16', 'teste@teste.com', '$2a$04$pV6SCKEhkgJz/jmYEbBrou3SofFWDPU1.WqgnvXP73C0NSHMpjW4q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:16', 'User', 'e543993ee9b35cb333a93786644af973', 270, 'User', '2012-11-28 22:40:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:16', NULL, NULL, NULL, '2012-11-28 22:40:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:16', `updated_at` = '2012-11-28 22:40:16', `subdomain` = 'account640' WHERE `accounts`.`id` = 640 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 640 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (640, 270) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d0f28ad_1a0480435d4848194@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:17', '2012-11-28 22:40:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:17') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:17', 'User', '043b6555ac8e04e1ca53d2af5f429ed8', 271, 'User', '2012-11-28 22:40:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', NULL, NULL, NULL, '2012-11-28 22:40:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account641' WHERE `accounts`.`id` = 641 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 271) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d194dc_1a0480435d48482ee@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 271)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:17', 'notowner@account.test', '$2a$04$UjEQxLs8s8SlkmyPEI.v7e7N.Rk0fHGn/FbSGU2kW9gCBCMT9LL12', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:17', 'User', 'd8f551ed9ffb913be98d9a643a444d8b', 272, 'User', '2012-11-28 22:40:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', NULL, NULL, NULL, '2012-11-28 22:40:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account642' WHERE `accounts`.`id` = 642 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 642 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (642, 272) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:40:17 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692d118759_1a0480435d484837b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', 'jabanilson', NULL, 1, '2012-11-28 22:40:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account643' WHERE `accounts`.`id` = 643  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (643, 272) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 641 WHERE `account_users`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 270) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 980 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 981  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 974 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 975  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Started GET "/settings/account/641/users" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"641"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_641_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460, 462, 463) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 272 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 Completed 200 OK in 173ms (Views: 164.6ms | ActiveRecord: 4.9ms)  (243.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:17', 'teste@teste.com', '$2a$04$re.FDu.TyWatHWxwc13/zOaTEBGexnR1eE/z2NUmfTdIcfaCWsrUu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:17', 'User', '7d2e6e37106b807aeefbe0fcbcf05cab', 273, 'User', '2012-11-28 22:40:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', NULL, NULL, NULL, '2012-11-28 22:40:17')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account644' WHERE `accounts`.`id` = 644 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 644 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (644, 273) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d1952c9_1a0480435d484842@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:17', '2012-11-28 22:40:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:17', 'User', '0f93256ba6439078677d88406a209b0f', 274, 'User', '2012-11-28 22:40:17') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', NULL, NULL, NULL, '2012-11-28 22:40:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account645' WHERE `accounts`.`id` = 645 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 274) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d1a0386_1a0480435d48485b8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 274)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.6ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:17', 'notowner@account.test', '$2a$04$g0hIbe7MLmp.G6wTTQF0lu4G6Wl71CFT1xeUWXa52mzqxGDi.CnVm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:17', 'User', '0be0c611bd00338b0be76b6507e788f3', 275, 'User', '2012-11-28 22:40:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', NULL, NULL, NULL, '2012-11-28 22:40:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account646' WHERE `accounts`.`id` = 646 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 646 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (646, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:40:17 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692d1af6e7_1a0480435d48486d6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', 'jabanilson', NULL, 1, '2012-11-28 22:40:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account647' WHERE `accounts`.`id` = 647  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (647, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 645 WHERE `account_users`.`id` = 467  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 273) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 992 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 993  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 986 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 987  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Started GET "/settings/account/645/users" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"645"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_645_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465, 467, 468) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 275 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 Completed 200 OK in 44ms (Views: 36.5ms | ActiveRecord: 4.5ms)  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:17', 'teste@teste.com', '$2a$04$4jILR9HUkpe5kvoZhrKvRu3bbgT/cvw0NFuSSn/MytsfR74QUtXlO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:17', 'User', '7e051d90462de09acc53fafcec703094', 276, 'User', '2012-11-28 22:40:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', NULL, NULL, NULL, '2012-11-28 22:40:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account648' WHERE `accounts`.`id` = 648 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 648 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (648, 276) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:40:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d1d1c67_1a0480435d48487dc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:17', '2012-11-28 22:40:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:17', 'User', 'd7576638f2f8eac48b34d5ad51a7ed0f', 277, 'User', '2012-11-28 22:40:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:17', NULL, NULL, NULL, '2012-11-28 22:40:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:17', `updated_at` = '2012-11-28 22:40:17', `subdomain` = 'account649' WHERE `accounts`.`id` = 649 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 277) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d1dceed_1a0480435d484889c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 277)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:17 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Completed 200 OK in 117ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:18', 'notowner@account.test', '$2a$04$sQuAnRqmdACyW6IDlF1x5uvpd5zCONEbrzYsOVqDVy6FOGs7RV6vi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', '40f0063e56aa6f98be97e34d4c63a8a1', 278, 'User', '2012-11-28 22:40:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account650' WHERE `accounts`.`id` = 650 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 650 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (650, 278) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b692d213693_1a0480435d4848941@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', 'jabanilson', NULL, 1, '2012-11-28 22:40:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account651' WHERE `accounts`.`id` = 651  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (651, 278) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 649 WHERE `account_users`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 276) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1004 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1005  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 998 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 999  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Started GET "/settings/account/649/users" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"649"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_649_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470, 472, 473) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 278 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 Completed 200 OK in 44ms (Views: 36.0ms | ActiveRecord: 4.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:18', 'teste@teste.com', '$2a$04$ojudS8ZitCoXK2cv52f5mOmHD9dmPs4l3Ycbb15oQkLlmUVyaK0.C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', '2cf3d6e3616127d0430c5c1ef3f24597', 279, 'User', '2012-11-28 22:40:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account652' WHERE `accounts`.`id` = 652 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 652 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (652, 279) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d235bf4_1a0480435d484902d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:18', '2012-11-28 22:40:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', '288527b508e0ca97a55d66966ed65bda', 280, 'User', '2012-11-28 22:40:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account653' WHERE `accounts`.`id` = 653 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 280) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d24094f_1a0480435d4849155@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 280)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 279) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1012 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1013  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1010 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1011  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Started GET "/settings/account/653/users" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"653"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_653_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475, 476) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_475_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 279 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_476_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 Completed 200 OK in 31ms (Views: 23.3ms | ActiveRecord: 4.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:18', 'teste@teste.com', '$2a$04$4ZBlY23GTCSTIlL8jgc62e9xu0.vaXpIMbHNUWhGDiQ7m7Z3yJi4m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', '5db40285f339802f30cf46ffbb0bf470', 281, 'User', '2012-11-28 22:40:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account654' WHERE `accounts`.`id` = 654 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 654 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (654, 281) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d260fc4_1a0480435d484925d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:18', '2012-11-28 22:40:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', '3b6e5e1b505fc3bf8287bd5ac014eddf', 282, 'User', '2012-11-28 22:40:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account655' WHERE `accounts`.`id` = 655 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 282) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d2876a1_1a0480435d4849337@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 282)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 161ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 281) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1020 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1021  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1018 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1019  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Started GET "/settings/account/655/users" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"655"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_655_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478, 479) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_478_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 281 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_479_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 Completed 200 OK in 32ms (Views: 23.4ms | ActiveRecord: 5.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:18', 'teste@teste.com', '$2a$04$qhDJ0/Lhz1gEVOEYxFYST.XE0SK2OtS8Z9qkTPs8nWCPIjjeWEE8S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', '5f258effe3147e51134e77a3a412ff02', 283, 'User', '2012-11-28 22:40:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account656' WHERE `accounts`.`id` = 656 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 656 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (656, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d2a84dd_1a0480435d4849456@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:18', '2012-11-28 22:40:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', '162ae6a9501e483364dadda1e7d8c47f', 284, 'User', '2012-11-28 22:40:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account657' WHERE `accounts`.`id` = 657 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 284) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d2b38ff_1a0480435d48495c7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 284)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1028 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1029  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1026 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1027  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Started GET "/settings/account/657/users" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"657"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_657_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481, 482) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_481_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 283 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_482_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 Completed 200 OK in 32ms (Views: 23.1ms | ActiveRecord: 5.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:18', 'teste@teste.com', '$2a$04$n.9kSY5RRGAEFsSp.0ihfOKzeo.31Us.uPRa41SFv2iYNt.qBjd5.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', '78e1c2850d5345f7633a4fa6615fd9e1', 285, 'User', '2012-11-28 22:40:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account658' WHERE `accounts`.`id` = 658 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 658 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (658, 285) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d2d4a3c_1a0480435d48496b5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:18', '2012-11-28 22:40:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:18', 'User', 'b6c92f07bc088bbc341074ae41e0995d', 286, 'User', '2012-11-28 22:40:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:18', NULL, NULL, NULL, '2012-11-28 22:40:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:18', `updated_at` = '2012-11-28 22:40:18', `subdomain` = 'account659' WHERE `accounts`.`id` = 659 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 286) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d2df86c_1a0480435d484979c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 286)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 158ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (485) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1036 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1037  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1034 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1035  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Started GET "/settings/account/659/users" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"659"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_659_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484, 485) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_484_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 285 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_485_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 Completed 200 OK in 32ms (Views: 23.6ms | ActiveRecord: 4.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (5.9ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:19', 'teste@teste.com', '$2a$04$zJrXFEz/n1QUnj7mzoegdeVmxOg9UtNqtz0/bjqS/jA3Ad12FYXga', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', '04426a7186cc773fe65a43d59da753aa', 287, 'User', '2012-11-28 22:40:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account660' WHERE `accounts`.`id` = 660 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 660 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (660, 287) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d3284f2_1a0480435d4849885@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (8.7ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:19', '2012-11-28 22:40:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', '4775de396fed4f7fe2548e7b964ffd7f', 288, 'User', '2012-11-28 22:40:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account661' WHERE `accounts`.`id` = 661 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (661, 288) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d336e64_1a0480435d48499c7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 288)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 64ms (ActiveRecord: 14.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 661 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1043  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Started GET "/settings/account/661/users" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"661"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_661_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_487_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 Completed 200 OK in 25ms (Views: 17.7ms | ActiveRecord: 3.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:19', 'teste@teste.com', '$2a$04$rmOTZ1Of7TVs5/Xnz9s8gu6qmdhxrTdD1iG5/tnhfkVSrJeVEJXgK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', '9d476733defbe3fb51bd8c11c2109a64', 289, 'User', '2012-11-28 22:40:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account662' WHERE `accounts`.`id` = 662 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 662 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (662, 289) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d352dd8_1a0480435d4850032@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:19', '2012-11-28 22:40:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', '247325df6507c4133ca962a5f86447d6', 290, 'User', '2012-11-28 22:40:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account663' WHERE `accounts`.`id` = 663 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (663, 290) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d35f3ea_1a0480435d48501da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 290)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 663 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1047  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Started GET "/settings/account/663/users" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"663"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_663_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_489_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 Completed 200 OK in 141ms (Views: 133.5ms | ActiveRecord: 2.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:19', 'teste@teste.com', '$2a$04$.jnANcRY5Q4ivigAXtFuy.aiK6xskoxu4Wub5BLKpSojtb66tPea.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', '7ecc19ccfb6ebd626e352ca54861bc9b', 291, 'User', '2012-11-28 22:40:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account664' WHERE `accounts`.`id` = 664 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 664 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (664, 291) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d3965df_1a0480435d48502f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:19', '2012-11-28 22:40:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', '68c1c87dcfe019e6f898477f50e06dd2', 292, 'User', '2012-11-28 22:40:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account665' WHERE `accounts`.`id` = 665 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (665, 292) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d3a16d6_1a0480435d4850378@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 292)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 665 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1051  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Started GET "/settings/account/665/users" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"665"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_665_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_491_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 Completed 200 OK in 24ms (Views: 17.1ms | ActiveRecord: 3.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:19', 'teste@teste.com', '$2a$04$7iWwEGmltG88HVDWxjmNbuvdYB68Xqu8wlwGRIOrL4OjDIc1nNwpS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', '0f9fe3d7beb9de42f252822489138b56', 293, 'User', '2012-11-28 22:40:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account666' WHERE `accounts`.`id` = 666 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 666 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (666, 293) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d3baa13_1a0480435d4850432@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:19', '2012-11-28 22:40:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', 'e9b552b9e82d7bebb5e408c86d7fbe21', 294, 'User', '2012-11-28 22:40:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account667' WHERE `accounts`.`id` = 667 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (667, 294) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d3c67ef_1a0480435d4850547@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 294)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 667 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1055  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Started GET "/settings/account/667/users" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"667"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_667_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_493_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 Completed 200 OK in 24ms (Views: 16.7ms | ActiveRecord: 3.8ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:19', 'teste@teste.com', '$2a$04$cIF.0jk7CZMcshBBcIs.WeEEwg9U0q76otBwilrZRxT9FohJGwiPi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:19', 'User', '4793d290799be456851f56eb06b1b283', 295, 'User', '2012-11-28 22:40:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:19', NULL, NULL, NULL, '2012-11-28 22:40:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:19', `updated_at` = '2012-11-28 22:40:19', `subdomain` = 'account668' WHERE `accounts`.`id` = 668 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 668 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (668, 295) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d3e2bb5_1a0480435d48506d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:20', '2012-11-28 22:40:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:20', 'User', 'b99a52a11e627a394ec2bf658486019c', 296, 'User', '2012-11-28 22:40:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:20', NULL, NULL, NULL, '2012-11-28 22:40:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:20', `updated_at` = '2012-11-28 22:40:20', `subdomain` = 'account669' WHERE `accounts`.`id` = 669 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 296) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d416588_1a0480435d4850719@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 296)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 167ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 295) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1060 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1061  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1059  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 39ms (Views: 31.0ms | ActiveRecord: 4.6ms) Started DELETE "/settings/account/669/user/295" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"669", "user_id"=>"295"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 296 AND `account_users`.`account_id` = 669 LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 496\n account_id: 669\n user_id: 295\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_496_destroy', '2012-11-28 22:40:20', '2012-11-28 22:40:20')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/669/users Completed 302 Found in 18ms (ActiveRecord: 4.2ms) Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 30ms (Views: 22.4ms | ActiveRecord: 4.5ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:20', 'teste@teste.com', '$2a$04$Erl8uiLI1P4AE5t4bdqAXu0u9TDJ4CfNSEKStTI.eyxgdwKkRGaJG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:20', 'User', '1a8ea29f29c85d944c161017496c97e6', 297, 'User', '2012-11-28 22:40:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:20', NULL, NULL, NULL, '2012-11-28 22:40:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:20', `updated_at` = '2012-11-28 22:40:20', `subdomain` = 'account670' WHERE `accounts`.`id` = 670 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 670 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (670, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d446837_1a0480435d4850890@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:20', '2012-11-28 22:40:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:20', 'User', '9ce9bab010db3e274e0c98cd61c00c7e', 298, 'User', '2012-11-28 22:40:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:20', NULL, NULL, NULL, '2012-11-28 22:40:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:20', `updated_at` = '2012-11-28 22:40:20', `subdomain` = 'account671' WHERE `accounts`.`id` = 671 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 298) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d453e4d_1a0480435d48509ef@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 298)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1067 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1068  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1066  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 35ms (Views: 26.6ms | ActiveRecord: 5.0ms) Started DELETE "/settings/account/671/user/297" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"671", "user_id"=>"297"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 298 AND `account_users`.`account_id` = 671 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 499\n account_id: 671\n user_id: 297\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_499_destroy', '2012-11-28 22:40:20', '2012-11-28 22:40:20')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/671/users Completed 302 Found in 22ms (ActiveRecord: 4.3ms) Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 30ms (Views: 22.4ms | ActiveRecord: 4.9ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:20', 'teste@teste.com', '$2a$04$fuCkzVRdlMhhDPbaG0iOpuBFDitIWTV9JBTtc.Ce8yx9Tq8n9N6Yu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:20', 'User', '2a44258f4ccf9b06d044d23755ebd9ed', 299, 'User', '2012-11-28 22:40:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:20', NULL, NULL, NULL, '2012-11-28 22:40:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:20', `updated_at` = '2012-11-28 22:40:20', `subdomain` = 'account672' WHERE `accounts`.`id` = 672 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 672 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (672, 299) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d4a2b32_1a0480435d48510da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:20', '2012-11-28 22:40:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:20', 'User', '4260af3e29d36a45857a13935e820271', 300, 'User', '2012-11-28 22:40:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:20', NULL, NULL, NULL, '2012-11-28 22:40:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:20', `updated_at` = '2012-11-28 22:40:20', `subdomain` = 'account673' WHERE `accounts`.`id` = 673 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 300) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:40:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d4ae679_1a0480435d4851139@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 300)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 299) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1074 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1075  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1073  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 33ms (Views: 24.9ms | ActiveRecord: 5.1ms) Started DELETE "/settings/account/673/user/299" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"673", "user_id"=>"299"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 300 AND `account_users`.`account_id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 502\n account_id: 673\n user_id: 299\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_502_destroy', '2012-11-29 22:40:20', '2012-11-28 22:40:20')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/673/users Completed 302 Found in 16ms (ActiveRecord: 4.0ms) Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 30ms (Views: 22.7ms | ActiveRecord: 4.8ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:20', 'teste@teste.com', '$2a$04$c8HjeZrdvu26J39AdMyk2u8owD1xduoozigI6ZquF/MlY34RSXHPa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:20', 'User', '178d7033c47c46320a5cf48d1f699c40', 301, 'User', '2012-11-28 22:40:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:20', NULL, NULL, NULL, '2012-11-28 22:40:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:20', `updated_at` = '2012-11-28 22:40:20', `subdomain` = 'account674' WHERE `accounts`.`id` = 674 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 674 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (674, 301) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:40:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d4dec7c_1a0480435d48512c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:20', '2012-11-28 22:40:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:20', 'User', 'b6f4093fa65644c0d37ea9e0118d26b8', 302, 'User', '2012-11-28 22:40:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:20', NULL, NULL, NULL, '2012-11-28 22:40:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:20', `updated_at` = '2012-11-28 22:40:20', `subdomain` = 'account675' WHERE `accounts`.`id` = 675 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 302) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d51261b_1a0480435d485137b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 302)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 166ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 301) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1081 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1082  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1080  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 32ms (Views: 23.7ms | ActiveRecord: 5.0ms) Started DELETE "/settings/account/675/user/301" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"675", "user_id"=>"301"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 302 AND `account_users`.`account_id` = 675 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:21', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 505\n account_id: 675\n user_id: 301\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_505_destroy', '2012-11-29 22:40:21', '2012-11-28 22:40:21')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/675/users Completed 302 Found in 17ms (ActiveRecord: 4.0ms) Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 31ms (Views: 22.6ms | ActiveRecord: 4.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/orkut" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::OmniauthCallbacksController#passthru as HTML Parameters: {"provider"=>"orkut"} Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:21', '2012-11-28 22:40:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:21', 'User', '88e7948bd4d5884ba90fe39e316556c1', 303, 'User', '2012-11-28 22:40:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:21', NULL, NULL, NULL, '2012-11-28 22:40:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:21', `updated_at` = '2012-11-28 22:40:21', `subdomain` = 'account676' WHERE `accounts`.`id` = 676 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 676 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (676, 303) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d546c62_1a0480435d485147c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 303)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 404 Not Found in 3ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:21', '2012-11-28 22:40:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:21', 'User', 'dc7898dbc402aec433ba6eb5c8310104', 304, 'User', '2012-11-28 22:40:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:21', NULL, NULL, NULL, '2012-11-28 22:40:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:21', `updated_at` = '2012-11-28 22:40:21', `subdomain` = 'account677' WHERE `accounts`.`id` = 677 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 677 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (677, 304) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d5583f3_1a0480435d48515fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 304)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 Completed 200 OK in 116ms (Views: 113.9ms | ActiveRecord: 0.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.8ms) Completed 200 OK in 42ms (Views: 40.5ms | ActiveRecord: 0.0ms)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:21', 'test@test.test', '$2a$04$R7JxpfNllD6jkYrhZZsDieT2eg31pFf9X0bHCJ45pbKXR148T7V1a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:21', 'User', '6218e24a9604eea4e6f7be80d69634a6', 305, 'User', '2012-11-28 22:40:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:21', NULL, NULL, NULL, '2012-11-28 22:40:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:21', `updated_at` = '2012-11-28 22:40:21', `subdomain` = 'account678' WHERE `accounts`.`id` = 678 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 678 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (678, 305) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:21 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b692d58e65b_1a0480435d48516bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 LIMIT 1 Completed 302 Found in 28ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 305)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_305_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 Completed 200 OK in 152ms (Views: 146.7ms | ActiveRecord: 3.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'facebook@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:21', 'facebook@test.test', '$2a$04$5wB3oqSEXmKimaDaD7HSh.Mcer9a2bvbP/wQwq57e7yviSnDyLHGy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:21', 'User', '31242793387f99f099244d4d96add99b', 306, 'User', '2012-11-28 22:40:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:21', NULL, NULL, NULL, '2012-11-28 22:40:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:21', `updated_at` = '2012-11-28 22:40:21', `subdomain` = 'account679' WHERE `accounts`.`id` = 679 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 679 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (679, 306) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d5d353d_1a0480435d4851764@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test' Redirected to http://iugusdk.dev/ Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:21', '2012-11-28 22:40:21', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:21', 'User', 'dee48e58a64e7da1e8fe3a15f699cdd1', 307, 'User', '2012-11-28 22:40:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:21', NULL, NULL, NULL, '2012-11-28 22:40:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:21', `updated_at` = '2012-11-28 22:40:21', `subdomain` = 'account680' WHERE `accounts`.`id` = 680 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 680 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (680, 307) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 307)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 31ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 20:40:21 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:21', 'test@test.test', '$2a$04$.RAgnzGrItnIGVRqXM58LuctZY.3BtoVHG2UGH8EjdBhGI32.Nfqa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:21', 'User', '03385c9496ea6064fb97a4f4cab1f4f9', 308, 'User', '2012-11-28 22:40:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:21', NULL, NULL, NULL, '2012-11-28 22:40:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:21', `updated_at` = '2012-11-28 22:40:21', `subdomain` = 'account681' WHERE `accounts`.`id` = 681 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 681 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (681, 308) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'admin') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:22 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b692d6301d_1a0480435d4851853@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 308)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_308_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 Completed 200 OK in 26ms (Views: 21.5ms | ActiveRecord: 2.6ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:22', '2012-11-28 22:40:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:22', 'User', 'ce13a24017cb06f387179479c04b6bc8', 309, 'User', '2012-11-28 22:40:22') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', NULL, NULL, NULL, '2012-11-28 22:40:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account682' WHERE `accounts`.`id` = 682 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 682 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (682, 309) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d63e710_1a0480435d485197b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 309)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 309 AND `account_users`.`account_id` = 682 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (512) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (682) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:22', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 512\n account_id: 682\n user_id: 309\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_512_destroy', '2012-11-29 22:40:22', '2012-11-28 22:40:22')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', 'jabanilson', NULL, 1, '2012-11-28 22:40:22')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account683' WHERE `accounts`.`id` = 683  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (683, 309) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_309_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:22', '2012-11-28 22:40:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:22', 'User', '5f1cb17b0cf5a0c1837b92892f63e490', 310, 'User', '2012-11-28 22:40:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', NULL, NULL, NULL, '2012-11-28 22:40:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account684' WHERE `accounts`.`id` = 684 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 684 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (684, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d676d07_1a0480435d48520d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 310)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 160ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 310 AND `account_users`.`account_id` = 684 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (514) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (684) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:22', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 514\n account_id: 684\n user_id: 310\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_514_destroy', '2012-11-29 22:40:22', '2012-11-28 22:40:22')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', 'jabanilson', NULL, 1, '2012-11-28 22:40:22')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account685' WHERE `accounts`.`id` = 685  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (685, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', 'jabanilson', NULL, 1, '2012-11-28 22:40:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account686' WHERE `accounts`.`id` = 686  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (686, 310) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_310_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 2.8ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:22', '2012-11-28 22:40:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:22', 'User', '4877957dc0dd2c4505ce9571138086c2', 311, 'User', '2012-11-28 22:40:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', NULL, NULL, NULL, '2012-11-28 22:40:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account687' WHERE `accounts`.`id` = 687 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 687 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (687, 311) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d69751e_1a0480435d48521c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 311)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_311_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 21ms (Views: 17.4ms | ActiveRecord: 2.5ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:22', '2012-11-28 22:40:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:22', 'User', '25efe4f14caacdb8946802173812ef61', 312, 'User', '2012-11-28 22:40:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', NULL, NULL, NULL, '2012-11-28 22:40:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account688' WHERE `accounts`.`id` = 688 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 688 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (688, 312) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:40:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d6afb7f_1a0480435d4852261@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 312)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:22', 'teste@teste.com', '$2a$04$kPYCuG1v3F0.kAcdorfmB.HqiNLk8WdAOYoTGMvaxmh1AIqdgWFuq', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:40:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:22', 'User', '244b9b6c7cff3cb54dcc577012a9c855', 313, 'User', '2012-11-28 22:40:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', NULL, NULL, NULL, '2012-11-28 22:40:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account689' WHERE `accounts`.`id` = 689 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 689 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (689, 313) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:40:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d6d9eca_1a0480435d48523f2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', 'jabanilson', NULL, 1, '2012-11-28 22:40:22')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account690' WHERE `accounts`.`id` = 690  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', 'jabanilson', NULL, 1, '2012-11-28 22:40:22')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account691' WHERE `accounts`.`id` = 691  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 691 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (691, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:22', '0yWbY4PxjO-VRDe0eb2aolE6xsI') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:40:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692d6e1208_1a0480435d48524a1@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/220yWbY4PxjO-VRDe0eb2aolE6xsI  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 690 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 690, `invited_by` = 313 WHERE `user_invitations`.`id` = 22  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/220yWbY4PxjO-VRDe0eb2aolE6xsI" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"220yWbY4PxjO-VRDe0eb2aolE6xsI"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 22 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 313 LIMIT 1 Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:22', '2012-11-28 22:40:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:22', 'User', '03cd16b7a665bf5bb8905a0d8a6229e6', 314, 'User', '2012-11-28 22:40:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:22', NULL, NULL, NULL, '2012-11-28 22:40:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:22', `updated_at` = '2012-11-28 22:40:22', `subdomain` = 'account692' WHERE `accounts`.`id` = 692 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 692 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (692, 314) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d6f1dba_1a0480435d4852568@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 314)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:23', 'teste@teste.com', '$2a$04$XeeGeClShrYcA9rGWhpNQe5/uDFIYgJVRmrh834y6BkuPbzBJ3/fK', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', 'e3d10fbd2fc95becf68214f6c9e3562d', 315, 'User', '2012-11-28 22:40:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account693' WHERE `accounts`.`id` = 693 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 693 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (693, 315) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d7c882_1a0480435d485269c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', 'jabanilson', NULL, 1, '2012-11-28 22:40:23')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account694' WHERE `accounts`.`id` = 694  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', 'jabanilson', NULL, 1, '2012-11-28 22:40:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account695' WHERE `accounts`.`id` = 695  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 695 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (695, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:23', 'RfAmGjB8EWGLK6QJi_NikPGZcJQ') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692d713cdd_1a0480435d48527ec@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/23RfAmGjB8EWGLK6QJi_NikPGZcJQ  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 694 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 694, `invited_by` = 315 WHERE `user_invitations`.`id` = 23  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/23RfAmGjB8EWGLK6QJi_NikPGZcJQ" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"23RfAmGjB8EWGLK6QJi_NikPGZcJQ"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 23 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 315 LIMIT 1 Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 1.2ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:23', '2012-11-28 22:40:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', 'dec9fd1a992119b24f9cdde642ce392f', 316, 'User', '2012-11-28 22:40:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account696' WHERE `accounts`.`id` = 696 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 696 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (696, 316) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d7241ef_1a0480435d48528ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 316)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:23', 'teste@teste.com', '$2a$04$u347QOgiCBnIAv8gQ6UXXOu9UHO0QkWr40lSLKKxHntChKdWTPPS.', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', 'a98f401636946dfe9685846bfc85652c', 317, 'User', '2012-11-28 22:40:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account697' WHERE `accounts`.`id` = 697 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 697 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (697, 317) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b692d732468_1a0480435d485296@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', 'jabanilson', NULL, 1, '2012-11-28 22:40:23')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account698' WHERE `accounts`.`id` = 698  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', 'jabanilson', NULL, 1, '2012-11-28 22:40:23')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account699' WHERE `accounts`.`id` = 699  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 699 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (699, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:40:23', 'kU66Tu_1MtoFIE_Ilnd5egIa0pA') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b692d739569_1a0480435d48530eb@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/24kU66Tu_1MtoFIE_Ilnd5egIa0pA  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 698 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 698, `invited_by` = 317 WHERE `user_invitations`.`id` = 24  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/24kU66Tu_1MtoFIE_Ilnd5egIa0pA" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"24kU66Tu_1MtoFIE_Ilnd5egIa0pA"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 24 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 317 LIMIT 1 Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:23', '2012-11-28 22:40:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', '9245e1e3dda66465554634399b8657d2', 318, 'User', '2012-11-28 22:40:23') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account700' WHERE `accounts`.`id` = 700 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 318) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d765bd0_1a0480435d48531b3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 318)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:23', 'tester@roles.test', '$2a$04$dhCWoRfR159.E7XEoXWyheERpJue9KXK37rDe7ZBg9JewZn8YyWnO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', 'ea17752440fb882e789ed4591e23b057', 319, 'User', '2012-11-28 22:40:23') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account701' WHERE `accounts`.`id` = 701 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 701 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (701, 319) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d77542d_1a0480435d48532e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 319) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/700/invite" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"700"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 318 AND `account_users`.`account_id` = 700 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 700 AND `account_users`.`user_id` = 318 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (524) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (700) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 23ms (Views: 14.4ms | ActiveRecord: 3.1ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:23', '2012-11-28 22:40:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', '01a22213511bca5375261e5568397d10', 320, 'User', '2012-11-28 22:40:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account702' WHERE `accounts`.`id` = 702 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 320) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d78ab85_1a0480435d4853334@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 320)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:23', 'tester@roles.test', '$2a$04$s4YX6taIV72jap3GT2l0wuHDFVZmVyMKNSp4Ku7JfPcR4Q2xh8qES', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', '323ad484f3578794028b4a589148fef7', 321, 'User', '2012-11-28 22:40:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account703' WHERE `accounts`.`id` = 703 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 703 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (703, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d799de1_1a0480435d485349c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/702/invite" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"702"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 320 AND `account_users`.`account_id` = 702 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 702 AND `account_users`.`user_id` = 320 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (527) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (702) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 3.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:23', '2012-11-28 22:40:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', '84488cc6804ee7d70875049917f87bc4', 322, 'User', '2012-11-28 22:40:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account704' WHERE `accounts`.`id` = 704 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 322) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d7ca00d_1a0480435d485353@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 322)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 165ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:23', 'tester@roles.test', '$2a$04$xOsqlc2xX/EHxlKJcxDHFOjQK1Wf/x4ggekCJ5hiZBntncnMHMsRq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', '7c8c7a94990d4c17430dcb046d1e3de8', 323, 'User', '2012-11-28 22:40:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account705' WHERE `accounts`.`id` = 705 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 705 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (705, 323) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d7d8dbc_1a0480435d48536ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 323) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/704/invite" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"704"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 322 AND `account_users`.`account_id` = 704 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 704 AND `account_users`.`user_id` = 322 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (530) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (704) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.0ms | ActiveRecord: 2.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:23', '2012-11-28 22:40:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:23', 'User', '6ae34ff8d9705450f349f0bdfd3387e0', 324, 'User', '2012-11-28 22:40:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:23', NULL, NULL, NULL, '2012-11-28 22:40:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:23', `updated_at` = '2012-11-28 22:40:23', `subdomain` = 'account706' WHERE `accounts`.`id` = 706 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 324) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d7ed59a_1a0480435d4853767@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 324)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:24', 'tester@roles.test', '$2a$04$8SP.zn6RyPfg1GDnRafEueFHXcl2Gqg5CLM8y5/LPhoHSu9Ta53sG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', '5c724d4ecca813090d18235f12517d0d', 325, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account707' WHERE `accounts`.`id` = 707 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 707 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (707, 325) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d882c3_1a0480435d4853898@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 325) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/706/invite" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"706"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 324 AND `account_users`.`account_id` = 706 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 706 AND `account_users`.`user_id` = 324 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (533) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (706) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.6ms | ActiveRecord: 2.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:24', '2012-11-28 22:40:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', 'ede7f508b75edc73bceac5676601a298', 326, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account708' WHERE `accounts`.`id` = 708 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 326) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d81bf77_1a0480435d48539b5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 326)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:24', 'tester@roles.test', '$2a$04$I4.wJVqT9R.wsRDSmuk8..O8CWbEqWA1gU9uAbPyOmYlBMFqf06tK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', 'dd49ac0e79c410fd337a6f33db6d8658', 327, 'User', '2012-11-28 22:40:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account709' WHERE `accounts`.`id` = 709 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 709 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (709, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d847287_1a0480435d48540b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/708/invite" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"708"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 326 AND `account_users`.`account_id` = 708 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 708 AND `account_users`.`user_id` = 326 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (536) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (708) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:24', '2012-11-28 22:40:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', '70bc57220314483b2fc1a6f2379ac97b', 328, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account710' WHERE `accounts`.`id` = 710 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 328) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d85b152_1a0480435d48541e7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 328)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:24', 'tester@roles.test', '$2a$04$uWM6AiCtWX8AVd9fQykyCukj2ixG1iWuovHIw2hpQvyhacVTWd5Oy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', '75b8c50de45f1cf445f0042db9e17b21', 329, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account711' WHERE `accounts`.`id` = 711 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 711 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (711, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d869f18_1a0480435d48542cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/710/invite" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"710"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 328 AND `account_users`.`account_id` = 710 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 710 AND `account_users`.`user_id` = 328 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (539) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (710) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.0ms | ActiveRecord: 2.9ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:24', '2012-11-28 22:40:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', 'fb47a7c2e15fd6a62a9a564d1f016456', 330, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account712' WHERE `accounts`.`id` = 712 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 330) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d87ed8d_1a0480435d48543e3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 330)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:24', 'tester@roles.test', '$2a$04$TUZaugCNJ47DLzIRfqvVkeXM2Ebs.3ZDS3WD7mdxLefLzSnAsL2O2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', '959470b2d8d624c9584ff760112d961d', 331, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account713' WHERE `accounts`.`id` = 713 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 713 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (713, 331) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d89062a_1a0480435d4854462@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 331) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.6ms | ActiveRecord: 3.0ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 712 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1156 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 137ms (Views: 10.0ms | ActiveRecord: 3.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:24', '2012-11-28 22:40:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', '871deec9b6474fef5caa36e5106d53c1', 332, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account714' WHERE `accounts`.`id` = 714 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 332) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d8c90de_1a0480435d48545d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 332)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:24', 'tester@roles.test', '$2a$04$UkBxvoxwqRYqqBY7Ca4sIuX9dsbHSTknN.baXjDl/MIM/A8BRDuzi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', '215c993d267b98b314bd4fd094f16d5f', 333, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account715' WHERE `accounts`.`id` = 715 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 715 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (715, 333) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:40:24 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d8d846a_1a0480435d48546f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 333) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 2.7ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 714 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1163 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:24', '2012-11-28 22:40:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:24', 'User', '0155b3fd0c99ab43570ff44ee0371d10', 334, 'User', '2012-11-28 22:40:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:24', NULL, NULL, NULL, '2012-11-28 22:40:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:24', `updated_at` = '2012-11-28 22:40:24', `subdomain` = 'account716' WHERE `accounts`.`id` = 716 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 334) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d8f3f30_1a0480435d485477e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 334)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:25', 'tester@roles.test', '$2a$04$LZMIbGYrCkRFJnzY./AHQuajC5X/F8WDhd8KRr2mXkQIl8KxsTImK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', '4dd7b188c1ffee56064ab79ec5b8d832', 335, 'User', '2012-11-28 22:40:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account717' WHERE `accounts`.`id` = 717 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 717 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (717, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d9ea1f_1a0480435d4854819@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.3ms | ActiveRecord: 3.0ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 716 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1170 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 137ms (Views: 9.8ms | ActiveRecord: 3.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:25', '2012-11-28 22:40:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', 'af17e0eedd0f79f4adbf17cb47b88984', 336, 'User', '2012-11-28 22:40:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account718' WHERE `accounts`.`id` = 718 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 336) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d948217_1a0480435d4854974@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 336)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:25', 'tester@roles.test', '$2a$04$MI4oLGB6t2qlcQu7ObnRjOMLe124Du7dd4Mmsx0ZJj/QLO614RwTS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', '38c715f5f3c0ef3a4ee56544e63c34c3', 337, 'User', '2012-11-28 22:40:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account719' WHERE `accounts`.`id` = 719 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 719 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (719, 337) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d9575c8_1a0480435d48550e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 337) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.1ms | ActiveRecord: 2.4ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 718 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1177 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1178  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.5ms | ActiveRecord: 3.0ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:25', '2012-11-28 22:40:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', '3294dd6cb740f01a6e2f61c1a4645e7e', 338, 'User', '2012-11-28 22:40:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account720' WHERE `accounts`.`id` = 720 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 338) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d974aab_1a0480435d4855130@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 338)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:25', 'tester@roles.test', '$2a$04$WflSCjwGfFLGjaEPKgwa3OyTsoLw1i6axINE/lYjPjPxzxSWC5Nbu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', 'c2311851daa7b3c2aed11f4e8d615209', 339, 'User', '2012-11-28 22:40:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account721' WHERE `accounts`.`id` = 721 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 721 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (721, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d9840d0_1a0480435d4855284@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.2ms | ActiveRecord: 3.0ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 720 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1184 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1185  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 141ms (Views: 12.7ms | ActiveRecord: 3.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:25', '2012-11-28 22:40:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', 'e1f51ca7b8f07736053c723dc3951fc2', 340, 'User', '2012-11-28 22:40:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account722' WHERE `accounts`.`id` = 722 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 340) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d9be480_1a0480435d48553eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 340)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:25', 'tester@roles.test', '$2a$04$rPHfBBq0f4dRAFatjaxNxurLYFqBRGrmMomegypY/M8R.ftqBDPsu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', '163bf84a4d351a57b6e9d34dee10117a', 341, 'User', '2012-11-28 22:40:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account723' WHERE `accounts`.`id` = 723 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 723 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (723, 341) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692d9cdac1_1a0480435d4855463@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 341) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.7ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 722 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1191 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1192  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 12.7ms | ActiveRecord: 3.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:25', '2012-11-28 22:40:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', '34b1d25f4452b97332e40c01ca0df2cd', 342, 'User', '2012-11-28 22:40:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account724' WHERE `accounts`.`id` = 724 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 342) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692d9ea4f6_1a0480435d4855558@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 342)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:25 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:25', 'tester@roles.test', '$2a$04$ydKvblE7vfISi9pc2EoLjuzT9iLSUVxYw2FDOxWuFIe.fSZTJDaM2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:25') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:25', 'User', 'dd41338254b97847518835505dc0bf87', 343, 'User', '2012-11-28 22:40:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:25', NULL, NULL, NULL, '2012-11-28 22:40:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:25', `updated_at` = '2012-11-28 22:40:25', `subdomain` = 'account725' WHERE `accounts`.`id` = 725 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 725 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (725, 343) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:26 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692da5320_1a0480435d485561e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 343) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 2.9ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 724 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1198 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1199  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 145ms (Views: 12.7ms | ActiveRecord: 2.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:26', '2012-11-28 22:40:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:26', 'User', 'caa5a0ecc7dcde590d8e2beca9870835', 344, 'User', '2012-11-28 22:40:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:26', NULL, NULL, NULL, '2012-11-28 22:40:26')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:26', `updated_at` = '2012-11-28 22:40:26', `subdomain` = 'account726' WHERE `accounts`.`id` = 726 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 344) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692da3fc4b_1a0480435d4855747@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 344)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:26', 'tester@roles.test', '$2a$04$3FwzZt.i2te8pbc7o77q9ugcUogpVSb2mUieh4ZMCE4HbY2HG62s6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:26', 'User', '2505a678e03332e2dab610fddb3bd576', 345, 'User', '2012-11-28 22:40:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:26', NULL, NULL, NULL, '2012-11-28 22:40:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:26', `updated_at` = '2012-11-28 22:40:26', `subdomain` = 'account727' WHERE `accounts`.`id` = 727 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 727 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (727, 345) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:40:26 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b692da4ea69_1a0480435d4855831@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 345) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 2.8ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 726 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1205 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 23ms (Views: 14.6ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:26', '2012-11-28 22:40:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:26', 'User', '77f88e3efd50e44a299c9f9d4accf032', 346, 'User', '2012-11-28 22:40:26') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:26', NULL, NULL, NULL, '2012-11-28 22:40:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:26', `updated_at` = '2012-11-28 22:40:26', `subdomain` = 'account728' WHERE `accounts`.`id` = 728 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 728 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (728, 346) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692da6b71e_1a0480435d485595@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 346)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_346_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:26', '2012-11-28 22:40:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:26', 'User', '01f51aef4b97bcb4e47fd6855d5c2875', 347, 'User', '2012-11-28 22:40:26') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:26', NULL, NULL, NULL, '2012-11-28 22:40:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:26', `updated_at` = '2012-11-28 22:40:26', `subdomain` = 'account729' WHERE `accounts`.`id` = 729 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 729 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (729, 347) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692da9f539_1a0480435d48560a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 347)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.4ms | ActiveRecord: 2.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.6ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:26', '2012-11-28 22:40:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:26', 'User', 'f19f33c350c7e6ff085b5703b2a9b857', 348, 'User', '2012-11-28 22:40:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:26', NULL, NULL, NULL, '2012-11-28 22:40:26')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:26', `updated_at` = '2012-11-28 22:40:26', `subdomain` = 'account730' WHERE `accounts`.`id` = 730 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 730 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (730, 348) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692dabc0f5_1a0480435d485614@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 348)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 139ms (Views: 134.5ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:26', '2012-11-28 22:40:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:26', 'User', 'b7f6c6ab52de4dc267e09b52bb25e7e6', 349, 'User', '2012-11-28 22:40:26') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:26', NULL, NULL, NULL, '2012-11-28 22:40:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:26', `updated_at` = '2012-11-28 22:40:26', `subdomain` = 'account731' WHERE `accounts`.`id` = 731 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 731 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (731, 349) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692dbf16_1a0480435d48562da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 349)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 349\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:26.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:26.000000000Z\n updated_at: 2012-11-28 22:40:26.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_349_destroy', '2012-11-28 22:40:27', '2012-11-28 22:40:27')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 19.5ms | ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:27', '2012-11-28 22:40:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:27', 'User', '0c207127ac7dd7b0fbee6a90b34a542e', 350, 'User', '2012-11-28 22:40:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:27', NULL, NULL, NULL, '2012-11-28 22:40:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:27', `updated_at` = '2012-11-28 22:40:27', `subdomain` = 'account732' WHERE `accounts`.`id` = 732 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 732 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (732, 350) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:40:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692db3e6f6_1a0480435d485635@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 350)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 168ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 21ms (Views: 17.3ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 350\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:27.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:27.000000000Z\n updated_at: 2012-11-28 22:40:27.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_350_destroy', '2012-11-28 22:40:27', '2012-11-28 22:40:27')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.7ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:27', '2012-11-28 22:40:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:27', 'User', '49156d663266528f39a07e650dea9808', 351, 'User', '2012-11-28 22:40:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:27', NULL, NULL, NULL, '2012-11-28 22:40:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:27', `updated_at` = '2012-11-28 22:40:27', `subdomain` = 'account733' WHERE `accounts`.`id` = 733 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 733 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (733, 351) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692db5e6d9_1a0480435d48564c8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 351)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 351\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:27.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:27.000000000Z\n updated_at: 2012-11-28 22:40:27.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_351_destroy', '2012-11-28 22:40:27', '2012-11-28 22:40:27')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:40:27', `updated_at` = '2012-11-28 22:40:27' WHERE `delayed_jobs`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 141ms (Views: 136.8ms | ActiveRecord: 2.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:27', '2012-11-28 22:40:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:27', 'User', 'e69824493c8f18fab8952fc95f1314b8', 352, 'User', '2012-11-28 22:40:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:27', NULL, NULL, NULL, '2012-11-28 22:40:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:27', `updated_at` = '2012-11-28 22:40:27', `subdomain` = 'account734' WHERE `accounts`.`id` = 734 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 734 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (734, 352) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692db9a0fd_1a0480435d4856544@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 352)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.6ms | ActiveRecord: 2.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 Completed 200 OK in 18ms (Views: 14.8ms | ActiveRecord: 1.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:27', '2012-11-28 22:40:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:27', 'User', '3ec1a67f8c3f64d17f81728c117bc049', 353, 'User', '2012-11-28 22:40:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:27', NULL, NULL, NULL, '2012-11-28 22:40:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:27', `updated_at` = '2012-11-28 22:40:27', `subdomain` = 'account735' WHERE `accounts`.`id` = 735 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 735 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (735, 353) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:40:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b692dbb5fd5_1a0480435d4856657@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 353)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_353_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 140ms (Views: 135.4ms | ActiveRecord: 2.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 32ms (Views: 31.0ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 20:40:27 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:40:27', '2012-11-28 22:40:27', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:40:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:27', 'User', '4c3a2fb763f262a46a98d7479f8ee265', 354, 'User', '2012-11-28 22:40:27') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:27', NULL, NULL, NULL, '2012-11-28 22:40:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:27', `updated_at` = '2012-11-28 22:40:27', `subdomain` = 'account736' WHERE `accounts`.`id` = 736 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 736 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (736, 354) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 574) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 574 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (574, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 574) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 574 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (574, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:40:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 354\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:40:27.978890000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:40:27.979752000Z\n updated_at: 2012-11-28 22:40:27.979752000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_354', '2012-12-05 22:40:27', '2012-11-28 22:40:28')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:40:28', `updated_at` = '2012-11-28 22:40:28' WHERE `users`.`id` = 354  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 354 AND (accounts.id = '735') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 354 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 31ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:40:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 354 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:40:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 354 LIMIT 1 Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'good@email.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:39:48', '2012-11-28 22:40:28', 'good@email.com', '$2a$04$W.KjukpAeLb9E5.C2THrZu6poOB3Nm5jIe5FT0vcO0rFtEw0Nh/.m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:40:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 355 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:40:28', 'User', 'cb4398924ea85b82d4b00edba7f87823', 355, 'User', '2012-11-28 22:40:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 355 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:40:28', NULL, NULL, NULL, '2012-11-28 22:40:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:40:28', `updated_at` = '2012-11-28 22:40:28', `subdomain` = 'account737' WHERE `accounts`.`id` = 737 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 737 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (737, 355) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 575) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (575, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 575) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (575, 'admin') Sent mail to good@email.com (7ms) Date: Wed, 28 Nov 2012 20:40:28 -0200 From: Iugu Reply-To: Iugu To: good@email.com Message-ID: <50b692dc11fec_1a0480435d48567e6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 355  (0.9ms) ROLLBACK  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notanemail' LIMIT 1  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (24.2ms) TRUNCATE TABLE `account_domains`;  (1.3ms) TRUNCATE TABLE `account_roles`;  (0.6ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:46', '2012-11-28 22:41:46', 'teste@teste.com', '$2a$04$uveJ1iAQJG4utRHEp5yFW.rjKnCGqLTZFyrGK3bgZvPlt93Vp6X36', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:46') SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', NULL, NULL, NULL, '2012-11-28 22:41:47')  (2.1ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.7ms) Completed 200 OK in 124ms (Views: 121.0ms | ActiveRecord: 0.5ms)  (27.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:47', '2012-11-28 22:41:47', 'teste@teste.com', '$2a$04$3dvufpneoa0FQTNwymv1RuTAA0w/TaiHMU7rGfvigkPUH9mZq7gaK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', NULL, NULL, NULL, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 5 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND `accounts`.`id` = 4 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 4 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 13ms (Views: 2.6ms | ActiveRecord: 3.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:47', '2012-11-28 22:41:47', 'teste@teste.com', '$2a$04$AtpPj3ISw6N6li6uyEy0beBGoihf8hEj1Zdg4sC/ukAwB0BRLytU6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', NULL, NULL, NULL, '2012-11-28 22:41:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 8 WHERE `account_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 3 AND `account_users`.`account_id` = 7 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (5) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (7) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 7 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 71ms (Views: 1.8ms | ActiveRecord: 2.1ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:47', '2012-11-28 22:41:47', 'teste@teste.com', '$2a$04$tNJsNRCYBKB1HTpY.tiZqOfoh8IdkYXBYVq507lhf/FO/c/oJUQcm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', NULL, NULL, NULL, '2012-11-28 22:41:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 4) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account11' WHERE `accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account12' WHERE `accounts`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 4) AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 11 WHERE `account_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"10"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 10 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND `accounts`.`id` = 10 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 10\n created_at: 2012-11-28 22:41:47.000000000Z\n updated_at: 2012-11-28 22:41:47.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account10\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_10_destroy', '2012-11-28 22:41:47', '2012-11-28 22:41:47')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_10_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 35ms (ActiveRecord: 6.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:47', '2012-11-28 22:41:47', 'teste@teste.com', '$2a$04$KXy3X284uNvWvAA/S6Bx8udU.KlZh/Z4r8Hp2c9aajG5Kd5/N/ZMC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', NULL, NULL, NULL, '2012-11-28 22:41:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 5) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account14' WHERE `accounts`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account15' WHERE `accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 14 WHERE `account_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 13 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND `accounts`.`id` = 13 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 13\n created_at: 2012-11-28 22:41:47.000000000Z\n updated_at: 2012-11-28 22:41:47.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account13\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_13_destroy', '2012-11-28 22:41:47', '2012-11-28 22:41:47')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 12ms (ActiveRecord: 2.8ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:47', '2012-11-28 22:41:47', 'teste@teste.com', '$2a$04$DnL1i3M04r4zmiOg/lMhi.Y1vaTDcc7ZM54.m3aDO5VdS243aYP0O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', NULL, NULL, NULL, '2012-11-28 22:41:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account17' WHERE `accounts`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 17 WHERE `account_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"16"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:47', '2012-11-28 22:41:47', 'teste@teste.com', '$2a$04$XFNATB08fJ0gYEy8G8fqSO7F1WmFOpYn0o.wCqtqtmwXbwfl9.N8C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', NULL, NULL, NULL, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account20' WHERE `accounts`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account21' WHERE `accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (21, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 20 WHERE `account_users`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 19\n created_at: 2012-11-28 22:41:47.000000000Z\n updated_at: 2012-11-28 22:41:47.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account19\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_19_destroy', '2012-11-28 22:41:47', '2012-11-28 22:41:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"19"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 7 AND `account_users`.`account_id` = 19 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 13 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND `accounts`.`id` = 19 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:47', '2012-11-28 22:41:47', 'teste@teste.com', '$2a$04$75DueHM.mfe5VRbHY3eXeOTWWkb16tCi5i3ZFIWaaeVkJJx2kY2aC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', NULL, NULL, NULL, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account22' WHERE `accounts`.`id` = 22 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (22, 8) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account23' WHERE `accounts`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:47', 'jabanilson', NULL, 1, '2012-11-28 22:41:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:47', `updated_at` = '2012-11-28 22:41:47', `subdomain` = 'account24' WHERE `accounts`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 8) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 23 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 23 WHERE `account_users`.`id` = 16  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:48', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 22\n created_at: 2012-11-28 22:41:47.000000000Z\n updated_at: 2012-11-28 22:41:47.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account22\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_22_destroy', '2012-11-28 22:41:48', '2012-11-28 22:41:48')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"22"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 22 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND `accounts`.`id` = 22 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 9ms (ActiveRecord: 2.5ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:48', '2012-11-28 22:41:48', 'teste@teste.com', '$2a$04$1njTuAQLsF8WXoDPVjr75eh7ldEXxupHSmt3.vNzefAuSTQEeTMx2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account25' WHERE `accounts`.`id` = 25 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (25, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account27' WHERE `accounts`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 26 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 26 WHERE `account_users`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"25"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '25') LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:48', '2012-11-28 22:41:48', 'teste@teste.com', '$2a$04$kGzb3R9vMFBlRmu8prq8wumrg/vrAjiu.B4ikmgG1ID.xroDpGyee', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:48') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account28' WHERE `accounts`.`id` = 28 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (28, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account29' WHERE `accounts`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account30' WHERE `accounts`.`id` = 30  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (30, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 29 WHERE `account_users`.`id` = 20  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"28"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 28 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account28' AND `accounts`.`id` != 28) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:41:48' WHERE `accounts`.`id` = 28  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/28 Completed 302 Found in 11ms (ActiveRecord: 2.4ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (46.8ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:48', '2012-11-28 22:41:48', 'teste@teste.com', '$2a$04$44XEVJdF7.RkDs8.MteaxO7lBRl.I7zrowykBKyXFQsEsap2VqBme', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:48') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account31' WHERE `accounts`.`id` = 31 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (31, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account32' WHERE `accounts`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account33' WHERE `accounts`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (33, 11) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 32 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 32 WHERE `account_users`.`id` = 22  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"31"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 11 AND `account_users`.`account_id` = 31 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 21 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account31' AND `accounts`.`id` != 31) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:41:48' WHERE `accounts`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/31 Completed 302 Found in 9ms (ActiveRecord: 1.8ms)  (51.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:48', '2012-11-28 22:41:48', 'teste@teste.com', '$2a$04$0g2q135n2ASP6uk27lE02ePQso9SU5Rj7ux934EvR2bUUAFpsxtoO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account34' WHERE `accounts`.`id` = 34 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (34, 12) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account35' WHERE `accounts`.`id` = 35  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account36' WHERE `accounts`.`id` = 36  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (36, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 35 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 35 WHERE `account_users`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"34"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 34 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 23 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account34' AND `accounts`.`id` != 34) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:41:48' WHERE `accounts`.`id` = 34  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/34 Completed 302 Found in 9ms (ActiveRecord: 2.2ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (333.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:48', '2012-11-28 22:41:48', 'teste@teste.com', '$2a$04$NtrIM1SGnfoXqn3iWR8.BOevMgUEioyX/rDS8L2Lcb0cIpRYZOFqa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account37' WHERE `accounts`.`id` = 37 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (37, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account38' WHERE `accounts`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account39' WHERE `accounts`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (39, 13) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 38 WHERE `account_users`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account40' WHERE `accounts`.`id` = 40  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (40, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 4.0ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:48', '2012-11-28 22:41:48', 'teste@teste.com', '$2a$04$xce3tmlxyO/5HyEbNJAM/eyNY.fpIc92WiNkyNRHjmypj7xCyXiSi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account41' WHERE `accounts`.`id` = 41 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (41, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account42' WHERE `accounts`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account43' WHERE `accounts`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (43, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 42 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 42 WHERE `account_users`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account44' WHERE `accounts`.`id` = 44  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (44, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 3.7ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 Processing by Iugu::AccountController#create as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account45' WHERE `accounts`.`id` = 45  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (45, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 14ms (ActiveRecord: 3.8ms)  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:48', '2012-11-28 22:41:48', 'teste@teste.com', '$2a$04$c4UikQcp9pJHyDMmc2jsj.IX4Up5TJaLGd8j9sBOXHKfMERB9HsYS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:48') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', NULL, NULL, NULL, '2012-11-28 22:41:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account46' WHERE `accounts`.`id` = 46 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (46, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account47' WHERE `accounts`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:48', 'jabanilson', NULL, 1, '2012-11-28 22:41:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:48', `updated_at` = '2012-11-28 22:41:48', `subdomain` = 'account48' WHERE `accounts`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (48, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 47 WHERE `account_users`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"47"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 15 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_47_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 15 AND `account_users`.`account_id` = 47 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 33 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND `accounts`.`id` = 47 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 47 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:41:49', 'token x', '51f7a3f4011839d33427ca38a04c5703', 47, 'Account', '2012-11-28 22:41:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/47 Completed 302 Found in 107ms (ActiveRecord: 6.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$k55gx7fT86dFNNiXSo6Zaut/7u.TVnlwsY8rgV23Su.YTzgj9XL4C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account49' WHERE `accounts`.`id` = 49 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (49, 16) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account50' WHERE `accounts`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account51' WHERE `accounts`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (51, 16) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 50 WHERE `account_users`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"50"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 16 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_50_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 16 AND `account_users`.`account_id` = 50 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 35 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND `accounts`.`id` = 50 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 50 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:41:49', 'token x', '47deb239c7fb5d1716e0d3de859b8237', 50, 'Account', '2012-11-28 22:41:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/50 Completed 302 Found in 15ms (ActiveRecord: 3.6ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$fyHZDLqVYGXk09IYt.VnA.rpwe3F1m7v72Fly7cjzPdOgfVs5iAx.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account52' WHERE `accounts`.`id` = 52 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (52, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account53' WHERE `accounts`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account54' WHERE `accounts`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (54, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 53 WHERE `account_users`.`id` = 37  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 17 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND `accounts`.`id` = 53 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 53 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:41:49', 'token x', 'c2fe26969e5400bd92a83b8e27c3f4fe', 53, 'Account', '2012-11-28 22:41:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/53 Completed 302 Found in 14ms (ActiveRecord: 3.5ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$8vpO5SHaBxaQZHiu3iemZ.Ahl96CrQGFEBDhQtkeAYhe35OnagGrK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account55' WHERE `accounts`.`id` = 55 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (55, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account56' WHERE `accounts`.`id` = 56  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account57' WHERE `accounts`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (57, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 56 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 56 WHERE `account_users`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 55 AND `account_domains`.`url` = 'controller.test.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (55, NULL, 'controller.test.test', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"55"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 18 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_55_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 18 AND `account_users`.`account_id` = 55 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND `accounts`.`id` = 55 LIMIT 1 Completed 200 OK in 13ms (Views: 3.4ms | ActiveRecord: 2.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$NxbiG9om8KgNeX3a/TK6meLjYHhfT/VRjYH3Ah2vW59rNbYkLqxlW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account58' WHERE `accounts`.`id` = 58 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (58, 19) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account59' WHERE `accounts`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account60' WHERE `accounts`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (60, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 59 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 59 WHERE `account_users`.`id` = 41  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"58"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 19 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_58_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 19 AND `account_users`.`account_id` = 58 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND `accounts`.`id` = 58 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 58 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (58, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/58/domain/2 Completed 302 Found in 15ms (ActiveRecord: 3.5ms) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$uGNJtie3puYKZDh61ge7neZT2h9i1vr4ZYYkQeFTNf7bu.2SMwfAW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account61' WHERE `accounts`.`id` = 61 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (61, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account62' WHERE `accounts`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account63' WHERE `accounts`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (63, 20) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 62 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 62 WHERE `account_users`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 20 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 61 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (61, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/61/domain/3 Completed 302 Found in 14ms (ActiveRecord: 3.1ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.9ms | ActiveRecord: 3.0ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$3t0eZYZukkk73bEIkyoJ3OjN68zykFtn04fc1ojlgY1RXJCn15JEi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account64' WHERE `accounts`.`id` = 64 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (64, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account65' WHERE `accounts`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account66' WHERE `accounts`.`id` = 66  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (66, 21) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 65 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 65 WHERE `account_users`.`id` = 45  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (64, NULL, 'destroy.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"64", "domain_id"=>"4"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 21 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_64_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 21 AND `account_users`.`account_id` = 64 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND `accounts`.`id` = 64 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 4  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`primary` = 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/64/domains Completed 302 Found in 16ms (ActiveRecord: 4.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$cX2K.NXZIdy/QHT6ObJkAO9KzbSlMFUqO8J1Gvt3rkKY0hSZdg5yq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account67' WHERE `accounts`.`id` = 67 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (67, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account68' WHERE `accounts`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account69' WHERE `accounts`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (69, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 68 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 68 WHERE `account_users`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (67, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"67", "domain_id"=>"5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 22 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_67_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 22 AND `account_users`.`account_id` = 67 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND `accounts`.`id` = 67 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 5  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 5  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/67/domains Completed 302 Found in 14ms (ActiveRecord: 3.2ms)  (9.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$xtcIhuoKOYrBs7XBn43AZeawQe7UzyfakQE6fZRNKooYuHRiJJ8R2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account70' WHERE `accounts`.`id` = 70 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (70, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account71' WHERE `accounts`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account72' WHERE `accounts`.`id` = 72  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (72, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 71 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 71 WHERE `account_users`.`id` = 49  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (70, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"70", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 23 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_70_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 23 AND `account_users`.`account_id` = 70 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND `accounts`.`id` = 70 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/70/domains Completed 302 Found in 10ms (ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$7sH.cLwZLGe5szkT/XdANud0aVZOXMo.ElnMq/8QJrzEaPJwzfzr2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account73' WHERE `accounts`.`id` = 73 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (73, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account74' WHERE `accounts`.`id` = 74  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account75' WHERE `accounts`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (75, 24) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 74 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 74 WHERE `account_users`.`id` = 51  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (73, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"73", "domain_id"=>"1273816283761238716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 24 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_73_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 24 AND `account_users`.`account_id` = 73 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND `accounts`.`id` = 73 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/73/domains Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (10.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$lnJBCEM.Z5kkuEBAr7MjjeSnICjaVXPmVMmUBCu9.CG8/j5t64rly', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account76' WHERE `accounts`.`id` = 76 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (76, 25) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account77' WHERE `accounts`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account78' WHERE `accounts`.`id` = 78  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (78, 25) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 77 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 77 WHERE `account_users`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (76, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"76", "domain_id"=>"8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 25 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_76_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND `accounts`.`id` = 76 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`id` = 8 LIMIT 1 Completed 200 OK in 9ms (Views: 2.6ms | ActiveRecord: 1.8ms)  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$b1SGi2n6EV1UB10osn/Z.epeuGgiaKUTruV1Y9iyhcH0d0ZiLX2.e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account79' WHERE `accounts`.`id` = 79 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (79, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account80' WHERE `accounts`.`id` = 80  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account81' WHERE `accounts`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (81, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 80 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 80 WHERE `account_users`.`id` = 55  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (79, NULL, 'instructions.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"79", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 26 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_79_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND `accounts`.`id` = 79 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/79/domains Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$2UEFlaTDul5Yh93m.fAsFeB1kS4CJQsKnzjRinjHFSXac.wLx7ooe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account82' WHERE `accounts`.`id` = 82 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (82, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account83' WHERE `accounts`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account84' WHERE `accounts`.`id` = 84  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (84, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 83 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 83 WHERE `account_users`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (82, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"82", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_82_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND `accounts`.`id` = 82 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/82/domains Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (9.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:49', '2012-11-28 22:41:49', 'teste@teste.com', '$2a$04$gXmSiCNhI13ExfAS89RI5e1iKpp2rCrvF5/v9rVLgNt2nGhNOL/rC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', NULL, NULL, NULL, '2012-11-28 22:41:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account85' WHERE `accounts`.`id` = 85 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (85, 28) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account86' WHERE `accounts`.`id` = 86  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:49', 'jabanilson', NULL, 1, '2012-11-28 22:41:49')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:49', `updated_at` = '2012-11-28 22:41:49', `subdomain` = 'account87' WHERE `accounts`.`id` = 87  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (87, 28) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 86 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 86 WHERE `account_users`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (85, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"85", "domain_id"=>"11"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 28 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_85_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 28 AND `account_users`.`account_id` = 85 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND `accounts`.`id` = 85 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`id` = 11 LIMIT 1 Redirected to http://test.host/settings/account/85/domains Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (3.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$cTgFCfWfdiGmrsoCUDvJt.vrI4Ss1aiMXVIhkW8Bq./VmeXgCAP1C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account88' WHERE `accounts`.`id` = 88 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (88, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account89' WHERE `accounts`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account90' WHERE `accounts`.`id` = 90  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (90, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 89 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 89 WHERE `account_users`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (88, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"88", "domain_id"=>"12"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 29 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_88_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 29 AND `account_users`.`account_id` = 88 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND `accounts`.`id` = 88 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`id` = 12 LIMIT 1 Redirected to http://test.host/settings/account/88/domains Completed 302 Found in 80ms (ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$vVvv4X2M.goa5.iYhiPtF.e22itX9C8Df7cENvJ3Cqtx4aP.0de8e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account91' WHERE `accounts`.`id` = 91 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (91, 30) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account92' WHERE `accounts`.`id` = 92  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account93' WHERE `accounts`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (93, 30) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 92 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 92 WHERE `account_users`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (91, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"91", "domain_id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 30 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_91_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 30 AND `account_users`.`account_id` = 91 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND `accounts`.`id` = 91 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`id` = 13 LIMIT 1 Redirected to http://test.host/settings/account/91/domain/13 Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$Zwoc1jvmf8Q3K/lnnsvJheqTjQjAeaBj8X8HPaYs0WhSkldMdxaKy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account94' WHERE `accounts`.`id` = 94 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (94, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account95' WHERE `accounts`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account96' WHERE `accounts`.`id` = 96  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (96, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 95 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 95 WHERE `account_users`.`id` = 65  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (94, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"94", "domain_id"=>"14"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 31 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 31 AND `account_users`.`account_id` = 94 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND `accounts`.`id` = 94 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`id` = 14 LIMIT 1 Redirected to http://test.host/settings/account/94/domain/14 Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$T64lERZ9cYCfB1LU7H/YP.XbJunNFDfa5fy0SnuYjFSz3hhCx2Z0i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account97' WHERE `accounts`.`id` = 97 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (97, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account98' WHERE `accounts`.`id` = 98  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account99' WHERE `accounts`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (99, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 98 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 98 WHERE `account_users`.`id` = 67  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (97, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"97", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 32 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_97_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 32 AND `account_users`.`account_id` = 97 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND `accounts`.`id` = 97 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/97/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$QzUbLg8nLT3CuuddQSPh8uvA9bAWEe36eLNVLNAypbAfJPJ4QW76G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account100' WHERE `accounts`.`id` = 100 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (100, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account101' WHERE `accounts`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account102' WHERE `accounts`.`id` = 102  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (102, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 101 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 101 WHERE `account_users`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (100, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"100", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 33 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_100_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 33 AND `account_users`.`account_id` = 100 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND `accounts`.`id` = 100 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/100/domains Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$6N0rBJfTUSZ3bQvWpabu4u47MoUmh.R4GIJ2eLFhiLkYAOyE/nP3C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account103' WHERE `accounts`.`id` = 103 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (103, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account104' WHERE `accounts`.`id` = 104  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account105' WHERE `accounts`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (105, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 104 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 104 WHERE `account_users`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`url` = 'primary.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (103, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"103", "domain_id"=>"17"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 34 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_103_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 34 AND `account_users`.`account_id` = 103 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND `accounts`.`id` = 103 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`id` = 17 LIMIT 1 Redirected to http://test.host/settings/account/103/domains Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$SabWPvcOkEC2Aaci7xBRmudTRJ.y22ySxeZqCN14NENL/sQUZS0a.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account106' WHERE `accounts`.`id` = 106 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (106, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account107' WHERE `accounts`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account108' WHERE `accounts`.`id` = 108  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (108, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 107 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 107 WHERE `account_users`.`id` = 73  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (106, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"106", "domain_id"=>"18"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 35 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_106_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 35 AND `account_users`.`account_id` = 106 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND `accounts`.`id` = 106 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`id` = 18 LIMIT 1 Redirected to http://test.host/settings/account/106/domains Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$r/eAwjRVnQjg3J1ttOeYQO7bGyzvlQd1zeepnNZXiWjGQZVU.5cw.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account109' WHERE `accounts`.`id` = 109 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (109, 36) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account110' WHERE `accounts`.`id` = 110  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account111' WHERE `accounts`.`id` = 111  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (111, 36) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 110 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 110 WHERE `account_users`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (109, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"109", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 36 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_109_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 36 AND `account_users`.`account_id` = 109 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND `accounts`.`id` = 109 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/109/domains Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$32gndLeF.rZZxeeHRAYgreEyOo52oywxwM3tDotojNItbO0rsSuE.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account112' WHERE `accounts`.`id` = 112 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (112, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account113' WHERE `accounts`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account114' WHERE `accounts`.`id` = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (114, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 113 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 113 WHERE `account_users`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (112, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"112", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 37 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_112_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 37 AND `account_users`.`account_id` = 112 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND `accounts`.`id` = 112 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/112/domains Completed 302 Found in 10ms (ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$pgeMBr349ge3OLVIKrUWZegg357j9kBZQTW1KsF1JzXojHVOq2tGq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account115' WHERE `accounts`.`id` = 115 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (115, 38) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account116' WHERE `accounts`.`id` = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account117' WHERE `accounts`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (117, 38) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 116 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 116 WHERE `account_users`.`id` = 79  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"115"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 38 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_115_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 38 AND `account_users`.`account_id` = 115 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND `accounts`.`id` = 115 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 115) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:41:50' WHERE `accounts`.`id` = 115  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/115/domains Completed 302 Found in 14ms (ActiveRecord: 3.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$vp6i2kA7WXDKW0W6xqccgeefXwTEnGVlW5EnGMkScXQr6qAH7xSa6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account118' WHERE `accounts`.`id` = 118 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (118, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account119' WHERE `accounts`.`id` = 119  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account120' WHERE `accounts`.`id` = 120  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (120, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 119 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 119 WHERE `account_users`.`id` = 81  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"118"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 39 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_118_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 39 AND `account_users`.`account_id` = 118 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND `accounts`.`id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 118) LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:41:50' WHERE `accounts`.`id` = 118  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/118/domains Completed 302 Found in 14ms (ActiveRecord: 3.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$AB6IBSTm1E0E2hNaYSsP3ep..ulw8oHme6HzqfworVd0Qm2qiM9.W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account121' WHERE `accounts`.`id` = 121 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (121, 40) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account122' WHERE `accounts`.`id` = 122  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account123' WHERE `accounts`.`id` = 123  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (123, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 122 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 122 WHERE `account_users`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 40 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 121) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:41:50' WHERE `accounts`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/121/domains Completed 302 Found in 13ms (ActiveRecord: 3.1ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 2.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$gidpJIHzJa7dqHNlOnv3C.aR5wsP31wUdVd87XAGaoyeQVmO92YtO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account124' WHERE `accounts`.`id` = 124 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (124, 41) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account125' WHERE `accounts`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account126' WHERE `accounts`.`id` = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (126, 41) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 125 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 125 WHERE `account_users`.`id` = 85  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"124"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 41 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_124_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 41 AND `account_users`.`account_id` = 124 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:50', '2012-11-28 22:41:50', 'teste@teste.com', '$2a$04$UQF2pl75zEeqXHJZbSO2SuL5F1NmmQPRHLdQS/xV7TWU2YrkdsWqy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', NULL, NULL, NULL, '2012-11-28 22:41:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account127' WHERE `accounts`.`id` = 127 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (127, 42) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account128' WHERE `accounts`.`id` = 128  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:50', 'jabanilson', NULL, 1, '2012-11-28 22:41:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:50', `updated_at` = '2012-11-28 22:41:50', `subdomain` = 'account129' WHERE `accounts`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (129, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 128 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 128 WHERE `account_users`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 42 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_127_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$E2mQXpIWIflA5zIS4Glo8uqb9Fxo66vt0nAKIprFdHNnNTV016GZe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account130' WHERE `accounts`.`id` = 130 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (130, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account131' WHERE `accounts`.`id` = 131  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account132' WHERE `accounts`.`id` = 132  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (132, 43) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 131 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 131 WHERE `account_users`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"130", "domain_id"=>"1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 43 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_130_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$d8KUDLz3j1E7RvwJZNBD8uIngXGlZSEsQeJ.Flum60VYGACz/1NHq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account133' WHERE `accounts`.`id` = 133 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (133, 44) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account134' WHERE `accounts`.`id` = 134  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account135' WHERE `accounts`.`id` = 135  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (135, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 134 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 134 WHERE `account_users`.`id` = 91  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"133"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 44 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_133_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 44 AND `account_users`.`account_id` = 133 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$sDKdK4kS5TftyMlVpUIs0u8uoiJk4JD0rPb8ewCMiC2G5vMOiN5/C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account136' WHERE `accounts`.`id` = 136 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (136, 45) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account137' WHERE `accounts`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account138' WHERE `accounts`.`id` = 138  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (138, 45) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 137 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 137 WHERE `account_users`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 136 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"136", "user_id"=>"45"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 45 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 AND `account_users`.`account_id` = 136 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND `accounts`.`id` = 136 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 136 AND `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136) Completed 200 OK in 15ms (Views: 3.4ms | ActiveRecord: 2.7ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$3Un/8YiVJ8NfYJ9Twdc9WOemn0ZwzmFHh326hGhGILz3lemaqofay', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account139' WHERE `accounts`.`id` = 139 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 139 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (139, 46) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account140' WHERE `accounts`.`id` = 140  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account141' WHERE `accounts`.`id` = 141  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (141, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 140 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 140 WHERE `account_users`.`id` = 95  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 139 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"139", "user_id"=>"46"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 46 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 AND `account_users`.`account_id` = 139 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND `accounts`.`id` = 139 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 139 AND `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139) Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$/S3Hj2huxoiDzvXdZNkiQ.ybWiMnksftetTaLmR3xnJCMGtZhL7lO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account142' WHERE `accounts`.`id` = 142 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 142 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (142, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account143' WHERE `accounts`.`id` = 143  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account144' WHERE `accounts`.`id` = 144  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (144, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 143 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 143 WHERE `account_users`.`id` = 97  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142) Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"142", "user_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 47 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 AND `account_users`.`account_id` = 142 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND `accounts`.`id` = 142 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 142 AND `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 142 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/142/users Completed 302 Found in 16ms (ActiveRecord: 3.5ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account145' WHERE `accounts`.`id` = 145  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$m6WEL00ZUSklHAlGdPvrh.ovD58uyZRT7drybUhYo/ja2FY.AOwM.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account146' WHERE `accounts`.`id` = 146 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 146 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (146, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account147' WHERE `accounts`.`id` = 147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account148' WHERE `accounts`.`id` = 148  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (148, 48) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 147 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 147 WHERE `account_users`.`id` = 99  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 145\n created_at: 2012-11-28 22:41:51.412196000Z\n updated_at: 2012-11-28 22:41:51.412196000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account145\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_145_destroy', '2012-11-28 22:41:51', '2012-11-28 22:41:51')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"145"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 48 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 145 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_145_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 8ms (Views: 3.8ms | ActiveRecord: 1.3ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account149' WHERE `accounts`.`id` = 149  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$RDeAEx6NaaDtgudbjnq7lORkgT4CRnASIiTnigOCqcDXtP0nPru8i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account150' WHERE `accounts`.`id` = 150 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 150 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (150, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account151' WHERE `accounts`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account152' WHERE `accounts`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (152, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 151 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 151 WHERE `account_users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"149"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 49 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 149 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_149_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 1.3ms)  (7.1ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$/EpFau30x0N7gzNzyCNaC.FAP2DdcHH3z7PYEh8cdI7lKIW2oTnrK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account153' WHERE `accounts`.`id` = 153 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (153, 50) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account154' WHERE `accounts`.`id` = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account155' WHERE `accounts`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (155, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 154 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 154 WHERE `account_users`.`id` = 103  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"153"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 50 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_153_destroy' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 1.1ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$UFPw9lww84zbzqk2JyOxreQqzl41URS9sFp3zo8iVLjI3/td5OGfS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account156' WHERE `accounts`.`id` = 156 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (156, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account157' WHERE `accounts`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account158' WHERE `accounts`.`id` = 158  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (158, 51) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 157 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 157 WHERE `account_users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 51 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 1.2ms) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Completed 404 Not Found in 2ms  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$dUEQDgxzdoWCnwpUb/zyOOAvfk1mPt8f0Sjh2BOhhncgeC6CDzRqK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account159' WHERE `accounts`.`id` = 159 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (159, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account160' WHERE `accounts`.`id` = 160  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account161' WHERE `accounts`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (161, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 160 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 160 WHERE `account_users`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"159", "user_id"=>"52"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 52 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_159_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 159 AND `account_users`.`user_id` = 52 LIMIT 1 Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 1.2ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$yDjqnJwZdf72R2epIC04v.Fth.VnTucvW.ckzapkAtPteMolkmi9O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account162' WHERE `accounts`.`id` = 162 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 53) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account163' WHERE `accounts`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account164' WHERE `accounts`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (164, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 163 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 163 WHERE `account_users`.`id` = 109  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'targetdestroy@teste.teste', '$2a$04$bmzRdnOJSs2rJzS5rsfEmuTIUe/677qRgf3KyxwIvFYWCwd9Mu4UO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account165' WHERE `accounts`.`id` = 165 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (165, 54) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"54"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 53 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$Dmh.N4Z1uMGiHg9Jg3s3ReZCtwFqYKIfRoE.Y95W6N0TtFfgUHB8G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account166' WHERE `accounts`.`id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account167' WHERE `accounts`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', 'jabanilson', NULL, 1, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account168' WHERE `accounts`.`id` = 168  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (168, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 167 WHERE `account_users`.`id` = 113  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'targetdestroy@teste.teste', '$2a$04$ODCtxwU/Vo9EDreDAomdnuEMeBetmz2R22XFhSFjGS0aQT8bW30p6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account169' WHERE `accounts`.`id` = 169 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (169, 56) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"166", "user_id"=>"18237198237192837"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 55 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_166_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 55 AND `account_users`.`account_id` = 166 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 166 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:51', '2012-11-28 22:41:51', 'teste@teste.com', '$2a$04$d273djzMlJYD.vNJCLVzFuN9z0o15dO.Ca8N7FRhTT10KsWkZGK7u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:51') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:51', NULL, NULL, NULL, '2012-11-28 22:41:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:51', `updated_at` = '2012-11-28 22:41:51', `subdomain` = 'account170' WHERE `accounts`.`id` = 170 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 57) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account171' WHERE `accounts`.`id` = 171  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account172' WHERE `accounts`.`id` = 172  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (172, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 171 WHERE `account_users`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'targetdestroy@teste.teste', '$2a$04$ukXuQCsUDHwlepShu09kGu1Br1ochLnGZW9U2xs2MYX9jfHbsYzeu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account173' WHERE `accounts`.`id` = 173 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 173 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (173, 58) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 58) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 170 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 237 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"170", "user_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 57 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_170_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 57 AND `account_users`.`account_id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 170 AND `account_users`.`user_id` = 58 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 119\n account_id: 170\n user_id: 58\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_119_destroy', '2012-11-28 22:41:52', '2012-11-28 22:41:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_119_destroy' LIMIT 1 Redirected to http://test.host/settings/account/170/users Completed 302 Found in 16ms (ActiveRecord: 3.9ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'teste@teste.com', '$2a$04$Hnd3K0F31R0fIOl/xvS/lOSa1KK5Inr7DLRX5whJAFNC6gkX3X2tG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account174' WHERE `accounts`.`id` = 174 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account175' WHERE `accounts`.`id` = 175  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account176' WHERE `accounts`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (176, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 175 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 175 WHERE `account_users`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'targetdestroy@teste.teste', '$2a$04$3zgJl/XbrZPohbLTngha9.b/ZhfT36hb9OYflVRRBx4OXSpQDcSJm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account177' WHERE `accounts`.`id` = 177 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (177, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 174 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 246 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 247  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"174", "user_id"=>"60"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 59 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_174_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 59 AND `account_users`.`account_id` = 174 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 174 AND `account_users`.`user_id` = 60 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 10ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'teste@teste.com', '$2a$04$Gj..WEHfaCEski6kgYjrROmtV/J4Vpw.JmjdRKnDmbqgK/xJYJN4G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account178' WHERE `accounts`.`id` = 178 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account179' WHERE `accounts`.`id` = 179  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account180' WHERE `accounts`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (180, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 179 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 179 WHERE `account_users`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'targetdestroy@teste.teste', '$2a$04$IY97nKgOvMMoELVJvXiVXOoDkLivZJ1fLn97sQt5RdDzY98pVBTfO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account181' WHERE `accounts`.`id` = 181 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 181 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (181, 62) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 62) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (124) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (178)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 178 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 249 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"178", "user_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 61 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_178_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 61 AND `account_users`.`account_id` = 178 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Completed 404 Not Found in 9ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'teste@teste.com', '$2a$04$zcaGm5lsJxCS7xnvw9li5.TwoMeKqGKlvnr8eI7hagE.OD8IjjtJq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account182' WHERE `accounts`.`id` = 182 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account183' WHERE `accounts`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account184' WHERE `accounts`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (184, 63) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 183 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 183 WHERE `account_users`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'target@test.test', '$2a$04$CaREbqIwpBA.67S99WAvbeTQTJ7icTn766A.ffxesI4XRxjaNM8Nq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account185' WHERE `accounts`.`id` = 185 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 185 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (185, 64) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 64) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 131  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 182 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 264 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 265  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 131\n account_id: 182\n user_id: 64\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_131_destroy', '2012-11-28 22:41:52', '2012-11-28 22:41:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"64"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 63 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'teste@teste.com', '$2a$04$vnmuZDUERA39CYmk0t/x2uKJn2/0zmNrDZj4DUJP4HUiVt4pcJE4a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account186' WHERE `accounts`.`id` = 186 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account187' WHERE `accounts`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account188' WHERE `accounts`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (188, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 187 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 187 WHERE `account_users`.`id` = 133  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'target@test.test', '$2a$04$LM6OTe.om/wtAEpOYoRW2.lQZygfP5hQtq/tyVK8Au1eexuAweKRG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account189' WHERE `accounts`.`id` = 189 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (189, 66) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 66) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 135  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 186 AND name = 'owner') SQL (0.5ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 273 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 135\n account_id: 186\n user_id: 66\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_135_destroy', '2012-11-28 22:41:52', '2012-11-28 22:41:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"186", "user_id"=>"18237198237192837"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 65 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_186_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 65 AND `account_users`.`account_id` = 186 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 186 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (1.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'teste@teste.com', '$2a$04$gHSOy5J/tU87TMh2vrx1qeN36NbeRrOAhObS0pfbOuMkTVe7QYsuK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account190' WHERE `accounts`.`id` = 190 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account191' WHERE `accounts`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account192' WHERE `accounts`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (192, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 191 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 191 WHERE `account_users`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'target@test.test', '$2a$04$DKFz.JvAYSbmbF12c/wtEONT3nX0FpTy5TMFCE1xHi3JeD7fggoPa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account193' WHERE `accounts`.`id` = 193 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (193, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 139  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 282 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 139\n account_id: 190\n user_id: 68\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_139_destroy', '2012-11-28 22:41:52', '2012-11-28 22:41:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"190", "user_id"=>"68"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 67 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_190_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 190 AND `account_users`.`user_id` = 68 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/190/users Completed 302 Found in 12ms (ActiveRecord: 3.1ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'teste@teste.com', '$2a$04$r5QWkLWujIn8tB3v2rUTiOjvShs53RPkpjHW5Rz2.kWxnSkvB73Z2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account194' WHERE `accounts`.`id` = 194 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account195' WHERE `accounts`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account196' WHERE `accounts`.`id` = 196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (196, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 195 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 195 WHERE `account_users`.`id` = 141  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'target@test.test', '$2a$04$Sz8QAUL9zYJsxzqHQ33g5ejxtmwSI23MkEFoQbtKHzVLcFQ/CoG6C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account197' WHERE `accounts`.`id` = 197 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (197, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 143  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 291 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 143\n account_id: 194\n user_id: 70\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_143_destroy', '2012-11-28 22:41:52', '2012-11-28 22:41:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 286  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"194", "user_id"=>"70"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 69 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_194_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 194 AND `account_users`.`user_id` = 70 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/194/users Completed 302 Found in 12ms (ActiveRecord: 3.0ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'teste@teste.com', '$2a$04$ZzG6odXUwCoUcefjiHytOemGevRtFEqibci.JABNhOOa9J09wlpHK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account198' WHERE `accounts`.`id` = 198 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account199' WHERE `accounts`.`id` = 199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account200' WHERE `accounts`.`id` = 200  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (200, 71) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 199 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 199 WHERE `account_users`.`id` = 145  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'target@test.test', '$2a$04$rtXMJZD8UGiY6ueuh6/axOevSio/BGo0dJBIN.Kh0BAtQYU8HNDAu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account201' WHERE `accounts`.`id` = 201 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 201 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (201, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 147  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 300 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 301  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:41:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 147\n account_id: 198\n user_id: 72\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_147_destroy', '2012-11-28 22:41:52', '2012-11-28 22:41:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'notowner@account.test', '$2a$04$OmU0GIVRb.YgYumMnEe4Tup0r2AGCMn7NlgsilFdIryO0OeWzn10W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account202' WHERE `accounts`.`id` = 202 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (202, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account203' WHERE `accounts`.`id` = 203  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (203, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 198 WHERE `account_users`.`id` = 149  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 294 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"198", "user_id"=>"72"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 71 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_198_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:41:52', '2012-11-28 22:41:52', 'teste@teste.com', '$2a$04$0Lbu/GhLN1RdOU0Q2D0ddOaN69ik.rJfjsFYWBtV.0gmBqXsyS35y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:41:52') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', NULL, NULL, NULL, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account204' WHERE `accounts`.`id` = 204 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (204, 74) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account205' WHERE `accounts`.`id` = 205  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account206' WHERE `accounts`.`id` = 206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (206, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 205 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 205 WHERE `account_users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:41:52', 'jabanilson', NULL, 1, '2012-11-28 22:41:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:41:52', `updated_at` = '2012-11-28 22:41:52', `subdomain` = 'account207' WHERE `accounts`.`id` = 207  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"207"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 74 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 74 AND `account_users`.`account_id` = 207 LIMIT 1 Completed 404 Not Found in 78ms  (1.0ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.9ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (25.4ms) TRUNCATE TABLE `account_domains`;  (1.5ms) TRUNCATE TABLE `account_roles`;  (0.8ms) TRUNCATE TABLE `account_users`;  (1.2ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:17', '2012-11-28 22:42:17', 'teste@teste.com', '$2a$04$AHaQUUYvcdgYWZjd8GNg8O62Mr19pF2m6y.lHDyqEN6804PfTvBVW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:17') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:17', NULL, NULL, NULL, '2012-11-28 22:42:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:17', `updated_at` = '2012-11-28 22:42:17', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'teste@teste.com', '$2a$04$MOyGcqPN/nkKB5zkz.IBOuhN99Dq6yYs.Uo5qsENVxnTyhVV1gWAe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 5 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'user2@email.email', '$2a$04$Aw2DZmvLCgylXL7IG8DnY.7XCPk4Y99R4atMbJWfXzm889oXNdcA2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 2 AND `account_users`.`account_id` = 4 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 3  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 4 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 5 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 2 AND `account_users`.`account_id` = 4 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 3 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 3 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 146ms (Views: 139.8ms | ActiveRecord: 1.4ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"4"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 2 AND `account_users`.`account_id` = 4 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 3 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 3 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'teste@teste.com', '$2a$04$aAP0BMPTentmCJO6cejaa.h38QalXtsv7wgvAGzQxX1AlKG1sYYy2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 4) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account10' WHERE `accounts`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 9 WHERE `account_users`.`id` = 8  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'user2@email.email', '$2a$04$MeGEReXPCWHiJfUFqvKL3OieJZ6jy9HUadISVuFaz/H9WtUG2Z.pS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 5) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 8 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 8 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 14 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"8"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 8 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 8 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"8"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 8 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'teste@teste.com', '$2a$04$8JwYE/ujy1IIECt7sdQWS.FcotVk094m/5Sj3IAc5KJaMGW7RvFQe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account12' WHERE `accounts`.`id` = 12 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account13' WHERE `accounts`.`id` = 13  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account14' WHERE `accounts`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 13 WHERE `account_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'user2@email.email', '$2a$04$wNEVwYMXn1GwrcCS2We8O.jN7VUjOJsRLtZzPaitxyqSbGxA0.z9C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account15' WHERE `accounts`.`id` = 15 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 12 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 12 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 24 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 25  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"12"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 12 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"12"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 12 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'teste@teste.com', '$2a$04$VX4uoAGLnO/hbNrgwB2Eiu46uImWam.BIbub2u2KBWvnvrjiUOYMy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account17' WHERE `accounts`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 17 WHERE `account_users`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'user2@email.email', '$2a$04$buOMtIjMAqYQNTC3/1tkkOTo24aB6hsZLuel1UwI7p1IqRhqNHcFS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 9) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 16 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 33 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 34  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"16"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 6ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'teste@teste.com', '$2a$04$BPN2nj/W2zi//chRL5d/JuJ/qjiJJ5yllGqI6vop6N9DSg2EySgv6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account20' WHERE `accounts`.`id` = 20 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (20, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account21' WHERE `accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', 'jabanilson', NULL, 1, '2012-11-28 22:42:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account22' WHERE `accounts`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (22, 10) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 21 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 21 WHERE `account_users`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:18', '2012-11-28 22:42:18', 'user2@email.email', '$2a$04$qGR4//ZnshPNVrOUDiaRe.4U2kVUo2MRZ0c5N0HWN4vWrSYFvMowW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:18', NULL, NULL, NULL, '2012-11-28 22:42:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:18', `updated_at` = '2012-11-28 22:42:18', `subdomain` = 'account23' WHERE `accounts`.`id` = 23 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (23, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (20, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 20 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 20 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 42 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 50  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"20"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 20 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (177.6ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:19', '2012-11-28 22:42:19', 'teste@teste.com', '$2a$04$pnjh5AqIGNcNXwdS7IRPFOykihbz9jWZtE./YJw/tHsI2LnbzgCXO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:19', NULL, NULL, NULL, '2012-11-28 22:42:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:19', `updated_at` = '2012-11-28 22:42:19', `subdomain` = 'account24' WHERE `accounts`.`id` = 24 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 24 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:19', 'jabanilson', NULL, 1, '2012-11-28 22:42:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:19', `updated_at` = '2012-11-28 22:42:19', `subdomain` = 'account25' WHERE `accounts`.`id` = 25  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:19', 'jabanilson', NULL, 1, '2012-11-28 22:42:19')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:19', `updated_at` = '2012-11-28 22:42:19', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (26, 12) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 25 WHERE `account_users`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:19', '2012-11-28 22:42:19', 'user2@email.email', '$2a$04$ltxo7cJ0GHpf3ufMQu/r6es/MVDtueE6ONTlXMHxJXZMoxBOg7hey', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:19') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:19', NULL, NULL, NULL, '2012-11-28 22:42:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:19', `updated_at` = '2012-11-28 22:42:19', `subdomain` = 'account27' WHERE `accounts`.`id` = 27 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 24 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 24 LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 231213231231312312341 LIMIT 1 Completed 404 Not Found in 3ms  (1.2ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (0.9ms) TRUNCATE TABLE `account_domains`;  (21.0ms) TRUNCATE TABLE `account_roles`;  (1.4ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (1.2ms) TRUNCATE TABLE `api_tokens`;  (1.3ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.1ms) TRUNCATE TABLE `user_invitations`;  (1.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:39', '2012-11-28 22:42:39', 'teste@teste.com', '$2a$04$sF5xqCUjMMRl1yafDZ9IZecLs00rfJdwBq57aQiZ/J5ZM.7SMBq0m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:39') SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', NULL, NULL, NULL, '2012-11-28 22:42:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"4"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 4 LIMIT 1 Completed 404 Not Found in 4ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:40', '2012-11-28 22:42:40', 'teste@teste.com', '$2a$04$gQcAj/c5H3WnsYO9kiONf.7beArMlIpt17mdniiRuhql/k0V4m1s6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', NULL, NULL, NULL, '2012-11-28 22:42:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 6 WHERE `account_users`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"5"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 2 AND `account_users`.`account_id` = 5 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 3 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 3 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 Completed 200 OK in 139ms (Views: 121.8ms | ActiveRecord: 4.3ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:40', '2012-11-28 22:42:40', 'teste@teste.com', '$2a$04$SiLDLt1PoY04rMXPfvkZAOLW17pUr.WnHaNn9TEVhWMX7dzEPsFvC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', NULL, NULL, NULL, '2012-11-28 22:42:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account10' WHERE `accounts`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 3) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 9 WHERE `account_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 3 AND `account_users`.`account_id` = 8 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 5 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 5 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 8 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (8, 'create@controller.teste', 3, NULL, '2012-11-28 22:42:40', 'fyA_o7L2QIjIFJYldb2qEyT3hwk') Sent mail to create@controller.teste (79ms) Date: Wed, 28 Nov 2012 20:42:40 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b69360c4d3d_1ab080435d4890730@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1fyA_o7L2QIjIFJYldb2qEyT3hwk  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/8/users Completed 302 Found in 313ms (ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:40', '2012-11-28 22:42:40', 'teste@teste.com', '$2a$04$ZFNQ1.pgoWLojKcZV.PhZesNWi8Pq2PKUFBm95R2Bf7Z.dqRlADiq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', NULL, NULL, NULL, '2012-11-28 22:42:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account11' WHERE `accounts`.`id` = 11 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (11, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account12' WHERE `accounts`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account13' WHERE `accounts`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 12 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 12 WHERE `account_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"11"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 11 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 11 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (11, 'create@controller.teste', 4, NULL, '2012-11-28 22:42:40', 'b2zRptRjkS0avTmARyimTsq5ypE') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 20:42:40 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b69360dff98_1ab080435d48908f5@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2b2zRptRjkS0avTmARyimTsq5ypE  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/11/users Completed 302 Found in 30ms (ActiveRecord: 2.7ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:40', '2012-11-28 22:42:40', 'teste@teste.com', '$2a$04$DVgz6cpRgx0bSdP/NEFbyOFe2e5AIUTwRH.W9U.fLYBIGOZY5FkVm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', NULL, NULL, NULL, '2012-11-28 22:42:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account14' WHERE `accounts`.`id` = 14 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (14, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account15' WHERE `accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:40', 'jabanilson', NULL, 1, '2012-11-28 22:42:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:40', `updated_at` = '2012-11-28 22:42:40', `subdomain` = 'account16' WHERE `accounts`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 15 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 15 WHERE `account_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"14"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 14 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 14 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (14, 'create@controller.teste', 5, NULL, '2012-11-28 22:42:41', 'UVPgsQ548LyicmTIe0EkYNiPrv8') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 20:42:41 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b69361c4fc_1ab080435d48909e4@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3UVPgsQ548LyicmTIe0EkYNiPrv8  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/14/users Completed 302 Found in 30ms (ActiveRecord: 2.9ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"14"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 14 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1 Completed 200 OK in 8ms (Views: 1.6ms | ActiveRecord: 1.4ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:41', '2012-11-28 22:42:41', 'teste@teste.com', '$2a$04$zV2LlyXZTv.tjGb/1i3Z7ej.4acGFfVkEhkBYrnsg4ib80K/3ZuQ.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', NULL, NULL, NULL, '2012-11-28 22:42:41')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account17' WHERE `accounts`.`id` = 17 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (17, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account19' WHERE `accounts`.`id` = 19  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 18 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 18 WHERE `account_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account20' WHERE `accounts`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 20 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (20, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:42:41', 'rYKYs5tGtmKvXW7gsZsU2oSgH3U') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:42:41 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b69361218f7_1ab080435d4891064@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4rYKYs5tGtmKvXW7gsZsU2oSgH3U  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 6 WHERE `user_invitations`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:41', '2012-11-28 22:42:41', 'teste@teste.com', '$2a$04$iR7UPdb6UF3uXmmcWD1e1.dJoYogAWgLplIsFD3UhZwZ2l6esdym.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', NULL, NULL, NULL, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account21' WHERE `accounts`.`id` = 21 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 21 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (21, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account22' WHERE `accounts`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account23' WHERE `accounts`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (23, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 22 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 22 WHERE `account_users`.`id` = 14  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account24' WHERE `accounts`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 24 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (24, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:42:41', 'j25EUfnG16FgLuxtbsrM0GFC0o0') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:42:41 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b69361340f3_1ab080435d489115c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5j25EUfnG16FgLuxtbsrM0GFC0o0  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = 7 WHERE `user_invitations`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"5j25EUfnG16FgLuxtbsrM0GFC0o0"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 5 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 1.2ms)  (1.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:41', '2012-11-28 22:42:41', 'teste@teste.com', '$2a$04$CMeI5rQBuFsSJxdaPPw3zO/ei9bfUy8PDHZQXrynaC7kvfyOzyU0C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', NULL, NULL, NULL, '2012-11-28 22:42:41')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account25' WHERE `accounts`.`id` = 25 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (25, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account27' WHERE `accounts`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 26 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 26 WHERE `account_users`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account28' WHERE `accounts`.`id` = 28  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account29' WHERE `accounts`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 29 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (29, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:42:41', 'eD3OmjKZlPSdy9p9wHNRhMvSPGU') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:42:41 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b693614890c_1ab080435d4891295@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/6eD3OmjKZlPSdy9p9wHNRhMvSPGU  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 28 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 28 WHERE `user_invitations`.`id` = 6  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:41', '2012-11-28 22:42:41', 'teste@teste.com', '$2a$04$9qgLyUO3OrBl2nj3TVsb2es/vlgSc6vKINrQpFQ./0kdhmJc2gyZC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', NULL, NULL, NULL, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account30' WHERE `accounts`.`id` = 30 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 30 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (30, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account31' WHERE `accounts`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account32' WHERE `accounts`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (32, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 31 WHERE `account_users`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account33' WHERE `accounts`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account34' WHERE `accounts`.`id` = 34  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 34 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (34, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:42:41', 'hHFmXQhSRxtBdMTu8qSDMgw01Zw') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:42:41 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b693615d015_1ab080435d4891337@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/7hHFmXQhSRxtBdMTu8qSDMgw01Zw  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 33 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 33 WHERE `user_invitations`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"7hHFmXQhSRxtBdMTu8qSDMgw01Zw"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 7 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 33 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 33 AND `account_users`.`user_id` = 9  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 33 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (33, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 4.7ms)  (6.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:41', '2012-11-28 22:42:41', 'teste@teste.com', '$2a$04$JovGInD2wSV5IZcSl6ubJOc01kE1jP9P3opqiZ9lRu4JHNXNPcS6q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', NULL, NULL, NULL, '2012-11-28 22:42:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account35' WHERE `accounts`.`id` = 35 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 35 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (35, 10) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account36' WHERE `accounts`.`id` = 36  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account37' WHERE `accounts`.`id` = 37  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (37, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 36 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 36 WHERE `account_users`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account38' WHERE `accounts`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account39' WHERE `accounts`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 39 AND `users`.`email` = 'teste@teste.teste' SQL (0.5ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (39, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:42:41', 'bkRcIAeeWoUbswCMZ3iOdKoZTEE') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:42:41 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6936187359_1ab080435d4891430@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/8bkRcIAeeWoUbswCMZ3iOdKoZTEE  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 38 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 38 WHERE `user_invitations`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (38, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"8bkRcIAeeWoUbswCMZ3iOdKoZTEE"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 38 AND `account_users`.`user_id` = 10 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:42:41', '2012-11-28 22:42:41', 'teste@teste.com', '$2a$04$tdvmmGphGofbKrV2x2FY5OVRiLQZVWTFK6faVxX.ZemOKwiz41doq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:42:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', NULL, NULL, NULL, '2012-11-28 22:42:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account40' WHERE `accounts`.`id` = 40 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (40, 11) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account41' WHERE `accounts`.`id` = 41  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account42' WHERE `accounts`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (42, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 41 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 41 WHERE `account_users`.`id` = 24  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account43' WHERE `accounts`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:42:41', 'jabanilson', NULL, 1, '2012-11-28 22:42:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:42:41', `updated_at` = '2012-11-28 22:42:41', `subdomain` = 'account44' WHERE `accounts`.`id` = 44  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 44 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (44, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:42:41', 'WrvVp8CH1eU5w3B31Lg4qczu0Gc') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:42:41 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b693619ed95_1ab080435d489151e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9WrvVp8CH1eU5w3B31Lg4qczu0Gc  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 43 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 43 WHERE `user_invitations`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 43 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (43, 11) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9WrvVp8CH1eU5w3B31Lg4qczu0Gc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 43 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 43 AND `account_users`.`user_id` = 11 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (7.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (0.7ms) TRUNCATE TABLE `account_roles`;  (1.3ms) TRUNCATE TABLE `account_users`;  (1.3ms) TRUNCATE TABLE `accounts`;  (1.4ms) TRUNCATE TABLE `api_tokens`;  (2.7ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (1.1ms) TRUNCATE TABLE `user_invitations`;  (38.0ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Processing by StubApplicationDomainController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 141ms (Views: 125.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (2.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (27.9ms) TRUNCATE TABLE `account_roles`;  (1.4ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (1.3ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.7ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:43:22', 'jabanilson', NULL, 1, '2012-11-28 22:43:22')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:43:22', `updated_at` = '2012-11-28 22:43:22', `subdomain` = 'account1' WHERE `accounts`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:43:22', '2012-11-28 22:43:22', 'teste@teste.com', '$2a$04$.2yZsGjWTETBZ7dLV9TCPuZAsQmWP/uvPuMDUmuF6PcOaYP4skf66', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:43:22') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:43:22', NULL, NULL, NULL, '2012-11-28 22:43:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:43:22', `updated_at` = '2012-11-28 22:43:22', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:43:22', 'jabanilson', NULL, 1, '2012-11-28 22:43:22')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:43:22', `updated_at` = '2012-11-28 22:43:22', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:43:22', 'jabanilson', NULL, 1, '2012-11-28 22:43:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:43:22', `updated_at` = '2012-11-28 22:43:22', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 3 WHERE `account_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:43:22', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 1\n created_at: 2012-11-28 22:43:22.454425000Z\n updated_at: 2012-11-28 22:43:22.454425000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account1\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_1_destroy', '2012-11-28 22:43:22', '2012-11-28 22:43:22')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered public/422.html within layouts/settings (0.4ms) Filter chain halted as :block_removing rendered or redirected Completed 550 in 125ms (Views: 119.8ms | ActiveRecord: 1.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:43:23', 'jabanilson', NULL, 1, '2012-11-28 22:43:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:43:23', `updated_at` = '2012-11-28 22:43:23', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:43:23', '2012-11-28 22:43:23', 'teste@teste.com', '$2a$04$q/M.LI14f14iA3oHddOCHujM9LShkqb480LIxzqxArWdc9boxBCcO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:43:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:43:23', NULL, NULL, NULL, '2012-11-28 22:43:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:43:23', `updated_at` = '2012-11-28 22:43:23', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:43:23', 'jabanilson', NULL, 1, '2012-11-28 22:43:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:43:23', `updated_at` = '2012-11-28 22:43:23', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:43:23', 'jabanilson', NULL, 1, '2012-11-28 22:43:23')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:43:23', `updated_at` = '2012-11-28 22:43:23', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 7 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 0.9ms)  (1.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (16.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (89.7ms) TRUNCATE TABLE `account_domains`;  (1.8ms) TRUNCATE TABLE `account_roles`;  (11.4ms) TRUNCATE TABLE `account_users`;  (5.2ms) TRUNCATE TABLE `accounts`;  (2.0ms) TRUNCATE TABLE `api_tokens`;  (10.0ms) TRUNCATE TABLE `delayed_jobs`;  (2.9ms) TRUNCATE TABLE `social_accounts`;  (1.2ms) TRUNCATE TABLE `user_invitations`;  (2.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:47:21', 'jabanilson', NULL, 1, '2012-11-28 22:47:21')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:47:21', `updated_at` = '2012-11-28 22:47:21', `subdomain` = 'account1' WHERE `accounts`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:47:21', '2012-11-28 22:47:21', 'teste@teste.com', '$2a$04$BuztzxTzZmEKo1Xbeba1F.K3cH7EIXwcLOYpT2je8.B23vVyqKfSS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:47:21') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:47:21', NULL, NULL, NULL, '2012-11-28 22:47:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:47:21', `updated_at` = '2012-11-28 22:47:21', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:47:21', 'jabanilson', NULL, 1, '2012-11-28 22:47:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:47:21', `updated_at` = '2012-11-28 22:47:21', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:47:21', 'jabanilson', NULL, 1, '2012-11-28 22:47:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:47:21', `updated_at` = '2012-11-28 22:47:21', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 3 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:47:21', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 1\n created_at: 2012-11-28 22:47:21.132098000Z\n updated_at: 2012-11-28 22:47:21.132098000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account1\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_1_destroy', '2012-11-28 22:47:21', '2012-11-28 22:47:21')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered public/422.html within layouts/settings (0.4ms) Filter chain halted as :block_removing rendered or redirected Completed 550 in 160ms (Views: 154.0ms | ActiveRecord: 1.0ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:47:22', 'jabanilson', NULL, 1, '2012-11-28 22:47:22')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:47:22', `updated_at` = '2012-11-28 22:47:22', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:47:22', '2012-11-28 22:47:22', 'teste@teste.com', '$2a$04$zrCMJSYPpHa3py2wOuzRv.DxXq3sMJZZxlvEpepcU5.0qCfwLo7xi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:47:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:47:22', NULL, NULL, NULL, '2012-11-28 22:47:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:47:22', `updated_at` = '2012-11-28 22:47:22', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:47:22', 'jabanilson', NULL, 1, '2012-11-28 22:47:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:47:22', `updated_at` = '2012-11-28 22:47:22', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:47:22', 'jabanilson', NULL, 1, '2012-11-28 22:47:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:47:22', `updated_at` = '2012-11-28 22:47:22', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 7 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 16.2ms | ActiveRecord: 1.1ms)  (1.3ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (72.5ms) TRUNCATE TABLE `account_domains`;  (23.5ms) TRUNCATE TABLE `account_roles`;  (7.4ms) TRUNCATE TABLE `account_users`;  (7.9ms) TRUNCATE TABLE `accounts`;  (1.7ms) TRUNCATE TABLE `api_tokens`;  (24.1ms) TRUNCATE TABLE `delayed_jobs`;  (2.0ms) TRUNCATE TABLE `social_accounts`;  (1.5ms) TRUNCATE TABLE `user_invitations`;  (1.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:49:21', 'jabanilson', NULL, 1, '2012-11-28 22:49:21')  (17.8ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:49:21', `updated_at` = '2012-11-28 22:49:21', `subdomain` = 'account1' WHERE `accounts`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:49:21', '2012-11-28 22:49:21', 'teste@teste.com', '$2a$04$R5pdoBmy5O5xK.21uAdwRe/ofer6DtGNuSMjFa1853hVMW2ytCr6a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:49:21') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:49:21', NULL, NULL, NULL, '2012-11-28 22:49:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:49:21', `updated_at` = '2012-11-28 22:49:21', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:49:21', 'jabanilson', NULL, 1, '2012-11-28 22:49:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:49:21', `updated_at` = '2012-11-28 22:49:21', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:49:21', 'jabanilson', NULL, 1, '2012-11-28 22:49:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:49:21', `updated_at` = '2012-11-28 22:49:21', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 3 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:49:22', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 1\n created_at: 2012-11-28 22:49:21.280886000Z\n updated_at: 2012-11-28 22:49:21.280886000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account1\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_1_destroy', '2012-11-28 22:49:22', '2012-11-28 22:49:22')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered public/422.html within layouts/settings (0.4ms) Filter chain halted as :block_removing rendered or redirected Completed 550 in 135ms (Views: 129.7ms | ActiveRecord: 1.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:49:22', 'jabanilson', NULL, 1, '2012-11-28 22:49:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:49:22', `updated_at` = '2012-11-28 22:49:22', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:49:22', '2012-11-28 22:49:22', 'teste@teste.com', '$2a$04$XckaXjSMg3bocspCm07iOODTPY1IJXNH42fuskCiXfhasaQn2EBy6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:49:22') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:49:22', NULL, NULL, NULL, '2012-11-28 22:49:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:49:22', `updated_at` = '2012-11-28 22:49:22', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:49:22', 'jabanilson', NULL, 1, '2012-11-28 22:49:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:49:22', `updated_at` = '2012-11-28 22:49:22', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:49:22', 'jabanilson', NULL, 1, '2012-11-28 22:49:22')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:49:22', `updated_at` = '2012-11-28 22:49:22', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 7 WHERE `account_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 1.0ms)  (0.9ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (21.5ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (42.6ms) TRUNCATE TABLE `account_domains`;  (43.5ms) TRUNCATE TABLE `account_roles`;  (1.5ms) TRUNCATE TABLE `account_users`;  (1.3ms) TRUNCATE TABLE `accounts`;  (1.7ms) TRUNCATE TABLE `api_tokens`;  (1.7ms) TRUNCATE TABLE `delayed_jobs`;  (1.4ms) TRUNCATE TABLE `social_accounts`;  (1.9ms) TRUNCATE TABLE `user_invitations`;  (1.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:51:36', 'jabanilson', NULL, 1, '2012-11-28 22:51:36')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:51:36', `updated_at` = '2012-11-28 22:51:36', `subdomain` = 'account1' WHERE `accounts`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:51:36', '2012-11-28 22:51:36', 'teste@teste.com', '$2a$04$y3HzcL43mRPT.5/JgMQBsuRfAIOfkOlOUdSGSsX2xHwWA7bWnqYee', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:51:36') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:51:36', NULL, NULL, NULL, '2012-11-28 22:51:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:51:36', `updated_at` = '2012-11-28 22:51:36', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:51:37', 'jabanilson', NULL, 1, '2012-11-28 22:51:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:51:37', `updated_at` = '2012-11-28 22:51:37', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:51:37', 'jabanilson', NULL, 1, '2012-11-28 22:51:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:51:37', `updated_at` = '2012-11-28 22:51:37', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 1) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 3 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:51:37', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 1\n created_at: 2012-11-28 22:51:36.391287000Z\n updated_at: 2012-11-28 22:51:36.391287000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account1\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_1_destroy', '2012-11-28 22:51:37', '2012-11-28 22:51:37')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered public/422.html within layouts/settings (0.5ms) Filter chain halted as :block_removing rendered or redirected Completed 550 in 151ms (Views: 146.3ms | ActiveRecord: 1.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:51:37', 'jabanilson', NULL, 1, '2012-11-28 22:51:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:51:37', `updated_at` = '2012-11-28 22:51:37', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:51:37', '2012-11-28 22:51:37', 'teste@teste.com', '$2a$04$NDuG1UEobgBjMW7V1JVrCeHfQim/uE4Rv1j.j/O3q.Zqfm8o0YI2y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:51:37') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:51:37', NULL, NULL, NULL, '2012-11-28 22:51:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:51:37', `updated_at` = '2012-11-28 22:51:37', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:51:37', 'jabanilson', NULL, 1, '2012-11-28 22:51:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:51:37', `updated_at` = '2012-11-28 22:51:37', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:51:37', 'jabanilson', NULL, 1, '2012-11-28 22:51:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:51:37', `updated_at` = '2012-11-28 22:51:37', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 7 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 1.2ms)  (1.3ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (70.8ms) TRUNCATE TABLE `account_domains`;  (11.3ms) TRUNCATE TABLE `account_roles`;  (2.0ms) TRUNCATE TABLE `account_users`;  (1.5ms) TRUNCATE TABLE `accounts`;  (1.9ms) TRUNCATE TABLE `api_tokens`;  (1.5ms) TRUNCATE TABLE `delayed_jobs`;  (1.2ms) TRUNCATE TABLE `social_accounts`;  (1.4ms) TRUNCATE TABLE `user_invitations`;  (1.7ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:52:46', 'jabanilson', NULL, 1, '2012-11-28 22:52:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:52:46', `updated_at` = '2012-11-28 22:52:46', `subdomain` = 'account1' WHERE `accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:52:47', '2012-11-28 22:52:47', 'teste@teste.com', '$2a$04$CExfiSkYnYPhqFPziz6eYeMsD/cn5yA63P3oi/WTxFFDnI82aY.Si', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:52:47') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:52:47', NULL, NULL, NULL, '2012-11-28 22:52:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:52:47', `updated_at` = '2012-11-28 22:52:47', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:52:47', 'jabanilson', NULL, 1, '2012-11-28 22:52:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:52:47', `updated_at` = '2012-11-28 22:52:47', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:52:47', 'jabanilson', NULL, 1, '2012-11-28 22:52:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:52:47', `updated_at` = '2012-11-28 22:52:47', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 3 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:52:47', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 1\n created_at: 2012-11-28 22:52:46.895177000Z\n updated_at: 2012-11-28 22:52:46.895177000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account1\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_1_destroy', '2012-11-28 22:52:47', '2012-11-28 22:52:47')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:52:47', 'jabanilson', NULL, 1, '2012-11-28 22:52:47')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:52:47', `updated_at` = '2012-11-28 22:52:47', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:52:47', '2012-11-28 22:52:47', 'teste@teste.com', '$2a$04$Tbi8G2ey2vclj5TuE1RzSe0ImJNhhfE32FMAcVKyE1oLEUB4bnqtC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:52:47') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:52:47', NULL, NULL, NULL, '2012-11-28 22:52:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:52:47', `updated_at` = '2012-11-28 22:52:47', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:52:47', 'jabanilson', NULL, 1, '2012-11-28 22:52:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:52:47', `updated_at` = '2012-11-28 22:52:47', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:52:47', 'jabanilson', NULL, 1, '2012-11-28 22:52:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:52:47', `updated_at` = '2012-11-28 22:52:47', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 7 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1  (1.0ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (62.4ms) TRUNCATE TABLE `account_domains`;  (2.8ms) TRUNCATE TABLE `account_roles`;  (1.2ms) TRUNCATE TABLE `account_users`;  (1.3ms) TRUNCATE TABLE `accounts`;  (1.4ms) TRUNCATE TABLE `api_tokens`;  (1.4ms) TRUNCATE TABLE `delayed_jobs`;  (1.3ms) TRUNCATE TABLE `social_accounts`;  (5.8ms) TRUNCATE TABLE `user_invitations`;  (14.5ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:53:50', 'jabanilson', NULL, 1, '2012-11-28 22:53:50')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:53:50', `updated_at` = '2012-11-28 22:53:50', `subdomain` = 'account1' WHERE `accounts`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:53:50', '2012-11-28 22:53:50', 'teste@teste.com', '$2a$04$0hgyoVbg1ciSrBBb6OMSP.D.FyXKSkJQQw.P0X959yOMmIsWWDhya', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:53:50') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:53:50', NULL, NULL, NULL, '2012-11-28 22:53:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:53:50', `updated_at` = '2012-11-28 22:53:50', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:53:50', 'jabanilson', NULL, 1, '2012-11-28 22:53:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:53:50', `updated_at` = '2012-11-28 22:53:50', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:53:50', 'jabanilson', NULL, 1, '2012-11-28 22:53:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:53:50', `updated_at` = '2012-11-28 22:53:50', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 1) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 3 WHERE `account_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:53:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 1\n created_at: 2012-11-28 22:53:50.410435000Z\n updated_at: 2012-11-28 22:53:50.410435000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account1\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_1_destroy', '2012-11-28 22:53:51', '2012-11-28 22:53:51')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered public/422.html within layouts/settings (0.5ms) Filter chain halted as :block_removing rendered or redirected Completed 550 in 192ms (Views: 186.0ms | ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:53:51', 'jabanilson', NULL, 1, '2012-11-28 22:53:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:53:51', `updated_at` = '2012-11-28 22:53:51', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:53:51', '2012-11-28 22:53:51', 'teste@teste.com', '$2a$04$gmpIqqFiFBUsKy0fVDj.q.0Pbsa//SThZDHD0s3NZrqrMRL9/Xe4S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:53:51') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:53:51', NULL, NULL, NULL, '2012-11-28 22:53:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:53:51', `updated_at` = '2012-11-28 22:53:51', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:53:51', 'jabanilson', NULL, 1, '2012-11-28 22:53:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:53:51', `updated_at` = '2012-11-28 22:53:51', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:53:51', 'jabanilson', NULL, 1, '2012-11-28 22:53:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:53:51', `updated_at` = '2012-11-28 22:53:51', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 7 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5_destroy' LIMIT 1 Completed 500 Internal Server Error in 7ms  (1.3ms) ROLLBACK Connecting to database specified by database.yml  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (0.9ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (96.0ms) TRUNCATE TABLE `account_domains`;  (2.1ms) TRUNCATE TABLE `account_roles`;  (1.5ms) TRUNCATE TABLE `account_users`;  (1.2ms) TRUNCATE TABLE `accounts`;  (1.3ms) TRUNCATE TABLE `api_tokens`;  (1.5ms) TRUNCATE TABLE `delayed_jobs`;  (1.4ms) TRUNCATE TABLE `social_accounts`;  (1.4ms) TRUNCATE TABLE `user_invitations`;  (2.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:55:09', 'jabanilson', NULL, 1, '2012-11-28 22:55:09')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:55:09', `updated_at` = '2012-11-28 22:55:09', `subdomain` = 'account1' WHERE `accounts`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:55:10', '2012-11-28 22:55:10', 'teste@teste.com', '$2a$04$2O96msKxrM2d5leRrUXAsudB.qySHeHNtGslnmUQDBRg5bYr.dNJy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:55:10') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:55:10', NULL, NULL, NULL, '2012-11-28 22:55:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:55:10', `updated_at` = '2012-11-28 22:55:10', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:55:10', 'jabanilson', NULL, 1, '2012-11-28 22:55:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:55:10', `updated_at` = '2012-11-28 22:55:10', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:55:10', 'jabanilson', NULL, 1, '2012-11-28 22:55:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:55:10', `updated_at` = '2012-11-28 22:55:10', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 3 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:55:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 1\n created_at: 2012-11-28 22:55:09.767810000Z\n updated_at: 2012-11-28 22:55:09.767810000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account1\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_1_destroy', '2012-11-28 22:55:10', '2012-11-28 22:55:10')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered public/422.html within layouts/settings (0.7ms) Filter chain halted as :block_removing rendered or redirected Completed 550 in 161ms (Views: 155.4ms | ActiveRecord: 1.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:55:10', 'jabanilson', NULL, 1, '2012-11-28 22:55:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:55:10', `updated_at` = '2012-11-28 22:55:10', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:55:10', '2012-11-28 22:55:10', 'teste@teste.com', '$2a$04$cM7UfSM61IIn/QgwnHBIzOkOGrVZXqweBVV7FEn5acOBH3ocgu/Oe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:55:10') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:55:10', NULL, NULL, NULL, '2012-11-28 22:55:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:55:10', `updated_at` = '2012-11-28 22:55:10', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:55:10', 'jabanilson', NULL, 1, '2012-11-28 22:55:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:55:10', `updated_at` = '2012-11-28 22:55:10', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:55:10', 'jabanilson', NULL, 1, '2012-11-28 22:55:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:55:10', `updated_at` = '2012-11-28 22:55:10', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 7 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5_destroy' LIMIT 1 Completed 200 OK in 21ms (Views: 16.8ms | ActiveRecord: 1.3ms)  (1.2ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (15.6ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (40.1ms) TRUNCATE TABLE `account_domains`;  (32.5ms) TRUNCATE TABLE `account_roles`;  (2.1ms) TRUNCATE TABLE `account_users`;  (1.3ms) TRUNCATE TABLE `accounts`;  (1.5ms) TRUNCATE TABLE `api_tokens`;  (1.6ms) TRUNCATE TABLE `delayed_jobs`;  (1.2ms) TRUNCATE TABLE `social_accounts`;  (1.3ms) TRUNCATE TABLE `user_invitations`;  (2.3ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:56:45', 'jabanilson', NULL, 1, '2012-11-28 22:56:45')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:56:45', `updated_at` = '2012-11-28 22:56:45', `subdomain` = 'account1' WHERE `accounts`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:56:45', '2012-11-28 22:56:45', 'teste@teste.com', '$2a$04$KCodcUeVOwxwBdS2dCf8Keu3J8x/Na0gw4nRyY0s.Vueu5teo3QCC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:56:45') SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:56:45', NULL, NULL, NULL, '2012-11-28 22:56:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:56:45', `updated_at` = '2012-11-28 22:56:45', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:56:46', 'jabanilson', NULL, 1, '2012-11-28 22:56:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:56:46', `updated_at` = '2012-11-28 22:56:46', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:56:46', 'jabanilson', NULL, 1, '2012-11-28 22:56:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:56:46', `updated_at` = '2012-11-28 22:56:46', `subdomain` = 'account4' WHERE `accounts`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 3 WHERE `account_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:56:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 1\n created_at: 2012-11-28 22:56:45.527992000Z\n updated_at: 2012-11-28 22:56:45.527992000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account1\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_1_destroy', '2012-11-28 22:56:46', '2012-11-28 22:56:46')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered public/422.html within layouts/settings (0.5ms) Filter chain halted as :block_removing rendered or redirected Completed 550 in 161ms (Views: 155.5ms | ActiveRecord: 1.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:56:46', 'jabanilson', NULL, 1, '2012-11-28 22:56:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:56:46', `updated_at` = '2012-11-28 22:56:46', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:56:46', '2012-11-28 22:56:46', 'teste@teste.com', '$2a$04$wky2XxCiZs2GNApAbmWhKexYyDB/KEE1k.I5y1kn1/S8BksKR2n2C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:56:46') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:56:46', NULL, NULL, NULL, '2012-11-28 22:56:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:56:46', `updated_at` = '2012-11-28 22:56:46', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:56:46', 'jabanilson', NULL, 1, '2012-11-28 22:56:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:56:46', `updated_at` = '2012-11-28 22:56:46', `subdomain` = 'account7' WHERE `accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:56:46', 'jabanilson', NULL, 1, '2012-11-28 22:56:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:56:46', `updated_at` = '2012-11-28 22:56:46', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 7 WHERE `account_users`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 16.2ms | ActiveRecord: 1.2ms)  (1.1ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (40.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (34.6ms) TRUNCATE TABLE `account_domains`;  (19.6ms) TRUNCATE TABLE `account_roles`;  (1.7ms) TRUNCATE TABLE `account_users`;  (1.5ms) TRUNCATE TABLE `accounts`;  (4.4ms) TRUNCATE TABLE `api_tokens`;  (1.6ms) TRUNCATE TABLE `delayed_jobs`;  (118.3ms) TRUNCATE TABLE `social_accounts`;  (67.3ms) TRUNCATE TABLE `user_invitations`;  (123.4ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:57:32', 'teste@teste.com', '$2a$04$szqJf5HM/gZuarfubK7y2en54dqlOVed0GQyfhzs6XIrWekYCAaGy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:32') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:32', NULL, NULL, NULL, '2012-11-28 22:57:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:32', `updated_at` = '2012-11-28 22:57:32', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:33', 'jabanilson', NULL, 1, '2012-11-28 22:57:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:33', `updated_at` = '2012-11-28 22:57:33', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:33', 'jabanilson', NULL, 1, '2012-11-28 22:57:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:33', `updated_at` = '2012-11-28 22:57:33', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.7ms) Completed 200 OK in 183ms (Views: 179.7ms | ActiveRecord: 0.4ms)  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:33', '2012-11-28 22:57:33', 'teste@teste.com', '$2a$04$0lQzVDAdFA.Z0Y7Gk8WQxOIoxURuj5Ijlx9RqpK6YBUzEXmDqaNy2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:33', NULL, NULL, NULL, '2012-11-28 22:57:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:33', `updated_at` = '2012-11-28 22:57:33', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:33', 'jabanilson', NULL, 1, '2012-11-28 22:57:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:33', `updated_at` = '2012-11-28 22:57:33', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:33', 'jabanilson', NULL, 1, '2012-11-28 22:57:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:33', `updated_at` = '2012-11-28 22:57:33', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 5 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (1.0ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND `accounts`.`id` = 4 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 4 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 37ms (Views: 10.5ms | ActiveRecord: 14.6ms)  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:33', '2012-11-28 22:57:33', 'teste@teste.com', '$2a$04$UTP9lEDv68OgnO/72whrfui39giKAeXyCs6crcKN0FkFmBt1n21Qu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:33') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:33', NULL, NULL, NULL, '2012-11-28 22:57:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:33', `updated_at` = '2012-11-28 22:57:33', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (1.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:33', 'jabanilson', NULL, 1, '2012-11-28 22:57:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:33', `updated_at` = '2012-11-28 22:57:33', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:33', 'jabanilson', NULL, 1, '2012-11-28 22:57:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:33', `updated_at` = '2012-11-28 22:57:33', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.7ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (1.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (1.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (1.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.9ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 8 WHERE `account_users`.`id` = 6  (0.5ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 AccountUser Load (0.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 3 AND `account_users`.`account_id` = 7 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (5) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (7) AccountDomain Load (1.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 7 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 550ms (Views: 2.7ms | ActiveRecord: 3.3ms)  (10.4ms) ROLLBACK  (1.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (2.0ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (1.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:34', '2012-11-28 22:57:34', 'teste@teste.com', '$2a$04$1ZE5W4fWyLuzPAzxAzmDWeyNNRZYNnYZ5RwAVMfNnrWeiKn.7ug1K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:34') SQL (1.8ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', NULL, NULL, NULL, '2012-11-28 22:57:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 4) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (1.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', 'jabanilson', NULL, 1, '2012-11-28 22:57:34')  (0.7ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account11' WHERE `accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', 'jabanilson', NULL, 1, '2012-11-28 22:57:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account12' WHERE `accounts`.`id` = 12  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 4) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 11 WHERE `account_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"10"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 10 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND `accounts`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 10\n created_at: 2012-11-28 22:57:34.000000000Z\n updated_at: 2012-11-28 22:57:34.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account10\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_10_destroy', '2012-11-28 22:57:34', '2012-11-28 22:57:34')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_10_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 141ms (ActiveRecord: 40.7ms)  (12.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.7ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:34', '2012-11-28 22:57:34', 'teste@teste.com', '$2a$04$BlSv6HKEpeaLh9hrdpDjHeeZq9CBfwSqhOwoN11nya8I.lQQzrh5O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:34') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', NULL, NULL, NULL, '2012-11-28 22:57:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 5) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', 'jabanilson', NULL, 1, '2012-11-28 22:57:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account14' WHERE `accounts`.`id` = 14  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', 'jabanilson', NULL, 1, '2012-11-28 22:57:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account15' WHERE `accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 5) AccountRole Exists (2.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 14 WHERE `account_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 13 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND `accounts`.`id` = 13 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 13\n created_at: 2012-11-28 22:57:34.000000000Z\n updated_at: 2012-11-28 22:57:34.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account13\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_13_destroy', '2012-11-28 22:57:34', '2012-11-28 22:57:34')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 18ms (ActiveRecord: 2.4ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1  (68.8ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:34', '2012-11-28 22:57:34', 'teste@teste.com', '$2a$04$7bFV5NAzqlQe9ANCIO2TU.7nZxr8M/PiZeeEXkY1w81h1gN5I3qD2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', NULL, NULL, NULL, '2012-11-28 22:57:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', 'jabanilson', NULL, 1, '2012-11-28 22:57:34')  (0.8ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account17' WHERE `accounts`.`id` = 17  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:34', 'jabanilson', NULL, 1, '2012-11-28 22:57:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:34', `updated_at` = '2012-11-28 22:57:34', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 6) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.8ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 17 WHERE `account_users`.`id` = 12  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"16"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 8ms  (178.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:35', '2012-11-28 22:57:35', 'teste@teste.com', '$2a$04$g98FjMzajXaOiJTNPbHy/uTIZtVffZHztQh09s3yLaSX2TvsdMWq6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account20' WHERE `accounts`.`id` = 20  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account21' WHERE `accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (21, 7) AccountRole Exists (1.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 20 WHERE `account_users`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 19\n created_at: 2012-11-28 22:57:35.000000000Z\n updated_at: 2012-11-28 22:57:35.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account19\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_19_destroy', '2012-11-28 22:57:35', '2012-11-28 22:57:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"19"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 7 AND `account_users`.`account_id` = 19 LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 13 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND `accounts`.`id` = 19 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 15ms (ActiveRecord: 2.5ms)  (75.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:35', '2012-11-28 22:57:35', 'teste@teste.com', '$2a$04$IpfARxowipTCUJtMnb1TpOLzBkHChkV0IQJ0EdhY1AxlQxgrfJQnu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account22' WHERE `accounts`.`id` = 22 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (22, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account23' WHERE `accounts`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account24' WHERE `accounts`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 23 LIMIT 1  (0.6ms) UPDATE `account_users` SET `account_id` = 23 WHERE `account_users`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 22\n created_at: 2012-11-28 22:57:35.000000000Z\n updated_at: 2012-11-28 22:57:35.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account22\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_22_destroy', '2012-11-28 22:57:35', '2012-11-28 22:57:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"22"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 22 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND `accounts`.`id` = 22 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 9ms (ActiveRecord: 2.1ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (13.8ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:35', '2012-11-28 22:57:35', 'teste@teste.com', '$2a$04$6tU3fqef9RJQK5OSJn5PJORHeKW8yQdJAk0tSrsy8DGJjRFKKFeY.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account25' WHERE `accounts`.`id` = 25 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (25, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account27' WHERE `accounts`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 9) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 26 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 26 WHERE `account_users`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"25"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '25') LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (146.9ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:35', '2012-11-28 22:57:35', 'teste@teste.com', '$2a$04$DKqZo9buemwfoEEQivtaKuIX/R4QVErM3jCDGRtSXB.RQ0Xhz4syC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account28' WHERE `accounts`.`id` = 28 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (28, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account29' WHERE `accounts`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account30' WHERE `accounts`.`id` = 30  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (30, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 29 WHERE `account_users`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"28"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 28 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account28' AND `accounts`.`id` != 28) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:57:35' WHERE `accounts`.`id` = 28  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/28 Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (48.8ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:35', '2012-11-28 22:57:35', 'teste@teste.com', '$2a$04$L6AGhRa4NWGrTcp10C5P9ONXL1kP3tO6/GWAF4CAuiR9OXivug2Ri', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account31' WHERE `accounts`.`id` = 31 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (31, 11) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account32' WHERE `accounts`.`id` = 32  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account33' WHERE `accounts`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (33, 11) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 32 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 32 WHERE `account_users`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"31"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 11 AND `account_users`.`account_id` = 31 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 21 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account31' AND `accounts`.`id` != 31) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:57:35' WHERE `accounts`.`id` = 31  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/31 Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:35', '2012-11-28 22:57:35', 'teste@teste.com', '$2a$04$HWfp/Gp/jM.0P3kcirPE7ufDIQAV0a0uBpa8OoOBoCxbO0otCqMeu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account34' WHERE `accounts`.`id` = 34 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (34, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account35' WHERE `accounts`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account36' WHERE `accounts`.`id` = 36  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (36, 12) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 35 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 35 WHERE `account_users`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"34"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 34 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 23 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account34' AND `accounts`.`id` != 34) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 22:57:35' WHERE `accounts`.`id` = 34  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/34 Completed 302 Found in 9ms (ActiveRecord: 2.0ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (29.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:35', '2012-11-28 22:57:35', 'teste@teste.com', '$2a$04$zYErvPQSsKCco3fztCmGOOKLTA856t4qg/1NUUcQS8bSLn5s1MnpO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account37' WHERE `accounts`.`id` = 37 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (37, 13) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account38' WHERE `accounts`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', 'jabanilson', NULL, 1, '2012-11-28 22:57:35')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account39' WHERE `accounts`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (39, 13) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 38 WHERE `account_users`.`id` = 26  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account40' WHERE `accounts`.`id` = 40  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (40, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 17ms (ActiveRecord: 3.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:35', '2012-11-28 22:57:35', 'teste@teste.com', '$2a$04$TSiAI8JpXc46RnuibyCRTuZOK5eDnnFGkp0N8fKsOQgKQqsUFlOgy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:35', NULL, NULL, NULL, '2012-11-28 22:57:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:35', `updated_at` = '2012-11-28 22:57:35', `subdomain` = 'account41' WHERE `accounts`.`id` = 41 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (41, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account42' WHERE `accounts`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account43' WHERE `accounts`.`id` = 43  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (43, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 42 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 42 WHERE `account_users`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', NULL, NULL, NULL, '2012-11-28 22:57:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account44' WHERE `accounts`.`id` = 44  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (44, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 88ms (ActiveRecord: 3.6ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 Processing by Iugu::AccountController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', NULL, NULL, NULL, '2012-11-28 22:57:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account45' WHERE `accounts`.`id` = 45  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (45, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 18ms (ActiveRecord: 3.8ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:36', '2012-11-28 22:57:36', 'teste@teste.com', '$2a$04$iozwD6m6KBZdB0lR31.Ce.0kthWiVZtIc6Ca7OiHA57.ZU8zPaUvu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:36') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', NULL, NULL, NULL, '2012-11-28 22:57:36')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account46' WHERE `accounts`.`id` = 46 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (46, 15) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'admin')  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account47' WHERE `accounts`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account48' WHERE `accounts`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (48, 15) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 47 WHERE `account_users`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 LIMIT 1 Account Load (19.8ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 15 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_47_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 15 AND `account_users`.`account_id` = 47 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 33 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND `accounts`.`id` = 47 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 47 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 SQL (0.5ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:36', 'token x', 'f9ea82c6784ae3137134b3c391206798', 47, 'Account', '2012-11-28 22:57:36')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/47 Completed 302 Found in 59ms (ActiveRecord: 6.1ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:36', '2012-11-28 22:57:36', 'teste@teste.com', '$2a$04$HTLhM09IEMGgLSdpFEA1WejlCEqK1ygw0jrN6WMA2U3maXypn3D8e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', NULL, NULL, NULL, '2012-11-28 22:57:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account49' WHERE `accounts`.`id` = 49 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (49, 16) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.7ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account50' WHERE `accounts`.`id` = 50  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account51' WHERE `accounts`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (51, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 50 WHERE `account_users`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND (accounts.id = NULL) LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"50"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 16 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_50_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 16 AND `account_users`.`account_id` = 50 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 35 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND `accounts`.`id` = 50 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 50 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:36', 'token x', 'c54963e8ea93f1c748c86998f0329889', 50, 'Account', '2012-11-28 22:57:36')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/50 Completed 302 Found in 31ms (ActiveRecord: 4.7ms)  (46.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:36', '2012-11-28 22:57:36', 'teste@teste.com', '$2a$04$cP34ct0F/qMaXSaGZ6eP1eQV2AZ7.Xp3ZCB45QL3ku0n4WwTS67jm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:36') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', NULL, NULL, NULL, '2012-11-28 22:57:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account52' WHERE `accounts`.`id` = 52 Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 52 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (52, 17) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'owner') AccountRole Exists (1.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account53' WHERE `accounts`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account54' WHERE `accounts`.`id` = 54  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (54, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 53 WHERE `account_users`.`id` = 37  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 17 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND `accounts`.`id` = 53 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 53 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:36', 'token x', '078e60bc5b75cddafcd6100fd0efd87f', 53, 'Account', '2012-11-28 22:57:36')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/53 Completed 302 Found in 23ms (ActiveRecord: 3.3ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 7ms  (1.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:36', '2012-11-28 22:57:36', 'teste@teste.com', '$2a$04$auqdaUMklr9TF9XK2OWbX.4eqHDBPRWkcR//m9y5gCqy.VvtBs3vW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', NULL, NULL, NULL, '2012-11-28 22:57:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account55' WHERE `accounts`.`id` = 55 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (55, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account56' WHERE `accounts`.`id` = 56  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:36', 'jabanilson', NULL, 1, '2012-11-28 22:57:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:36', `updated_at` = '2012-11-28 22:57:36', `subdomain` = 'account57' WHERE `accounts`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (57, 18) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 56 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 56 WHERE `account_users`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 55 AND `account_domains`.`url` = 'controller.test.test' SQL (122.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (55, NULL, 'controller.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"55"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 18 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_55_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 18 AND `account_users`.`account_id` = 55 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND `accounts`.`id` = 55 LIMIT 1 Completed 200 OK in 106ms (Views: 89.1ms | ActiveRecord: 2.4ms)  (6.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$/9vG8/XROBnVX2Hhj3ty1.76wbWGCVHg/D9s5fCiEoKScJ3w0xZcW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account58' WHERE `accounts`.`id` = 58 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (58, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account59' WHERE `accounts`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account60' WHERE `accounts`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (60, 19) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 59 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 59 WHERE `account_users`.`id` = 41  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"58"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 19 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_58_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 19 AND `account_users`.`account_id` = 58 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND `accounts`.`id` = 58 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 58 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (58, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/58/domain/2 Completed 302 Found in 87ms (ActiveRecord: 3.6ms) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (16.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$X7uShWFebmPuYEOE9kdh..z6wVL6tLJNC7VIV8nKyhjArWNqMop.O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account61' WHERE `accounts`.`id` = 61 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (61, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account62' WHERE `accounts`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account63' WHERE `accounts`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (63, 20) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 62 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 62 WHERE `account_users`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 20 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 61 AND `account_domains`.`url` = 'new.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (61, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/61/domain/3 Completed 302 Found in 13ms (ActiveRecord: 2.2ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.4ms)  (1.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$0mPy.Q4/jn70kPh0eJ1mR.Phyj3fB9qZZ7Lpkg5ISbiUr2GiH2b9W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account64' WHERE `accounts`.`id` = 64 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (64, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account65' WHERE `accounts`.`id` = 65  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account66' WHERE `accounts`.`id` = 66  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (66, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 65 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 65 WHERE `account_users`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (64, NULL, 'destroy.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"64", "domain_id"=>"4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 21 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_64_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 21 AND `account_users`.`account_id` = 64 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND `accounts`.`id` = 64 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 4  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/64/domains Completed 302 Found in 16ms (ActiveRecord: 3.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$lhFD76mQGQypL7QEDJgV8uOLJdOrDSpM.b0QqNoOkAPSlHCKUqitW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account67' WHERE `accounts`.`id` = 67 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (67, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account68' WHERE `accounts`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account69' WHERE `accounts`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (69, 22) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 68 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 68 WHERE `account_users`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (67, NULL, 'destroy.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"67", "domain_id"=>"5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 22 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_67_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 22 AND `account_users`.`account_id` = 67 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND `accounts`.`id` = 67 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/67/domains Completed 302 Found in 15ms (ActiveRecord: 3.5ms)  (13.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$R/dPNaINI8v1a1APOeZFnO7imAtB8HsWYDr2ee966mSZ/to2JJPqW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account70' WHERE `accounts`.`id` = 70 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (70, 23) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account71' WHERE `accounts`.`id` = 71  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account72' WHERE `accounts`.`id` = 72  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (72, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 71 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 71 WHERE `account_users`.`id` = 49  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (70, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"70", "domain_id"=>"1273816283761238716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 23 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_70_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 23 AND `account_users`.`account_id` = 70 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND `accounts`.`id` = 70 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/70/domains Completed 302 Found in 11ms (ActiveRecord: 2.9ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$LykgV8wul4BPQF1M9FBkf.y09vKgWpRBBUWYDqJCMh.UGXlLxmQ7G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account73' WHERE `accounts`.`id` = 73 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (73, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account74' WHERE `accounts`.`id` = 74  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account75' WHERE `accounts`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (75, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 74 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 74 WHERE `account_users`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (73, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"73", "domain_id"=>"1273816283761238716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 24 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_73_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 24 AND `account_users`.`account_id` = 73 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND `accounts`.`id` = 73 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/73/domains Completed 302 Found in 12ms (ActiveRecord: 2.6ms)  (32.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$amsIsUWb7rxrbLHSypb2DeILiO2zl1ThZi7CKtU3bNZhiO7.N0P6O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account76' WHERE `accounts`.`id` = 76 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (76, 25) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account77' WHERE `accounts`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account78' WHERE `accounts`.`id` = 78  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (78, 25) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 77 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 77 WHERE `account_users`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (76, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"76", "domain_id"=>"8"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 25 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_76_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND `accounts`.`id` = 76 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`id` = 8 LIMIT 1 Completed 200 OK in 10ms (Views: 3.4ms | ActiveRecord: 1.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$rTX7vCtKscvY9ls79lhJ1evyvT1ZA3CMo3R2Lkd9RssRFhbMI/tQK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account79' WHERE `accounts`.`id` = 79 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (79, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account80' WHERE `accounts`.`id` = 80  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account81' WHERE `accounts`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (81, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 80 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 80 WHERE `account_users`.`id` = 55  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (79, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"79", "domain_id"=>"1209371923812238"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 26 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_79_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND `accounts`.`id` = 79 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/79/domains Completed 302 Found in 7ms (ActiveRecord: 2.0ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$SrMU//fHfGvs.O.PhNAHn.ZM3zuERn9tgW2oMsVcPhzHzkKLM/4ZS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account82' WHERE `accounts`.`id` = 82 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (82, 27) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account83' WHERE `accounts`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account84' WHERE `accounts`.`id` = 84  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (84, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 83 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 83 WHERE `account_users`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (82, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"82", "domain_id"=>"1209371923812238"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_82_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND `accounts`.`id` = 82 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/82/domains Completed 302 Found in 11ms (ActiveRecord: 1.7ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:37', '2012-11-28 22:57:37', 'teste@teste.com', '$2a$04$NJ5letzCJLbeUe0hcuIrj.F4eQQQYw6D2JkeUfMReNMu0VTvMpwiG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:37') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', NULL, NULL, NULL, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account85' WHERE `accounts`.`id` = 85 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (85, 28) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'admin')  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account86' WHERE `accounts`.`id` = 86  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:37', 'jabanilson', NULL, 1, '2012-11-28 22:57:37')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:37', `updated_at` = '2012-11-28 22:57:37', `subdomain` = 'account87' WHERE `accounts`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (87, 28) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'admin')  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (1.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 86 LIMIT 1  (0.5ms) UPDATE `account_users` SET `account_id` = 86 WHERE `account_users`.`id` = 59  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1 Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`url` = 'verify.test.net' SQL (0.6ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (85, NULL, 'verify.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"85", "domain_id"=>"11"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 28 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_85_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 28 AND `account_users`.`account_id` = 85 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND `accounts`.`id` = 85 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`id` = 11 LIMIT 1 Redirected to http://test.host/settings/account/85/domains Completed 302 Found in 18ms (ActiveRecord: 2.8ms)  (27.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$xeuxkYkX2CRPV7StiPoD6OtOiqTgCHV.z.j1SFpprOPZwFYRMLbFG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account88' WHERE `accounts`.`id` = 88 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (88, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account89' WHERE `accounts`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account90' WHERE `accounts`.`id` = 90  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (90, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 89 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 89 WHERE `account_users`.`id` = 61  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (88, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"88", "domain_id"=>"12"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 29 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_88_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 29 AND `account_users`.`account_id` = 88 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND `accounts`.`id` = 88 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`id` = 12 LIMIT 1 Redirected to http://test.host/settings/account/88/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$kXjne9ACHn96UOQ.3PqDLuWdDvIAX6YCDk4wnRHeAgyoYXX/z1KBO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account91' WHERE `accounts`.`id` = 91 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (91, 30) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account92' WHERE `accounts`.`id` = 92  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account93' WHERE `accounts`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (93, 30) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 92 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 92 WHERE `account_users`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (91, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"91", "domain_id"=>"13"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 30 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_91_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 30 AND `account_users`.`account_id` = 91 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND `accounts`.`id` = 91 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`id` = 13 LIMIT 1 Redirected to http://test.host/settings/account/91/domain/13 Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (28.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$392RE4.7sCszw2pfyM68juIMNoeRlqugq17tJURJbwJSVEqHx60Ni', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account94' WHERE `accounts`.`id` = 94 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (94, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account95' WHERE `accounts`.`id` = 95  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account96' WHERE `accounts`.`id` = 96  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (96, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 95 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 95 WHERE `account_users`.`id` = 65  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (94, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"94", "domain_id"=>"14"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 31 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 31 AND `account_users`.`account_id` = 94 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND `accounts`.`id` = 94 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`id` = 14 LIMIT 1 Redirected to http://test.host/settings/account/94/domain/14 Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$tN45eF3ziHiaVqBFVwnCPuWM.Zvsfp79ZhIHyp3.gBh.dWKBcMkDq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account97' WHERE `accounts`.`id` = 97 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (97, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account98' WHERE `accounts`.`id` = 98  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account99' WHERE `accounts`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (99, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 98 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 98 WHERE `account_users`.`id` = 67  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (97, NULL, 'verify.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"97", "domain_id"=>"1231241241231241231234"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 32 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_97_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 32 AND `account_users`.`account_id` = 97 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND `accounts`.`id` = 97 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/97/domains Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$BmpqNdSuBFFFyGEV.zPrGu9BP9S0KC3.jpyF8BE7xj02d/4QGCiAm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account100' WHERE `accounts`.`id` = 100 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (100, 33) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account101' WHERE `accounts`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account102' WHERE `accounts`.`id` = 102  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (102, 33) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 101 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 101 WHERE `account_users`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (100, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"100", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 33 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_100_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 33 AND `account_users`.`account_id` = 100 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND `accounts`.`id` = 100 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/100/domains Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$UzHuPGuJStITAmzyNoTt/eQTmdIqzukHgwiRfsbPbzDdUk9.lA2PC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account103' WHERE `accounts`.`id` = 103 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (103, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account104' WHERE `accounts`.`id` = 104  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account105' WHERE `accounts`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (105, 34) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 104 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 104 WHERE `account_users`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (103, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"103", "domain_id"=>"17"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 34 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_103_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 34 AND `account_users`.`account_id` = 103 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND `accounts`.`id` = 103 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`id` = 17 LIMIT 1 Redirected to http://test.host/settings/account/103/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$w.mGB1/3/ke2Bna0YfD.i.ywHpR5qYuB2ucTaZrbtW.nU8x7xUE66', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account106' WHERE `accounts`.`id` = 106 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (106, 35) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account107' WHERE `accounts`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account108' WHERE `accounts`.`id` = 108  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (108, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 107 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 107 WHERE `account_users`.`id` = 73  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (106, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"106", "domain_id"=>"18"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 35 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_106_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 35 AND `account_users`.`account_id` = 106 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND `accounts`.`id` = 106 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`id` = 18 LIMIT 1 Redirected to http://test.host/settings/account/106/domains Completed 302 Found in 94ms (ActiveRecord: 2.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$S7fG0Lc2.oJVmNFVC2MYieciJEbXSwfm.9rgo2e9fiqtN94zDYvHm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account109' WHERE `accounts`.`id` = 109 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (109, 36) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account110' WHERE `accounts`.`id` = 110  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account111' WHERE `accounts`.`id` = 111  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (111, 36) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 110 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 110 WHERE `account_users`.`id` = 75  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (109, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"109", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 36 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_109_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 36 AND `account_users`.`account_id` = 109 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND `accounts`.`id` = 109 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/109/domains Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$RtZ/9HVQ5HhY8MJH/Z3W0.Hlro2OOe4zTSsEeJ3W4qpTUjplnXCuC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account112' WHERE `accounts`.`id` = 112 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (112, 37) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account113' WHERE `accounts`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account114' WHERE `accounts`.`id` = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (114, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 113 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 113 WHERE `account_users`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (112, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"112", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 37 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_112_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 37 AND `account_users`.`account_id` = 112 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND `accounts`.`id` = 112 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/112/domains Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$eC2oIK3/3MmXVQM98hNLmuDeJJzd4HY/ULSR.edF4xQZbiHtJ0sJW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account115' WHERE `accounts`.`id` = 115 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (115, 38) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account116' WHERE `accounts`.`id` = 116  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account117' WHERE `accounts`.`id` = 117  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (117, 38) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'owner') AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 116 LIMIT 1  (0.6ms) UPDATE `account_users` SET `account_id` = 116 WHERE `account_users`.`id` = 79  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (1.0ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"115"} User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 38 LIMIT 1 Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_115_destroy' LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 38 AND `account_users`.`account_id` = 115 LIMIT 1 AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND `accounts`.`id` = 115 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.6ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 115) LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:57:38' WHERE `accounts`.`id` = 115  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/115/domains Completed 302 Found in 24ms (ActiveRecord: 5.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:38', '2012-11-28 22:57:38', 'teste@teste.com', '$2a$04$g2WduxTTCBhRpetEiFv51epfjebR.RfiD9mASHy1T4XnoSoGjKCaq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:38') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', NULL, NULL, NULL, '2012-11-28 22:57:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account118' WHERE `accounts`.`id` = 118 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (118, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'admin')  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.6ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account119' WHERE `accounts`.`id` = 119  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:38', 'jabanilson', NULL, 1, '2012-11-28 22:57:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:38', `updated_at` = '2012-11-28 22:57:38', `subdomain` = 'account120' WHERE `accounts`.`id` = 120  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (120, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 119 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 119 WHERE `account_users`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"118"} User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 39 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_118_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 39 AND `account_users`.`account_id` = 118 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND `accounts`.`id` = 118 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 118) LIMIT 1  (0.6ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:57:39' WHERE `accounts`.`id` = 118  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/118/domains Completed 302 Found in 40ms (ActiveRecord: 3.8ms)  (17.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$oPGJpcjI6IOqNan/9TyeOORjIo//CXaTBzqGf/BkfR7jze5lxFaD.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account121' WHERE `accounts`.`id` = 121 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 SQL (0.8ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (121, 40) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'admin')  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account122' WHERE `accounts`.`id` = 122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account123' WHERE `accounts`.`id` = 123  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (123, 40) AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 122 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 122 WHERE `account_users`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 40 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.7ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 121) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 22:57:39' WHERE `accounts`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/121/domains Completed 302 Found in 21ms (ActiveRecord: 3.7ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1 Completed 200 OK in 14ms (Views: 1.9ms | ActiveRecord: 2.3ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$cGuNLmRHg7GxUH.jeiO8COTg8BCX2QyKr7bf3wQkJGHcksl.He.Ey', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account124' WHERE `accounts`.`id` = 124 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (124, 41) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account125' WHERE `accounts`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account126' WHERE `accounts`.`id` = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (126, 41) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 125 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 125 WHERE `account_users`.`id` = 85  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"124"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 41 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_124_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 41 AND `account_users`.`account_id` = 124 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$aTZMi9yC38xg4/OQTpd2g./G9DCYWTNamGQU3z0udpNydwuWnRaly', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account127' WHERE `accounts`.`id` = 127 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (127, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account128' WHERE `accounts`.`id` = 128  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account129' WHERE `accounts`.`id` = 129  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (129, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 128 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 128 WHERE `account_users`.`id` = 87  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 42 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_127_destroy' LIMIT 1 Completed 404 Not Found in 5ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$w64R55L7AjBs4YSNHTcw4Ow8RoYp.Ph.lPXIa/yWjGj9UnFLRT0lW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account130' WHERE `accounts`.`id` = 130 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (130, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account131' WHERE `accounts`.`id` = 131  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account132' WHERE `accounts`.`id` = 132  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (132, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 131 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 131 WHERE `account_users`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"130", "domain_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 43 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_130_destroy' LIMIT 1 Completed 404 Not Found in 6ms  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$ft11gXMezSyYGCKszJCOre930mU40JX64ZVJ6r3YgtCnN8FVxozvq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account133' WHERE `accounts`.`id` = 133 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (133, 44) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account134' WHERE `accounts`.`id` = 134  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account135' WHERE `accounts`.`id` = 135  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (135, 44) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 134 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 134 WHERE `account_users`.`id` = 91  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"133"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 44 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_133_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 44 AND `account_users`.`account_id` = 133 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$yp6TBrGzmEEvHIVKRteIUuYNUqmGtqWJ58eZI3xiFA2hkNd1lHVNG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account136' WHERE `accounts`.`id` = 136 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (136, 45) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account137' WHERE `accounts`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account138' WHERE `accounts`.`id` = 138  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (138, 45) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 137 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 137 WHERE `account_users`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 136 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"136", "user_id"=>"45"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 45 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 AND `account_users`.`account_id` = 136 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND `accounts`.`id` = 136 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 136 AND `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136) Completed 200 OK in 16ms (Views: 4.0ms | ActiveRecord: 2.7ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$L3R4hPbA7lJ645T4JH0QS.VBjfAGHoUvtnSv8xzPIVkWmDfKsU5IG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account139' WHERE `accounts`.`id` = 139 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (139, 46) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account140' WHERE `accounts`.`id` = 140  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account141' WHERE `accounts`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (141, 46) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 140 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 140 WHERE `account_users`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 139 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"139", "user_id"=>"46"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 46 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 AND `account_users`.`account_id` = 139 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND `accounts`.`id` = 139 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 139 AND `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139) Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$SMZxfjynyCWkSzagDWYLYuCRgkllTTRdKs/d2E9N8j2pmwCXPkk7e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account142' WHERE `accounts`.`id` = 142 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (142, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account143' WHERE `accounts`.`id` = 143  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account144' WHERE `accounts`.`id` = 144  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (144, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 143 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 143 WHERE `account_users`.`id` = 97  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142) Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"142", "user_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 47 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 AND `account_users`.`account_id` = 142 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND `accounts`.`id` = 142 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 142 AND `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 142 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/142/users Completed 302 Found in 16ms (ActiveRecord: 3.5ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account145' WHERE `accounts`.`id` = 145  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$Kbk6SueQMZnHeE/y/7zdpundHreiUkTRxp2/eJ1BgH47WTakyANE6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account146' WHERE `accounts`.`id` = 146 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (146, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account147' WHERE `accounts`.`id` = 147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account148' WHERE `accounts`.`id` = 148  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (148, 48) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 147 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 147 WHERE `account_users`.`id` = 99  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:39', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 145\n created_at: 2012-11-28 22:57:39.737779000Z\n updated_at: 2012-11-28 22:57:39.737779000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account145\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_145_destroy', '2012-11-28 22:57:39', '2012-11-28 22:57:39')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"145"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 48 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 145 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_145_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 29ms (Views: 24.5ms | ActiveRecord: 1.1ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account149' WHERE `accounts`.`id` = 149  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$JdAdBLbSXBbtHis7u0W3xuYNmpXKRNXobwkk8T7WBvDFEmZt6FxxO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account150' WHERE `accounts`.`id` = 150 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 150 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (150, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account151' WHERE `accounts`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account152' WHERE `accounts`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (152, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 151 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 151 WHERE `account_users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"149"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 49 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 149 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_149_destroy' LIMIT 1 Completed 200 OK in 32ms (Views: 25.5ms | ActiveRecord: 1.3ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$bd5UXSuBQI8oyFckGFOCfesC.U03rKW3ZLMvXLxI4VGfj6jhK44mq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account153' WHERE `accounts`.`id` = 153 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (153, 50) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account154' WHERE `accounts`.`id` = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', 'jabanilson', NULL, 1, '2012-11-28 22:57:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account155' WHERE `accounts`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (155, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 154 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 154 WHERE `account_users`.`id` = 103  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"153"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 50 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_153_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Completed 200 OK in 9ms (Views: 4.4ms | ActiveRecord: 1.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:39', '2012-11-28 22:57:39', 'teste@teste.com', '$2a$04$cfSZfK3U1/4AduDARvbfB.iSMoXuOyLLNZp1.cKDmUzcD/T.KuyN2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:39', NULL, NULL, NULL, '2012-11-28 22:57:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:39', `updated_at` = '2012-11-28 22:57:39', `subdomain` = 'account156' WHERE `accounts`.`id` = 156 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (156, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account157' WHERE `accounts`.`id` = 157  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account158' WHERE `accounts`.`id` = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (158, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 157 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 157 WHERE `account_users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 51 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Completed 200 OK in 7ms (Views: 1.8ms | ActiveRecord: 1.5ms) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Completed 404 Not Found in 2ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'teste@teste.com', '$2a$04$DyUh4Ie.F7.Dezg2FGN0AOF9VNEsAKIwHBrflQtlCHC5VPwyChCYC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account159' WHERE `accounts`.`id` = 159 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (159, 52) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account160' WHERE `accounts`.`id` = 160  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account161' WHERE `accounts`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (161, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 160 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 160 WHERE `account_users`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"159", "user_id"=>"52"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 52 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_159_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 159 AND `account_users`.`user_id` = 52 LIMIT 1 Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 1.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'teste@teste.com', '$2a$04$RaerQ4DUDN7PFWxX49XDxuiFT7/mh2OjAXftCCeHNWeRIhciE4U/.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account162' WHERE `accounts`.`id` = 162 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account163' WHERE `accounts`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account164' WHERE `accounts`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (164, 53) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 163 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 163 WHERE `account_users`.`id` = 109  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'targetdestroy@teste.teste', '$2a$04$1Q7Up/.QMAw9FmX23bHF4O6sF2sIhd3DLCUx5w8kSRZHwcpsWoaE.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account165' WHERE `accounts`.`id` = 165 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (165, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"54"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 53 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'teste@teste.com', '$2a$04$WA9BDRqhzdQXs3lUeiczNOkOuzlqvM21ZIrFWs6MclJUaCCsvXXse', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account166' WHERE `accounts`.`id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 55) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account167' WHERE `accounts`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account168' WHERE `accounts`.`id` = 168  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (168, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 167 WHERE `account_users`.`id` = 113  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'targetdestroy@teste.teste', '$2a$04$8lG0Ebw53/Q5hydeWmB97efOyXG2C6lmrvT.emLNfphD9GtpqJx9K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account169' WHERE `accounts`.`id` = 169 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (169, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"166", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 55 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_166_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 55 AND `account_users`.`account_id` = 166 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 166 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (1.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'teste@teste.com', '$2a$04$4GBTw1MiPmotqNEn5qq/huyWhPrf89.xAE8iq14z8qyMBZSD7HiQC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account170' WHERE `accounts`.`id` = 170 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account171' WHERE `accounts`.`id` = 171  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account172' WHERE `accounts`.`id` = 172  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (172, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 171 WHERE `account_users`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'targetdestroy@teste.teste', '$2a$04$ZGO5KmCWg0mIqh0cJB3AeOb9M7Nk6.joR4oI7gTQSKlNoXz8EU.fi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account173' WHERE `accounts`.`id` = 173 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (173, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 170 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 237 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"170", "user_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 57 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_170_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 57 AND `account_users`.`account_id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 170 AND `account_users`.`user_id` = 58 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:40', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 119\n account_id: 170\n user_id: 58\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_119_destroy', '2012-11-28 22:57:40', '2012-11-28 22:57:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_119_destroy' LIMIT 1 Redirected to http://test.host/settings/account/170/users Completed 302 Found in 16ms (ActiveRecord: 3.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'teste@teste.com', '$2a$04$rG39C5OO93zI6a2HqWx9HO2xsZWgdIxJxZn2YqBMXJhKNDzFwfYPy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account174' WHERE `accounts`.`id` = 174 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account175' WHERE `accounts`.`id` = 175  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account176' WHERE `accounts`.`id` = 176  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (176, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 175 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 175 WHERE `account_users`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'targetdestroy@teste.teste', '$2a$04$3QIinAnppIQy7mRBlKMbEOkvluUuoEuAlkhZyRddNLKWCX0A1WVUO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account177' WHERE `accounts`.`id` = 177 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 177 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (177, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 174 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 246 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"174", "user_id"=>"60"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 59 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_174_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 59 AND `account_users`.`account_id` = 174 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 174 AND `account_users`.`user_id` = 60 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 14ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'teste@teste.com', '$2a$04$FfwCLWGNHBV13QYfj7/EgejsWNMTlYOThFQw1rDfPmGapwJfuFARe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account178' WHERE `accounts`.`id` = 178 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account179' WHERE `accounts`.`id` = 179  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account180' WHERE `accounts`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (180, 61) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 179 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 179 WHERE `account_users`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'targetdestroy@teste.teste', '$2a$04$iT56S2BFpnUzQsMFxTfIYuAKO9saHyj64wsxnjmTJnrKYJXzJXR1u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account181' WHERE `accounts`.`id` = 181 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 181 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (181, 62) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 62) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (124) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (178)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 178 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 249 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 250  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"178", "user_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_178_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 61 AND `account_users`.`account_id` = 178 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Completed 404 Not Found in 10ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'teste@teste.com', '$2a$04$xlmUMERCWjFWCmd9MZSMHOfVXz3cwVwDGnXWAW5tlQ4SnIrpOavUG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account182' WHERE `accounts`.`id` = 182 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.6ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account183' WHERE `accounts`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account184' WHERE `accounts`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (184, 63) AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 183 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 183 WHERE `account_users`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'target@test.test', '$2a$04$uyUMhhKUcFkAJMewSuARY.rExTH/EYYkuZfqXXGqAr7T.qFXrQ0MC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account185' WHERE `accounts`.`id` = 185 Account Load (1.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 185 LIMIT 1 SQL (0.6ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (185, 64) AccountRole Exists (1.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 64) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 131  (0.1ms) SAVEPOINT active_record_1  (1.0ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 182 AND name = 'owner') SQL (0.5ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 264 SQL (0.5ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 265  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:40', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 131\n account_id: 182\n user_id: 64\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_131_destroy', '2012-11-28 22:57:40', '2012-11-28 22:57:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"64"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 63 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 5ms  (13.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:40', '2012-11-28 22:57:40', 'teste@teste.com', '$2a$04$m3.Qsb0tgd53KZOh9GODQ.LX16oiQDjKKIetIsq8fY.KBcYiazr1S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', NULL, NULL, NULL, '2012-11-28 22:57:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account186' WHERE `accounts`.`id` = 186 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account187' WHERE `accounts`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:40', 'jabanilson', NULL, 1, '2012-11-28 22:57:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:40', `updated_at` = '2012-11-28 22:57:40', `subdomain` = 'account188' WHERE `accounts`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (188, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 187 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 187 WHERE `account_users`.`id` = 133  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'target@test.test', '$2a$04$cshpxoji8fmL7ZyWhILrYOKBum5xHcBNxywaienJXx61oo9FW6T7C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account189' WHERE `accounts`.`id` = 189 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 189 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (189, 66) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 66) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 135  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 186 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 273 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 135\n account_id: 186\n user_id: 66\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_135_destroy', '2012-11-28 22:57:41', '2012-11-28 22:57:41')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"186", "user_id"=>"18237198237192837"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 65 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_186_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 65 AND `account_users`.`account_id` = 186 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 186 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (2.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'teste@teste.com', '$2a$04$TwO8Z4qXswXzXvIqnGgDoOYqUDNtuvJ2O2hho3cBElZtHUuG93oVi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account190' WHERE `accounts`.`id` = 190 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account191' WHERE `accounts`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account192' WHERE `accounts`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (192, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 191 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 191 WHERE `account_users`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'target@test.test', '$2a$04$bb7izEsaA1W55gAjwBCFMOJZS1wB6KG8e2ACqMe0q.GE6h7rMFHde', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account193' WHERE `accounts`.`id` = 193 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (193, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 139  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 282 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 139\n account_id: 190\n user_id: 68\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_139_destroy', '2012-11-28 22:57:41', '2012-11-28 22:57:41')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"190", "user_id"=>"68"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 67 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_190_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 190 AND `account_users`.`user_id` = 68 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/190/users Completed 302 Found in 12ms (ActiveRecord: 3.4ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'teste@teste.com', '$2a$04$tUaZE.nfQ/MpeRD6Pd9eueORdzJiCA3vPxPnazjtE2ZTure2oNu5S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account194' WHERE `accounts`.`id` = 194 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account195' WHERE `accounts`.`id` = 195  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account196' WHERE `accounts`.`id` = 196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (196, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 195 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 195 WHERE `account_users`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'target@test.test', '$2a$04$X8BVuO73P0FyFhYxACmsz.dqoEVordewUDVe/DmGRzFC8.Xndp9LK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account197' WHERE `accounts`.`id` = 197 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (197, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 143  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 291 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 143\n account_id: 194\n user_id: 70\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_143_destroy', '2012-11-28 22:57:41', '2012-11-28 22:57:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 286  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"194", "user_id"=>"70"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 69 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_194_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 194 AND `account_users`.`user_id` = 70 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/194/users Completed 302 Found in 12ms (ActiveRecord: 3.1ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'teste@teste.com', '$2a$04$z7fZ7tAGMw1IeVsSmMD/A.YPAI1QTsbcmWM5f7mGUfWOWXEU4tqtS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account198' WHERE `accounts`.`id` = 198 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account199' WHERE `accounts`.`id` = 199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account200' WHERE `accounts`.`id` = 200  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (200, 71) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 199 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 199 WHERE `account_users`.`id` = 145  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'target@test.test', '$2a$04$o/3ACJEthJgStwbilHVykeKBacEw6EcwRsq9ic.xD1lWf8ZAJEWyi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account201' WHERE `accounts`.`id` = 201 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 201 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (201, 72) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 147  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 300 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 147\n account_id: 198\n user_id: 72\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_147_destroy', '2012-11-28 22:57:41', '2012-11-28 22:57:41')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'notowner@account.test', '$2a$04$pi8GYWp6OLC/mrafFUHjU.onn9CCjRrHJlSmyyIZHMUh0YHnTIlJ6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account202' WHERE `accounts`.`id` = 202 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (202, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account203' WHERE `accounts`.`id` = 203  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (203, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 198 WHERE `account_users`.`id` = 149  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 294 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"198", "user_id"=>"72"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 71 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_198_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.5ms) ROLLBACK  (0.1ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 61ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'teste@teste.com', '$2a$04$pXa30k8tU2Wg8u/tG9SHAOCF7r6isjuYyYvq/GSnqMqzYaEc5w2We', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account204' WHERE `accounts`.`id` = 204 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (204, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account205' WHERE `accounts`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account206' WHERE `accounts`.`id` = 206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (206, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 205 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 205 WHERE `account_users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account207' WHERE `accounts`.`id` = 207  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"207"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 74 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 74 AND `account_users`.`account_id` = 207 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'teste@teste.com', '$2a$04$5wYQoX3UfpgW/FpRXTfjB.z1BgjrUgcLqVzncBgmqMqHBavUXVnAa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (39.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account208' WHERE `accounts`.`id` = 208 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (208, 75) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account209' WHERE `accounts`.`id` = 209  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account210' WHERE `accounts`.`id` = 210  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (210, 75) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 209 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 209 WHERE `account_users`.`id` = 153  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"208"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 75 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 75 AND `account_users`.`account_id` = 208 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 Completed 200 OK in 24ms (Views: 5.1ms | ActiveRecord: 4.5ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:41', '2012-11-28 22:57:41', 'teste@teste.com', '$2a$04$eY6NJi.F748sMG.c54cMuO6WafaqKccmcoKWnLEe8xEItDNAfq6C6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', NULL, NULL, NULL, '2012-11-28 22:57:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account211' WHERE `accounts`.`id` = 211 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 211 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (211, 76) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account212' WHERE `accounts`.`id` = 212  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:41', 'jabanilson', NULL, 1, '2012-11-28 22:57:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:41', `updated_at` = '2012-11-28 22:57:41', `subdomain` = 'account213' WHERE `accounts`.`id` = 213  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (213, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 212 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 212 WHERE `account_users`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"211"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 76 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 76 AND `account_users`.`account_id` = 211 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 211 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (211, 'create@controller.teste', 76, NULL, '2012-11-28 22:57:41', 'NpSOQcsodvFLloPpDjkE5N2Kcw8') Sent mail to create@controller.teste (186ms) Date: Wed, 28 Nov 2012 20:57:43 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b696e743a08_1ced80435d4841021@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1NpSOQcsodvFLloPpDjkE5N2Kcw8  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/211/users Completed 302 Found in 1579ms (ActiveRecord: 2.4ms)  (1.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:43', '2012-11-28 22:57:43', 'teste@teste.com', '$2a$04$oipBmbztnA52kFW.9Wfy/.IKf06rXn9fnatorMsbVwEceErHU6vwy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', NULL, NULL, NULL, '2012-11-28 22:57:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account214' WHERE `accounts`.`id` = 214 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 214 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (214, 77) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account215' WHERE `accounts`.`id` = 215  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account216' WHERE `accounts`.`id` = 216  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (216, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 215 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 215 WHERE `account_users`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"214"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 77 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 77 AND `account_users`.`account_id` = 214 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 214 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (214, 'create@controller.teste', 77, NULL, '2012-11-28 22:57:43', 'DbDb64rwMJEhehG6ranFQ87_mKQ') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 20:57:43 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b696e7701d5_1ced80435d48411d8@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2DbDb64rwMJEhehG6ranFQ87_mKQ  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/214/users Completed 302 Found in 30ms (ActiveRecord: 2.4ms) UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:43', '2012-11-28 22:57:43', 'teste@teste.com', '$2a$04$U3KKS2mgbCQs/UND6G/VQ.PPRTLuKE07XuQFfNraUxKGZRtewTiQq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', NULL, NULL, NULL, '2012-11-28 22:57:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account217' WHERE `accounts`.`id` = 217 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (217, 78) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account218' WHERE `accounts`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account219' WHERE `accounts`.`id` = 219  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (219, 78) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 218 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 218 WHERE `account_users`.`id` = 159  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 78 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 217 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (217, 'create@controller.teste', 78, NULL, '2012-11-28 22:57:43', 'KqGwIqiF1ebqq59pV6ouGBKnRfM') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 20:57:43 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b696e7830ac_1ced80435d48412a2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3KqGwIqiF1ebqq59pV6ouGBKnRfM  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/217/users Completed 302 Found in 31ms (ActiveRecord: 2.5ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 1.2ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:43', '2012-11-28 22:57:43', 'teste@teste.com', '$2a$04$PHLuuuTjvz.vphmLwxhWoOwvVZ390VpPX9Xcyt2t/CoLTQ./aP0cq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', NULL, NULL, NULL, '2012-11-28 22:57:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account220' WHERE `accounts`.`id` = 220 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 220 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (220, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account221' WHERE `accounts`.`id` = 221  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account222' WHERE `accounts`.`id` = 222  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (222, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 221 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 221 WHERE `account_users`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account223' WHERE `accounts`.`id` = 223  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 223 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (223, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:43', 'g_mZCVojlpxcy9vCdWywGXnEgfc') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:57:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696e796e4b_1ced80435d484138d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4g_mZCVojlpxcy9vCdWywGXnEgfc  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 79 WHERE `user_invitations`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 79 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:43', '2012-11-28 22:57:43', 'teste@teste.com', '$2a$04$lS8J8iH4iy7BJzAm18EKbOcv4H2nKsNUJkBzy6VVMyD4ka0J.k.7G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', NULL, NULL, NULL, '2012-11-28 22:57:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account224' WHERE `accounts`.`id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (224, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account225' WHERE `accounts`.`id` = 225  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account226' WHERE `accounts`.`id` = 226  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (226, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 225 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 225 WHERE `account_users`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account227' WHERE `accounts`.`id` = 227  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 227 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (227, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:43', 'FdnTVYlNAB0nlLbHl_DIOM1jwqw') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:57:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696e7a99a5_1ced80435d484148f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5FdnTVYlNAB0nlLbHl_DIOM1jwqw  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 80 WHERE `user_invitations`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"5FdnTVYlNAB0nlLbHl_DIOM1jwqw"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 5 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 Completed 200 OK in 8ms (Views: 3.7ms | ActiveRecord: 1.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:43', '2012-11-28 22:57:43', 'teste@teste.com', '$2a$04$6XnvsLivCsF.Lu56PJ1ebOpKsuwApsu3WqFZO3nPcckg00k65HY9i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:43') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', NULL, NULL, NULL, '2012-11-28 22:57:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account228' WHERE `accounts`.`id` = 228 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (228, 81) AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'owner') AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'admin')  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account229' WHERE `accounts`.`id` = 229  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account230' WHERE `accounts`.`id` = 230  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (230, 81) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (1.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 229 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 229 WHERE `account_users`.`id` = 165  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 AND (accounts.id = NULL) LIMIT 1 Account Load (1.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account231' WHERE `accounts`.`id` = 231  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:43', 'jabanilson', NULL, 1, '2012-11-28 22:57:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:43', `updated_at` = '2012-11-28 22:57:43', `subdomain` = 'account232' WHERE `accounts`.`id` = 232  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.8ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 232 AND `users`.`email` = 'teste@teste.teste' SQL (0.5ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (232, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:43', '8wUoya7s229wc3M3ZV1y-hxUIf4') Sent mail to teste@teste.teste (11ms) Date: Wed, 28 Nov 2012 20:57:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696e7ec6e3_1ced80435d4841554@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/68wUoya7s229wc3M3ZV1y-hxUIf4  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 231 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 231 WHERE `user_invitations`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 81 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 5ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$utdLfrCjiXeUFBMQDX0XfOCetLi5A9NPrjDYzBD977Zf5I4rR8u1u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account233' WHERE `accounts`.`id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (233, 82) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account234' WHERE `accounts`.`id` = 234  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account235' WHERE `accounts`.`id` = 235  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (235, 82) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 234 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 234 WHERE `account_users`.`id` = 167  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account236' WHERE `accounts`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account237' WHERE `accounts`.`id` = 237  (1.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 237 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (237, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:44', 'srH4pyp4otEiHyljZgZcAy45HWA') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:57:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696e8178fd_1ced80435d484161b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/7srH4pyp4otEiHyljZgZcAy45HWA  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 236 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 236 WHERE `user_invitations`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"7srH4pyp4otEiHyljZgZcAy45HWA"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 82 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 7 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 236 AND `account_users`.`user_id` = 82  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (236, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 4.2ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$tfcJjDTb6Vqg6d6Ram/.SuG30tTeE/1su76T9BeuQxtTNvcVlRmqG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account238' WHERE `accounts`.`id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (238, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account239' WHERE `accounts`.`id` = 239  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account240' WHERE `accounts`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (240, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 239 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 239 WHERE `account_users`.`id` = 170  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account241' WHERE `accounts`.`id` = 241  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account242' WHERE `accounts`.`id` = 242  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 242 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (242, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:44', 'hXKH-T1EvSrqQxWUylmIde55jng') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:57:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696e82fbcf_1ced80435d48417d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/8hXKH-T1EvSrqQxWUylmIde55jng  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 241 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 241 WHERE `user_invitations`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (241, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"8hXKH-T1EvSrqQxWUylmIde55jng"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 83 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 241 AND `account_users`.`user_id` = 83 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$QQaD5vLPgUNVyzwTXyL0BubMCvyPQBsfwM/jF536gi98wtbWdsmDi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account243' WHERE `accounts`.`id` = 243 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (243, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account244' WHERE `accounts`.`id` = 244  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account245' WHERE `accounts`.`id` = 245  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (245, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 244 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 244 WHERE `account_users`.`id` = 173  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account246' WHERE `accounts`.`id` = 246  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account247' WHERE `accounts`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 247 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (247, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:44', 'zqv6WDX7OwvfLzOyVxWPXUrcT94') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:57:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696e8471ed_1ced80435d484181f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9zqv6WDX7OwvfLzOyVxWPXUrcT94  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 246 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 246 WHERE `user_invitations`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (246, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9zqv6WDX7OwvfLzOyVxWPXUrcT94"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 84 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 246 AND `account_users`.`user_id` = 84 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$NROPNE2L5n/Sm9Wb4VId/OGDcMs/fY/0yrPwlqMrLbQcLobMRziGO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account248' WHERE `accounts`.`id` = 248 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (248, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account249' WHERE `accounts`.`id` = 249  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account250' WHERE `accounts`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (250, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 249 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 249 WHERE `account_users`.`id` = 176  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 85 LIMIT 1 Completed 404 Not Found in 2ms  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$g0DmJulXdy12QuWOfnmFw.ucvU4mdcnuqiIx7r4S4wSDCKJJRZ43C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account251' WHERE `accounts`.`id` = 251 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 251 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (251, 86) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account252' WHERE `accounts`.`id` = 252  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account253' WHERE `accounts`.`id` = 253  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (253, 86) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 252 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 252 WHERE `account_users`.`id` = 178  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 86 LIMIT 1 Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$OxnncyAmOzfNKqvAud9n0eoEz5mIRnpMnRF8E2wKU9SP27dOcvfeS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account254' WHERE `accounts`.`id` = 254 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (254, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account255' WHERE `accounts`.`id` = 255  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account256' WHERE `accounts`.`id` = 256  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (256, 87) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 255 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 255 WHERE `account_users`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 87 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 87  (0.5ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 22:57:44' WHERE `users`.`id` = 87  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 108ms (Views: 2.0ms | ActiveRecord: 4.8ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$.gUjyAbZMj2WYwLoukPP0OIe9nSRYmfcVRTMO5xSeZK0wGomyjJP.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account257' WHERE `accounts`.`id` = 257 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 257 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (257, 88) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account258' WHERE `accounts`.`id` = 258  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account259' WHERE `accounts`.`id` = 259  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (259, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 258 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 258 WHERE `account_users`.`id` = 182  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 88 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 88  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 22:57:44' WHERE `users`.`id` = 88  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 2.7ms | ActiveRecord: 1.4ms)  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account260' WHERE `accounts`.`id` = 260  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account261' WHERE `accounts`.`id` = 261  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (261, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 260 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 260 WHERE `account_users`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = 257) LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 12ms (Views: 1.9ms | ActiveRecord: 0.3ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$5YRRWZPiI2R4ewuAY985NO4cUTtxzxSuSollreu85Eq6V1Uex56TW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account262' WHERE `accounts`.`id` = 262 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (262, 89) AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (1.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'admin')  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.8ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account263' WHERE `accounts`.`id` = 263  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account264' WHERE `accounts`.`id` = 264  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (264, 89) AccountRole Exists (3.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (1.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'owner') AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'admin')  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 263 LIMIT 1  (0.5ms) UPDATE `account_users` SET `account_id` = 263 WHERE `account_users`.`id` = 185  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 AND (accounts.id = NULL) LIMIT 1 Account Load (1.0ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 89 LIMIT 1  (1.4ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 89\n email: teste@teste.com\n encrypted_password: $2a$04$5YRRWZPiI2R4ewuAY985NO4cUTtxzxSuSollreu85Eq6V1Uex56TW\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:57:44.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:57:44.000000000Z\n updated_at: 2012-11-28 22:57:44.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_89_destroy', '2012-11-28 22:57:44', '2012-11-28 22:57:44')  (0.5ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (2.7ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 19ms (ActiveRecord: 6.6ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (1.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$N2mvAPlanwsnBx1tZ6TrU.Vx2FaMyZ2siIZr35xA/OW12DZZQSwVm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account265' WHERE `accounts`.`id` = 265 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 265 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (265, 90) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (1.7ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account266' WHERE `accounts`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account267' WHERE `accounts`.`id` = 267  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (267, 90) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 266 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 266 WHERE `account_users`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 90 LIMIT 1 Completed 404 Not Found in 3ms  (26.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:44', '2012-11-28 22:57:44', 'teste@teste.com', '$2a$04$HaX.ZdDLabxPIGH7CTNX1.fJ0WO2wcUSS47S0JVNvYBDvlSX3wjY6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:44') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', NULL, NULL, NULL, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account268' WHERE `accounts`.`id` = 268 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 268 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (268, 91) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account269' WHERE `accounts`.`id` = 269  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:44', 'jabanilson', NULL, 1, '2012-11-28 22:57:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:44', `updated_at` = '2012-11-28 22:57:44', `subdomain` = 'account270' WHERE `accounts`.`id` = 270  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (270, 91) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 269 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 269 WHERE `account_users`.`id` = 189  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 91\n email: teste@teste.com\n encrypted_password: $2a$04$HaX.ZdDLabxPIGH7CTNX1.fJ0WO2wcUSS47S0JVNvYBDvlSX3wjY6\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:57:44.944139000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:57:44.944838000Z\n updated_at: 2012-11-28 22:57:44.944838000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_91_destroy', '2012-11-28 22:57:44', '2012-11-28 22:57:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (27.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$I6rFGW0gs0D3l7EZh/h2NuNTvFcTzYAfdvZF8vP0cnV.wiADFOEUG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account271' WHERE `accounts`.`id` = 271 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 271 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (271, 92) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account272' WHERE `accounts`.`id` = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account273' WHERE `accounts`.`id` = 273  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (273, 92) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 272 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 272 WHERE `account_users`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `social_accounts` SET `user_id` = 92 WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 AND `social_accounts`.`id` = 1 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 13ms (ActiveRecord: 2.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$I/yZL2nXuTNA6JhMBwByX.dfvFgRGsU9liTZkgxyfZIf.Bx6rCAhO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account274' WHERE `accounts`.`id` = 274 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (274, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account275' WHERE `accounts`.`id` = 275  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account276' WHERE `accounts`.`id` = 276  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (276, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 275 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 275 WHERE `account_users`.`id` = 193  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 93 WHERE `social_accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"2"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 AND `social_accounts`.`id` = 2 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 9ms (ActiveRecord: 1.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$z2NA0xZ9CGHVNJNvoetnSuHoK.sooQo1RGAi2Vt5DBjpDoF.JNMdi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account277' WHERE `accounts`.`id` = 277 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 277 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (277, 94) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account278' WHERE `accounts`.`id` = 278  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account279' WHERE `accounts`.`id` = 279  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (279, 94) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 278 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 278 WHERE `account_users`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 94 WHERE `social_accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', '', '$2a$04$FhgHCLGIk1rdyFSMvXu/T.qQUVnvWbj5iRuv8fdOH6uF38GPsN5kO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.2ms) UPDATE `social_accounts` SET `user_id` = 95 WHERE `social_accounts`.`id` = 4 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account280' WHERE `accounts`.`id` = 280 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 280 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (280, 95) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 AND `social_accounts`.`id` = 4 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$4GTCzoGjVgboofwXPOxdG.e65mWz51uhqx9QY.kOyKUHhRDypXznm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account281' WHERE `accounts`.`id` = 281 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (281, 96) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account282' WHERE `accounts`.`id` = 282  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account283' WHERE `accounts`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (283, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 282 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 282 WHERE `account_users`.`id` = 198  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 96 WHERE `social_accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', '', '$2a$04$e7aAMGG7lMsl0tFw/cTxz.2Yys9eAURUpwPHf/WV0iR983qAkAW1C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `social_accounts` SET `user_id` = 97 WHERE `social_accounts`.`id` = 6 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account284' WHERE `accounts`.`id` = 284 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 284 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (284, 97) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"6"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 AND `social_accounts`.`id` = 6 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$16XCQ.0798eS4fa.kqSUJumS3czfta6pSAzWXZWsICOGY9Cfawnru', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account285' WHERE `accounts`.`id` = 285 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 285 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (285, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account286' WHERE `accounts`.`id` = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account287' WHERE `accounts`.`id` = 287  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (287, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 286 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 286 WHERE `account_users`.`id` = 201  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 98 WHERE `social_accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 98 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 98 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$OiX3QyTz5iYw1WymcUtDUO0anAdPI7H72toFUIv3zecukHhHmVrrm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account288' WHERE `accounts`.`id` = 288 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 288 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (288, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account289' WHERE `accounts`.`id` = 289  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account290' WHERE `accounts`.`id` = 290  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (290, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 289 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 289 WHERE `account_users`.`id` = 203  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 AND (accounts.id = NULL) LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 99 WHERE `social_accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 99 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 99 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$kwptdLYXuU7AtQO0q2Jk/.C7nN37cpIlgeCvNn5v0YjshnNva.Kv.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account291' WHERE `accounts`.`id` = 291 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 291 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (291, 100) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.7ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account292' WHERE `accounts`.`id` = 292  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account293' WHERE `accounts`.`id` = 293  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (293, 100) AccountRole Exists (1.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'owner') AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 292 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 292 WHERE `account_users`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) UPDATE `social_accounts` SET `user_id` = 100 WHERE `social_accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account294' WHERE `accounts`.`id` = 294 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (294, 101) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 101\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:57:45.668988000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:57:45.670150000Z\n updated_at: 2012-11-28 22:57:45.670150000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_101', '2012-12-05 22:57:45', '2012-11-28 22:57:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 101 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 101 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 101) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$NB8CruvYmr2sZ3eL/gnWreum26tzKHK08hEi59dyULHgXK9tmvXiq', `updated_at` = '2012-11-28 22:57:45' WHERE `users`.`id` = 101  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (1.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_101' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 AND (accounts.id = 291) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 27ms (ActiveRecord: 4.6ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$2SOCMoN24z4MG97GTgRjWuw1wW9MV6zyoPobIChG31H2OrSWblBeG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account295' WHERE `accounts`.`id` = 295 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 295 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (295, 102) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'admin')  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account296' WHERE `accounts`.`id` = 296  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account297' WHERE `accounts`.`id` = 297  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (297, 102) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'owner') AccountRole Exists (0.8ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 296 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 296 WHERE `account_users`.`id` = 208  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 102 WHERE `social_accounts`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account298' WHERE `accounts`.`id` = 298 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 298 LIMIT 1 SQL (1.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (298, 103) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 103\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:57:45.805361000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:57:45.806747000Z\n updated_at: 2012-11-28 22:57:45.806747000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_103', '2012-12-05 22:57:45', '2012-11-28 22:57:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 103 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 103 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 103) LIMIT 1  (0.5ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$qwGtRYf3Su3GE.dL8R1e.eToIYIw/I759z8jjrSyrnm/auaFLLqzy', `updated_at` = '2012-11-28 22:57:45' WHERE `users`.`id` = 103  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_103' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 AND (accounts.id = 295) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 25ms (ActiveRecord: 3.4ms)  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$hO4qhQ4PmVWmoVbPlVyUeOGK6eO77Ui4O2otnIv9IHYyuiOXuNKzy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account299' WHERE `accounts`.`id` = 299 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (299, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account300' WHERE `accounts`.`id` = 300  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account301' WHERE `accounts`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (301, 104) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 300 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 300 WHERE `account_users`.`id` = 211  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 104 WHERE `social_accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account302' WHERE `accounts`.`id` = 302 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (302, 105) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 105\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:57:45.918607000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:57:45.919571000Z\n updated_at: 2012-11-28 22:57:45.919571000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_105', '2012-12-05 22:57:45', '2012-11-28 22:57:45')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 105 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 105 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 105) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$TCV/v3jMYxDiQeIQ0ffxbu6TjrsopDH78SVa/VgZ333fqyYHJxJ1O', `updated_at` = '2012-11-28 22:57:45' WHERE `users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_105' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 AND (accounts.id = 299) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.0ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (1.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:45', '2012-11-28 22:57:45', 'teste@teste.com', '$2a$04$0fz/tR.ZYSj3ZmXHfzv43O.D4mFKRYYH/hxAhToC89F5IS9ZbgWMS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', NULL, NULL, NULL, '2012-11-28 22:57:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account303' WHERE `accounts`.`id` = 303 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 303 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (303, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account304' WHERE `accounts`.`id` = 304  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:45', 'jabanilson', NULL, 1, '2012-11-28 22:57:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:45', `updated_at` = '2012-11-28 22:57:45', `subdomain` = 'account305' WHERE `accounts`.`id` = 305  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (305, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 304 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 304 WHERE `account_users`.`id` = 214  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 106 WHERE `social_accounts`.`id` = 12  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:46', '2012-11-28 22:57:46', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:57:46') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', NULL, NULL, NULL, '2012-11-28 22:57:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account306' WHERE `accounts`.`id` = 306 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (306, 107) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 107\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:57:46.007614000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:57:46.008366000Z\n updated_at: 2012-11-28 22:57:46.008366000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_107', '2012-12-05 22:57:46', '2012-11-28 22:57:46')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 107 LIMIT 1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (1.2ms) ROLLBACK  (0.3ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:46', '2012-11-28 22:57:46', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:57:46') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', NULL, NULL, NULL, '2012-11-28 22:57:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account307' WHERE `accounts`.`id` = 307 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 307 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (307, 108) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 108\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:57:46.042383000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:57:46.043483000Z\n updated_at: 2012-11-28 22:57:46.043483000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_108', '2012-12-05 22:57:46', '2012-11-28 22:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46' WHERE `users`.`id` = 108  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 148ms (ActiveRecord: 6.4ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 384ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:46', '2012-11-28 22:57:46', 'teste@teste.com', '$2a$04$ckqj8idTyF1cdmZ9Dvqr.O4Cx62Cu9GklggpdMOjEx.8dVe93gIrS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:46') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', NULL, NULL, NULL, '2012-11-28 22:57:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account308' WHERE `accounts`.`id` = 308 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (308, 109) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', 'jabanilson', NULL, 1, '2012-11-28 22:57:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account309' WHERE `accounts`.`id` = 309  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', 'jabanilson', NULL, 1, '2012-11-28 22:57:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account310' WHERE `accounts`.`id` = 310  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (310, 109) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'admin')  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 309 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 309 WHERE `account_users`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 109 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (1.0ms) ROLLBACK  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:46', '2012-11-28 22:57:46', 'teste@teste.com', '$2a$04$6CY7DbE/k08XayP3s8/Btu/fNz.5LSMTvCGwHQCvY/j.cu8TIrCHC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:46') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', NULL, NULL, NULL, '2012-11-28 22:57:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account311' WHERE `accounts`.`id` = 311 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 110) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', 'jabanilson', NULL, 1, '2012-11-28 22:57:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account312' WHERE `accounts`.`id` = 312  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', 'jabanilson', NULL, 1, '2012-11-28 22:57:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account313' WHERE `accounts`.`id` = 313  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (313, 110) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 312 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 312 WHERE `account_users`.`id` = 220  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:46', '2012-11-28 22:57:46', 'user2@email.email', '$2a$04$czOo1pBDeG0.lH/JcPOXHeVvOILLHtrTtw4.ass5hs1sYN/arhqPW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:46') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:46', NULL, NULL, NULL, '2012-11-28 22:57:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:46', `updated_at` = '2012-11-28 22:57:46', `subdomain` = 'account314' WHERE `accounts`.`id` = 314 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (314, 111) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 111) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (4.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (1.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (3.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 311 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 446 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 110 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 1.3ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 1.4ms)  (122.6ms) ROLLBACK  (2.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (1.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:46', '2012-11-28 22:57:46', 'teste@teste.com', '$2a$04$9GWHo1IjCO1xQy5ObphDT.JSGMky7Q43ZWV9GPpW9gaQRjgFxHjma', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:46') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account315' WHERE `accounts`.`id` = 315 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 112) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (2.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner') AccountRole Exists (3.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (2.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account316' WHERE `accounts`.`id` = 316  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account317' WHERE `accounts`.`id` = 317  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (317, 112) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 316 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 316 WHERE `account_users`.`id` = 224  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'user2@email.email', '$2a$04$36YcmbR4tEtEs.ZRwLvrP.NzugI8P120/aam8/lOAYT5mUIDcGFz.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account318' WHERE `accounts`.`id` = 318 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (318, 113) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 113) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 455 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 112 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.4ms)  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.8ms)  (30.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'teste@teste.com', '$2a$04$ahbFOhXMDdiL5fLuyGvDu.3sFcRU4BT.Dnh8PB3a9HQgg/I/jPwsK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account319' WHERE `accounts`.`id` = 319 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 114) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account320' WHERE `accounts`.`id` = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account321' WHERE `accounts`.`id` = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (321, 114) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 320 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 320 WHERE `account_users`.`id` = 228  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'user2@email.email', '$2a$04$vFVT1gfBLgtK/nVaI3C3qeGpasV4ei1CXY1oYdrqwKsZ5jsSRltZG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account322' WHERE `accounts`.`id` = 322 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 322 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (322, 115) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 115) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 319 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 465 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"319"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 114 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.1ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"319"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.7ms)  (1.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'teste@teste.com', '$2a$04$Ffn/qLT7cjBI4UbrfRxtDuWXjN/tQQBI.v9IHoOW2BxWS0vi2qXti', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account323' WHERE `accounts`.`id` = 323 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 116) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account324' WHERE `accounts`.`id` = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account325' WHERE `accounts`.`id` = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (325, 116) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 324 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 324 WHERE `account_users`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'user2@email.email', '$2a$04$01qsYejMNvzUlGVo4hPfoeoIasOT43I0eXpB/l.9l0qo8gbgCiswS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account326' WHERE `accounts`.`id` = 326 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (326, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 117) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 323 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 474 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"323"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 116 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 6ms  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'teste@teste.com', '$2a$04$yEE7/Is6qNflG6He3PGIL.pyecG467L4Rjs8bC.9z1fmFk.IPjcj6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account327' WHERE `accounts`.`id` = 327 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account328' WHERE `accounts`.`id` = 328  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account329' WHERE `accounts`.`id` = 329  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (329, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 328 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 328 WHERE `account_users`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'user2@email.email', '$2a$04$oJP3Z1qdbso152E6qtwfQuH7JkylHaDMTRpbmgq1VNtqLuRtzbtMG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account330' WHERE `accounts`.`id` = 330 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 330 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (330, 119) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 327 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 483 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 484  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 491  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"327"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 118 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'teste@teste.com', '$2a$04$CYPzNY7dQ14VrH5mWNsH5O4J9CMGMc0pBOMVB9QCX3YcfGRYJ4OI2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account331' WHERE `accounts`.`id` = 331 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account332' WHERE `accounts`.`id` = 332  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account333' WHERE `accounts`.`id` = 333  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (333, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 332 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 332 WHERE `account_users`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:47', '2012-11-28 22:57:47', 'user2@email.email', '$2a$04$f7UvNfCco2nGfawkVof3YOME1dxP9pp2G.2g91dxB3onAvbpidu0C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:47') SQL (0.7ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', NULL, NULL, NULL, '2012-11-28 22:57:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account334' WHERE `accounts`.`id` = 334 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 334 LIMIT 1 SQL (0.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (334, 121) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (2.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (3.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.7ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 Account Load (1.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'owner') AccountRole Exists (1.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (1.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 331 LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (5.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 120 LIMIT 1 AccountUser Load (1.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 231213231231312312341 LIMIT 1 Completed 404 Not Found in 11ms  (56.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account335' WHERE `accounts`.`id` = 335  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 335 AND `users`.`email` = 'teste@teste.teste' SQL (0.5ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (335, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:47', 'hBzA8Np-q43spVJvymv0fpj5Qoc') Sent mail to teste@teste.teste (11ms) Date: Wed, 28 Nov 2012 20:57:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696ebcc61c_1ced80435d484192e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/10hBzA8Np-q43spVJvymv0fpj5Qoc  (0.6ms) RELEASE SAVEPOINT active_record_1  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:47', 'jabanilson', NULL, 1, '2012-11-28 22:57:47')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:47', `updated_at` = '2012-11-28 22:57:47', `subdomain` = 'account336' WHERE `accounts`.`id` = 336  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 336 AND `users`.`email` = 'teste@teste.teste' SQL (3.9ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (336, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:47', '_IVL-yO2UKwlr3m_5eYyyj_qSaI') Sent mail to teste@teste.teste (10ms) Date: Wed, 28 Nov 2012 20:57:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696ebe1fed_1ced80435d48420ae@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/11_IVL-yO2UKwlr3m_5eYyyj_qSaI  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account337' WHERE `accounts`.`id` = 337  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 337 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (337, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (32.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account338' WHERE `accounts`.`id` = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 338 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (338, NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (41.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account339' WHERE `accounts`.`id` = 339  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 339 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (339, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account340' WHERE `accounts`.`id` = 340  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 340 AND `account_domains`.`url` = 'www.testing.net' SQL (4.4ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (340, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (5.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account341' WHERE `accounts`.`id` = 341  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (1.9ms) ROLLBACK TO SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 341 AND `account_domains`.`url` = 'valid.url.test' SQL (1.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (341, NULL, 'valid.url.test', NULL)  (0.4ms) RELEASE SAVEPOINT active_record_1  (18.4ms) ROLLBACK  (0.7ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (1.8ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account342' WHERE `accounts`.`id` = 342  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (7.7ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 342 AND `account_domains`.`url` = 'www.testing.net' SQL (0.4ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (342, NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (4.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account343' WHERE `accounts`.`id` = 343  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (18.5ms) ROLLBACK  (0.2ms) BEGIN  (2.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (3.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account344' WHERE `accounts`.`id` = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 344 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (344, NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:48', 'jabanilson', NULL, 1, '2012-11-28 22:57:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:48', `updated_at` = '2012-11-28 22:57:48', `subdomain` = 'account345' WHERE `accounts`.`id` = 345  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (345, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (400.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account346' WHERE `accounts`.`id` = 346  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 346 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (346, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (124.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account347' WHERE `accounts`.`id` = 347  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 347 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (347, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account348' WHERE `accounts`.`id` = 348  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url1.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url1.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url2.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 32  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 348  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 31  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 31  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 32 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 32 LIMIT 1  (85.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account349' WHERE `accounts`.`id` = 349  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 349 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (349, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account350' WHERE `accounts`.`id` = 350  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 350 AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (350, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account351' WHERE `accounts`.`id` = 351  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 351 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (351, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account352' WHERE `accounts`.`id` = 352  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 352 AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (352, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account353' WHERE `accounts`.`id` = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 353 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (353, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:49', 'jabanilson', NULL, 1, '2012-11-28 22:57:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:49', `updated_at` = '2012-11-28 22:57:49', `subdomain` = 'account354' WHERE `accounts`.`id` = 354  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (354, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (236.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:52', 'jabanilson', NULL, 1, '2012-11-28 22:57:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:52', `updated_at` = '2012-11-28 22:57:52', `subdomain` = 'account355' WHERE `accounts`.`id` = 355  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 355 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (355, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:52', 'jabanilson', NULL, 1, '2012-11-28 22:57:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:52', `updated_at` = '2012-11-28 22:57:52', `subdomain` = 'account356' WHERE `accounts`.`id` = 356  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (356, NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 40  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`primary` = 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`verified` = 1 LIMIT 1  (10.9ms) ROLLBACK  (0.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:52', 'jabanilson', NULL, 1, '2012-11-28 22:57:52')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:52', `updated_at` = '2012-11-28 22:57:52', `subdomain` = 'account357' WHERE `accounts`.`id` = 357  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 357 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (357, NULL, 'www.testing.net', NULL)  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:52', 'jabanilson', NULL, 1, '2012-11-28 22:57:52')  (0.9ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:52', `updated_at` = '2012-11-28 22:57:52', `subdomain` = 'account358' WHERE `accounts`.`id` = 358  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 358 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (358, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:52', 'jabanilson', NULL, 1, '2012-11-28 22:57:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:52', `updated_at` = '2012-11-28 22:57:52', `subdomain` = 'account359' WHERE `accounts`.`id` = 359  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (359, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 43  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 42 LIMIT 1  (30.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:53', 'jabanilson', NULL, 1, '2012-11-28 22:57:53')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:53', `updated_at` = '2012-11-28 22:57:53', `subdomain` = 'account360' WHERE `accounts`.`id` = 360  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 360 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (360, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:53', 'jabanilson', NULL, 1, '2012-11-28 22:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:53', `updated_at` = '2012-11-28 22:57:53', `subdomain` = 'account361' WHERE `accounts`.`id` = 361  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:53', 'jabanilson', NULL, 1, '2012-11-28 22:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:53', `updated_at` = '2012-11-28 22:57:53', `subdomain` = 'account362' WHERE `accounts`.`id` = 362  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (362, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 45  (0.3ms) RELEASE SAVEPOINT active_record_1  (10.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`primary` = 1 AccountDomain Load (6.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 45 LIMIT 1  (37.8ms) ROLLBACK  (1.8ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (3.8ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:54', 'jabanilson', NULL, 1, '2012-11-28 22:57:54')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:54', `updated_at` = '2012-11-28 22:57:54', `subdomain` = 'account363' WHERE `accounts`.`id` = 363  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 363 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (363, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:54', 'jabanilson', NULL, 1, '2012-11-28 22:57:54')  (1.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:54', `updated_at` = '2012-11-28 22:57:54', `subdomain` = 'account364' WHERE `accounts`.`id` = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:54', 'jabanilson', NULL, 1, '2012-11-28 22:57:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:54', `updated_at` = '2012-11-28 22:57:54', `subdomain` = 'account365' WHERE `accounts`.`id` = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.0ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 365 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (365, 1, 'www.url1.net', 1)  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:54', 'jabanilson', NULL, 1, '2012-11-28 22:57:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:54', `updated_at` = '2012-11-28 22:57:54', `subdomain` = 'account366' WHERE `accounts`.`id` = 366  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 366 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (366, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.9ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.9ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 364  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account367' WHERE `accounts`.`id` = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 367 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (367, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account368' WHERE `accounts`.`id` = 368  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account369' WHERE `accounts`.`id` = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 369 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (369, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account370' WHERE `accounts`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 370 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (370, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 368  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 50 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account371' WHERE `accounts`.`id` = 371  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 371 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (371, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account372' WHERE `accounts`.`id` = 372  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account373' WHERE `accounts`.`id` = 373  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 373 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (373, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account374' WHERE `accounts`.`id` = 374  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 374 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (374, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (41.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:55', '2012-11-28 22:57:55', 'teste@teste.com', '$2a$04$hPgQSBfOloTUNXThmmUrgeuA4AIZz5P9isg2T18Ygix1fvepbBZR2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', NULL, NULL, NULL, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account375' WHERE `accounts`.`id` = 375 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 375 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (375, 122) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 375 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 502  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 243) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1  (45.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:55', '2012-11-28 22:57:55', 'teste@teste.com', '$2a$04$Q.OIgeTpB1t3DGPr7snPhu7hjbDyaVIimQkx8eNuD1RrjxPQiYtYy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', NULL, NULL, NULL, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account376' WHERE `accounts`.`id` = 376 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 376 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (376, 123) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 376 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 505  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 244) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1  (19.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:55', '2012-11-28 22:57:55', 'teste@teste.com', '$2a$04$d6ZKLPjAaUbcX2aZEciF1ujrUUw/YgXGlZ8OolariY7JT6wy21GMW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', NULL, NULL, NULL, '2012-11-28 22:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account377' WHERE `accounts`.`id` = 377 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 377 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (377, 124) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 377 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 508  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 245) LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (1.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:55', '2012-11-28 22:57:55', 'teste@teste.com', '$2a$04$jYTk78s0Un.rSAJGaxUm3uUSAjAH0aCOPCHvvJUlHn82sm41RO8Oa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', NULL, NULL, NULL, '2012-11-28 22:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account378' WHERE `accounts`.`id` = 378 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 378 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (378, 125) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 378 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 511  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 246) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != 512 AND `account_roles`.`account_user_id` = 246) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.7ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` LIMIT 1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'me@me.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:55', '2012-11-28 22:57:55', 'me@me.com', '$2a$04$kacmpLnSmxUDBd3rdQoz0O8FVm0HxvO/a5dLBeA9hnyNq/zCr2j1y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', NULL, NULL, NULL, '2012-11-28 22:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account384' WHERE `accounts`.`id` = 384 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (384, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account385' WHERE `accounts`.`id` = 385  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account386' WHERE `accounts`.`id` = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (386, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 385 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 385 WHERE `account_users`.`id` = 248  (0.1ms) RELEASE SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` INNER JOIN `account_users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 385 AND `users`.`id` = 126 LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdominio' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account389' WHERE `accounts`.`id` = 389  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 389 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account391' WHERE `accounts`.`id` = 391  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 391 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account393' WHERE `accounts`.`id` = 393  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:55', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 393\n created_at: 2012-11-28 22:57:55.932297000Z\n updated_at: 2012-11-28 22:57:55.932297000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account393\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_393_destroy', '2012-11-28 22:57:55', '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_393_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account395' WHERE `accounts`.`id` = 395  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_395_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account397' WHERE `accounts`.`id` = 397  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:55', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 397\n created_at: 2012-11-28 22:57:55.951534000Z\n updated_at: 2012-11-28 22:57:55.951534000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account397\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_397_destroy', '2012-11-28 22:57:55', '2012-11-28 22:57:55')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_397_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account399' WHERE `accounts`.`id` = 399  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_399_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account401' WHERE `accounts`.`id` = 401  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:55', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 401\n created_at: 2012-11-28 22:57:55.971378000Z\n updated_at: 2012-11-28 22:57:55.971378000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account401\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_401_destroy', '2012-11-28 22:57:55', '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account403' WHERE `accounts`.`id` = 403  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:55', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 403\n created_at: 2012-11-28 22:57:55.987291000Z\n updated_at: 2012-11-28 22:57:55.987291000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account403\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_403_destroy', '2012-11-28 22:57:55', '2012-11-28 22:57:55')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 22  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', 'unico', 1, '2012-11-28 22:57:55')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:55', 'jabanilson', NULL, 1, '2012-11-28 22:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:55', `updated_at` = '2012-11-28 22:57:55', `subdomain` = 'account405' WHERE `accounts`.`id` = 405  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account407' WHERE `accounts`.`id` = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:56', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 407\n created_at: 2012-11-28 22:57:56.008170000Z\n updated_at: 2012-11-28 22:57:56.008170000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account407\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_407_destroy', '2012-11-28 22:57:56', '2012-11-28 22:57:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56' WHERE `delayed_jobs`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$HnYguUL2S/GBvpuNgNTO0.alwo3DJrWRAaaTAAAcHnSeQi5qWeaOq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account409' WHERE `accounts`.`id` = 409 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 409 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (409, 127) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 127 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409)  (0.1ms)[0m SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 409 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 518  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 249 AND `account_roles`.`name` = 'user' LIMIT 1  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$nwbABSFeO6LZzu4PiQQ65eRell3yGgvovH8PLc1GY1l16N1.vEKNe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account411' WHERE `accounts`.`id` = 411 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (411, 128) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 128 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 411 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 521  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 250 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account413' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account413' AND `accounts`.`id` != 413) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'Named', `updated_at` = '2012-11-28 22:57:56' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account415' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account415' AND `accounts`.`id` != 415) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = NULL, `updated_at` = '2012-11-28 22:57:56' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account417' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account417' AND `accounts`.`id` != 417) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-11-28 22:57:56' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 419 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (419, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 55  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'getfromdomain.account.test' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 419 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 421 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (421, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 56  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'subdomainfind.iugusdk.dev' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'subdomainfind' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'unico', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.1ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', 'subdomainfind', 1, '2012-11-28 22:57:56')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 423 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (423, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'notused.domain.test' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'notused.domain.test' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account424' WHERE `accounts`.`id` = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$pOyLRJM1kjmfLPddGSC1.OGa68v4uz1k77w3TOnnXMHh9TG0oJhqi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account425' WHERE `accounts`.`id` = 425 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 425 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (425, 129) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (424, 129) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account426' WHERE `accounts`.`id` = 426  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$AiNy5CGoGtgPLQlKU5RSDuc4K86qyGdduf.idWXEXXR58iIE4Lley', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account427' WHERE `accounts`.`id` = 427 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 427 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (427, 130) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (426, 130) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 426 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 530  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 254) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 531 AND `account_roles`.`account_user_id` = 254) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254 AND `account_roles`.`name` = 'user' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account428' WHERE `accounts`.`id` = 428  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$SbVxkdDSZLmY8yiAXqMHA.PeYZD2B.hGPA74DVOxvbSdiTU1N84ku', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account429' WHERE `accounts`.`id` = 429 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 429 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (429, 131) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (428, 131) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 428 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 535  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 256) LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 536 AND `account_roles`.`account_user_id` = 256) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account430' WHERE `accounts`.`id` = 430  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$epj5OoOVH5xl6clu01MsyeLC7/RL1BKbgloJXuK8Gq0ML/7kuV4Iy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account431' WHERE `accounts`.`id` = 431 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 431 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (431, 132) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (430, 132) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 430 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 540  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 258) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 541 AND `account_roles`.`account_user_id` = 258) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258 AND `account_roles`.`name` = 'user' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account432' WHERE `accounts`.`id` = 432  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$fD3cuZAvCDTYofpZSLX4C.kzlqhFmb1pLW1w1vgFuAV/IWAvAMRJ6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account433' WHERE `accounts`.`id` = 433 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 433 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (433, 133) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (432, 133) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'notowner@account.test', '$2a$04$bt4fQ01mSxA13LE1WWKG1.NMvxAIe7ofht1Efxiut8Rn.4HDiZCgy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account434' WHERE `accounts`.`id` = 434 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (434, 134) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account435' WHERE `accounts`.`id` = 435  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (435, 134) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 432 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 432 WHERE `account_users`.`id` = 262  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 432 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 545  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260 AND `account_roles`.`name` = 'my_owner' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account436' WHERE `accounts`.`id` = 436  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$5sKUhKCtEpJ5wRwC2yUar.a.MFO/dsMLxIQX9EM4dos09m8DGdwBW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account437' WHERE `accounts`.`id` = 437 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 437 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (437, 135) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (436, 135) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'notowner@account.test', '$2a$04$3HV2LvM3qGEZr/k0ola8..EVmULY7R6hWixIrYddA/P9Dy8dGEd6m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account438' WHERE `accounts`.`id` = 438 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 438 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (438, 136) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account439' WHERE `accounts`.`id` = 439  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (439, 136) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 436 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 436 WHERE `account_users`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 436 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 553  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264 AND `account_roles`.`name` = 'my_user' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account440' WHERE `accounts`.`id` = 440  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$pvuyzCzDec8mJel/1KLxUuEeA1g1Tr4g9eC7NSHvpJ6AiQPPqmHk2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account441' WHERE `accounts`.`id` = 441 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (441, 137) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (440, 137) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 440 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 562  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_guest' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268 AND `account_roles`.`name` = 'my_guest' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account442' WHERE `accounts`.`id` = 442  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$t8gWdPSESKdrsRJSJSFx4OHUQRYyza/ugjrJhyQdanukjGF8OPEFK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account443' WHERE `accounts`.`id` = 443 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (443, 138) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (442, 138) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 270  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 442 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 567  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account444' WHERE `accounts`.`id` = 444  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$7Iwj4Tqxu/Xs05sCwtdggu4gKaD3CBy3C4by6JG33qQW3F6nH2s56', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account445' WHERE `accounts`.`id` = 445 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 445 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (445, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (444, 139) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 272  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 444 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 572  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account446' WHERE `accounts`.`id` = 446  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$Gfe6AGVaVqQ3122iBxg9HuX9u8crb6BtLjOKxaYdzE8y0CAM5H8UO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account447' WHERE `accounts`.`id` = 447 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (447, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (446, 140) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_user')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 274  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 446 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (31.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account448' WHERE `accounts`.`id` = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$LXy24XDOLwz9mU5O5iMM3e4PvbxeLtVUEyCJMTY7gAdidB08NtWTG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account449' WHERE `accounts`.`id` = 449 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 449 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (449, 141) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (448, 141) AccountRole Exists (1.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (1.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_owner') AccountRole Exists (1.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (8.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_user')  (3.7ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 276  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 448 AND name = 'owner') SQL (2.0ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 580  (7.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', 'jabanilson', NULL, 1, '2012-11-28 22:57:56')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account450' WHERE `accounts`.`id` = 450  (1.4ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.8ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:56', '2012-11-28 22:57:56', 'teste@teste.com', '$2a$04$mSqBes5y.dzgQqckzRLN1OMwBFyY2HmGhj1OSoOxeLJPCWECI7.XG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:56', NULL, NULL, NULL, '2012-11-28 22:57:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:56', `updated_at` = '2012-11-28 22:57:56', `subdomain` = 'account451' WHERE `accounts`.`id` = 451 Account Load (1.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (451, 142) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (450, 142) AccountRole Exists (1.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (1.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (3.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 278\n account_id: 450\n user_id: 142\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_278_destroy', '2012-11-28 22:57:57', '2012-11-28 22:57:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_278_destroy' LIMIT 1  (26.3ms) ROLLBACK  (1.0ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account452' WHERE `accounts`.`id` = 452  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:57', '2012-11-28 22:57:57', 'teste@teste.com', '$2a$04$upl3W9kgF5K3nlfh6jARaOCHTeLbriw6gFR/f1Ln1ilZ34XGFOqaa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:57') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', NULL, NULL, NULL, '2012-11-28 22:57:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account453' WHERE `accounts`.`id` = 453 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (453, 143) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (1.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (452, 143) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_280_destroy' LIMIT 1  (26.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (1.0ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account454' WHERE `accounts`.`id` = 454  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:57', '2012-11-28 22:57:57', 'teste@teste.com', '$2a$04$fFRYNfY/x9ksswspyjBXHeOqxgv/bfafCP08VPDIVR1GgykJrNjgC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:57') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', NULL, NULL, NULL, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account455' WHERE `accounts`.`id` = 455 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 455 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (455, 144) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (454, 144) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account456' WHERE `accounts`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 282\n account_id: 454\n user_id: 144\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_282_destroy', '2012-11-28 22:57:57', '2012-11-28 22:57:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_282_destroy' LIMIT 1  (10.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account457' WHERE `accounts`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:57', '2012-11-28 22:57:57', 'teste@teste.com', '$2a$04$Gyg0nhHlxWE8YbsEsPk4DetBWZ86DiPhg4uGCv52d1ECH91EMuaI6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:57') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', NULL, NULL, NULL, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account458' WHERE `accounts`.`id` = 458 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (458, 145) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (457, 145) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account459' WHERE `accounts`.`id` = 459  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_284_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account460' WHERE `accounts`.`id` = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:57', '2012-11-28 22:57:57', 'teste@teste.com', '$2a$04$O0wQPSUjkBctRea0wsEPc.siZJlSf07Rt9owpsvliI0WeYG.sMXUy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:57') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', NULL, NULL, NULL, '2012-11-28 22:57:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account461' WHERE `accounts`.`id` = 461 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 461 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (461, 146) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (460, 146) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account462' WHERE `accounts`.`id` = 462  (7.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 286\n account_id: 460\n user_id: 146\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_286_destroy', '2012-11-28 22:57:57', '2012-11-28 22:57:57')  (13.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (1.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (5.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (27.9ms) ROLLBACK  (1.5ms) BEGIN  (8.7ms) SAVEPOINT active_record_1 SQL (5.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (4.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account463' WHERE `accounts`.`id` = 463  (0.2ms) RELEASE SAVEPOINT active_record_1  (9.8ms) SAVEPOINT active_record_1 User Exists (0.7ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (2.1ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:57', '2012-11-28 22:57:57', 'teste@teste.com', '$2a$04$pdZnsesnK.7zeXU.HcblO.vZulxzstWfEEFhZJybXYhUkLPYJF3lq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', NULL, NULL, NULL, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account464' WHERE `accounts`.`id` = 464 Account Load (1.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 464 LIMIT 1 SQL (1.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (464, 147) AccountRole Exists (4.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (463, 147) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (8.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'owner') AccountRole Exists (4.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account465' WHERE `accounts`.`id` = 465  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.8ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 288\n account_id: 463\n user_id: 147\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_288_destroy', '2012-11-28 22:57:57', '2012-11-28 22:57:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (26.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account466' WHERE `accounts`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:57', '2012-11-28 22:57:57', 'teste@teste.com', '$2a$04$80MmaRk5GOvLD/080zlSEOPI3xliE/wRYN/wAfbymwPk.N9abY.ra', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:57') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', NULL, NULL, NULL, '2012-11-28 22:57:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account467' WHERE `accounts`.`id` = 467 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 467 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (467, 148) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (466, 148) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account468' WHERE `accounts`.`id` = 468  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account469' WHERE `accounts`.`id` = 469  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.7ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:57', '2012-11-28 22:57:57', 'teste@teste.com', '$2a$04$VT33DIxmLpLm9eIDzUSRT.CRfj8NIoAmX3x3NO/exCaea3bu4Kv1S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:57') SQL (0.7ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', NULL, NULL, NULL, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account470' WHERE `accounts`.`id` = 470 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (470, 149) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (469, 149) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account471' WHERE `accounts`.`id` = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:57:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 292\n account_id: 469\n user_id: 149\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_292_destroy', '2012-11-28 22:57:57', '2012-11-28 22:57:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.9ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57' WHERE `delayed_jobs`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (46.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:57', 'jabanilson', NULL, 1, '2012-11-28 22:57:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:57', `updated_at` = '2012-11-28 22:57:57', `subdomain` = 'account472' WHERE `accounts`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (1.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 472 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:57', 'api token', '83fe080f8c24fee2fa6c0fd964e80f18', 472, 'Account', '2012-11-28 22:57:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '83fe080f8c24fee2fa6c0fd964e80f18' LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '83fe080f8c24fee2fa6c0fd964e80f18' LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (98.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account473' WHERE `accounts`.`id` = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 473 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:58', 'api token', 'fc308c64b98b836f7ca25373dfd96e76', 473, 'Account', '2012-11-28 22:57:58')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.8ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (37.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account474' WHERE `accounts`.`id` = 474  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 474 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:58', 'api token', 'c398d2c2fc5f8767808210a9c37f2f03', 474, 'Account', '2012-11-28 22:57:58')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (31.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account475' WHERE `accounts`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 475 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:58', 'api token', '4a29a9d521cc301101778c413db0cef6', 475, 'Account', '2012-11-28 22:57:58')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account476' WHERE `accounts`.`id` = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:58', 'token 1', '76fe8fadf34658369f539a589d6b17d6', 476, 'Account', '2012-11-28 22:57:58')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`token` = BINARY '76fe8fadf34658369f539a589d6b17d6' AND `api_tokens`.`id` != 8) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`id` != 8 AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (49.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account477' WHERE `accounts`.`id` = 477  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 477 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 22:57:58', 'api token', '372fb32c03d265217ffb8179b25bf810', 477, 'Account', '2012-11-28 22:57:58')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:58', '2012-11-28 22:57:58', '', '$2a$04$BYowZFyvnPXQh8aygXiDGuPT.MYKipVCkQ4zrLspcnsHu80CKUn0i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', NULL, NULL, NULL, '2012-11-28 22:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account478' WHERE `accounts`.`id` = 478 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 478 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (478, 150) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 150 WHERE `social_accounts`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150  (12.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:58', '2012-11-28 22:57:58', 'teste@teste.com', '$2a$04$LP5RC3/MAj78Fz0hLJYai.B6apWtCP3gQDNPkgZf45SM5gsjO6GF2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', NULL, NULL, NULL, '2012-11-28 22:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account479' WHERE `accounts`.`id` = 479 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (479, 151) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 151)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '', `updated_at` = '2012-11-28 22:57:58' WHERE `users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 151  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:58', '2012-11-28 22:57:58', 'teste@teste.com', '$2a$04$hLsO9tRW/02i20rneSbZEeLcoK0q2NhjVfADNgP5Ly7.MuRxkTzxC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', NULL, NULL, NULL, '2012-11-28 22:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account480' WHERE `accounts`.`id` = 480 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 480 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (480, 152) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 152)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'testing@email.test' AND `users`.`id` != 152) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '$2a$04$qcu15ypWnQaBjHmAWpfEtO.JV0fzTlufiHWxLhLvVVc8IsQLy1DE6', `updated_at` = '2012-11-28 22:57:58' WHERE `users`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (23.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account481' WHERE `accounts`.`id` = 481  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:58', '2012-11-28 22:57:58', 'invited@test.test', '$2a$04$RrPbhFCQz5wZ7mbZw2giQueQNuhv3/ToWuN4uKNoRLfXXSwaTkLwG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', NULL, NULL, NULL, '2012-11-28 22:57:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account482' WHERE `accounts`.`id` = 482 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (482, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 481 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (481, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 481 AND `users`.`email` = 'invited@test.test'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:57:58', 'UcQCIXPCMaiPEKsAQq4m0RUto0A') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b696f6704b3_1ced80435d48421d0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/12UcQCIXPCMaiPEKsAQq4m0RUto0A  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 22:57:58', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b696f676d34_1ced80435d4842210@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/13oiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.5ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 13 LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:57:58', 'ep7zrdA_9TOUieKuTLFIvHbeBYM') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b696f67e31b_1ced80435d48423bd@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/14ep7zrdA_9TOUieKuTLFIvHbeBYM  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 22:57:58', 'Qjf4dMXuS1btoA-FcuecP9wFycc') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b696f6845d3_1ced80435d484247d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/15Qjf4dMXuS1btoA-FcuecP9wFycc  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account483' WHERE `accounts`.`id` = 483  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 483 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (483, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:58', 'UQglbVHEEicm47iWizY35RXzVEU') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696f68b5e9_1ced80435d4842591@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/16UQglbVHEEicm47iWizY35RXzVEU  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 16 LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account484' WHERE `accounts`.`id` = 484  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 484 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (484, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:58', 'YNAre9UzJg-rsnN-E5SgIs3zijk') Sent mail to teste@teste.teste (8ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696f693101_1ced80435d48426ee@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/17YNAre9UzJg-rsnN-E5SgIs3zijk  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 1238 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account485' WHERE `accounts`.`id` = 485  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 485 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (485, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:58', 'rDNkUt5neeUch4YtX_fjwE944SY') Sent mail to teste@teste.teste (100ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696f69a811_1ced80435d484277b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/18rDNkUt5neeUch4YtX_fjwE944SY  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account486' WHERE `accounts`.`id` = 486  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:58', '2012-11-28 22:57:58', 'teste@teste.com', '$2a$04$1ePfE0BdgUHqvyCvM3tuduC5puFi8Fj.Geyq2OnhqBYleLFgZfL1W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', NULL, NULL, NULL, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account487' WHERE `accounts`.`id` = 487 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 487 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (487, 154) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 486 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 486 WHERE `user_invitations`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (486, 154) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (299) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (486)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account488' WHERE `accounts`.`id` = 488  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 488 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (488, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:58', 'VUfE4joeTgtpHNrokIX5pOi5vlM') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696f6c2173_1ced80435d48428c1@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/19VUfE4joeTgtpHNrokIX5pOi5vlM  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account489' WHERE `accounts`.`id` = 489  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:58', '2012-11-28 22:57:58', 'teste@teste.com', '$2a$04$gw99hCY2d6lzi25wR0K9Ee9/SqHrbMiLEaSneE8gimcyubQce5U4a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', NULL, NULL, NULL, '2012-11-28 22:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account490' WHERE `accounts`.`id` = 490 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (490, 155) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 489 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = 19  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 488 AND `account_users`.`user_id` = 155  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (488, 155) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 488 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 630  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301 AND `account_roles`.`name` = 'user' LIMIT 1  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account491' WHERE `accounts`.`id` = 491  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 491 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (491, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:58', 'fxaoJusYnyRnl38g_sV_7f8CgFg') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:57:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696f6d7acd_1ced80435d484292d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/20fxaoJusYnyRnl38g_sV_7f8CgFg  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', 'jabanilson', NULL, 1, '2012-11-28 22:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account492' WHERE `accounts`.`id` = 492  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (4.0ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:58', '2012-11-28 22:57:58', 'teste@teste.com', '$2a$04$SQ92hEy55WVzQkGVFmfxr.KL9YUpG9AStseFY7XZhmcvSw6E7ilRm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:58') SQL (30.8ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:58', NULL, NULL, NULL, '2012-11-28 22:57:58')  (12.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:58', `updated_at` = '2012-11-28 22:57:58', `subdomain` = 'account493' WHERE `accounts`.`id` = 493 Account Load (12.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 493 LIMIT 1 SQL (2.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (493, 156) AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (17.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.7ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 492 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 492 WHERE `user_invitations`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 492 AND `account_users`.`user_id` = 156  (0.6ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (492, 156) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (65.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', 'jabanilson', NULL, 1, '2012-11-28 22:57:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account494' WHERE `accounts`.`id` = 494  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 494 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (494, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:57:59', 'tRkeMChn-gwL_PveWRn5MQqlKpM') Sent mail to teste@teste.teste (10ms) Date: Wed, 28 Nov 2012 20:57:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b696f7243a2_1ced80435d4843088@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/21tRkeMChn-gwL_PveWRn5MQqlKpM  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', 'jabanilson', NULL, 1, '2012-11-28 22:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account495' WHERE `accounts`.`id` = 495  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:59', '2012-11-28 22:57:59', 'teste@teste.com', '$2a$04$80KWpzHnrHR1QfbMQ9SB..AWFmx0w8PxORhAFs/6hFZFsl1X6uSmG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', NULL, NULL, NULL, '2012-11-28 22:57:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account496' WHERE `accounts`.`id` = 496 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (496, 157) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 495 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 495 WHERE `user_invitations`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (495, 157) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 495 AND `account_users`.`user_id` = 157  (68.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:59', '2012-11-28 22:57:59', 'teste@teste.com', '$2a$04$kEiBGkJg.sejLRlVBOkeJuG66U4YWSjx15GFMA9IAwh9PJ3s.54jC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:59') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', NULL, NULL, NULL, '2012-11-28 22:57:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account497' WHERE `accounts`.`id` = 497 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 497 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (497, 158) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (131.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:59', '2012-11-28 22:57:59', 'teste@teste.com', '$2a$04$RYJO9WmVKBukUuHQUeDnGOqB2kFR1VtPjkOHZVrIApkVdbZ2cPlAW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', NULL, NULL, NULL, '2012-11-28 22:57:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account498' WHERE `accounts`.`id` = 498 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (498, 159) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (56.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:59', '2012-11-28 22:57:59', 'teste@teste.com', '$2a$04$wmncQPMAJXUnrfxLkPnRu.0KmRMz3NaGruBGhj6PvpZhDvImnlXw6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', NULL, NULL, NULL, '2012-11-28 22:57:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account499' WHERE `accounts`.`id` = 499 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (499, 160) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (22.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:59', '2012-11-28 22:57:59', 'teste@teste.com', '$2a$04$BCPy2yRngZUrY0BwR.nXsefRAbx4TWqC49BWHgSoxQxkX.6NW6tMy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', NULL, NULL, NULL, '2012-11-28 22:57:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account500' WHERE `accounts`.`id` = 500 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (500, 161) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 161  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:59', '2012-11-28 22:57:59', 'teste@teste.com', '$2a$04$gbex3obhpVJcmZB.OYpWqe/E0zdlxWgxiqvrLerdb1u0LX4D4gqD6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:57:59', 'User', 'b86e2bee490f7559b67fd8717b73bf08', 162, 'User', '2012-11-28 22:57:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', NULL, NULL, NULL, '2012-11-28 22:57:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account501' WHERE `accounts`.`id` = 501 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 501 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (501, 162) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:59', '2012-11-28 22:57:59', 'teste@teste.com', '$2a$04$iR8mgh7FHpg3TvJhQB/wuOXVgM5ckpivln6NZwPgE3dbmSvaEJ9d2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:57:59', 'User', '57a25894fcab2cae5a8669a209bacc43', 163, 'User', '2012-11-28 22:57:59') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', NULL, NULL, NULL, '2012-11-28 22:57:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account502' WHERE `accounts`.`id` = 502 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (502, 163) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'admin') Sent mail to teste@teste.com (10ms) Date: Wed, 28 Nov 2012 20:57:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696f7bbcbe_1ced80435d48431b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:59', '2012-11-28 22:57:59', 'account1@before.destroy', '$2a$04$SROkxHtCR/C1hZ6w1aGhcOHjLoOXyup96zQpuSH8CWwYzcSSZKW6q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:57:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:57:59', 'User', 'e45088af79e8f8567ddb1e371f21a727', 164, 'User', '2012-11-28 22:57:59') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:57:59', NULL, NULL, NULL, '2012-11-28 22:57:59')  (2.0ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:57:59', `updated_at` = '2012-11-28 22:57:59', `subdomain` = 'account503' WHERE `accounts`.`id` = 503 Account Load (0.9ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 503 LIMIT 1 SQL (0.9ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (503, 164) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (3.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'owner') AccountRole Exists (2.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (1.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (3.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'admin') Sent mail to account1@before.destroy (11ms) Date: Wed, 28 Nov 2012 20:58:00 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b696f8f1ec_1ced80435d48432f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164 LIMIT 1  (1.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 164\n email: account1@before.destroy\n encrypted_password: $2a$04$SROkxHtCR/C1hZ6w1aGhcOHjLoOXyup96zQpuSH8CWwYzcSSZKW6q\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:57:59.798332000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:57:59.798984000Z\n updated_at: 2012-11-28 22:57:59.798984000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_164_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00')  (3.5ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_164_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 164 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 164 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (312) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (503) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 312\n account_id: 503\n user_id: 164\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_312_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 164 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 503 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 503\n created_at: 2012-11-28 22:57:59.000000000Z\n updated_at: 2012-11-28 22:57:59.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account503\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_503_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_503_destroy' LIMIT 1  (317.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:00', '2012-11-28 22:58:00', 'account1@before.destroy', '$2a$04$Sjvd89n1sR7t69q8GjYWlec4N/r8CnITSgs5KohlCqU/0VGbS/vO6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:00') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:00', 'User', 'b8865bf45e88a93780a64cff82fbf57b', 165, 'User', '2012-11-28 22:58:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:00', NULL, NULL, NULL, '2012-11-28 22:58:00')  (0.6ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:00', `updated_at` = '2012-11-28 22:58:00', `subdomain` = 'account504' WHERE `accounts`.`id` = 504 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 504 LIMIT 1 SQL (0.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (504, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'admin') Sent mail to account1@before.destroy (9ms) Date: Wed, 28 Nov 2012 20:58:00 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b696f87bb04_1ced80435d4843378@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:00', 'jabanilson', NULL, 1, '2012-11-28 22:58:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:00', `updated_at` = '2012-11-28 22:58:00', `subdomain` = 'account505' WHERE `accounts`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (505, 165) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165 ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 165\n email: account1@before.destroy\n encrypted_password: $2a$04$Sjvd89n1sR7t69q8GjYWlec4N/r8CnITSgs5KohlCqU/0VGbS/vO6\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:00.456611000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:00.457018000Z\n updated_at: 2012-11-28 22:58:00.457018000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_165_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_165_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 165 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (313, 314) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (504, 505) SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 313\n account_id: 504\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_313_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00') SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 314\n account_id: 505\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_314_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 165 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 504 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 504\n created_at: 2012-11-28 22:58:00.000000000Z\n updated_at: 2012-11-28 22:58:00.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account504\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_504_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00')  (0.1ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 505 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 505\n created_at: 2012-11-28 22:58:00.000000000Z\n updated_at: 2012-11-28 22:58:00.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account505\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_505_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = 165  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_505_destroy' LIMIT 1  (19.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:00', '2012-11-28 22:58:00', 'account1@before.destroy', '$2a$04$SvEM5vZpv4ZjxFWfv0UeHe48wFYmzkwxjRVr82OppclPs60uR1K.e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:00', 'User', 'e77e6df8a78ac66ad33797353005e228', 166, 'User', '2012-11-28 22:58:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:00', NULL, NULL, NULL, '2012-11-28 22:58:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:00', `updated_at` = '2012-11-28 22:58:00', `subdomain` = 'account506' WHERE `accounts`.`id` = 506 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.6ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 166) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (1.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'admin') Sent mail to account1@before.destroy (12ms) Date: Wed, 28 Nov 2012 20:58:00 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b696f8ad0d7_1ced80435d48434bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.9ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166 LIMIT 1  (1.7ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:00', '2012-11-28 22:58:00', 'account2@before.destroy', '$2a$04$19QRvUzaDfCEviDcXlF.weLB.rJ0cYxbNIeH7qKLOxfJPz8dQluzO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:00', 'User', 'a7890db57df1789771d3313261a035c2', 167, 'User', '2012-11-28 22:58:00') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:00', NULL, NULL, NULL, '2012-11-28 22:58:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:00', `updated_at` = '2012-11-28 22:58:00', `subdomain` = 'account507' WHERE `accounts`.`id` = 507 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 507 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (507, 167) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'admin') Sent mail to account2@before.destroy (8ms) Date: Wed, 28 Nov 2012 20:58:00 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50b696f8bbaa6_1ced80435d48435a6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 167) AccountRole Exists (9.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (9.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (20.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'owner') AccountRole Exists (13.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.1ms) SAVEPOINT active_record_1 SQL (9.0ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 166\n email: account1@before.destroy\n encrypted_password: $2a$04$SvEM5vZpv4ZjxFWfv0UeHe48wFYmzkwxjRVr82OppclPs60uR1K.e\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:00.660016000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:00.660704000Z\n updated_at: 2012-11-28 22:58:00.660704000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_166_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (5.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_166_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 166 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 166 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (315) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (506) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 315\n account_id: 506\n user_id: 166\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_315_destroy', '2012-11-28 22:58:00', '2012-11-28 22:58:00') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 506 SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = 166  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_506_destroy' LIMIT 1  (200.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:01', '2012-11-28 22:58:01', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', '7864d8bb25a0c51543218f64e66f0f32', 168, 'User', '2012-11-28 22:58:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.6ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account508' WHERE `accounts`.`id` = 508 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (508, 168) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 168\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:01.100581000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:01.101486000Z\n updated_at: 2012-11-28 22:58:01.101486000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_168', '2012-12-05 22:58:01', '2012-11-28 22:58:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.7ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 168 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 168) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$4T9PAcavWBJ1wGbNEmENzuvrxUzvU8oTHd.FIASDJ3.LUFEAF2LQ6', `updated_at` = '2012-11-28 22:58:01' WHERE `users`.`id` = 168  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_168' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:01', '2012-11-28 22:58:01', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', 'b61ca3aab08c96dec0c159323d4bf2e5', 169, 'User', '2012-11-28 22:58:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account509' WHERE `accounts`.`id` = 509 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 509 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (509, 169) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 169\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:01.166468000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:01.167533000Z\n updated_at: 2012-11-28 22:58:01.167533000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_169', '2012-12-05 22:58:01', '2012-11-28 22:58:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 169 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 169) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (25.3ms) ROLLBACK  (0.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:01', '2012-11-28 22:58:01', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', '3a6f60fa7bb755a9d674cf8948328be4', 170, 'User', '2012-11-28 22:58:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account510' WHERE `accounts`.`id` = 510 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (510, 170) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 170\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:01.234381000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:01.235549000Z\n updated_at: 2012-11-28 22:58:01.235549000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_170', '2012-12-05 22:58:01', '2012-11-28 22:58:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 170  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (25.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'jKJgzBCm7CnyBmjwAvYt' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:58:01', 'jKJgzBCm7CnyBmjwAvYt', '2012-11-28 22:58:01', '2012-11-28 22:58:01', 'confirmation@skip.test', '$2a$04$3MIsdHloFbQDq2MIVXnsAuR/4UtHRXZ6qKOB/8Uu2uXHqpipgMF/G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', 'eb2ca8469213204b140790ca46227505', 171, 'User', '2012-11-28 22:58:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account511' WHERE `accounts`.`id` = 511 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 511 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (511, 171) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'admin') Sent mail to confirmation@skip.test (7ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b696f950b40_1ced80435d4843658@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '1sU4pMaqX9Jip18odRKe' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:58:01', '1sU4pMaqX9Jip18odRKe', NULL, '2012-11-28 22:58:01', 'confirmation@needed.test', '$2a$04$dOT8x7SQzwi7VojPNsu3UuOAlT8zjUvrQosth8VfREDOupvX2PV/.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') Sent mail to confirmation@needed.test (8ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b696f96209e_1ced80435d48437d6@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', '93791e4498997cc9d1a7c7e890a334ae', 172, 'User', '2012-11-28 22:58:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account512' WHERE `accounts`.`id` = 512 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (512, 172) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'admin') Sent mail to confirmation@needed.test (10ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b696f96bd6c_1ced80435d48438b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'hymS1zxofgZEgEaVyt1W' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:58:01', 'hymS1zxofgZEgEaVyt1W', NULL, '2012-11-28 22:58:01', 'reconfirmation@needed.test', '$2a$04$jaR52cAsvK5m/GjXZb.tm.GThFi.UdwqgUFhnKMnCJd6tZ1dwb5Bm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b696f997eea_1ced80435d4843936@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', 'cb0f55fb18898bfe43e8250985e2ded5', 173, 'User', '2012-11-28 22:58:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account513' WHERE `accounts`.`id` = 513 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 513 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (513, 173) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b696f99fe12_1ced80435d48440bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 173 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 173) LIMIT 1  (0.2ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:58:01' WHERE `users`.`id` = 173 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'ghi7PascqQFtcdFyT28e' LIMIT 1  (0.2ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 22:58:01', `confirmation_token` = 'ghi7PascqQFtcdFyT28e' WHERE `users`.`id` = 173 Sent mail to new@email.test (7ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b696f9a659a_1ced80435d4844180@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1  (56.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '4sUrZG9b8VcNzpYqyyQC' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:58:01', '4sUrZG9b8VcNzpYqyyQC', NULL, '2012-11-28 22:58:01', 'reconfirmation@needed.test', '$2a$04$EiSTX1JmKpVSZ7UVXA7k7OeTkSLd4Pxk7NoQM2GA3w4mTJ3LbGLsu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') Sent mail to reconfirmation@needed.test (8ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b696f9bd131_1ced80435d4844239@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', '35a78da6663d3392aea613157e8943b1', 174, 'User', '2012-11-28 22:58:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account514' WHERE `accounts`.`id` = 514 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 514 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (514, 174) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b696f9c703c_1ced80435d484437e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 174 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 174) LIMIT 1  (0.2ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 22:58:01' WHERE `users`.`id` = 174  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:01', 'teste@teste.com', '$2a$04$3briozfDFhjBu7k5m5IU7uPT1Vh5JVWkr8S6sKvn5no48vSSgAxA6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', '294c3e7fa8409e57372e2e67486b2788', 175, 'User', '2012-11-28 22:58:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account515' WHERE `accounts`.`id` = 515 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (515, 175) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (1.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'admin') Sent mail to teste@teste.com (15ms) Date: Wed, 28 Nov 2012 20:58:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696f9d7fea_1ced80435d484445a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 175)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 175  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:01', 'teste@teste.com', '$2a$04$YSvbP0TNLC4YC09LCBP0l.bA4R/NVMS.eueie/YA0giJCJ9a/XJ3q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:01', 'User', 'cff4ee98be9b5a6aa7b27cf8529ac36b', 176, 'User', '2012-11-28 22:58:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:01', NULL, NULL, NULL, '2012-11-28 22:58:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:01', `updated_at` = '2012-11-28 22:58:01', `subdomain` = 'account516' WHERE `accounts`.`id` = 516 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 516 LIMIT 1 SQL (1.7ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (516, 176) AccountRole Exists (4.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (6.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'owner') AccountRole Exists (1.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (4.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'admin') Sent mail to teste@teste.com (14ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fa40f_1ced80435d48445c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 176)  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 176 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (9.8ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.7ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:02', '2012-11-28 22:58:02', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (1.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (1.0ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', 'cf47c7ca9d3af6ca55969d803a114ca6', 177, 'User', '2012-11-28 22:58:02') ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (1.0ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account517' WHERE `accounts`.`id` = 517 Account Load (1.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 517 LIMIT 1 SQL (0.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (517, 177) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 177)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 177 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:02', '2012-11-28 22:58:02', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', '17d78033a55a4d5f753a2fbe0329282f', 178, 'User', '2012-11-28 22:58:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account518' WHERE `accounts`.`id` = 518 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 518 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (518, 178) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696fa20a7c_1ced80435d48446e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 178)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 178 LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$W5sI8zWob8EC8reyeyTRH.UwA10e/cGcwXOt6zcPm.eW4KiwhMFpS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', '5dc1f1945442694e37fec9fa2579b22f', 179, 'User', '2012-11-28 22:58:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account519' WHERE `accounts`.`id` = 519 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (519, 179) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'admin') Sent mail to teste@teste.com (9ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fa2d596_1ced80435d4844712@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 179)  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 179 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$EVfWJhXrVBiUdFkPXuRzpeFgVLw8mDs59Qv4pKRdWkV8yufUlIZ2e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', 'b4a0ee728c93950c85eac7336b81829a', 180, 'User', '2012-11-28 22:58:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account520' WHERE `accounts`.`id` = 520 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 520 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (520, 180) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fa3bef2_1ced80435d48448fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 180)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 180 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `token` = 'newtoken' WHERE `social_accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`id` = 21 LIMIT 1  (36.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'yFRPdiYAuGRyMtti4xtz' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:58:02', 'yFRPdiYAuGRyMtti4xtz', NULL, '2012-11-28 22:58:02', 'test@email.test', '$2a$04$ndql1FYowAALAqfD3pHRB.oiZRYXiVKzRjQgULzTxNV2S1nnOAzra', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') Sent mail to test@email.test (10ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b696fa4e60a_1ced80435d48449ba@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', '48fe65f1b264e2afc6056c5a3b43b345', 181, 'User', '2012-11-28 22:58:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account521' WHERE `accounts`.`id` = 521 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 521 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (521, 181) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'admin') Sent mail to test@email.test (101ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b696fa57a35_1ced80435d48450bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 181  (27.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'pq1cjJnQVqdkPzrmqcRp' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 22:58:02', 'pq1cjJnQVqdkPzrmqcRp', NULL, '2012-11-28 22:58:02', 'test@email.test', '$2a$04$rHVwZ2O7.iiQa7B6DNS/juT6ELlMTQXEdoShYx2nj2u74Ur2Rbxw.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b696fa7c9ce_1ced80435d4845128@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', '24bd102d0edb82297a79a9ce55564d52', 182, 'User', '2012-11-28 22:58:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b696fa820d5_1ced80435d484522a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 182  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$9Y8EkgP9GdOd0BKMk3rOtOItPmWW0s3IIV8YBV2RdvoMlQAopayau', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', 'a02a0e6c308e61990e0984b445fe7f33', 183, 'User', '2012-11-28 22:58:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account522' WHERE `accounts`.`id` = 522 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 522 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (522, 183) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fa8d0dc_1ced80435d48453aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$/Al.6YU/4WJ8TN73vAdZ7.wEqiUOJq6scBSMVZeIQNbyQq.0JcgBq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', 'e7216493faf1cda06bc26a341accc4e7', 184, 'User', '2012-11-28 22:58:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account523' WHERE `accounts`.`id` = 523 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (523, 184) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fa98be5_1ced80435d48454c1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 AND (accounts.id = 523) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$MikWV.so2/knkoHxr5TgWOYWUtMIvQyNTmC648huOv2B5kzpSHXNC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', 'e9146e12595ac2d042d4b84f9b5730da', 185, 'User', '2012-11-28 22:58:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account524' WHERE `accounts`.`id` = 524 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (524, 185) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696faa40c6_1ced80435d4845580@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 AND (accounts.id = 524) LIMIT 1  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$bEt8fGT6uODPuyY7eZzZ7OxnTPbF4qsdjf743fEb6mAPlv.MylBTK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', '6e8f1529ac85659e74879ec0bd337c49', 186, 'User', '2012-11-28 22:58:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account525' WHERE `accounts`.`id` = 525 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (525, 186) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fab0810_1ced80435d4845656@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 186\n email: teste@teste.com\n encrypted_password: $2a$04$bEt8fGT6uODPuyY7eZzZ7OxnTPbF4qsdjf743fEb6mAPlv.MylBTK\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:57:32.419573000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:02.691723000Z\n updated_at: 2012-11-28 22:58:02.691723000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_186_destroy', '2012-11-28 22:58:02', '2012-11-28 22:58:02')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_186_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$pt8saSc.iSbG9KjF89w3v.j9Xb8gCja/RW1cSa9tr/7E2VXjnNlkm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', 'b4a532e212551d7f7a6926c2f13a0e12', 187, 'User', '2012-11-28 22:58:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account526' WHERE `accounts`.`id` = 526 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 526 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (526, 187) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fabc8f0_1ced80435d484574@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_187_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$lg4kMzf2c/y3dNZ37vQF3uYKQTmyTfGpuJpNF/v1PbhxASGoJr8la', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', 'fe3f2d44f897e2e44d81ae4a790e2cb7', 188, 'User', '2012-11-28 22:58:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account527' WHERE `accounts`.`id` = 527 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (527, 188) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fac7f71_1ced80435d4845813@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 188\n email: teste@teste.com\n encrypted_password: $2a$04$lg4kMzf2c/y3dNZ37vQF3uYKQTmyTfGpuJpNF/v1PbhxASGoJr8la\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:57:32.419573000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:02.788128000Z\n updated_at: 2012-11-28 22:58:02.788128000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_188_destroy', '2012-11-28 22:58:02', '2012-11-28 22:58:02')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_188_destroy' LIMIT 1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$PgFl/w5WEKOGfzqNucUDmO.9rvIHj7z7UrRZ0j9BABma.IyS.Y/MK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', '07c83d76abaf8a559fd5116c60721b6a', 189, 'User', '2012-11-28 22:58:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account528' WHERE `accounts`.`id` = 528 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 528 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (528, 189) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fad457f_1ced80435d484599b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_189_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$FVOvqZ9Q03eMAwd8qCA5QuCsIaiVFc1qpC4Vs/fw92f3QhEznLKG6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', 'ef6dff485bb4cbd63751c6a918c7493d', 190, 'User', '2012-11-28 22:58:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account529' WHERE `accounts`.`id` = 529 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (529, 190) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fadf45c_1ced80435d4846088@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:02', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 190\n email: teste@teste.com\n encrypted_password: $2a$04$FVOvqZ9Q03eMAwd8qCA5QuCsIaiVFc1qpC4Vs/fw92f3QhEznLKG6\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:57:32.419573000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:02.884756000Z\n updated_at: 2012-11-28 22:58:02.884756000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_190_destroy', '2012-11-28 22:58:02', '2012-11-28 22:58:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 44  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:02', 'teste@teste.com', '$2a$04$RiHl.cdjXXAYCYMIzwYtru.lOvvqA1WniHGxQyOhFqsUUMLaSpshC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:02', 'User', '24d36d7e9ec4f6be6ddf582630a1e322', 191, 'User', '2012-11-28 22:58:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:02', NULL, NULL, NULL, '2012-11-28 22:58:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:02', `updated_at` = '2012-11-28 22:58:02', `subdomain` = 'account530' WHERE `accounts`.`id` = 530 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 530 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (530, 191) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fbe861_1ced80435d48461db@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 191\n email: teste@teste.com\n encrypted_password: $2a$04$RiHl.cdjXXAYCYMIzwYtru.lOvvqA1WniHGxQyOhFqsUUMLaSpshC\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:57:32.419573000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:02.935585000Z\n updated_at: 2012-11-28 22:58:02.935585000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_191_destroy', '2012-11-28 22:58:03', '2012-11-28 22:58:03')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 45  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:03', 'teste@teste.com', '$2a$04$GmmTE3MsVx59ZdxZn2pmQeLodV.CG/pm/nWmGFs3xP.YsZGLuucby', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', 'ba862031eb8f59b6f87150b1245ed85b', 192, 'User', '2012-11-28 22:58:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account531' WHERE `accounts`.`id` = 531 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 531 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (531, 192) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fb1afcc_1ced80435d4846268@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1  (6.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:03', 'teste@teste.com', '$2a$04$C0UrNwIVlI32ZNVEPTfHJ.tlOVOT6zZ2BaIe74zKX16updktrW54S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', 'e4448c17640fc4c3791773fd0970032d', 193, 'User', '2012-11-28 22:58:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account532' WHERE `accounts`.`id` = 532 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (532, 193) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fb27b3e_1ced80435d48463ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 193\n email: teste@teste.com\n encrypted_password: $2a$04$C0UrNwIVlI32ZNVEPTfHJ.tlOVOT6zZ2BaIe74zKX16updktrW54S\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 20:57:32.419573000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.132698000Z\n updated_at: 2012-11-28 22:58:03.132698000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_193_destroy', '2012-11-28 22:58:03', '2012-11-28 22:58:03')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03' WHERE `delayed_jobs`.`id` = 46  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (15.3ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.9ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:03', 'teste@teste.com', '$2a$04$sHBhGfIC/k4lKBcWQG9SMeN49GDv5.l2VTyzkF4fx7i84ole86qdK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', 'd92ac03da5b13a1b690bcf07a1d2e51d', 194, 'User', '2012-11-28 22:58:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account533' WHERE `accounts`.`id` = 533 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (533, 194) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fb3dd97_1ced80435d4846488@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 194 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 533 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 716  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 343 AND `account_roles`.`name` = 'user' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:03', 'teste@teste.com', '$2a$04$l5KSKJ4Mc6ASMqx4Cfc4o.XuRskIsE0MMbvgzACfrwvhahZDy/6Ze', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', '03282c3763cf760bfe6e60426f73c473', 195, 'User', '2012-11-28 22:58:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account534' WHERE `accounts`.`id` = 534 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 534 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (534, 195) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b696fb4cc1e_1ced80435d484651b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 195 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 534 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 719  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 344 AND `account_roles`.`name` = 'admin' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', '7a52166dae7e1fc275e61f6991f56366', 196, 'User', '2012-11-28 22:58:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account535' WHERE `accounts`.`id` = 535 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 535 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (535, 196) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 196\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:03.342596000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.343125000Z\n updated_at: 2012-11-28 22:58:03.343125000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_196', '2012-12-05 22:58:03', '2012-11-28 22:58:03')  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', '5b46c8ef66c906f7ee3688ca47e25ba9', 197, 'User', '2012-11-28 22:58:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account536' WHERE `accounts`.`id` = 536 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (536, 197) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 197\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:03.376945000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.377474000Z\n updated_at: 2012-11-28 22:58:03.377474000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_197', '2012-12-05 22:58:03', '2012-11-28 22:58:03')  (0.2ms) RELEASE SAVEPOINT active_record_1  (8.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', 'fea0e155bfc5147080bd739cbad5618a', 198, 'User', '2012-11-28 22:58:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account537' WHERE `accounts`.`id` = 537 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (537, 198) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 198\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:03.409972000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.410677000Z\n updated_at: 2012-11-28 22:58:03.410677000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_198', '2012-12-05 22:58:03', '2012-11-28 22:58:03')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', '18ee86ac22476c1aa2d6f6ebd7f30e70', 199, 'User', '2012-11-28 22:58:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account538' WHERE `accounts`.`id` = 538 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 538 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (538, 199) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 199\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:03.435672000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.436164000Z\n updated_at: 2012-11-28 22:58:03.436164000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_199', '2012-12-05 22:58:03', '2012-11-28 22:58:03')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', '1ee447a25c188c9096af9d21154a9f85', 200, 'User', '2012-11-28 22:58:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account539' WHERE `accounts`.`id` = 539 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (539, 200) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 200\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:03.459771000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.460218000Z\n updated_at: 2012-11-28 22:58:03.460218000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_200', '2012-12-05 22:58:03', '2012-11-28 22:58:03')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', '3425716c2da6c771673972d93bce7029', 201, 'User', '2012-11-28 22:58:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account540' WHERE `accounts`.`id` = 540 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (540, 201) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 201\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:03.484660000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.485124000Z\n updated_at: 2012-11-28 22:58:03.485124000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_201', '2012-12-05 22:58:03', '2012-11-28 22:58:03')  (0.2ms) RELEASE SAVEPOINT active_record_1  (11.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', '0a02cf4f9e9445d261af5ffb273e5c58', 202, 'User', '2012-11-28 22:58:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account541' WHERE `accounts`.`id` = 541 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (541, 202) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 202\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:03.519158000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.519766000Z\n updated_at: 2012-11-28 22:58:03.519766000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_202', '2012-12-05 22:58:03', '2012-11-28 22:58:03')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', 'ccf409f0f01f79f380646776f03a6e5d', 203, 'User', '2012-11-28 22:58:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account542' WHERE `accounts`.`id` = 542 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (542, 203) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 203\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:03.542232000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:03.542658000Z\n updated_at: 2012-11-28 22:58:03.542658000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_203', '2012-12-05 22:58:03', '2012-11-28 22:58:03')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (10.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:03', '2012-11-28 22:58:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:03', 'User', 'adec07a2b37c47fa737ce6d7b3f5b72d', 204, 'User', '2012-11-28 22:58:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:03', NULL, NULL, NULL, '2012-11-28 22:58:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:03', `updated_at` = '2012-11-28 22:58:03', `subdomain` = 'account543' WHERE `accounts`.`id` = 543 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (543, 204) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696fbe2482_1ced80435d4846627@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 204)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:04 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Completed 200 OK in 43ms (Views: 39.8ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 543 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (543, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/543/domains" for 127.0.0.1 at 2012-11-28 20:58:04 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"543"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_543_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 204 AND `account_users`.`account_id` = 543 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND `accounts`.`id` = 543 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 Completed 200 OK in 1729ms (Views: 1715.7ms | ActiveRecord: 2.6ms)  (40.2ms) ROLLBACK  (5.8ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (5.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.5ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:06', '2012-11-28 22:58:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:06') ApiToken Exists (5.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (3.0ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (2.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:06', 'User', '0312ad8540814e4a430e66d11d2dba5a', 205, 'User', '2012-11-28 22:58:06') ApiToken Load (1.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (1.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:06', NULL, NULL, NULL, '2012-11-28 22:58:06')  (2.0ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:06', `updated_at` = '2012-11-28 22:58:06', `subdomain` = 'account544' WHERE `accounts`.`id` = 544 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (544, 205) AccountRole Exists (4.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'admin') Sent mail to facebook@test.test (15ms) Date: Wed, 28 Nov 2012 20:58:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696fe74768_1ced80435d48467f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 205)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 167ms (ActiveRecord: 33.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by DashboardController#index as HTML User Load (3.9ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Completed 200 OK in 24ms (Views: 11.2ms | ActiveRecord: 3.9ms) User Load (1.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (2.7ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (544, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/544/domains" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"544"} User Load (2.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Account Load (26.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (4.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_544_destroy' LIMIT 1 AccountUser Load (4.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 205 AND `account_users`.`account_id` = 544 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND `accounts`.`id` = 544 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`account_id` = 544 AccountUser Load (3.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 544 AND `account_users`.`user_id` = 205 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (354) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (544) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 Completed 200 OK in 80ms (Views: 22.3ms | ActiveRecord: 42.7ms)  (1.7ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.9ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:06', '2012-11-28 22:58:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:06') ApiToken Exists (4.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (1.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:06', 'User', '091e71d730f0a96603f909ea75143e2d', 206, 'User', '2012-11-28 22:58:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (1.7ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:06', NULL, NULL, NULL, '2012-11-28 22:58:06')  (2.6ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:06', `updated_at` = '2012-11-28 22:58:06', `subdomain` = 'account545' WHERE `accounts`.`id` = 545 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (545, 206) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'admin') Sent mail to facebook@test.test (19ms) Date: Wed, 28 Nov 2012 20:58:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696feb93d5_1ced80435d484684a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 206)  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.9ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 126ms (ActiveRecord: 21.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (545, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/545/domains" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"545"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_545_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 206 AND `account_users`.`account_id` = 545 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND `accounts`.`id` = 545 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`account_id` = 545 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 545 AND `account_users`.`user_id` = 206 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (355) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (545) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 Completed 200 OK in 27ms (Views: 11.7ms | ActiveRecord: 3.8ms)  (34.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:06', '2012-11-28 22:58:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:06', 'User', 'cc76fd324c4550ec3a46b98e98ffec8a', 207, 'User', '2012-11-28 22:58:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:06', NULL, NULL, NULL, '2012-11-28 22:58:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:06', `updated_at` = '2012-11-28 22:58:06', `subdomain` = 'account546' WHERE `accounts`.`id` = 546 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (546, 207) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696fee4129_1ced80435d48469f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 207)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 5.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (546, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/546/domains" for 127.0.0.1 at 2012-11-28 20:58:06 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"546"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_546_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 207 AND `account_users`.`account_id` = 546 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND `accounts`.`id` = 546 LIMIT 1 AccountDomain Load (0.7ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`account_id` = 546 AccountUser Load (1.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 546 AND `account_users`.`user_id` = 207 LIMIT 1 AccountRole Load (0.9ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (356) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (546) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 Completed 200 OK in 160ms (Views: 26.2ms | ActiveRecord: 7.2ms)  (2.0ms) ROLLBACK  (0.7ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (1.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (2.1ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:07', '2012-11-28 22:58:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:07', 'User', 'a61584e79de1f70516c9677a85d36e35', 208, 'User', '2012-11-28 22:58:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:07', NULL, NULL, NULL, '2012-11-28 22:58:07')  (0.7ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:07', `updated_at` = '2012-11-28 22:58:07', `subdomain` = 'account547' WHERE `accounts`.`id` = 547 Account Load (2.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (547, 208) AccountRole Exists (1.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (1.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'owner') AccountRole Exists (0.8ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696ff39ea6_1ced80435d484703d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 208)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 103ms (ActiveRecord: 19.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (547, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 62  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 62  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/547/domains" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"547"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_547_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 208 AND `account_users`.`account_id` = 547 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND `accounts`.`id` = 547 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`account_id` = 547 AccountUser Load (0.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 547 AND `account_users`.`user_id` = 208 LIMIT 1 AccountRole Load (0.8ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (357) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (547) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 Completed 200 OK in 46ms (Views: 20.4ms | ActiveRecord: 5.0ms)  (2.6ms) ROLLBACK  (1.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:07', '2012-11-28 22:58:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:07', 'User', 'f7983cd69b84e4ca9c5b99643ab34f54', 209, 'User', '2012-11-28 22:58:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:07', NULL, NULL, NULL, '2012-11-28 22:58:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:07', `updated_at` = '2012-11-28 22:58:07', `subdomain` = 'account548' WHERE `accounts`.`id` = 548 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (548, 209) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696ff5a3ae_1ced80435d48471e9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 209)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.9ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND (accounts.id = NULL) LIMIT 1 Account Load (1.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 68ms (ActiveRecord: 11.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.4ms) User Load (0.6ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (548, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/548/domains" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"548"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (1.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_548_destroy' LIMIT 1 AccountUser Load (1.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 209 AND `account_users`.`account_id` = 548 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (3.8ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND `accounts`.`id` = 548 LIMIT 1 AccountDomain Load (1.6ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`account_id` = 548 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 548 AND `account_users`.`user_id` = 209 LIMIT 1 AccountRole Load (0.7ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (358) Account Load (2.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (548) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1  (3.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 Completed 200 OK in 54ms (Views: 19.8ms | ActiveRecord: 15.7ms)  (69.2ms) ROLLBACK  (1.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.8ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.9ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:07', '2012-11-28 22:58:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:07') ApiToken Exists (0.8ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (2.5ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:07', 'User', '107d4578bbaef9974655bedcd0b6c958', 210, 'User', '2012-11-28 22:58:07') ApiToken Load (1.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:07', NULL, NULL, NULL, '2012-11-28 22:58:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:07', `updated_at` = '2012-11-28 22:58:07', `subdomain` = 'account549' WHERE `accounts`.`id` = 549 Account Load (2.9ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 SQL (0.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (549, 210) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'owner') AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (1.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'admin') Sent mail to facebook@test.test (13ms) Date: Wed, 28 Nov 2012 20:58:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696ff9f3c4_1ced80435d48472f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (43.7ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 210)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Account Load (1.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 157ms (ActiveRecord: 66.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by DashboardController#index as HTML User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 0.8ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (549, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 64  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/549/domains" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"549"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_549_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 210 AND `account_users`.`account_id` = 549 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND `accounts`.`id` = 549 LIMIT 1 AccountDomain Load (0.9ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`account_id` = 549 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 549 AND `account_users`.`user_id` = 210 LIMIT 1 AccountRole Load (1.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (359) Account Load (8.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (549) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 Completed 200 OK in 162ms (Views: 139.6ms | ActiveRecord: 13.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:07', '2012-11-28 22:58:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:07', 'User', 'eeca8b40b453e2ba5a43342af83219f6', 211, 'User', '2012-11-28 22:58:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:07', NULL, NULL, NULL, '2012-11-28 22:58:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:07', `updated_at` = '2012-11-28 22:58:07', `subdomain` = 'account550' WHERE `accounts`.`id` = 550 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (550, 211) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b696ffed837_1ced80435d4847385@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 211)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (550, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 550 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 752  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/550/domains" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"550"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_550_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND `accounts`.`id` = 550 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`account_id` = 550 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 550 AND `account_users`.`user_id` = 211 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (360) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (550) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 Completed 200 OK in 23ms (Views: 10.6ms | ActiveRecord: 4.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:08', '2012-11-28 22:58:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:08', 'User', '21de9096919296e7b5fb59d809e3f13a', 212, 'User', '2012-11-28 22:58:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:08', NULL, NULL, NULL, '2012-11-28 22:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:08', `updated_at` = '2012-11-28 22:58:08', `subdomain` = 'account551' WHERE `accounts`.`id` = 551 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (551, 212) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69700138d4_1ced80435d48474d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 212)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 551 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 754  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/551/user/212/roles" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"551", "user_id"=>"212"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 212 AND `account_users`.`account_id` = 551 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND `accounts`.`id` = 551 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 Completed 200 OK in 30ms (Views: 16.1ms | ActiveRecord: 3.8ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:08', '2012-11-28 22:58:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:08', 'User', 'e394dec9abf87827d09bd31d4e2c8a2a', 213, 'User', '2012-11-28 22:58:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:08', NULL, NULL, NULL, '2012-11-28 22:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:08', `updated_at` = '2012-11-28 22:58:08', `subdomain` = 'account552' WHERE `accounts`.`id` = 552 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (552, 213) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970030060_1ced80435d484750@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 213)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 552 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 756  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/552/user/213/roles" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"552", "user_id"=>"213"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 213 AND `account_users`.`account_id` = 552 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND `accounts`.`id` = 552 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 Completed 200 OK in 123ms (Views: 13.2ms | ActiveRecord: 4.4ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:08', '2012-11-28 22:58:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:08', 'User', '520937daf9518d55bd040eadc65f290a', 214, 'User', '2012-11-28 22:58:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:08', NULL, NULL, NULL, '2012-11-28 22:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:08', `updated_at` = '2012-11-28 22:58:08', `subdomain` = 'account553' WHERE `accounts`.`id` = 553 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 553 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (553, 214) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697006323a_1ced80435d48476d4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 214)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 553 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 758  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/553/user/214/roles" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"553", "user_id"=>"214"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 214 AND `account_users`.`account_id` = 553 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND `accounts`.`id` = 553 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 Completed 200 OK in 26ms (Views: 13.0ms | ActiveRecord: 3.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:08', '2012-11-28 22:58:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:08', 'User', '22e96ee4339597ed0c012c64988915c2', 215, 'User', '2012-11-28 22:58:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:08', NULL, NULL, NULL, '2012-11-28 22:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:08', `updated_at` = '2012-11-28 22:58:08', `subdomain` = 'account554' WHERE `accounts`.`id` = 554 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (554, 215) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697007ded8_1ced80435d484777e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 215)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 554 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 760  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (1.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/554/user/215/roles" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"554", "user_id"=>"215"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 215 AND `account_users`.`account_id` = 554 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (4.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND `accounts`.`id` = 554 LIMIT 1 AccountUser Load (3.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (13.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (2.8ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (2.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'guest' LIMIT 1  (15.8ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 Completed 200 OK in 113ms (Views: 29.7ms | ActiveRecord: 44.8ms)  (27.3ms) ROLLBACK  (10.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (9.8ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:08', '2012-11-28 22:58:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:08') ApiToken Exists (5.0ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (1.9ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:08', 'User', '86a97d62783906ec45ab8f6eac4a2dfa', 216, 'User', '2012-11-28 22:58:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:08', NULL, NULL, NULL, '2012-11-28 22:58:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:08', `updated_at` = '2012-11-28 22:58:08', `subdomain` = 'account555' WHERE `accounts`.`id` = 555 Account Load (1.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1 SQL (2.6ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (555, 216) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (2.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin') Sent mail to facebook@test.test (13ms) Date: Wed, 28 Nov 2012 20:58:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69700d510e_1ced80435d484783a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 216)  (2.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (2.7ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND (accounts.id = NULL) LIMIT 1 Account Load (1.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 193ms (ActiveRecord: 34.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (3.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555)  (4.9ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:09', 'notowner@account.test', '$2a$04$mxjVprLf.L5q5b1yAkerFOqYhNUoeII0cRf9fHUD8gBCa74VdyNd6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:09') ApiToken Exists (1.9ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (2.5ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:09', 'User', '0302b51095cabc92c8700008d00993cd', 217, 'User', '2012-11-28 22:58:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:09', NULL, NULL, NULL, '2012-11-28 22:58:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:09', `updated_at` = '2012-11-28 22:58:09', `subdomain` = 'account556' WHERE `accounts`.`id` = 556 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 556 LIMIT 1 SQL (10.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (556, 217) AccountRole Exists (4.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (2.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (1.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'admin') Sent mail to notowner@account.test (27ms) Date: Wed, 28 Nov 2012 20:58:09 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b697016cb56_1ced80435d4847992@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (5.6ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:09', 'jabanilson', NULL, 1, '2012-11-28 22:58:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:09', `updated_at` = '2012-11-28 22:58:09', `subdomain` = 'account557' WHERE `accounts`.`id` = 557  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (557, 217) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (1.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (3.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (1.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1  (2.2ms) UPDATE `account_users` SET `account_id` = 555 WHERE `account_users`.`id` = 367  (2.9ms) RELEASE SAVEPOINT active_record_1  (2.4ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 555 AND name = 'owner') SQL (0.8ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 761 SQL (2.6ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 762  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (1.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (8.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/555/user/216/roles" for 127.0.0.1 at 2012-11-28 20:58:09 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"555", "user_id"=>"216"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 216 AND `account_users`.`account_id` = 555 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (4.0ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND `accounts`.`id` = 555 LIMIT 1 AccountUser Load (2.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (1.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 Completed 200 OK in 72ms (Views: 31.8ms | ActiveRecord: 11.0ms)  (48.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:09', '2012-11-28 22:58:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:09', 'User', 'af2c6c443c88b6fe006e22c8e82964c9', 218, 'User', '2012-11-28 22:58:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (2.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:09', NULL, NULL, NULL, '2012-11-28 22:58:09')  (2.0ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:09', `updated_at` = '2012-11-28 22:58:09', `subdomain` = 'account558' WHERE `accounts`.`id` = 558 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (558, 218) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'owner') AccountRole Exists (9.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin') Sent mail to facebook@test.test (38ms) Date: Wed, 28 Nov 2012 20:58:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69701c9ff7_1ced80435d48480a0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 218)  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 195ms (ActiveRecord: 30.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:09 -0200 Processing by DashboardController#index as HTML User Load (3.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 Completed 200 OK in 10ms (Views: 3.6ms | ActiveRecord: 3.8ms) User Load (2.6ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (4.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558)  (0.6ms) SAVEPOINT active_record_1 User Exists (1.8ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (1.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:09', 'notowner@account.test', '$2a$04$j8NIBKqN1qUFBmQuSoJTveCL2WLnyVjZfbLYJr8VZlTDJ7kTwuyv6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:09') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (1.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (1.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:09', 'User', '8bcb0e78d25a3ff69ff9a7ea66490370', 219, 'User', '2012-11-28 22:58:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (1.9ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:09', NULL, NULL, NULL, '2012-11-28 22:58:09')  (0.6ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:09', `updated_at` = '2012-11-28 22:58:09', `subdomain` = 'account559' WHERE `accounts`.`id` = 559 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 559 LIMIT 1 SQL (2.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (559, 219) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (2.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (2.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'admin') Sent mail to notowner@account.test (26ms) Date: Wed, 28 Nov 2012 20:58:10 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b697027e5a_1ced80435d4848184@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (1.0ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:10', 'jabanilson', NULL, 1, '2012-11-28 22:58:10')  (1.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:10', `updated_at` = '2012-11-28 22:58:10', `subdomain` = 'account560' WHERE `accounts`.`id` = 560  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (560, 219) AccountRole Exists (1.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (2.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'admin')  (5.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 558 WHERE `account_users`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 558 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 768 SQL (1.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 769  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (2.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/558/user/218/roles" for 127.0.0.1 at 2012-11-28 20:58:10 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"558", "user_id"=>"218"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 218 AND `account_users`.`account_id` = 558 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (6.6ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (1.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND `accounts`.`id` = 558 LIMIT 1 AccountUser Load (1.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (2.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 Completed 200 OK in 72ms (Views: 25.7ms | ActiveRecord: 15.4ms)  (55.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (1.7ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:10', '2012-11-28 22:58:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:10') ApiToken Exists (2.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (2.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:10', 'User', 'a54f623a82ab5e2df14d7c1af65ffc81', 220, 'User', '2012-11-28 22:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.7ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:10', NULL, NULL, NULL, '2012-11-28 22:58:10')  (3.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:10', `updated_at` = '2012-11-28 22:58:10', `subdomain` = 'account561' WHERE `accounts`.`id` = 561 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (561, 220) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697025b3e3_1ced80435d484822d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (2.3ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 220)  (4.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (5.0ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND (accounts.id = NULL) LIMIT 1 Account Load (3.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 118ms (ActiveRecord: 32.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:10 -0200 Processing by DashboardController#index as HTML User Load (1.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 Completed 200 OK in 10ms (Views: 3.5ms | ActiveRecord: 1.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (1.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:10', 'notowner@account.test', '$2a$04$W0aZ4/4uy3d87N3aAIDFce3VC/sVifCT/16nGMn7W4FQEmp/wgCLO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:10') ApiToken Exists (3.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (1.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.7ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:10', 'User', '07f9a4fa656c14e4feda0aef4b798a45', 221, 'User', '2012-11-28 22:58:10') ApiToken Load (3.1ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:10', NULL, NULL, NULL, '2012-11-28 22:58:10')  (0.6ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:10', `updated_at` = '2012-11-28 22:58:10', `subdomain` = 'account562' WHERE `accounts`.`id` = 562 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 562 LIMIT 1 SQL (2.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (562, 221) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (1.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'admin') Sent mail to notowner@account.test (13ms) Date: Wed, 28 Nov 2012 20:58:10 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6970283014_1ced80435d48483cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:10', 'jabanilson', NULL, 1, '2012-11-28 22:58:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:10', `updated_at` = '2012-11-28 22:58:10', `subdomain` = 'account563' WHERE `accounts`.`id` = 563  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (563, 221) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (3.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'owner') AccountRole Exists (2.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (1.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 561 WHERE `account_users`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1  (2.0ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 561 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 775 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 776  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/561/user/220/roles" for 127.0.0.1 at 2012-11-28 20:58:10 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"561", "user_id"=>"220"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 220 AND `account_users`.`account_id` = 561 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND `accounts`.`id` = 561 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 Completed 200 OK in 39ms (Views: 21.6ms | ActiveRecord: 3.7ms)  (96.2ms) ROLLBACK  (0.3ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:10', '2012-11-28 22:58:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:10', 'User', 'ba68beb8349bb4ecd74b4b183bf41d10', 222, 'User', '2012-11-28 22:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:10', NULL, NULL, NULL, '2012-11-28 22:58:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:10', `updated_at` = '2012-11-28 22:58:10', `subdomain` = 'account564' WHERE `accounts`.`id` = 564 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (564, 222) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970357f2_1ced80435d48484cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 222)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.6ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (1.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:11', 'notowner@account.test', '$2a$04$w3x8mCHS93G79gNBNlyzB.5oM1.qlVuaoj0FfByWlxHf58EJ/wefy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:11') ApiToken Exists (4.0ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:11', 'User', 'ff562c9fb5db9f65cd7a2349ced57810', 223, 'User', '2012-11-28 22:58:11') ApiToken Load (1.8ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:11', NULL, NULL, NULL, '2012-11-28 22:58:11')  (4.7ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:11', `updated_at` = '2012-11-28 22:58:11', `subdomain` = 'account565' WHERE `accounts`.`id` = 565 Account Load (5.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 565 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (565, 223) AccountRole Exists (1.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (5.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'owner') AccountRole Exists (9.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (42.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (1.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'admin') Sent mail to notowner@account.test (47ms) Date: Wed, 28 Nov 2012 20:58:11 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b697033430b_1ced80435d48485b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (3.3ms) RELEASE SAVEPOINT active_record_1  (4.6ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:11', 'jabanilson', NULL, 1, '2012-11-28 22:58:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:11', `updated_at` = '2012-11-28 22:58:11', `subdomain` = 'account566' WHERE `accounts`.`id` = 566  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (566, 223) AccountRole Exists (3.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'admin')  (3.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 564 WHERE `account_users`.`id` = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 564 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 782 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 783  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/564/user/222/roles" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"564", "user_id"=>"222"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 AccountUser Load (2.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 222 AND `account_users`.`account_id` = 564 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (3.6ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (3.0ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND `accounts`.`id` = 564 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (2.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (4.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (7.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (1.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 Completed 200 OK in 78ms (Views: 36.5ms | ActiveRecord: 25.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:11', '2012-11-28 22:58:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:11') ApiToken Exists (0.9ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (2.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.6ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:11', 'User', '87fb45c329d0c0c0b445fce5975d1b95', 224, 'User', '2012-11-28 22:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:11', NULL, NULL, NULL, '2012-11-28 22:58:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:11', `updated_at` = '2012-11-28 22:58:11', `subdomain` = 'account567' WHERE `accounts`.`id` = 567 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 567 LIMIT 1 SQL (9.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (567, 224) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.7ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'admin') Sent mail to facebook@test.test (12ms) Date: Wed, 28 Nov 2012 20:58:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69703781dd_1ced80435d4848682@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 224)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 106ms (ActiveRecord: 19.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1 Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Account Load (3.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 224 AND `account_users`.`account_id` = 567 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (377) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (567) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Completed 200 OK in 31ms (Views: 22.8ms | ActiveRecord: 5.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (13.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:11', '2012-11-28 22:58:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:11', 'User', 'd9530825f3c2240a617e6850557b274b', 225, 'User', '2012-11-28 22:58:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:11', NULL, NULL, NULL, '2012-11-28 22:58:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:11', `updated_at` = '2012-11-28 22:58:11', `subdomain` = 'account568' WHERE `accounts`.`id` = 568 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 568 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (568, 225) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'admin') Sent mail to facebook@test.test (17ms) Date: Wed, 28 Nov 2012 20:58:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69703ccc56_1ced80435d48487c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 225)  (8.8ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AND (accounts.id = NULL) LIMIT 1 Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 306ms (ActiveRecord: 19.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by DashboardController#index as HTML User Load (4.9ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1 Completed 200 OK in 11ms (Views: 3.7ms | ActiveRecord: 4.9ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (7.9ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (3.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (2.9ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Completed 200 OK in 42ms (Views: 24.3ms | ActiveRecord: 15.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (1.2ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (2.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) Completed 200 OK in 35ms (Views: 22.3ms | ActiveRecord: 5.1ms)  (118.4ms) ROLLBACK  (0.7ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (2.5ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:12', '2012-11-28 22:58:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:12') ApiToken Exists (1.0ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:12', 'User', 'df04d10062bc3469129abaaa6386e302', 226, 'User', '2012-11-28 22:58:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:12', NULL, NULL, NULL, '2012-11-28 22:58:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:12', `updated_at` = '2012-11-28 22:58:12', `subdomain` = 'account569' WHERE `accounts`.`id` = 569 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 569 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (569, 226) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:58:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970432139_1ced80435d484881@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 226)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 81ms (ActiveRecord: 9.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.9ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) Completed 200 OK in 22ms (Views: 16.2ms | ActiveRecord: 2.7ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Completed 200 OK in 23ms (Views: 17.5ms | ActiveRecord: 2.6ms)  (47.3ms) ROLLBACK  (0.3ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (1.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:12', '2012-11-28 22:58:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:12', 'User', '95c5ec18fc8bc6ba76828e7437e24b39', 227, 'User', '2012-11-28 22:58:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:12', NULL, NULL, NULL, '2012-11-28 22:58:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:12', `updated_at` = '2012-11-28 22:58:12', `subdomain` = 'account570' WHERE `accounts`.`id` = 570 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 570 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (570, 227) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69704629c6_1ced80435d48489ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 227)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AND (accounts.id = NULL) LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 76ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 21ms (Views: 15.4ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 17ms (Views: 13.5ms | ActiveRecord: 1.8ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 380\n account_id: 570\n user_id: 227\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_380_destroy', '2012-11-28 22:58:12', '2012-11-28 22:58:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:12', 'jabanilson', NULL, 1, '2012-11-28 22:58:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:12', `updated_at` = '2012-11-28 22:58:12', `subdomain` = 'account571' WHERE `accounts`.`id` = 571  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (571, 227) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 19ms (Views: 14.6ms | ActiveRecord: 1.8ms)  (7.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:12', '2012-11-28 22:58:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.9ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:12', 'User', '2aafa9abb28ccbc49d62bf17e37bd4ea', 228, 'User', '2012-11-28 22:58:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:12', NULL, NULL, NULL, '2012-11-28 22:58:12')  (0.7ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:12', `updated_at` = '2012-11-28 22:58:12', `subdomain` = 'account572' WHERE `accounts`.`id` = 572 Account Load (1.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (572, 228) AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'owner') AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'admin') Sent mail to facebook@test.test (48ms) Date: Wed, 28 Nov 2012 20:58:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69704d1d45_1ced80435d48490eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.5ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 228)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 386ms (ActiveRecord: 17.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by DashboardController#index as HTML User Load (3.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 Completed 200 OK in 9ms (Views: 3.3ms | ActiveRecord: 3.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (1.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (1.1ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (2.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 65ms (Views: 56.1ms | ActiveRecord: 5.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (5.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (8.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 57ms (Views: 24.4ms | ActiveRecord: 15.5ms) User Load (7.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (5.0ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228  (0.6ms) SAVEPOINT active_record_1 AccountUser Load (1.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:13', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 382\n account_id: 572\n user_id: 228\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_382_destroy', '2012-11-28 22:58:13', '2012-11-28 22:58:13')  (1.9ms) RELEASE SAVEPOINT active_record_1  (8.3ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:13', 'jabanilson', NULL, 1, '2012-11-28 22:58:13')  (7.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:13', `updated_at` = '2012-11-28 22:58:13', `subdomain` = 'account573' WHERE `accounts`.`id` = 573  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (1.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (2.6ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (573, 228) AccountRole Exists (1.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (28.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'owner') AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (8.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (8.0ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:13', 'jabanilson', NULL, 1, '2012-11-28 22:58:13')  (0.9ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:13', `updated_at` = '2012-11-28 22:58:13', `subdomain` = 'account574' WHERE `accounts`.`id` = 574  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (5.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.7ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (574, 228) AccountRole Exists (7.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (1.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (4.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (5.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (1.7ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 38ms (Views: 31.9ms | ActiveRecord: 3.7ms)  (0.9ms) ROLLBACK  (5.4ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (3.0ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (2.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:13', '2012-11-28 22:58:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (3.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:13', 'User', 'd5816f4f8dc8c98ee295041ef3595be1', 229, 'User', '2012-11-28 22:58:13') ApiToken Load (6.0ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:13', NULL, NULL, NULL, '2012-11-28 22:58:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:13', `updated_at` = '2012-11-28 22:58:13', `subdomain` = 'account575' WHERE `accounts`.`id` = 575 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (575, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (2.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'admin') Sent mail to facebook@test.test (49ms) Date: Wed, 28 Nov 2012 20:58:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697057244d_1ced80435d48491f0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (5.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 229)  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AND (accounts.id = NULL) LIMIT 1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 148ms (ActiveRecord: 28.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Processing by DashboardController#index as HTML User Load (2.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 2.2ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (3.9ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (2.1ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (2.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (1.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 44ms (Views: 28.3ms | ActiveRecord: 11.0ms) User Load (2.6ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (7.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (7.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (2.9ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (1.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (1.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.7ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (1.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 73ms (Views: 55.0ms | ActiveRecord: 15.3ms) User Load (1.7ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:13', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 385\n account_id: 575\n user_id: 229\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_385_destroy', '2012-11-28 22:58:13', '2012-11-28 22:58:13')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:13', 'jabanilson', NULL, 1, '2012-11-28 22:58:13')  (5.8ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:13', `updated_at` = '2012-11-28 22:58:13', `subdomain` = 'account576' WHERE `accounts`.`id` = 576  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (3.9ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (576, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (8.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:13', 'jabanilson', NULL, 1, '2012-11-28 22:58:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:13', `updated_at` = '2012-11-28 22:58:13', `subdomain` = 'account577' WHERE `accounts`.`id` = 577  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (577, 229) AccountRole Exists (2.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (3.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (4.6ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (1.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 36ms (Views: 23.0ms | ActiveRecord: 10.7ms)  (37.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (50.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:13', '2012-11-28 22:58:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:13', 'User', 'd55766e029daff6daabce233370ff7f7', 230, 'User', '2012-11-28 22:58:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:13', NULL, NULL, NULL, '2012-11-28 22:58:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:13', `updated_at` = '2012-11-28 22:58:13', `subdomain` = 'account578' WHERE `accounts`.`id` = 578 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 578 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (578, 230) AccountRole Exists (1.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697068517_1ced80435d484921c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 230)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 135ms (ActiveRecord: 57.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by Iugu::AccountController#index as HTML User Load (122.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 230 AND `account_users`.`account_id` = 578 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (388) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (578) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 139ms (Views: 13.8ms | ActiveRecord: 123.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:14', 'jabanilson', NULL, 1, '2012-11-28 22:58:14')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:14', `updated_at` = '2012-11-28 22:58:14', `subdomain` = 'account579' WHERE `accounts`.`id` = 579  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (579, 230) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/579" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"579"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND `accounts`.`id` = 579 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 579 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 579 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_579_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 49ms (Views: 41.6ms | ActiveRecord: 2.8ms)  (18.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:14', '2012-11-28 22:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:14', 'User', '9ebd4741bf285644d21785b6187fc305', 231, 'User', '2012-11-28 22:58:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:14', NULL, NULL, NULL, '2012-11-28 22:58:14')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:14', `updated_at` = '2012-11-28 22:58:14', `subdomain` = 'account580' WHERE `accounts`.`id` = 580 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 580 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (580, 231) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69706580c2_1ced80435d484936f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 231)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 72ms (ActiveRecord: 5.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 231 AND `account_users`.`account_id` = 580 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (390) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (580) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 182ms (Views: 177.6ms | ActiveRecord: 1.9ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:14', 'jabanilson', NULL, 1, '2012-11-28 22:58:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:14', `updated_at` = '2012-11-28 22:58:14', `subdomain` = 'account581' WHERE `accounts`.`id` = 581  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (581, 231) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/581" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"581"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND `accounts`.`id` = 581 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 581 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (2.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 581 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_581_destroy' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 63ms (Views: 53.4ms | ActiveRecord: 5.4ms)  (57.3ms) ROLLBACK  (0.3ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (1.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.7ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:14', '2012-11-28 22:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:14', 'User', '797f2607837646064f19ba8fd882e27e', 232, 'User', '2012-11-28 22:58:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:14', NULL, NULL, NULL, '2012-11-28 22:58:14')  (0.6ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:14', `updated_at` = '2012-11-28 22:58:14', `subdomain` = 'account582' WHERE `accounts`.`id` = 582 Account Load (5.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 582 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (582, 232) AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69706c3974_1ced80435d4849434@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 232)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 90ms (ActiveRecord: 15.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 232 AND `account_users`.`account_id` = 582 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (392) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (582) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 16ms (Views: 12.4ms | ActiveRecord: 1.8ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:14', 'jabanilson', NULL, 1, '2012-11-28 22:58:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:14', `updated_at` = '2012-11-28 22:58:14', `subdomain` = 'account583' WHERE `accounts`.`id` = 583  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (583, 232) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 583 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 822  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/583" for 127.0.0.1 at 2012-11-28 20:58:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"583"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND `accounts`.`id` = 583 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 583 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 583 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_583_destroy' LIMIT 1  (3.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 246ms (Views: 236.0ms | ActiveRecord: 6.2ms)  (15.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:15', '2012-11-28 22:58:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:15', 'User', '5beb20480cfa85743a86ebbd00b1c077', 233, 'User', '2012-11-28 22:58:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:15', NULL, NULL, NULL, '2012-11-28 22:58:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:15', `updated_at` = '2012-11-28 22:58:15', `subdomain` = 'account584' WHERE `accounts`.`id` = 584 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 584 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (584, 233) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970730763_1ced80435d4849581@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 233)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 69ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 233 AND `account_users`.`account_id` = 584 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (394) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (584) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 23ms (Views: 17.7ms | ActiveRecord: 2.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:15', 'jabanilson', NULL, 1, '2012-11-28 22:58:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:15', `updated_at` = '2012-11-28 22:58:15', `subdomain` = 'account585' WHERE `accounts`.`id` = 585  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (585, 233) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 585 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 827  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/585" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"585"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND `accounts`.`id` = 585 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 585 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 585 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (2.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_585_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 49ms (Views: 39.7ms | ActiveRecord: 4.5ms)  (201.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.9ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:15', '2012-11-28 22:58:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:15', 'User', '6ea3fe97c5d55b85912dfbe9f3b4f559', 234, 'User', '2012-11-28 22:58:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:15', NULL, NULL, NULL, '2012-11-28 22:58:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:15', `updated_at` = '2012-11-28 22:58:15', `subdomain` = 'account586' WHERE `accounts`.`id` = 586 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 586 LIMIT 1 SQL (1.7ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (586, 234) AccountRole Exists (3.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (1.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'owner') AccountRole Exists (5.8ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'admin') Sent mail to facebook@test.test (14ms) Date: Wed, 28 Nov 2012 20:58:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697079c734_1ced80435d4849665@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (2.2ms) RELEASE SAVEPOINT active_record_1  (3.3ms) SAVEPOINT active_record_1 SQL (23.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 234)  (8.6ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND (accounts.id = NULL) LIMIT 1 Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 168ms (ActiveRecord: 57.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by DashboardController#index as HTML User Load (9.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Completed 200 OK in 16ms (Views: 3.5ms | ActiveRecord: 9.8ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 234 AND `account_users`.`account_id` = 586 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (396) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (586) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 19ms (Views: 14.7ms | ActiveRecord: 1.9ms) User Load (0.9ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:15', 'jabanilson', NULL, 1, '2012-11-28 22:58:15')  (1.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:15', `updated_at` = '2012-11-28 22:58:15', `subdomain` = 'account587' WHERE `accounts`.`id` = 587  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.9ms) SAVEPOINT active_record_1 User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (587, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (3.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 587 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 831  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/587" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"587"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Account Load (1.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND `accounts`.`id` = 587 LIMIT 1 AccountDomain Load (0.7ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 587 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 AccountRole Load (0.9ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 587 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_587_destroy' LIMIT 1  (1.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 71ms (Views: 57.5ms | ActiveRecord: 7.6ms)  (23.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (8.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:15', '2012-11-28 22:58:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:15') ApiToken Exists (5.7ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:15', 'User', 'b22451a6e734405305ac48a73f70af77', 235, 'User', '2012-11-28 22:58:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:15', NULL, NULL, NULL, '2012-11-28 22:58:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:15', `updated_at` = '2012-11-28 22:58:15', `subdomain` = 'account588' WHERE `accounts`.`id` = 588 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 588 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (588, 235) AccountRole Exists (1.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'admin') Sent mail to facebook@test.test (22ms) Date: Wed, 28 Nov 2012 20:58:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697085fb7e_1ced80435d48497b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.7ms) RELEASE SAVEPOINT active_record_1  (4.0ms) SAVEPOINT active_record_1 SQL (10.0ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 235)  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (3.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 521ms (ActiveRecord: 40.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:16 -0200 Processing by DashboardController#index as HTML User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.8ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (3.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AccountUser Load (1.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 235 AND `account_users`.`account_id` = 588 LIMIT 1 AccountRole Load (1.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (398) Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (588) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 35ms (Views: 25.5ms | ActiveRecord: 6.7ms) User Load (1.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (1.5ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (2.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:16', 'jabanilson', NULL, 1, '2012-11-28 22:58:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:16', `updated_at` = '2012-11-28 22:58:16', `subdomain` = 'account589' WHERE `accounts`.`id` = 589  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (3.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (589, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (3.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (4.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'owner') AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (6.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (11.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 589 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 835  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/589" for 127.0.0.1 at 2012-11-28 20:58:16 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"589"} User Load (4.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Account Load (15.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND `accounts`.`id` = 589 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 589 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (19.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 AccountRole Load (0.7ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (6.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 589 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (8.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_589_destroy' LIMIT 1  (4.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 165ms (Views: 72.8ms | ActiveRecord: 60.5ms)  (4.5ms) ROLLBACK  (0.3ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:16', '2012-11-28 22:58:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:16', 'User', 'f09b21cdb57cd0573e662072b9a35c2b', 236, 'User', '2012-11-28 22:58:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:16', NULL, NULL, NULL, '2012-11-28 22:58:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:16', `updated_at` = '2012-11-28 22:58:16', `subdomain` = 'account590' WHERE `accounts`.`id` = 590 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 590 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (590, 236) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69708e04d3_1ced80435d484982@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 236)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 79ms (ActiveRecord: 9.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (2.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Account Load (2.7ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AccountUser Load (5.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 236 AND `account_users`.`account_id` = 590 LIMIT 1 AccountRole Load (7.8ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (400) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (590) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 46ms (Views: 21.3ms | ActiveRecord: 20.4ms) User Load (3.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:17', 'jabanilson', NULL, 1, '2012-11-28 22:58:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:17', `updated_at` = '2012-11-28 22:58:17', `subdomain` = 'account591' WHERE `accounts`.`id` = 591  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (3.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (591, 236) AccountRole Exists (1.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (2.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 591 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 839  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/591" for 127.0.0.1 at 2012-11-28 20:58:17 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"591"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND `accounts`.`id` = 591 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 591 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (2.8ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 591 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (1.8ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_591_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 50ms (Views: 37.6ms | ActiveRecord: 6.9ms)  (29.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:17', '2012-11-28 22:58:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:17') ApiToken Exists (2.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (3.0ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (3.0ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:17', 'User', 'f1079d22dc6b77c59ebf66cbb364678b', 237, 'User', '2012-11-28 22:58:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (2.8ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:17', NULL, NULL, NULL, '2012-11-28 22:58:17')  (2.8ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:17', `updated_at` = '2012-11-28 22:58:17', `subdomain` = 'account592' WHERE `accounts`.`id` = 592 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 592 LIMIT 1 SQL (3.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (592, 237) AccountRole Exists (2.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'admin') Sent mail to facebook@test.test (16ms) Date: Wed, 28 Nov 2012 20:58:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970943b51_1ced80435d4849988@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (12.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 237)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (6.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 170ms (ActiveRecord: 42.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:17 -0200 Processing by DashboardController#index as HTML User Load (10.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Completed 200 OK in 19ms (Views: 3.9ms | ActiveRecord: 10.2ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (17.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Account Load (6.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 237 AND `account_users`.`account_id` = 592 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (402) Account Load (8.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (592) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 69ms (Views: 32.5ms | ActiveRecord: 33.2ms) User Load (1.7ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (3.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.9ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:17', 'jabanilson', NULL, 1, '2012-11-28 22:58:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:17', `updated_at` = '2012-11-28 22:58:17', `subdomain` = 'account593' WHERE `accounts`.`id` = 593  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (4.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (593, 237) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (1.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.9ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.6ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 593 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 843  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 20:58:17 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 44ms (Views: 33.0ms | ActiveRecord: 4.0ms) Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 20:58:17 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 38ms (Views: 30.0ms | ActiveRecord: 3.3ms)  (175.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:18', '2012-11-28 22:58:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:18', 'User', '3e3c060be550f23c2641c93e53ea22bf', 238, 'User', '2012-11-28 22:58:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:18', NULL, NULL, NULL, '2012-11-28 22:58:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:18', `updated_at` = '2012-11-28 22:58:18', `subdomain` = 'account594' WHERE `accounts`.`id` = 594 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 594 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (594, 238) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970a2659d_1ced80435d48500d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 238)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 62ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 238 AND `account_users`.`account_id` = 594 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (404) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (594) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 21ms (Views: 16.1ms | ActiveRecord: 2.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:18', 'jabanilson', NULL, 1, '2012-11-28 22:58:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:18', `updated_at` = '2012-11-28 22:58:18', `subdomain` = 'account595' WHERE `accounts`.`id` = 595  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (595, 238) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'admin')  (0.6ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (3.9ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 595 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 847  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (4.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (11.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (3.9ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 66ms (Views: 36.4ms | ActiveRecord: 7.1ms) Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (3.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (1.1ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (1.1ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 59ms (Views: 44.9ms | ActiveRecord: 7.8ms)  (28.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (2.0ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:18', '2012-11-28 22:58:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:18') ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:18', 'User', 'a630bbf97c9fbad6138f12a96167d9df', 239, 'User', '2012-11-28 22:58:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:18', NULL, NULL, NULL, '2012-11-28 22:58:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:18', `updated_at` = '2012-11-28 22:58:18', `subdomain` = 'account596' WHERE `accounts`.`id` = 596 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 596 LIMIT 1 SQL (9.0ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (596, 239) AccountRole Exists (7.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (28.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'owner') AccountRole Exists (20.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (3.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'admin') Sent mail to facebook@test.test (20ms) Date: Wed, 28 Nov 2012 20:58:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970a9806d_1ced80435d485013b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 239)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 195ms (ActiveRecord: 76.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by DashboardController#index as HTML User Load (8.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Completed 200 OK in 16ms (Views: 3.7ms | ActiveRecord: 8.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by Iugu::AccountController#index as HTML User Load (3.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 162ms (Views: 153.8ms | ActiveRecord: 5.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:18', 'jabanilson', NULL, 1, '2012-11-28 22:58:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:18', `updated_at` = '2012-11-28 22:58:18', `subdomain` = 'account597' WHERE `accounts`.`id` = 597  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (597, 239) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.7ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 597 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 851  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 44ms (Views: 35.1ms | ActiveRecord: 3.4ms) Started DELETE "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:58:18 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"597"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 597 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 597\n created_at: 2012-11-28 22:58:18.000000000Z\n updated_at: 2012-11-28 22:58:18.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account597\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_597_destroy', '2012-11-28 22:58:19', '2012-11-28 22:58:19')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 14ms (ActiveRecord: 2.1ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 18ms (Views: 14.2ms | ActiveRecord: 1.6ms) Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (3.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (4.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 69ms (Views: 52.1ms | ActiveRecord: 10.6ms) Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (4.0ms) ROLLBACK  (0.6ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.8ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (2.7ms) SAVEPOINT active_record_1 SQL (5.7ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:19', '2012-11-28 22:58:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:19') ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (5.8ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:19', 'User', '31ac96216139a125f973d92449db93dc', 240, 'User', '2012-11-28 22:58:19') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (8.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:19', NULL, NULL, NULL, '2012-11-28 22:58:19')  (2.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:19', `updated_at` = '2012-11-28 22:58:19', `subdomain` = 'account598' WHERE `accounts`.`id` = 598 Account Load (1.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 598 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (598, 240) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (2.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'owner') AccountRole Exists (1.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (1.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'admin') Sent mail to facebook@test.test (14ms) Date: Wed, 28 Nov 2012 20:58:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970b3f751_1ced80435d485023c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 240)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 143ms (ActiveRecord: 37.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by DashboardController#index as HTML User Load (4.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Completed 200 OK in 10ms (Views: 3.0ms | ActiveRecord: 4.1ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 19ms (Views: 14.3ms | ActiveRecord: 1.6ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:19', 'jabanilson', NULL, 1, '2012-11-28 22:58:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:19', `updated_at` = '2012-11-28 22:58:19', `subdomain` = 'account599' WHERE `accounts`.`id` = 599  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (599, 240) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 599 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 855  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 AccountRole Exists (1.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (2.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.9ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (1.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (3.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 65ms (Views: 45.7ms | ActiveRecord: 10.4ms) Started DELETE "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"599"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 599 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 599\n created_at: 2012-11-28 22:58:19.000000000Z\n updated_at: 2012-11-28 22:58:19.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account599\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_599_destroy', '2012-11-29 22:58:19', '2012-11-28 22:58:19')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 187ms (ActiveRecord: 2.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 17ms (Views: 12.8ms | ActiveRecord: 1.9ms) Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 97ms (Views: 35.2ms | ActiveRecord: 3.5ms)  (33.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:19', '2012-11-28 22:58:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:19', 'User', 'b58415b005e207143ca6e4e065d492d9', 241, 'User', '2012-11-28 22:58:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:19', NULL, NULL, NULL, '2012-11-28 22:58:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:19', `updated_at` = '2012-11-28 22:58:19', `subdomain` = 'account600' WHERE `accounts`.`id` = 600 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 600 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (600, 241) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (2.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (48.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:58:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970be5274_1ced80435d48503f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 241)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 110ms (ActiveRecord: 55.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 241 AND `account_users`.`account_id` = 600 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (410) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (600) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 16ms (Views: 12.6ms | ActiveRecord: 1.7ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:19', 'jabanilson', NULL, 1, '2012-11-28 22:58:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:19', `updated_at` = '2012-11-28 22:58:19', `subdomain` = 'account601' WHERE `accounts`.`id` = 601  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (601, 241) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:20', 'notowner@account.test', '$2a$04$extomDhhA2ieTT6D6WThteD2VVz2wIs784DiAueuzCH6sRzIM2l/a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:20', 'User', 'dedb21bea073241f74a9f8d2bd189bca', 242, 'User', '2012-11-28 22:58:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:20', NULL, NULL, NULL, '2012-11-28 22:58:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:20', `updated_at` = '2012-11-28 22:58:20', `subdomain` = 'account602' WHERE `accounts`.`id` = 602 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 602 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (602, 242) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'admin') Sent mail to notowner@account.test (11ms) Date: Wed, 28 Nov 2012 20:58:20 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6970ca98a_1ced80435d4850472@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:20', 'jabanilson', NULL, 1, '2012-11-28 22:58:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:20', `updated_at` = '2012-11-28 22:58:20', `subdomain` = 'account603' WHERE `accounts`.`id` = 603  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (603, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (2.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (4.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 601 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 601 WHERE `account_users`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 601 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 858 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 859  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/601" for 127.0.0.1 at 2012-11-28 20:58:20 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"601"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND `accounts`.`id` = 601 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 601 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 142ms (Views: 134.1ms | ActiveRecord: 4.5ms)  (104.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (2.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (1.6ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:20', '2012-11-28 22:58:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:20') ApiToken Exists (1.0ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.5ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:20', 'User', 'f85ed80fbdb2264b7d44041ece55eb04', 243, 'User', '2012-11-28 22:58:20') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (7.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:20', NULL, NULL, NULL, '2012-11-28 22:58:20')  (0.6ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:20', `updated_at` = '2012-11-28 22:58:20', `subdomain` = 'account604' WHERE `accounts`.`id` = 604 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 604 LIMIT 1 SQL (1.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (604, 243) AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:58:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970c689fa_1ced80435d48505b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 243)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 84ms (ActiveRecord: 21.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:20 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 243 AND `account_users`.`account_id` = 604 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (414) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (604) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:20', 'jabanilson', NULL, 1, '2012-11-28 22:58:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:20', `updated_at` = '2012-11-28 22:58:20', `subdomain` = 'account605' WHERE `accounts`.`id` = 605  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (605, 243) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:20', 'notowner@account.test', '$2a$04$a35fepR7b07u2H2hxhgurOvpgTRYcBMBSLNn7eLEMTdNC/ov33SdK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:20', 'User', '608c13eecf9282299d774399e8741503', 244, 'User', '2012-11-28 22:58:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:20', NULL, NULL, NULL, '2012-11-28 22:58:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:20', `updated_at` = '2012-11-28 22:58:20', `subdomain` = 'account606' WHERE `accounts`.`id` = 606 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 606 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (606, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:58:20 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6970c98970_1ced80435d4850628@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:20', 'jabanilson', NULL, 1, '2012-11-28 22:58:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:20', `updated_at` = '2012-11-28 22:58:20', `subdomain` = 'account607' WHERE `accounts`.`id` = 607  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (607, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 605 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 605 WHERE `account_users`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 605 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 867 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 868  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/605" for 127.0.0.1 at 2012-11-28 20:58:20 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"605"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND `accounts`.`id` = 605 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 605 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 28ms (Views: 21.2ms | ActiveRecord: 3.2ms)  (257.9ms) ROLLBACK  (0.3ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:20', '2012-11-28 22:58:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:20', 'User', '339fc75946e503d40953d98902c99911', 245, 'User', '2012-11-28 22:58:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:20', NULL, NULL, NULL, '2012-11-28 22:58:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:20', `updated_at` = '2012-11-28 22:58:20', `subdomain` = 'account608' WHERE `accounts`.`id` = 608 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 608 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (608, 245) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:58:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970cf193d_1ced80435d48507b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 245)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 245 AND `account_users`.`account_id` = 608 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (418) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (608) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', 'jabanilson', NULL, 1, '2012-11-28 22:58:21')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account609' WHERE `accounts`.`id` = 609  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (609, 245) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:21', 'notowner@account.test', '$2a$04$wSV7H0ltR5z.WF6CpZy.gOfvWMpg2syEaw247Ur8RCqxqz/UbTlga', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:21', 'User', 'f48bad81f4f893b13e456338d8817cd1', 246, 'User', '2012-11-28 22:58:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', NULL, NULL, NULL, '2012-11-28 22:58:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account610' WHERE `accounts`.`id` = 610 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 610 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (610, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:58:21 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6970d14465_1ced80435d4850841@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', 'jabanilson', NULL, 1, '2012-11-28 22:58:21')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account611' WHERE `accounts`.`id` = 611  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (611, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 609 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 609 WHERE `account_users`.`id` = 421  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 609 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 876 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 877  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/609" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"609"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND `accounts`.`id` = 609 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 609 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 29ms (Views: 21.3ms | ActiveRecord: 3.5ms)  (41.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (1.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:21', '2012-11-28 22:58:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:21', 'User', 'fb7a3bca9008a294c6254181067e25a5', 247, 'User', '2012-11-28 22:58:21') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.7ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', NULL, NULL, NULL, '2012-11-28 22:58:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account612' WHERE `accounts`.`id` = 612 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 612 LIMIT 1 SQL (2.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (612, 247) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (1.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (1.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970d41a98_1ced80435d48509a8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 247)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND (accounts.id = NULL) LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 97ms (ActiveRecord: 15.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Account Load (1.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 247 AND `account_users`.`account_id` = 612 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (422) Account Load (7.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (612) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 35ms (Views: 20.5ms | ActiveRecord: 10.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', 'jabanilson', NULL, 1, '2012-11-28 22:58:21')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account613' WHERE `accounts`.`id` = 613  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (613, 247) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:21', 'notowner@account.test', '$2a$04$w1WFX89LPn3Z9C18KMvHjOB5GCW4OFkf6AblcWQchK.vOPyyV7wEG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:21') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:21', 'User', '4fd6ffaf435a639d74a90f60043a4f67', 248, 'User', '2012-11-28 22:58:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', NULL, NULL, NULL, '2012-11-28 22:58:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account614' WHERE `accounts`.`id` = 614 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 614 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (614, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 20:58:21 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6970d807a8_1ced80435d485107d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', 'jabanilson', NULL, 1, '2012-11-28 22:58:21')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account615' WHERE `accounts`.`id` = 615  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (615, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 613 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 613 WHERE `account_users`.`id` = 425  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 613 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 885 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 886  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/613" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"613"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND `accounts`.`id` = 613 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 613 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 28ms (Views: 21.1ms | ActiveRecord: 3.5ms)  (91.0ms) ROLLBACK  (0.7ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (1.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (1.1ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:21', '2012-11-28 22:58:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:21') ApiToken Exists (0.7ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (1.8ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:21', 'User', 'ec9ed724ee92e7af1ee4b041bbe7b7b6', 249, 'User', '2012-11-28 22:58:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.9ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', NULL, NULL, NULL, '2012-11-28 22:58:21')  (2.9ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account616' WHERE `accounts`.`id` = 616 Account Load (4.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 616 LIMIT 1 SQL (3.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (616, 249) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:58:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970dbaa60_1ced80435d485116c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 249)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 92ms (ActiveRecord: 23.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 249 AND `account_users`.`account_id` = 616 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (426) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (616) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:21', 'jabanilson', NULL, 1, '2012-11-28 22:58:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:21', `updated_at` = '2012-11-28 22:58:21', `subdomain` = 'account617' WHERE `accounts`.`id` = 617  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (617, 249) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/617" for 127.0.0.1 at 2012-11-28 20:58:21 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"617"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND `accounts`.`id` = 617 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 617 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 617 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_617_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 34ms (Views: 26.3ms | ActiveRecord: 3.3ms)  (128.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:22', '2012-11-28 22:58:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.9ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:22', 'User', '1d68a2ed751b06533a6a34eaa75f554b', 250, 'User', '2012-11-28 22:58:22') ApiToken Load (10.7ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (6.7ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:22', NULL, NULL, NULL, '2012-11-28 22:58:22')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:22', `updated_at` = '2012-11-28 22:58:22', `subdomain` = 'account618' WHERE `accounts`.`id` = 618 Account Load (3.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 618 LIMIT 1 SQL (2.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (618, 250) AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (5.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (4.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'owner') AccountRole Exists (1.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (1.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'admin') Sent mail to facebook@test.test (17ms) Date: Wed, 28 Nov 2012 20:58:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970e1cf57_1ced80435d4851287@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (4.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 250)  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.9ms) RELEASE SAVEPOINT active_record_1 Account Load (2.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND (accounts.id = NULL) LIMIT 1 Account Load (1.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 137ms (ActiveRecord: 53.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Processing by DashboardController#index as HTML User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.8ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Processing by Iugu::AccountController#index as HTML User Load (1.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1  (2.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Account Load (1.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 250 AND `account_users`.`account_id` = 618 LIMIT 1 AccountRole Load (1.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (428) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (618) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 30ms (Views: 19.7ms | ActiveRecord: 7.1ms) User Load (2.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (2.8ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (2.7ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (5.2ms) SAVEPOINT active_record_1 SQL (3.8ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:22', 'jabanilson', NULL, 1, '2012-11-28 22:58:22')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:22', `updated_at` = '2012-11-28 22:58:22', `subdomain` = 'account619' WHERE `accounts`.`id` = 619  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (1.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (619, 250) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (1.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (1.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'owner') AccountRole Exists (13.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (8.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.7ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/619" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"619"} User Load (10.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND `accounts`.`id` = 619 LIMIT 1 AccountDomain Load (0.6ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 619 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_619_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 203ms (Views: 179.2ms | ActiveRecord: 13.2ms)  (11.4ms) ROLLBACK  (1.3ms) BEGIN  (2.5ms) SAVEPOINT active_record_1 User Exists (9.1ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:22', 'teste@teste.com', '$2a$04$lX7AZ/x3EhLn.hWqcZzKmOIXkmXlreIrGggwu4MKIyqSU7qWd9EFe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (1.8ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:22', 'User', '3e4e78c0068d596d22097d57d4c5d06b', 251, 'User', '2012-11-28 22:58:22') ApiToken Load (3.7ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:22', NULL, NULL, NULL, '2012-11-28 22:58:22')  (0.7ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:22', `updated_at` = '2012-11-28 22:58:22', `subdomain` = 'account620' WHERE `accounts`.`id` = 620 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 620 LIMIT 1 SQL (14.0ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (620, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (8.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (25.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'owner') AccountRole Exists (6.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (4.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'admin') Sent mail to teste@teste.com (9ms) Date: Wed, 28 Nov 2012 20:58:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6970ea5d30_1ced80435d48513d5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (16.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:22', '2012-11-28 22:58:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:22', 'User', '1273d39ebdade85f5b6938306ce40cab', 252, 'User', '2012-11-28 22:58:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:22', NULL, NULL, NULL, '2012-11-28 22:58:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:22', `updated_at` = '2012-11-28 22:58:22', `subdomain` = 'account621' WHERE `accounts`.`id` = 621 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 252) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970eb97b6_1ced80435d4851445@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 252)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 78ms (ActiveRecord: 22.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 251) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 904 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 905  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 903  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (4.8ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Started GET "/settings/account/621/users" for 127.0.0.1 at 2012-11-28 20:58:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"621"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (1.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_621_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 AccountUser Load (1.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AccountRole Load (6.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431, 432) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) AccountRole Exists (12.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (3.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_431_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (10.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 251 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_432_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 Completed 200 OK in 132ms (Views: 88.5ms | ActiveRecord: 37.2ms) User Load (5.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (23.2ms) ROLLBACK  (7.2ms) BEGIN  (1.8ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (2.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:23', 'teste@teste.com', '$2a$04$RZtGDXKiucMQHGJ2zLu3/ukqz2Q3.sQ4y3MfIUxDUiYbI5bEywUai', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:23') ApiToken Exists (2.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (2.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (2.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:23', 'User', '1125ba26a7762999aa832d446e5238a3', 253, 'User', '2012-11-28 22:58:23') ApiToken Load (2.1ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (2.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:23', NULL, NULL, NULL, '2012-11-28 22:58:23')  (2.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:23', `updated_at` = '2012-11-28 22:58:23', `subdomain` = 'account622' WHERE `accounts`.`id` = 622 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 622 LIMIT 1 SQL (3.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (622, 253) AccountRole Exists (2.8ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (4.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'owner') AccountRole Exists (5.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (8.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (6.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'admin') Sent mail to teste@teste.com (22ms) Date: Wed, 28 Nov 2012 20:58:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6970f2d185_1ced80435d4851583@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (3.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (4.9ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (6.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:23', '2012-11-28 22:58:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:23') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (20.6ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (2.6ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:23', 'User', 'c1d4c614b6005c9dea8645cfed920202', 254, 'User', '2012-11-28 22:58:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:23', NULL, NULL, NULL, '2012-11-28 22:58:23')  (1.8ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:23', `updated_at` = '2012-11-28 22:58:23', `subdomain` = 'account623' WHERE `accounts`.`id` = 623 Account Load (3.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (3.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 254) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'owner') AccountRole Exists (2.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:58:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6970f578cb_1ced80435d48516e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 254)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 165ms (ActiveRecord: 51.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 253) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 911 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 912  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 910  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Started GET "/settings/account/623/users" for 127.0.0.1 at 2012-11-28 20:58:23 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"623"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_623_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434, 435) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_434_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 253 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (9.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_435_destroy' LIMIT 1 AccountRole Exists (1.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 Completed 200 OK in 270ms (Views: 251.6ms | ActiveRecord: 14.3ms)  (541.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:24', 'teste@teste.com', '$2a$04$MX.2s5MJBgXmD9ddCwMVCetAIm9ULNuH1TZyjBEWlbWJqGzzHR9d.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:24') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:24', 'User', '77f14ba8788e6809435dc2c4e535b567', 255, 'User', '2012-11-28 22:58:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:24', NULL, NULL, NULL, '2012-11-28 22:58:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:24', `updated_at` = '2012-11-28 22:58:24', `subdomain` = 'account624' WHERE `accounts`.`id` = 624 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 624 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (624, 255) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'admin') Sent mail to teste@teste.com (10ms) Date: Wed, 28 Nov 2012 20:58:24 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69710ade41_1ced80435d48517ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:24', '2012-11-28 22:58:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:24', 'User', 'dfb8fffcbb5dea90f0a76fe2a8306df5', 256, 'User', '2012-11-28 22:58:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:24', NULL, NULL, NULL, '2012-11-28 22:58:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:24', `updated_at` = '2012-11-28 22:58:24', `subdomain` = 'account625' WHERE `accounts`.`id` = 625 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 256) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:58:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69710bf9e6_1ced80435d48518de@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 256)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 76ms (ActiveRecord: 5.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:24 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 255) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 918 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 919  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 917  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Started GET "/settings/account/625/users" for 127.0.0.1 at 2012-11-28 20:58:24 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"625"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_625_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437, 438) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_437_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 255 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_438_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 Completed 200 OK in 35ms (Views: 28.2ms | ActiveRecord: 3.4ms)  (754.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:25', 'teste@teste.com', '$2a$04$A/7itmmLnRGEsvVaRhNWROq4IPp2aZn8LIlts1Nv3gucc7YWFZ9hW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:25') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (1.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:25', 'User', 'eac8fe5eebee3458b36478ec8fbaa607', 257, 'User', '2012-11-28 22:58:25') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:25', NULL, NULL, NULL, '2012-11-28 22:58:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:25', `updated_at` = '2012-11-28 22:58:25', `subdomain` = 'account626' WHERE `accounts`.`id` = 626 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 626 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (626, 257) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'admin') Sent mail to teste@teste.com (10ms) Date: Wed, 28 Nov 2012 20:58:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69711a7586_1ced80435d485193e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:25', '2012-11-28 22:58:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:25') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:25', 'User', '7627b0c7b6494be6e93b42127f5efa40', 258, 'User', '2012-11-28 22:58:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:25', NULL, NULL, NULL, '2012-11-28 22:58:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:25', `updated_at` = '2012-11-28 22:58:25', `subdomain` = 'account627' WHERE `accounts`.`id` = 627 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 258) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69711b33bf_1ced80435d4852099@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 258)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 AND (accounts.id = NULL) LIMIT 1 Account Load (2.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:25 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) User Load (12.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (3.0ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (20.6ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (2.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.9ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 257) AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (9.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (1.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'admin')  (2.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (4.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441) Account Load (1.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627)  (0.5ms) SAVEPOINT active_record_1 AccountUser Load (2.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 925 SQL (3.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 926  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (2.8ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.7ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 924  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Started GET "/settings/account/627/users" for 127.0.0.1 at 2012-11-28 20:58:25 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"627"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_627_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440, 441) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_440_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 257 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_441_destroy' LIMIT 1 AccountRole Exists (0.8ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 Completed 200 OK in 35ms (Views: 27.0ms | ActiveRecord: 5.0ms)  (54.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:26', 'teste@teste.com', '$2a$04$r7PlwNPnR3n8g8HmO7QazeMCVPOWBop6OZym8/WKPUIZ4q9WaGYGe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:26', 'User', '2f97cde19d1d63ddc0fa4345562ca8f0', 259, 'User', '2012-11-28 22:58:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:26', NULL, NULL, NULL, '2012-11-28 22:58:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:26', `updated_at` = '2012-11-28 22:58:26', `subdomain` = 'account628' WHERE `accounts`.`id` = 628 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 628 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (628, 259) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:26 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6971224926_1ced80435d485216a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:26', '2012-11-28 22:58:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:26', 'User', '1a19ea925a8943128377da5ca1eb0c55', 260, 'User', '2012-11-28 22:58:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:26', NULL, NULL, NULL, '2012-11-28 22:58:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:26', `updated_at` = '2012-11-28 22:58:26', `subdomain` = 'account629' WHERE `accounts`.`id` = 629 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 260) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:58:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69712309a2_1ced80435d4852294@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 260)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 259) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 932 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 933  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 931  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Started GET "/settings/account/629/users" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"629"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_629_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443, 444) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_443_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 259 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_444_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 4.7ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:26', 'teste@teste.com', '$2a$04$vR/GpLT78VW6EW2UjE0SAuzMbTR7N3vhsdkqooMeY/WiPtXk1YxVG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:26', 'User', 'b1960126d99d27984854a1ffde9ead9c', 261, 'User', '2012-11-28 22:58:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:26', NULL, NULL, NULL, '2012-11-28 22:58:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:26', `updated_at` = '2012-11-28 22:58:26', `subdomain` = 'account630' WHERE `accounts`.`id` = 630 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 630 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (630, 261) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:26 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6971253d31_1ced80435d48523a0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:26', '2012-11-28 22:58:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:26', 'User', 'f63fdf52f28761ddf8bf0e40a07ae41d', 262, 'User', '2012-11-28 22:58:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:26', NULL, NULL, NULL, '2012-11-28 22:58:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:26', `updated_at` = '2012-11-28 22:58:26', `subdomain` = 'account631' WHERE `accounts`.`id` = 631 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 262) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697125ed44_1ced80435d48524ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 262)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 261) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 940 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 941  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 939  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Started GET "/settings/account/631/users" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"631"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_631_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446, 447) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_446_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 261 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_447_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 Completed 200 OK in 38ms (Views: 28.8ms | ActiveRecord: 5.0ms)  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:26', 'teste@teste.com', '$2a$04$.fHEk7RbebUxEjf2CNz4tebiu8DVfc/GmoXpTvoNUrngBy1JRNUs6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:26', 'User', '2997eec0cb47ff05364073ae0b862356', 263, 'User', '2012-11-28 22:58:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:26', NULL, NULL, NULL, '2012-11-28 22:58:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:26', `updated_at` = '2012-11-28 22:58:26', `subdomain` = 'account632' WHERE `accounts`.`id` = 632 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 632 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (632, 263) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'admin') Sent mail to teste@teste.com (20ms) Date: Wed, 28 Nov 2012 20:58:26 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69712bb271_1ced80435d48525b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (1.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (2.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:26', '2012-11-28 22:58:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:26') ApiToken Exists (4.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (3.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:26', 'User', 'fdf00ea65474382c56701f51d0098d49', 264, 'User', '2012-11-28 22:58:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (1.6ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:26', NULL, NULL, NULL, '2012-11-28 22:58:26')  (11.0ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:26', `updated_at` = '2012-11-28 22:58:26', `subdomain` = 'account633' WHERE `accounts`.`id` = 633 Account Load (3.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (2.8ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 264) AccountRole Exists (1.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (2.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'owner') AccountRole Exists (1.8ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (10.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin') Sent mail to facebook@test.test (31ms) Date: Wed, 28 Nov 2012 20:58:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69712e0968_1ced80435d48526de@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (4.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 264)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 160ms (ActiveRecord: 54.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:26 -0200 Processing by DashboardController#index as HTML User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.7ms) User Load (2.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (1.7ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (17.4ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 263) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (1.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'owner') AccountRole Exists (6.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (2.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (2.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (1.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (3.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (1.8ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 948 SQL (2.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 949  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (2.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (2.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (2.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (2.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449  (2.0ms) SAVEPOINT active_record_1 AccountUser Load (2.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1  (3.0ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (3.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 947  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin')  (2.4ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Started GET "/settings/account/633/users" for 127.0.0.1 at 2012-11-28 20:58:27 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"633"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_633_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449, 450) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_449_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 263 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_450_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1  (10.1ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 Completed 200 OK in 64ms (Views: 43.7ms | ActiveRecord: 14.2ms)  (2.8ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:27', 'teste@teste.com', '$2a$04$HcyzZVgPaawOIAzQxYnTreUbcVH6HRGhmw1ETPGK1bQpn3hYVVGcu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (6.7ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:27', 'User', 'bfe9c298bd33b5b4eea8b9b44f793e20', 265, 'User', '2012-11-28 22:58:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (5.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:27', NULL, NULL, NULL, '2012-11-28 22:58:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:27', `updated_at` = '2012-11-28 22:58:27', `subdomain` = 'account634' WHERE `accounts`.`id` = 634 Account Load (10.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 634 LIMIT 1 SQL (6.8ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (634, 265) AccountRole Exists (6.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'owner') AccountRole Exists (9.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (6.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'admin') Sent mail to teste@teste.com (47ms) Date: Wed, 28 Nov 2012 20:58:27 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6971350183_1ced80435d4852720@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (22.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (4.0ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.6ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:27', '2012-11-28 22:58:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:27') ApiToken Exists (5.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.9ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:27', 'User', 'cc26c9ddba4bf692c9ded50654e0560e', 266, 'User', '2012-11-28 22:58:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.8ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:27', NULL, NULL, NULL, '2012-11-28 22:58:27')  (3.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:27', `updated_at` = '2012-11-28 22:58:27', `subdomain` = 'account635' WHERE `accounts`.`id` = 635 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.8ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 266) AccountRole Exists (5.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (3.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (19.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'owner') AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (2.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (6.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin') Sent mail to facebook@test.test (14ms) Date: Wed, 28 Nov 2012 20:58:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697138ba88_1ced80435d4852816@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.8ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 266)  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (3.0ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 187ms (ActiveRecord: 66.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:27 -0200 Processing by DashboardController#index as HTML User Load (3.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 3.3ms) User Load (1.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 265) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (2.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'admin')  (2.3ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 956 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 957  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 955  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 AccountRole Exists (6.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (2.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (2.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin')  (7.3ms) RELEASE SAVEPOINT active_record_1 User Load (1.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (6.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Started GET "/settings/account/635/users" for 127.0.0.1 at 2012-11-28 20:58:27 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"635"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_635_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452, 453) Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 AccountUser Load (4.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) AccountRole Exists (13.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (3.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_452_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (2.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 265 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (4.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_453_destroy' LIMIT 1 AccountRole Exists (5.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1  (3.9ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 Completed 200 OK in 151ms (Views: 104.2ms | ActiveRecord: 39.9ms)  (3.1ms) ROLLBACK  (2.3ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 User Exists (2.8ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (2.1ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:27', 'teste@teste.com', '$2a$04$643l8ZC6ZekYnkK8ojQ0aOeapdv8Ov37AAUO2uX.iWtS.nq8wxGF6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:27', 'User', 'f790118a4fe2983232e7b65ff41fe22d', 267, 'User', '2012-11-28 22:58:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:27', NULL, NULL, NULL, '2012-11-28 22:58:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:27', `updated_at` = '2012-11-28 22:58:27', `subdomain` = 'account636' WHERE `accounts`.`id` = 636 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 636 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (636, 267) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'admin') Sent mail to teste@teste.com (33ms) Date: Wed, 28 Nov 2012 20:58:27 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69713e7d42_1ced80435d485294e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (19.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:28', '2012-11-28 22:58:28', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:28') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:28', 'User', '0b38346d60a9c9d7d1385eceaf546f89', 268, 'User', '2012-11-28 22:58:28') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:28', NULL, NULL, NULL, '2012-11-28 22:58:28')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:28', `updated_at` = '2012-11-28 22:58:28', `subdomain` = 'account637' WHERE `accounts`.`id` = 637 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 268) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'admin') Sent mail to facebook@test.test (22ms) Date: Wed, 28 Nov 2012 20:58:28 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971468441_1ced80435d485301e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (8.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 268)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (1.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 462ms (ActiveRecord: 16.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:28 -0200 Processing by DashboardController#index as HTML User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Completed 200 OK in 21ms (Views: 7.9ms | ActiveRecord: 0.7ms) User Load (0.7ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.8ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:28', 'notowner@account.test', '$2a$04$p9f3arUN9/zmcnRgThTysuJVyH8GciSGoGh4FmW2KQY3yb0Pnhpya', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:28', 'User', '1310b0e772f100a9e58e6c53cb19f1c0', 269, 'User', '2012-11-28 22:58:28') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:28', NULL, NULL, NULL, '2012-11-28 22:58:28')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:28', `updated_at` = '2012-11-28 22:58:28', `subdomain` = 'account638' WHERE `accounts`.`id` = 638 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 638 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (638, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (1.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'owner') AccountRole Exists (2.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (1.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'admin') Sent mail to notowner@account.test (12ms) Date: Wed, 28 Nov 2012 20:58:28 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b697148e573_1ced80435d485315f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:28', 'jabanilson', NULL, 1, '2012-11-28 22:58:28')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:28', `updated_at` = '2012-11-28 22:58:28', `subdomain` = 'account639' WHERE `accounts`.`id` = 639  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (639, 269) AccountRole Exists (4.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 637 WHERE `account_users`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 267) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 968 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 969  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1  (2.6ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 962 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 963  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Started GET "/settings/account/637/users" for 127.0.0.1 at 2012-11-28 20:58:28 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"637"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_637_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455, 457, 458) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 269 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 Completed 200 OK in 53ms (Views: 44.4ms | ActiveRecord: 3.6ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (337.8ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:29', 'teste@teste.com', '$2a$04$jG7JfQVL2UrTWsUWGD37se0rxILnvvweM6uZKUYnPCaGH0o2xJwsq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:29', 'User', '0668efa959b5313452d169db13f8e0b9', 270, 'User', '2012-11-28 22:58:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:29', NULL, NULL, NULL, '2012-11-28 22:58:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:29', `updated_at` = '2012-11-28 22:58:29', `subdomain` = 'account640' WHERE `accounts`.`id` = 640 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 640 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (640, 270) AccountRole Exists (0.8ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'owner') AccountRole Exists (1.0ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'admin') Sent mail to teste@teste.com (13ms) Date: Wed, 28 Nov 2012 20:58:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69715230eb_1ced80435d485329f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.7ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:29', '2012-11-28 22:58:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:29') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:29', 'User', '86289989bef39a477841986371fb98ea', 271, 'User', '2012-11-28 22:58:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:29', NULL, NULL, NULL, '2012-11-28 22:58:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:29', `updated_at` = '2012-11-28 22:58:29', `subdomain` = 'account641' WHERE `accounts`.`id` = 641 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 271) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:58:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697153410d_1ced80435d4853337@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 271)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 67ms (ActiveRecord: 5.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:29 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:29', 'notowner@account.test', '$2a$04$mpESjnwvjTOGI8Y.Ct/PFOPn.uUAXz6P4aLvpS9MNYdnZrbCBbATy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:29', 'User', '20c9b6c814b6c8fcead94974cbb1a45c', 272, 'User', '2012-11-28 22:58:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:29', NULL, NULL, NULL, '2012-11-28 22:58:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:29', `updated_at` = '2012-11-28 22:58:29', `subdomain` = 'account642' WHERE `accounts`.`id` = 642 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 642 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (642, 272) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'admin') Sent mail to notowner@account.test (12ms) Date: Wed, 28 Nov 2012 20:58:29 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6971548d1a_1ced80435d4853488@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:29', 'jabanilson', NULL, 1, '2012-11-28 22:58:29')  (1.0ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:29', `updated_at` = '2012-11-28 22:58:29', `subdomain` = 'account643' WHERE `accounts`.`id` = 643  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (643, 272) AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'owner') AccountRole Exists (1.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 641 WHERE `account_users`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 270) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 980 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 981  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 974 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 975  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Started GET "/settings/account/641/users" for 127.0.0.1 at 2012-11-28 20:58:29 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"641"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_641_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460, 462, 463) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 272 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 Completed 200 OK in 181ms (Views: 173.0ms | ActiveRecord: 3.9ms)  (122.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:29', 'teste@teste.com', '$2a$04$5Ih6VMbQcfx8f02nbI8Uwei.vZIybxm8jvGqnVeFag8nbIvUvD40q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:29') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:29', 'User', '0f9f48a71a5294599849a7c50b621055', 273, 'User', '2012-11-28 22:58:29') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:29', NULL, NULL, NULL, '2012-11-28 22:58:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:29', `updated_at` = '2012-11-28 22:58:29', `subdomain` = 'account644' WHERE `accounts`.`id` = 644 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 644 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (644, 273) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'admin') Sent mail to teste@teste.com (9ms) Date: Wed, 28 Nov 2012 20:58:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69715b4d98_1ced80435d4853523@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:29', '2012-11-28 22:58:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:29') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:29', 'User', '5cfb3e36950fc6e5b24f7133d1f8cc7a', 274, 'User', '2012-11-28 22:58:29') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:29', NULL, NULL, NULL, '2012-11-28 22:58:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:29', `updated_at` = '2012-11-28 22:58:29', `subdomain` = 'account645' WHERE `accounts`.`id` = 645 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 274) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69715c21ee_1ced80435d48536c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 274)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 5.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:29 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:29', 'notowner@account.test', '$2a$04$.xTYagpNTVb6jP4b8qXnQOT3HA.azEehOaBtynoveV..1Jt6nCmFS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:29', 'User', 'e1bf5fd78334172f32e493ebecc90f80', 275, 'User', '2012-11-28 22:58:29') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:29', NULL, NULL, NULL, '2012-11-28 22:58:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:29', `updated_at` = '2012-11-28 22:58:29', `subdomain` = 'account646' WHERE `accounts`.`id` = 646 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 646 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (646, 275) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'admin') Sent mail to notowner@account.test (9ms) Date: Wed, 28 Nov 2012 20:58:29 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b69715d3ea4_1ced80435d48537be@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:29', 'jabanilson', NULL, 1, '2012-11-28 22:58:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:29', `updated_at` = '2012-11-28 22:58:29', `subdomain` = 'account647' WHERE `accounts`.`id` = 647  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (647, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 645 WHERE `account_users`.`id` = 467  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 273) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 992 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 993  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 986 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 987  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Started GET "/settings/account/645/users" for 127.0.0.1 at 2012-11-28 20:58:29 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"645"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_645_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465, 467, 468) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 275 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 Completed 200 OK in 56ms (Views: 47.4ms | ActiveRecord: 4.2ms)  (8.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:30', 'teste@teste.com', '$2a$04$yWGBOPTe77y4KIYFAoVRk.gI1OdLlwrhpZ4JYrphgzeGOBCHnHLs6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:30', 'User', '5f64d8b1db89c4b11afa11cfac8b13ad', 276, 'User', '2012-11-28 22:58:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:30', NULL, NULL, NULL, '2012-11-28 22:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:30', `updated_at` = '2012-11-28 22:58:30', `subdomain` = 'account648' WHERE `accounts`.`id` = 648 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 648 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (648, 276) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:30 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b697169d30_1ced80435d4853840@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:30', '2012-11-28 22:58:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:30', 'User', 'b2d9b494663f571c7ebea26c7572d4b6', 277, 'User', '2012-11-28 22:58:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:30', NULL, NULL, NULL, '2012-11-28 22:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:30', `updated_at` = '2012-11-28 22:58:30', `subdomain` = 'account649' WHERE `accounts`.`id` = 649 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 277) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:58:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971615f68_1ced80435d4853964@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 277)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Completed 200 OK in 125ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:30', 'notowner@account.test', '$2a$04$K9Jhzfi32.BjoXGYi07Sp.qprYzdlr1tSSyVjM9Fx9SH2KbicdV3e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:30', 'User', '03b67458847ddebf9599d4a3a12f3013', 278, 'User', '2012-11-28 22:58:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:30', NULL, NULL, NULL, '2012-11-28 22:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:30', `updated_at` = '2012-11-28 22:58:30', `subdomain` = 'account650' WHERE `accounts`.`id` = 650 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 650 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (650, 278) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 20:58:30 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6971643579_1ced80435d4854060@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:30', 'jabanilson', NULL, 1, '2012-11-28 22:58:30')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:30', `updated_at` = '2012-11-28 22:58:30', `subdomain` = 'account651' WHERE `accounts`.`id` = 651  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (651, 278) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 649 WHERE `account_users`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 276) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649)  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1004 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1005  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 998 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 999  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Started GET "/settings/account/649/users" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"649"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_649_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470, 472, 473) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 278 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 Completed 200 OK in 46ms (Views: 37.5ms | ActiveRecord: 4.5ms)  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:30', 'teste@teste.com', '$2a$04$.yloih/uyW0YU.xL0v/gfum.kOK51XLvco7DO4x27roLmew6NN6FO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:30') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:30', 'User', 'dd5ff86629f16e9e62e8d9b02e794956', 279, 'User', '2012-11-28 22:58:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:30', NULL, NULL, NULL, '2012-11-28 22:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:30', `updated_at` = '2012-11-28 22:58:30', `subdomain` = 'account652' WHERE `accounts`.`id` = 652 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 652 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (652, 279) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:30 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69716672bc_1ced80435d48541ab@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:30', '2012-11-28 22:58:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:30', 'User', 'a1552beaeda9b95665021c9d02377ec2', 280, 'User', '2012-11-28 22:58:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:30', NULL, NULL, NULL, '2012-11-28 22:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:30', `updated_at` = '2012-11-28 22:58:30', `subdomain` = 'account653' WHERE `accounts`.`id` = 653 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 280) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971672d8f_1ced80435d48542d0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 280)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 279) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1012 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1013  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1010 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1011  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Started GET "/settings/account/653/users" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"653"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_653_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475, 476) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_475_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 279 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_476_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 Completed 200 OK in 32ms (Views: 24.0ms | ActiveRecord: 4.9ms) User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (18.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:30', 'teste@teste.com', '$2a$04$R03aWymQZx4Ev3qOpQwbkO4WvPkip34O5t7.QbAtAilhxeG3rXnyS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:30', 'User', 'ce53f22a611e4f553bd7843aa6a7111a', 281, 'User', '2012-11-28 22:58:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:30', NULL, NULL, NULL, '2012-11-28 22:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:30', `updated_at` = '2012-11-28 22:58:30', `subdomain` = 'account654' WHERE `accounts`.`id` = 654 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 654 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (654, 281) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:30 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b697169961d_1ced80435d485436@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:30', '2012-11-28 22:58:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:30', 'User', '95332371c7731977830c5b24b893fc30', 282, 'User', '2012-11-28 22:58:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:30', NULL, NULL, NULL, '2012-11-28 22:58:30')  (0.6ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:30', `updated_at` = '2012-11-28 22:58:30', `subdomain` = 'account655' WHERE `accounts`.`id` = 655 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 282) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69716ca497_1ced80435d485448c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 282)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 203ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 281) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1020 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1021  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1018 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1019  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Started GET "/settings/account/655/users" for 127.0.0.1 at 2012-11-28 20:58:30 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"655"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_655_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478, 479) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_478_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 281 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_479_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 Completed 200 OK in 35ms (Views: 27.9ms | ActiveRecord: 3.3ms)  (86.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:31', 'teste@teste.com', '$2a$04$A3BQ5K6G9GDOVFXryn6YvetLjt7Y3hl2eEI8vN74BaNXxF8uN/05m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:31') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:31', 'User', '09837ac6eb84f6eff0619f23125b2b24', 283, 'User', '2012-11-28 22:58:31') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:31', NULL, NULL, NULL, '2012-11-28 22:58:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:31', `updated_at` = '2012-11-28 22:58:31', `subdomain` = 'account656' WHERE `accounts`.`id` = 656 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 656 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (656, 283) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:31 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69717d23f_1ced80435d48545bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:31', '2012-11-28 22:58:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:31', 'User', '3acd8675faa225bdfd59b015851b1410', 284, 'User', '2012-11-28 22:58:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:31', NULL, NULL, NULL, '2012-11-28 22:58:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:31', `updated_at` = '2012-11-28 22:58:31', `subdomain` = 'account657' WHERE `accounts`.`id` = 657 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 284) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:58:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697171b272_1ced80435d485465a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 284)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 61ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 283) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1028 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1029  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (1.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner')  (0.5ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1026 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1027  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.8ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Started GET "/settings/account/657/users" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"657"} User Load (0.9ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.9ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_657_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 AccountUser Load (0.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481, 482) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_481_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 283 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_482_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 Completed 200 OK in 43ms (Views: 29.2ms | ActiveRecord: 6.8ms)  (32.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:31', 'teste@teste.com', '$2a$04$If.pDNg5rQoPLFx3bmfq/OKLfaABx0cn1hZDZibF8lNMs.SmGjz/a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:31', 'User', '91d4d81c8d7dd65790c1614c04900dd1', 285, 'User', '2012-11-28 22:58:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:31', NULL, NULL, NULL, '2012-11-28 22:58:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:31', `updated_at` = '2012-11-28 22:58:31', `subdomain` = 'account658' WHERE `accounts`.`id` = 658 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 658 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (658, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:31 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b697174ca7f_1ced80435d485476f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:31', '2012-11-28 22:58:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:31', 'User', 'ed2f5c49ce6967f55f6d774df551bcff', 286, 'User', '2012-11-28 22:58:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:31', NULL, NULL, NULL, '2012-11-28 22:58:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:31', `updated_at` = '2012-11-28 22:58:31', `subdomain` = 'account659' WHERE `accounts`.`id` = 659 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 286) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'admin') Sent mail to facebook@test.test (10ms) Date: Wed, 28 Nov 2012 20:58:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69717594bf_1ced80435d4854843@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 286)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 198ms (ActiveRecord: 5.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by DashboardController#index as HTML User Load (15.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Completed 200 OK in 25ms (Views: 4.7ms | ActiveRecord: 15.6ms) User Load (6.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (1.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (3.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (4.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (3.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (485) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659)  (12.7ms) SAVEPOINT active_record_1 AccountUser Load (2.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1036 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1037  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1034 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1035  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (1.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.9ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (10.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Started GET "/settings/account/659/users" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"659"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_659_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484, 485) Account Load (5.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_484_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (3.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 285 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (6.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_485_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 Completed 200 OK in 83ms (Views: 55.9ms | ActiveRecord: 18.5ms)  (12.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:31', 'teste@teste.com', '$2a$04$xJFWAh.fBofh8VSZxCcCpeCHTeOnhN6tZeIZ2v35Ma4U7OM7wjIU6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:31') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:31', 'User', '098c43d015c54bb1e2c89890ffda53ba', 287, 'User', '2012-11-28 22:58:31') ApiToken Load (1.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:31', NULL, NULL, NULL, '2012-11-28 22:58:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:31', `updated_at` = '2012-11-28 22:58:31', `subdomain` = 'account660' WHERE `accounts`.`id` = 660 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 660 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (660, 287) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'admin') Sent mail to teste@teste.com (11ms) Date: Wed, 28 Nov 2012 20:58:31 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69717d6501_1ced80435d485491f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (1.8ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.8ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:31', '2012-11-28 22:58:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:31', 'User', 'ae2e09f3f49aae6f8c1e0f5e489e94d7', 288, 'User', '2012-11-28 22:58:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:31', NULL, NULL, NULL, '2012-11-28 22:58:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:31', `updated_at` = '2012-11-28 22:58:31', `subdomain` = 'account661' WHERE `accounts`.`id` = 661 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (661, 288) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69717e8eb2_1ced80435d48550d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 288)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 75ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 661 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1043  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Started GET "/settings/account/661/users" for 127.0.0.1 at 2012-11-28 20:58:31 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"661"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_661_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_487_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 Completed 200 OK in 32ms (Views: 24.0ms | ActiveRecord: 3.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:32', 'teste@teste.com', '$2a$04$wmaPgmWVJTbnW81RUtRR0.sCFNvN1nXa32vPru.vnyulkQJs9pTdS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:32', 'User', 'f1027481a6c71a5232f842f8721ff9f4', 289, 'User', '2012-11-28 22:58:32') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:32', NULL, NULL, NULL, '2012-11-28 22:58:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:32', `updated_at` = '2012-11-28 22:58:32', `subdomain` = 'account662' WHERE `accounts`.`id` = 662 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 662 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (662, 289) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:32 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6971812850_1ced80435d4855189@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:32', '2012-11-28 22:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:32', 'User', 'a243b9cb7baa017aecb1a63e633d574b', 290, 'User', '2012-11-28 22:58:32') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:32', NULL, NULL, NULL, '2012-11-28 22:58:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:32', `updated_at` = '2012-11-28 22:58:32', `subdomain` = 'account663' WHERE `accounts`.`id` = 663 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (663, 290) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:32 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697181ded0_1ced80435d48552d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 290)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 663 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1047  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Started GET "/settings/account/663/users" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"663"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_663_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_489_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 Completed 200 OK in 144ms (Views: 137.1ms | ActiveRecord: 3.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:32', 'teste@teste.com', '$2a$04$FW7Jb/QlCw.NAR217.VhNuxwuCdB1EB.QQhuYayUjdodvX.gjvlbu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:32', 'User', 'e1f720901ec42b3507cf508b715c3d3f', 291, 'User', '2012-11-28 22:58:32') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:32', NULL, NULL, NULL, '2012-11-28 22:58:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:32', `updated_at` = '2012-11-28 22:58:32', `subdomain` = 'account664' WHERE `accounts`.`id` = 664 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 664 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (664, 291) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:32 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69718555fc_1ced80435d48553ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:32', '2012-11-28 22:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:32', 'User', '05a4f7a7cb87cc25e9b761c257328c27', 292, 'User', '2012-11-28 22:58:32') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:32', NULL, NULL, NULL, '2012-11-28 22:58:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:32', `updated_at` = '2012-11-28 22:58:32', `subdomain` = 'account665' WHERE `accounts`.`id` = 665 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (665, 292) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:32 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971860a2d_1ced80435d48554ce@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 292)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 665 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1051  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Started GET "/settings/account/665/users" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"665"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_665_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_491_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 Completed 200 OK in 24ms (Views: 17.5ms | ActiveRecord: 3.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:32', 'teste@teste.com', '$2a$04$OquJDBWAqeOM03nu/oE9FOy5k22OD7R/px8AA7Q/bJOe5.22tDU9a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:32') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:32', 'User', '2c7889d40b992504c759376632d42d5a', 293, 'User', '2012-11-28 22:58:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:32', NULL, NULL, NULL, '2012-11-28 22:58:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:32', `updated_at` = '2012-11-28 22:58:32', `subdomain` = 'account666' WHERE `accounts`.`id` = 666 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 666 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (666, 293) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:32 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b697187a6e7_1ced80435d48555ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.8ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:32', '2012-11-28 22:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:32') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:32', 'User', '986625397a7c6bc10538cb62813019bc', 294, 'User', '2012-11-28 22:58:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:32', NULL, NULL, NULL, '2012-11-28 22:58:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:32', `updated_at` = '2012-11-28 22:58:32', `subdomain` = 'account667' WHERE `accounts`.`id` = 667 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (667, 294) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:32 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971887d55_1ced80435d485565f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 294)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 8.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 667 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1055  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Started GET "/settings/account/667/users" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"667"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_667_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_493_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 Completed 200 OK in 24ms (Views: 17.6ms | ActiveRecord: 3.5ms)  (13.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:32', 'teste@teste.com', '$2a$04$ptzGWN0s5sJsu1lz2idSRe0KOoWiFhzKIwfGA2JRxBmTuaPWEzGFa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:32') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:32', 'User', '9cb8a67175122ae4f2838897a6466df6', 295, 'User', '2012-11-28 22:58:32') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:32', NULL, NULL, NULL, '2012-11-28 22:58:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:32', `updated_at` = '2012-11-28 22:58:32', `subdomain` = 'account668' WHERE `accounts`.`id` = 668 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 668 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (668, 295) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:32 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69718a4f4d_1ced80435d485579f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:32', '2012-11-28 22:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:32') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:32', 'User', '72135c060390e1014b9c14e6524fa187', 296, 'User', '2012-11-28 22:58:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:32', NULL, NULL, NULL, '2012-11-28 22:58:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:32', `updated_at` = '2012-11-28 22:58:32', `subdomain` = 'account669' WHERE `accounts`.`id` = 669 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 296) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:58:32 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69718cda1a_1ced80435d48558bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 296)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 170ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 295) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1060 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1061  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1059  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 4.9ms) Started DELETE "/settings/account/669/user/295" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"669", "user_id"=>"295"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 296 AND `account_users`.`account_id` = 669 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 496\n account_id: 669\n user_id: 295\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_496_destroy', '2012-11-28 22:58:32', '2012-11-28 22:58:32')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/669/users Completed 302 Found in 17ms (ActiveRecord: 3.9ms) Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 20:58:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 31ms (Views: 23.2ms | ActiveRecord: 4.8ms)  (16.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:33', 'teste@teste.com', '$2a$04$I2CyDTcAkAkjo0MsnFDuR.4bn5brA2TWEPUqRGWBb/xKB4kKJjJYy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:33', 'User', '087c00317cfbddcd7065a2453e3e5d5c', 297, 'User', '2012-11-28 22:58:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:33', NULL, NULL, NULL, '2012-11-28 22:58:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:33', `updated_at` = '2012-11-28 22:58:33', `subdomain` = 'account670' WHERE `accounts`.`id` = 670 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 670 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (670, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69719d935_1ced80435d485592e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:33', '2012-11-28 22:58:33', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:33', 'User', '771a5d1efc49ba185faac5d5e4cb9495', 298, 'User', '2012-11-28 22:58:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (15.6ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:33', NULL, NULL, NULL, '2012-11-28 22:58:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:33', `updated_at` = '2012-11-28 22:58:33', `subdomain` = 'account671' WHERE `accounts`.`id` = 671 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 298) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:33 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697191df25_1ced80435d48560fe@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 298)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 72ms (ActiveRecord: 22.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1067 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1068  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1066  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 33ms (Views: 24.3ms | ActiveRecord: 5.1ms) Started DELETE "/settings/account/671/user/297" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"671", "user_id"=>"297"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 298 AND `account_users`.`account_id` = 671 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 499\n account_id: 671\n user_id: 297\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_499_destroy', '2012-11-28 22:58:33', '2012-11-28 22:58:33')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/671/users Completed 302 Found in 167ms (ActiveRecord: 3.5ms) Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (1.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (2.9ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (2.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (2.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.7ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (1.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 65ms (Views: 45.0ms | ActiveRecord: 13.9ms)  (53.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:33', 'teste@teste.com', '$2a$04$kPzuYVjmaX6V/dI9aopcJOUcQtv4Mf23942Grz5fWz3SGp8/o1W6K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:33', 'User', '783a1c2e81ce2dbddbed4b4dc7583c0b', 299, 'User', '2012-11-28 22:58:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:33', NULL, NULL, NULL, '2012-11-28 22:58:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:33', `updated_at` = '2012-11-28 22:58:33', `subdomain` = 'account672' WHERE `accounts`.`id` = 672 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 672 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (672, 299) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6971989b99_1ced80435d48561c3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:33', '2012-11-28 22:58:33', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:33', 'User', '31ccc411ae8d7d818312857e3b65d61c', 300, 'User', '2012-11-28 22:58:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:33', NULL, NULL, NULL, '2012-11-28 22:58:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:33', `updated_at` = '2012-11-28 22:58:33', `subdomain` = 'account673' WHERE `accounts`.`id` = 673 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 300) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:33 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971995522_1ced80435d48562eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 300)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 299) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1074 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1075  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1073  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 38ms (Views: 27.6ms | ActiveRecord: 5.1ms) Started DELETE "/settings/account/673/user/299" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"673", "user_id"=>"299"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 300 AND `account_users`.`account_id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 502\n account_id: 673\n user_id: 299\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_502_destroy', '2012-11-29 22:58:33', '2012-11-28 22:58:33')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/673/users Completed 302 Found in 18ms (ActiveRecord: 4.0ms) Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 32ms (Views: 23.5ms | ActiveRecord: 4.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:33', 'teste@teste.com', '$2a$04$1B631uSBd7v2pGbo2mZdpeMBj7Bm/AvHrkSr.TD.uENmcWLBBD9/q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:33', 'User', '182a854a9bb3a69a47c1bda640fa7af2', 301, 'User', '2012-11-28 22:58:33') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:33', NULL, NULL, NULL, '2012-11-28 22:58:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:33', `updated_at` = '2012-11-28 22:58:33', `subdomain` = 'account674' WHERE `accounts`.`id` = 674 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 674 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (674, 301) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 20:58:33 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b69719c9f9b_1ced80435d4856339@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:33 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:33', '2012-11-28 22:58:33', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:33', 'User', '79bf20f501c385ffc2b10af21ce1d1de', 302, 'User', '2012-11-28 22:58:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:33', NULL, NULL, NULL, '2012-11-28 22:58:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:33', `updated_at` = '2012-11-28 22:58:33', `subdomain` = 'account675' WHERE `accounts`.`id` = 675 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 302) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:33 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69719f3393_1ced80435d485643f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 302)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 172ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 301) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (505) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1081 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1082  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1080  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 33ms (Views: 24.5ms | ActiveRecord: 5.2ms) Started DELETE "/settings/account/675/user/301" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"675", "user_id"=>"301"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 302 AND `account_users`.`account_id` = 675 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 505\n account_id: 675\n user_id: 301\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_505_destroy', '2012-11-29 22:58:34', '2012-11-28 22:58:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/675/users Completed 302 Found in 18ms (ActiveRecord: 3.9ms) Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 32ms (Views: 23.8ms | ActiveRecord: 4.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/orkut" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::OmniauthCallbacksController#passthru as HTML Parameters: {"provider"=>"orkut"} Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:34', '2012-11-28 22:58:34', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:34', 'User', '4107fab95739162566d45b86d4e0ca30', 303, 'User', '2012-11-28 22:58:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:34', NULL, NULL, NULL, '2012-11-28 22:58:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:34', `updated_at` = '2012-11-28 22:58:34', `subdomain` = 'account676' WHERE `accounts`.`id` = 676 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 676 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (676, 303) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:34 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971a356df_1ced80435d485656c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 303)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 404 Not Found in 3ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:34', '2012-11-28 22:58:34', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:34') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:34', 'User', '7c4dcd58a55cd042db48ead5ebfea9a0', 304, 'User', '2012-11-28 22:58:34') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:34', NULL, NULL, NULL, '2012-11-28 22:58:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:34', `updated_at` = '2012-11-28 22:58:34', `subdomain` = 'account677' WHERE `accounts`.`id` = 677 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 677 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (677, 304) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:34 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971a47cd7_1ced80435d48566d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 304)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (7.8ms) Completed 200 OK in 126ms (Views: 124.0ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:34', 'test@test.test', '$2a$04$5Nhpbz4dzIlSZaaajhXPSOG91seORjDAnFlaVJvHVe/o0WWa8.PUy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:34', 'User', '6fc59928f2b0aade862640ec77ddaed0', 305, 'User', '2012-11-28 22:58:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:34', NULL, NULL, NULL, '2012-11-28 22:58:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:34', `updated_at` = '2012-11-28 22:58:34', `subdomain` = 'account678' WHERE `accounts`.`id` = 678 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 678 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (678, 305) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'admin') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 20:58:34 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6971a93195_1ced80435d4856713@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 LIMIT 1 Completed 302 Found in 57ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 305)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_305_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 Completed 200 OK in 157ms (Views: 152.2ms | ActiveRecord: 2.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'facebook@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:34', 'facebook@test.test', '$2a$04$kwqV8aImfqIywc0ufsTvJuz5hV8Jt2UaAUZWxep/o498Q.EFL79NC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:34', 'User', '722e437d03ff647ba759a6f1ec7921da', 306, 'User', '2012-11-28 22:58:34') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:34', NULL, NULL, NULL, '2012-11-28 22:58:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:34', `updated_at` = '2012-11-28 22:58:34', `subdomain` = 'account679' WHERE `accounts`.`id` = 679 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 679 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (679, 306) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'admin') Sent mail to facebook@test.test (12ms) Date: Wed, 28 Nov 2012 20:58:34 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971aef704_1ced80435d48568df@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:34 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test' Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:35', '2012-11-28 22:58:35', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:35') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:35', 'User', 'd76bfd616630b1bbf6c6200515352c8d', 307, 'User', '2012-11-28 22:58:35') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', NULL, NULL, NULL, '2012-11-28 22:58:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account680' WHERE `accounts`.`id` = 680 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 680 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (680, 307) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 307)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 28ms (ActiveRecord: 5.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:35', 'test@test.test', '$2a$04$6nI2EO6gh.xIPuURBkKpWusNi3XGhUcilPUUrnwbMJmwWsUage0hi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:35', 'User', '711a8c41ea4106e191231a9b3a7906ee', 308, 'User', '2012-11-28 22:58:35') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', NULL, NULL, NULL, '2012-11-28 22:58:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account681' WHERE `accounts`.`id` = 681 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 681 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (681, 308) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:35 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6971b23fb2_1ced80435d485696d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 308)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_308_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 Completed 200 OK in 25ms (Views: 20.6ms | ActiveRecord: 2.9ms)  (18.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:35', '2012-11-28 22:58:35', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:35') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:35', 'User', 'b65890da3b2ba476ee404856d6d5e33f', 309, 'User', '2012-11-28 22:58:35') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', NULL, NULL, NULL, '2012-11-28 22:58:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account682' WHERE `accounts`.`id` = 682 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 682 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (682, 309) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:35 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971b65364_1ced80435d485701@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 309)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 70ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 309 AND `account_users`.`account_id` = 682 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (512) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (682) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 512\n account_id: 682\n user_id: 309\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_512_destroy', '2012-11-29 22:58:35', '2012-11-28 22:58:35')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', 'jabanilson', NULL, 1, '2012-11-28 22:58:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account683' WHERE `accounts`.`id` = 683  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (683, 309) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_309_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 Completed 200 OK in 26ms (Views: 21.4ms | ActiveRecord: 2.6ms)  (2.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:35', '2012-11-28 22:58:35', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:35') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:35', 'User', '38c83ccd9389ad50017d2f2685f7ac87', 310, 'User', '2012-11-28 22:58:35') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', NULL, NULL, NULL, '2012-11-28 22:58:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account684' WHERE `accounts`.`id` = 684 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 684 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (684, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'admin') Sent mail to facebook@test.test (118ms) Date: Wed, 28 Nov 2012 20:58:35 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971ba429a_1ced80435d48571c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 310)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 162ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310  (0.3ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 310 AND `account_users`.`account_id` = 684 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (514) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (684) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:35', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 514\n account_id: 684\n user_id: 310\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_514_destroy', '2012-11-29 22:58:35', '2012-11-28 22:58:35')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', 'jabanilson', NULL, 1, '2012-11-28 22:58:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account685' WHERE `accounts`.`id` = 685  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (685, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (15.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', 'jabanilson', NULL, 1, '2012-11-28 22:58:35')  (11.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account686' WHERE `accounts`.`id` = 686  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (686, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_310_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 Completed 200 OK in 25ms (Views: 20.7ms | ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:35', '2012-11-28 22:58:35', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:35') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:35', 'User', 'f6de0155bad6e3cab6d52acad9452655', 311, 'User', '2012-11-28 22:58:35') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', NULL, NULL, NULL, '2012-11-28 22:58:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account687' WHERE `accounts`.`id` = 687 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 687 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (687, 311) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:35 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971bce253_1ced80435d485726f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 311)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_311_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.4ms)  (79.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:35 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:35', '2012-11-28 22:58:35', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:35') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:35', 'User', '174af30b3de99b9963b84712f0c17008', 312, 'User', '2012-11-28 22:58:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:35', NULL, NULL, NULL, '2012-11-28 22:58:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:35', `updated_at` = '2012-11-28 22:58:35', `subdomain` = 'account688' WHERE `accounts`.`id` = 688 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 688 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (688, 312) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971c6176_1ced80435d4857375@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 312)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:36', 'teste@teste.com', '$2a$04$1bkywm3r95fI6fjOIysUGuEjExkhxBRV8616iBa7WRPH1RJtwH1xC', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '0e052b295643502127830ba6e7f265ac', 313, 'User', '2012-11-28 22:58:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account689' WHERE `accounts`.`id` = 689 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 689 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (689, 313) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6971c30c13_1ced80435d4857450@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', 'jabanilson', NULL, 1, '2012-11-28 22:58:36')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account690' WHERE `accounts`.`id` = 690  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', 'jabanilson', NULL, 1, '2012-11-28 22:58:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account691' WHERE `accounts`.`id` = 691  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 691 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (691, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:58:36', 'dYmhcsPoO4Ju_jDKDfjAiQ19WGQ') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6971c39284_1ced80435d48575cb@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/22dYmhcsPoO4Ju_jDKDfjAiQ19WGQ  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 690 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 690, `invited_by` = 313 WHERE `user_invitations`.`id` = 22  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/22dYmhcsPoO4Ju_jDKDfjAiQ19WGQ" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"22dYmhcsPoO4Ju_jDKDfjAiQ19WGQ"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 22 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 313 LIMIT 1 Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.9ms)  (23.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:36', '2012-11-28 22:58:36', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '0c998c9c6e630b79431d0a52bf70b409', 314, 'User', '2012-11-28 22:58:36') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account692' WHERE `accounts`.`id` = 692 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 692 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (692, 314) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971c5005b_1ced80435d4857626@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 314)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:36', 'teste@teste.com', '$2a$04$YgaayW9Mk.lMM8UPTAgJ/ue50eNFFj2/WB0i.dDBtqSASEaATe2Pi', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '9eeebbc0a26ef78950e0117271d4f4be', 315, 'User', '2012-11-28 22:58:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account693' WHERE `accounts`.`id` = 693 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 693 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (693, 315) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6971c5f251_1ced80435d485776c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', 'jabanilson', NULL, 1, '2012-11-28 22:58:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account694' WHERE `accounts`.`id` = 694  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', 'jabanilson', NULL, 1, '2012-11-28 22:58:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account695' WHERE `accounts`.`id` = 695  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 695 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (695, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:58:36', 'LMUsKV4D-AzhimQEkHDMlvwWj7k') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6971c66980_1ced80435d48578cd@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/23LMUsKV4D-AzhimQEkHDMlvwWj7k  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 694 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 694, `invited_by` = 315 WHERE `user_invitations`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/23LMUsKV4D-AzhimQEkHDMlvwWj7k" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"23LMUsKV4D-AzhimQEkHDMlvwWj7k"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 23 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 315 LIMIT 1 Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 1.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:36', '2012-11-28 22:58:36', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '81d25ffa20ad9be1b9c99dd28846e2c8', 316, 'User', '2012-11-28 22:58:36') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account696' WHERE `accounts`.`id` = 696 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 696 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (696, 316) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971c79a6a_1ced80435d48579a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 316)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:36', 'teste@teste.com', '$2a$04$Qps0/DdJuqCXusERxPBtVec7yLeW..8K1hRTtUQ2xRn3OGRl1JUi.', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '4a24c4a65113e515574b3db6efb43988', 317, 'User', '2012-11-28 22:58:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account697' WHERE `accounts`.`id` = 697 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 697 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (697, 317) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6971c886e5_1ced80435d485808@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', 'jabanilson', NULL, 1, '2012-11-28 22:58:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account698' WHERE `accounts`.`id` = 698  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', 'jabanilson', NULL, 1, '2012-11-28 22:58:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account699' WHERE `accounts`.`id` = 699  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 699 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (699, 'teste@teste.teste', NULL, NULL, '2012-11-28 22:58:36', 'wfDirv0KSoAhQzmEEYh4mDEcNbc') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6971c8fb92_1ced80435d485819f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/24wfDirv0KSoAhQzmEEYh4mDEcNbc  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 698 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 698, `invited_by` = 317 WHERE `user_invitations`.`id` = 24  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/24wfDirv0KSoAhQzmEEYh4mDEcNbc" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"24wfDirv0KSoAhQzmEEYh4mDEcNbc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 24 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 317 LIMIT 1 Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 1.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:36', '2012-11-28 22:58:36', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '9322c00df0040eb492d935d5fff0101e', 318, 'User', '2012-11-28 22:58:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account700' WHERE `accounts`.`id` = 700 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 318) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971cbdb01_1ced80435d48582f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 318)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:36', 'tester@roles.test', '$2a$04$ntjAQ7F5Gkn3rQXKDwLMtOozeCxWVN8Xrc4AsyKuWjEPjC5/Lz5P.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '48c0e3f7e92d7140947dad847de07134', 319, 'User', '2012-11-28 22:58:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account701' WHERE `accounts`.`id` = 701 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 701 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (701, 319) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971ccd204_1ced80435d4858323@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 319) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/700/invite" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"700"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 318 AND `account_users`.`account_id` = 700 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 700 AND `account_users`.`user_id` = 318 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (524) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (700) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 24ms (Views: 14.2ms | ActiveRecord: 3.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:36', '2012-11-28 22:58:36', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '42fc79509cbfab5d4ab699f9f140fc9e', 320, 'User', '2012-11-28 22:58:36') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account702' WHERE `accounts`.`id` = 702 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (14.9ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 320) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:36 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971ce6f10_1ced80435d4858430@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 320)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 69ms (ActiveRecord: 21.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:36 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:36', 'tester@roles.test', '$2a$04$xrMCC77st3sosyAyKY3qQOMitJJ9ClbsHOEyOV0IklxnPXpYVL4mW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:36') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:36', 'User', '4d936ac9c129cc863f25d5b8afa6be64', 321, 'User', '2012-11-28 22:58:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:36', NULL, NULL, NULL, '2012-11-28 22:58:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:36', `updated_at` = '2012-11-28 22:58:36', `subdomain` = 'account703' WHERE `accounts`.`id` = 703 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 703 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (703, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:37 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971d2796_1ced80435d4858585@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/702/invite" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"702"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 320 AND `account_users`.`account_id` = 702 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 702 AND `account_users`.`user_id` = 320 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (527) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (702) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 13.9ms | ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (1.0ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:37', '2012-11-28 22:58:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:37') ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:37', 'User', '4e090dd54e0582d777bab1445dc0b66f', 322, 'User', '2012-11-28 22:58:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.8ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:37', NULL, NULL, NULL, '2012-11-28 22:58:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:37', `updated_at` = '2012-11-28 22:58:37', `subdomain` = 'account704' WHERE `accounts`.`id` = 704 Account Load (1.8ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (1.9ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 322) AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971d3e868_1ced80435d48586b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 322)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 205ms (ActiveRecord: 12.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:37', 'tester@roles.test', '$2a$04$cTvUWQ6ZKPF5SK.beTb3lOqcX9GkD3QcMx3YgPES9Aph3arY76ZmK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:37', 'User', 'fe17ad2121d818deb20868926095da63', 323, 'User', '2012-11-28 22:58:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:37', NULL, NULL, NULL, '2012-11-28 22:58:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:37', `updated_at` = '2012-11-28 22:58:37', `subdomain` = 'account705' WHERE `accounts`.`id` = 705 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 705 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (705, 323) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:58:37 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971d4dad4_1ced80435d4858786@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 323) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/704/invite" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"704"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 322 AND `account_users`.`account_id` = 704 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 704 AND `account_users`.`user_id` = 322 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (530) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (704) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.7ms)  (17.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:37', '2012-11-28 22:58:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:37', 'User', '1f928b1ed499b4a6cf8e4418507fcea3', 324, 'User', '2012-11-28 22:58:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:37', NULL, NULL, NULL, '2012-11-28 22:58:37')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:37', `updated_at` = '2012-11-28 22:58:37', `subdomain` = 'account706' WHERE `accounts`.`id` = 706 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 324) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971d665e0_1ced80435d48588ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 324)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (1.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1  (0.9ms) SAVEPOINT active_record_1 User Exists (1.0ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:37', 'tester@roles.test', '$2a$04$yIvkobG0wDRSkdDOkUxXVeDBqJnlDA7VKrMHuUwVa.VHuND/ujf3u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:37', 'User', '21bba66df43d1f7ec8b7f3460ed21e52', 325, 'User', '2012-11-28 22:58:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:37', NULL, NULL, NULL, '2012-11-28 22:58:37')  (1.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:37', `updated_at` = '2012-11-28 22:58:37', `subdomain` = 'account707' WHERE `accounts`.`id` = 707 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 707 LIMIT 1 SQL (0.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (707, 325) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (1.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.7ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'owner') AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'admin') Sent mail to tester@roles.test (11ms) Date: Wed, 28 Nov 2012 20:58:37 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971d7eeb3_1ced80435d4858931@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 325) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/706/invite" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"706"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 324 AND `account_users`.`account_id` = 706 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 706 AND `account_users`.`user_id` = 324 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (533) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (706) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 10.1ms | ActiveRecord: 2.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:37', '2012-11-28 22:58:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:37', 'User', '5a83f55e5d90cb728a98e3f322a01980', 326, 'User', '2012-11-28 22:58:37') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:37', NULL, NULL, NULL, '2012-11-28 22:58:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:37', `updated_at` = '2012-11-28 22:58:37', `subdomain` = 'account708' WHERE `accounts`.`id` = 708 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 326) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971d96acd_1ced80435d485903d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 326)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:37', 'tester@roles.test', '$2a$04$hN9vSChoueqTo/IvNWEO0OSKEL6diW1xFWmNrpVJzZBYspIiC/24C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:37') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:37', 'User', 'c4d76a89cb6ff53a2e0a52c8b6a730e6', 327, 'User', '2012-11-28 22:58:37') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:37', NULL, NULL, NULL, '2012-11-28 22:58:37')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:37', `updated_at` = '2012-11-28 22:58:37', `subdomain` = 'account709' WHERE `accounts`.`id` = 709 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 709 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (709, 327) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:37 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971dc250f_1ced80435d48591c3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/708/invite" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"708"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 326 AND `account_users`.`account_id` = 708 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 708 AND `account_users`.`user_id` = 326 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (536) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (708) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.9ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:37', '2012-11-28 22:58:37', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:37', 'User', '7d845c33be24f4c58a96e21ad44dd3fc', 328, 'User', '2012-11-28 22:58:37') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:37', NULL, NULL, NULL, '2012-11-28 22:58:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:37', `updated_at` = '2012-11-28 22:58:37', `subdomain` = 'account710' WHERE `accounts`.`id` = 710 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 328) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.9ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:37 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971dda149_1ced80435d485928b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 328)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 76ms (ActiveRecord: 9.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:37 -0200 Processing by DashboardController#index as HTML User Load (1.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 1.1ms) User Load (1.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.9ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (10.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (8.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:37', 'tester@roles.test', '$2a$04$4b3k4epDul6r2xbSE4wTqeX2nmGk0GOB.6FmqMUjGESLz.kR5abkm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:37') ApiToken Exists (1.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:37', 'User', '3d226843b5e912bac4a69793e63f771b', 329, 'User', '2012-11-28 22:58:37') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:37', NULL, NULL, NULL, '2012-11-28 22:58:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:37', `updated_at` = '2012-11-28 22:58:37', `subdomain` = 'account711' WHERE `accounts`.`id` = 711 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 711 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (711, 329) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:38 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971e833_1ced80435d48593ef@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 329) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/710/invite" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"710"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 328 AND `account_users`.`account_id` = 710 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 710 AND `account_users`.`user_id` = 328 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (539) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (710) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.7ms | ActiveRecord: 2.3ms)  (3.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:38', '2012-11-28 22:58:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:38') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:38', 'User', 'dbb2311c6bf233925673e1eda7e6cd92', 330, 'User', '2012-11-28 22:58:38') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:38', NULL, NULL, NULL, '2012-11-28 22:58:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:38', `updated_at` = '2012-11-28 22:58:38', `subdomain` = 'account712' WHERE `accounts`.`id` = 712 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 330) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971e16a27_1ced80435d48594b7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 330)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:38', 'tester@roles.test', '$2a$04$uVLJn1O/L4s8cOMZjzpD4uTWd7CFEWjW35h6zTehvpbApEmddSNci', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:38', 'User', '6f1b11563edb27d9f3b2b8202ebec4e2', 331, 'User', '2012-11-28 22:58:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:38', NULL, NULL, NULL, '2012-11-28 22:58:38')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:38', `updated_at` = '2012-11-28 22:58:38', `subdomain` = 'account713' WHERE `accounts`.`id` = 713 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 713 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (713, 331) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:58:38 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971e26a88_1ced80435d4859578@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 331) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.9ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 712 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1156 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 173ms (Views: 164.6ms | ActiveRecord: 2.9ms)  (4.3ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (1.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:38', '2012-11-28 22:58:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:38') ApiToken Exists (1.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.9ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:38', 'User', 'c894b7e167b9a38bb53031c53ca0640d', 332, 'User', '2012-11-28 22:58:38') ApiToken Load (1.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:38', NULL, NULL, NULL, '2012-11-28 22:58:38')  (2.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:38', `updated_at` = '2012-11-28 22:58:38', `subdomain` = 'account714' WHERE `accounts`.`id` = 714 Account Load (0.9ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (2.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 332) AccountRole Exists (0.9ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner') AccountRole Exists (0.7ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.7ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'admin') Sent mail to facebook@test.test (11ms) Date: Wed, 28 Nov 2012 20:58:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971e757be_1ced80435d485969f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 332)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 98ms (ActiveRecord: 17.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 Completed 200 OK in 9ms (Views: 3.7ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.7ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:38', 'tester@roles.test', '$2a$04$W9IfY6LMsuL.Vb9Iyvc/MOBdbhwl4ja1xE75TUdRbMPz97qAS2eBG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.7ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:38', 'User', '0faebd2dee8e31d0aadd3304e0e5f6be', 333, 'User', '2012-11-28 22:58:38') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:38', NULL, NULL, NULL, '2012-11-28 22:58:38')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:38', `updated_at` = '2012-11-28 22:58:38', `subdomain` = 'account715' WHERE `accounts`.`id` = 715 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 715 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (715, 333) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:38 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971e8b416_1ced80435d48597c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 333) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.9ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 714 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1163 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.6ms | ActiveRecord: 3.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:38', '2012-11-28 22:58:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:38', 'User', 'b34c68c549ab42b4ab5e2b0712e8e539', 334, 'User', '2012-11-28 22:58:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:38', NULL, NULL, NULL, '2012-11-28 22:58:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:38', `updated_at` = '2012-11-28 22:58:38', `subdomain` = 'account716' WHERE `accounts`.`id` = 716 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 334) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971ea75c9_1ced80435d485985a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 334)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:38', 'tester@roles.test', '$2a$04$5bF2lCsQPBeV8s8krgaPxul98Mp5vcMccYRlv1vYA4ZRPSTzvnPbG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:38') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:38', 'User', '3cf332e77020cbd857b52bc384a9234f', 335, 'User', '2012-11-28 22:58:38') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:38', NULL, NULL, NULL, '2012-11-28 22:58:38')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:38', `updated_at` = '2012-11-28 22:58:38', `subdomain` = 'account717' WHERE `accounts`.`id` = 717 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 717 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (717, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:38 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971eb67fd_1ced80435d48599a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 3.1ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 716 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1170 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1171  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 138ms (Views: 10.3ms | ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:38', '2012-11-28 22:58:38', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:38', 'User', '758c1fe2327bb6c9b25d02cb2cd4bc97', 336, 'User', '2012-11-28 22:58:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:38', NULL, NULL, NULL, '2012-11-28 22:58:38')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:38', `updated_at` = '2012-11-28 22:58:38', `subdomain` = 'account718' WHERE `accounts`.`id` = 718 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 336) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:38 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971eefc28_1ced80435d486001e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 336)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:39', 'tester@roles.test', '$2a$04$zqyAFcBmjjJS8eNxXFsckOI4tY2M8cgseSyqe11MdGlfg.5FtHxA.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:39', 'User', '2cbe9e8d1d21d9a16ff0d2f2dff71e6f', 337, 'User', '2012-11-28 22:58:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:39', NULL, NULL, NULL, '2012-11-28 22:58:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:39', `updated_at` = '2012-11-28 22:58:39', `subdomain` = 'account719' WHERE `accounts`.`id` = 719 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 719 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (719, 337) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:39 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971fb4fb_1ced80435d486011e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 337) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.1ms | ActiveRecord: 2.9ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 718 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1177 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1178  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:39', '2012-11-28 22:58:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:39', 'User', '45e84990f410724c8021d457f5a21a7a', 338, 'User', '2012-11-28 22:58:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:39', NULL, NULL, NULL, '2012-11-28 22:58:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:39', `updated_at` = '2012-11-28 22:58:39', `subdomain` = 'account720' WHERE `accounts`.`id` = 720 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 338) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971f2742a_1ced80435d486024e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 338)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:39', 'tester@roles.test', '$2a$04$4K22oHYA9e2bUiwRs8sKLuO8uNFdVOyKNV3aEwU9rDljEbIxUk826', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:39') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:39', 'User', '9671becccb838f7f030e210f305428be', 339, 'User', '2012-11-28 22:58:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:39', NULL, NULL, NULL, '2012-11-28 22:58:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:39', `updated_at` = '2012-11-28 22:58:39', `subdomain` = 'account721' WHERE `accounts`.`id` = 721 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 721 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (721, 339) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:39 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971f365ef_1ced80435d48603cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 9.9ms | ActiveRecord: 3.0ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 720 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1184 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1185  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 151ms (Views: 13.3ms | ActiveRecord: 3.0ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:39', '2012-11-28 22:58:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:39', 'User', 'cd6625e21b67d143f9b32774fd90d5f9', 340, 'User', '2012-11-28 22:58:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:39', NULL, NULL, NULL, '2012-11-28 22:58:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:39', `updated_at` = '2012-11-28 22:58:39', `subdomain` = 'account722' WHERE `accounts`.`id` = 722 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 340) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 20:58:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971f72ece_1ced80435d4860463@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 340)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:39', 'tester@roles.test', '$2a$04$1n9XYIG6xirjnq7.crpKTeaM3EeRDg4S.0YtR2tcF2SFEnEY79Ofy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:39', 'User', '6cec4f6c7f88cc0647987e3c42877548', 341, 'User', '2012-11-28 22:58:39') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:39', NULL, NULL, NULL, '2012-11-28 22:58:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:39', `updated_at` = '2012-11-28 22:58:39', `subdomain` = 'account723' WHERE `accounts`.`id` = 723 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 723 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (723, 341) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:39 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971f83b74_1ced80435d4860572@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 341) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 11.6ms | ActiveRecord: 2.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 722 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1191 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 23ms (Views: 14.4ms | ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:39', '2012-11-28 22:58:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:39', 'User', 'bdffe1d10375ad367662fb3c90bf7de1', 342, 'User', '2012-11-28 22:58:39') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:39', NULL, NULL, NULL, '2012-11-28 22:58:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:39', `updated_at` = '2012-11-28 22:58:39', `subdomain` = 'account724' WHERE `accounts`.`id` = 724 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 342) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:39 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971fa3bcf_1ced80435d4860676@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 342)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:39', 'tester@roles.test', '$2a$04$1BquXccsF3JzG/oA7tXad.mXVrS0PT7eqO6Wb8WPzdEkzFb.jqp42', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:39', 'User', 'e31c80f1ee100873e34779ac3bb51189', 343, 'User', '2012-11-28 22:58:39') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:39', NULL, NULL, NULL, '2012-11-28 22:58:39')  (1.0ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:39', `updated_at` = '2012-11-28 22:58:39', `subdomain` = 'account725' WHERE `accounts`.`id` = 725 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 725 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (725, 343) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 20:58:39 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6971fb4d32_1ced80435d4860749@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 343) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.3ms | ActiveRecord: 2.5ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 724 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1198 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 154ms (Views: 15.0ms | ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:39', '2012-11-28 22:58:39', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:39', 'User', '10d0abb1008d786e5c9d0e574a6c25c5', 344, 'User', '2012-11-28 22:58:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:39', NULL, NULL, NULL, '2012-11-28 22:58:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:39', `updated_at` = '2012-11-28 22:58:39', `subdomain` = 'account726' WHERE `accounts`.`id` = 726 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 344) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6971ff411f_1ced80435d4860842@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 344)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:40', 'tester@roles.test', '$2a$04$cMBtemQ7wnCr5xIdpfAh3uFHRyWb3EjWbGm8uy9JvI8tYN4Q7GDp6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:40') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:40', 'User', 'ce8094d54b3b188b2ab645728486d702', 345, 'User', '2012-11-28 22:58:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:40', NULL, NULL, NULL, '2012-11-28 22:58:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:40', `updated_at` = '2012-11-28 22:58:40', `subdomain` = 'account727' WHERE `accounts`.`id` = 727 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 727 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (727, 345) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 20:58:40 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b69720fe4e_1ced80435d486090@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 345) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.6ms | ActiveRecord: 2.8ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 726 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1205 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 13.1ms | ActiveRecord: 2.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:40', '2012-11-28 22:58:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:40', 'User', '5bab06efed2ab14c980067bdda49fcf7', 346, 'User', '2012-11-28 22:58:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:40', NULL, NULL, NULL, '2012-11-28 22:58:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:40', `updated_at` = '2012-11-28 22:58:40', `subdomain` = 'account728' WHERE `accounts`.`id` = 728 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 728 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (728, 346) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697202d293_1ced80435d4861016@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 346)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 ApiToken Load (0.7ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_346_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:40', '2012-11-28 22:58:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:40', 'User', 'd56ef024f8de3e4e572315352cdb3e8e', 347, 'User', '2012-11-28 22:58:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:40', NULL, NULL, NULL, '2012-11-28 22:58:40')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:40', `updated_at` = '2012-11-28 22:58:40', `subdomain` = 'account729' WHERE `accounts`.`id` = 729 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 729 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (729, 347) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6972062062_1ced80435d486113@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 347)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.4ms | ActiveRecord: 2.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:40', '2012-11-28 22:58:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:40', 'User', '3f032183c0906db22cea53f51e53c967', 348, 'User', '2012-11-28 22:58:40') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:40', NULL, NULL, NULL, '2012-11-28 22:58:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:40', `updated_at` = '2012-11-28 22:58:40', `subdomain` = 'account730' WHERE `accounts`.`id` = 730 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 730 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (730, 348) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:58:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6972081010_1ced80435d4861264@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 348)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 AND (accounts.id = NULL) LIMIT 1 Account Load (0.8ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 62ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by DashboardController#index as HTML User Load (1.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 1.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.9ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 37ms (Views: 31.3ms | ActiveRecord: 3.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (1.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 245ms (Views: 239.5ms | ActiveRecord: 3.3ms)  (3.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.5ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:40', '2012-11-28 22:58:40', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:40') ApiToken Exists (1.6ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.7ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (2.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:40', 'User', '2ba2848196aa17c1ddda4b8c8014b418', 349, 'User', '2012-11-28 22:58:40') ApiToken Load (4.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:40', NULL, NULL, NULL, '2012-11-28 22:58:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:40', `updated_at` = '2012-11-28 22:58:40', `subdomain` = 'account731' WHERE `accounts`.`id` = 731 Account Load (1.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 731 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (731, 349) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (1.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (1.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (2.7ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:40 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69720ea9f0_1ced80435d4861332@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 349)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 102ms (ActiveRecord: 22.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:40 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.4ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 349\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:40.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:40.000000000Z\n updated_at: 2012-11-28 22:58:40.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_349_destroy', '2012-11-28 22:58:41', '2012-11-28 22:58:41')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 20.5ms | ActiveRecord: 2.2ms)  (10.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:41', '2012-11-28 22:58:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:41') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:41', 'User', '8e34df318d9f328f34517ecbca34c747', 350, 'User', '2012-11-28 22:58:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:41', NULL, NULL, NULL, '2012-11-28 22:58:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:41', `updated_at` = '2012-11-28 22:58:41', `subdomain` = 'account732' WHERE `accounts`.`id` = 732 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 732 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (732, 350) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:41 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69721390ea_1ced80435d486143f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 350)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 177ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.5ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 350\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:41.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:41.000000000Z\n updated_at: 2012-11-28 22:58:41.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_350_destroy', '2012-11-28 22:58:41', '2012-11-28 22:58:41')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 19.5ms | ActiveRecord: 2.6ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:41', '2012-11-28 22:58:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:41', 'User', 'b310da74c18fd83654b01158f398b440', 351, 'User', '2012-11-28 22:58:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:41', NULL, NULL, NULL, '2012-11-28 22:58:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:41', `updated_at` = '2012-11-28 22:58:41', `subdomain` = 'account733' WHERE `accounts`.`id` = 733 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 733 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (733, 351) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 20:58:41 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697215a9c4_1ced80435d486156e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 351)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.5ms | ActiveRecord: 2.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 351\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:41.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:41.000000000Z\n updated_at: 2012-11-28 22:58:41.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_351_destroy', '2012-11-28 22:58:41', '2012-11-28 22:58:41')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 22:58:41', `updated_at` = '2012-11-28 22:58:41' WHERE `delayed_jobs`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 148ms (Views: 143.8ms | ActiveRecord: 2.3ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:41', '2012-11-28 22:58:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:41') ApiToken Exists (0.6ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:41', 'User', '9fc97874bea48321bef72a3901c912fa', 352, 'User', '2012-11-28 22:58:41') ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:41', NULL, NULL, NULL, '2012-11-28 22:58:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:41', `updated_at` = '2012-11-28 22:58:41', `subdomain` = 'account734' WHERE `accounts`.`id` = 734 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 734 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (734, 352) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 20:58:41 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b697219cc71_1ced80435d486164b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 352)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 62ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 Completed 200 OK in 18ms (Views: 14.6ms | ActiveRecord: 1.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:41', '2012-11-28 22:58:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:41') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:41', 'User', '12f1bfa4fd1882cede62889d2c9cac9e', 353, 'User', '2012-11-28 22:58:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:41', NULL, NULL, NULL, '2012-11-28 22:58:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:41', `updated_at` = '2012-11-28 22:58:41', `subdomain` = 'account735' WHERE `accounts`.`id` = 735 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 735 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (735, 353) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 20:58:41 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b69721b884b_1ced80435d4861748@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 353)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_353_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 143ms (Views: 138.6ms | ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 20:58:41 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (1.0ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (2.3ms) Completed 200 OK in 81ms (Views: 79.4ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 20:58:42 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:58:42', '2012-11-28 22:58:42', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 22:58:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:42', 'User', 'e4c54c7015fa0b3fb120a718a059546d', 354, 'User', '2012-11-28 22:58:42') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:42', NULL, NULL, NULL, '2012-11-28 22:58:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:42', `updated_at` = '2012-11-28 22:58:42', `subdomain` = 'account736' WHERE `accounts`.`id` = 736 Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 736 LIMIT 1 SQL (5.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (736, 354) AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 574) LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 574 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (574, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 574) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 574 LIMIT 1 SQL (2.0ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (574, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 22:58:42', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 354\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:58:42.045112000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 22:58:42.046107000Z\n updated_at: 2012-11-28 22:58:42.046107000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_354', '2012-12-05 22:58:42', '2012-11-28 22:58:42')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 22:58:42', `updated_at` = '2012-11-28 22:58:42' WHERE `users`.`id` = 354  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 354 AND (accounts.id = '735') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 354 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 14.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 20:58:42 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 354 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 20:58:42 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 354 LIMIT 1 Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'good@email.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 22:57:32', '2012-11-28 22:58:42', 'good@email.com', '$2a$04$U1Aiov9J8ZzuQQg5FiZUaesTnhG.77LePMvjlcpVlmidwTwC4.gqK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 22:58:42') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 355 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 22:58:42', 'User', '569e3f658ac81585af5392c03f9eb626', 355, 'User', '2012-11-28 22:58:42') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 355 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 22:58:42', NULL, NULL, NULL, '2012-11-28 22:58:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 22:58:42', `updated_at` = '2012-11-28 22:58:42', `subdomain` = 'account737' WHERE `accounts`.`id` = 737 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 737 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (737, 355) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 575) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (575, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 575) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (575, 'admin') Sent mail to good@email.com (6ms) Date: Wed, 28 Nov 2012 20:58:42 -0200 From: Iugu Reply-To: Iugu To: good@email.com Message-ID: <50b6972228f5b_1ced80435d48618da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 355  (0.8ms) ROLLBACK  (0.1ms) BEGIN User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notanemail' LIMIT 1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (18.9ms) TRUNCATE TABLE `account_domains`;  (1.2ms) TRUNCATE TABLE `account_roles`;  (1.2ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (1.3ms) TRUNCATE TABLE `api_tokens`;  (1.5ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (1.2ms) TRUNCATE TABLE `user_invitations`;  (1.9ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:05:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:05:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:29', '2012-11-28 23:05:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:05:29') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:29', NULL, NULL, NULL, '2012-11-28 23:05:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:29', `updated_at` = '2012-11-28 23:05:29', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 560ms (ActiveRecord: 21.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:29 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 126ms (Views: 123.6ms | ActiveRecord: 0.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (657.8ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 686ms (Views: 678.0ms | ActiveRecord: 5.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:31', '2012-11-28 23:05:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:05:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:31', NULL, NULL, NULL, '2012-11-28 23:05:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:31', `updated_at` = '2012-11-28 23:05:31', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 76ms (Views: 72.0ms | ActiveRecord: 2.4ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:31', '2012-11-28 23:05:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:05:31') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:31', NULL, NULL, NULL, '2012-11-28 23:05:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:31', `updated_at` = '2012-11-28 23:05:31', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 2.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 21ms (Views: 17.4ms | ActiveRecord: 2.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:31', '2012-11-28 23:05:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:05:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:31', NULL, NULL, NULL, '2012-11-28 23:05:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:31', `updated_at` = '2012-11-28 23:05:31', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 25ms (Views: 20.7ms | ActiveRecord: 1.8ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:05:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:05:31.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:05:31.000000000Z\n updated_at: 2012-11-28 23:05:31.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:05:31', '2012-11-28 23:05:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 42ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:31', '2012-11-28 23:05:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:05:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:31', NULL, NULL, NULL, '2012-11-28 23:05:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:31', `updated_at` = '2012-11-28 23:05:31', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.2ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:05:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:05:31.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:05:31.000000000Z\n updated_at: 2012-11-28 23:05:31.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:05:31', '2012-11-28 23:05:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 81ms (Views: 76.6ms | ActiveRecord: 2.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:31', '2012-11-28 23:05:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:05:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:31', NULL, NULL, NULL, '2012-11-28 23:05:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:31', `updated_at` = '2012-11-28 23:05:31', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 2.3ms) User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:05:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:05:31.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:05:31.000000000Z\n updated_at: 2012-11-28 23:05:31.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:05:31', '2012-11-28 23:05:31')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:05:31', `updated_at` = '2012-11-28 23:05:31' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:31', '2012-11-28 23:05:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:05:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:31', NULL, NULL, NULL, '2012-11-28 23:05:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:31', `updated_at` = '2012-11-28 23:05:31', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 17ms (Views: 14.3ms | ActiveRecord: 1.4ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:32', '2012-11-28 23:05:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:05:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:32', NULL, NULL, NULL, '2012-11-28 23:05:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:32', `updated_at` = '2012-11-28 23:05:32', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 1.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 17ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.1ms) Completed 200 OK in 130ms (Views: 127.9ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:05:32', '2012-11-28 23:05:32', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:05:32') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:05:32', NULL, NULL, NULL, '2012-11-28 23:05:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:05:32', `updated_at` = '2012-11-28 23:05:32', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:05:32', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:05:32.342242000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:05:32.343514000Z\n updated_at: 2012-11-28 23:05:32.343514000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:05:32', '2012-11-28 23:05:32')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:05:32', `updated_at` = '2012-11-28 23:05:32' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:05:32 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 1.0ms)  (1.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (23.7ms) TRUNCATE TABLE `account_domains`;  (1.2ms) TRUNCATE TABLE `account_roles`;  (1.2ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.3ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (15.4ms) TRUNCATE TABLE `user_invitations`;  (2.2ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:08:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:08:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:01', '2012-11-28 23:08:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:08:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:01', NULL, NULL, NULL, '2012-11-28 23:08:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:01', `updated_at` = '2012-11-28 23:08:01', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 420ms (ActiveRecord: 21.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:01 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 128ms (Views: 125.1ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:02 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (615.2ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 631ms (Views: 622.9ms | ActiveRecord: 5.9ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:08:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:08:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:02', '2012-11-28 23:08:02', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:08:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:02', NULL, NULL, NULL, '2012-11-28 23:08:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:02', `updated_at` = '2012-11-28 23:08:02', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 77ms (Views: 73.1ms | ActiveRecord: 2.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:03', '2012-11-28 23:08:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:08:03') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:03', NULL, NULL, NULL, '2012-11-28 23:08:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:03', `updated_at` = '2012-11-28 23:08:03', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 5.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:03', '2012-11-28 23:08:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:08:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:03', NULL, NULL, NULL, '2012-11-28 23:08:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:03', `updated_at` = '2012-11-28 23:08:03', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 25ms (Views: 21.3ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:08:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:08:03.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:08:03.000000000Z\n updated_at: 2012-11-28 23:08:03.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:08:03', '2012-11-28 23:08:03')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 26ms (ActiveRecord: 2.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 25ms (Views: 21.5ms | ActiveRecord: 1.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:03', '2012-11-28 23:08:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:08:03') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:03', NULL, NULL, NULL, '2012-11-28 23:08:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:03', `updated_at` = '2012-11-28 23:08:03', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 25ms (Views: 20.7ms | ActiveRecord: 2.2ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:08:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:08:03.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:08:03.000000000Z\n updated_at: 2012-11-28 23:08:03.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:08:03', '2012-11-28 23:08:03')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 81ms (Views: 76.5ms | ActiveRecord: 2.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:03', '2012-11-28 23:08:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:08:03') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:03', NULL, NULL, NULL, '2012-11-28 23:08:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:03', `updated_at` = '2012-11-28 23:08:03', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 17.2ms | ActiveRecord: 2.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:08:03', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:08:03.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:08:03.000000000Z\n updated_at: 2012-11-28 23:08:03.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:08:03', '2012-11-28 23:08:03')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:08:03', `updated_at` = '2012-11-28 23:08:03' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (1.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 28ms (Views: 22.2ms | ActiveRecord: 2.7ms)  (7.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:03', '2012-11-28 23:08:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:08:03') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:03', NULL, NULL, NULL, '2012-11-28 23:08:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:03', `updated_at` = '2012-11-28 23:08:03', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 31ms (ActiveRecord: 4.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 24ms (Views: 18.9ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 84ms (Views: 81.2ms | ActiveRecord: 1.4ms)  (13.9ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:08:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:03', '2012-11-28 23:08:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:08:03') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:03', NULL, NULL, NULL, '2012-11-28 23:08:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:03', `updated_at` = '2012-11-28 23:08:03', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 4.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 24ms (Views: 19.6ms | ActiveRecord: 2.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.0ms) Completed 200 OK in 112ms (Views: 110.5ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:08:04', '2012-11-28 23:08:04', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:08:04') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:08:04', NULL, NULL, NULL, '2012-11-28 23:08:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:08:04', `updated_at` = '2012-11-28 23:08:04', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:08:04', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:08:04.249739000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:08:04.250973000Z\n updated_at: 2012-11-28 23:08:04.250973000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:08:04', '2012-11-28 23:08:04')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:08:04', `updated_at` = '2012-11-28 23:08:04' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 28ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:08:04 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.9ms)  (18.6ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.0ms) TRUNCATE TABLE `account_domains`;  (19.4ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (0.7ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.8ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:14:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:14:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:14:57', '2012-11-28 23:14:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:14:57') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:14:57', NULL, NULL, NULL, '2012-11-28 23:14:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:14:57', `updated_at` = '2012-11-28 23:14:57', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 434ms (ActiveRecord: 21.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:14:58 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 126ms (Views: 123.1ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:58 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (645.7ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 665ms (Views: 657.1ms | ActiveRecord: 4.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:14:59', '2012-11-28 23:14:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:14:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:14:59', NULL, NULL, NULL, '2012-11-28 23:14:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:14:59', `updated_at` = '2012-11-28 23:14:59', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 4.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 25ms (Views: 20.9ms | ActiveRecord: 2.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 82ms (Views: 76.6ms | ActiveRecord: 2.4ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:14:59', '2012-11-28 23:14:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:14:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:14:59', NULL, NULL, NULL, '2012-11-28 23:14:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:14:59', `updated_at` = '2012-11-28 23:14:59', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 25ms (Views: 20.7ms | ActiveRecord: 2.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 2.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:14:59', '2012-11-28 23:14:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:14:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:14:59', NULL, NULL, NULL, '2012-11-28 23:14:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:14:59', `updated_at` = '2012-11-28 23:14:59', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 2.2ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:14:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:14:59.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:14:59.000000000Z\n updated_at: 2012-11-28 23:14:59.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:14:59', '2012-11-28 23:14:59')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 26ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:14:59', '2012-11-28 23:14:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:14:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:14:59', NULL, NULL, NULL, '2012-11-28 23:14:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:14:59', `updated_at` = '2012-11-28 23:14:59', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 24ms (Views: 19.4ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:14:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:14:59.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:14:59.000000000Z\n updated_at: 2012-11-28 23:14:59.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:14:59', '2012-11-28 23:14:59')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 84ms (Views: 79.5ms | ActiveRecord: 2.6ms)  (7.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:14:59', '2012-11-28 23:14:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:14:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:14:59', NULL, NULL, NULL, '2012-11-28 23:14:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:14:59', `updated_at` = '2012-11-28 23:14:59', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 5.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 24ms (Views: 19.4ms | ActiveRecord: 2.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:14:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:14:59.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:14:59.000000000Z\n updated_at: 2012-11-28 23:14:59.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:14:59', '2012-11-28 23:14:59')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:14:59', `updated_at` = '2012-11-28 23:14:59' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 2.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:14:59', '2012-11-28 23:14:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:14:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:14:59', NULL, NULL, NULL, '2012-11-28 23:14:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:14:59', `updated_at` = '2012-11-28 23:14:59', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:14:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 24ms (Views: 20.1ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 19ms (Views: 15.8ms | ActiveRecord: 1.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:15:00', '2012-11-28 23:15:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:15:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:15:00', NULL, NULL, NULL, '2012-11-28 23:15:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:15:00', `updated_at` = '2012-11-28 23:15:00', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 24ms (Views: 19.8ms | ActiveRecord: 2.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 22ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.8ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.0ms) Completed 200 OK in 140ms (Views: 137.3ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:15:00', '2012-11-28 23:15:00', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:15:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:15:00', NULL, NULL, NULL, '2012-11-28 23:15:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:15:00', `updated_at` = '2012-11-28 23:15:00', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:15:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:15:00.379256000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:15:00.380487000Z\n updated_at: 2012-11-28 23:15:00.380487000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:15:00', '2012-11-28 23:15:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:15:00', `updated_at` = '2012-11-28 23:15:00' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:15:00 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 1.0ms)  (1.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (21.5ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (6.6ms) TRUNCATE TABLE `account_users`;  (1.4ms) TRUNCATE TABLE `accounts`;  (1.1ms) TRUNCATE TABLE `api_tokens`;  (1.4ms) TRUNCATE TABLE `delayed_jobs`;  (0.8ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:16:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:16:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:04', '2012-11-28 23:16:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:16:04') SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:04', NULL, NULL, NULL, '2012-11-28 23:16:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:04', `updated_at` = '2012-11-28 23:16:04', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 423ms (ActiveRecord: 21.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:04 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 124ms (Views: 121.1ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:04 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (606.4ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 622ms (Views: 614.0ms | ActiveRecord: 5.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:05', '2012-11-28 23:16:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:16:05') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:05', NULL, NULL, NULL, '2012-11-28 23:16:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:05', `updated_at` = '2012-11-28 23:16:05', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 75ms (Views: 70.9ms | ActiveRecord: 2.6ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:05', '2012-11-28 23:16:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:16:05') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:05', NULL, NULL, NULL, '2012-11-28 23:16:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:05', `updated_at` = '2012-11-28 23:16:05', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 2.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 21ms (Views: 17.8ms | ActiveRecord: 2.0ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:05', '2012-11-28 23:16:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:16:05') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:05', NULL, NULL, NULL, '2012-11-28 23:16:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:05', `updated_at` = '2012-11-28 23:16:05', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:16:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:16:05.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:16:05.000000000Z\n updated_at: 2012-11-28 23:16:05.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:16:05', '2012-11-28 23:16:05')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 26ms (ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:05', '2012-11-28 23:16:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:16:05') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:05', NULL, NULL, NULL, '2012-11-28 23:16:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:05', `updated_at` = '2012-11-28 23:16:05', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:16:05', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:16:05.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:16:05.000000000Z\n updated_at: 2012-11-28 23:16:05.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:16:05', '2012-11-28 23:16:05')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:05 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 79ms (Views: 75.3ms | ActiveRecord: 2.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:06', '2012-11-28 23:16:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:16:06') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:06', NULL, NULL, NULL, '2012-11-28 23:16:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:06', `updated_at` = '2012-11-28 23:16:06', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.6ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:16:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:16:06.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:16:06.000000000Z\n updated_at: 2012-11-28 23:16:06.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:16:06', '2012-11-28 23:16:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:16:06', `updated_at` = '2012-11-28 23:16:06' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.8ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 2.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:06', '2012-11-28 23:16:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:16:06') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:06', NULL, NULL, NULL, '2012-11-28 23:16:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:06', `updated_at` = '2012-11-28 23:16:06', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 2.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 18ms (Views: 14.8ms | ActiveRecord: 1.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:06', '2012-11-28 23:16:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:16:06') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:06', NULL, NULL, NULL, '2012-11-28 23:16:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:06', `updated_at` = '2012-11-28 23:16:06', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 23ms (Views: 18.2ms | ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 17ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.1ms) Completed 200 OK in 111ms (Views: 109.7ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:16:06', '2012-11-28 23:16:06', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:16:06') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:16:06', NULL, NULL, NULL, '2012-11-28 23:16:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:16:06', `updated_at` = '2012-11-28 23:16:06', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:16:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:16:06.571514000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:16:06.572745000Z\n updated_at: 2012-11-28 23:16:06.572745000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:16:06', '2012-11-28 23:16:06')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:16:06', `updated_at` = '2012-11-28 23:16:06' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:16:06 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 1.0ms)  (1.5ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (20.6ms) TRUNCATE TABLE `account_roles`;  (1.5ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (0.9ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:17:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:17:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:43', '2012-11-28 23:17:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:17:43') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:43', NULL, NULL, NULL, '2012-11-28 23:17:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:43', `updated_at` = '2012-11-28 23:17:43', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 427ms (ActiveRecord: 21.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:44 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 125ms (Views: 122.0ms | ActiveRecord: 0.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (624.7ms)  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 640ms (Views: 632.0ms | ActiveRecord: 6.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:45', '2012-11-28 23:17:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:17:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:45', NULL, NULL, NULL, '2012-11-28 23:17:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:45', `updated_at` = '2012-11-28 23:17:45', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 24ms (Views: 19.6ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 76ms (Views: 71.4ms | ActiveRecord: 2.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:45', '2012-11-28 23:17:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:17:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:45', NULL, NULL, NULL, '2012-11-28 23:17:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:45', `updated_at` = '2012-11-28 23:17:45', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 24ms (Views: 19.7ms | ActiveRecord: 2.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:45', '2012-11-28 23:17:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:17:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:45', NULL, NULL, NULL, '2012-11-28 23:17:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:45', `updated_at` = '2012-11-28 23:17:45', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 19.4ms | ActiveRecord: 2.0ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:17:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:17:45.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:17:45.000000000Z\n updated_at: 2012-11-28 23:17:45.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:17:45', '2012-11-28 23:17:45')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 26ms (ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:45', '2012-11-28 23:17:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:17:45') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:45', NULL, NULL, NULL, '2012-11-28 23:17:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:45', `updated_at` = '2012-11-28 23:17:45', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:17:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:17:45.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:17:45.000000000Z\n updated_at: 2012-11-28 23:17:45.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:17:45', '2012-11-28 23:17:45')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 83ms (Views: 79.0ms | ActiveRecord: 2.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:45', '2012-11-28 23:17:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:17:45') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:45', NULL, NULL, NULL, '2012-11-28 23:17:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:45', `updated_at` = '2012-11-28 23:17:45', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 25ms (Views: 20.7ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:17:45', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:17:45.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:17:45.000000000Z\n updated_at: 2012-11-28 23:17:45.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:17:45', '2012-11-28 23:17:45')  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:17:45', `updated_at` = '2012-11-28 23:17:45' WHERE `delayed_jobs`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:45', '2012-11-28 23:17:45', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:17:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:45', NULL, NULL, NULL, '2012-11-28 23:17:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:45', `updated_at` = '2012-11-28 23:17:45', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 24ms (Views: 20.0ms | ActiveRecord: 2.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 18ms (Views: 14.9ms | ActiveRecord: 1.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:17:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:46', '2012-11-28 23:17:46', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:17:46') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:46', NULL, NULL, NULL, '2012-11-28 23:17:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:46', `updated_at` = '2012-11-28 23:17:46', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 22ms (Views: 18.5ms | ActiveRecord: 2.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 17ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.4ms) Completed 200 OK in 123ms (Views: 121.0ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:17:46', '2012-11-28 23:17:46', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:17:46') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:17:46', NULL, NULL, NULL, '2012-11-28 23:17:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:17:46', `updated_at` = '2012-11-28 23:17:46', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:17:46', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:17:46.257670000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:17:46.258880000Z\n updated_at: 2012-11-28 23:17:46.258880000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:17:46', '2012-11-28 23:17:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:17:46', `updated_at` = '2012-11-28 23:17:46' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 28ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:17:46 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.9ms)  (75.6ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (24.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (32.5ms) TRUNCATE TABLE `account_roles`;  (83.0ms) TRUNCATE TABLE `account_users`;  (80.1ms) TRUNCATE TABLE `accounts`;  (19.6ms) TRUNCATE TABLE `api_tokens`;  (45.8ms) TRUNCATE TABLE `delayed_jobs`;  (71.4ms) TRUNCATE TABLE `social_accounts`;  (1.6ms) TRUNCATE TABLE `user_invitations`;  (1.7ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:22:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:22:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:25', '2012-11-28 23:22:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:22:25') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:25', NULL, NULL, NULL, '2012-11-28 23:22:25')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:25', `updated_at` = '2012-11-28 23:22:25', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 510ms (ActiveRecord: 21.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:26 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 136ms (Views: 133.3ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:26 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (629.5ms)  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 646ms (Views: 638.7ms | ActiveRecord: 5.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:27', '2012-11-28 23:22:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:22:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:27', NULL, NULL, NULL, '2012-11-28 23:22:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:27', `updated_at` = '2012-11-28 23:22:27', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 84ms (Views: 80.2ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:27', '2012-11-28 23:22:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:22:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:27', NULL, NULL, NULL, '2012-11-28 23:22:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:27', `updated_at` = '2012-11-28 23:22:27', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 29ms (Views: 25.0ms | ActiveRecord: 2.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:27', '2012-11-28 23:22:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:22:27') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:27', NULL, NULL, NULL, '2012-11-28 23:22:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:27', `updated_at` = '2012-11-28 23:22:27', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 25ms (Views: 20.3ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:22:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:22:27.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:22:27.000000000Z\n updated_at: 2012-11-28 23:22:27.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:22:27', '2012-11-28 23:22:27')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 32ms (ActiveRecord: 1.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 30ms (Views: 25.5ms | ActiveRecord: 2.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:22:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:27', '2012-11-28 23:22:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:22:27') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:27', NULL, NULL, NULL, '2012-11-28 23:22:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:27', `updated_at` = '2012-11-28 23:22:27', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 33ms (ActiveRecord: 5.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 28ms (Views: 23.4ms | ActiveRecord: 2.2ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:22:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:22:27.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:22:27.000000000Z\n updated_at: 2012-11-28 23:22:27.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:22:28', '2012-11-28 23:22:28')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 81ms (Views: 77.2ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:28', '2012-11-28 23:22:28', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:22:28') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:28', NULL, NULL, NULL, '2012-11-28 23:22:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:28', `updated_at` = '2012-11-28 23:22:28', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 32ms (Views: 26.3ms | ActiveRecord: 2.7ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:22:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:22:28.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:22:28.000000000Z\n updated_at: 2012-11-28 23:22:28.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:22:28', '2012-11-28 23:22:28')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:22:28', `updated_at` = '2012-11-28 23:22:28' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 24ms (Views: 19.5ms | ActiveRecord: 2.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:28', '2012-11-28 23:22:28', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:22:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:28', NULL, NULL, NULL, '2012-11-28 23:22:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:28', `updated_at` = '2012-11-28 23:22:28', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 27ms (Views: 22.8ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 18ms (Views: 15.1ms | ActiveRecord: 1.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:28', '2012-11-28 23:22:28', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:22:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:28', NULL, NULL, NULL, '2012-11-28 23:22:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:28', `updated_at` = '2012-11-28 23:22:28', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 28ms (Views: 24.2ms | ActiveRecord: 2.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 18ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.1ms) Completed 200 OK in 115ms (Views: 113.0ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:22:28', '2012-11-28 23:22:28', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:22:28') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:22:28', NULL, NULL, NULL, '2012-11-28 23:22:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:22:28', `updated_at` = '2012-11-28 23:22:28', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:22:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:22:28.702636000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:22:28.703717000Z\n updated_at: 2012-11-28 23:22:28.703717000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:22:28', '2012-11-28 23:22:28')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:22:28', `updated_at` = '2012-11-28 23:22:28' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:22:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 1.1ms)  (0.9ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (23.6ms) TRUNCATE TABLE `account_domains`;  (8.1ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (1.4ms) TRUNCATE TABLE `accounts`;  (1.1ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (15.5ms) TRUNCATE TABLE `user_invitations`;  (1.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:24:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:24:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:57', '2012-11-28 23:24:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:24:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:57', NULL, NULL, NULL, '2012-11-28 23:24:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:57', `updated_at` = '2012-11-28 23:24:57', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 420ms (ActiveRecord: 21.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 125ms (Views: 122.1ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:57 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (609.0ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 625ms (Views: 617.2ms | ActiveRecord: 5.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:58', '2012-11-28 23:24:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:24:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:58', NULL, NULL, NULL, '2012-11-28 23:24:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:58', `updated_at` = '2012-11-28 23:24:58', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 76ms (Views: 71.5ms | ActiveRecord: 2.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:58', '2012-11-28 23:24:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:24:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:58', NULL, NULL, NULL, '2012-11-28 23:24:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:58', `updated_at` = '2012-11-28 23:24:58', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 24ms (Views: 19.4ms | ActiveRecord: 2.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:58', '2012-11-28 23:24:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:24:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:58', NULL, NULL, NULL, '2012-11-28 23:24:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:58', `updated_at` = '2012-11-28 23:24:58', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:24:58', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:24:58.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:24:58.000000000Z\n updated_at: 2012-11-28 23:24:58.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:24:58', '2012-11-28 23:24:58')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 83ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:58 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:59', '2012-11-28 23:24:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:24:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:59', NULL, NULL, NULL, '2012-11-28 23:24:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:59', `updated_at` = '2012-11-28 23:24:59', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:24:59.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:24:59.000000000Z\n updated_at: 2012-11-28 23:24:59.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:24:59', '2012-11-28 23:24:59')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (56.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 79ms (Views: 19.3ms | ActiveRecord: 58.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:59', '2012-11-28 23:24:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:24:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:59', NULL, NULL, NULL, '2012-11-28 23:24:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:59', `updated_at` = '2012-11-28 23:24:59', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 24ms (Views: 19.1ms | ActiveRecord: 2.1ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:24:59.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:24:59.000000000Z\n updated_at: 2012-11-28 23:24:59.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:24:59', '2012-11-28 23:24:59')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:24:59', `updated_at` = '2012-11-28 23:24:59' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.5ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:59', '2012-11-28 23:24:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:24:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:59', NULL, NULL, NULL, '2012-11-28 23:24:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:59', `updated_at` = '2012-11-28 23:24:59', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (1.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 29ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 24ms (Views: 19.6ms | ActiveRecord: 1.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 23ms (Views: 19.4ms | ActiveRecord: 1.3ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:59', '2012-11-28 23:24:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:24:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:59', NULL, NULL, NULL, '2012-11-28 23:24:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:59', `updated_at` = '2012-11-28 23:24:59', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 22ms (Views: 17.6ms | ActiveRecord: 2.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 16ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.0ms) Completed 200 OK in 111ms (Views: 109.6ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:24:59', '2012-11-28 23:24:59', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:24:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:24:59', NULL, NULL, NULL, '2012-11-28 23:24:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:24:59', `updated_at` = '2012-11-28 23:24:59', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:24:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:24:59.688004000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:24:59.689148000Z\n updated_at: 2012-11-28 23:24:59.689148000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:24:59', '2012-11-28 23:24:59')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:24:59', `updated_at` = '2012-11-28 23:24:59' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:24:59 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.9ms)  (1.5ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (30.7ms) TRUNCATE TABLE `account_domains`;  (7.9ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (1.1ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.3ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (1.1ms) TRUNCATE TABLE `user_invitations`;  (1.6ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:28:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:28:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:41', '2012-11-28 23:28:41', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:28:41') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:41', NULL, NULL, NULL, '2012-11-28 23:28:41')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:41', `updated_at` = '2012-11-28 23:28:41', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 543ms (ActiveRecord: 18.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:41 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.5ms) Completed 200 OK in 154ms (Views: 151.2ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:41 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (748.1ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 766ms (Views: 758.6ms | ActiveRecord: 4.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:28:42 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:28:42 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:42', '2012-11-28 23:28:42', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:28:42') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:42', NULL, NULL, NULL, '2012-11-28 23:28:42')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:42', `updated_at` = '2012-11-28 23:28:42', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 3.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 27ms (Views: 23.0ms | ActiveRecord: 2.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 92ms (Views: 88.1ms | ActiveRecord: 2.4ms)  (8.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:43', '2012-11-28 23:28:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:28:43') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:43', NULL, NULL, NULL, '2012-11-28 23:28:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:43', `updated_at` = '2012-11-28 23:28:43', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 3.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 24ms (Views: 20.2ms | ActiveRecord: 2.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 25ms (Views: 21.4ms | ActiveRecord: 1.9ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:43', '2012-11-28 23:28:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:28:43') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:43', NULL, NULL, NULL, '2012-11-28 23:28:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:43', `updated_at` = '2012-11-28 23:28:43', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 28ms (ActiveRecord: 4.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 29ms (Views: 24.3ms | ActiveRecord: 1.9ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:28:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:28:43.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:28:43.000000000Z\n updated_at: 2012-11-28 23:28:43.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:28:43', '2012-11-28 23:28:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 104ms (ActiveRecord: 1.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 31ms (Views: 27.0ms | ActiveRecord: 1.9ms)  (7.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:43', '2012-11-28 23:28:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:28:43') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:43', NULL, NULL, NULL, '2012-11-28 23:28:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:43', `updated_at` = '2012-11-28 23:28:43', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 3.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 29ms (Views: 24.5ms | ActiveRecord: 1.7ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:28:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:28:43.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:28:43.000000000Z\n updated_at: 2012-11-28 23:28:43.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:28:43', '2012-11-28 23:28:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 32ms (Views: 27.7ms | ActiveRecord: 1.8ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:43', '2012-11-28 23:28:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:28:43') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:43', NULL, NULL, NULL, '2012-11-28 23:28:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:43', `updated_at` = '2012-11-28 23:28:43', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 3.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 26ms (Views: 21.3ms | ActiveRecord: 1.8ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:28:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:28:43.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:28:43.000000000Z\n updated_at: 2012-11-28 23:28:43.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:28:43', '2012-11-28 23:28:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:28:43', `updated_at` = '2012-11-28 23:28:43' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 33ms (Views: 28.9ms | ActiveRecord: 1.9ms)  (8.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:43', '2012-11-28 23:28:43', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:28:43') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:43', NULL, NULL, NULL, '2012-11-28 23:28:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:43', `updated_at` = '2012-11-28 23:28:43', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 34ms (ActiveRecord: 4.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:43 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 1.1ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:44', '2012-11-28 23:28:44', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:28:44') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:44', NULL, NULL, NULL, '2012-11-28 23:28:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:44', `updated_at` = '2012-11-28 23:28:44', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 103ms (ActiveRecord: 4.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 31ms (Views: 26.7ms | ActiveRecord: 1.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (1.1ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.6ms) Completed 200 OK in 73ms (Views: 70.8ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:28:44', '2012-11-28 23:28:44', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:28:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:28:44', NULL, NULL, NULL, '2012-11-28 23:28:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:28:44', `updated_at` = '2012-11-28 23:28:44', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:28:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:28:44.407546000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:28:44.409114000Z\n updated_at: 2012-11-28 23:28:44.409114000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:28:44', '2012-11-28 23:28:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:28:44', `updated_at` = '2012-11-28 23:28:44' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 38ms (ActiveRecord: 4.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:28:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 0.9ms)  (8.2ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.7ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (24.6ms) TRUNCATE TABLE `account_domains`;  (0.8ms) TRUNCATE TABLE `account_roles`;  (7.5ms) TRUNCATE TABLE `account_users`;  (1.3ms) TRUNCATE TABLE `accounts`;  (1.4ms) TRUNCATE TABLE `api_tokens`;  (1.4ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:29', '2012-11-28 23:35:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:29') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:29', NULL, NULL, NULL, '2012-11-28 23:35:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:29', `updated_at` = '2012-11-28 23:35:29', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 551ms (ActiveRecord: 147.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 126ms (Views: 122.8ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:29 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (652.4ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 669ms (Views: 661.6ms | ActiveRecord: 5.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:30', '2012-11-28 23:35:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:30', NULL, NULL, NULL, '2012-11-28 23:35:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:30', `updated_at` = '2012-11-28 23:35:30', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 82ms (Views: 77.7ms | ActiveRecord: 2.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:30', '2012-11-28 23:35:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:30', NULL, NULL, NULL, '2012-11-28 23:35:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:30', `updated_at` = '2012-11-28 23:35:30', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 24ms (Views: 19.4ms | ActiveRecord: 2.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:30', '2012-11-28 23:35:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:30', NULL, NULL, NULL, '2012-11-28 23:35:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:30', `updated_at` = '2012-11-28 23:35:30', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 25ms (Views: 19.9ms | ActiveRecord: 2.2ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:35:30', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:35:30.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:35:30.000000000Z\n updated_at: 2012-11-28 23:35:30.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:35:30', '2012-11-28 23:35:30')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 26ms (ActiveRecord: 2.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:30', '2012-11-28 23:35:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:30') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:30', NULL, NULL, NULL, '2012-11-28 23:35:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:30', `updated_at` = '2012-11-28 23:35:30', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 24ms (Views: 20.1ms | ActiveRecord: 2.1ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:35:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:35:30.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:35:30.000000000Z\n updated_at: 2012-11-28 23:35:30.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:35:31', '2012-11-28 23:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 81ms (Views: 77.4ms | ActiveRecord: 2.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:31', '2012-11-28 23:35:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:31', NULL, NULL, NULL, '2012-11-28 23:35:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:31', `updated_at` = '2012-11-28 23:35:31', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.1ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:35:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:35:31.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:35:31.000000000Z\n updated_at: 2012-11-28 23:35:31.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:35:31', '2012-11-28 23:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:35:31', `updated_at` = '2012-11-28 23:35:31' WHERE `delayed_jobs`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 2.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:31', '2012-11-28 23:35:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:31', NULL, NULL, NULL, '2012-11-28 23:35:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:31', `updated_at` = '2012-11-28 23:35:31', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 27ms (Views: 23.1ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 18ms (Views: 15.0ms | ActiveRecord: 1.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:31', '2012-11-28 23:35:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:31') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:31', NULL, NULL, NULL, '2012-11-28 23:35:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:31', `updated_at` = '2012-11-28 23:35:31', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 17ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.9ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.2ms) Completed 200 OK in 114ms (Views: 111.9ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:31', '2012-11-28 23:35:31', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:35:31') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:31', NULL, NULL, NULL, '2012-11-28 23:35:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:31', `updated_at` = '2012-11-28 23:35:31', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:35:31', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:35:31.663101000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:35:31.664262000Z\n updated_at: 2012-11-28 23:35:31.664262000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:35:31', '2012-11-28 23:35:31')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:35:31', `updated_at` = '2012-11-28 23:35:31' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 1.0ms)  (1.2ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (23.3ms) TRUNCATE TABLE `account_roles`;  (18.9ms) TRUNCATE TABLE `account_users`;  (1.5ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.3ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:54', '2012-11-28 23:35:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:54') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:54', NULL, NULL, NULL, '2012-11-28 23:35:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:54', `updated_at` = '2012-11-28 23:35:54', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 431ms (ActiveRecord: 20.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.5ms) Completed 200 OK in 131ms (Views: 128.1ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (657.4ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 673ms (Views: 666.2ms | ActiveRecord: 5.0ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:56', '2012-11-28 23:35:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:56', NULL, NULL, NULL, '2012-11-28 23:35:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:56', `updated_at` = '2012-11-28 23:35:56', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 24ms (Views: 20.6ms | ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 79ms (Views: 75.1ms | ActiveRecord: 2.2ms)  (8.5ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:56', '2012-11-28 23:35:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:56', NULL, NULL, NULL, '2012-11-28 23:35:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:56', `updated_at` = '2012-11-28 23:35:56', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 5.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 24ms (Views: 20.1ms | ActiveRecord: 2.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 19.3ms | ActiveRecord: 2.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:56', '2012-11-28 23:35:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:56', NULL, NULL, NULL, '2012-11-28 23:35:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:56', `updated_at` = '2012-11-28 23:35:56', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 24ms (Views: 19.8ms | ActiveRecord: 2.1ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:35:56', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:35:56.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:35:56.000000000Z\n updated_at: 2012-11-28 23:35:56.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:35:56', '2012-11-28 23:35:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 85ms (ActiveRecord: 2.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:56', '2012-11-28 23:35:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:56', NULL, NULL, NULL, '2012-11-28 23:35:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:56', `updated_at` = '2012-11-28 23:35:56', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.4ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:35:56', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:35:56.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:35:56.000000000Z\n updated_at: 2012-11-28 23:35:56.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:35:56', '2012-11-28 23:35:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.7ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 80ms (Views: 75.9ms | ActiveRecord: 2.7ms)  (24.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:56', '2012-11-28 23:35:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:56', NULL, NULL, NULL, '2012-11-28 23:35:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:56', `updated_at` = '2012-11-28 23:35:56', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:56 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 2.3ms) User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:35:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:35:56.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:35:56.000000000Z\n updated_at: 2012-11-28 23:35:56.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:35:57', '2012-11-28 23:35:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:35:57', `updated_at` = '2012-11-28 23:35:57' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:57', '2012-11-28 23:35:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:57', NULL, NULL, NULL, '2012-11-28 23:35:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:57', `updated_at` = '2012-11-28 23:35:57', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 24ms (Views: 19.4ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 19ms (Views: 15.4ms | ActiveRecord: 1.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:57', '2012-11-28 23:35:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:35:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:57', NULL, NULL, NULL, '2012-11-28 23:35:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:57', `updated_at` = '2012-11-28 23:35:57', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 24ms (Views: 19.7ms | ActiveRecord: 2.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 16ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.8ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.1ms) Completed 200 OK in 112ms (Views: 110.4ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:35:57', '2012-11-28 23:35:57', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:35:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:35:57', NULL, NULL, NULL, '2012-11-28 23:35:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:35:57', `updated_at` = '2012-11-28 23:35:57', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:35:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:35:57.478422000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:35:57.479603000Z\n updated_at: 2012-11-28 23:35:57.479603000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:35:57', '2012-11-28 23:35:57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:35:57', `updated_at` = '2012-11-28 23:35:57' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:35:57 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 1.0ms)  (1.3ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (21.7ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (1.1ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.8ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:36:48 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:36:48 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:48', '2012-11-28 23:36:48', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:36:48') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:48', NULL, NULL, NULL, '2012-11-28 23:36:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:48', `updated_at` = '2012-11-28 23:36:48', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 431ms (ActiveRecord: 21.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:48 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 126ms (Views: 122.9ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:48 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (611.8ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 628ms (Views: 621.5ms | ActiveRecord: 4.2ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:49', '2012-11-28 23:36:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:36:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:49', NULL, NULL, NULL, '2012-11-28 23:36:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:49', `updated_at` = '2012-11-28 23:36:49', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 25ms (Views: 20.7ms | ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 77ms (Views: 73.1ms | ActiveRecord: 2.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:49', '2012-11-28 23:36:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:36:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:49', NULL, NULL, NULL, '2012-11-28 23:36:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:49', `updated_at` = '2012-11-28 23:36:49', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 2.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 22ms (Views: 17.8ms | ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:49', '2012-11-28 23:36:49', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:36:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:49', NULL, NULL, NULL, '2012-11-28 23:36:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:49', `updated_at` = '2012-11-28 23:36:49', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 28ms (ActiveRecord: 5.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:49 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 26ms (Views: 22.3ms | ActiveRecord: 2.1ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:36:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:36:49.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:36:49.000000000Z\n updated_at: 2012-11-28 23:36:49.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:36:50', '2012-11-28 23:36:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 85ms (ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:50', '2012-11-28 23:36:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:36:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:50', NULL, NULL, NULL, '2012-11-28 23:36:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:50', `updated_at` = '2012-11-28 23:36:50', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:36:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:36:50.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:36:50.000000000Z\n updated_at: 2012-11-28 23:36:50.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:36:50', '2012-11-28 23:36:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 83ms (Views: 79.5ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:50', '2012-11-28 23:36:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:36:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:50', NULL, NULL, NULL, '2012-11-28 23:36:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:50', `updated_at` = '2012-11-28 23:36:50', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:36:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:36:50.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:36:50.000000000Z\n updated_at: 2012-11-28 23:36:50.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:36:50', '2012-11-28 23:36:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:36:50', `updated_at` = '2012-11-28 23:36:50' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 27ms (Views: 22.0ms | ActiveRecord: 1.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:50', '2012-11-28 23:36:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:36:50') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:50', NULL, NULL, NULL, '2012-11-28 23:36:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:50', `updated_at` = '2012-11-28 23:36:50', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 33ms (ActiveRecord: 4.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 19ms (Views: 15.1ms | ActiveRecord: 1.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:50', '2012-11-28 23:36:50', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:36:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:50', NULL, NULL, NULL, '2012-11-28 23:36:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:50', `updated_at` = '2012-11-28 23:36:50', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 18ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.8ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.5ms) Completed 200 OK in 115ms (Views: 113.5ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:36:50', '2012-11-28 23:36:50', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:36:50') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:36:50', NULL, NULL, NULL, '2012-11-28 23:36:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:36:50', `updated_at` = '2012-11-28 23:36:50', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:36:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:36:50.859101000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:36:50.860172000Z\n updated_at: 2012-11-28 23:36:50.860172000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:36:50', '2012-11-28 23:36:50')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:36:50', `updated_at` = '2012-11-28 23:36:50' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 5.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:36:50 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.9ms)  (1.4ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (14.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.5ms) TRUNCATE TABLE `account_domains`;  (30.9ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:25 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:25 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.8ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/sessions/new.html.haml within layouts/application (593.6ms) Completed 200 OK in 690ms (Views: 669.1ms | ActiveRecord: 3.2ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.2ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.3ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.3ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.3ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.2ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (57.0ms) Completed 200 OK in 65ms (Views: 63.9ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:37:26 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.7ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (24.7ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (7.0ms) TRUNCATE TABLE `account_users`;  (1.4ms) TRUNCATE TABLE `accounts`;  (0.8ms) TRUNCATE TABLE `api_tokens`;  (1.3ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (0.8ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:38:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:38:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:17', '2012-11-28 23:38:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:38:17') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:17', NULL, NULL, NULL, '2012-11-28 23:38:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:17', `updated_at` = '2012-11-28 23:38:17', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 425ms (ActiveRecord: 21.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:18 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 125ms (Views: 121.7ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:18 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (613.8ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 631ms (Views: 622.6ms | ActiveRecord: 5.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:19', '2012-11-28 23:38:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:38:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:19', NULL, NULL, NULL, '2012-11-28 23:38:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:19', `updated_at` = '2012-11-28 23:38:19', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 76ms (Views: 71.9ms | ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:19', '2012-11-28 23:38:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:38:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:19', NULL, NULL, NULL, '2012-11-28 23:38:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:19', `updated_at` = '2012-11-28 23:38:19', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 25ms (Views: 21.4ms | ActiveRecord: 2.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 32ms (Views: 28.3ms | ActiveRecord: 2.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:19', '2012-11-28 23:38:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:38:19') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:19', NULL, NULL, NULL, '2012-11-28 23:38:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:19', `updated_at` = '2012-11-28 23:38:19', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 24ms (Views: 18.7ms | ActiveRecord: 2.4ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:38:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:38:19.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:38:19.000000000Z\n updated_at: 2012-11-28 23:38:19.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:38:19', '2012-11-28 23:38:19')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 85ms (ActiveRecord: 2.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:19', '2012-11-28 23:38:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:38:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:19', NULL, NULL, NULL, '2012-11-28 23:38:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:19', `updated_at` = '2012-11-28 23:38:19', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 24ms (Views: 19.4ms | ActiveRecord: 2.6ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:38:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:38:19.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:38:19.000000000Z\n updated_at: 2012-11-28 23:38:19.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:38:19', '2012-11-28 23:38:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 2.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:19', '2012-11-28 23:38:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:38:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:19', NULL, NULL, NULL, '2012-11-28 23:38:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:19', `updated_at` = '2012-11-28 23:38:19', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 17.8ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:38:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:38:19.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:38:19.000000000Z\n updated_at: 2012-11-28 23:38:19.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:38:19', '2012-11-28 23:38:19')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:38:19', `updated_at` = '2012-11-28 23:38:19' WHERE `delayed_jobs`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:38:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:19', '2012-11-28 23:38:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:38:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:19', NULL, NULL, NULL, '2012-11-28 23:38:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:19', `updated_at` = '2012-11-28 23:38:19', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 24ms (Views: 18.8ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 18ms (Views: 15.2ms | ActiveRecord: 1.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:20', '2012-11-28 23:38:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:38:20') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:20', NULL, NULL, NULL, '2012-11-28 23:38:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:20', `updated_at` = '2012-11-28 23:38:20', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 22ms (Views: 18.5ms | ActiveRecord: 2.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 16ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.8ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.0ms) Completed 200 OK in 111ms (Views: 109.6ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:38:20', '2012-11-28 23:38:20', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:38:20') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:38:20', NULL, NULL, NULL, '2012-11-28 23:38:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:38:20', `updated_at` = '2012-11-28 23:38:20', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:38:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:38:20.381260000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:38:20.382452000Z\n updated_at: 2012-11-28 23:38:20.382452000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:38:20', '2012-11-28 23:38:20')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:38:20', `updated_at` = '2012-11-28 23:38:20' WHERE `users`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:38:20 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.1ms)  (1.2ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (15.8ms) TRUNCATE TABLE `account_domains`;  (1.2ms) TRUNCATE TABLE `account_roles`;  (1.4ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (0.7ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.7ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:10 -0200  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:10 -0200  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:10 -0200  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:10 -0200  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:10 -0200  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:10 -0200  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:10 -0200  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:10 -0200  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.3ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (25.0ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (1.2ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (27.1ms) TRUNCATE TABLE `users`;  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:39:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:53', '2012-11-28 23:39:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:39:53') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:53', NULL, NULL, NULL, '2012-11-28 23:39:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:53', `updated_at` = '2012-11-28 23:39:53', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 423ms (ActiveRecord: 21.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:54 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 126ms (Views: 123.4ms | ActiveRecord: 0.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:54 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (635.8ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 651ms (Views: 643.4ms | ActiveRecord: 5.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:55', '2012-11-28 23:39:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:55', NULL, NULL, NULL, '2012-11-28 23:39:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:55', `updated_at` = '2012-11-28 23:39:55', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.2ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 78ms (Views: 73.6ms | ActiveRecord: 2.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:55', '2012-11-28 23:39:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:55', NULL, NULL, NULL, '2012-11-28 23:39:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:55', `updated_at` = '2012-11-28 23:39:55', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:55', '2012-11-28 23:39:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:55', NULL, NULL, NULL, '2012-11-28 23:39:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:55', `updated_at` = '2012-11-28 23:39:55', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 22ms (Views: 18.5ms | ActiveRecord: 2.0ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:39:55', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:39:55.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:39:55.000000000Z\n updated_at: 2012-11-28 23:39:55.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:39:55', '2012-11-28 23:39:55')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 26ms (ActiveRecord: 1.7ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:55', '2012-11-28 23:39:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:39:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:55', NULL, NULL, NULL, '2012-11-28 23:39:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:55', `updated_at` = '2012-11-28 23:39:55', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 2.4ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:39:55', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:39:55.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:39:55.000000000Z\n updated_at: 2012-11-28 23:39:55.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:39:55', '2012-11-28 23:39:55')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 80ms (Views: 75.8ms | ActiveRecord: 2.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:55', '2012-11-28 23:39:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:39:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:55', NULL, NULL, NULL, '2012-11-28 23:39:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:55', `updated_at` = '2012-11-28 23:39:55', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 28ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:55 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 26ms (Views: 21.8ms | ActiveRecord: 1.7ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:39:56', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:39:55.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:39:55.000000000Z\n updated_at: 2012-11-28 23:39:55.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:39:56', '2012-11-28 23:39:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:39:56', `updated_at` = '2012-11-28 23:39:56' WHERE `delayed_jobs`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:56', '2012-11-28 23:39:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:56', NULL, NULL, NULL, '2012-11-28 23:39:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:56', `updated_at` = '2012-11-28 23:39:56', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 25ms (Views: 20.4ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 17ms (Views: 14.2ms | ActiveRecord: 1.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:56', '2012-11-28 23:39:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:56', NULL, NULL, NULL, '2012-11-28 23:39:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:56', `updated_at` = '2012-11-28 23:39:56', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 24ms (Views: 19.7ms | ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 17ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.0ms) Completed 200 OK in 113ms (Views: 110.8ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:39:56', '2012-11-28 23:39:56', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:39:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:39:56', NULL, NULL, NULL, '2012-11-28 23:39:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:39:56', `updated_at` = '2012-11-28 23:39:56', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:39:56', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:39:56.473221000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:39:56.474434000Z\n updated_at: 2012-11-28 23:39:56.474434000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:39:56', '2012-11-28 23:39:56')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:39:56', `updated_at` = '2012-11-28 23:39:56' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:39:56 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.9ms)  (1.4ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (43.7ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (1.2ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:41:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:41:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:17', '2012-11-28 23:41:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:41:17') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:17', NULL, NULL, NULL, '2012-11-28 23:41:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:17', `updated_at` = '2012-11-28 23:41:17', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 434ms (ActiveRecord: 20.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:17 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.4ms) Completed 200 OK in 132ms (Views: 129.0ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:18 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (619.1ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 635ms (Views: 627.3ms | ActiveRecord: 5.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:41:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:41:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:18', '2012-11-28 23:41:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:41:18') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:18', NULL, NULL, NULL, '2012-11-28 23:41:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:18', `updated_at` = '2012-11-28 23:41:18', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 24ms (Views: 19.2ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 77ms (Views: 72.8ms | ActiveRecord: 2.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:19', '2012-11-28 23:41:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:41:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:19', NULL, NULL, NULL, '2012-11-28 23:41:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:19', `updated_at` = '2012-11-28 23:41:19', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:19', '2012-11-28 23:41:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:41:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:19', NULL, NULL, NULL, '2012-11-28 23:41:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:19', `updated_at` = '2012-11-28 23:41:19', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 27ms (Views: 22.3ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:41:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:41:19.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:41:19.000000000Z\n updated_at: 2012-11-28 23:41:19.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:41:19', '2012-11-28 23:41:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 84ms (ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:19', '2012-11-28 23:41:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:41:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:19', NULL, NULL, NULL, '2012-11-28 23:41:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:19', `updated_at` = '2012-11-28 23:41:19', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 5.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 1.9ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:41:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:41:19.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:41:19.000000000Z\n updated_at: 2012-11-28 23:41:19.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:41:19', '2012-11-28 23:41:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 2.5ms)  (6.4ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:19', '2012-11-28 23:41:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:41:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:19', NULL, NULL, NULL, '2012-11-28 23:41:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:19', `updated_at` = '2012-11-28 23:41:19', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 22ms (Views: 17.8ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:41:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:41:19.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:41:19.000000000Z\n updated_at: 2012-11-28 23:41:19.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:41:19', '2012-11-28 23:41:19')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:41:19', `updated_at` = '2012-11-28 23:41:19' WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.3ms)  (3.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:19', '2012-11-28 23:41:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:41:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:19', NULL, NULL, NULL, '2012-11-28 23:41:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:19', `updated_at` = '2012-11-28 23:41:19', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 18ms (Views: 15.0ms | ActiveRecord: 1.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:19', '2012-11-28 23:41:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:41:19') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:19', NULL, NULL, NULL, '2012-11-28 23:41:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:19', `updated_at` = '2012-11-28 23:41:19', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:41:19 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 17ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:20 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:41:20 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (56.3ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.0ms) Completed 200 OK in 112ms (Views: 110.5ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:41:20 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:41:20', '2012-11-28 23:41:20', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:41:20') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:41:20', NULL, NULL, NULL, '2012-11-28 23:41:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:41:20', `updated_at` = '2012-11-28 23:41:20', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:41:20', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:41:20.149142000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:41:20.150303000Z\n updated_at: 2012-11-28 23:41:20.150303000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:41:20', '2012-11-28 23:41:20')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:41:20', `updated_at` = '2012-11-28 23:41:20' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 5.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:41:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:41:20 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.0ms)  (1.2ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.3ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (20.4ms) TRUNCATE TABLE `account_domains`;  (21.4ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (1.1ms) TRUNCATE TABLE `accounts`;  (1.2ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 68ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:44:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (24.3ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (1.4ms) TRUNCATE TABLE `account_users`;  (1.4ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 69ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:46:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.0ms) TRUNCATE TABLE `account_domains`;  (21.8ms) TRUNCATE TABLE `account_roles`;  (1.2ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.8ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.8ms) TRUNCATE TABLE `social_accounts`;  (0.8ms) TRUNCATE TABLE `user_invitations`;  (10.1ms) TRUNCATE TABLE `users`;  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 75ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.0ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:49:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (17.6ms) TRUNCATE TABLE `account_roles`;  (1.2ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.8ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:50:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:50:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Rendered text template (0.0ms) Completed 404 Not Found in 100ms (Views: 98.6ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:21 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:21 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.8ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/sessions/new.html.haml within layouts/application (601.3ms) Completed 200 OK in 678ms (Views: 605.7ms | ActiveRecord: 3.7ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.3ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.3ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.3ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.3ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:22 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.2ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.3ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::ProfileController#index as HTML Completed 401 Unauthorized in 1ms Started GET "/login" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.1ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:50:23 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (33.3ms) TRUNCATE TABLE `account_domains`;  (1.2ms) TRUNCATE TABLE `account_roles`;  (0.8ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (1.2ms) TRUNCATE TABLE `api_tokens`;  (2.0ms) TRUNCATE TABLE `delayed_jobs`;  (7.9ms) TRUNCATE TABLE `social_accounts`;  (1.2ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 95ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (0.8ms) TRUNCATE TABLE `account_roles`;  (0.6ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (2.3ms) TRUNCATE TABLE `user_invitations`;  (46.5ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 70ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:53:47 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (0.9ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (25.9ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (1.3ms) TRUNCATE TABLE `account_users`;  (1.1ms) TRUNCATE TABLE `accounts`;  (1.4ms) TRUNCATE TABLE `api_tokens`;  (0.9ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.8ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 78ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 3ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK  (0.0ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:56:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 500 Internal Server Error in 2ms  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.5ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (25.5ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (1.1ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (1.4ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:57:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:57:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:21', '2012-11-28 23:57:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:21') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:21', NULL, NULL, NULL, '2012-11-28 23:57:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:21', `updated_at` = '2012-11-28 23:57:21', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 456ms (ActiveRecord: 21.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.5ms) Completed 200 OK in 126ms (Views: 122.8ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:22 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (613.3ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Completed 200 OK in 629ms (Views: 621.8ms | ActiveRecord: 5.1ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:23', '2012-11-28 23:57:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:23', NULL, NULL, NULL, '2012-11-28 23:57:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:23', `updated_at` = '2012-11-28 23:57:23', `subdomain` = 'account2' WHERE `accounts`.`id` = 2 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 2)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 2 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 Completed 200 OK in 75ms (Views: 71.5ms | ActiveRecord: 2.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:23', '2012-11-28 23:57:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:23', NULL, NULL, NULL, '2012-11-28 23:57:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:23', `updated_at` = '2012-11-28 23:57:23', `subdomain` = 'account3' WHERE `accounts`.`id` = 3 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 3)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 3 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:23', '2012-11-28 23:57:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:23') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:23', NULL, NULL, NULL, '2012-11-28 23:57:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:23', `updated_at` = '2012-11-28 23:57:23', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 4)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 24ms (Views: 20.3ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:23', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 4\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:57:23.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:57:23.000000000Z\n updated_at: 2012-11-28 23:57:23.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_4_destroy', '2012-11-28 23:57:23', '2012-11-28 23:57:23')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 84ms (ActiveRecord: 2.0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 4 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 2.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:23', '2012-11-28 23:57:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:23', NULL, NULL, NULL, '2012-11-28 23:57:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:23', `updated_at` = '2012-11-28 23:57:23', `subdomain` = 'account5' WHERE `accounts`.`id` = 5 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (5, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 5)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 24ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 24ms (Views: 19.3ms | ActiveRecord: 2.4ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:23', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 5\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:57:23.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:57:23.000000000Z\n updated_at: 2012-11-28 23:57:23.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_5_destroy', '2012-11-28 23:57:23', '2012-11-28 23:57:23')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 9ms (ActiveRecord: 1.7ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 5 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:23', '2012-11-28 23:57:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:23') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:23', NULL, NULL, NULL, '2012-11-28 23:57:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:23', `updated_at` = '2012-11-28 23:57:23', `subdomain` = 'account6' WHERE `accounts`.`id` = 6 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 6 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 6)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.2ms) User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:23', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 6\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:57:23.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:57:23.000000000Z\n updated_at: 2012-11-28 23:57:23.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_6_destroy', '2012-11-28 23:57:23', '2012-11-28 23:57:23')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:57:23', `updated_at` = '2012-11-28 23:57:23' WHERE `delayed_jobs`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 6 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 Completed 200 OK in 25ms (Views: 20.7ms | ActiveRecord: 2.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:23', '2012-11-28 23:57:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:23') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:23', NULL, NULL, NULL, '2012-11-28 23:57:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:23', `updated_at` = '2012-11-28 23:57:23', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.5ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 7)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 28ms (ActiveRecord: 4.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 7 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 27ms (Views: 22.6ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 Completed 200 OK in 19ms (Views: 16.1ms | ActiveRecord: 1.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:24', '2012-11-28 23:57:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:24', NULL, NULL, NULL, '2012-11-28 23:57:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:24', `updated_at` = '2012-11-28 23:57:24', `subdomain` = 'account8' WHERE `accounts`.`id` = 8 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (8, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 8)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 25ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 8 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 16ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (60.3ms) Completed 200 OK in 114ms (Views: 111.9ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:24', '2012-11-28 23:57:24', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:57:24') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:24', NULL, NULL, NULL, '2012-11-28 23:57:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:24', `updated_at` = '2012-11-28 23:57:24', `subdomain` = 'account9' WHERE `accounts`.`id` = 9 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 9 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:24', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 9\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:57:24.358640000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:57:24.359784000Z\n updated_at: 2012-11-28 23:57:24.359784000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_9', '2012-12-05 23:57:24', '2012-11-28 23:57:24')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:57:24', `updated_at` = '2012-11-28 23:57:24' WHERE `users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '8') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 27ms (ActiveRecord: 5.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:57:24 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 1.0ms)  (1.0ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (15.6ms) TRUNCATE TABLE `account_domains`;  (1.4ms) TRUNCATE TABLE `account_roles`;  (0.7ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (1.2ms) TRUNCATE TABLE `api_tokens`;  (1.3ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (1.1ms) TRUNCATE TABLE `user_invitations`;  (1.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:57:52', 'teste@teste.com', '$2a$04$nQ2Cb5R7J1mA5hR4FbwysOfbHf8BGihjByEqYwntL8OXXv0wT1P6q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:52') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:52', NULL, NULL, NULL, '2012-11-28 23:57:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:52', `updated_at` = '2012-11-28 23:57:52', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:52', 'jabanilson', NULL, 1, '2012-11-28 23:57:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:52', `updated_at` = '2012-11-28 23:57:52', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:52', 'jabanilson', NULL, 1, '2012-11-28 23:57:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:52', `updated_at` = '2012-11-28 23:57:52', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.7ms) Completed 200 OK in 150ms (Views: 146.7ms | ActiveRecord: 0.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:53', '2012-11-28 23:57:53', 'teste@teste.com', '$2a$04$P.yzwarAP7zHmIkj3TRAFeiqmYde8njQ4LSU8Yju519Rqedfchvne', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', NULL, NULL, NULL, '2012-11-28 23:57:53')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 5 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND `accounts`.`id` = 4 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 4 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 12ms (Views: 2.6ms | ActiveRecord: 3.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:53', '2012-11-28 23:57:53', 'teste@teste.com', '$2a$04$gcxaGod8g9w.NVVquKAbDOY3rQxUPeTi.lR17OO68DzQcFdecyKVS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', NULL, NULL, NULL, '2012-11-28 23:57:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 3) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 8 WHERE `account_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 3 AND `account_users`.`account_id` = 7 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (5) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (7) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 7 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 194ms (Views: 1.9ms | ActiveRecord: 2.0ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:53', '2012-11-28 23:57:53', 'teste@teste.com', '$2a$04$XSo869fzGjFbsuR10EQH.u2NbRpiEJgzGVgVHc/uGjdORtlvL0Z.u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', NULL, NULL, NULL, '2012-11-28 23:57:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 4) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account11' WHERE `accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account12' WHERE `accounts`.`id` = 12  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 4) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 11 WHERE `account_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"10"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 10 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND `accounts`.`id` = 10 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 10\n created_at: 2012-11-28 23:57:53.000000000Z\n updated_at: 2012-11-28 23:57:53.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account10\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_10_destroy', '2012-11-28 23:57:53', '2012-11-28 23:57:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_10_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 35ms (ActiveRecord: 5.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:53', '2012-11-28 23:57:53', 'teste@teste.com', '$2a$04$fCWr/BE/2eNWAQPcYbA4xu//a/3Xr4cqqlMfDCZnbVYZG3yfWPZrS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', NULL, NULL, NULL, '2012-11-28 23:57:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account14' WHERE `accounts`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account15' WHERE `accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 14 WHERE `account_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 13 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND `accounts`.`id` = 13 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 13\n created_at: 2012-11-28 23:57:53.000000000Z\n updated_at: 2012-11-28 23:57:53.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account13\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_13_destroy', '2012-11-28 23:57:53', '2012-11-28 23:57:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 13ms (ActiveRecord: 2.4ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:53', '2012-11-28 23:57:53', 'teste@teste.com', '$2a$04$6ZtPu7wAmUqjSCmnit0WvO.lY4j0X8dM6VIyE.uvEjcQvUcc6bp3O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:53') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', NULL, NULL, NULL, '2012-11-28 23:57:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account17' WHERE `accounts`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 17 WHERE `account_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"16"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:53', '2012-11-28 23:57:53', 'teste@teste.com', '$2a$04$MzC6udK/7nTXH0bAqQfqrO.XKLjDBusLf.prWCTgCjedb4CVJ/F.2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:53') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', NULL, NULL, NULL, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 7) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account20' WHERE `accounts`.`id` = 20  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account21' WHERE `accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (21, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 20 WHERE `account_users`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 19\n created_at: 2012-11-28 23:57:53.000000000Z\n updated_at: 2012-11-28 23:57:53.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account19\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_19_destroy', '2012-11-28 23:57:53', '2012-11-28 23:57:53')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"19"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 7 AND `account_users`.`account_id` = 19 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 13 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND `accounts`.`id` = 19 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:53', '2012-11-28 23:57:53', 'teste@teste.com', '$2a$04$OvR5Sr./Q0BdvMZrPokTf.Tg5msu.vg7uQCvI1iGVf/jI/O0n8oFW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', NULL, NULL, NULL, '2012-11-28 23:57:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account22' WHERE `accounts`.`id` = 22 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (22, 8) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account23' WHERE `accounts`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account24' WHERE `accounts`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 23 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 23 WHERE `account_users`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 22\n created_at: 2012-11-28 23:57:53.000000000Z\n updated_at: 2012-11-28 23:57:53.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account22\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_22_destroy', '2012-11-28 23:57:53', '2012-11-28 23:57:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"22"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 22 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND `accounts`.`id` = 22 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.8ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (17.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:53', '2012-11-28 23:57:53', 'teste@teste.com', '$2a$04$AQFzi9jkfzTxAPqRU8ZG2uo6c464452FrnDlz3Py8m2I5zcYQZcge', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:53') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', NULL, NULL, NULL, '2012-11-28 23:57:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account25' WHERE `accounts`.`id` = 25 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (25, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:53', 'jabanilson', NULL, 1, '2012-11-28 23:57:53')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:53', `updated_at` = '2012-11-28 23:57:53', `subdomain` = 'account27' WHERE `accounts`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 26 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 26 WHERE `account_users`.`id` = 18  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"25"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '25') LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$/1nTfQdwAac.EfWvAk.CUey8OXuworhuOse05O5WGo7Ly9n.nLi32', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account28' WHERE `accounts`.`id` = 28 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (28, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account29' WHERE `accounts`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account30' WHERE `accounts`.`id` = 30  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (30, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 29 WHERE `account_users`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"28"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 28 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account28' AND `accounts`.`id` != 28) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 23:57:54' WHERE `accounts`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/28 Completed 302 Found in 11ms (ActiveRecord: 2.1ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$JHvaGrwgMU/ghOboUlNXCu42YjjWEsJihb4pIaGjQQqNWNw37wq9W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account31' WHERE `accounts`.`id` = 31 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (31, 11) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account32' WHERE `accounts`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account33' WHERE `accounts`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (33, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 32 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 32 WHERE `account_users`.`id` = 22  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"31"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 11 AND `account_users`.`account_id` = 31 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 21 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account31' AND `accounts`.`id` != 31) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 23:57:54' WHERE `accounts`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/31 Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$50nEelQaO2gt7r6S1n1/IeDfjdcBzrX4BYX2lLI5jbhGNm2J8d1hO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account34' WHERE `accounts`.`id` = 34 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (34, 12) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account35' WHERE `accounts`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account36' WHERE `accounts`.`id` = 36  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (36, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 35 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 35 WHERE `account_users`.`id` = 24  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"34"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 34 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 23 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account34' AND `accounts`.`id` != 34) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-28 23:57:54' WHERE `accounts`.`id` = 34  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/34 Completed 302 Found in 9ms (ActiveRecord: 2.3ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$s00Ey/.s14kLxeH.Nr6hMelmokxmlI1gKpUsFUeLZM3p4iZAOQuhO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account37' WHERE `accounts`.`id` = 37 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (37, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account38' WHERE `accounts`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account39' WHERE `accounts`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (39, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 38 WHERE `account_users`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account40' WHERE `accounts`.`id` = 40  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (40, 13) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 3.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$BjjeWIDEL1sVSqPY.DCF5O45XzMGkXGMOzahDT5lClM6xPokCDq9G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account41' WHERE `accounts`.`id` = 41 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (41, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account42' WHERE `accounts`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account43' WHERE `accounts`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (43, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 42 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 42 WHERE `account_users`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account44' WHERE `accounts`.`id` = 44  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (44, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 17ms (ActiveRecord: 3.8ms)  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 Processing by Iugu::AccountController#create as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account45' WHERE `accounts`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (45, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 3.2ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$JfoKLovMp6RGBZo82JeeLONJgU7ozyhvdruZQ4nnSUjAOrLeilbHS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account46' WHERE `accounts`.`id` = 46 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (46, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account47' WHERE `accounts`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account48' WHERE `accounts`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (48, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 47 WHERE `account_users`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"47"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 15 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_47_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 15 AND `account_users`.`account_id` = 47 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 33 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND `accounts`.`id` = 47 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 47 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:57:54', 'token x', 'c91c4195c61ca8fa2be6f226ad0f954a', 47, 'Account', '2012-11-28 23:57:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/47 Completed 302 Found in 43ms (ActiveRecord: 6.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$eOIRzEQ22gMTDsC778rw8.rgit6EPxXypZ.3WpEQeWTVpdS.y9mFy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account49' WHERE `accounts`.`id` = 49 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (49, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account50' WHERE `accounts`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account51' WHERE `accounts`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (51, 16) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 50 WHERE `account_users`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 LIMIT 1 Account Load (24.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"50"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 16 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_50_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 16 AND `account_users`.`account_id` = 50 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 35 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND `accounts`.`id` = 50 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 50 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:57:54', 'token x', '186afe6d1d5515e91f1eda2c12446ff0', 50, 'Account', '2012-11-28 23:57:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/50 Completed 302 Found in 15ms (ActiveRecord: 3.7ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$Mj/xybmtSGVuffrswsuLk.xnl1PSlZ03ESiiqBs78DX5cwydX4fSi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account52' WHERE `accounts`.`id` = 52 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (52, 17) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account53' WHERE `accounts`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account54' WHERE `accounts`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (54, 17) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 53 WHERE `account_users`.`id` = 37  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 17 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND `accounts`.`id` = 53 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 53 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:57:54', 'token x', 'fd5fa5d5be73eb84717789dfc8416dbd', 53, 'Account', '2012-11-28 23:57:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/53 Completed 302 Found in 15ms (ActiveRecord: 2.9ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$9xSqMNGx1MhY1tR9ltWZd.1gp7RgX5K8Y1UNL733iOk20Mbv7gLGC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account55' WHERE `accounts`.`id` = 55 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (55, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account56' WHERE `accounts`.`id` = 56  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account57' WHERE `accounts`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (57, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 56 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 56 WHERE `account_users`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 55 AND `account_domains`.`url` = 'controller.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (55, NULL, 'controller.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"55"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 18 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_55_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 18 AND `account_users`.`account_id` = 55 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND `accounts`.`id` = 55 LIMIT 1 Completed 200 OK in 14ms (Views: 4.0ms | ActiveRecord: 2.5ms)  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$TT7kmCYpadbzxXz1mW4Q8.69kKuFaKI/0EamEn6yKB.LVLBFIy7eS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account58' WHERE `accounts`.`id` = 58 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (58, 19) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account59' WHERE `accounts`.`id` = 59  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account60' WHERE `accounts`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (60, 19) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 59 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 59 WHERE `account_users`.`id` = 41  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 19 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_58_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 19 AND `account_users`.`account_id` = 58 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND `accounts`.`id` = 58 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 58 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (58, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/58/domain/2 Completed 302 Found in 15ms (ActiveRecord: 3.4ms) AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$oCtRah8SlHS8vYlPyHckZ.zaO3JrfIjPg6Xe9VkzwcJZDIEE5k1cW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account61' WHERE `accounts`.`id` = 61 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (61, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account62' WHERE `accounts`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account63' WHERE `accounts`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (63, 20) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 62 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 62 WHERE `account_users`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 20 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 61 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (61, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/61/domain/3 Completed 302 Found in 14ms (ActiveRecord: 3.1ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.8ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:54', '2012-11-28 23:57:54', 'teste@teste.com', '$2a$04$KufeiJaJt/xd2yfC1dOJp.cP4SemYakvc4yvJtKkeYSRVFWYF8Sjy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:54') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', NULL, NULL, NULL, '2012-11-28 23:57:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account64' WHERE `accounts`.`id` = 64 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (64, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:54', 'jabanilson', NULL, 1, '2012-11-28 23:57:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:54', `updated_at` = '2012-11-28 23:57:54', `subdomain` = 'account65' WHERE `accounts`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account66' WHERE `accounts`.`id` = 66  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (66, 21) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 65 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 65 WHERE `account_users`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (64, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"64", "domain_id"=>"4"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 21 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_64_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 21 AND `account_users`.`account_id` = 64 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND `accounts`.`id` = 64 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`id` = 4 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 4  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/64/domains Completed 302 Found in 17ms (ActiveRecord: 3.7ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$QvSn77/j7CXgbU4erfc9z.TSjF4YECJWtIc.gxzo8iOPV2PJNEO8e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account67' WHERE `accounts`.`id` = 67 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (67, 22) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account68' WHERE `accounts`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account69' WHERE `accounts`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (69, 22) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 68 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 68 WHERE `account_users`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (67, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"67", "domain_id"=>"5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 22 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_67_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 22 AND `account_users`.`account_id` = 67 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND `accounts`.`id` = 67 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/67/domains Completed 302 Found in 15ms (ActiveRecord: 3.8ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$L0anfiR5o7puTACQ/qNP2ObcT1GOfgQvcbQN9josUVJpnrCz51kse', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account70' WHERE `accounts`.`id` = 70 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (70, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account71' WHERE `accounts`.`id` = 71  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account72' WHERE `accounts`.`id` = 72  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (72, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 71 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 71 WHERE `account_users`.`id` = 49  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (70, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"70", "domain_id"=>"1273816283761238716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 23 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_70_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 23 AND `account_users`.`account_id` = 70 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND `accounts`.`id` = 70 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/70/domains Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$GyZ3Dap8QyQPE1tA92yWc.lD9on2zFwQ1Mqc5IbBJzJX4KnjCo6f2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account73' WHERE `accounts`.`id` = 73 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (73, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account74' WHERE `accounts`.`id` = 74  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account75' WHERE `accounts`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (75, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 74 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 74 WHERE `account_users`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (73, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"73", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 24 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_73_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 24 AND `account_users`.`account_id` = 73 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND `accounts`.`id` = 73 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/73/domains Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$fFKUSTfAMhqMjUstCNqtEel9jKEaZl6pbgDuXQsYitssIW.9nH5Gq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account76' WHERE `accounts`.`id` = 76 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (76, 25) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account77' WHERE `accounts`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account78' WHERE `accounts`.`id` = 78  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (78, 25) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 77 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 77 WHERE `account_users`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (76, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"76", "domain_id"=>"8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 25 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_76_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND `accounts`.`id` = 76 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`id` = 8 LIMIT 1 Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 1.7ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$SkLwkaJlOAypabHUuKM/pefX3zo.LHkZ05XpTA6xDm3Tbjt1Rwn9S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account79' WHERE `accounts`.`id` = 79 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (79, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account80' WHERE `accounts`.`id` = 80  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account81' WHERE `accounts`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (81, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 80 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 80 WHERE `account_users`.`id` = 55  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (79, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"79", "domain_id"=>"1209371923812238"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 26 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_79_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND `accounts`.`id` = 79 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/79/domains Completed 302 Found in 8ms (ActiveRecord: 2.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$It4PaS1TZDkBbv7P56tElOKCyIrYr8UUESucxqV9Yl8zyo.bFgn32', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account82' WHERE `accounts`.`id` = 82 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (82, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account83' WHERE `accounts`.`id` = 83  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account84' WHERE `accounts`.`id` = 84  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (84, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 83 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 83 WHERE `account_users`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (82, NULL, 'instructions.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"82", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_82_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND `accounts`.`id` = 82 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/82/domains Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$GSEhnKucZgq6MF77OKAiB.kvia3DCT3gUzfDzdedsSvNzwmnVxW/q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account85' WHERE `accounts`.`id` = 85 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (85, 28) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account86' WHERE `accounts`.`id` = 86  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account87' WHERE `accounts`.`id` = 87  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (87, 28) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 86 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 86 WHERE `account_users`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (85, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"85", "domain_id"=>"11"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 28 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_85_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 28 AND `account_users`.`account_id` = 85 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND `accounts`.`id` = 85 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`id` = 11 LIMIT 1 Redirected to http://test.host/settings/account/85/domains Completed 302 Found in 12ms (ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$1dEr6EVqIjmGDA.T0gUyCeqD0t035.fI0LyDXe4AR6r4ItvU4qZrW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account88' WHERE `accounts`.`id` = 88 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (88, 29) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account89' WHERE `accounts`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account90' WHERE `accounts`.`id` = 90  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (90, 29) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 89 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 89 WHERE `account_users`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (88, NULL, 'verify.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"88", "domain_id"=>"12"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 29 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_88_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 29 AND `account_users`.`account_id` = 88 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND `accounts`.`id` = 88 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`id` = 12 LIMIT 1 Redirected to http://test.host/settings/account/88/domains Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (9.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$V7dovlhL2D8vIy1r9ypiveLEn27cGvbxXTXv1IpzSsjxxae.jGDX.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account91' WHERE `accounts`.`id` = 91 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (91, 30) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account92' WHERE `accounts`.`id` = 92  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account93' WHERE `accounts`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (93, 30) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 92 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 92 WHERE `account_users`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (91, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"91", "domain_id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 30 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_91_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 30 AND `account_users`.`account_id` = 91 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND `accounts`.`id` = 91 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`id` = 13 LIMIT 1 Redirected to http://test.host/settings/account/91/domain/13 Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$ugnHEloE9grBdX2CCLt3zuohP7j.tuX.M55urGWiyLspPjJ099.zi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account94' WHERE `accounts`.`id` = 94 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (94, 31) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account95' WHERE `accounts`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account96' WHERE `accounts`.`id` = 96  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (96, 31) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 95 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 95 WHERE `account_users`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (94, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"94", "domain_id"=>"14"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 31 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 31 AND `account_users`.`account_id` = 94 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND `accounts`.`id` = 94 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`id` = 14 LIMIT 1 Redirected to http://test.host/settings/account/94/domain/14 Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (8.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$hIJro4oVhWeWMc8jDgK9m.u.heudig.9Sai12Hs56CNFGqg7SsEIS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account97' WHERE `accounts`.`id` = 97 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (97, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account98' WHERE `accounts`.`id` = 98  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account99' WHERE `accounts`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (99, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 98 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 98 WHERE `account_users`.`id` = 67  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (97, NULL, 'verify.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"97", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 32 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_97_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 32 AND `account_users`.`account_id` = 97 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND `accounts`.`id` = 97 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/97/domains Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$SbLRxmpvkl1WvzHqlWWSnOQyjZ9XBIANJc/J//1TcPceRXrNQOnEG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account100' WHERE `accounts`.`id` = 100 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (100, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account101' WHERE `accounts`.`id` = 101  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account102' WHERE `accounts`.`id` = 102  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (102, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 101 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 101 WHERE `account_users`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (100, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"100", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 33 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_100_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 33 AND `account_users`.`account_id` = 100 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND `accounts`.`id` = 100 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/100/domains Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:55', '2012-11-28 23:57:55', 'teste@teste.com', '$2a$04$Z6PlZJX7CbTLL8Ogy4uG2OL9NVzVGc6v.8Iu6XkzE3H7ABigDcdCi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:55') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', NULL, NULL, NULL, '2012-11-28 23:57:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account103' WHERE `accounts`.`id` = 103 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (103, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account104' WHERE `accounts`.`id` = 104  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:55', 'jabanilson', NULL, 1, '2012-11-28 23:57:55')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:55', `updated_at` = '2012-11-28 23:57:55', `subdomain` = 'account105' WHERE `accounts`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (105, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 104 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 104 WHERE `account_users`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (103, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"103", "domain_id"=>"17"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 34 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_103_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 34 AND `account_users`.`account_id` = 103 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND `accounts`.`id` = 103 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`id` = 17 LIMIT 1 Redirected to http://test.host/settings/account/103/domains Completed 302 Found in 12ms (ActiveRecord: 2.7ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$Jrz0v8M4bA.RsVpoGs6aQ.2Iq0G4Fobhr09z70FWrPOJAtbN.dM0y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account106' WHERE `accounts`.`id` = 106 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (106, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account107' WHERE `accounts`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account108' WHERE `accounts`.`id` = 108  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (108, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 107 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 107 WHERE `account_users`.`id` = 73  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (106, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"106", "domain_id"=>"18"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 35 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_106_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 35 AND `account_users`.`account_id` = 106 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND `accounts`.`id` = 106 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`id` = 18 LIMIT 1 Redirected to http://test.host/settings/account/106/domains Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$j.1A7.7XUZZG2Huj.0MOEumdRVAiRFHpreHiq3inoGzCQI4qBi9vm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account109' WHERE `accounts`.`id` = 109 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (109, 36) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account110' WHERE `accounts`.`id` = 110  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account111' WHERE `accounts`.`id` = 111  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (111, 36) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 110 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 110 WHERE `account_users`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (109, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"109", "domain_id"=>"1231241243141314"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 36 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_109_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 36 AND `account_users`.`account_id` = 109 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND `accounts`.`id` = 109 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/109/domains Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$SIrOTyLcwfvl0qX/JFSuQOHJnW032xESN6LvDP4whQLG6UberJ5lS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account112' WHERE `accounts`.`id` = 112 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (112, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account113' WHERE `accounts`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account114' WHERE `accounts`.`id` = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (114, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 113 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 113 WHERE `account_users`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`url` = 'primary.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (112, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"112", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 37 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_112_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 37 AND `account_users`.`account_id` = 112 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND `accounts`.`id` = 112 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/112/domains Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$mEI3o3kBa1Pl.YhsEGbqAeEs3M2ouWQ8AbrJvuU7uYQwFmW74zO3q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account115' WHERE `accounts`.`id` = 115 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (115, 38) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account116' WHERE `accounts`.`id` = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account117' WHERE `accounts`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (117, 38) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 116 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 116 WHERE `account_users`.`id` = 79  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"115"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 38 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_115_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 38 AND `account_users`.`account_id` = 115 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND `accounts`.`id` = 115 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 115) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 23:57:56' WHERE `accounts`.`id` = 115  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/115/domains Completed 302 Found in 15ms (ActiveRecord: 3.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$XwiYGHm2zRDQfMpQvLXrXu6uzqwMUT3uy92l.y6EOa1kLBSiswiui', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account118' WHERE `accounts`.`id` = 118 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (118, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account119' WHERE `accounts`.`id` = 119  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account120' WHERE `accounts`.`id` = 120  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (120, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 119 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 119 WHERE `account_users`.`id` = 81  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"118"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 39 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_118_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 39 AND `account_users`.`account_id` = 118 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND `accounts`.`id` = 118 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 118) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 23:57:56' WHERE `accounts`.`id` = 118  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/118/domains Completed 302 Found in 14ms (ActiveRecord: 3.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$vqGWbjw2eG9VkJAmEj/Ub.W1uGPjqm5ZDX.2Nlfm1n0XZdoRWEoui', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account121' WHERE `accounts`.`id` = 121 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (121, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account122' WHERE `accounts`.`id` = 122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account123' WHERE `accounts`.`id` = 123  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (123, 40) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 122 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 122 WHERE `account_users`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 40 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 121) LIMIT 1  (0.2ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-28 23:57:56' WHERE `accounts`.`id` = 121  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/121/domains Completed 302 Found in 13ms (ActiveRecord: 2.8ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 2.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$KGow0TiiitaL6MlpPHv44ezTSRiO.FgSHRQbvLeCEMhXFFQk/mrXO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account124' WHERE `accounts`.`id` = 124 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (124, 41) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account125' WHERE `accounts`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account126' WHERE `accounts`.`id` = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (126, 41) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 125 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 125 WHERE `account_users`.`id` = 85  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"124"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 41 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_124_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 41 AND `account_users`.`account_id` = 124 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$5/JZOW22.67DOJz3k4LDTeVp35VdZtk0rWue7c0fdAF0X4bDgtBIK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account127' WHERE `accounts`.`id` = 127 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (127, 42) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account128' WHERE `accounts`.`id` = 128  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account129' WHERE `accounts`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (129, 42) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 128 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 128 WHERE `account_users`.`id` = 87  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 42 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_127_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$H0YJ2IQgISTv5XFS2O/6T.bIrRIF46WaQFcocyV3q2ZIxYzK5N6Wi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account130' WHERE `accounts`.`id` = 130 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (130, 43) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account131' WHERE `accounts`.`id` = 131  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account132' WHERE `accounts`.`id` = 132  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (132, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 131 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 131 WHERE `account_users`.`id` = 89  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"130", "domain_id"=>"1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 43 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_130_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$cg06go/Q4gKiDxna8IUrkexqhkJ.m3Q/NLPhWNT/AAv60hJKv.x4W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account133' WHERE `accounts`.`id` = 133 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (133, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account134' WHERE `accounts`.`id` = 134  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account135' WHERE `accounts`.`id` = 135  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (135, 44) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 134 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 134 WHERE `account_users`.`id` = 91  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"133"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 44 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_133_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 44 AND `account_users`.`account_id` = 133 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 10ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$J5kVudcweqMqn1q27/oGDuH4FkoUttjm75aY6icSeZQNR7p7rG2ca', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account136' WHERE `accounts`.`id` = 136 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (136, 45) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account137' WHERE `accounts`.`id` = 137  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account138' WHERE `accounts`.`id` = 138  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (138, 45) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 137 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 137 WHERE `account_users`.`id` = 93  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 136 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"136", "user_id"=>"45"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 45 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 AND `account_users`.`account_id` = 136 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND `accounts`.`id` = 136 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 136 AND `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136) Completed 200 OK in 16ms (Views: 3.5ms | ActiveRecord: 2.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$AmXG/xisRPXBpCR5uuTsPOotq7DUNwWw6r8WDK4Bngj6.p2/DYn72', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account139' WHERE `accounts`.`id` = 139 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (139, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account140' WHERE `accounts`.`id` = 140  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account141' WHERE `accounts`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (141, 46) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 140 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 140 WHERE `account_users`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 139 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"139", "user_id"=>"46"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 46 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 AND `account_users`.`account_id` = 139 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND `accounts`.`id` = 139 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 139 AND `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139) Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.4ms)  (11.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:56', '2012-11-28 23:57:56', 'teste@teste.com', '$2a$04$wzjDRfxTwjvUAOc4TDmfi.OahncluFv/auJb2qOtk9l5qHd/Gus6.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:56') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', NULL, NULL, NULL, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account142' WHERE `accounts`.`id` = 142 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 142 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (142, 47) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account143' WHERE `accounts`.`id` = 143  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:56', 'jabanilson', NULL, 1, '2012-11-28 23:57:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:56', `updated_at` = '2012-11-28 23:57:56', `subdomain` = 'account144' WHERE `accounts`.`id` = 144  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (144, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 143 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 143 WHERE `account_users`.`id` = 97  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142) Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"142", "user_id"=>"47"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 47 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 AND `account_users`.`account_id` = 142 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND `accounts`.`id` = 142 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 142 AND `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 142 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/142/users Completed 302 Found in 16ms (ActiveRecord: 3.3ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account145' WHERE `accounts`.`id` = 145  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$WkTR9EfkFzuTeFed501qQO.nxVuqMYaXJd.a6T9K04xnVqyyhW2oO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account146' WHERE `accounts`.`id` = 146 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (146, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account147' WHERE `accounts`.`id` = 147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account148' WHERE `accounts`.`id` = 148  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (148, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 147 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 147 WHERE `account_users`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 145\n created_at: 2012-11-28 23:57:57.015771000Z\n updated_at: 2012-11-28 23:57:57.015771000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account145\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_145_destroy', '2012-11-28 23:57:57', '2012-11-28 23:57:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"145"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 48 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 145 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_145_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 14ms (Views: 9.8ms | ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account149' WHERE `accounts`.`id` = 149  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$698fPCIxIpo4o6T6xrgUgui0eto9FM3LIzxvf0SefG1WYMisohCMa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account150' WHERE `accounts`.`id` = 150 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (150, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account151' WHERE `accounts`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account152' WHERE `accounts`.`id` = 152  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (152, 49) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 151 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 151 WHERE `account_users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"149"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 49 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 149 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_149_destroy' LIMIT 1 Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 1.2ms)  (2.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$b0EFAEJJURyw4BvdQANPt.FTMLnvkOXagD3NuUSwaLr87eOBVq03C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account153' WHERE `accounts`.`id` = 153 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (153, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account154' WHERE `accounts`.`id` = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account155' WHERE `accounts`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (155, 50) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 154 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 154 WHERE `account_users`.`id` = 103  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"153"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 50 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_153_destroy' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.8ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$V5RcjySfvlkZ.1In.OXGhOBrB.z7r4Tpj22yXHfmgcBfm3aCA/HXu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account156' WHERE `accounts`.`id` = 156 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (156, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account157' WHERE `accounts`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account158' WHERE `accounts`.`id` = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (158, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 157 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 157 WHERE `account_users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 51 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 1.3ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$wFZmkDOUpbVrJb.AfHoP/eSp2zvCAARvwC0Yfhoj1TT3Y08kmNj4a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account159' WHERE `accounts`.`id` = 159 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (159, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account160' WHERE `accounts`.`id` = 160  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account161' WHERE `accounts`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (161, 52) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 160 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 160 WHERE `account_users`.`id` = 107  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"159", "user_id"=>"52"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 52 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_159_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 159 AND `account_users`.`user_id` = 52 LIMIT 1 Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 1.3ms)  (11.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$cFIBM9439JlVz1xqX6mu3uJMAZtjGu6Cm5MT3VjXcQOpI4GTk4uyq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account162' WHERE `accounts`.`id` = 162 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 53) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account163' WHERE `accounts`.`id` = 163  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account164' WHERE `accounts`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (164, 53) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 163 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 163 WHERE `account_users`.`id` = 109  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'targetdestroy@teste.teste', '$2a$04$TLzqwLUIogmjMaZZxlY/N.BLD04PpQm/etAdkdmCGRsjcJqZD7vR6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account165' WHERE `accounts`.`id` = 165 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (165, 54) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"54"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 53 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$j8vyJSj.VQ65p4AQzSlU7uf2Pews5NwxoPX0sNhTtYso3qaOVgkc2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account166' WHERE `accounts`.`id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account167' WHERE `accounts`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account168' WHERE `accounts`.`id` = 168  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (168, 55) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 167 WHERE `account_users`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'targetdestroy@teste.teste', '$2a$04$OMJh9zkJTT95yc/5NuUEze/3gUBmzEb8JNj4P.NM3QO0L1D70ra..', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account169' WHERE `accounts`.`id` = 169 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (169, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 56) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"166", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 55 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_166_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 55 AND `account_users`.`account_id` = 166 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 166 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 9ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$ujky0cNqlQ/AcB6I4NWSIuWZVHjJZoKUy5/OrhIPAWEYYBQAzqdtW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account170' WHERE `accounts`.`id` = 170 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account171' WHERE `accounts`.`id` = 171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account172' WHERE `accounts`.`id` = 172  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (172, 57) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 171 WHERE `account_users`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'targetdestroy@teste.teste', '$2a$04$AXnneaQxjmaBh0eRUGnaQuHNAF.BG3TIqPxbqB1wnCxw7VNKDQtFO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account173' WHERE `accounts`.`id` = 173 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (173, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 170 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 237 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"170", "user_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_170_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 57 AND `account_users`.`account_id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 170 AND `account_users`.`user_id` = 58 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 119\n account_id: 170\n user_id: 58\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_119_destroy', '2012-11-28 23:57:57', '2012-11-28 23:57:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_119_destroy' LIMIT 1 Redirected to http://test.host/settings/account/170/users Completed 302 Found in 16ms (ActiveRecord: 3.8ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$q7KQUnxVmJbmVrp.kNcQUeuiXwvfgzlDoy/1.JZndxbS84wdE/vZi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account174' WHERE `accounts`.`id` = 174 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account175' WHERE `accounts`.`id` = 175  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account176' WHERE `accounts`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (176, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 175 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 175 WHERE `account_users`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'targetdestroy@teste.teste', '$2a$04$lhyG7Lrg4XepJ.0rUgHDuORO5VoZB0fAE5LCSioPbNJ9VtbyO5W3.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account177' WHERE `accounts`.`id` = 177 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 177 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (177, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 60) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 174 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 246 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"174", "user_id"=>"60"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 59 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_174_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 59 AND `account_users`.`account_id` = 174 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 174 AND `account_users`.`user_id` = 60 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 10ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$ptlE9sgHzZtYzIWri2z2yuX2jFdHMUdbl3ofhx/VUrWUKjbAMx18a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account178' WHERE `accounts`.`id` = 178 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account179' WHERE `accounts`.`id` = 179  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account180' WHERE `accounts`.`id` = 180  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (180, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 179 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 179 WHERE `account_users`.`id` = 125  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'targetdestroy@teste.teste', '$2a$04$AU8zzYAJA0OBvbCyYnJaUuYGXpG2M52aSCBoRYAlM3O2Ye.vu3Sjm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account181' WHERE `accounts`.`id` = 181 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (181, 62) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 62) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (124) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (178)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 178 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 249 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"178", "user_id"=>"61"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 61 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_178_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 61 AND `account_users`.`account_id` = 178 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Completed 404 Not Found in 10ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:57', '2012-11-28 23:57:57', 'teste@teste.com', '$2a$04$YoTgeN.V3TwDphbG3IWzle4/yXPML.08xFtLV.7B7pHeAgE03n43a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:57') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', NULL, NULL, NULL, '2012-11-28 23:57:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account182' WHERE `accounts`.`id` = 182 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account183' WHERE `accounts`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:57', 'jabanilson', NULL, 1, '2012-11-28 23:57:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:57', `updated_at` = '2012-11-28 23:57:57', `subdomain` = 'account184' WHERE `accounts`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (184, 63) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 183 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 183 WHERE `account_users`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'target@test.test', '$2a$04$zVseXql.PuAx.EdENziP3e.3pg/JqZe0mMJ4SkKRrmrdf5McYMWgW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account185' WHERE `accounts`.`id` = 185 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 185 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (185, 64) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 64) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 131  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 182 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 264 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 265  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:58', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 131\n account_id: 182\n user_id: 64\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_131_destroy', '2012-11-28 23:57:58', '2012-11-28 23:57:58')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"64"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 63 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 4ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'teste@teste.com', '$2a$04$aEd7xwc7Wr/XxsnSlRdi4etvU/oaajFO93g.toK/DlPzjQSx/Rg2e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account186' WHERE `accounts`.`id` = 186 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account187' WHERE `accounts`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account188' WHERE `accounts`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (188, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 187 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 187 WHERE `account_users`.`id` = 133  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'target@test.test', '$2a$04$Rqm16iUcwwmtAGJ.QFCNN.zzpWt7UEZUFVYMXux6gKwyFChA3xxvO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account189' WHERE `accounts`.`id` = 189 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (189, 66) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 66) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 135  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 186 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 273 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:58', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 135\n account_id: 186\n user_id: 66\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_135_destroy', '2012-11-28 23:57:58', '2012-11-28 23:57:58')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"186", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 65 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_186_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 65 AND `account_users`.`account_id` = 186 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 186 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 9ms  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'teste@teste.com', '$2a$04$ZhwIU2L95iw6lIkpkeoypOF9RCC6shw2WxSzqA2XCdS1lW7rRyzcm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account190' WHERE `accounts`.`id` = 190 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account191' WHERE `accounts`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account192' WHERE `accounts`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (192, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 191 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 191 WHERE `account_users`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'target@test.test', '$2a$04$mnUzUBINWWV5TSIbviEiRuup7TJZduTqhkWrlxq38QfTkCGfzLujS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account193' WHERE `accounts`.`id` = 193 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (193, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 68) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 139  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 282 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 283  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:58', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 139\n account_id: 190\n user_id: 68\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_139_destroy', '2012-11-28 23:57:58', '2012-11-28 23:57:58')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"190", "user_id"=>"68"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 67 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_190_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 190 AND `account_users`.`user_id` = 68 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/190/users Completed 302 Found in 12ms (ActiveRecord: 3.0ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'teste@teste.com', '$2a$04$oWt4AzeYMZ7BB.r7aMe2/.0Jg7DccY3d6kpBuFRBw7OOYT2JB4oUG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account194' WHERE `accounts`.`id` = 194 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account195' WHERE `accounts`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account196' WHERE `accounts`.`id` = 196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (196, 69) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 195 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 195 WHERE `account_users`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'target@test.test', '$2a$04$KAZJz3bS2KT3jZOaC3M5MOx91q7NNgg0f0EJnw44DDyWuQ2mvk3aq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account197' WHERE `accounts`.`id` = 197 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (197, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 70) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 143  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 291 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:58', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 143\n account_id: 194\n user_id: 70\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_143_destroy', '2012-11-28 23:57:58', '2012-11-28 23:57:58')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 286  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"194", "user_id"=>"70"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 69 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_194_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 194 AND `account_users`.`user_id` = 70 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/194/users Completed 302 Found in 12ms (ActiveRecord: 3.1ms)  (4.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'teste@teste.com', '$2a$04$IKCVVfH.1WMYCugL9L7cbemACcr0nLPTYYKwfqxoiW2F.IALc/aPi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account198' WHERE `accounts`.`id` = 198 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 71) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account199' WHERE `accounts`.`id` = 199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account200' WHERE `accounts`.`id` = 200  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (200, 71) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 199 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 199 WHERE `account_users`.`id` = 145  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'target@test.test', '$2a$04$RB6TIp.T.3XX0J08RtuolOgE0eFU3LTzeWUA1A2ceImx4EqeWiFDO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account201' WHERE `accounts`.`id` = 201 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 201 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (201, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 72) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 147  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 300 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:57:58', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 147\n account_id: 198\n user_id: 72\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_147_destroy', '2012-11-28 23:57:58', '2012-11-28 23:57:58')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'notowner@account.test', '$2a$04$J0prR61DE0MmmB0VKORrPO2DfdD9idcYH1SQU4A6trtKisEanZbyS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account202' WHERE `accounts`.`id` = 202 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (202, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account203' WHERE `accounts`.`id` = 203  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (203, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 198 WHERE `account_users`.`id` = 149  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 294 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"198", "user_id"=>"72"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 71 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_198_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (11.2ms) ROLLBACK  (0.3ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 98ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'teste@teste.com', '$2a$04$nRne5hgwmJdzMeDMQcDRUuGVevxmknqfKrsDeHanMuYGOFpY2f3YC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account204' WHERE `accounts`.`id` = 204 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (204, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account205' WHERE `accounts`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account206' WHERE `accounts`.`id` = 206  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (206, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 205 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 205 WHERE `account_users`.`id` = 151  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account207' WHERE `accounts`.`id` = 207  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"207"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 74 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 74 AND `account_users`.`account_id` = 207 LIMIT 1 Completed 404 Not Found in 3ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'teste@teste.com', '$2a$04$GNPDYluOpwEoL59F/NyWl.UrDMdYy0YKx2eBKbKq1x5CuHHOqoIEK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account208' WHERE `accounts`.`id` = 208 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (208, 75) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account209' WHERE `accounts`.`id` = 209  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account210' WHERE `accounts`.`id` = 210  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (210, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 209 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 209 WHERE `account_users`.`id` = 153  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"208"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 75 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 75 AND `account_users`.`account_id` = 208 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 Completed 200 OK in 21ms (Views: 3.7ms | ActiveRecord: 4.0ms)  (32.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:58', '2012-11-28 23:57:58', 'teste@teste.com', '$2a$04$woCfKlhDMvqMF/E0lhB4QO/v/2gF.E4Skg/pjYSp5gsnG.Idp7nQK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:58') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', NULL, NULL, NULL, '2012-11-28 23:57:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account211' WHERE `accounts`.`id` = 211 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (211, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account212' WHERE `accounts`.`id` = 212  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:58', 'jabanilson', NULL, 1, '2012-11-28 23:57:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:58', `updated_at` = '2012-11-28 23:57:58', `subdomain` = 'account213' WHERE `accounts`.`id` = 213  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (213, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 212 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 212 WHERE `account_users`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"211"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 76 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 76 AND `account_users`.`account_id` = 211 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 211 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (211, 'create@controller.teste', 76, NULL, '2012-11-28 23:57:58', 'Uj8teQtgELyHR0HPzFYFG0yp3BY') Sent mail to create@controller.teste (152ms) Date: Wed, 28 Nov 2012 21:57:59 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b6a50729834_227280435d484866e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1Uj8teQtgELyHR0HPzFYFG0yp3BY  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/211/users Completed 302 Found in 416ms (ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:59', '2012-11-28 23:57:59', 'teste@teste.com', '$2a$04$NsgGwTBklVpWMHeGhAYWTuOjYhe3DRSl7U/S4MiDaorOKsOM0cJAe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', NULL, NULL, NULL, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account214' WHERE `accounts`.`id` = 214 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 214 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (214, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account215' WHERE `accounts`.`id` = 215  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account216' WHERE `accounts`.`id` = 216  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (216, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 215 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 215 WHERE `account_users`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"214"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 77 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 77 AND `account_users`.`account_id` = 214 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 214 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (214, 'create@controller.teste', 77, NULL, '2012-11-28 23:57:59', '36GjlqVm2R1yVZ80y3JUWgfxIrQ') Sent mail to create@controller.teste (7ms) Date: Wed, 28 Nov 2012 21:57:59 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b6a50755f13_227280435d48487c0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/236GjlqVm2R1yVZ80y3JUWgfxIrQ  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/214/users Completed 302 Found in 31ms (ActiveRecord: 2.5ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:59', '2012-11-28 23:57:59', 'teste@teste.com', '$2a$04$uihnbW1rXuVxIY76EGvKmOwcVPd62SPNE65YscpWMFvHPiTapwgfW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', NULL, NULL, NULL, '2012-11-28 23:57:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account217' WHERE `accounts`.`id` = 217 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (217, 78) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account218' WHERE `accounts`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account219' WHERE `accounts`.`id` = 219  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (219, 78) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 218 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 218 WHERE `account_users`.`id` = 159  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 78 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 217 AND `users`.`email` = 'create@controller.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (217, 'create@controller.teste', 78, NULL, '2012-11-28 23:57:59', 'SV2wsRIALjZdK31F0hmWoeDpgeQ') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 21:57:59 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b6a50769629_227280435d48488dc@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3SV2wsRIALjZdK31F0hmWoeDpgeQ  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/217/users Completed 302 Found in 31ms (ActiveRecord: 2.5ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 1.5ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:59', '2012-11-28 23:57:59', 'teste@teste.com', '$2a$04$uOUR0qfvsmHo8O4.PMKWiOcDgrSAMAvv0lx2MpY/k0xA0yoqJXKt6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', NULL, NULL, NULL, '2012-11-28 23:57:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account220' WHERE `accounts`.`id` = 220 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 220 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (220, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account221' WHERE `accounts`.`id` = 221  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account222' WHERE `accounts`.`id` = 222  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (222, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 221 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 221 WHERE `account_users`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account223' WHERE `accounts`.`id` = 223  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 223 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (223, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:57:59', 'L72gMjgMiJnJc2RdwkGLo12lZqI') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 21:57:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5077dec9_227280435d4848933@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4L72gMjgMiJnJc2RdwkGLo12lZqI  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 79 WHERE `user_invitations`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 79 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:59', '2012-11-28 23:57:59', 'teste@teste.com', '$2a$04$e6qCXzp2MM0hDPxdx3bnCeHZR0gRn2sR9k9Ny30r9P25vdZJiK5EO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', NULL, NULL, NULL, '2012-11-28 23:57:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account224' WHERE `accounts`.`id` = 224 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (224, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account225' WHERE `accounts`.`id` = 225  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account226' WHERE `accounts`.`id` = 226  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (226, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 225 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 225 WHERE `account_users`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account227' WHERE `accounts`.`id` = 227  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 227 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (227, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:57:59', 'duc68unDlQz9NCxIctmQF_nGlrs') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 21:57:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a507918bc_227280435d484909f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5duc68unDlQz9NCxIctmQF_nGlrs  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 80 WHERE `user_invitations`.`id` = 5  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"5duc68unDlQz9NCxIctmQF_nGlrs"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 5 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 1.2ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:59', '2012-11-28 23:57:59', 'teste@teste.com', '$2a$04$G6f53tJ1TFVzs.tLLzLeiuPij0SsNvh.lSa4aB45KKisOp83TxZii', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:59') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', NULL, NULL, NULL, '2012-11-28 23:57:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account228' WHERE `accounts`.`id` = 228 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (228, 81) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account229' WHERE `accounts`.`id` = 229  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account230' WHERE `accounts`.`id` = 230  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (230, 81) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 229 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 229 WHERE `account_users`.`id` = 165  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account231' WHERE `accounts`.`id` = 231  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account232' WHERE `accounts`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 232 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (232, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:57:59', 'TzlAc0l8_UiHL4TbdnRLxAbFN9o') Sent mail to teste@teste.teste (86ms) Date: Wed, 28 Nov 2012 21:57:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a507a6851_227280435d48491d3@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/6TzlAc0l8_UiHL4TbdnRLxAbFN9o  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 231 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 231 WHERE `user_invitations`.`id` = 6  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 81 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:59', '2012-11-28 23:57:59', 'teste@teste.com', '$2a$04$FEgCVJS7Cwd5BaxvOKd0p.oTVcUdxu9.5WqlbKki.YQf8YNTgJ.LW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', NULL, NULL, NULL, '2012-11-28 23:57:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account233' WHERE `accounts`.`id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (233, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account234' WHERE `accounts`.`id` = 234  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account235' WHERE `accounts`.`id` = 235  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (235, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 234 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 234 WHERE `account_users`.`id` = 167  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account236' WHERE `accounts`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account237' WHERE `accounts`.`id` = 237  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 237 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (237, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:57:59', '_aUoN-OsHuBt__prV1_XwCSRTTI') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 21:57:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a507ce834_227280435d48492c9@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/7_aUoN-OsHuBt__prV1_XwCSRTTI  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 236 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 236 WHERE `user_invitations`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"7_aUoN-OsHuBt__prV1_XwCSRTTI"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 82 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 7 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 236 AND `account_users`.`user_id` = 82  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (236, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 4.5ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:59', '2012-11-28 23:57:59', 'teste@teste.com', '$2a$04$cjpWynqnRr0RcYn9UI0bietTgKauDl5S1t7BVS.0xDGlXMpOikDKC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', NULL, NULL, NULL, '2012-11-28 23:57:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account238' WHERE `accounts`.`id` = 238 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (238, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account239' WHERE `accounts`.`id` = 239  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account240' WHERE `accounts`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (240, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 239 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 239 WHERE `account_users`.`id` = 170  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account241' WHERE `accounts`.`id` = 241  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', 'jabanilson', NULL, 1, '2012-11-28 23:57:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account242' WHERE `accounts`.`id` = 242  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 242 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (242, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:57:59', 'uLRK6i4kz9X2_PzDHnePzrT3BNk') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 21:57:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a507e6d1a_227280435d48493f6@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/8uLRK6i4kz9X2_PzDHnePzrT3BNk  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 241 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 241 WHERE `user_invitations`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (241, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"8uLRK6i4kz9X2_PzDHnePzrT3BNk"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 83 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 8 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 241 AND `account_users`.`user_id` = 83 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:59', '2012-11-28 23:57:59', 'teste@teste.com', '$2a$04$.9YfpfPHU.Wk/ro5ZUdJT.HELiQbCeCGSW65MABzi2k9Xjh6iB1pe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:57:59') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:57:59', NULL, NULL, NULL, '2012-11-28 23:57:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:57:59', `updated_at` = '2012-11-28 23:57:59', `subdomain` = 'account243' WHERE `accounts`.`id` = 243 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (243, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account244' WHERE `accounts`.`id` = 244  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account245' WHERE `accounts`.`id` = 245  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (245, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 244 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 244 WHERE `account_users`.`id` = 173  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account246' WHERE `accounts`.`id` = 246  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account247' WHERE `accounts`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 247 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (247, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:00', 'FNcvGmM3AgnMZeiJIJhL8cpjq_Q') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 21:58:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a508b390_227280435d48494eb@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9FNcvGmM3AgnMZeiJIJhL8cpjq_Q  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 246 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 246 WHERE `user_invitations`.`id` = 9  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (246, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (4.6ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9FNcvGmM3AgnMZeiJIJhL8cpjq_Q"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 84 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 246 AND `account_users`.`user_id` = 84 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$XqOoBeVSP4XuMSGnJEXs8eSJ1C2C0D2dOg7iqjk9YovCNXz/P7DQy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account248' WHERE `accounts`.`id` = 248 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (248, 85) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account249' WHERE `accounts`.`id` = 249  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account250' WHERE `accounts`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (250, 85) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 249 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 249 WHERE `account_users`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 85 LIMIT 1 Completed 404 Not Found in 2ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$pN9gmIUviGGg62N0Lq8x6uLqVrZDeLTP9SXWj8LoTFkZUoiPTJhpe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account251' WHERE `accounts`.`id` = 251 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 251 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (251, 86) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account252' WHERE `accounts`.`id` = 252  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account253' WHERE `accounts`.`id` = 253  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (253, 86) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 252 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 252 WHERE `account_users`.`id` = 178  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 86 LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.5ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$2vbyNy77wzBp/qlR7h7x.OW4cH6LF3ZrLOsqHgbxjyGdcFGV8x1f.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account254' WHERE `accounts`.`id` = 254 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 254 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (254, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account255' WHERE `accounts`.`id` = 255  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account256' WHERE `accounts`.`id` = 256  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (256, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 255 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 255 WHERE `account_users`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 87 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 87  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 23:58:00' WHERE `users`.`id` = 87  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 2.0ms | ActiveRecord: 3.3ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$b2bEbkCdH7N.7/FE8mjjNe.Zu.IrdXR2OsVOG.zVWhz5ItYDx95R.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account257' WHERE `accounts`.`id` = 257 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 257 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (257, 88) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account258' WHERE `accounts`.`id` = 258  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account259' WHERE `accounts`.`id` = 259  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (259, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 258 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 258 WHERE `account_users`.`id` = 182  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 88 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 88  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-28 23:58:00' WHERE `users`.`id` = 88  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.7ms)  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account260' WHERE `accounts`.`id` = 260  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account261' WHERE `accounts`.`id` = 261  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (261, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 260 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 260 WHERE `account_users`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = 257) LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.7ms | ActiveRecord: 0.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$PM4wZJFbz7MWMPj9G8pk6OLd1N5OZLuX1xahciEkhQVbp/9FV2bFG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account262' WHERE `accounts`.`id` = 262 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 262 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (262, 89) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account263' WHERE `accounts`.`id` = 263  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account264' WHERE `accounts`.`id` = 264  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (264, 89) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 263 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 263 WHERE `account_users`.`id` = 185  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 89 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 89\n email: teste@teste.com\n encrypted_password: $2a$04$PM4wZJFbz7MWMPj9G8pk6OLd1N5OZLuX1xahciEkhQVbp/9FV2bFG\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:00.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:00.000000000Z\n updated_at: 2012-11-28 23:58:00.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_89_destroy', '2012-11-28 23:58:00', '2012-11-28 23:58:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 9ms (ActiveRecord: 1.3ms) Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$yRSASuho0YLHVNrp9Z5JhO94lTMGl12Uafo5.8wO6IkbuQxdm2dr6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account265' WHERE `accounts`.`id` = 265 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 265 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (265, 90) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account266' WHERE `accounts`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account267' WHERE `accounts`.`id` = 267  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (267, 90) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 266 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 266 WHERE `account_users`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 90 LIMIT 1 Completed 404 Not Found in 2ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$sDaggs42YFqKtY8tlZZLZ.xUqCZE/XIRRdP1iC79kf9gWq1v1E.JG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account268' WHERE `accounts`.`id` = 268 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (268, 91) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account269' WHERE `accounts`.`id` = 269  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account270' WHERE `accounts`.`id` = 270  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (270, 91) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 269 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 269 WHERE `account_users`.`id` = 189  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:00', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 91\n email: teste@teste.com\n encrypted_password: $2a$04$sDaggs42YFqKtY8tlZZLZ.xUqCZE/XIRRdP1iC79kf9gWq1v1E.JG\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:00.533007000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:00.533393000Z\n updated_at: 2012-11-28 23:58:00.533393000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_91_destroy', '2012-11-28 23:58:00', '2012-11-28 23:58:00')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$py9/npiDFuCqjglgJGMwuOpPo0/5Rm0u4CjJiB1/hVcsb0nHlX0Km', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account271' WHERE `accounts`.`id` = 271 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 271 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (271, 92) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account272' WHERE `accounts`.`id` = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account273' WHERE `accounts`.`id` = 273  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (273, 92) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 272 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 272 WHERE `account_users`.`id` = 191  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 92 WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 AND `social_accounts`.`id` = 1 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$P.KUF2p36HiGdem0zoHhEOzEdorS0.vhrGQ2IiOKKDRB8OEuOMLWG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account274' WHERE `accounts`.`id` = 274 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 274 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (274, 93) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account275' WHERE `accounts`.`id` = 275  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account276' WHERE `accounts`.`id` = 276  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (276, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 275 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 275 WHERE `account_users`.`id` = 193  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 93 WHERE `social_accounts`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 AND `social_accounts`.`id` = 2 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$iPTv0wi4/YU1AcUycXRFDuQOj3dXqaM2mwQWDFQFmHLjHAAFUhy26', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account277' WHERE `accounts`.`id` = 277 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 277 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (277, 94) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account278' WHERE `accounts`.`id` = 278  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account279' WHERE `accounts`.`id` = 279  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (279, 94) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 278 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 278 WHERE `account_users`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 94 WHERE `social_accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', '', '$2a$04$r14BEBa1RZ1GrmJhLNu11ORUNkl8WLwVDMpYA7R4ly/Hyqq7.vq2.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.3ms) UPDATE `social_accounts` SET `user_id` = 95 WHERE `social_accounts`.`id` = 4 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account280' WHERE `accounts`.`id` = 280 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 280 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (280, 95) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 AND `social_accounts`.`id` = 4 LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$74yT5Ksxqz6GdD.Cpd2/HOriYMoKTF0WwfVFC9.BTwu7GvayoJCam', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account281' WHERE `accounts`.`id` = 281 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 281 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (281, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account282' WHERE `accounts`.`id` = 282  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account283' WHERE `accounts`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (283, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 282 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 282 WHERE `account_users`.`id` = 198  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 96 WHERE `social_accounts`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', '', '$2a$04$gK3hbPVoBimsPo6bDe5fuuRkLYDfFGzqlcZ5xbhX2pFml6NjYzu8K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.3ms) UPDATE `social_accounts` SET `user_id` = 97 WHERE `social_accounts`.`id` = 6 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account284' WHERE `accounts`.`id` = 284 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 284 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (284, 97) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"6"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 AND `social_accounts`.`id` = 6 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:00', '2012-11-28 23:58:00', 'teste@teste.com', '$2a$04$uFA.fTofX5ZHPHCNhhUw5ukX7TFOJJyYLqX8CYtFV1bSHz7LPPqWW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:00') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', NULL, NULL, NULL, '2012-11-28 23:58:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account285' WHERE `accounts`.`id` = 285 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 285 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (285, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account286' WHERE `accounts`.`id` = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:00', 'jabanilson', NULL, 1, '2012-11-28 23:58:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:00', `updated_at` = '2012-11-28 23:58:00', `subdomain` = 'account287' WHERE `accounts`.`id` = 287  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (287, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 286 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 286 WHERE `account_users`.`id` = 201  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 98 WHERE `social_accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 98 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 98 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$xy1u8iUFF4UD5j7gJDOoe.eyhLMO.CDcMR.eYR6sM1IYGlOmLdGL6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account288' WHERE `accounts`.`id` = 288 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 288 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (288, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account289' WHERE `accounts`.`id` = 289  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account290' WHERE `accounts`.`id` = 290  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (290, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 289 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 289 WHERE `account_users`.`id` = 203  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 99 WHERE `social_accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 99 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 99 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$lPGFPU41Pz014WeCc1H/CuY/9OkikZUHgswkvvpDdtk3Y/mrCFoNW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account291' WHERE `accounts`.`id` = 291 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 291 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (291, 100) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account292' WHERE `accounts`.`id` = 292  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account293' WHERE `accounts`.`id` = 293  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (293, 100) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 292 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 292 WHERE `account_users`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `social_accounts` SET `user_id` = 100 WHERE `social_accounts`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account294' WHERE `accounts`.`id` = 294 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (294, 101) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 101\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:01.112306000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:01.113012000Z\n updated_at: 2012-11-28 23:58:01.113012000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_101', '2012-12-05 23:58:01', '2012-11-28 23:58:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 101 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 101 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 101) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$Z.hNW.4PIjuKfBVrfNGC6uh1yZyRz76muVdkaXpmOiF0dtcZ3ahvK', `updated_at` = '2012-11-28 23:58:01' WHERE `users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_101' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 AND (accounts.id = 291) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 3.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$pntkuDj/XSiV0BM0hDtijeOw0CJ/rnD2UeAkw6G1YfO.cEf8bhEDS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account295' WHERE `accounts`.`id` = 295 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 295 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (295, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account296' WHERE `accounts`.`id` = 296  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account297' WHERE `accounts`.`id` = 297  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (297, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 296 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 296 WHERE `account_users`.`id` = 208  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 102 WHERE `social_accounts`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account298' WHERE `accounts`.`id` = 298 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 298 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (298, 103) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 103\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:01.197410000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:01.198115000Z\n updated_at: 2012-11-28 23:58:01.198115000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_103', '2012-12-05 23:58:01', '2012-11-28 23:58:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 103 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 103 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 103) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$DkW/U2cynbvZfMm7qdMDCufyhoJkt.zVB6gv4PtknIE83Jzw.EQUu', `updated_at` = '2012-11-28 23:58:01' WHERE `users`.`id` = 103  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_103' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 AND (accounts.id = 295) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$T0690n5HXzFTcyz8ZXq08upCiXjDhIghjQteacjZnbpN02CH.LrpK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account299' WHERE `accounts`.`id` = 299 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (299, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account300' WHERE `accounts`.`id` = 300  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account301' WHERE `accounts`.`id` = 301  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (301, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 300 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 300 WHERE `account_users`.`id` = 211  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 104 WHERE `social_accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account302' WHERE `accounts`.`id` = 302 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 302 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (302, 105) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 105\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:01.283474000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:01.284194000Z\n updated_at: 2012-11-28 23:58:01.284194000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_105', '2012-12-05 23:58:01', '2012-11-28 23:58:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 105 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 105 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 105) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$ZE/ZYjTZbLgyV4FKVbNzRu/3Jwjt3tOEcxKjp3LU2MeRQoGYxiLNu', `updated_at` = '2012-11-28 23:58:01' WHERE `users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_105' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 AND (accounts.id = 299) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.2ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (18.7ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$fUJo6uzVi6RD9sKaYOxCje7tjHxAC9czPpjuGH4YfC/5R4WQ2m.ge', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account303' WHERE `accounts`.`id` = 303 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 303 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (303, 106) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account304' WHERE `accounts`.`id` = 304  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account305' WHERE `accounts`.`id` = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (305, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 304 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 304 WHERE `account_users`.`id` = 214  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 106 WHERE `social_accounts`.`id` = 12  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account306' WHERE `accounts`.`id` = 306 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (306, 107) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 107\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:01.387666000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:01.388451000Z\n updated_at: 2012-11-28 23:58:01.388451000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_107', '2012-12-05 23:58:01', '2012-11-28 23:58:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 107 LIMIT 1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (7.8ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account307' WHERE `accounts`.`id` = 307 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 307 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (307, 108) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:01', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 108\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:01.429747000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:01.430929000Z\n updated_at: 2012-11-28 23:58:01.430929000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_108', '2012-12-05 23:58:01', '2012-11-28 23:58:01')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01' WHERE `users`.`id` = 108  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 127ms (ActiveRecord: 5.8ms)  (7.8ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 35ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$DCji12zdf5LuABw5vDP2PeWVG0ctz2jAyyWofIC8uALDqm/CiuFgW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account308' WHERE `accounts`.`id` = 308 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 308 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (308, 109) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account309' WHERE `accounts`.`id` = 309  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account310' WHERE `accounts`.`id` = 310  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (310, 109) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 309 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 309 WHERE `account_users`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 109 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$jHF9sjiztVdnwIClAVzPsOMzBWf2iZMOoUrVeAn6.XLOunGSeAdxe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account311' WHERE `accounts`.`id` = 311 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 110) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account312' WHERE `accounts`.`id` = 312  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account313' WHERE `accounts`.`id` = 313  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (313, 110) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 312 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 312 WHERE `account_users`.`id` = 220  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'user2@email.email', '$2a$04$4OQCAjrpy7Zt0.l7QCOs4OWo1jcJEWJNdNO3Gdpp6zn7a5NCJILLG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account314' WHERE `accounts`.`id` = 314 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 314 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (314, 111) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 111) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 311 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 446 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 110 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.5ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (8.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$KhNF9c9u1TJT00/be.F0reCVS0fnvhic7r.LAEc8l90C/Y4nCbKuq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account315' WHERE `accounts`.`id` = 315 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 112) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account316' WHERE `accounts`.`id` = 316  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account317' WHERE `accounts`.`id` = 317  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (317, 112) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 316 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 316 WHERE `account_users`.`id` = 224  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'user2@email.email', '$2a$04$DUzGwdntgM877KGhoNjE8uqNtInBEByyQIwRAW8mYwDxwuaftpR3.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account318' WHERE `accounts`.`id` = 318 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (318, 113) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 113) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 455 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 456  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 112 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (12.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'teste@teste.com', '$2a$04$N4vHPVHP5i/2IrFZzkLKvOJrOLOW/pPvcsHhPhGoD/z0BnU8arMxe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account319' WHERE `accounts`.`id` = 319 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 114) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account320' WHERE `accounts`.`id` = 320  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', 'jabanilson', NULL, 1, '2012-11-28 23:58:01')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account321' WHERE `accounts`.`id` = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (321, 114) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 320 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 320 WHERE `account_users`.`id` = 228  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:01', '2012-11-28 23:58:01', 'user2@email.email', '$2a$04$eqcjBubB33niMAUgkmM.NOIfZpakvgjT9dreTy.9t5E98nSnPL8pq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:01') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:01', NULL, NULL, NULL, '2012-11-28 23:58:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:01', `updated_at` = '2012-11-28 23:58:01', `subdomain` = 'account322' WHERE `accounts`.`id` = 322 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 322 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (322, 115) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 115) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 319 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 465 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"319"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 114 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 93ms (Views: 0.4ms | ActiveRecord: 1.5ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"319"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.8ms)  (33.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:02', '2012-11-28 23:58:02', 'teste@teste.com', '$2a$04$6bjaGH9OglJSB9QqEw3UMe0oNRt39kmMM5vT0oAwswwyxhng.VL5y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', NULL, NULL, NULL, '2012-11-28 23:58:02')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account323' WHERE `accounts`.`id` = 323 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 116) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account324' WHERE `accounts`.`id` = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account325' WHERE `accounts`.`id` = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (325, 116) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 324 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 324 WHERE `account_users`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:02', '2012-11-28 23:58:02', 'user2@email.email', '$2a$04$h0wbFKsgUPRYuI9EEWLzRuJNr1j7PT5e0HjMkssI/P86ojcD3woqO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:02') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', NULL, NULL, NULL, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account326' WHERE `accounts`.`id` = 326 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 326 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (326, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 323 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 474 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 475  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"323"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 116 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 6ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:02', '2012-11-28 23:58:02', 'teste@teste.com', '$2a$04$FGQLhEcuBCVNwz7au6K5nupYV3iW9Cz6YUc36YXN24o2YAeshBbZm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', NULL, NULL, NULL, '2012-11-28 23:58:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account327' WHERE `accounts`.`id` = 327 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account328' WHERE `accounts`.`id` = 328  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account329' WHERE `accounts`.`id` = 329  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (329, 118) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 328 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 328 WHERE `account_users`.`id` = 236  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:02', '2012-11-28 23:58:02', 'user2@email.email', '$2a$04$BUj03g0riikeUElaQmGUc.Sx0taoiQC.eMaR6dXw32oLREUOOSLSC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', NULL, NULL, NULL, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account330' WHERE `accounts`.`id` = 330 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 330 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (330, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 327 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 483 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 484  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 491  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"327"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 118 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (7.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:02', '2012-11-28 23:58:02', 'teste@teste.com', '$2a$04$/G1a74cuIpEm31a7BvcxWOqsJ0i3OWRwP4Qt8hRAcTevko4ZoIIyO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:02') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', NULL, NULL, NULL, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account331' WHERE `accounts`.`id` = 331 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account332' WHERE `accounts`.`id` = 332  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account333' WHERE `accounts`.`id` = 333  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (333, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 332 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 332 WHERE `account_users`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:02', '2012-11-28 23:58:02', 'user2@email.email', '$2a$04$29TB8hTC1Qlc2.k/XtC.0.yehntg.QqWer9tDZEtn0nt0j69SyUjO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:02') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', NULL, NULL, NULL, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account334' WHERE `accounts`.`id` = 334 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 334 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (334, 121) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 331 LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 120 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 231213231231312312341 LIMIT 1 Completed 404 Not Found in 3ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account335' WHERE `accounts`.`id` = 335  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 335 AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (335, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:02', '1Uk3f8KOxZJqUUVWiFaqDVPbCys') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 21:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a50a74910_227280435d4849567@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/101Uk3f8KOxZJqUUVWiFaqDVPbCys  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account336' WHERE `accounts`.`id` = 336  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 336 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (336, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:02', 'irt9wOLKkEXBcEcgXpZ-QgRDjPI') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 21:58:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a50a7f255_227280435d484963@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/11irt9wOLKkEXBcEcgXpZ-QgRDjPI  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account337' WHERE `accounts`.`id` = 337  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 337 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (337, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account338' WHERE `accounts`.`id` = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 338 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (338, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account339' WHERE `accounts`.`id` = 339  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 339 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (339, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account340' WHERE `accounts`.`id` = 340  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 340 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (340, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account341' WHERE `accounts`.`id` = 341  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 341 AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (341, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account342' WHERE `accounts`.`id` = 342  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 342 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (342, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account343' WHERE `accounts`.`id` = 343  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account344' WHERE `accounts`.`id` = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 344 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (344, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account345' WHERE `accounts`.`id` = 345  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (345, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account346' WHERE `accounts`.`id` = 346  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 346 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (346, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account347' WHERE `accounts`.`id` = 347  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 347 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (347, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account348' WHERE `accounts`.`id` = 348  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url1.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url1.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url2.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 348  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 31  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 31  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 32 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 32 LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account349' WHERE `accounts`.`id` = 349  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 349 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (349, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account350' WHERE `accounts`.`id` = 350  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 350 AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (350, NULL, 'www.normal.host', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account351' WHERE `accounts`.`id` = 351  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 351 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (351, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account352' WHERE `accounts`.`id` = 352  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 352 AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (352, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account353' WHERE `accounts`.`id` = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 353 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (353, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:02', 'jabanilson', NULL, 1, '2012-11-28 23:58:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:02', `updated_at` = '2012-11-28 23:58:02', `subdomain` = 'account354' WHERE `accounts`.`id` = 354  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (354, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:05', 'jabanilson', NULL, 1, '2012-11-28 23:58:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:05', `updated_at` = '2012-11-28 23:58:05', `subdomain` = 'account355' WHERE `accounts`.`id` = 355  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 355 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (355, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:05', 'jabanilson', NULL, 1, '2012-11-28 23:58:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:05', `updated_at` = '2012-11-28 23:58:05', `subdomain` = 'account356' WHERE `accounts`.`id` = 356  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (356, NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 40  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`verified` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:05', 'jabanilson', NULL, 1, '2012-11-28 23:58:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:05', `updated_at` = '2012-11-28 23:58:05', `subdomain` = 'account357' WHERE `accounts`.`id` = 357  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 357 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (357, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:05', 'jabanilson', NULL, 1, '2012-11-28 23:58:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:05', `updated_at` = '2012-11-28 23:58:05', `subdomain` = 'account358' WHERE `accounts`.`id` = 358  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 358 AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (358, NULL, 'www.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 42  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:05', 'jabanilson', NULL, 1, '2012-11-28 23:58:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:05', `updated_at` = '2012-11-28 23:58:05', `subdomain` = 'account359' WHERE `accounts`.`id` = 359  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (359, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 42 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:06', 'jabanilson', NULL, 1, '2012-11-28 23:58:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:06', `updated_at` = '2012-11-28 23:58:06', `subdomain` = 'account360' WHERE `accounts`.`id` = 360  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 360 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (360, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:06', 'jabanilson', NULL, 1, '2012-11-28 23:58:06')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:06', `updated_at` = '2012-11-28 23:58:06', `subdomain` = 'account361' WHERE `accounts`.`id` = 361  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:06', 'jabanilson', NULL, 1, '2012-11-28 23:58:06')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:06', `updated_at` = '2012-11-28 23:58:06', `subdomain` = 'account362' WHERE `accounts`.`id` = 362  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (362, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 45 LIMIT 1  (5.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account363' WHERE `accounts`.`id` = 363  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 363 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (363, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account364' WHERE `accounts`.`id` = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account365' WHERE `accounts`.`id` = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 365 AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (365, 1, 'www.url1.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account366' WHERE `accounts`.`id` = 366  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 366 AND `account_domains`.`url` = 'www.url2.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (366, 0, 'www.url2.net', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 48  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 364  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account367' WHERE `accounts`.`id` = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 367 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (367, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account368' WHERE `accounts`.`id` = 368  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account369' WHERE `accounts`.`id` = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 369 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (369, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account370' WHERE `accounts`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 370 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (370, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 368  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 50 LIMIT 1  (16.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account371' WHERE `accounts`.`id` = 371  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 371 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (371, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account372' WHERE `accounts`.`id` = 372  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account373' WHERE `accounts`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 373 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (373, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account374' WHERE `accounts`.`id` = 374  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 374 AND `account_domains`.`url` = 'www.url2.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (374, 0, 'www.url2.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 53  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (10.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:07', '2012-11-28 23:58:07', 'teste@teste.com', '$2a$04$dVZ2IGEhxZLV8Hkn2zGfhO9eC.tUcO1k1KD5NPPz1re2a9u.47V2q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:07') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', NULL, NULL, NULL, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account375' WHERE `accounts`.`id` = 375 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (375, 122) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 375 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 502  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 243) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:07', '2012-11-28 23:58:07', 'teste@teste.com', '$2a$04$WyN/I2ghbRYhxeXfQ/WoDuVzhycwClEmCryuCCDOH3KLkS2/qu0wq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:07') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', NULL, NULL, NULL, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account376' WHERE `accounts`.`id` = 376 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 376 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (376, 123) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 376 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 244) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:07', '2012-11-28 23:58:07', 'teste@teste.com', '$2a$04$in0z2HidDtoVbQdMwTjq.OWHSN0icgjvuOAltHsEh5WNnds35d1YS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:07') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', NULL, NULL, NULL, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account377' WHERE `accounts`.`id` = 377 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 377 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (377, 124) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 377 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 508  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 245) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'guest')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:07', '2012-11-28 23:58:07', 'teste@teste.com', '$2a$04$MhROCrXESv7qxpagNoxxeek5Oq2c.w6dm2N/ApMFpPJjjLf/d0LV6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:07') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', NULL, NULL, NULL, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account378' WHERE `accounts`.`id` = 378 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 378 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (378, 125) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 378 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 511  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 246) LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != 512 AND `account_roles`.`account_user_id` = 246) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` LIMIT 1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'me@me.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:07', '2012-11-28 23:58:07', 'me@me.com', '$2a$04$10PEOdOWgTfifsdP5kw1auyVIVVp0/6ZDoBC4w6.hYr3dKgeInNfm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:07') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', NULL, NULL, NULL, '2012-11-28 23:58:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account384' WHERE `accounts`.`id` = 384 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (384, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account385' WHERE `accounts`.`id` = 385  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account386' WHERE `accounts`.`id` = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (386, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 385 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 385 WHERE `account_users`.`id` = 248  (0.1ms) RELEASE SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` INNER JOIN `account_users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 385 AND `users`.`id` = 126 LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdominio' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account389' WHERE `accounts`.`id` = 389  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 389 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account391' WHERE `accounts`.`id` = 391  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 391 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account393' WHERE `accounts`.`id` = 393  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 393\n created_at: 2012-11-28 23:58:07.823816000Z\n updated_at: 2012-11-28 23:58:07.823816000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account393\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_393_destroy', '2012-11-28 23:58:07', '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_393_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account395' WHERE `accounts`.`id` = 395  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_395_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account397' WHERE `accounts`.`id` = 397  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 397\n created_at: 2012-11-28 23:58:07.842704000Z\n updated_at: 2012-11-28 23:58:07.842704000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account397\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_397_destroy', '2012-11-28 23:58:07', '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_397_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account399' WHERE `accounts`.`id` = 399  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_399_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account401' WHERE `accounts`.`id` = 401  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 401\n created_at: 2012-11-28 23:58:07.861041000Z\n updated_at: 2012-11-28 23:58:07.861041000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account401\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_401_destroy', '2012-11-28 23:58:07', '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account403' WHERE `accounts`.`id` = 403  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 403\n created_at: 2012-11-28 23:58:07.873567000Z\n updated_at: 2012-11-28 23:58:07.873567000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account403\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_403_destroy', '2012-11-28 23:58:07', '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account405' WHERE `accounts`.`id` = 405  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', NULL, 1, '2012-11-28 23:58:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account407' WHERE `accounts`.`id` = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 407\n created_at: 2012-11-28 23:58:07.896124000Z\n updated_at: 2012-11-28 23:58:07.896124000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account407\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_407_destroy', '2012-11-28 23:58:07', '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07' WHERE `delayed_jobs`.`id` = 23  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:07', '2012-11-28 23:58:07', 'teste@teste.com', '$2a$04$7kAAC5nre81VW5n/qR26/uBCVLfm7Ib913maiFhVcerY9ASMpeFtW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:07') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', NULL, NULL, NULL, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account409' WHERE `accounts`.`id` = 409 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 409 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (409, 127) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 127 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 409 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 518  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 249 AND `account_roles`.`name` = 'user' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', 'jabanilson', 'unico', 1, '2012-11-28 23:58:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:07', '2012-11-28 23:58:07', 'teste@teste.com', '$2a$04$5ePt6F/NQVGgYPzmVHeQCO56gDrsaAqSgec8JlB1yWHusoGP4lcZO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:07') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:07', NULL, NULL, NULL, '2012-11-28 23:58:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:07', `updated_at` = '2012-11-28 23:58:07', `subdomain` = 'account411' WHERE `accounts`.`id` = 411 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 411 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (411, 128) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 128 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 411 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 521  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 250 AND `account_roles`.`name` = 'admin' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'unico', 1, '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account413' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account413' AND `accounts`.`id` != 413) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'Named', `updated_at` = '2012-11-28 23:58:08' WHERE `accounts`.`id` = 413  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'unico', 1, '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account415' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account415' AND `accounts`.`id` != 415) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = NULL, `updated_at` = '2012-11-28 23:58:08' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'unico', 1, '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account417' WHERE `accounts`.`id` = 417  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account417' AND `accounts`.`id` != 417) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-11-28 23:58:08' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'unico', 1, '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'subdomainfind', 1, '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 419 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (419, NULL, 'getfromdomain.account.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 55  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'getfromdomain.account.test' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 419 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'unico', 1, '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'subdomainfind', 1, '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 421 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (421, NULL, 'getfromdomain.account.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 56  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'subdomainfind.iugusdk.dev' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'subdomainfind' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'unico', 1, '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', 'subdomainfind', 1, '2012-11-28 23:58:08')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 423 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (423, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 57  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'notused.domain.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'notused.domain.test' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account424' WHERE `accounts`.`id` = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$KOx1qQ0RxoABquHuWneEaOkcKA3eCi22Pd/p2fcKt1d1HF83Qmz.6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account425' WHERE `accounts`.`id` = 425 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 425 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (425, 129) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (424, 129) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account426' WHERE `accounts`.`id` = 426  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$3PXy.a0UKNlSbZF519Wkhuy0rqML1r/ZjAvcGXVMVBAPPgX.fZmIm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account427' WHERE `accounts`.`id` = 427 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 427 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (427, 130) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (426, 130) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 426 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 530  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 254) LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 531 AND `account_roles`.`account_user_id` = 254) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254 AND `account_roles`.`name` = 'user' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account428' WHERE `accounts`.`id` = 428  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$rH2w3umJudQCnJh8c4nDVudmJJQun50qKsSp.EL3bsIYpjmZCvUN6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account429' WHERE `accounts`.`id` = 429 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 429 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (429, 131) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (428, 131) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 428 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 535  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 256) LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 536 AND `account_roles`.`account_user_id` = 256) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256 AND `account_roles`.`name` = 'admin' LIMIT 1  (9.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account430' WHERE `accounts`.`id` = 430  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$SCZfLSmGP4UQBIuE8fNumO2LSVM0z/CiEjhknF4fgaP.tTBIb95mS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account431' WHERE `accounts`.`id` = 431 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 431 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (431, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (430, 132) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 430 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 540  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 258) LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 541 AND `account_roles`.`account_user_id` = 258) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258 AND `account_roles`.`name` = 'user' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account432' WHERE `accounts`.`id` = 432  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$1jfknbnc1EKEW2Ei1p9a0O4Ex8F/4vjjKspcg2w89cSqmo/xdbjW6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account433' WHERE `accounts`.`id` = 433 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 433 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (433, 133) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (432, 133) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'notowner@account.test', '$2a$04$zpT5wSprqiA6K/IxI0xktux7SXr6qcIJh4xTxDXV6M4gtRHrO.g4O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account434' WHERE `accounts`.`id` = 434 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 434 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (434, 134) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account435' WHERE `accounts`.`id` = 435  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (435, 134) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 432 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 432 WHERE `account_users`.`id` = 262  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 432 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 545  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260 AND `account_roles`.`name` = 'my_owner' LIMIT 1  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account436' WHERE `accounts`.`id` = 436  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$oETaxnsQTevbfgijQQVLfua8bGAiYi3Z7ca0xXBxtq4Zpiu5KoDPu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account437' WHERE `accounts`.`id` = 437 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 437 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (437, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_user')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (436, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'notowner@account.test', '$2a$04$GkbCe7IvNIWiyuM2Bp5ELucXCPOYVqIr/QcEcStl/ABjl7UboJe6i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account438' WHERE `accounts`.`id` = 438 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (438, 136) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account439' WHERE `accounts`.`id` = 439  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (439, 136) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 436 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 436 WHERE `account_users`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 436 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 553  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264 AND `account_roles`.`name` = 'my_user' LIMIT 1  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account440' WHERE `accounts`.`id` = 440  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$TI6WElgj5bfxaBqMLD9JxO1lV8Kh1dlS4rvCDjQvy52gzUgpR/KdK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account441' WHERE `accounts`.`id` = 441 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 441 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (441, 137) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (440, 137) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 440 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 562  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_guest' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268 AND `account_roles`.`name` = 'my_guest' LIMIT 1  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account442' WHERE `accounts`.`id` = 442  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$/qWJRY9Mrciuq8N5iU74OOUtozT8a.16O4QBMCop3XEEgxK/Qb/kq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account443' WHERE `accounts`.`id` = 443 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (443, 138) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_user')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (442, 138) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 270  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 442 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 567  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account444' WHERE `accounts`.`id` = 444  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$5RCgbrCqGEPhcPFB5h8/RuMwgspIqdSUSV8do33pp/q8ISZWqr7bW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account445' WHERE `accounts`.`id` = 445 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (445, 139) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (444, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 272  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 444 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 572  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account446' WHERE `accounts`.`id` = 446  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$RQJtH5eLXAcpTpT6qGGFP.mHObf6ouTpNDWqO6mVXxJQoLAg6TFpq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account447' WHERE `accounts`.`id` = 447 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (447, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (446, 140) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 274  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 446 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account448' WHERE `accounts`.`id` = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$fAldwv/Cux.4PyZwZEeGtOqqXRnerO3KQrj/xRkX2ajesb7fUam4u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account449' WHERE `accounts`.`id` = 449 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (449, 141) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (448, 141) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 276  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 448 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 580  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account450' WHERE `accounts`.`id` = 450  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$cmdV42rqdkM9nreLxYt.vuDWYvCLJjdsgsSRmOKJ1mpqtpnypahbG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account451' WHERE `accounts`.`id` = 451 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 451 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (451, 142) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (450, 142) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:08', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 278\n account_id: 450\n user_id: 142\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_278_destroy', '2012-11-28 23:58:08', '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_278_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account452' WHERE `accounts`.`id` = 452  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$wBc.bzBkn2hf1jH/awlNv.HliedozPN4198p7ZEhEyCD/uaXZaz8y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account453' WHERE `accounts`.`id` = 453 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (453, 143) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (452, 143) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_280_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account454' WHERE `accounts`.`id` = 454  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$Nlt/SBjf8/ki/XUjk3Afju3/doEIKbgo/tXeanPrAAakt0zrSB5dW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account455' WHERE `accounts`.`id` = 455 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 455 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (455, 144) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (454, 144) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account456' WHERE `accounts`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:08', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 282\n account_id: 454\n user_id: 144\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_282_destroy', '2012-11-28 23:58:08', '2012-11-28 23:58:08')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_282_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account457' WHERE `accounts`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$pijaFKx1s87yKgPwr7x7e.Gw9IbrIunU8r5dNy7TskDmc8MSWcKk2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account458' WHERE `accounts`.`id` = 458 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (458, 145) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (457, 145) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account459' WHERE `accounts`.`id` = 459  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_284_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account460' WHERE `accounts`.`id` = 460  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$f42tSzQMtvzfqFQwefBJZe55Zs331tVIG9VvouJ.cPH7K6F3FTrSq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account461' WHERE `accounts`.`id` = 461 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 461 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (461, 146) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (460, 146) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account462' WHERE `accounts`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:08', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 286\n account_id: 460\n user_id: 146\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_286_destroy', '2012-11-28 23:58:08', '2012-11-28 23:58:08')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 26  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account463' WHERE `accounts`.`id` = 463  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$NaJFXqp9EBQdANFjqE/AcOHtKqUpbSh5lBa/FLHjOa6HoOvOsTwC.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account464' WHERE `accounts`.`id` = 464 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 464 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (464, 147) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (463, 147) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account465' WHERE `accounts`.`id` = 465  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:08', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 288\n account_id: 463\n user_id: 147\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_288_destroy', '2012-11-28 23:58:08', '2012-11-28 23:58:08')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', 'jabanilson', NULL, 1, '2012-11-28 23:58:08')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account466' WHERE `accounts`.`id` = 466  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:08', '2012-11-28 23:58:08', 'teste@teste.com', '$2a$04$JmyUi5wo06tYWqgHl6a4PO895/soFFx9zkpoXSqWkMfrt2aqDiakm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:08') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:08', NULL, NULL, NULL, '2012-11-28 23:58:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:08', `updated_at` = '2012-11-28 23:58:08', `subdomain` = 'account467' WHERE `accounts`.`id` = 467 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 467 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (467, 148) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (93.7ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (466, 148) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account468' WHERE `accounts`.`id` = 468  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account469' WHERE `accounts`.`id` = 469  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$Rv3q3.D/bH/L2ZTXqPNOa.XCaDujPAJ8U4ld65uOG8ZOkMoxSUuMa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account470' WHERE `accounts`.`id` = 470 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (470, 149) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (469, 149) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account471' WHERE `accounts`.`id` = 471  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 292\n account_id: 469\n user_id: 149\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_292_destroy', '2012-11-28 23:58:09', '2012-11-28 23:58:09')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09' WHERE `delayed_jobs`.`id` = 28  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account472' WHERE `accounts`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 472 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:58:09', 'api token', '6596b952cd3712f03ac3c032b3f05580', 472, 'Account', '2012-11-28 23:58:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '6596b952cd3712f03ac3c032b3f05580' LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '6596b952cd3712f03ac3c032b3f05580' LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account473' WHERE `accounts`.`id` = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 473 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:58:09', 'api token', '271b0fe78eadde01369729eedd1a8445', 473, 'Account', '2012-11-28 23:58:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (15.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account474' WHERE `accounts`.`id` = 474  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 474 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:58:09', 'api token', '3f83e900fd0609c44a1abdc389e95b8d', 474, 'Account', '2012-11-28 23:58:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account475' WHERE `accounts`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 475 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:58:09', 'api token', 'a822a5cc453d5c2a02a2b0d930826ef2', 475, 'Account', '2012-11-28 23:58:09')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account476' WHERE `accounts`.`id` = 476  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:58:09', 'token 1', '272e631534dd2a0c240a501de7304137', 476, 'Account', '2012-11-28 23:58:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`token` = BINARY '272e631534dd2a0c240a501de7304137' AND `api_tokens`.`id` != 8) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`id` != 8 AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account477' WHERE `accounts`.`id` = 477  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 477 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-28 23:58:09', 'api token', 'ee96b290d5fcda45fd44efe900485ba6', 477, 'Account', '2012-11-28 23:58:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', '', '$2a$04$gOJznTNby3e0UJOW..p4NuNveHZrT89dENlptWbpPxZrfBmv2wTMS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account478' WHERE `accounts`.`id` = 478 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (478, 150) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 150 WHERE `social_accounts`.`id` = 13  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150 LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$6R9sp561tCSNypNpu6xvv.3AkogQaxj5UrwQjzWJiufoy/Botogr.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account479' WHERE `accounts`.`id` = 479 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 479 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (479, 151) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 151)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '', `updated_at` = '2012-11-28 23:58:09' WHERE `users`.`id` = 151  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 151  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$Nci36d4MehTZrWVxLYME1.gGvjfheOg1t3QfsADI5qaU9eqF6wSHW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account480' WHERE `accounts`.`id` = 480 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 480 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (480, 152) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 152)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'testing@email.test' AND `users`.`id` != 152) LIMIT 1  (0.3ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '$2a$04$AuJ74Lz8n35Sn/k.21ygV.nJ./qw2VbYFsX8pXkxO8qmo/Skfh.py', `updated_at` = '2012-11-28 23:58:09' WHERE `users`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 15  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account481' WHERE `accounts`.`id` = 481  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'invited@test.test', '$2a$04$8/Nk8fCvJcHBl025HBzUou2pUn/4r7oyjtCyk1ZHlUfb66X4pdEvG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account482' WHERE `accounts`.`id` = 482 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (482, 153) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 481 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (481, 153) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 481 AND `users`.`email` = 'invited@test.test'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 23:58:09', 'eokk0G5yjNZgTdkqafgBtx-ro8A') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a5115d1d5_227280435d48497c7@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/12eokk0G5yjNZgTdkqafgBtx-ro8A  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-28 23:58:09', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a51163004_227280435d4849867@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/13oiaa09s1jiUHAS8danja9sja0  (0.2ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 13 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 23:58:09', 'b9hsJBbXB9PeP5_g2XwpKBcjMLE') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a511697db_227280435d48499a2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/14b9hsJBbXB9PeP5_g2XwpKBcjMLE  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-28 23:58:09', 'rPubD_zlgAnWiEc2J_4-iT38i48') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a5116fd65_227280435d48500f2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/15rPubD_zlgAnWiEc2J_4-iT38i48  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account483' WHERE `accounts`.`id` = 483  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 483 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (483, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:09', 'klE8do1bu_0el0wNXOqJqG_Irs4') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a51176da5_227280435d485013d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/16klE8do1bu_0el0wNXOqJqG_Irs4  (0.2ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 16 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account484' WHERE `accounts`.`id` = 484  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 484 AND `users`.`email` = 'teste@teste.teste' SQL (0.1ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (484, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:09', 'niEJ5CW7PlPs1of4_iw-pqUM7gI') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5117eaee_227280435d4850295@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/17niEJ5CW7PlPs1of4_iw-pqUM7gI  (0.1ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 1238 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account485' WHERE `accounts`.`id` = 485  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 485 AND `users`.`email` = 'teste@teste.teste' SQL (0.1ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (485, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:09', 'XvQ9eSeRMLFLw0HKUxoqJzsAHS8') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a51185c46_227280435d4850393@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/18XvQ9eSeRMLFLw0HKUxoqJzsAHS8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account486' WHERE `accounts`.`id` = 486  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$/hJA2mH3Li696l3w9Q8dyORWXZMuV.LKjM5Rs0HpXfLfd2ShkvZhy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account487' WHERE `accounts`.`id` = 487 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 487 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (487, 154) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 486 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 486 WHERE `user_invitations`.`id` = 18  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (486, 154) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (299) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (486)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account488' WHERE `accounts`.`id` = 488  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 488 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (488, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:09', 'GXPiPIturrI-E77ljjRuX0Jj1DI') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a511afd2a_227280435d4850413@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/19GXPiPIturrI-E77ljjRuX0Jj1DI  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account489' WHERE `accounts`.`id` = 489  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$k/WrXyVqsRvURtqTz6s4yuIrGMnqSUenAuSBFFIhGXtK8Det9I5/y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account490' WHERE `accounts`.`id` = 490 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (490, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 489 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = 19  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 488 AND `account_users`.`user_id` = 155  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (488, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 488 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 630  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'guest')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301 AND `account_roles`.`name` = 'user' LIMIT 1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account491' WHERE `accounts`.`id` = 491  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 491 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (491, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:09', 'eFkQ5Qj11L--mxaZQqZ8xa8AZr4') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a511c54a0_227280435d485058f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/20eFkQ5Qj11L--mxaZQqZ8xa8AZr4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account492' WHERE `accounts`.`id` = 492  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$o4wEIIik9wpiiBuVSMy7m.iWCwHpyJGN1S.BFvcqPR34sHl/Syq6G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account493' WHERE `accounts`.`id` = 493 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 493 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (493, 156) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 492 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 492 WHERE `user_invitations`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 492 AND `account_users`.`user_id` = 156  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (492, 156) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account494' WHERE `accounts`.`id` = 494  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 494 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (494, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:09', 'mlUinyeEh5-Hxl5WjMVs95Hb2Tk') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 21:58:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a511d7083_227280435d485068a@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/21mlUinyeEh5-Hxl5WjMVs95Hb2Tk  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', 'jabanilson', NULL, 1, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account495' WHERE `accounts`.`id` = 495  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$A8iwvQZEkbmNA7inNB9glOtC0Aao249i.iDuhVniuDuwB.53ZtQSS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account496' WHERE `accounts`.`id` = 496 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (496, 157) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 495 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 495 WHERE `user_invitations`.`id` = 21  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (495, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 495 AND `account_users`.`user_id` = 157  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$C8p/65BXim9Qba6k/sIYA.A89L6EH0T69dJzbpJLh/xyzoBOblJVe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account497' WHERE `accounts`.`id` = 497 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (497, 158) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$TIi.EzlFvf0yenN.MJHTUuLYYnAd2mrjhXYtX3mU.NoyItMWZCnqK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account498' WHERE `accounts`.`id` = 498 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 498 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (498, 159) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:09', '2012-11-28 23:58:09', 'teste@teste.com', '$2a$04$53T.w5CSQrvxC9CJ3Dw4tOU4rx4WuZFMSLSgboFTLo3ki23WfnUXC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:09') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:09', NULL, NULL, NULL, '2012-11-28 23:58:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:09', `updated_at` = '2012-11-28 23:58:09', `subdomain` = 'account499' WHERE `accounts`.`id` = 499 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 499 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (499, 160) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', 'teste@teste.com', '$2a$04$FYYql4LtLdWvqu1JvLSXeOFgtpnzo1K5NIDfSLLSbekznIuWkrb0K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account500' WHERE `accounts`.`id` = 500 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (500, 161) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 161  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', 'teste@teste.com', '$2a$04$/04vws/5JywdLRsFoVbLt.u78KTZ/3AI4XIiPU3KkqsS9FGLRbDc.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', 'eb36fed96f76fb8de7c6c1655323d23a', 162, 'User', '2012-11-28 23:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account501' WHERE `accounts`.`id` = 501 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 501 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (501, 162) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', 'teste@teste.com', '$2a$04$m2KqrpFRptM3vAnH/x1JaOpFXDkQw/cJK/P5FId8noKhnjpjjfwVa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', 'd6830b8087d7fb53523808f394e4a1bf', 163, 'User', '2012-11-28 23:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account502' WHERE `accounts`.`id` = 502 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 502 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (502, 163) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51222041_227280435d485075f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', 'account1@before.destroy', '$2a$04$suU6lrlPCMAVMavfRvUzIuXQo/NJFucyq.IVF1qfQSRYc6Dq0hY2K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', '756be15fd8d219ceb11215c77a944d23', 164, 'User', '2012-11-28 23:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account503' WHERE `accounts`.`id` = 503 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (503, 164) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b6a5122da33_227280435d48508c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 164\n email: account1@before.destroy\n encrypted_password: $2a$04$suU6lrlPCMAVMavfRvUzIuXQo/NJFucyq.IVF1qfQSRYc6Dq0hY2K\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:10.154808000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:10.155187000Z\n updated_at: 2012-11-28 23:58:10.155187000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_164_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_164_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 164 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (312) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (503) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 312\n account_id: 503\n user_id: 164\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_312_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 164 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 503 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 503\n created_at: 2012-11-28 23:58:10.000000000Z\n updated_at: 2012-11-28 23:58:10.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account503\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_503_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = 164  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_503_destroy' LIMIT 1  (3.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', 'account1@before.destroy', '$2a$04$3yI0IZ/il2C2T8LdVPtkouxqTvHdOeW4tuiFAZBSFci0kD/aPA7bq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', '3278f966fcb247057cc8ea9a7d78e643', 165, 'User', '2012-11-28 23:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account504' WHERE `accounts`.`id` = 504 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 504 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (504, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'admin') Sent mail to account1@before.destroy (8ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b6a5125632f_227280435d485095b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', 'jabanilson', NULL, 1, '2012-11-28 23:58:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account505' WHERE `accounts`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (505, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165 ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 165\n email: account1@before.destroy\n encrypted_password: $2a$04$3yI0IZ/il2C2T8LdVPtkouxqTvHdOeW4tuiFAZBSFci0kD/aPA7bq\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:10.321428000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:10.321836000Z\n updated_at: 2012-11-28 23:58:10.321836000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_165_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_165_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 165 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (313, 314) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (504, 505) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 313\n account_id: 504\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_313_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10') SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 314\n account_id: 505\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_314_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 165 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 504 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 504\n created_at: 2012-11-28 23:58:10.000000000Z\n updated_at: 2012-11-28 23:58:10.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account504\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_504_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 505 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 505\n created_at: 2012-11-28 23:58:10.000000000Z\n updated_at: 2012-11-28 23:58:10.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account505\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_505_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = 165  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_505_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', 'account1@before.destroy', '$2a$04$j9z57GjMVJ3Kfo6Et3IFp.qzbxjxJEW34oME9GEPGDflGI4lnclXq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', 'ec4bcd32961cf77ea1695fad7e8faa37', 166, 'User', '2012-11-28 23:58:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account506' WHERE `accounts`.`id` = 506 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 166) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b6a5126c2f3_227280435d48510bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', 'account2@before.destroy', '$2a$04$fkjVh4H5wefZNXnOtE04i.IOvV4Hr.g6J41u2KfM55Z4cCoHMk6X6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', 'cb1f84e9170607975e15f2a01fea9a71', 167, 'User', '2012-11-28 23:58:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account507' WHERE `accounts`.`id` = 507 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (507, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'admin') Sent mail to account2@before.destroy (8ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50b6a512777a3_227280435d485119c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 166\n email: account1@before.destroy\n encrypted_password: $2a$04$j9z57GjMVJ3Kfo6Et3IFp.qzbxjxJEW34oME9GEPGDflGI4lnclXq\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:10.412076000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:10.412497000Z\n updated_at: 2012-11-28 23:58:10.412497000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_166_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_166_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 166 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 166 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (315) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (506) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 315\n account_id: 506\n user_id: 166\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_315_destroy', '2012-11-28 23:58:10', '2012-11-28 23:58:10') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 166 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 506 SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = 166  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_506_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', 'f84ac1ed423168271a0470db8b5222a9', 168, 'User', '2012-11-28 23:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account508' WHERE `accounts`.`id` = 508 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (508, 168) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 168\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:10.528920000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:10.529723000Z\n updated_at: 2012-11-28 23:58:10.529723000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_168', '2012-12-05 23:58:10', '2012-11-28 23:58:10')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 168 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 168) LIMIT 1  (0.5ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$HqedZgNM8bYBnmqzcvQEp.jlLv8ksoiRlmwFbw73FoO2F2rS3OiEO', `updated_at` = '2012-11-28 23:58:10' WHERE `users`.`id` = 168  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_168' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', '839d289a5de78f3d18796d936b86ef79', 169, 'User', '2012-11-28 23:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account509' WHERE `accounts`.`id` = 509 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (509, 169) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 169\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:10.565098000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:10.565835000Z\n updated_at: 2012-11-28 23:58:10.565835000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_169', '2012-12-05 23:58:10', '2012-11-28 23:58:10')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 169 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 169) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:10', '2012-11-28 23:58:10', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', 'ceeb8fad786199fc51bddce1ac7d1ec5', 170, 'User', '2012-11-28 23:58:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account510' WHERE `accounts`.`id` = 510 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 510 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (510, 170) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:10', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 170\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:10.599134000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:10.600051000Z\n updated_at: 2012-11-28 23:58:10.600051000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_170', '2012-12-05 23:58:10', '2012-11-28 23:58:10')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 170  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'Sc1yZ7GEq6TbWDyJYbyk' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 23:58:10', 'Sc1yZ7GEq6TbWDyJYbyk', '2012-11-28 23:58:10', '2012-11-28 23:58:10', 'confirmation@skip.test', '$2a$04$JtmIY7jXZq2.qv20rOQk8OKVTR85IcZrQUzyf6TD5HGZDQ3nCrP.e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', '13e1794862d9643b57c901afc8ee1cda', 171, 'User', '2012-11-28 23:58:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account511' WHERE `accounts`.`id` = 511 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 511 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (511, 171) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b6a512a2e41_227280435d48512f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'uWd5YZTR3q8tQVunkxJ7' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 23:58:10', 'uWd5YZTR3q8tQVunkxJ7', NULL, '2012-11-28 23:58:10', 'confirmation@needed.test', '$2a$04$kpZGj.VLL4ZuTn06U3Q7f.ysnnWa39vn9L6pgHfZugY9TtnPDHF62', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b6a512abd65_227280435d4851339@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', 'c053a5b66fe8cf395a84bd76c8b1e1de', 172, 'User', '2012-11-28 23:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account512' WHERE `accounts`.`id` = 512 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (512, 172) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'admin') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b6a512b4b3f_227280435d48514f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'n8VKJL4RmGcyiEQyUGKy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 23:58:10', 'n8VKJL4RmGcyiEQyUGKy', NULL, '2012-11-28 23:58:10', 'reconfirmation@needed.test', '$2a$04$cbdeVMC3Q5uvEpBrNXrh5.gfkHFJ.yDt1zMkhkg/ayonEK7DFaJvq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6a512bbfe5_227280435d4851531@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', '2d488a67e96fea9c38364df89863da52', 173, 'User', '2012-11-28 23:58:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account513' WHERE `accounts`.`id` = 513 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 513 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (513, 173) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6a512dbc57_227280435d485163e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 173 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 173) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 23:58:10' WHERE `users`.`id` = 173 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'DP6Y9soo3KshopnNQw8S' LIMIT 1  (0.3ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-28 23:58:10', `confirmation_token` = 'DP6Y9soo3KshopnNQw8S' WHERE `users`.`id` = 173 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b6a512e24e1_227280435d48517c4@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'ZsMU4CEhnKHY2hDQFRNB' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 23:58:10', 'ZsMU4CEhnKHY2hDQFRNB', NULL, '2012-11-28 23:58:10', 'reconfirmation@needed.test', '$2a$04$m4UkUuj8Ce4FhDhYfTlzCe0o8FRiyiSaO7tAQE92VlIGpX2ZnfPDC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:10') Sent mail to reconfirmation@needed.test (8ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6a512e9adf_227280435d485186f@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:10', 'User', 'd95c3598b135cd3edbf4c02e53e1689c', 174, 'User', '2012-11-28 23:58:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:10', NULL, NULL, NULL, '2012-11-28 23:58:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:10', `updated_at` = '2012-11-28 23:58:10', `subdomain` = 'account514' WHERE `accounts`.`id` = 514 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 514 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (514, 174) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 21:58:10 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6a512f24d3_227280435d48519ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 174 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 174) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-28 23:58:11' WHERE `users`.`id` = 174  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$SSR4LD2HMCGNj3TWInxJv.hqPG5UEm.21jVVlBr..W38FEIZp7aiS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', 'f98ad7fa46d8bd5d376d7cc4ac0333a4', 175, 'User', '2012-11-28 23:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account515' WHERE `accounts`.`id` = 515 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 515 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (515, 175) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a513b03d_227280435d485209e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 175)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 175  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$HZBvGfnrwD526u7PUx/Uju/3VfRL34gimGgu7G1CGxx2g0VrWlxu6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', 'bba9a01c546675c275a5c94f0fd5a01f', 176, 'User', '2012-11-28 23:58:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account516' WHERE `accounts`.`id` = 516 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (516, 176) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5131718c_227280435d485219b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 176)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 176 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (8.7ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:11', '2012-11-28 23:58:11', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '74ba8826f5b2271a292153c333cfe399', 177, 'User', '2012-11-28 23:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account517' WHERE `accounts`.`id` = 517 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (517, 177) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 177)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 177 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:11', '2012-11-28 23:58:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '9607547ef85893f34a4b49f2844ce07c', 178, 'User', '2012-11-28 23:58:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account518' WHERE `accounts`.`id` = 518 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (518, 178) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5132a3fa_227280435d48522e8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 178)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 178 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$8XFVyWE8.PDXlPKL8ek0L.89DEsIXSswY4.bcLbbUh8u9eg352TMe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', 'b7818e388d76e31a8998e0e1d6c7bbe9', 179, 'User', '2012-11-28 23:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account519' WHERE `accounts`.`id` = 519 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (519, 179) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51336295_227280435d485233f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 179)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 179 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$LxzGm1LlTqmM4Y4GELklP.8DsZmJpLRu4FbcUjDKg3gqCO/4.ACgm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '047d63bf78ca3c8a1c53b9438e0f426c', 180, 'User', '2012-11-28 23:58:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account520' WHERE `accounts`.`id` = 520 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 520 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (520, 180) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5134366c_227280435d485244@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 180)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 180 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `token` = 'newtoken' WHERE `social_accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`id` = 21 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'URo1ydjkAqs1qaYyTu2N' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 23:58:11', 'URo1ydjkAqs1qaYyTu2N', NULL, '2012-11-28 23:58:11', 'test@email.test', '$2a$04$Dh3akXeFBsnhIw75PlvNZOeh76diEgTkDMpg13EgnAMoKIZaY35J2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b6a5134c1fb_227280435d485255b@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', 'e3cbab0490fc81a3e857b0a3e380b5de', 181, 'User', '2012-11-28 23:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account521' WHERE `accounts`.`id` = 521 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 521 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (521, 181) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'admin') Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b6a5135515d_227280435d48526bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 181  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'sQGNxWambZMxsgYxgVe9' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-28 23:58:11', 'sQGNxWambZMxsgYxgVe9', NULL, '2012-11-28 23:58:11', 'test@email.test', '$2a$04$3X3GNBjSH5MwbnbOtLTXjeKVXQHf8z7jGbVGz28YHB4aVEvczNIpC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b6a51374afc_227280435d485273d@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '18d4862b4f159e0f288e506491d1cff7', 182, 'User', '2012-11-28 23:58:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b6a5137a2a8_227280435d4852887@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 182  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$4H2hZSdP4uNOzciIDH.hpeWCg1TtyDY5Ec63B36FUu45LlUAzf0gS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '11a366329d3073c227c4aebe1e7ea41d', 183, 'User', '2012-11-28 23:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account522' WHERE `accounts`.`id` = 522 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 522 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (522, 183) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51385634_227280435d485292@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$VCdF4cSzx8HzLn0eFDcccewyesrwQ3jSwDrgKrtTa4jFkRjHoGkES', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', 'cc10823ee888d2948e5459bb5bf7bed0', 184, 'User', '2012-11-28 23:58:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account523' WHERE `accounts`.`id` = 523 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 523 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (523, 184) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51391a5f_227280435d485300@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 AND (accounts.id = 523) LIMIT 1  (15.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$0m.lncAPYQmIekmBeAj9K.Q2SPZnZ/2rLh7I6b2ZlUre4Q.MPqD52', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '83824fe2f3deb470accfa16574623ef6', 185, 'User', '2012-11-28 23:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account524' WHERE `accounts`.`id` = 524 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 524 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (524, 185) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a513a169b_227280435d48531e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 AND (accounts.id = 524) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$gx3jsZChIrLlCABMC7R1Demx14Qf6D0OdpKgsXWLtHoV2cFQXTkjC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', 'c0cd97f8be9ae7fb4d50d9f58472e6ac', 186, 'User', '2012-11-28 23:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account525' WHERE `accounts`.`id` = 525 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 525 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (525, 186) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a513adc99_227280435d4853280@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:11', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 186\n email: teste@teste.com\n encrypted_password: $2a$04$gx3jsZChIrLlCABMC7R1Demx14Qf6D0OdpKgsXWLtHoV2cFQXTkjC\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 21:57:52.337115000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:11.679739000Z\n updated_at: 2012-11-28 23:58:11.679739000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_186_destroy', '2012-11-28 23:58:11', '2012-11-28 23:58:11')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_186_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$dtuy2NRuDmesK1JLr5N94eLX/XNblSbGVWDMl9cl/3KTuqflJcm0m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '208a37440efe5047eb29a3d4d0f6e61d', 187, 'User', '2012-11-28 23:58:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account526' WHERE `accounts`.`id` = 526 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 526 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (526, 187) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a513ba829_227280435d48533a7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_187_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$A6HV1.NviFEBIhcfEhF.ruJcBqtqkRXc8PFeGAiHnVmfe3Y9WufSy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '69043606fbe2144ee7a6f02f3867b3c0', 188, 'User', '2012-11-28 23:58:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account527' WHERE `accounts`.`id` = 527 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (527, 188) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a513c5d6c_227280435d48534ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:11', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 188\n email: teste@teste.com\n encrypted_password: $2a$04$A6HV1.NviFEBIhcfEhF.ruJcBqtqkRXc8PFeGAiHnVmfe3Y9WufSy\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 21:57:52.337115000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:11.780294000Z\n updated_at: 2012-11-28 23:58:11.780294000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_188_destroy', '2012-11-28 23:58:11', '2012-11-28 23:58:11')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_188_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$ZLbaVuBecregUQAoZ7x5B.LNjzw0jffuPSyCH/IFUHL1xbiONvJOm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', 'ef9163e0accc5bca62995d6cf5ae93a4', 189, 'User', '2012-11-28 23:58:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account528' WHERE `accounts`.`id` = 528 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 528 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (528, 189) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a513d238a_227280435d4853526@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_189_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$nAu3CGg2y70wiAAZv5Bk7et.0cNzSoh7D/ifzS/qORcOZAnT.aoYi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '0a48bc2969c30175a0e234f9a8e5b942', 190, 'User', '2012-11-28 23:58:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account529' WHERE `accounts`.`id` = 529 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (529, 190) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a513dec8d_227280435d48536ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:11', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 190\n email: teste@teste.com\n encrypted_password: $2a$04$nAu3CGg2y70wiAAZv5Bk7et.0cNzSoh7D/ifzS/qORcOZAnT.aoYi\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 21:57:52.337115000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:11.877537000Z\n updated_at: 2012-11-28 23:58:11.877537000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_190_destroy', '2012-11-28 23:58:11', '2012-11-28 23:58:11')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 44  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:11', 'teste@teste.com', '$2a$04$T3fmLLjBKcftxl.p88mkpOkAX9P4PVC8rzJcQ9L1WcCQspDJVZhCS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:11', 'User', '19cc2cb052c51cd80ab1a74ab8309f76', 191, 'User', '2012-11-28 23:58:11') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:11', NULL, NULL, NULL, '2012-11-28 23:58:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:11', `updated_at` = '2012-11-28 23:58:11', `subdomain` = 'account530' WHERE `accounts`.`id` = 530 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (530, 191) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a514df3f_227280435d485377@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 191\n email: teste@teste.com\n encrypted_password: $2a$04$T3fmLLjBKcftxl.p88mkpOkAX9P4PVC8rzJcQ9L1WcCQspDJVZhCS\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 21:57:52.337115000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:11.933628000Z\n updated_at: 2012-11-28 23:58:11.933628000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_191_destroy', '2012-11-28 23:58:12', '2012-11-28 23:58:12')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:12', 'teste@teste.com', '$2a$04$XY8R16F5YHKsZjobDZaOfe9w3Syds1W0HCzxKSjFLZsAjYAuLiV1q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '6d5d852ba5774029c5ef559ca08cb496', 192, 'User', '2012-11-28 23:58:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account531' WHERE `accounts`.`id` = 531 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 531 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (531, 192) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5141b0f9_227280435d48538f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:12', 'teste@teste.com', '$2a$04$1yEEExZZPQtM7tDMPO0ziOGVSPDVGsdubNphv.wHfIJV74NHrXINe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '8b30db7958fbea23ad6a3df7bf49e781', 193, 'User', '2012-11-28 23:58:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account532' WHERE `accounts`.`id` = 532 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (532, 193) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 21:58:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51427017_227280435d48539cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 193\n email: teste@teste.com\n encrypted_password: $2a$04$1yEEExZZPQtM7tDMPO0ziOGVSPDVGsdubNphv.wHfIJV74NHrXINe\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 21:57:52.337115000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.127572000Z\n updated_at: 2012-11-28 23:58:12.127572000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_193_destroy', '2012-11-28 23:58:12', '2012-11-28 23:58:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12' WHERE `delayed_jobs`.`id` = 46  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:12', 'teste@teste.com', '$2a$04$baoVjZgaqmQjphbYfGf8WOPmzHLnB/SWt1TxpmC9s/ne/6JPnDK0W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '218ecf6182ff24cfcb4a5c216ec43e09', 194, 'User', '2012-11-28 23:58:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account533' WHERE `accounts`.`id` = 533 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (533, 194) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5143404f_227280435d48540da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 194 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 533 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 716  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 343 AND `account_roles`.`name` = 'user' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (41.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:12', 'teste@teste.com', '$2a$04$.hZOSkUlH6IGiMF5Dub1DO4Ki1eAF4eBKLHXjT9Qw7OMzdmMVCEWK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '93a76dde554a25c25517ee6f8683cbba', 195, 'User', '2012-11-28 23:58:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account534' WHERE `accounts`.`id` = 534 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 534 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (534, 195) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (54.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5145b998_227280435d48541ed@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 195 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 534 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 719  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 344 AND `account_roles`.`name` = 'admin' LIMIT 1  (4.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '2158129eaae248e3e787f5914a03c7f7', 196, 'User', '2012-11-28 23:58:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account535' WHERE `accounts`.`id` = 535 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 535 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (535, 196) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 196\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:12.407383000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.407952000Z\n updated_at: 2012-11-28 23:58:12.407952000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_196', '2012-12-05 23:58:12', '2012-11-28 23:58:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '01bf8c3c6868f5ffb1419e34939e0cac', 197, 'User', '2012-11-28 23:58:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account536' WHERE `accounts`.`id` = 536 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 536 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (536, 197) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 197\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:12.433527000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.433982000Z\n updated_at: 2012-11-28 23:58:12.433982000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_197', '2012-12-05 23:58:12', '2012-11-28 23:58:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', 'ad5c4d31bb1b4e0873adc8a97b2cd839', 198, 'User', '2012-11-28 23:58:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account537' WHERE `accounts`.`id` = 537 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 537 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (537, 198) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 198\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:12.458664000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.459376000Z\n updated_at: 2012-11-28 23:58:12.459376000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_198', '2012-12-05 23:58:12', '2012-11-28 23:58:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '72a91fd789cacb37402fcf981b599437', 199, 'User', '2012-11-28 23:58:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account538' WHERE `accounts`.`id` = 538 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 538 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (538, 199) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 199\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:12.484476000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.484893000Z\n updated_at: 2012-11-28 23:58:12.484893000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_199', '2012-12-05 23:58:12', '2012-11-28 23:58:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '51e82825992e6c284e8679b072a9af96', 200, 'User', '2012-11-28 23:58:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account539' WHERE `accounts`.`id` = 539 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 539 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (539, 200) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 200\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:12.510128000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.510893000Z\n updated_at: 2012-11-28 23:58:12.510893000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_200', '2012-12-05 23:58:12', '2012-11-28 23:58:12')  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', 'f6de736333d0f0770697c4b98f2d30d6', 201, 'User', '2012-11-28 23:58:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account540' WHERE `accounts`.`id` = 540 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (540, 201) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 201\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:12.536003000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.536470000Z\n updated_at: 2012-11-28 23:58:12.536470000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_201', '2012-12-05 23:58:12', '2012-11-28 23:58:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '214e774bfaaf73d85c42657cdd07e674', 202, 'User', '2012-11-28 23:58:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account541' WHERE `accounts`.`id` = 541 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (541, 202) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 202\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:12.560365000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.560895000Z\n updated_at: 2012-11-28 23:58:12.560895000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_202', '2012-12-05 23:58:12', '2012-11-28 23:58:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '0f6c5cd3e70ae721b8ce08be93fa66a5', 203, 'User', '2012-11-28 23:58:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account542' WHERE `accounts`.`id` = 542 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (542, 203) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:12', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 203\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:12.582953000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:12.583348000Z\n updated_at: 2012-11-28 23:58:12.583348000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_203', '2012-12-05 23:58:12', '2012-11-28 23:58:12')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:12', '2012-11-28 23:58:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:12', 'User', '889ade06d979fca648f5885e4c0ada77', 204, 'User', '2012-11-28 23:58:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:12', NULL, NULL, NULL, '2012-11-28 23:58:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:12', `updated_at` = '2012-11-28 23:58:12', `subdomain` = 'account543' WHERE `accounts`.`id` = 543 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (543, 204) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a514c95ca_227280435d4854257@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 204)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:12 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 543 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (543, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/543/domains" for 127.0.0.1 at 2012-11-28 21:58:12 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"543"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_543_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 204 AND `account_users`.`account_id` = 543 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND `accounts`.`id` = 543 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 Completed 200 OK in 734ms (Views: 723.6ms | ActiveRecord: 2.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:13', '2012-11-28 23:58:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:13', 'User', '092e8367f16df4d13d9bb255d6711990', 205, 'User', '2012-11-28 23:58:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:13', NULL, NULL, NULL, '2012-11-28 23:58:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:13', `updated_at` = '2012-11-28 23:58:13', `subdomain` = 'account544' WHERE `accounts`.`id` = 544 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (544, 205) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a515cf7c8_227280435d48543c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 205)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:13 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (544, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/544/domains" for 127.0.0.1 at 2012-11-28 21:58:13 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"544"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_544_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 205 AND `account_users`.`account_id` = 544 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND `accounts`.`id` = 544 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`account_id` = 544 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 544 AND `account_users`.`user_id` = 205 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (354) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (544) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 Completed 200 OK in 23ms (Views: 10.9ms | ActiveRecord: 3.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:13', '2012-11-28 23:58:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:13', 'User', '933404b7ef264cd928ad5ebd07322dff', 206, 'User', '2012-11-28 23:58:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:13', NULL, NULL, NULL, '2012-11-28 23:58:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:13', `updated_at` = '2012-11-28 23:58:13', `subdomain` = 'account545' WHERE `accounts`.`id` = 545 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (545, 206) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a515e7a49_227280435d4854485@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 206)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:13 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (545, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 60  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/545/domains" for 127.0.0.1 at 2012-11-28 21:58:13 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"545"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_545_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 206 AND `account_users`.`account_id` = 545 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND `accounts`.`id` = 545 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`account_id` = 545 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 545 AND `account_users`.`user_id` = 206 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (355) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (545) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 Completed 200 OK in 23ms (Views: 11.3ms | ActiveRecord: 4.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:14', '2012-11-28 23:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:14', 'User', 'c61c470bcc6ff908a271e3f156a8f348', 207, 'User', '2012-11-28 23:58:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:14', NULL, NULL, NULL, '2012-11-28 23:58:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:14', `updated_at` = '2012-11-28 23:58:14', `subdomain` = 'account546' WHERE `accounts`.`id` = 546 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (546, 207) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a516bac1_227280435d4854565@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 207)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (546, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/546/domains" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"546"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_546_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 207 AND `account_users`.`account_id` = 546 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND `accounts`.`id` = 546 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`account_id` = 546 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 546 AND `account_users`.`user_id` = 207 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (356) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (546) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 Completed 200 OK in 24ms (Views: 11.3ms | ActiveRecord: 4.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:14', '2012-11-28 23:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:14', 'User', 'bc21517b88e2d93265c9b675413a004c', 208, 'User', '2012-11-28 23:58:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:14', NULL, NULL, NULL, '2012-11-28 23:58:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:14', `updated_at` = '2012-11-28 23:58:14', `subdomain` = 'account547' WHERE `accounts`.`id` = 547 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (547, 208) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5163c8d3_227280435d485461b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 208)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (547, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 62  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/547/domains" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"547"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_547_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 208 AND `account_users`.`account_id` = 547 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND `accounts`.`id` = 547 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`account_id` = 547 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 547 AND `account_users`.`user_id` = 208 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (357) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (547) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 Completed 200 OK in 24ms (Views: 11.3ms | ActiveRecord: 4.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:14', '2012-11-28 23:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:14', 'User', '64e856eaa660befebe45e524bc443444', 209, 'User', '2012-11-28 23:58:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:14', NULL, NULL, NULL, '2012-11-28 23:58:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:14', `updated_at` = '2012-11-28 23:58:14', `subdomain` = 'account548' WHERE `accounts`.`id` = 548 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (548, 209) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51655819_227280435d4854757@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 209)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (548, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 63  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/548/domains" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"548"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_548_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 209 AND `account_users`.`account_id` = 548 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND `accounts`.`id` = 548 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`account_id` = 548 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 548 AND `account_users`.`user_id` = 209 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (358) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (548) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 Completed 200 OK in 23ms (Views: 11.5ms | ActiveRecord: 4.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:14', '2012-11-28 23:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:14', 'User', 'c0eba33b765f8f0fa2a1d6198c5e91e0', 210, 'User', '2012-11-28 23:58:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:14', NULL, NULL, NULL, '2012-11-28 23:58:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:14', `updated_at` = '2012-11-28 23:58:14', `subdomain` = 'account549' WHERE `accounts`.`id` = 549 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (549, 210) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5166e29b_227280435d4854879@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 210)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (549, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 64  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/549/domains" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"549"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_549_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 210 AND `account_users`.`account_id` = 549 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND `accounts`.`id` = 549 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`account_id` = 549 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 549 AND `account_users`.`user_id` = 210 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (359) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (549) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 Completed 200 OK in 23ms (Views: 11.5ms | ActiveRecord: 3.9ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:14', '2012-11-28 23:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:14', 'User', 'bb4a042b6a4b701c9a64471d628ac6e6', 211, 'User', '2012-11-28 23:58:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:14', NULL, NULL, NULL, '2012-11-28 23:58:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:14', `updated_at` = '2012-11-28 23:58:14', `subdomain` = 'account550' WHERE `accounts`.`id` = 550 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (550, 211) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5169f55c_227280435d48549bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 211)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 149ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (550, NULL, 'index.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 550 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 752  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/550/domains" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"550"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_550_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND `accounts`.`id` = 550 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`account_id` = 550 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 550 AND `account_users`.`user_id` = 211 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (360) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (550) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 Completed 200 OK in 23ms (Views: 10.9ms | ActiveRecord: 4.2ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:14', '2012-11-28 23:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:14', 'User', '99f603faaf3583f44037bf78f7a624d3', 212, 'User', '2012-11-28 23:58:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:14', NULL, NULL, NULL, '2012-11-28 23:58:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:14', `updated_at` = '2012-11-28 23:58:14', `subdomain` = 'account551' WHERE `accounts`.`id` = 551 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (551, 212) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a516ba6b4_227280435d485502f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 212)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 551 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 754  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/551/user/212/roles" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"551", "user_id"=>"212"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 212 AND `account_users`.`account_id` = 551 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND `accounts`.`id` = 551 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 Completed 200 OK in 29ms (Views: 16.0ms | ActiveRecord: 4.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:14', '2012-11-28 23:58:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:14', 'User', 'fdc8656826f8b98489d5d3ae55d58d1d', 213, 'User', '2012-11-28 23:58:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:14', NULL, NULL, NULL, '2012-11-28 23:58:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:14', `updated_at` = '2012-11-28 23:58:14', `subdomain` = 'account552' WHERE `accounts`.`id` = 552 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 552 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (552, 213) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 21:58:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a516d5b90_227280435d4855140@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 213)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 552 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 756  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/552/user/213/roles" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"552", "user_id"=>"213"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 213 AND `account_users`.`account_id` = 552 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND `accounts`.`id` = 552 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 Completed 200 OK in 26ms (Views: 13.1ms | ActiveRecord: 3.7ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:15', '2012-11-28 23:58:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:15', 'User', '86ea39b6bff6b87144a32265fa24626f', 214, 'User', '2012-11-28 23:58:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', NULL, NULL, NULL, '2012-11-28 23:58:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account553' WHERE `accounts`.`id` = 553 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 553 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (553, 214) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51715e45_227280435d4855228@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 214)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 147ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 553 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 758  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/553/user/214/roles" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"553", "user_id"=>"214"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 214 AND `account_users`.`account_id` = 553 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND `accounts`.`id` = 553 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 Completed 200 OK in 26ms (Views: 13.2ms | ActiveRecord: 4.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:15', '2012-11-28 23:58:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:15', 'User', '09d62ae98da5ad45ac06656f354e1343', 215, 'User', '2012-11-28 23:58:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', NULL, NULL, NULL, '2012-11-28 23:58:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account554' WHERE `accounts`.`id` = 554 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (554, 215) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a517304ef_227280435d485535b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 215)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 554 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 760  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/554/user/215/roles" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"554", "user_id"=>"215"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 215 AND `account_users`.`account_id` = 554 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND `accounts`.`id` = 554 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 Completed 200 OK in 26ms (Views: 13.2ms | ActiveRecord: 3.9ms)  (9.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:15', '2012-11-28 23:58:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:15', 'User', '38877fbda95ed975bd75fcade562b9fe', 216, 'User', '2012-11-28 23:58:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', NULL, NULL, NULL, '2012-11-28 23:58:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account555' WHERE `accounts`.`id` = 555 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (555, 216) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5174d8e4_227280435d485541a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 216)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:15', 'notowner@account.test', '$2a$04$I0SlloFUsjUkqt7jXura0.ahtL2zE2Scn4CCsdfZ3uNlj58tZp1u6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:15', 'User', '9606b9aa8ccb2fe06fdc9d952f60eaa3', 217, 'User', '2012-11-28 23:58:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', NULL, NULL, NULL, '2012-11-28 23:58:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account556' WHERE `accounts`.`id` = 556 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 556 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (556, 217) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 21:58:15 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5175e4c9_227280435d485553c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', 'jabanilson', NULL, 1, '2012-11-28 23:58:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account557' WHERE `accounts`.`id` = 557  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (557, 217) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 555 WHERE `account_users`.`id` = 367  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 555 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 761 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 762  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/555/user/216/roles" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"555", "user_id"=>"216"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 216 AND `account_users`.`account_id` = 555 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND `accounts`.`id` = 555 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 Completed 200 OK in 126ms (Views: 14.2ms | ActiveRecord: 4.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:15', '2012-11-28 23:58:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:15', 'User', '122208753f526f5245f122696bd95e37', 218, 'User', '2012-11-28 23:58:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', NULL, NULL, NULL, '2012-11-28 23:58:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account558' WHERE `accounts`.`id` = 558 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (558, 218) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5178f216_227280435d48556a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 218)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:15', 'notowner@account.test', '$2a$04$geherjHsq6Z7mrJ4wyxwRu/.MoKocjf8uK6iVBLiMbeuSYJqvoGom', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:15', 'User', '023c1d9d5fd8604413b104cbb24577c3', 219, 'User', '2012-11-28 23:58:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', NULL, NULL, NULL, '2012-11-28 23:58:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account559' WHERE `accounts`.`id` = 559 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 559 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (559, 219) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 21:58:15 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a517a3571_227280435d485577d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', 'jabanilson', NULL, 1, '2012-11-28 23:58:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account560' WHERE `accounts`.`id` = 560  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (560, 219) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 558 WHERE `account_users`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 558 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 768 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 769  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/558/user/218/roles" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"558", "user_id"=>"218"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 218 AND `account_users`.`account_id` = 558 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND `accounts`.`id` = 558 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 Completed 200 OK in 27ms (Views: 14.1ms | ActiveRecord: 4.1ms)  (105.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:15', '2012-11-28 23:58:15', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:15', 'User', '9b8ce58ef22f2f02f50340948f44abbd', 220, 'User', '2012-11-28 23:58:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', NULL, NULL, NULL, '2012-11-28 23:58:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account561' WHERE `accounts`.`id` = 561 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (561, 220) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:15 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a517d5fda_227280435d48558f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 220)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:15', 'notowner@account.test', '$2a$04$uYVdpDHhUpkbcn/heGgr9emy7llWnWWGjgWeC2AQuUv3wn2hMgftK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:15', 'User', '5fe57942f7a3d616252e6f6f85ba5ed1', 221, 'User', '2012-11-28 23:58:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', NULL, NULL, NULL, '2012-11-28 23:58:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account562' WHERE `accounts`.`id` = 562 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (562, 221) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 21:58:15 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a517e6519_227280435d48559f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:15', 'jabanilson', NULL, 1, '2012-11-28 23:58:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:15', `updated_at` = '2012-11-28 23:58:15', `subdomain` = 'account563' WHERE `accounts`.`id` = 563  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (563, 221) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 561 WHERE `account_users`.`id` = 373  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 561 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 775 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 776  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/561/user/220/roles" for 127.0.0.1 at 2012-11-28 21:58:15 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"561", "user_id"=>"220"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 220 AND `account_users`.`account_id` = 561 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND `accounts`.`id` = 561 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 Completed 200 OK in 27ms (Views: 14.1ms | ActiveRecord: 3.7ms)  (29.2ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:16', '2012-11-28 23:58:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:16', 'User', '743826ddd3b9bf87f08a666548739022', 222, 'User', '2012-11-28 23:58:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', NULL, NULL, NULL, '2012-11-28 23:58:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account564' WHERE `accounts`.`id` = 564 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (564, 222) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5182bd2f_227280435d4856084@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 222)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 153ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:16', 'notowner@account.test', '$2a$04$PrIVcubdXP8HRyK5ehbr/OAOciaN7yBXnJK/Zbv4zM88xklC13uxS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:16', 'User', '13a28bb3985a6447c1c03fa72e9d4667', 223, 'User', '2012-11-28 23:58:16') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', NULL, NULL, NULL, '2012-11-28 23:58:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account565' WHERE `accounts`.`id` = 565 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 565 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (565, 223) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 21:58:16 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5183bf27_227280435d485613b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', 'jabanilson', NULL, 1, '2012-11-28 23:58:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account566' WHERE `accounts`.`id` = 566  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (566, 223) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 564 WHERE `account_users`.`id` = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 564 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 782 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 783  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/564/user/222/roles" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"564", "user_id"=>"222"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 222 AND `account_users`.`account_id` = 564 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND `accounts`.`id` = 564 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 Completed 200 OK in 27ms (Views: 14.3ms | ActiveRecord: 4.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:16', '2012-11-28 23:58:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:16', 'User', 'e63476256f64f768f73c94dfd33a0100', 224, 'User', '2012-11-28 23:58:16') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', NULL, NULL, NULL, '2012-11-28 23:58:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account567' WHERE `accounts`.`id` = 567 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 567 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (567, 224) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51855240_227280435d48562c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 224)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 224 AND `account_users`.`account_id` = 567 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (377) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (567) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Completed 200 OK in 19ms (Views: 14.6ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:16', '2012-11-28 23:58:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:16', 'User', '2cb17b0d7ba373310ed6d0d9bb30a02f', 225, 'User', '2012-11-28 23:58:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', NULL, NULL, NULL, '2012-11-28 23:58:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account568' WHERE `accounts`.`id` = 568 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 568 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (568, 225) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5186afed_227280435d48563f2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 225)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.0ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) Completed 200 OK in 112ms (Views: 109.0ms | ActiveRecord: 1.8ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:16', '2012-11-28 23:58:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:16', 'User', '551575e2cdfcf87910ccf13761edfd8b', 226, 'User', '2012-11-28 23:58:16') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', NULL, NULL, NULL, '2012-11-28 23:58:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account569' WHERE `accounts`.`id` = 569 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 569 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (569, 226) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5189c37f_227280435d4856421@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 226)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Completed 200 OK in 15ms (Views: 11.9ms | ActiveRecord: 2.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:16', '2012-11-28 23:58:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:16', 'User', 'b55d60cf9648bee336def2a611d24d3a', 227, 'User', '2012-11-28 23:58:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', NULL, NULL, NULL, '2012-11-28 23:58:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account570' WHERE `accounts`.`id` = 570 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 570 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (570, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a518b536b_227280435d4856519@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 227)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.2ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:16', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 380\n account_id: 570\n user_id: 227\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_380_destroy', '2012-11-28 23:58:16', '2012-11-28 23:58:16')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', 'jabanilson', NULL, 1, '2012-11-28 23:58:16')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account571' WHERE `accounts`.`id` = 571  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (571, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 1.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:16', '2012-11-28 23:58:16', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:16', 'User', 'aa00a89118d67a594f70bd9b8bb1629f', 228, 'User', '2012-11-28 23:58:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:16', NULL, NULL, NULL, '2012-11-28 23:58:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:16', `updated_at` = '2012-11-28 23:58:16', `subdomain` = 'account572' WHERE `accounts`.`id` = 572 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 572 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (572, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:16 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a518d7b9e_227280435d4856660@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 228)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 14ms (Views: 9.9ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:16 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 113ms (Views: 10.5ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:17', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 382\n account_id: 572\n user_id: 228\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_382_destroy', '2012-11-28 23:58:17', '2012-11-28 23:58:17')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', 'jabanilson', NULL, 1, '2012-11-28 23:58:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account573' WHERE `accounts`.`id` = 573  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (573, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', 'jabanilson', NULL, 1, '2012-11-28 23:58:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account574' WHERE `accounts`.`id` = 574  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (574, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 17ms (Views: 12.9ms | ActiveRecord: 2.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:17', '2012-11-28 23:58:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:17', 'User', 'd0691c0a576aa152feedf011fae6c0ff', 229, 'User', '2012-11-28 23:58:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', NULL, NULL, NULL, '2012-11-28 23:58:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account575' WHERE `accounts`.`id` = 575 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 575 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (575, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51921d17_227280435d4856714@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 229)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:17', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 385\n account_id: 575\n user_id: 229\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_385_destroy', '2012-11-28 23:58:17', '2012-11-28 23:58:17')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', 'jabanilson', NULL, 1, '2012-11-28 23:58:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account576' WHERE `accounts`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (576, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', 'jabanilson', NULL, 1, '2012-11-28 23:58:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account577' WHERE `accounts`.`id` = 577  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (577, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 2.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:17', '2012-11-28 23:58:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:17') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:17', 'User', 'b6e409b24d01defa5fd8bc9908d421fc', 230, 'User', '2012-11-28 23:58:17') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', NULL, NULL, NULL, '2012-11-28 23:58:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account578' WHERE `accounts`.`id` = 578 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 578 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (578, 230) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 21:58:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a519481da_227280435d4856865@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 230)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 230 AND `account_users`.`account_id` = 578 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (388) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (578) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', 'jabanilson', NULL, 1, '2012-11-28 23:58:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account579' WHERE `accounts`.`id` = 579  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (579, 230) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/579" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"579"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND `accounts`.`id` = 579 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 579 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 579 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_579_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 141ms (Views: 132.9ms | ActiveRecord: 4.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:17', '2012-11-28 23:58:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:17', 'User', '4da8f4f7d79cc7e228a3a9575ff4267b', 231, 'User', '2012-11-28 23:58:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', NULL, NULL, NULL, '2012-11-28 23:58:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account580' WHERE `accounts`.`id` = 580 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 580 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (580, 231) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51984995_227280435d485698b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 231)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 231 AND `account_users`.`account_id` = 580 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (390) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (580) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', 'jabanilson', NULL, 1, '2012-11-28 23:58:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account581' WHERE `accounts`.`id` = 581  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (581, 231) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/581" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"581"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND `accounts`.`id` = 581 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 581 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 581 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_581_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 34ms (Views: 26.5ms | ActiveRecord: 3.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:17', '2012-11-28 23:58:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:17', 'User', '1cf8961a413c4f46c66f4764829ada60', 232, 'User', '2012-11-28 23:58:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', NULL, NULL, NULL, '2012-11-28 23:58:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account582' WHERE `accounts`.`id` = 582 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 582 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (582, 232) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a519a6cc5_227280435d4857064@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 232)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 232 AND `account_users`.`account_id` = 582 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (392) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (582) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', 'jabanilson', NULL, 1, '2012-11-28 23:58:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account583' WHERE `accounts`.`id` = 583  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (583, 232) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 583 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 822  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/583" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"583"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND `accounts`.`id` = 583 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 583 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 583 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_583_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 3.7ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:17', '2012-11-28 23:58:17', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:17', 'User', '2406b19db0b97e6702560002d635efc8', 233, 'User', '2012-11-28 23:58:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', NULL, NULL, NULL, '2012-11-28 23:58:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account584' WHERE `accounts`.`id` = 584 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 584 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (584, 233) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'admin') Sent mail to facebook@test.test (106ms) Date: Wed, 28 Nov 2012 21:58:17 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a519c9c9b_227280435d4857197@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 233)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 149ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 233 AND `account_users`.`account_id` = 584 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (394) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (584) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 1.9ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:17', 'jabanilson', NULL, 1, '2012-11-28 23:58:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:17', `updated_at` = '2012-11-28 23:58:17', `subdomain` = 'account585' WHERE `accounts`.`id` = 585  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (585, 233) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 585 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 827  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/585" for 127.0.0.1 at 2012-11-28 21:58:17 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"585"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND `accounts`.`id` = 585 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 585 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 585 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_585_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 4.0ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:18', '2012-11-28 23:58:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:18', 'User', '51743b6f31f9011dc61d8ac4256727b3', 234, 'User', '2012-11-28 23:58:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', NULL, NULL, NULL, '2012-11-28 23:58:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account586' WHERE `accounts`.`id` = 586 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 586 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (586, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51a10a3f_227280435d4857214@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 234)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 234 AND `account_users`.`account_id` = 586 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (396) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (586) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', 'jabanilson', NULL, 1, '2012-11-28 23:58:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account587' WHERE `accounts`.`id` = 587  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (587, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 587 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 831  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/587" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"587"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND `accounts`.`id` = 587 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 587 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 587 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_587_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 31ms (Views: 23.6ms | ActiveRecord: 3.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:18', '2012-11-28 23:58:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:18', 'User', '6a798e30cb5ed4c66c89b9e877fd96de', 235, 'User', '2012-11-28 23:58:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', NULL, NULL, NULL, '2012-11-28 23:58:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account588' WHERE `accounts`.`id` = 588 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 588 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (588, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51a33b26_227280435d485732@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 235)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 8.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 235 AND `account_users`.`account_id` = 588 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (398) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (588) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', 'jabanilson', NULL, 1, '2012-11-28 23:58:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account589' WHERE `accounts`.`id` = 589  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (589, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 589 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 835  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/589" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"589"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND `accounts`.`id` = 589 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 589 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 589 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_589_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 134ms (Views: 126.8ms | ActiveRecord: 3.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:18', '2012-11-28 23:58:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:18', 'User', 'feb4a6c8be73b34bbd3a54a8fa258413', 236, 'User', '2012-11-28 23:58:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', NULL, NULL, NULL, '2012-11-28 23:58:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account590' WHERE `accounts`.`id` = 590 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 590 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (590, 236) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51a7014c_227280435d4857453@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 236)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 236 AND `account_users`.`account_id` = 590 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (400) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (590) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 2.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', 'jabanilson', NULL, 1, '2012-11-28 23:58:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account591' WHERE `accounts`.`id` = 591  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (591, 236) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 591 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 839  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/591" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"591"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND `accounts`.`id` = 591 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 591 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 591 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_591_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 33ms (Views: 25.2ms | ActiveRecord: 3.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:18', '2012-11-28 23:58:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:18', 'User', 'a1cee0b8d1693c5ef3fcc5bedc0d4f9b', 237, 'User', '2012-11-28 23:58:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', NULL, NULL, NULL, '2012-11-28 23:58:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account592' WHERE `accounts`.`id` = 592 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 592 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (592, 237) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51a9473d_227280435d48575d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 237)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 237 AND `account_users`.`account_id` = 592 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (402) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (592) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 15ms (Views: 10.6ms | ActiveRecord: 2.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', 'jabanilson', NULL, 1, '2012-11-28 23:58:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account593' WHERE `accounts`.`id` = 593  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (593, 237) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 593 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 843  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 35ms (Views: 26.4ms | ActiveRecord: 3.6ms) Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 32ms (Views: 23.6ms | ActiveRecord: 3.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:18', '2012-11-28 23:58:18', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:18', 'User', '02845c5b99b3ddf59cfe61a1a0324272', 238, 'User', '2012-11-28 23:58:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', NULL, NULL, NULL, '2012-11-28 23:58:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account594' WHERE `accounts`.`id` = 594 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 594 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (594, 238) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 21:58:18 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51adb600_227280435d485769e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 238)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 238 AND `account_users`.`account_id` = 594 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (404) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (594) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:18', 'jabanilson', NULL, 1, '2012-11-28 23:58:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:18', `updated_at` = '2012-11-28 23:58:18', `subdomain` = 'account595' WHERE `accounts`.`id` = 595  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (595, 238) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 595 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 847  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 21:58:18 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 31ms (Views: 23.3ms | ActiveRecord: 3.6ms) Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 34ms (Views: 25.4ms | ActiveRecord: 4.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:19', '2012-11-28 23:58:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:19', 'User', '1b06ba636f441dbfddc1ada4abdf1cbd', 239, 'User', '2012-11-28 23:58:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', NULL, NULL, NULL, '2012-11-28 23:58:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account596' WHERE `accounts`.`id` = 596 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 596 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (596, 239) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51b146e3_227280435d4857770@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 239)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', 'jabanilson', NULL, 1, '2012-11-28 23:58:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account597' WHERE `accounts`.`id` = 597  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (597, 239) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 597 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 851  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 31ms (Views: 23.7ms | ActiveRecord: 3.8ms) Started DELETE "/settings/account/597" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"597"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 597 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 597\n created_at: 2012-11-28 23:58:19.000000000Z\n updated_at: 2012-11-28 23:58:19.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account597\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_597_destroy', '2012-11-28 23:58:19', '2012-11-28 23:58:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 13ms (ActiveRecord: 2.7ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 1.9ms) Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 34ms (Views: 26.7ms | ActiveRecord: 3.6ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:19', '2012-11-28 23:58:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:19', 'User', '948220a5c88c9dda56879389e2eeb455', 240, 'User', '2012-11-28 23:58:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', NULL, NULL, NULL, '2012-11-28 23:58:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account598' WHERE `accounts`.`id` = 598 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 598 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (598, 240) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51b68b2b_227280435d4857849@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 240)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', 'jabanilson', NULL, 1, '2012-11-28 23:58:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account599' WHERE `accounts`.`id` = 599  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (599, 240) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 599 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 855  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 30ms (Views: 23.1ms | ActiveRecord: 3.6ms) Started DELETE "/settings/account/599" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 599 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:19', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 599\n created_at: 2012-11-28 23:58:19.000000000Z\n updated_at: 2012-11-28 23:58:19.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account599\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_599_destroy', '2012-11-29 23:58:19', '2012-11-28 23:58:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 12ms (ActiveRecord: 2.8ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 15ms (Views: 11.5ms | ActiveRecord: 1.9ms) Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 599 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_599_destroy' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 31ms (Views: 23.9ms | ActiveRecord: 3.7ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:19', '2012-11-28 23:58:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:19', 'User', 'd2bacbb4b44d6d05cde8520f3d8cfcde', 241, 'User', '2012-11-28 23:58:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', NULL, NULL, NULL, '2012-11-28 23:58:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account600' WHERE `accounts`.`id` = 600 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 600 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (600, 241) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51bb80e8_227280435d48579cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 241)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 160ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 241 AND `account_users`.`account_id` = 600 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (410) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (600) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 1.9ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', 'jabanilson', NULL, 1, '2012-11-28 23:58:19')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account601' WHERE `accounts`.`id` = 601  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (601, 241) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:19', 'notowner@account.test', '$2a$04$kxH/RnZH5CddLJ4IW3XldONl/XFtXBWMLkntwmREUz5ZcswwiANJi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:19', 'User', '91a53cbfe5b3f6b25d46a02a386d7077', 242, 'User', '2012-11-28 23:58:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', NULL, NULL, NULL, '2012-11-28 23:58:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account602' WHERE `accounts`.`id` = 602 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 602 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (602, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 21:58:19 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a51bcf925_227280435d4858089@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', 'jabanilson', NULL, 1, '2012-11-28 23:58:19')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account603' WHERE `accounts`.`id` = 603  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (603, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 601 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 601 WHERE `account_users`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 601 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 858 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 859  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/601" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"601"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 241 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 AND `accounts`.`id` = 601 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 601 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 601 AND `account_users`.`user_id` = 241 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (411) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (601) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 411 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 241 Completed 200 OK in 29ms (Views: 21.6ms | ActiveRecord: 3.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:19', '2012-11-28 23:58:19', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:19', 'User', 'cdf10788e177d642dd485b55f3883925', 243, 'User', '2012-11-28 23:58:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:19', NULL, NULL, NULL, '2012-11-28 23:58:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:19', `updated_at` = '2012-11-28 23:58:19', `subdomain` = 'account604' WHERE `accounts`.`id` = 604 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 604 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (604, 243) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:19 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51be9699_227280435d4858118@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 243)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:19 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 243 AND `account_users`.`account_id` = 604 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (414) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (604) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', 'jabanilson', NULL, 1, '2012-11-28 23:58:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account605' WHERE `accounts`.`id` = 605  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (605, 243) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:20', 'notowner@account.test', '$2a$04$3PH9CmirQFm0LjsmUDxyFegRrOm2LWGxcT6uIlESPBvLX3GeOr9/u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:20', 'User', '7f3526f7cc4b8ceda7f7d535d169b3fb', 244, 'User', '2012-11-28 23:58:20') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', NULL, NULL, NULL, '2012-11-28 23:58:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account606' WHERE `accounts`.`id` = 606 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 606 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (606, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 21:58:20 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a51cd233_227280435d4858257@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', 'jabanilson', NULL, 1, '2012-11-28 23:58:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account607' WHERE `accounts`.`id` = 607  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (607, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 605 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 605 WHERE `account_users`.`id` = 417  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 605 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 867 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 868  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/605" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"605"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 243 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 AND `accounts`.`id` = 605 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 605 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 605 AND `account_users`.`user_id` = 243 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (415) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (605) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 415 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 243 Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 3.3ms)  (11.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:20', '2012-11-28 23:58:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:20') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:20', 'User', 'f2db3c766364514cdc206a4aab6f957c', 245, 'User', '2012-11-28 23:58:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', NULL, NULL, NULL, '2012-11-28 23:58:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account608' WHERE `accounts`.`id` = 608 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 608 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (608, 245) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51c44d30_227280435d4858367@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 245)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 161ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 245 AND `account_users`.`account_id` = 608 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (418) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (608) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.2ms) User Load (0.6ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', 'jabanilson', NULL, 1, '2012-11-28 23:58:20')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account609' WHERE `accounts`.`id` = 609  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (609, 245) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:20', 'notowner@account.test', '$2a$04$Dh.Hud8bB52t9KGaNO7r2.fps4lE6kW9E82Vby3pPIEBPz2UnAVX2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:20', 'User', '0a494516f743ef019cdd760f6ea584dc', 246, 'User', '2012-11-28 23:58:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', NULL, NULL, NULL, '2012-11-28 23:58:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account610' WHERE `accounts`.`id` = 610 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 610 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (610, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 21:58:20 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a51c5cecd_227280435d485849a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', 'jabanilson', NULL, 1, '2012-11-28 23:58:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account611' WHERE `accounts`.`id` = 611  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (611, 246) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 609 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 609 WHERE `account_users`.`id` = 421  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 609 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 876 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 877  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/609" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"609"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 245 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 AND `accounts`.`id` = 609 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 609 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 609 AND `account_users`.`user_id` = 245 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (419) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (609) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 419 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 245 Completed 200 OK in 30ms (Views: 22.3ms | ActiveRecord: 3.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:20', '2012-11-28 23:58:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:20', 'User', '8ec2019dd787c3c949e43889fe85e2af', 247, 'User', '2012-11-28 23:58:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', NULL, NULL, NULL, '2012-11-28 23:58:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account612' WHERE `accounts`.`id` = 612 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 612 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (612, 247) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51c771b4_227280435d4858548@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 247)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 247 AND `account_users`.`account_id` = 612 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (422) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (612) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', 'jabanilson', NULL, 1, '2012-11-28 23:58:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account613' WHERE `accounts`.`id` = 613  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (613, 247) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:20', 'notowner@account.test', '$2a$04$z6BLI4r.JSb37UwzC6zwMesOkHWTzmh5EpTvdiReaqbIDvzcQBTeK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:20', 'User', 'ade3a120ca9d9dd025ff65f3db8bbe85', 248, 'User', '2012-11-28 23:58:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', NULL, NULL, NULL, '2012-11-28 23:58:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account614' WHERE `accounts`.`id` = 614 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 614 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (614, 248) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 21:58:20 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a51c8edc9_227280435d485863e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', 'jabanilson', NULL, 1, '2012-11-28 23:58:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account615' WHERE `accounts`.`id` = 615  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (615, 248) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 613 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 613 WHERE `account_users`.`id` = 425  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 613 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 885 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 886  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/613" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"613"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 247 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 AND `accounts`.`id` = 613 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 613 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 613 AND `account_users`.`user_id` = 247 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (423) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (613) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 423 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 247 Completed 200 OK in 29ms (Views: 22.2ms | ActiveRecord: 3.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:20', '2012-11-28 23:58:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:20', 'User', '76de86e53e3a2b8bf010d60ba8f44649', 249, 'User', '2012-11-28 23:58:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', NULL, NULL, NULL, '2012-11-28 23:58:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account616' WHERE `accounts`.`id` = 616 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 616 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (616, 249) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51cc257a_227280435d48587a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 249)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 156ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 249 AND `account_users`.`account_id` = 616 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (426) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (616) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', 'jabanilson', NULL, 1, '2012-11-28 23:58:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account617' WHERE `accounts`.`id` = 617  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (617, 249) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/617" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"617"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND `accounts`.`id` = 617 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 617 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 617 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_617_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 28ms (Views: 20.0ms | ActiveRecord: 3.9ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:20', '2012-11-28 23:58:20', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:20', 'User', '89fd6aa319e20a93b17834afd6f4ff70', 250, 'User', '2012-11-28 23:58:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', NULL, NULL, NULL, '2012-11-28 23:58:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account618' WHERE `accounts`.`id` = 618 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 618 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (618, 250) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:20 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51ce31e2_227280435d485883@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 250)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 250 AND `account_users`.`account_id` = 618 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (428) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (618) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:20', 'jabanilson', NULL, 1, '2012-11-28 23:58:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:20', `updated_at` = '2012-11-28 23:58:20', `subdomain` = 'account619' WHERE `accounts`.`id` = 619  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (619, 250) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/619" for 127.0.0.1 at 2012-11-28 21:58:20 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"619"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 AND `accounts`.`id` = 619 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 619 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_619_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 250 Completed 200 OK in 26ms (Views: 18.1ms | ActiveRecord: 3.6ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:21', 'teste@teste.com', '$2a$04$mkBnTxYyTK/LhzFb3YX47ej1TqDHSMfOxHDfvsnZ9K/hSj6s63ATa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', '8fc0034eff06149abc246965b5c6e04c', 251, 'User', '2012-11-28 23:58:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account620' WHERE `accounts`.`id` = 620 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 620 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (620, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51de489_227280435d48589b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:21', '2012-11-28 23:58:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', '06f6e52ec1dd87fc97e6385802a18534', 252, 'User', '2012-11-28 23:58:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account621' WHERE `accounts`.`id` = 621 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 252) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51d1974a_227280435d485909f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 252)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 251) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 904 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 905  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 903  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 LIMIT 1 Started GET "/settings/account/621/users" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"621"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_621_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431, 432) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_431_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 251 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_432_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (431) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 431 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 252 Completed 200 OK in 38ms (Views: 29.0ms | ActiveRecord: 5.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:21', 'teste@teste.com', '$2a$04$UeOHBABHubu3Nc0OZDqdDOdMS0Aun1Oy7s0v9dB5oYLkQ4u9vxSMy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', 'd5092368485b26354e60afcbf46585ae', 253, 'User', '2012-11-28 23:58:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account622' WHERE `accounts`.`id` = 622 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 622 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (622, 253) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51d56661_227280435d4859154@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:21', '2012-11-28 23:58:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', '993742a13d95a33c88d783654d8025e5', 254, 'User', '2012-11-28 23:58:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account623' WHERE `accounts`.`id` = 623 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 254) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51d6179a_227280435d4859236@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 254)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 253) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 911 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 912  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 910  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 LIMIT 1 Started GET "/settings/account/623/users" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"623"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_623_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434, 435) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_434_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 253 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_435_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (434) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 434 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 254 Completed 200 OK in 33ms (Views: 24.8ms | ActiveRecord: 4.7ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:21', 'teste@teste.com', '$2a$04$1v13.xHXw3LbfCNalTCSdeqpl5fCSd59/chuAZfksOvr9Oc2fzpHW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', 'd4467961164d15c1d417b3f83271a6c1', 255, 'User', '2012-11-28 23:58:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account624' WHERE `accounts`.`id` = 624 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 624 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (624, 255) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51d82a46_227280435d4859381@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:21', '2012-11-28 23:58:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', 'f36807bb040f1212815c5163a717c1e9', 256, 'User', '2012-11-28 23:58:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account625' WHERE `accounts`.`id` = 625 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 256) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51d8dcf9_227280435d48594ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 256)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 255) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 918 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 919  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 917  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 LIMIT 1 Started GET "/settings/account/625/users" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"625"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_625_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437, 438) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_437_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 255 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_438_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (437) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 437 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 256 Completed 200 OK in 35ms (Views: 26.1ms | ActiveRecord: 5.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:21', 'teste@teste.com', '$2a$04$ByjT6Qv2jwyVL7SXYX6fWeTBrHW0xY2JKUoeIiG5.4AdwGSIjNw76', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', '918eb4adc12d4bb6c8b7116cc6dca8cf', 257, 'User', '2012-11-28 23:58:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account626' WHERE `accounts`.`id` = 626 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 626 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (626, 257) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51dcbb82_227280435d48595ac@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:21', '2012-11-28 23:58:21', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', 'cc62c3feb8412026ec19b4629412faaa', 258, 'User', '2012-11-28 23:58:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account627' WHERE `accounts`.`id` = 627 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 258) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:21 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51dd6da3_227280435d4859697@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 258)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 257) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 925 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 926  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 924  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 LIMIT 1 Started GET "/settings/account/627/users" for 127.0.0.1 at 2012-11-28 21:58:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"627"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_627_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440, 441) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_440_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 257 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_441_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (440) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 440 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 258 Completed 200 OK in 36ms (Views: 27.3ms | ActiveRecord: 5.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:21', 'teste@teste.com', '$2a$04$42OIevGJacIyii5PQYQFZuY.lFYTGoCVzqMIsBuSfyXlvqrvyow9G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:21', 'User', '0d2da19a17e22e4413faeec73451af3b', 259, 'User', '2012-11-28 23:58:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:21', NULL, NULL, NULL, '2012-11-28 23:58:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:21', `updated_at` = '2012-11-28 23:58:21', `subdomain` = 'account628' WHERE `accounts`.`id` = 628 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 628 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (628, 259) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51e579e_227280435d4859729@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:22', '2012-11-28 23:58:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:22', 'User', '467fa85fd25f83afbed8e120d17e33e3', 260, 'User', '2012-11-28 23:58:22') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:22', NULL, NULL, NULL, '2012-11-28 23:58:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:22', `updated_at` = '2012-11-28 23:58:22', `subdomain` = 'account629' WHERE `accounts`.`id` = 629 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 260) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51e10926_227280435d48598b8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 260)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 259) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 932 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 933  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 931  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 LIMIT 1 Started GET "/settings/account/629/users" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"629"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_629_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443, 444) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_443_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 259 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_444_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (443) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 443 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 260 Completed 200 OK in 32ms (Views: 24.4ms | ActiveRecord: 4.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:22', 'teste@teste.com', '$2a$04$3eN.1iZnpcPeYWAKmSOrsu.kzd/6ZqhNSA7TiHVAbIlYaIY.F9EYy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:22') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:22', 'User', 'a7f9385acc42795f2255f6ece7164d4d', 261, 'User', '2012-11-28 23:58:22') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:22', NULL, NULL, NULL, '2012-11-28 23:58:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:22', `updated_at` = '2012-11-28 23:58:22', `subdomain` = 'account630' WHERE `accounts`.`id` = 630 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 630 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (630, 261) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51e4d7c0_227280435d48599e7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:22', '2012-11-28 23:58:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:22', 'User', '5495367f5ae09ff5ca4917f2b9d86d17', 262, 'User', '2012-11-28 23:58:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:22', NULL, NULL, NULL, '2012-11-28 23:58:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:22', `updated_at` = '2012-11-28 23:58:22', `subdomain` = 'account631' WHERE `accounts`.`id` = 631 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 262) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51e58e08_227280435d4860073@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 262)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 261) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 940 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 941  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 939  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 LIMIT 1 Started GET "/settings/account/631/users" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"631"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_631_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446, 447) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_446_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 261 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_447_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (446) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 446 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 262 Completed 200 OK in 36ms (Views: 27.4ms | ActiveRecord: 4.6ms)  (12.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:22', 'teste@teste.com', '$2a$04$alNPEnZ.NcHPJbSY2r1nyenG14QognSLHwRAgMSESur/GB8Si3AsW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:22', 'User', '81b931b845fc15869decd0cdf6e1cdd2', 263, 'User', '2012-11-28 23:58:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:22', NULL, NULL, NULL, '2012-11-28 23:58:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:22', `updated_at` = '2012-11-28 23:58:22', `subdomain` = 'account632' WHERE `accounts`.`id` = 632 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 632 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (632, 263) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51e7fe47_227280435d4860126@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:22', '2012-11-28 23:58:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:22', 'User', '323c17aaeb37e51dfacf7387faa646b8', 264, 'User', '2012-11-28 23:58:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:22', NULL, NULL, NULL, '2012-11-28 23:58:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:22', `updated_at` = '2012-11-28 23:58:22', `subdomain` = 'account633' WHERE `accounts`.`id` = 633 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 264) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51e8aa67_227280435d4860228@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 264)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 263) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 948 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 949  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 947  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 LIMIT 1 Started GET "/settings/account/633/users" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"633"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_633_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449, 450) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_449_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 263 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_450_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (449) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 449 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 264 Completed 200 OK in 152ms (Views: 143.6ms | ActiveRecord: 4.9ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:22', 'teste@teste.com', '$2a$04$J1Xlkc/qYTDPxG7XfGK4p.ikwkSZiPcvdQ8OdebeK2cYdcjU7jiJ6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:22', 'User', 'e34dba68bd0304d5c0361e871a7f2766', 265, 'User', '2012-11-28 23:58:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:22', NULL, NULL, NULL, '2012-11-28 23:58:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:22', `updated_at` = '2012-11-28 23:58:22', `subdomain` = 'account634' WHERE `accounts`.`id` = 634 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 634 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (634, 265) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51ec9592_227280435d48603c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:22', '2012-11-28 23:58:22', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:22', 'User', 'ea9d5436cdef003a6e8a19f34a8ffc0b', 266, 'User', '2012-11-28 23:58:22') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:22', NULL, NULL, NULL, '2012-11-28 23:58:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:22', `updated_at` = '2012-11-28 23:58:22', `subdomain` = 'account635' WHERE `accounts`.`id` = 635 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 266) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51ed4ca1_227280435d4860476@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 266)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 265) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 956 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 957  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 955  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 LIMIT 1 Started GET "/settings/account/635/users" for 127.0.0.1 at 2012-11-28 21:58:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"635"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_635_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452, 453) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_452_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 265 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_453_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (452) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 452 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 266 Completed 200 OK in 33ms (Views: 24.9ms | ActiveRecord: 4.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:22', 'teste@teste.com', '$2a$04$3zJdZ7vhBgebopsiyYH6g.rkPDZ8.wyP94Uf2zJbpGpCCCbR396m2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:22', 'User', 'ad48c19f93725c6be4dcf775fd150eaa', 267, 'User', '2012-11-28 23:58:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:22', NULL, NULL, NULL, '2012-11-28 23:58:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:22', `updated_at` = '2012-11-28 23:58:22', `subdomain` = 'account636' WHERE `accounts`.`id` = 636 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 636 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (636, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51f1cde_227280435d486054c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:23', '2012-11-28 23:58:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', '9e1b052a9256eb13f3ba77078d16f764', 268, 'User', '2012-11-28 23:58:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', NULL, NULL, NULL, '2012-11-28 23:58:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account637' WHERE `accounts`.`id` = 637 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 268) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51fd17c_227280435d4860631@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 268)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:23', 'notowner@account.test', '$2a$04$KwfGt/sXzSkjihlPjtZZ7eEtgKIDRsJivbzZEti/qYx3.DugsYStu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', 'f48dbab283e8c4dcb6a95921ca66b7fc', 269, 'User', '2012-11-28 23:58:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', NULL, NULL, NULL, '2012-11-28 23:58:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account638' WHERE `accounts`.`id` = 638 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 638 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (638, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a51f1bde6_227280435d4860759@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', 'jabanilson', NULL, 1, '2012-11-28 23:58:23')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account639' WHERE `accounts`.`id` = 639  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (639, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 637 WHERE `account_users`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 968 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 969  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 637 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 962 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 963  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 LIMIT 1 Started GET "/settings/account/637/users" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"637"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_637_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 637 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455, 457, 458) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 269 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 637 AND `account_users`.`user_id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (455) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (637) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 455 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 268 Completed 200 OK in 45ms (Views: 36.6ms | ActiveRecord: 5.1ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:23', 'teste@teste.com', '$2a$04$x6gLe2mE31uffbkloyH3XOMdPAByTK8qvBrDbDPLVJzmXHTCpD0q6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', 'f47dc57d50c83d2b3735f0906d2e63d1', 270, 'User', '2012-11-28 23:58:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', NULL, NULL, NULL, '2012-11-28 23:58:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account640' WHERE `accounts`.`id` = 640 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 640 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (640, 270) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51f594b9_227280435d4860826@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:23', '2012-11-28 23:58:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', '40e5669c0c1286ce7766ffb124e0a66e', 271, 'User', '2012-11-28 23:58:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', NULL, NULL, NULL, '2012-11-28 23:58:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account641' WHERE `accounts`.`id` = 641 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 271) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51f64605_227280435d48609c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 271)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:23', 'notowner@account.test', '$2a$04$QL6YijQrJ9xyFtL44aDQvuDI01hoxHv5KW6jrnwMOr5XIQPyC23o6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', 'b1ee1fec59a9d03670ea12332e58ae4a', 272, 'User', '2012-11-28 23:58:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', NULL, NULL, NULL, '2012-11-28 23:58:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account642' WHERE `accounts`.`id` = 642 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 642 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (642, 272) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a51f73939_227280435d486101d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', 'jabanilson', NULL, 1, '2012-11-28 23:58:23')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account643' WHERE `accounts`.`id` = 643  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (643, 272) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 641 WHERE `account_users`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 270) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 980 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 981  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 641 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 974 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 975  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 LIMIT 1 Started GET "/settings/account/641/users" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"641"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_641_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 641 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460, 462, 463) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 272 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 641 AND `account_users`.`user_id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (460) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (641) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 460 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 271 Completed 200 OK in 45ms (Views: 36.8ms | ActiveRecord: 4.6ms)  (10.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:23', 'teste@teste.com', '$2a$04$Qz3ezptKbjxNJB8C0f9ote8Ll/gNHYcMBodcKYZ3c1YWB1dvlMnzO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', '8ea94915a228743371b2ad2a2befce17', 273, 'User', '2012-11-28 23:58:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', NULL, NULL, NULL, '2012-11-28 23:58:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account644' WHERE `accounts`.`id` = 644 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 644 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (644, 273) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a51f9837e_227280435d4861141@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:23', '2012-11-28 23:58:23', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', 'a145f479fc9cd010dbf965e993038efb', 274, 'User', '2012-11-28 23:58:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', NULL, NULL, NULL, '2012-11-28 23:58:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account645' WHERE `accounts`.`id` = 645 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 274) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a51fa3447_227280435d4861241@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 274)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 163ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:23', 'notowner@account.test', '$2a$04$QdaH/2Va0cTYJgT894F4iuKO9F8sEYG3uU6CeoW2wyWmowgHb9a/K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', 'f8b015d25a99eedf9271725bd2cbc482', 275, 'User', '2012-11-28 23:58:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', NULL, NULL, NULL, '2012-11-28 23:58:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account646' WHERE `accounts`.`id` = 646 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 646 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (646, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 21:58:23 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a51fcea31_227280435d486131@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:23', 'jabanilson', NULL, 1, '2012-11-28 23:58:23')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:23', `updated_at` = '2012-11-28 23:58:23', `subdomain` = 'account647' WHERE `accounts`.`id` = 647  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (647, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 645 WHERE `account_users`.`id` = 467  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 273) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 992 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 993  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 645 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 986 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 987  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 LIMIT 1 Started GET "/settings/account/645/users" for 127.0.0.1 at 2012-11-28 21:58:23 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"645"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_645_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 645 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465, 467, 468) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 275 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 645 AND `account_users`.`user_id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (465) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (645) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 465 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 274 Completed 200 OK in 46ms (Views: 37.4ms | ActiveRecord: 4.8ms)  (34.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:23', 'teste@teste.com', '$2a$04$qTUnYrAHGWpyj534Vh9v9e4WAtkGaWruSWNFXamKTbtJZfZ0EJFFi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:23', 'User', 'fe09d2cccbfa4714a4c602d589fbdec5', 276, 'User', '2012-11-28 23:58:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account648' WHERE `accounts`.`id` = 648 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 648 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (648, 276) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a520627b_227280435d4861434@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:24', '2012-11-28 23:58:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:24', 'User', 'ca01bbda8106371f270c164114cd87b2', 277, 'User', '2012-11-28 23:58:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account649' WHERE `accounts`.`id` = 649 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 277) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a52011ccc_227280435d48615aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 277)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:24', 'notowner@account.test', '$2a$04$dBaEmJnz9mr1zpvWGX7fAuqR5VhvdLfTgV0DNkvkg4aVKG1zInW5C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:24', 'User', '13a4a7dc0058bc2cae2e5c83fe91cc4d', 278, 'User', '2012-11-28 23:58:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account650' WHERE `accounts`.`id` = 650 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 650 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (650, 278) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a52020cfc_227280435d48616d5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', 'jabanilson', NULL, 1, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account651' WHERE `accounts`.`id` = 651  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (651, 278) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 649 WHERE `account_users`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 276) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1004 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1005  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 649 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 998 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 999  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 LIMIT 1 Started GET "/settings/account/649/users" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"649"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_649_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 649 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470, 472, 473) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 278 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 649 AND `account_users`.`user_id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (470) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (649) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 470 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 277 Completed 200 OK in 45ms (Views: 36.7ms | ActiveRecord: 4.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:24', 'teste@teste.com', '$2a$04$gWEBx9vxK9XxeW1NkCeaMODbKc50jhbRD/PwSAc0.DHo8S0DQ3qW6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:24', 'User', 'e6631b6aa701f4f8e9a63fd694a8e238', 279, 'User', '2012-11-28 23:58:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account652' WHERE `accounts`.`id` = 652 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 652 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (652, 279) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5205f7bd_227280435d48617bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:24', '2012-11-28 23:58:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:24', 'User', '0907c42e45041b8cc15eeba4f69ada89', 280, 'User', '2012-11-28 23:58:24') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account653' WHERE `accounts`.`id` = 653 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 280) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5206a62d_227280435d4861888@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 280)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 279) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1012 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1013  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1010 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1011  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 LIMIT 1 Started GET "/settings/account/653/users" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"653"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_653_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475, 476) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_475_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 279 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_476_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (475) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 475 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 280 Completed 200 OK in 33ms (Views: 24.2ms | ActiveRecord: 5.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:24', 'teste@teste.com', '$2a$04$yxFBmvIFubpFpe5JzZOjXeY4i8vt0uueXPo31NeHM//HC02Q0RM4i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:24', 'User', '98c0ecab89288b3e9d7827ac89635236', 281, 'User', '2012-11-28 23:58:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account654' WHERE `accounts`.`id` = 654 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 654 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (654, 281) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5208c534_227280435d486196d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:24', '2012-11-28 23:58:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:24', 'User', 'f85b7c22c39c71ba74b2744f840f110b', 282, 'User', '2012-11-28 23:58:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account655' WHERE `accounts`.`id` = 655 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 282) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a520977ed_227280435d48620d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 282)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 281) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1020 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1021  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1018 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1019  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 LIMIT 1 Started GET "/settings/account/655/users" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"655"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_655_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478, 479) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_478_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 281 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_479_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (478) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 478 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 282 Completed 200 OK in 35ms (Views: 26.1ms | ActiveRecord: 4.9ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:24', 'teste@teste.com', '$2a$04$zDIaXINR7P69dLwxlAb7re6BdRmBC6Q5VEMShJFfH4DHizqh9BPDO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:24', 'User', 'f4620732204350dbd82974b988fe80b9', 283, 'User', '2012-11-28 23:58:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account656' WHERE `accounts`.`id` = 656 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 656 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (656, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a520b9566_227280435d4862150@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (113.8ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:24', '2012-11-28 23:58:24', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:24', 'User', 'fda524a8ea8f36e2fe4bc70d88106efd', 284, 'User', '2012-11-28 23:58:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:24', NULL, NULL, NULL, '2012-11-28 23:58:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:24', `updated_at` = '2012-11-28 23:58:24', `subdomain` = 'account657' WHERE `accounts`.`id` = 657 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 284) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a520e0b7a_227280435d4862235@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 284)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 166ms (ActiveRecord: 121.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1028 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1029  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1026 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1027  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 LIMIT 1 Started GET "/settings/account/657/users" for 127.0.0.1 at 2012-11-28 21:58:24 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"657"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_657_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481, 482) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_481_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 283 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_482_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (481) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 481 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 284 Completed 200 OK in 34ms (Views: 24.8ms | ActiveRecord: 5.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:25', 'teste@teste.com', '$2a$04$eFqOX/jbQ/I1eEyu58KMfOFXsjhhw3eS6N0wc0oMNvGTMDGtRqdeW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', 'e0c41360f384223e26d507c19affbcc3', 285, 'User', '2012-11-28 23:58:25') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account658' WHERE `accounts`.`id` = 658 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 658 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (658, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a521ef9a_227280435d4862330@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:25', '2012-11-28 23:58:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', '7793cf89b791e7659067c87b36fe3283', 286, 'User', '2012-11-28 23:58:25') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account659' WHERE `accounts`.`id` = 659 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 286) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5211a776_227280435d48624b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 286)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (485) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659)  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1036 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1037  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1034 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1035  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 LIMIT 1 Started GET "/settings/account/659/users" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"659"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_659_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484, 485) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 286 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_484_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 285 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_485_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 286 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (484) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 484 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 286 Completed 200 OK in 33ms (Views: 24.3ms | ActiveRecord: 4.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:25', 'teste@teste.com', '$2a$04$olzkB1Qt1zB/qHZm.Q6GQenRKldo3oNQbFr.gzlcf53ZfbQVbz.Ua', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', '27807b0df4cb75850cf5261422fee068', 287, 'User', '2012-11-28 23:58:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account660' WHERE `accounts`.`id` = 660 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 660 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (660, 287) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5213c373_227280435d4862525@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:25', '2012-11-28 23:58:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', '04e44307814c567f739857c6ce20d574', 288, 'User', '2012-11-28 23:58:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account661' WHERE `accounts`.`id` = 661 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (661, 288) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5216337d_227280435d4862634@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 288)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 163ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 661 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1043  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 LIMIT 1 Started GET "/settings/account/661/users" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"661"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_661_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 288 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_487_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 288 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 288 Completed 200 OK in 24ms (Views: 17.5ms | ActiveRecord: 3.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:25', 'teste@teste.com', '$2a$04$wTjHCX5ojVERSqlU8JxL5u7mGDYh5vzBr.iGNHjSXZJxnpT6uaVw.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', 'b9b507cf02ab6132682ea3d6340207b5', 289, 'User', '2012-11-28 23:58:25') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account662' WHERE `accounts`.`id` = 662 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 662 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (662, 289) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5217d549_227280435d4862769@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:25', '2012-11-28 23:58:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', 'a5a9aee886cb8de51912f27f1dd9e377', 290, 'User', '2012-11-28 23:58:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account663' WHERE `accounts`.`id` = 663 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (663, 290) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a521888d7_227280435d4862864@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 290)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 663 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1047  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 LIMIT 1 Started GET "/settings/account/663/users" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"663"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_663_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 290 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_489_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 290 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 290 Completed 200 OK in 24ms (Views: 17.3ms | ActiveRecord: 3.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:25', 'teste@teste.com', '$2a$04$3MPWWSuBFBS/6T9sHo1OQeC0jtt967iA1gYD5ZDicdo0aXisbsRRe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', '1a43696e718f7aeb1a10922ca21363f5', 291, 'User', '2012-11-28 23:58:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account664' WHERE `accounts`.`id` = 664 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 664 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (664, 291) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a521a2e10_227280435d48629d6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:25', '2012-11-28 23:58:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', 'e54bb3d6b1f2d6eb190bea4760b4eab4', 292, 'User', '2012-11-28 23:58:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account665' WHERE `accounts`.`id` = 665 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (665, 292) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a521ae197_227280435d48630c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 292)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 665 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1051  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 LIMIT 1 Started GET "/settings/account/665/users" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"665"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_665_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 292 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_491_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 292 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 292 Completed 200 OK in 140ms (Views: 132.7ms | ActiveRecord: 3.5ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:25', 'teste@teste.com', '$2a$04$3DqTx2NfI8bnLICQV4NWQ.h3T0VadlkKBhJt0fxDJRTwDWeG3qgeq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', '8765603f3e4587cecca6b9858315063d', 293, 'User', '2012-11-28 23:58:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account666' WHERE `accounts`.`id` = 666 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 666 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (666, 293) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a521e4239_227280435d4863185@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:25', '2012-11-28 23:58:25', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:25', 'User', '85137ce4301403ff60efe69945b9c50f', 294, 'User', '2012-11-28 23:58:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:25', NULL, NULL, NULL, '2012-11-28 23:58:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:25', `updated_at` = '2012-11-28 23:58:25', `subdomain` = 'account667' WHERE `accounts`.`id` = 667 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (667, 294) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 21:58:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a521efec9_227280435d48632a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 294)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 667 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1055  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 LIMIT 1 Started GET "/settings/account/667/users" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"667"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_667_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_493_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 294 Completed 200 OK in 26ms (Views: 19.2ms | ActiveRecord: 3.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:26', 'teste@teste.com', '$2a$04$s/v1NlFn9RSgbr8UxCFuiujV7D/vR0LM57flbLD6fjpAqP32//InK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:26', 'User', '36f8697f9ade843c5c78e692b08f96e2', 295, 'User', '2012-11-28 23:58:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:26', NULL, NULL, NULL, '2012-11-28 23:58:26')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:26', `updated_at` = '2012-11-28 23:58:26', `subdomain` = 'account668' WHERE `accounts`.`id` = 668 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 668 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (668, 295) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:26 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a52216cce_227280435d4863350@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:26', '2012-11-28 23:58:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:26', 'User', '485126a2b783fe52a08f6da40b6a7445', 296, 'User', '2012-11-28 23:58:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:26', NULL, NULL, NULL, '2012-11-28 23:58:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:26', `updated_at` = '2012-11-28 23:58:26', `subdomain` = 'account669' WHERE `accounts`.`id` = 669 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 296) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a52222aa8_227280435d4863493@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 296)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 295) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1060 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1061  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1059  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 LIMIT 1 Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 33ms (Views: 25.0ms | ActiveRecord: 4.7ms) Started DELETE "/settings/account/669/user/295" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"669", "user_id"=>"295"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 296 AND `account_users`.`account_id` = 669 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:26', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 496\n account_id: 669\n user_id: 295\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_496_destroy', '2012-11-28 23:58:26', '2012-11-28 23:58:26')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/669/users Completed 302 Found in 17ms (ActiveRecord: 3.9ms) Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495, 496) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_495_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (495) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 495 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 296 Completed 200 OK in 150ms (Views: 141.6ms | ActiveRecord: 5.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:26', 'teste@teste.com', '$2a$04$PLJF4mlfsuzv1OlGmlPuLumdbyhq6GpUaGOVNAMH44OB2uRe2XkAa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:26', 'User', 'df56f5887233da6d29555364a4b75e58', 297, 'User', '2012-11-28 23:58:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:26', NULL, NULL, NULL, '2012-11-28 23:58:26')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:26', `updated_at` = '2012-11-28 23:58:26', `subdomain` = 'account670' WHERE `accounts`.`id` = 670 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 670 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (670, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:26 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a52270466_227280435d4863525@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:26', '2012-11-28 23:58:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:26', 'User', '6757b4ad7f42e5ae1185e7013788dd9b', 298, 'User', '2012-11-28 23:58:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:26', NULL, NULL, NULL, '2012-11-28 23:58:26')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:26', `updated_at` = '2012-11-28 23:58:26', `subdomain` = 'account671' WHERE `accounts`.`id` = 671 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 298) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5227ba3d_227280435d4863646@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 298)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1067 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1068  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1066  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 LIMIT 1 Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 34ms (Views: 25.0ms | ActiveRecord: 5.2ms) Started DELETE "/settings/account/671/user/297" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"671", "user_id"=>"297"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 298 AND `account_users`.`account_id` = 671 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:26', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 499\n account_id: 671\n user_id: 297\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_499_destroy', '2012-11-28 23:58:26', '2012-11-28 23:58:26')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/671/users Completed 302 Found in 17ms (ActiveRecord: 3.7ms) Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498, 499) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_498_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (498) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 498 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 298 Completed 200 OK in 34ms (Views: 26.9ms | ActiveRecord: 4.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:26', 'teste@teste.com', '$2a$04$vBK5nrwz8fPCy8RgOn0wcOE.V37TX4kHZvq9XGBsoBGUDCYEb.veu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:26', 'User', 'f1dcd5d77748f52ebc239dae4b6ded87', 299, 'User', '2012-11-28 23:58:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:26', NULL, NULL, NULL, '2012-11-28 23:58:26')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:26', `updated_at` = '2012-11-28 23:58:26', `subdomain` = 'account672' WHERE `accounts`.`id` = 672 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 672 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (672, 299) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:26 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a522ac7ef_227280435d4863745@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:26', '2012-11-28 23:58:26', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:26', 'User', '0305f29ff5ff8701193c5bcb0bab8fff', 300, 'User', '2012-11-28 23:58:26') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:26', NULL, NULL, NULL, '2012-11-28 23:58:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:26', `updated_at` = '2012-11-28 23:58:26', `subdomain` = 'account673' WHERE `accounts`.`id` = 673 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 300) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a522b7a54_227280435d48638ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 300)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Completed 200 OK in 122ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 299) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1074 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1075  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1073  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 LIMIT 1 Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 33ms (Views: 24.4ms | ActiveRecord: 5.0ms) Started DELETE "/settings/account/673/user/299" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"673", "user_id"=>"299"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 300 AND `account_users`.`account_id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:26', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 502\n account_id: 673\n user_id: 299\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_502_destroy', '2012-11-29 23:58:26', '2012-11-28 23:58:26')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/673/users Completed 302 Found in 17ms (ActiveRecord: 3.9ms) Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 21:58:26 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501, 502) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_501_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (501) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 501 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 300 Completed 200 OK in 32ms (Views: 23.5ms | ActiveRecord: 4.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:27', 'teste@teste.com', '$2a$04$2iGGEfCCpnRy7xe.BMediu3p7Ml7tXFtLGmKvLsymkvMF/J4zoo1S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:27', 'User', 'ceeaf764501b387b5c7e710f18622ed8', 301, 'User', '2012-11-28 23:58:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:27', NULL, NULL, NULL, '2012-11-28 23:58:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:27', `updated_at` = '2012-11-28 23:58:27', `subdomain` = 'account674' WHERE `accounts`.`id` = 674 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 674 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (674, 301) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:27 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5231101a_227280435d486393a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:27', '2012-11-28 23:58:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:27', 'User', 'beabb561ed7476631c8924d917c24b7e', 302, 'User', '2012-11-28 23:58:27') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:27', NULL, NULL, NULL, '2012-11-28 23:58:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:27', `updated_at` = '2012-11-28 23:58:27', `subdomain` = 'account675' WHERE `accounts`.`id` = 675 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 302) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5231ca6f_227280435d48640aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 302)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 301) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1081 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1082  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 675 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1080  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 37ms (Views: 28.0ms | ActiveRecord: 4.5ms) Started DELETE "/settings/account/675/user/301" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"675", "user_id"=>"301"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 302 AND `account_users`.`account_id` = 675 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 505 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:27', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 505\n account_id: 675\n user_id: 301\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_505_destroy', '2012-11-29 23:58:27', '2012-11-28 23:58:27')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/675/users Completed 302 Found in 17ms (ActiveRecord: 3.2ms) Started GET "/settings/account/675/users" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"675"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_675_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504, 505) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_504_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_505_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 675 AND `account_users`.`user_id` = 302 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (504) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (675) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 504 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 Completed 200 OK in 32ms (Views: 24.1ms | ActiveRecord: 4.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/orkut" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#passthru as HTML Parameters: {"provider"=>"orkut"} Completed 404 Not Found in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:27', '2012-11-28 23:58:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:27', 'User', '84ddc1d98fe8d748e458ac84c0523c44', 303, 'User', '2012-11-28 23:58:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:27', NULL, NULL, NULL, '2012-11-28 23:58:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:27', `updated_at` = '2012-11-28 23:58:27', `subdomain` = 'account676' WHERE `accounts`.`id` = 676 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 676 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (676, 303) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a52370c26_227280435d486419a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 303)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:27', '2012-11-28 23:58:27', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:27', 'User', '3ca8da8b8a78ac469158e8507e8d3fb5', 304, 'User', '2012-11-28 23:58:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:27', NULL, NULL, NULL, '2012-11-28 23:58:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:27', `updated_at` = '2012-11-28 23:58:27', `subdomain` = 'account677' WHERE `accounts`.`id` = 677 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 677 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (677, 304) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5238279a_227280435d48642c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 304)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (5.0ms) Completed 200 OK in 45ms (Views: 43.2ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:27', 'test@test.test', '$2a$04$Rzwn3WHdjk541XzZe1b/xOQH.bw5Cnp.OOEqlOspCtXIGR.GZVAvq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:27', 'User', 'aa803582c41e9cc34efeae6f493e52c2', 305, 'User', '2012-11-28 23:58:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:27', NULL, NULL, NULL, '2012-11-28 23:58:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:27', `updated_at` = '2012-11-28 23:58:27', `subdomain` = 'account678' WHERE `accounts`.`id` = 678 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 678 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (678, 305) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:27 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a5239e196_227280435d48643dc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 LIMIT 1 Completed 302 Found in 51ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 305)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 305 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_305_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 305 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 305 Completed 200 OK in 46ms (Views: 41.1ms | ActiveRecord: 2.6ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'facebook@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:27', 'facebook@test.test', '$2a$04$waHOMQFOcMm3eBOGYSX4XepFTETynGXFEWV70b.34s2cPVNDot.Fu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:27', 'User', '7a797cc18d606a15d3a4cdf0ce58d68a', 306, 'User', '2012-11-28 23:58:27') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:27', NULL, NULL, NULL, '2012-11-28 23:58:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:27', `updated_at` = '2012-11-28 23:58:27', `subdomain` = 'account679' WHERE `accounts`.`id` = 679 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 679 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (679, 306) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 21:58:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a523edde0_227280435d486449@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test' Redirected to http://iugusdk.dev/ Completed 302 Found in 4ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:27 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:28', '2012-11-28 23:58:28', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:28') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:28', 'User', '84aca73ba6c700df318a3b998f32001b', 307, 'User', '2012-11-28 23:58:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', NULL, NULL, NULL, '2012-11-28 23:58:28')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account680' WHERE `accounts`.`id` = 680 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 680 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (680, 307) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 307)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 31ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:28', 'test@test.test', '$2a$04$NaSfwRp0S42QdaRoZBcZm.XiQ6rAo6f409d4YN/jdcHAxs4Kux7Ym', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:28', 'User', '49b351f26c2cd45e2c44f3b7370479b7', 308, 'User', '2012-11-28 23:58:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', NULL, NULL, NULL, '2012-11-28 23:58:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account681' WHERE `accounts`.`id` = 681 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 681 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (681, 308) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:28 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a52433e6e_227280435d4864543@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 308)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_308_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 Completed 200 OK in 24ms (Views: 19.5ms | ActiveRecord: 3.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:28', '2012-11-28 23:58:28', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:28', 'User', '469a5b0368006a7d1b34a1d37483c011', 309, 'User', '2012-11-28 23:58:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', NULL, NULL, NULL, '2012-11-28 23:58:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account682' WHERE `accounts`.`id` = 682 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 682 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (682, 309) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:28 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5246db69_227280435d486469@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 309)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 161ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 309 AND `account_users`.`account_id` = 682 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (512) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (682) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 512\n account_id: 682\n user_id: 309\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_512_destroy', '2012-11-29 23:58:28', '2012-11-28 23:58:28')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', 'jabanilson', NULL, 1, '2012-11-28 23:58:28')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account683' WHERE `accounts`.`id` = 683  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (683, 309) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_309_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 Completed 200 OK in 24ms (Views: 19.5ms | ActiveRecord: 2.7ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:28', '2012-11-28 23:58:28', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:28', 'User', '346659606d4106441e093363e733f2d0', 310, 'User', '2012-11-28 23:58:28') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', NULL, NULL, NULL, '2012-11-28 23:58:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account684' WHERE `accounts`.`id` = 684 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 684 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (684, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 21:58:28 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5248c8b4_227280435d4864746@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 310)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 310 AND `account_users`.`account_id` = 684 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (514) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (684) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:28', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 514\n account_id: 684\n user_id: 310\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_514_destroy', '2012-11-29 23:58:28', '2012-11-28 23:58:28')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', 'jabanilson', NULL, 1, '2012-11-28 23:58:28')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account685' WHERE `accounts`.`id` = 685  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (685, 310) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', 'jabanilson', NULL, 1, '2012-11-28 23:58:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account686' WHERE `accounts`.`id` = 686  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (686, 310) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_310_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 Completed 200 OK in 26ms (Views: 21.2ms | ActiveRecord: 2.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:28', '2012-11-28 23:58:28', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:28', 'User', '0d738787957cda9be1a94dd28f2cf79f', 311, 'User', '2012-11-28 23:58:28') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', NULL, NULL, NULL, '2012-11-28 23:58:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account687' WHERE `accounts`.`id` = 687 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 687 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (687, 311) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:28 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a524af8e2_227280435d48648d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 311)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 117ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_311_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 311 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:28', '2012-11-28 23:58:28', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:28', 'User', 'a9f7acd2f391f8cb7ad1f49712102318', 312, 'User', '2012-11-28 23:58:28') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', NULL, NULL, NULL, '2012-11-28 23:58:28')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account688' WHERE `accounts`.`id` = 688 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 688 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (688, 312) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:28 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a524e39af_227280435d48649d1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 312)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 312 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:28', 'teste@teste.com', '$2a$04$lASQFvWt98snJW0D8dlYheIiLtRdbFOsuzJCLWjMPNFtJv1riM6Xe', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 23:58:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:28', 'User', 'e0899b43a4fce0266fbad64098c98bc1', 313, 'User', '2012-11-28 23:58:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:28', NULL, NULL, NULL, '2012-11-28 23:58:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:28', `updated_at` = '2012-11-28 23:58:28', `subdomain` = 'account689' WHERE `accounts`.`id` = 689 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 689 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (689, 313) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:28 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a524f2a47_227280435d4865014@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', 'jabanilson', NULL, 1, '2012-11-28 23:58:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account690' WHERE `accounts`.`id` = 690  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', 'jabanilson', NULL, 1, '2012-11-28 23:58:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account691' WHERE `accounts`.`id` = 691  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 691 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (691, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:29', 'r2t0B5OOz9cepGUrUvlLP3tb1_4') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5255ae0_227280435d48651d0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/22r2t0B5OOz9cepGUrUvlLP3tb1_4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 690 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 690, `invited_by` = 313 WHERE `user_invitations`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/22r2t0B5OOz9cepGUrUvlLP3tb1_4" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"22r2t0B5OOz9cepGUrUvlLP3tb1_4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 22 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 313 LIMIT 1 Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 1.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:29', '2012-11-28 23:58:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', '79797e6f52f054be7e9a3df1cc6403cc', 314, 'User', '2012-11-28 23:58:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account692' WHERE `accounts`.`id` = 692 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 692 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (692, 314) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a52516be6_227280435d4865247@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 314)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 314 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:29', 'teste@teste.com', '$2a$04$jPFOYaZLLQwrN6xy6Pmcw.d03Kopdg1yc4cjzmp0UNbq6zMWqRmNu', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', '34a9374c92200ba99992bf39415ed314', 315, 'User', '2012-11-28 23:58:29') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account693' WHERE `accounts`.`id` = 693 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 693 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (693, 315) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a52525426_227280435d486534@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', 'jabanilson', NULL, 1, '2012-11-28 23:58:29')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account694' WHERE `accounts`.`id` = 694  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', 'jabanilson', NULL, 1, '2012-11-28 23:58:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account695' WHERE `accounts`.`id` = 695  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 695 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (695, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:29', 'ZY7zdEr0F8lbirQBsY1eMse5RbE') Sent mail to teste@teste.teste (122ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5252c73a_227280435d48654d7@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/23ZY7zdEr0F8lbirQBsY1eMse5RbE  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 694 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 694, `invited_by` = 315 WHERE `user_invitations`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/23ZY7zdEr0F8lbirQBsY1eMse5RbE" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"23ZY7zdEr0F8lbirQBsY1eMse5RbE"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 23 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 315 LIMIT 1 Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 1.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:29', '2012-11-28 23:58:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', 'a21b802f691c51292c0eb2e7b97f77ad', 316, 'User', '2012-11-28 23:58:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account696' WHERE `accounts`.`id` = 696 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 696 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (696, 316) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5255910c_227280435d48655db@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 316)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 316 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:29', 'teste@teste.com', '$2a$04$mqtc.vtyJj1ZITB23cMRBOedyGqDh3k6UI4.5E7hmbudQ1U8yJoQ6', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', 'e07ffd44b03f149f88ce5810242b65d9', 317, 'User', '2012-11-28 23:58:29') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account697' WHERE `accounts`.`id` = 697 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 697 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (697, 317) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a52568946_227280435d486564c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', 'jabanilson', NULL, 1, '2012-11-28 23:58:29')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account698' WHERE `accounts`.`id` = 698  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', 'jabanilson', NULL, 1, '2012-11-28 23:58:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account699' WHERE `accounts`.`id` = 699  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 699 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (699, 'teste@teste.teste', NULL, NULL, '2012-11-28 23:58:29', 'A6AEKmS1-AkcufY7oN50_KT4vpE') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5257025a_227280435d486575d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/24A6AEKmS1-AkcufY7oN50_KT4vpE  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 698 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 698, `invited_by` = 317 WHERE `user_invitations`.`id` = 24  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/24A6AEKmS1-AkcufY7oN50_KT4vpE" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"24A6AEKmS1-AkcufY7oN50_KT4vpE"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 24 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 317 LIMIT 1 Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 1.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:29', '2012-11-28 23:58:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', 'f3d134565b23cf414bc39711e61fa7d8', 318, 'User', '2012-11-28 23:58:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account700' WHERE `accounts`.`id` = 700 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 318) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a525811e1_227280435d4865861@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 318)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 318 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:29', 'tester@roles.test', '$2a$04$I/rB6HPRfMrLdP2k0iWy1eX2yZi6iOvnI97CjgAhDsyLXYQy8apuS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', '4be59ff33e3b4830b51798e493d1ac67', 319, 'User', '2012-11-28 23:58:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account701' WHERE `accounts`.`id` = 701 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 701 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (701, 319) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a52590797_227280435d486594@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 319) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/700/invite" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"700"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 318 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 318 AND `account_users`.`account_id` = 700 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 700 AND `account_users`.`user_id` = 318 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (524) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (700) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 524 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 2.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:29', '2012-11-28 23:58:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', 'b224dadda6d6d6ed4d02c98668d3ce32', 320, 'User', '2012-11-28 23:58:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account702' WHERE `accounts`.`id` = 702 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 320) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a525c3ec8_227280435d48660d0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 320)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 173ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 320 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:29', 'tester@roles.test', '$2a$04$wYr3kzTQALDdHSUa3l2mBeFBkW80TBzyjAB99.OBIKAc2FirzT1Oy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', '359028005e14e5be56ef35c530c2e8af', 321, 'User', '2012-11-28 23:58:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account703' WHERE `accounts`.`id` = 703 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 703 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (703, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a525d3676_227280435d4866116@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 321) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/702/invite" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"702"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 320 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 320 AND `account_users`.`account_id` = 702 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 702 AND `account_users`.`user_id` = 320 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (527) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (702) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 527 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:29', '2012-11-28 23:58:29', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', '379e2be5f94323b80995b29621264109', 322, 'User', '2012-11-28 23:58:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account704' WHERE `accounts`.`id` = 704 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 322) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a525e8186_227280435d4866258@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 322)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 322 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:29', 'tester@roles.test', '$2a$04$r52SAyONjs9DEMxPPyK7m.pb7denG7OJ/p81VnbW3yN8Kdh6j0Irm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:29', 'User', 'da2f2600b34afd0975b6582143c72ee4', 323, 'User', '2012-11-28 23:58:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:29', NULL, NULL, NULL, '2012-11-28 23:58:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:29', `updated_at` = '2012-11-28 23:58:29', `subdomain` = 'account705' WHERE `accounts`.`id` = 705 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 705 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (705, 323) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a5263dda_227280435d48663f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 323) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/704/invite" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"704"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 322 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 322 AND `account_users`.`account_id` = 704 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 704 AND `account_users`.`user_id` = 322 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (530) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (704) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 530 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 11.0ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:30', '2012-11-28 23:58:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', '7d449e11db1e1cfcf9126bb622593674', 324, 'User', '2012-11-28 23:58:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account706' WHERE `accounts`.`id` = 706 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 324) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a52618a74_227280435d4866464@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 324)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 324 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:30', 'tester@roles.test', '$2a$04$l.V7bhh.0OPrgGbvtzk6EOWIE9gQ7NKxbX5AJNNFZKWuTEj1OwtZu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', 'ef1dadb2f90b8f0aa19762e25dfec41d', 325, 'User', '2012-11-28 23:58:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account707' WHERE `accounts`.`id` = 707 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 707 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (707, 325) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a52645eb4_227280435d48665cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 325) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/706/invite" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"706"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 324 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 324 AND `account_users`.`account_id` = 706 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 706 AND `account_users`.`user_id` = 324 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (533) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (706) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 533 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 24ms (Views: 13.4ms | ActiveRecord: 2.6ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:30', '2012-11-28 23:58:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', '1fae6c35eb31007f2903cdefde52c4ff', 326, 'User', '2012-11-28 23:58:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account708' WHERE `accounts`.`id` = 708 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 326) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5265c1d7_227280435d486664e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 326)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 326 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:30', 'tester@roles.test', '$2a$04$wzmYyq4xO6bedoSOrEyWz.zrV1LCXzNPYgKIlsc92H1pmZcXxDhbS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', '052a4276198787c29b5e94b279efc343', 327, 'User', '2012-11-28 23:58:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account709' WHERE `accounts`.`id` = 709 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 709 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (709, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a5266b2f7_227280435d48667ce@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 327) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/708/invite" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"708"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 326 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 326 AND `account_users`.`account_id` = 708 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 708 AND `account_users`.`user_id` = 326 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (536) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (708) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 536 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.3ms | ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:30', '2012-11-28 23:58:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', 'cf3ce0da9f8ee6552299804a215d59a7', 328, 'User', '2012-11-28 23:58:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account710' WHERE `accounts`.`id` = 710 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 328) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5267f3b3_227280435d486681b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 328)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 328 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:30', 'tester@roles.test', '$2a$04$75N5qO6bewt6OmosNbneJentCF9yu0Cgx5xWPOOPQj1IrNMndHSLe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', 'b3076df3ebf6467d45dea89b295e7b66', 329, 'User', '2012-11-28 23:58:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account711' WHERE `accounts`.`id` = 711 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 711 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (711, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a5268e8bc_227280435d48669b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/710/invite" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"710"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 328 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 328 AND `account_users`.`account_id` = 710 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 710 AND `account_users`.`user_id` = 328 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (539) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (710) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 539 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.4ms | ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:30', '2012-11-28 23:58:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', '8b7f7b1f7c8f8622f092028915402605', 330, 'User', '2012-11-28 23:58:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account712' WHERE `accounts`.`id` = 712 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 330) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a526c0371_227280435d48670dc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 330)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 170ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 330 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:30', 'tester@roles.test', '$2a$04$9dP/jRDG67DXfX7QD5.l1O7TqsocL5xvYoevJMnbnES/xwVMdMzTi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', '11c5cc59bfa047cb339692e47bb77f59', 331, 'User', '2012-11-28 23:58:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account713' WHERE `accounts`.`id` = 713 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 713 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (713, 331) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a526cf580_227280435d48671d0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 331) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.1ms | ActiveRecord: 3.0ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 712 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1156 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 330 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 330 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 330 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (542) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 542 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.2ms | ActiveRecord: 2.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:30', '2012-11-28 23:58:30', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:30', 'User', 'f57ecfce938a976e7ace388359e8a0b0', 332, 'User', '2012-11-28 23:58:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:30', NULL, NULL, NULL, '2012-11-28 23:58:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:30', `updated_at` = '2012-11-28 23:58:30', `subdomain` = 'account714' WHERE `accounts`.`id` = 714 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 332) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a526ebfa5_227280435d4867246@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 332)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 332 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:31', 'tester@roles.test', '$2a$04$A.NnCAPzheFNY39GYTJw0O.3PVfUqkGTFeMmXRzwfsydEeLxKBnLW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', 'e3d0e3442fd52c69c64b38af31c48b15', 333, 'User', '2012-11-28 23:58:31') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account715' WHERE `accounts`.`id` = 715 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 715 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (715, 333) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 21:58:31 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a5277a7a_227280435d486733c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 333) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.0ms | ActiveRecord: 3.0ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 714 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1163 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 332 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 332 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 332 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (545) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 545 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.9ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:31', '2012-11-28 23:58:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', '0388b0aae71d290b863cd9b4f0638a5d', 334, 'User', '2012-11-28 23:58:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account716' WHERE `accounts`.`id` = 716 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 334) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a52741fe9_227280435d486743a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 334)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 174ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 334 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:31', 'tester@roles.test', '$2a$04$LwOfCKjBqrClOvKfmOollOfSg.D8X3vFMXgue0MmXcqZD0Jrx2Zfy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', '7357e3045254a05d3ba87f31bc7d165d', 335, 'User', '2012-11-28 23:58:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account717' WHERE `accounts`.`id` = 717 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 717 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (717, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 21:58:31 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a52751dbc_227280435d48675d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 9.9ms | ActiveRecord: 2.8ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 716 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1170 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 334 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 334 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 334 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (548) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 548 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.0ms | ActiveRecord: 2.8ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:31', '2012-11-28 23:58:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', '3ff8a64c4c6ca3cbf5ae8c38fa30a8d3', 336, 'User', '2012-11-28 23:58:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account718' WHERE `accounts`.`id` = 718 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 336) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5276eaa6_227280435d48676e5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 336)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 336 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:31', 'tester@roles.test', '$2a$04$EndzWfiaaxKcGnvHvTG15uDMBdNGL9AC/AZ.aUrNig1k6F30.EFUW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', 'f5f8b168101a07940ccdbbbebcac246d', 337, 'User', '2012-11-28 23:58:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account719' WHERE `accounts`.`id` = 719 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 719 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (719, 337) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 21:58:31 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a5277ddd3_227280435d4867726@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 337) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.7ms | ActiveRecord: 2.7ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 718 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1177 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1178  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 336 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 336 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 336 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (551) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 551 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:31', '2012-11-28 23:58:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', 'bb8c903cc5e60f6c682762520eaa5287', 338, 'User', '2012-11-28 23:58:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account720' WHERE `accounts`.`id` = 720 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 338) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 21:58:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a527b8837_227280435d4867893@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 338)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 175ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 338 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:31', 'tester@roles.test', '$2a$04$zjbr7NddBC8liPVceHRcj.u.YC0ZZvq/AJIpfDlkEpi/mxoJ8RUcC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', 'a6a8d8e242669ca6f08b41dfb920c65a', 339, 'User', '2012-11-28 23:58:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account721' WHERE `accounts`.`id` = 721 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 721 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (721, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 21:58:31 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a527c7b34_227280435d48679a7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 10.4ms | ActiveRecord: 2.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 720 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1184 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1185  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 338 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 338 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 338 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (554) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 554 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 13.0ms | ActiveRecord: 2.7ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:31', '2012-11-28 23:58:31', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', '7e3faee4eb8c2757436e9b537699a9d3', 340, 'User', '2012-11-28 23:58:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account722' WHERE `accounts`.`id` = 722 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 340) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a527e5072_227280435d48680a1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 340)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 340 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:31', 'tester@roles.test', '$2a$04$.fJzqpf.0UJmLXnUhPPSAeoO90sEG5AL1afhwuZFVpRlfRLrk95xC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:31', 'User', '8485fde0db61b318b5466e329156a5f1', 341, 'User', '2012-11-28 23:58:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:31', NULL, NULL, NULL, '2012-11-28 23:58:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:31', `updated_at` = '2012-11-28 23:58:31', `subdomain` = 'account723' WHERE `accounts`.`id` = 723 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 723 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (723, 341) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 21:58:32 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a528125e_227280435d486818f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 341) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 10.8ms | ActiveRecord: 2.9ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 722 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1191 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1192  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 340 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 340 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 340 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (557) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 557 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 22ms (Views: 13.1ms | ActiveRecord: 3.0ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:32', '2012-11-28 23:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:32', 'User', '00403247a90157f5554ebdd0f943776d', 342, 'User', '2012-11-28 23:58:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:32', NULL, NULL, NULL, '2012-11-28 23:58:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:32', `updated_at` = '2012-11-28 23:58:32', `subdomain` = 'account724' WHERE `accounts`.`id` = 724 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 342) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (126.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:32 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5283ea4d_227280435d48682bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 342)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 179ms (ActiveRecord: 133.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 342 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:32', 'tester@roles.test', '$2a$04$wl1eIEna6x5GJY9eV8/nEurZtYa8mqSUPfkceepNTZoH7L9ntnsaG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:32', 'User', 'fe3e638046dcb32fac9512b8a2d3cf1d', 343, 'User', '2012-11-28 23:58:32') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:32', NULL, NULL, NULL, '2012-11-28 23:58:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:32', `updated_at` = '2012-11-28 23:58:32', `subdomain` = 'account725' WHERE `accounts`.`id` = 725 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 725 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (725, 343) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 21:58:32 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a5284dbd6_227280435d4868382@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 343) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.4ms | ActiveRecord: 2.8ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 724 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1198 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 342 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 342 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 342 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (560) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 560 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 23ms (Views: 14.2ms | ActiveRecord: 2.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:32', '2012-11-28 23:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:32', 'User', '63d80d4beb90224a574c2600a30fa6cb', 344, 'User', '2012-11-28 23:58:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:32', NULL, NULL, NULL, '2012-11-28 23:58:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:32', `updated_at` = '2012-11-28 23:58:32', `subdomain` = 'account726' WHERE `accounts`.`id` = 726 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 344) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 21:58:32 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5286b994_227280435d4868416@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 344)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 344 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:32', 'tester@roles.test', '$2a$04$0toBEZClkVHoWXi1uhLRsOk1dBv4c4s3RL9T1MC8f2GE9qV65c8hO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:32') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:32', 'User', '2a3b43b93d09f6c78668d3e0595f2ea0', 345, 'User', '2012-11-28 23:58:32') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:32', NULL, NULL, NULL, '2012-11-28 23:58:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:32', `updated_at` = '2012-11-28 23:58:32', `subdomain` = 'account727' WHERE `accounts`.`id` = 727 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 727 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (727, 345) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 21:58:32 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a5287ba4d_227280435d48685c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 345) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.9ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 726 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1205 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1206  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/726/invite" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"726"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 344 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 344 AND `account_users`.`account_id` = 726 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 726 AND `account_users`.`user_id` = 344 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (563) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (726) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 563 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 23ms (Views: 14.7ms | ActiveRecord: 2.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:32', '2012-11-28 23:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:32') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:32', 'User', 'a72d116793151a23b6bc6a5295e3a785', 346, 'User', '2012-11-28 23:58:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:32', NULL, NULL, NULL, '2012-11-28 23:58:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:32', `updated_at` = '2012-11-28 23:58:32', `subdomain` = 'account728' WHERE `accounts`.`id` = 728 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 728 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (728, 346) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:32 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a528b90ec_227280435d48686e7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 346)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 181ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_346_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 2.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:32', '2012-11-28 23:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:32', 'User', '8574b1bed6bcd71dbb2c068a954fc974', 347, 'User', '2012-11-28 23:58:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:32', NULL, NULL, NULL, '2012-11-28 23:58:32')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:32', `updated_at` = '2012-11-28 23:58:32', `subdomain` = 'account729' WHERE `accounts`.`id` = 729 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 729 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (729, 347) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:32 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a528d054e_227280435d4868790@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 347)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 25ms (Views: 21.0ms | ActiveRecord: 2.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:32 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:32', '2012-11-28 23:58:32', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:33', 'User', 'ebdf8bd4dfacc163c03297e66678483e', 348, 'User', '2012-11-28 23:58:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:33', NULL, NULL, NULL, '2012-11-28 23:58:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:33', `updated_at` = '2012-11-28 23:58:33', `subdomain` = 'account730' WHERE `accounts`.`id` = 730 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 730 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (730, 348) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:33 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a529177f3_227280435d48688e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 348)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 170ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:33', '2012-11-28 23:58:33', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:33', 'User', 'b1b4b8f142996fffc59717eab091e28e', 349, 'User', '2012-11-28 23:58:33') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:33', NULL, NULL, NULL, '2012-11-28 23:58:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:33', `updated_at` = '2012-11-28 23:58:33', `subdomain` = 'account731' WHERE `accounts`.`id` = 731 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 731 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (731, 349) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:33 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a52934eb0_227280435d4868920@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 349)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.3ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 349\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:33.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:33.000000000Z\n updated_at: 2012-11-28 23:58:33.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_349_destroy', '2012-11-28 23:58:33', '2012-11-28 23:58:33')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 144ms (Views: 140.2ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:33', '2012-11-28 23:58:33', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:33', 'User', 'c31eff0d86a93e617e0514f57f32368c', 350, 'User', '2012-11-28 23:58:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:33', NULL, NULL, NULL, '2012-11-28 23:58:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:33', `updated_at` = '2012-11-28 23:58:33', `subdomain` = 'account732' WHERE `accounts`.`id` = 732 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 732 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (732, 350) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:33 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5297353a_227280435d486905e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 350)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.5ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 350\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:33.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:33.000000000Z\n updated_at: 2012-11-28 23:58:33.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_350_destroy', '2012-11-28 23:58:33', '2012-11-28 23:58:33')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:33', '2012-11-28 23:58:33', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:33', 'User', '79017b162ff07cc0cde28505ee2c91ce', 351, 'User', '2012-11-28 23:58:33') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:33', NULL, NULL, NULL, '2012-11-28 23:58:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:33', `updated_at` = '2012-11-28 23:58:33', `subdomain` = 'account733' WHERE `accounts`.`id` = 733 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 733 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (733, 351) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:33 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a529b0812_227280435d4869178@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 351)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 168ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 25ms (Views: 21.2ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:33', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 351\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:33.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:33.000000000Z\n updated_at: 2012-11-28 23:58:33.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_351_destroy', '2012-11-28 23:58:33', '2012-11-28 23:58:33')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-28 23:58:33', `updated_at` = '2012-11-28 23:58:33' WHERE `delayed_jobs`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 19.7ms | ActiveRecord: 2.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:33', '2012-11-28 23:58:33', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:33') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:33', 'User', 'e29ce74a53d6be3f3d6ca5fd8d885b0f', 352, 'User', '2012-11-28 23:58:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:33', NULL, NULL, NULL, '2012-11-28 23:58:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:33', `updated_at` = '2012-11-28 23:58:33', `subdomain` = 'account734' WHERE `accounts`.`id` = 734 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 734 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (734, 352) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 21:58:33 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a529d10a2_227280435d48692ef@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 352)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:33 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 Completed 200 OK in 19ms (Views: 15.7ms | ActiveRecord: 1.4ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:34', '2012-11-28 23:58:34', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:34') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:34', 'User', '412042237e33415aa8413d6ef846c30b', 353, 'User', '2012-11-28 23:58:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:34', NULL, NULL, NULL, '2012-11-28 23:58:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:34', `updated_at` = '2012-11-28 23:58:34', `subdomain` = 'account735' WHERE `accounts`.`id` = 735 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 735 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (735, 353) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 21:58:34 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a52a17003_227280435d4869322@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 353)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_353_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 353 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.6ms | ActiveRecord: 2.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 34ms (Views: 33.1ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:58:34', '2012-11-28 23:58:34', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-28 23:58:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:34', 'User', '82ffcc8a40235a126bfae30198dd9d98', 354, 'User', '2012-11-28 23:58:34') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:34', NULL, NULL, NULL, '2012-11-28 23:58:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:34', `updated_at` = '2012-11-28 23:58:34', `subdomain` = 'account736' WHERE `accounts`.`id` = 736 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 736 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (736, 354) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 574) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 574 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (574, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 574) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 574 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (574, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-28 23:58:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 354\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 23:58:34.211604000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-28 23:58:34.212409000Z\n updated_at: 2012-11-28 23:58:34.212409000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_354', '2012-12-05 23:58:34', '2012-11-28 23:58:34')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-11-28 23:58:34', `updated_at` = '2012-11-28 23:58:34' WHERE `users`.`id` = 354  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 354 AND (accounts.id = '735') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 354 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 33ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 354 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 21:58:34 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 354 LIMIT 1 Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.5ms)  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'good@email.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-28 23:57:52', '2012-11-28 23:58:34', 'good@email.com', '$2a$04$tvgwveVDKc/eX/k1PJhs1eLWCtw9aUPopXN2u6gQOHDv7cyJ0pxue', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-28 23:58:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 355 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-28 23:58:34', 'User', '07dfd8ddd6dba5287ad4dc4c46658067', 355, 'User', '2012-11-28 23:58:34') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 355 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-28 23:58:34', NULL, NULL, NULL, '2012-11-28 23:58:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-28 23:58:34', `updated_at` = '2012-11-28 23:58:34', `subdomain` = 'account737' WHERE `accounts`.`id` = 737 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 737 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (737, 355) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 575) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (575, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 575) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (575, 'admin') Sent mail to good@email.com (6ms) Date: Wed, 28 Nov 2012 21:58:34 -0200 From: Iugu Reply-To: Iugu To: good@email.com Message-ID: <50b6a52a4dc5c_227280435d48694a6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 355  (5.8ms) ROLLBACK  (0.1ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notanemail' LIMIT 1  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (27.8ms) TRUNCATE TABLE `account_roles`;  (1.4ms) TRUNCATE TABLE `account_users`;  (1.1ms) TRUNCATE TABLE `accounts`;  (1.3ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:33', 'teste@teste.com', '$2a$04$jO7SOjfqhCZBXBe5w.ehXeoc6S.WhW5.2p/x.8Pvk2fu4DDqlVVRy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:33') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:33', NULL, NULL, NULL, '2012-11-29 00:01:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:33', `updated_at` = '2012-11-29 00:01:33', `subdomain` = 'account1' WHERE `accounts`.`id` = 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:33', 'jabanilson', NULL, 1, '2012-11-29 00:01:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:33', `updated_at` = '2012-11-29 00:01:33', `subdomain` = 'account2' WHERE `accounts`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:33', 'jabanilson', NULL, 1, '2012-11-29 00:01:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:33', `updated_at` = '2012-11-29 00:01:33', `subdomain` = 'account3' WHERE `accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (3, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 2 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 2 WHERE `account_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.7ms) Completed 200 OK in 133ms (Views: 129.8ms | ActiveRecord: 0.5ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$7Rrpa.tys0JZO8JeZ5zSguvWIrknDEIqmXFNYlMm.xLMUHbEtHeDK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account4' WHERE `accounts`.`id` = 4 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (4, 2) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 3) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 3 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (3, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account5' WHERE `accounts`.`id` = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account6' WHERE `accounts`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (6, 2) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 4) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 4 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (4, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 5 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 5 WHERE `account_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 2 AND `accounts`.`id` = 4 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 4 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 14ms (Views: 2.8ms | ActiveRecord: 4.2ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$p2M4Yn9eCO5wCh64om/stO0DlJyHa9/WtdNYPmCbrfXOxvXNa.e0u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account7' WHERE `accounts`.`id` = 7 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 7 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (7, 3) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 5) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 5 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (5, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account8' WHERE `accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account9' WHERE `accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (9, 3) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 6) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 6 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (6, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 8 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 8 WHERE `account_users`.`id` = 6  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 3 LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 3 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 3 AND `account_users`.`account_id` = 7 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (5) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (7) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 7 AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 132ms (Views: 1.8ms | ActiveRecord: 2.1ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$UeRF2.QbEjSzDgMg2k31XeZxCwDgYyzkWcgKmwQoqUefdvkLVERwG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account10' WHERE `accounts`.`id` = 10 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 10 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (10, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 7) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 7 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (7, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account11' WHERE `accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account12' WHERE `accounts`.`id` = 12  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (12, 4) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 8) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 8 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (8, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 11 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 11 WHERE `account_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"10"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 4 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 4 AND `account_users`.`account_id` = 10 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 7 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 4 AND `accounts`.`id` = 10 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 10\n created_at: 2012-11-29 00:01:34.000000000Z\n updated_at: 2012-11-29 00:01:34.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account10\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_10_destroy', '2012-11-29 00:01:34', '2012-11-29 00:01:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_10_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 35ms (ActiveRecord: 5.8ms)  (1.7ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$ZNDF9v7XY2luEL1gLagXeeJsapS.0L5IiZVUXH2uPQ/eXGxlYdTEi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account13' WHERE `accounts`.`id` = 13 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (13, 5) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 9) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 9 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (9, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account14' WHERE `accounts`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account15' WHERE `accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (15, 5) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 10) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 10 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (10, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 14 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 14 WHERE `account_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 5 AND `account_users`.`account_id` = 13 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 9 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 AND `accounts`.`id` = 13 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 13\n created_at: 2012-11-29 00:01:34.000000000Z\n updated_at: 2012-11-29 00:01:34.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account13\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_13_destroy', '2012-11-29 00:01:34', '2012-11-29 00:01:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 12ms (ActiveRecord: 2.7ms) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 5 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$6Al2LHCG3SNryWuMWhu9dO/I.3bZTTdGTaUM3B9cLhSXIAkpdJEGG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account16' WHERE `accounts`.`id` = 16 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (16, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 11) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 11 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (11, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account17' WHERE `accounts`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account18' WHERE `accounts`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (18, 6) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 12) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 12 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (12, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 17 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 17 WHERE `account_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 6 LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"16"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 6 AND `account_users`.`account_id` = 16 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 11 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$VACU8.ImL8avdjbkL9pm3O4GJR2UA9uTvcz9GWVYIG6gJ6DkSD1oC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account19' WHERE `accounts`.`id` = 19 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 19 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (19, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 13) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (13, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account20' WHERE `accounts`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account21' WHERE `accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (21, 7) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 14) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (14, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 20 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 20 WHERE `account_users`.`id` = 14  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 19\n created_at: 2012-11-29 00:01:34.000000000Z\n updated_at: 2012-11-29 00:01:34.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account19\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_19_destroy', '2012-11-29 00:01:34', '2012-11-29 00:01:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"19"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 7 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 7 AND `account_users`.`account_id` = 19 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 13 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 7 AND `accounts`.`id` = 19 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$nyFynsqsu/tNXJJfcxdpF.4O80cVdEz1SxTvO4ntcPS4XMYlZ1z5K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account22' WHERE `accounts`.`id` = 22 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (22, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 15) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 15 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (15, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account23' WHERE `accounts`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account24' WHERE `accounts`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (24, 8) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 16) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 16 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (16, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 23 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 23 WHERE `account_users`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:34', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 22\n created_at: 2012-11-29 00:01:34.000000000Z\n updated_at: 2012-11-29 00:01:34.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account22\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_22_destroy', '2012-11-29 00:01:34', '2012-11-29 00:01:34')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"22"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 8 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 8 AND `account_users`.`account_id` = 22 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 15 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 AND `accounts`.`id` = 22 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 8 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$EIKbDSzvnRufAQJ8c5gvGucrWZ4vPVhCckxZ2VZk4bYL2nl0yzxde', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account25' WHERE `accounts`.`id` = 25 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 25 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (25, 9) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 17) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 17 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (17, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account26' WHERE `accounts`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account27' WHERE `accounts`.`id` = 27  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (27, 9) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 18) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 18 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (18, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 26 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 26 WHERE `account_users`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"25"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 9 AND (accounts.id = '25') LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:34', '2012-11-29 00:01:34', 'teste@teste.com', '$2a$04$fFcJCiEGMixW1KzYOdF5v.xLUtAPYgVWPhcjuTU.nrKWZ51lnJZ9O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:34') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', NULL, NULL, NULL, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account28' WHERE `accounts`.`id` = 28 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (28, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 19) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 19 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (19, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account29' WHERE `accounts`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:34', 'jabanilson', NULL, 1, '2012-11-29 00:01:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:34', `updated_at` = '2012-11-29 00:01:34', `subdomain` = 'account30' WHERE `accounts`.`id` = 30  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (30, 10) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 20) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 20 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (20, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 29 WHERE `account_users`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"28"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 10 AND `account_users`.`account_id` = 28 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 19 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account28' AND `accounts`.`id` != 28) LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-29 00:01:35' WHERE `accounts`.`id` = 28  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/28 Completed 302 Found in 12ms (ActiveRecord: 2.5ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 10 LIMIT 1  (7.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$GsOrNQfXFubt2hrPTIGKw.g7BG.knUAP6EW4Jm1l/shg.6VXJSlhi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account31' WHERE `accounts`.`id` = 31 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (31, 11) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 21) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 21 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (21, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account32' WHERE `accounts`.`id` = 32  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account33' WHERE `accounts`.`id` = 33  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (33, 11) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 22) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 22 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (22, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 32 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 32 WHERE `account_users`.`id` = 22  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 11 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"31"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 11 AND `account_users`.`account_id` = 31 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 21 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 31 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account31' AND `accounts`.`id` != 31) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-29 00:01:35' WHERE `accounts`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/31 Completed 302 Found in 11ms (ActiveRecord: 2.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$NfP8VUSAsKcUHxGTWnXNPuzh4MjMRZxKO.b50AKBzP204G6fEhOn2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account34' WHERE `accounts`.`id` = 34 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (34, 12) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 23) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 23 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (23, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account35' WHERE `accounts`.`id` = 35  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account36' WHERE `accounts`.`id` = 36  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (36, 12) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 24) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 24 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (24, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 35 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 35 WHERE `account_users`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"34"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 12 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 12 AND `account_users`.`account_id` = 34 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 23 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account34' AND `accounts`.`id` != 34) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-11-29 00:01:35' WHERE `accounts`.`id` = 34  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/34 Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 12 LIMIT 1  (11.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$hTFAsmeJumvvc8rvnUVyCO0fYkxTXCrsnThmiFlhh0AT23B7NsXx2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account37' WHERE `accounts`.`id` = 37 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 37 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (37, 13) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 25) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 25 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (25, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account38' WHERE `accounts`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account39' WHERE `accounts`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (39, 13) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 26) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 26 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (26, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 38 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 38 WHERE `account_users`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 13 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account40' WHERE `accounts`.`id` = 40  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 13 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (40, 13) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 27) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 27 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (27, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 19ms (ActiveRecord: 3.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$UjXS/ooX0YTt.4kxxRW.6OqE99t.IwZsJwX1lxYUai820RcHCdB.S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account41' WHERE `accounts`.`id` = 41 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 41 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (41, 14) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 28) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 28 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (28, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account42' WHERE `accounts`.`id` = 42  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account43' WHERE `accounts`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (43, 14) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 29) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 29 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (29, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 42 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 42 WHERE `account_users`.`id` = 29  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account44' WHERE `accounts`.`id` = 44  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (44, 14) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 30) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 30 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (30, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 2.9ms)  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14 Processing by Iugu::AccountController#create as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account45' WHERE `accounts`.`id` = 45  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (45, 14) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 31) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 31 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (31, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 15ms (ActiveRecord: 3.9ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 14  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$CBM1QSPeSF31Gw1jp7g3v.BMM6IAh.BS3a3xKLB6tldCjbxZuO8m2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account46' WHERE `accounts`.`id` = 46 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (46, 15) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 32) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 32 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (32, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account47' WHERE `accounts`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account48' WHERE `accounts`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (48, 15) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 33) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 33 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (33, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 47 WHERE `account_users`.`id` = 33  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 15 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_47_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 15 AND `account_users`.`account_id` = 47 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 33 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 15 AND `accounts`.`id` = 47 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 47 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 47 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:35', 'token x', '9dd93c91a696d73171189807d3d3b498', 47, 'Account', '2012-11-29 00:01:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/47 Completed 302 Found in 40ms (ActiveRecord: 6.5ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$Wav0zn6HGIM/cKDP/6YX8.NASZM9ia0mQ8hvAvCMFlMFy9llxBhuq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account49' WHERE `accounts`.`id` = 49 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (49, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 34) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 34 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (34, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account50' WHERE `accounts`.`id` = 50  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account51' WHERE `accounts`.`id` = 51  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (51, 16) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 35) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 35 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (35, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 50 WHERE `account_users`.`id` = 35  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"50"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 16 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_50_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 16 AND `account_users`.`account_id` = 50 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 35 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 16 AND `accounts`.`id` = 50 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 50 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:35', 'token x', '1882b1447d4d69c214aebab3e8444468', 50, 'Account', '2012-11-29 00:01:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/50 Completed 302 Found in 15ms (ActiveRecord: 2.9ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$gP3q0pdz1uz9RObo3bYrIOJDUKM3G8wvcgrhaBE8AAgGSLGioc.Ke', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account52' WHERE `accounts`.`id` = 52 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (52, 17) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 36) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 36 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (36, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account53' WHERE `accounts`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account54' WHERE `accounts`.`id` = 54  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (54, 17) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 37) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 37 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (37, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 53 WHERE `account_users`.`id` = 37  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 17 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 17 AND `accounts`.`id` = 53 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = 53 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:35', 'token x', '56e7587368dfe2f8dcd7485c3967b4a0', 53, 'Account', '2012-11-29 00:01:35')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/53 Completed 302 Found in 15ms (ActiveRecord: 3.6ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"53"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 53 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_53_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 17 AND `account_users`.`account_id` = 53 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 37 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 6ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$Pf2LQjdFwtIJxTlUKVwZs.hAMqecpb8bId6plrdLXab0NMgVrWcAu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account55' WHERE `accounts`.`id` = 55 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (55, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 38) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 38 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (38, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account56' WHERE `accounts`.`id` = 56  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account57' WHERE `accounts`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (57, 18) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 39) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 39 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (39, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 56 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 56 WHERE `account_users`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 55 AND `account_domains`.`url` = 'controller.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (55, NULL, 'controller.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"55"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 18 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 55 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_55_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 18 AND `account_users`.`account_id` = 55 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 38 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 18 AND `accounts`.`id` = 55 LIMIT 1 Completed 200 OK in 16ms (Views: 3.7ms | ActiveRecord: 2.4ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$askGYBtQfAPK/3AVpMoHe.par9ixxz83cfs03zDkj8.RxSiCdOxJC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account58' WHERE `accounts`.`id` = 58 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (58, 19) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 40) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 40 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (40, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account59' WHERE `accounts`.`id` = 59  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account60' WHERE `accounts`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (60, 19) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 41) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 41 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (41, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 59 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 59 WHERE `account_users`.`id` = 41  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 19 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 58 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_58_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 19 AND `account_users`.`account_id` = 58 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 40 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 19 AND `accounts`.`id` = 58 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 58 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (58, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/58/domain/2 Completed 302 Found in 17ms (ActiveRecord: 3.3ms) AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$E9MTeOEiGtxdXojEkksbjuzEeefvdrv1UZZdmdSPGXldykFztshna', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account61' WHERE `accounts`.`id` = 61 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (61, 20) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 42) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 42 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (42, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account62' WHERE `accounts`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account63' WHERE `accounts`.`id` = 63  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (63, 20) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 43) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 43 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (43, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 62 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 62 WHERE `account_users`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 20 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 61 AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (61, NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/61/domain/3 Completed 302 Found in 15ms (ActiveRecord: 3.0ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"61"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 61 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 20 AND `account_users`.`account_id` = 61 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 42 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 20 AND `accounts`.`id` = 61 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.9ms | ActiveRecord: 2.7ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$D41dYEa7dZzN.pdYRxMOZed2r9YptI1d3coGwB6Zdq86Ad9JkbQmy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account64' WHERE `accounts`.`id` = 64 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (64, 21) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 44) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 44 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (44, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account65' WHERE `accounts`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', 'jabanilson', NULL, 1, '2012-11-29 00:01:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account66' WHERE `accounts`.`id` = 66  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (66, 21) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 45) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 45 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (45, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 65 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 65 WHERE `account_users`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (64, NULL, 'destroy.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"64", "domain_id"=>"4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 21 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 64 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_64_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 21 AND `account_users`.`account_id` = 64 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 44 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 21 AND `accounts`.`id` = 64 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 4  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`primary` = 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 64 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/64/domains Completed 302 Found in 16ms (ActiveRecord: 4.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:35', '2012-11-29 00:01:35', 'teste@teste.com', '$2a$04$HJBstDu4yUaTFw8wGgJljeho1XWa/jy.UyAty54nImUNCu4X9aL7K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:35') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:35', NULL, NULL, NULL, '2012-11-29 00:01:35')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:35', `updated_at` = '2012-11-29 00:01:35', `subdomain` = 'account67' WHERE `accounts`.`id` = 67 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (67, 22) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 46) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 46 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (46, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account68' WHERE `accounts`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account69' WHERE `accounts`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (69, 22) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 47) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 47 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (47, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 68 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 68 WHERE `account_users`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (67, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"67", "domain_id"=>"5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 22 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 67 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_67_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 22 AND `account_users`.`account_id` = 67 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 46 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 22 AND `accounts`.`id` = 67 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 5  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 67 AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/67/domains Completed 302 Found in 15ms (ActiveRecord: 3.6ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:36', '2012-11-29 00:01:36', 'teste@teste.com', '$2a$04$gGRRbxSs1BAgpB58ZZElGeOZOBdXR3QGb99b9Ma1Pz9rBUQTyEXUq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:36') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', NULL, NULL, NULL, '2012-11-29 00:01:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account70' WHERE `accounts`.`id` = 70 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (70, 23) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 48) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 48 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (48, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account71' WHERE `accounts`.`id` = 71  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account72' WHERE `accounts`.`id` = 72  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (72, 23) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 49) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 49 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (49, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 71 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 71 WHERE `account_users`.`id` = 49  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (70, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"70", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 23 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 70 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_70_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 23 AND `account_users`.`account_id` = 70 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 48 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 23 AND `accounts`.`id` = 70 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 70 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/70/domains Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:36', '2012-11-29 00:01:36', 'teste@teste.com', '$2a$04$jkhudZBA95QhtDOsjFLEf.6aoJxw.L9skSp2PBbwkoLTL7iA/rPFq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:36') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', NULL, NULL, NULL, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account73' WHERE `accounts`.`id` = 73 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (73, 24) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 50) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 50 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (50, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account74' WHERE `accounts`.`id` = 74  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account75' WHERE `accounts`.`id` = 75  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (75, 24) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 51) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 51 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (51, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 74 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 74 WHERE `account_users`.`id` = 51  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`url` = 'destroy.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (73, NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"73", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 24 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 73 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_73_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 24 AND `account_users`.`account_id` = 73 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 50 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 24 AND `accounts`.`id` = 73 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 73 AND `account_domains`.`id` = 1273816283761238716 LIMIT 1 Redirected to http://test.host/settings/account/73/domains Completed 302 Found in 12ms (ActiveRecord: 2.2ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:36', '2012-11-29 00:01:36', 'teste@teste.com', '$2a$04$YjiCEehEaJ37Ok67gTtFzuSii3c531DTDZtjELu2rsJep.9o3UtvG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', NULL, NULL, NULL, '2012-11-29 00:01:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account76' WHERE `accounts`.`id` = 76 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (76, 25) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 52) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 52 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (52, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account77' WHERE `accounts`.`id` = 77  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account78' WHERE `accounts`.`id` = 78  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (78, 25) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 53) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 53 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (53, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 77 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 77 WHERE `account_users`.`id` = 53  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (76, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"76", "domain_id"=>"8"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 25 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 76 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_76_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 25 AND `accounts`.`id` = 76 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 76 AND `account_domains`.`id` = 8 LIMIT 1 Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 1.4ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:36', '2012-11-29 00:01:36', 'teste@teste.com', '$2a$04$i7nhVKgZ7BqgG6Ji/9.qz.dMJ6X.qcQ0ZiIwwizPZkrFkjMV.8i4y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:36') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', NULL, NULL, NULL, '2012-11-29 00:01:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account79' WHERE `accounts`.`id` = 79 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (79, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 54) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 54 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (54, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account80' WHERE `accounts`.`id` = 80  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account81' WHERE `accounts`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (81, 26) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 55) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 55 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (55, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 80 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 80 WHERE `account_users`.`id` = 55  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (79, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"79", "domain_id"=>"1209371923812238"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 26 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 79 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_79_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 26 AND `accounts`.`id` = 79 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 79 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/79/domains Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:36', '2012-11-29 00:01:36', 'teste@teste.com', '$2a$04$5sX71Nm1n4sIgOVvC7QE2erpKAf4.7m/Fu6afnHv8pnjU1I.13Szq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:36') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', NULL, NULL, NULL, '2012-11-29 00:01:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account82' WHERE `accounts`.`id` = 82 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (82, 27) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 56) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 56 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (56, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account83' WHERE `accounts`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account84' WHERE `accounts`.`id` = 84  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (84, 27) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 57) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 57 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (57, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 83 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 83 WHERE `account_users`.`id` = 57  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (82, NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"82", "domain_id"=>"1209371923812238"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 27 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 82 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_82_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 27 AND `accounts`.`id` = 82 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 82 AND `account_domains`.`id` = 1209371923812238 LIMIT 1 Redirected to http://test.host/settings/account/82/domains Completed 302 Found in 7ms (ActiveRecord: 1.4ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:36', '2012-11-29 00:01:36', 'teste@teste.com', '$2a$04$8Hbn0n0sZol4RbL/zuNA5efmehAe9.ZOz92YDVmrGGxbIlL3xOOmW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:36') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', NULL, NULL, NULL, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account85' WHERE `accounts`.`id` = 85 Account Load (2.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (85, 28) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 58) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 58 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (58, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account86' WHERE `accounts`.`id` = 86  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account87' WHERE `accounts`.`id` = 87  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (87, 28) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 59) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 59 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (59, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 86 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 86 WHERE `account_users`.`id` = 59  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (85, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"85", "domain_id"=>"11"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 28 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 85 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_85_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 28 AND `account_users`.`account_id` = 85 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 58 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 28 AND `accounts`.`id` = 85 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 85 AND `account_domains`.`id` = 11 LIMIT 1 Redirected to http://test.host/settings/account/85/domains Completed 302 Found in 11ms (ActiveRecord: 2.3ms)  (262.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:36', '2012-11-29 00:01:36', 'teste@teste.com', '$2a$04$OXWDJn..lVuUYseOghCWi.Znn9nabWP.81wQzUOUTVfHWnD1lZfZ6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:36') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', NULL, NULL, NULL, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account88' WHERE `accounts`.`id` = 88 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (88, 29) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 60) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 60 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (60, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account89' WHERE `accounts`.`id` = 89  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:36', 'jabanilson', NULL, 1, '2012-11-29 00:01:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:36', `updated_at` = '2012-11-29 00:01:36', `subdomain` = 'account90' WHERE `accounts`.`id` = 90  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (90, 29) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 61) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 61 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (61, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 89 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 89 WHERE `account_users`.`id` = 61  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (88, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"88", "domain_id"=>"12"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 29 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 88 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_88_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 29 AND `account_users`.`account_id` = 88 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 60 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 29 AND `accounts`.`id` = 88 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 88 AND `account_domains`.`id` = 12 LIMIT 1 Redirected to http://test.host/settings/account/88/domains Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (141.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:37', '2012-11-29 00:01:37', 'teste@teste.com', '$2a$04$/dO6glpTAeNK1ehGwmQpzOwEgJF.G25E3NxVMt9B52fExdi9CmSbu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', NULL, NULL, NULL, '2012-11-29 00:01:37')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account91' WHERE `accounts`.`id` = 91 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (91, 30) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 62) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 62 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (62, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', 'jabanilson', NULL, 1, '2012-11-29 00:01:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account92' WHERE `accounts`.`id` = 92  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', 'jabanilson', NULL, 1, '2012-11-29 00:01:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account93' WHERE `accounts`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (93, 30) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 63) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 63 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (63, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 92 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 92 WHERE `account_users`.`id` = 63  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (91, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"91", "domain_id"=>"13"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 30 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_91_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 30 AND `account_users`.`account_id` = 91 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 62 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 30 AND `accounts`.`id` = 91 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 91 AND `account_domains`.`id` = 13 LIMIT 1 Redirected to http://test.host/settings/account/91/domain/13 Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (162.6ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:37', '2012-11-29 00:01:37', 'teste@teste.com', '$2a$04$3DnXZqJm4U65ToSzjgc8weCAInT3DQOfU/omIUHLVdW8JD4sID7Wq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', NULL, NULL, NULL, '2012-11-29 00:01:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account94' WHERE `accounts`.`id` = 94 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (94, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 64) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 64 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (64, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', 'jabanilson', NULL, 1, '2012-11-29 00:01:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account95' WHERE `accounts`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', 'jabanilson', NULL, 1, '2012-11-29 00:01:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account96' WHERE `accounts`.`id` = 96  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (96, 31) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 65) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 65 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (65, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 95 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 95 WHERE `account_users`.`id` = 65  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (94, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"94", "domain_id"=>"14"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 31 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 94 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 31 AND `account_users`.`account_id` = 94 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 64 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 31 AND `accounts`.`id` = 94 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 94 AND `account_domains`.`id` = 14 LIMIT 1 Redirected to http://test.host/settings/account/94/domain/14 Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (210.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:37', '2012-11-29 00:01:37', 'teste@teste.com', '$2a$04$s1c1hAYTX.RO/WwVdYisUewrHq3LV.hRkFMcnmeaMZvXXINltjCcW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', NULL, NULL, NULL, '2012-11-29 00:01:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account97' WHERE `accounts`.`id` = 97 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (97, 32) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 66) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 66 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (66, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', 'jabanilson', NULL, 1, '2012-11-29 00:01:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account98' WHERE `accounts`.`id` = 98  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', 'jabanilson', NULL, 1, '2012-11-29 00:01:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account99' WHERE `accounts`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (99, 32) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 67) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 67 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (67, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 98 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 98 WHERE `account_users`.`id` = 67  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (97, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"97", "domain_id"=>"1231241241231241231234"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 32 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 97 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_97_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 32 AND `account_users`.`account_id` = 97 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 66 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 32 AND `accounts`.`id` = 97 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 97 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/97/domains Completed 302 Found in 12ms (ActiveRecord: 2.5ms)  (131.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:37', '2012-11-29 00:01:37', 'teste@teste.com', '$2a$04$IWiAumin070iMlbxMKZ4dOUQlZWFlap4uo73Ru4g/V/oMIXk7IhdG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:37') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', NULL, NULL, NULL, '2012-11-29 00:01:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account100' WHERE `accounts`.`id` = 100 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (100, 33) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 68) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 68 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (68, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', 'jabanilson', NULL, 1, '2012-11-29 00:01:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account101' WHERE `accounts`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:37', 'jabanilson', NULL, 1, '2012-11-29 00:01:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:37', `updated_at` = '2012-11-29 00:01:37', `subdomain` = 'account102' WHERE `accounts`.`id` = 102  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (102, 33) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 69) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 69 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (69, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 101 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 101 WHERE `account_users`.`id` = 69  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (100, NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"100", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 33 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 100 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_100_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 33 AND `account_users`.`account_id` = 100 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 68 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 33 AND `accounts`.`id` = 100 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 100 AND `account_domains`.`id` = 1231241241231241231234 LIMIT 1 Redirected to http://test.host/settings/account/100/domains Completed 302 Found in 12ms (ActiveRecord: 2.5ms)  (319.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:38', '2012-11-29 00:01:38', 'teste@teste.com', '$2a$04$xsv59wQmi9M2PWf.jnzy5.RV0BJa.P.WtaOXjf6AyWAyEmf1efH4a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', NULL, NULL, NULL, '2012-11-29 00:01:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account103' WHERE `accounts`.`id` = 103 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (103, 34) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 70) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 70 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (70, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', 'jabanilson', NULL, 1, '2012-11-29 00:01:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account104' WHERE `accounts`.`id` = 104  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', 'jabanilson', NULL, 1, '2012-11-29 00:01:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account105' WHERE `accounts`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (105, 34) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 71) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 71 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (71, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 104 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 104 WHERE `account_users`.`id` = 71  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (103, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"103", "domain_id"=>"17"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 34 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 103 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_103_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 34 AND `account_users`.`account_id` = 103 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 70 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 34 AND `accounts`.`id` = 103 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 103 AND `account_domains`.`id` = 17 LIMIT 1 Redirected to http://test.host/settings/account/103/domains Completed 302 Found in 12ms (ActiveRecord: 2.7ms)  (76.6ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:38', '2012-11-29 00:01:38', 'teste@teste.com', '$2a$04$A6o/iTgxKMpV1b1ve9fbKOWK.kXCC5u0Y6wJ/VRaDDZgfpNictUKK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:38') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', NULL, NULL, NULL, '2012-11-29 00:01:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account106' WHERE `accounts`.`id` = 106 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (106, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 72) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 72 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (72, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', 'jabanilson', NULL, 1, '2012-11-29 00:01:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account107' WHERE `accounts`.`id` = 107  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', 'jabanilson', NULL, 1, '2012-11-29 00:01:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account108' WHERE `accounts`.`id` = 108  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (108, 35) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 73) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 73 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (73, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 107 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 107 WHERE `account_users`.`id` = 73  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (106, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"106", "domain_id"=>"18"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 35 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 106 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_106_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 35 AND `account_users`.`account_id` = 106 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 72 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 35 AND `accounts`.`id` = 106 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 106 AND `account_domains`.`id` = 18 LIMIT 1 Redirected to http://test.host/settings/account/106/domains Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (169.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:38', '2012-11-29 00:01:38', 'teste@teste.com', '$2a$04$.fS0l9R9TO5ljGXXuFXy4eRLbzr7XzrXRi2npNtoWB5LPyVYrIqOS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:38') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', NULL, NULL, NULL, '2012-11-29 00:01:38')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account109' WHERE `accounts`.`id` = 109 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (109, 36) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 74) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 74 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (74, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', 'jabanilson', NULL, 1, '2012-11-29 00:01:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account110' WHERE `accounts`.`id` = 110  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', 'jabanilson', NULL, 1, '2012-11-29 00:01:38')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account111' WHERE `accounts`.`id` = 111  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (111, 36) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 75) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 75 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (75, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 110 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 110 WHERE `account_users`.`id` = 75  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`url` = 'primary.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (109, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"109", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 36 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 109 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_109_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 36 AND `account_users`.`account_id` = 109 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 74 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 36 AND `accounts`.`id` = 109 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 109 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/109/domains Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (206.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:38', '2012-11-29 00:01:38', 'teste@teste.com', '$2a$04$/UW/DCQAQdE1RAQVp3mHV.DESwSg2b22Qe/v7OqLfjYTbhIZa9vxa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:38') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', NULL, NULL, NULL, '2012-11-29 00:01:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account112' WHERE `accounts`.`id` = 112 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (112, 37) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 76) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 76 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (76, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', 'jabanilson', NULL, 1, '2012-11-29 00:01:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account113' WHERE `accounts`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:38', 'jabanilson', NULL, 1, '2012-11-29 00:01:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:38', `updated_at` = '2012-11-29 00:01:38', `subdomain` = 'account114' WHERE `accounts`.`id` = 114  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (114, 37) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 77) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 77 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (77, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 113 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 113 WHERE `account_users`.`id` = 77  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (112, NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"112", "domain_id"=>"1231241243141314"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 37 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 112 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_112_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 37 AND `account_users`.`account_id` = 112 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 76 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 37 AND `accounts`.`id` = 112 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 112 AND `account_domains`.`id` = 1231241243141314 LIMIT 1 Redirected to http://test.host/settings/account/112/domains Completed 302 Found in 13ms (ActiveRecord: 2.6ms)  (186.4ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$USwuIGGKhM719IDv1FHAyeAWKt/2Yv4u/QLR5e9WAjNFgRHPuzMj.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account115' WHERE `accounts`.`id` = 115 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (115, 38) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 78) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 78 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (78, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account116' WHERE `accounts`.`id` = 116  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account117' WHERE `accounts`.`id` = 117  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (117, 38) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 79) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 79 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (79, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 116 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 116 WHERE `account_users`.`id` = 79  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"115"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 38 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 115 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_115_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 38 AND `account_users`.`account_id` = 115 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 78 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 38 AND `accounts`.`id` = 115 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 115) LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-29 00:01:39' WHERE `accounts`.`id` = 115  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/115/domains Completed 302 Found in 14ms (ActiveRecord: 3.0ms)  (82.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$5fXeCEpYIfWFvoACO.RKEuCyLfVqLQU8SK8I.ixf0ujL4D55zX/pG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account118' WHERE `accounts`.`id` = 118 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (118, 39) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (81.8ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 80) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 80 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (80, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account119' WHERE `accounts`.`id` = 119  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account120' WHERE `accounts`.`id` = 120  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (120, 39) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 81) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 81 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (81, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 119 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 119 WHERE `account_users`.`id` = 81  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"118"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 39 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 118 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_118_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 39 AND `account_users`.`account_id` = 118 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 80 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 39 AND `accounts`.`id` = 118 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 118) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-29 00:01:39' WHERE `accounts`.`id` = 118  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/118/domains Completed 302 Found in 14ms (ActiveRecord: 3.3ms)  (79.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$qmapp18X.J2y0ZntmYG/que3y63sNJklNS6/6VXw8tr0z.F5mvbwu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account121' WHERE `accounts`.`id` = 121 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (121, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 82) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 82 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (82, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account122' WHERE `accounts`.`id` = 122  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account123' WHERE `accounts`.`id` = 123  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (123, 40) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 83) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 83 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (83, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 122 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 122 WHERE `account_users`.`id` = 83  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 40 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != 121) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-11-29 00:01:39' WHERE `accounts`.`id` = 121  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/121/domains Completed 302 Found in 13ms (ActiveRecord: 3.4ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"121"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 121 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_121_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 40 AND `account_users`.`account_id` = 121 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 82 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 40 AND `accounts`.`id` = 121 LIMIT 1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.8ms)  (25.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$QGuKmDC6j0BhsXE01sSIAOZIKMyQhJGAakO3s5cNekZJgoVH4LIr6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account124' WHERE `accounts`.`id` = 124 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (124, 41) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 84) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 84 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (84, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account125' WHERE `accounts`.`id` = 125  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account126' WHERE `accounts`.`id` = 126  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (126, 41) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 85) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 85 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (85, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 125 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 125 WHERE `account_users`.`id` = 85  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 41 LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"124"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 41 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 124 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_124_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 41 AND `account_users`.`account_id` = 124 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 84 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (27.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$/TfemUzn44C7x0vFEDGWKeZvjWdnnoGA9yb20CGUJZAuKmgDiv/VO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account127' WHERE `accounts`.`id` = 127 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (127, 42) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 86) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 86 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (86, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account128' WHERE `accounts`.`id` = 128  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account129' WHERE `accounts`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (129, 42) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 87) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 87 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (87, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 128 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 128 WHERE `account_users`.`id` = 87  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 42 LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 42 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 127 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_127_destroy' LIMIT 1 Completed 404 Not Found in 5ms  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$BF9EHBECTuHI28KGt7vZu.QPM4BGyH7aGxzw/g2MOJoArPym6rmFS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account130' WHERE `accounts`.`id` = 130 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (130, 43) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 88) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 88 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (88, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account131' WHERE `accounts`.`id` = 131  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account132' WHERE `accounts`.`id` = 132  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (132, 43) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 89) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 89 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (89, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 131 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 131 WHERE `account_users`.`id` = 89  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 43 LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"130", "domain_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 43 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 130 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_130_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$tVJwG.2ZWQA3Ge8ivSIGw.m2YhsVd16ztSDCfRXWaA4mRoMqcgKta', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account133' WHERE `accounts`.`id` = 133 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (133, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 90) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 90 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (90, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account134' WHERE `accounts`.`id` = 134  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account135' WHERE `accounts`.`id` = 135  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (135, 44) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 91) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 91 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (91, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 134 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 134 WHERE `account_users`.`id` = 91  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 44 LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"133"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 44 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 133 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_133_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 44 AND `account_users`.`account_id` = 133 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 90 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$EANzNFd4qLm1pejcHRKnVeAWudhxUAEklq4Om8ygJV3nFHx5M/ly.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account136' WHERE `accounts`.`id` = 136 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (136, 45) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (92, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account137' WHERE `accounts`.`id` = 137  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account138' WHERE `accounts`.`id` = 138  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (138, 45) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 93) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 93 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (93, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 137 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 137 WHERE `account_users`.`id` = 93  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 136 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 92) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 92 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"136", "user_id"=>"45"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 45 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 45 AND `account_users`.`account_id` = 136 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 92 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 45 AND `accounts`.`id` = 136 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 136 AND `account_users`.`user_id` = 45 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (92) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (136) Completed 200 OK in 18ms (Views: 4.7ms | ActiveRecord: 2.1ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:39', '2012-11-29 00:01:39', 'teste@teste.com', '$2a$04$3cqlbtgSyUZ093j6b9PE5uDsAn54hmVivr2fdX3Ailt3nCF172FxO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:39') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', NULL, NULL, NULL, '2012-11-29 00:01:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account139' WHERE `accounts`.`id` = 139 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (139, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (94, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account140' WHERE `accounts`.`id` = 140  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:39', 'jabanilson', NULL, 1, '2012-11-29 00:01:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:39', `updated_at` = '2012-11-29 00:01:39', `subdomain` = 'account141' WHERE `accounts`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (141, 46) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 95) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 95 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (95, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 140 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 140 WHERE `account_users`.`id` = 95  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 139 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 94) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 94 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"139", "user_id"=>"46"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 46 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 46 AND `account_users`.`account_id` = 139 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 94 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 46 AND `accounts`.`id` = 139 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 139 AND `account_users`.`user_id` = 46 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (94) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (139) Completed 200 OK in 14ms (Views: 1.8ms | ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$NmL//FcRNb33UOufJxhYCul9KnEBNdzb5OqTyTDPhxz0AqBnezkRS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account142' WHERE `accounts`.`id` = 142 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 142 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (142, 47) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 96) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (96, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account143' WHERE `accounts`.`id` = 143  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account144' WHERE `accounts`.`id` = 144  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (144, 47) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 97) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 97 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (97, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 143 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 143 WHERE `account_users`.`id` = 97  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142) Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"142", "user_id"=>"47"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 47 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 47 AND `account_users`.`account_id` = 142 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 96 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 47 AND `accounts`.`id` = 142 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 142 AND `account_users`.`user_id` = 47 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (96) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (142)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 96 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 142 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/142/users Completed 302 Found in 17ms (ActiveRecord: 3.3ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account145' WHERE `accounts`.`id` = 145  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$Wzw1c5F6A4WRvDM93qb7geIv6GADOqt2j2Fs76fyTEjxW675HCTQu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account146' WHERE `accounts`.`id` = 146 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 146 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (146, 48) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 98) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 98 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (98, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account147' WHERE `accounts`.`id` = 147  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account148' WHERE `accounts`.`id` = 148  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (148, 48) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 99) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 99 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (99, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 147 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 147 WHERE `account_users`.`id` = 99  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 48 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:40', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 145\n created_at: 2012-11-29 00:01:40.090999000Z\n updated_at: 2012-11-29 00:01:40.090999000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account145\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_145_destroy', '2012-11-29 00:01:40', '2012-11-29 00:01:40')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"145"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 48 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 145 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_145_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 15ms (Views: 9.8ms | ActiveRecord: 1.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account149' WHERE `accounts`.`id` = 149  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$eHezad6zqOFCetPciXcBNuGcHNCcSXDdB66aPL0Y0ebe8zav2poE.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account150' WHERE `accounts`.`id` = 150 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 150 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (150, 49) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 100) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 100 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (100, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account151' WHERE `accounts`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account152' WHERE `accounts`.`id` = 152  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (152, 49) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 101) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 101 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (101, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 151 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 151 WHERE `account_users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 49 LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"149"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 49 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 149 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_149_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 1.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$Da3Lsq.uzj0hCr.xXPqViOVHm8QP2jK9G4WU79L262kKXwMpZJsFu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account153' WHERE `accounts`.`id` = 153 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (153, 50) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 102) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 102 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (102, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account154' WHERE `accounts`.`id` = 154  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account155' WHERE `accounts`.`id` = 155  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (155, 50) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 103) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 103 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (103, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 154 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 154 WHERE `account_users`.`id` = 103  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 50 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"153"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 50 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_153_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 153 LIMIT 1 Completed 200 OK in 10ms (Views: 4.4ms | ActiveRecord: 1.4ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$a1sRpZ/wpb57mZYR5vCsmOkvwGW4gBG7XOfveuPo/v.ECY6LsfX/a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account156' WHERE `accounts`.`id` = 156 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (156, 51) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 104) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 104 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (104, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account157' WHERE `accounts`.`id` = 157  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account158' WHERE `accounts`.`id` = 158  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (158, 51) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 105) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 105 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (105, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 157 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 157 WHERE `account_users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 51 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 1.3ms) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 51 LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"156"} Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 156 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_156_destroy' LIMIT 1 Completed 404 Not Found in 81ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$yKjMnqFHwbKSiY1qGMYYk.xNhMfSB2dg.ne7/uSSMes1.hJT6T4Le', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account159' WHERE `accounts`.`id` = 159 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (159, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 106) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 106 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (106, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account160' WHERE `accounts`.`id` = 160  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account161' WHERE `accounts`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (161, 52) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 107) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 107 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (107, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 160 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 160 WHERE `account_users`.`id` = 107  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 52 LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"159", "user_id"=>"52"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 52 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 159 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_159_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 159 AND `account_users`.`user_id` = 52 LIMIT 1 Completed 200 OK in 8ms (Views: 2.6ms | ActiveRecord: 1.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$MRBAUTUpFrwrO7DQ2.IKUu6iY5rhPE54pKo3ZprbI5W1NvPCtk4am', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account162' WHERE `accounts`.`id` = 162 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 53) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 108) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 108 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (108, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account163' WHERE `accounts`.`id` = 163  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account164' WHERE `accounts`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (164, 53) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 109) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 109 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (109, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 163 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 163 WHERE `account_users`.`id` = 109  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 53 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'targetdestroy@teste.teste', '$2a$04$k2zb9trqokyVDKvWve7y8.dz0Lsry7BEX1riihwTevHGbTKd3VoHG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account165' WHERE `accounts`.`id` = 165 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (165, 54) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 110) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 110 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (110, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (162, 54) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 111) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 111 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (111, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"54"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 53 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$NlRrWZaXutFhlmCbDGh2POsJ93M40AAf1ctACW7oDjkLuoSngISk6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account166' WHERE `accounts`.`id` = 166 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 55) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 112) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 112 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (112, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account167' WHERE `accounts`.`id` = 167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account168' WHERE `accounts`.`id` = 168  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (168, 55) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 113) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 113 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (113, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 167 WHERE `account_users`.`id` = 113  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 55 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'targetdestroy@teste.teste', '$2a$04$8Qu7H7.aOatD.cLklk.6TecXJZCoGFoTgjkSkUZYWKuhorQL2jtZa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account169' WHERE `accounts`.`id` = 169 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (169, 56) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 114) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 114 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (114, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (166, 56) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 115) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 115 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (115, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"166", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 55 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_166_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 55 AND `account_users`.`account_id` = 166 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 112 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 166 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 9ms  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$RbEcAaaS92jpWVpM6a.1Y.jTSAtCv0wFjWolvYXdRURHqf1ZZ0nW2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account170' WHERE `accounts`.`id` = 170 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 57) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 116) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 116 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (116, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account171' WHERE `accounts`.`id` = 171  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account172' WHERE `accounts`.`id` = 172  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (172, 57) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 117) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 117 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (117, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 171 WHERE `account_users`.`id` = 117  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 57 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'targetdestroy@teste.teste', '$2a$04$QmOuot4DcPmy/.aOWP2ZrOjXFAhkuplWCkyeNz/LTiNBmy638O8Na', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account173' WHERE `accounts`.`id` = 173 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 173 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (173, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 118) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 118 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (118, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (170, 58) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 170 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 237 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 238  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 119) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 119 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (119, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"170", "user_id"=>"58"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 57 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_170_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 57 AND `account_users`.`account_id` = 170 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 116 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 170 AND `account_users`.`user_id` = 58 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 119 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:40', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 119\n account_id: 170\n user_id: 58\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_119_destroy', '2012-11-29 00:01:40', '2012-11-29 00:01:40')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_119_destroy' LIMIT 1 Redirected to http://test.host/settings/account/170/users Completed 302 Found in 17ms (ActiveRecord: 3.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$9j.9rhPYRB9fAtcUyPPAT.I6WN/dqqatmnZtWvJDeFj9r7mQ3zvh6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account174' WHERE `accounts`.`id` = 174 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 59) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 120) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 120 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (120, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account175' WHERE `accounts`.`id` = 175  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account176' WHERE `accounts`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (176, 59) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 121) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 121 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (121, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 175 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 175 WHERE `account_users`.`id` = 121  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 59 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'targetdestroy@teste.teste', '$2a$04$zG3BxkZcoaIa27yemw/UB.nq6Ij8wq9yg.d4b5A./4rC9JK.zWCRS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account177' WHERE `accounts`.`id` = 177 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 177 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (177, 60) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 122) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 122 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (122, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (174, 60) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 174 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 246 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 123) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 123 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (123, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"174", "user_id"=>"60"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 59 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_174_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 59 AND `account_users`.`account_id` = 174 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 120 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 174 AND `account_users`.`user_id` = 60 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 174 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 123 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 11ms  (5.8ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'teste@teste.com', '$2a$04$kXCltwt./Nz3NkDkziO1a.eLiIBUun.0btFzoiIqVx283kqKlG7Ri', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account178' WHERE `accounts`.`id` = 178 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 61) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account179' WHERE `accounts`.`id` = 179  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', 'jabanilson', NULL, 1, '2012-11-29 00:01:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account180' WHERE `accounts`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (180, 61) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 125) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 125 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (125, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 179 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 179 WHERE `account_users`.`id` = 125  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 61 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:40', '2012-11-29 00:01:40', 'targetdestroy@teste.teste', '$2a$04$a3rOaCPniIYNxZcRWQLiY.IpMutu1rbtUkbprHuz/n/YkKb2NTjMG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:40') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:40', NULL, NULL, NULL, '2012-11-29 00:01:40')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:40', `updated_at` = '2012-11-29 00:01:40', `subdomain` = 'account181' WHERE `accounts`.`id` = 181 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (181, 62) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 126) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 126 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (126, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (178, 62) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 127) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 127 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (127, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (124) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (178)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 178 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 249 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 124) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 124 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (124, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"178", "user_id"=>"61"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 61 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_178_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 61 AND `account_users`.`account_id` = 178 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 124 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 178 AND `account_users`.`user_id` = 61 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 178 LIMIT 1 Completed 404 Not Found in 9ms  (14.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'teste@teste.com', '$2a$04$.JuGJ.6XRbe8VkQY1ursGuzKV8/FpCL.mgNPA2u9325QMifq.IoeK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account182' WHERE `accounts`.`id` = 182 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 128) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 128 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (128, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account183' WHERE `accounts`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account184' WHERE `accounts`.`id` = 184  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (184, 63) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 129) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 129 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (129, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 183 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 183 WHERE `account_users`.`id` = 129  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 63 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'target@test.test', '$2a$04$UHEmZ2ClSkR9/RVCfrMuz.m7R9PriWnqDtqZygZiikjyUct1St4Pi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account185' WHERE `accounts`.`id` = 185 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 185 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (185, 64) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 130) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 130 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (130, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (182, 64) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 131  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 182 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 264 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 265  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 131) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 131 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (131, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 131\n account_id: 182\n user_id: 64\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_131_destroy', '2012-11-29 00:01:41', '2012-11-29 00:01:41')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"64"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 63 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1892731892371273 LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'teste@teste.com', '$2a$04$AvcPCfAQZR8YVb7iGPyO9eeKPE7RhtcCbqcfPsTFlF1MXg0E85rd2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account186' WHERE `accounts`.`id` = 186 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 65) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 132) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 132 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (132, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account187' WHERE `accounts`.`id` = 187  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account188' WHERE `accounts`.`id` = 188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (188, 65) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 133) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 133 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (133, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 187 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 187 WHERE `account_users`.`id` = 133  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 65 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'target@test.test', '$2a$04$rHCiE9pq02RMdMUPHYrjXub9RvBV9T/J.kj546PQTjB99Uu.A82my', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account189' WHERE `accounts`.`id` = 189 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (189, 66) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 134) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 134 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (134, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (186, 66) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 135  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 186 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 273 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 274  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 135) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 135 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (135, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 135\n account_id: 186\n user_id: 66\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_135_destroy', '2012-11-29 00:01:41', '2012-11-29 00:01:41')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"186", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 65 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 186 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_186_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 65 AND `account_users`.`account_id` = 186 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 132 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 186 AND `account_users`.`user_id` = 18237198237192837 LIMIT 1 Completed 404 Not Found in 8ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'teste@teste.com', '$2a$04$qevGEfLDtOZkpQaaA21zBOtj55zlhhN9h3rpQXQVog/Uffr0db.GG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account190' WHERE `accounts`.`id` = 190 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (136, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account191' WHERE `accounts`.`id` = 191  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account192' WHERE `accounts`.`id` = 192  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (192, 67) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 137) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 137 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (137, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 191 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 191 WHERE `account_users`.`id` = 137  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 67 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'target@test.test', '$2a$04$QUwtX.Ij4LTHnAv5AnP4NO1nhOxcgA4PnROvAb1ckvkPbf8MR5FeS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account193' WHERE `accounts`.`id` = 193 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 193 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (193, 68) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 138) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 138 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (138, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (190, 68) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 139  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 282 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 139) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 139 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (139, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 139\n account_id: 190\n user_id: 68\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_139_destroy', '2012-11-29 00:01:41', '2012-11-29 00:01:41')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 190 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 277  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 136) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 136 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"190", "user_id"=>"68"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 67 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_190_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 67 AND `account_users`.`account_id` = 190 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 136 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 190 AND `account_users`.`user_id` = 68 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 190 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/190/users Completed 302 Found in 12ms (ActiveRecord: 2.8ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_139_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'teste@teste.com', '$2a$04$HKV2y9t.dLDYozJ3kl93G.LrhT3xtnKSRVsf/XxR41DXZOOR3Yxfq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account194' WHERE `accounts`.`id` = 194 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (140, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account195' WHERE `accounts`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account196' WHERE `accounts`.`id` = 196  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (196, 69) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 141) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 141 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (141, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 195 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 195 WHERE `account_users`.`id` = 141  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 69 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'target@test.test', '$2a$04$UjZ3nItASC9rxiM8mhssPOR8hFofkxCq3zUVFESwlXXorVMYEkf9C', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account197' WHERE `accounts`.`id` = 197 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 197 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (197, 70) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 142) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 142 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (142, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (194, 70) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 143  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 291 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 292  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 143) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 143 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (143, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 143\n account_id: 194\n user_id: 70\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_143_destroy', '2012-11-29 00:01:41', '2012-11-29 00:01:41')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 194 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 286  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 140) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 140 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"194", "user_id"=>"70"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 69 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_194_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 69 AND `account_users`.`account_id` = 194 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 140 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 194 AND `account_users`.`user_id` = 70 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 194 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_143_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/194/users Completed 302 Found in 12ms (ActiveRecord: 3.1ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'teste@teste.com', '$2a$04$kmZH7bxxVJ5DoldOmSoQsOWcRhnoHYqQ0mF5CUlEXX8nbdaJfsWWi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account198' WHERE `accounts`.`id` = 198 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 71) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account199' WHERE `accounts`.`id` = 199  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account200' WHERE `accounts`.`id` = 200  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (200, 71) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 145) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 145 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (145, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 199 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 199 WHERE `account_users`.`id` = 145  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 71 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'target@test.test', '$2a$04$9H7txwSZuKDC.VnRw.xA3eQVsvpAlNWRRp63Xh/jl9lLC5ujPS0Zu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account201' WHERE `accounts`.`id` = 201 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 201 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (201, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 146) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 146 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (146, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (198, 72) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 147  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 300 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 147) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 147 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (147, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:41', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 147\n account_id: 198\n user_id: 72\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_147_destroy', '2012-11-29 00:01:41', '2012-11-29 00:01:41')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'notowner@account.test', '$2a$04$7s6SeFjuW2igY/NiggSd8edwWZOMfjbzN4UG.y.TaWmUOwf3JB8Tm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account202' WHERE `accounts`.`id` = 202 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (202, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 148) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 148 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (148, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account203' WHERE `accounts`.`id` = 203  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (203, 73) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 149) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 149 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (149, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 198 WHERE `account_users`.`id` = 149  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 198 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 294 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 295  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 144) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 144 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (144, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"198", "user_id"=>"72"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 71 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 198 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_198_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 71 AND `account_users`.`account_id` = 198 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 144 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 101ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'teste@teste.com', '$2a$04$GqVJ4hlbFB3wVPvacFXJfO7ffQ2EjV.SaP2/tcRu8cmoHLRtDGE66', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account204' WHERE `accounts`.`id` = 204 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (204, 74) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 150) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 150 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (150, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account205' WHERE `accounts`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account206' WHERE `accounts`.`id` = 206  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (206, 74) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 151) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 151 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (151, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 205 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 205 WHERE `account_users`.`id` = 151  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 74 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account207' WHERE `accounts`.`id` = 207  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"207"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 74 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 74 AND `account_users`.`account_id` = 207 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'teste@teste.com', '$2a$04$xjq8GYvnHp63.0gcuCx0zOw0VO.qcJozgSC2nfoslfjaeDkKK.x3W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account208' WHERE `accounts`.`id` = 208 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (208, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 152) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 152 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (152, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account209' WHERE `accounts`.`id` = 209  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account210' WHERE `accounts`.`id` = 210  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (210, 75) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 153) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 153 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (153, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 209 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 209 WHERE `account_users`.`id` = 153  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 75 LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"208"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 75 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 75 AND `account_users`.`account_id` = 208 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 152 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 208 LIMIT 1 Completed 200 OK in 24ms (Views: 3.8ms | ActiveRecord: 4.4ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:41', '2012-11-29 00:01:41', 'teste@teste.com', '$2a$04$hupb7yb8AbHky0VnlIMlhOzegPclJ4BPFOY4mLpQ3Tfiue4yUQAUm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:41') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', NULL, NULL, NULL, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account211' WHERE `accounts`.`id` = 211 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (211, 76) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 154) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 154 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (154, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account212' WHERE `accounts`.`id` = 212  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:41', 'jabanilson', NULL, 1, '2012-11-29 00:01:41')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:41', `updated_at` = '2012-11-29 00:01:41', `subdomain` = 'account213' WHERE `accounts`.`id` = 213  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (213, 76) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 155) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 155 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (155, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 212 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 212 WHERE `account_users`.`id` = 155  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 76 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"211"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 76 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 76 AND `account_users`.`account_id` = 211 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 154 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 211 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (211, 'create@controller.teste', 76, NULL, '2012-11-29 00:01:41', '_WAOo5VgvFBW21ggxing23i0924') Sent mail to create@controller.teste (148ms) Date: Wed, 28 Nov 2012 22:01:42 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b6a5e63dd9d_22e380435d4870519@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1_WAOo5VgvFBW21ggxing23i0924  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/211/users Completed 302 Found in 413ms (ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:42', '2012-11-29 00:01:42', 'teste@teste.com', '$2a$04$oFlUIPsjiG1s08xDmTaJ0eYcJmBPXxy1yMarHPb.55rPDekpWqOGC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', NULL, NULL, NULL, '2012-11-29 00:01:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account214' WHERE `accounts`.`id` = 214 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 214 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (214, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 156) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 156 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (156, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account215' WHERE `accounts`.`id` = 215  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account216' WHERE `accounts`.`id` = 216  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (216, 77) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 157) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 157 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (157, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 215 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 215 WHERE `account_users`.`id` = 157  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 77 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"214"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 77 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 77 AND `account_users`.`account_id` = 214 LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 156 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 214 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (214, 'create@controller.teste', 77, NULL, '2012-11-29 00:01:42', 'f3PdVysrY3wqf1CfGuThpPpZAF8') Sent mail to create@controller.teste (7ms) Date: Wed, 28 Nov 2012 22:01:42 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b6a5e66aae3_22e380435d48706f9@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2f3PdVysrY3wqf1CfGuThpPpZAF8  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/214/users Completed 302 Found in 31ms (ActiveRecord: 2.9ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:42', '2012-11-29 00:01:42', 'teste@teste.com', '$2a$04$/VboOAcYjlMBNKol08/02uPRHcY5Iogss3oIjbjWfZfY6VIxnUneC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', NULL, NULL, NULL, '2012-11-29 00:01:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account217' WHERE `accounts`.`id` = 217 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (217, 78) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 158) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 158 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (158, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account218' WHERE `accounts`.`id` = 218  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account219' WHERE `accounts`.`id` = 219  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (219, 78) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 159) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 159 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (159, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 218 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 218 WHERE `account_users`.`id` = 159  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 78 LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 78 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 217 AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (217, 'create@controller.teste', 78, NULL, '2012-11-29 00:01:42', '-J0V4FRBaDUglhYSmi1Mnu-bWsg') Sent mail to create@controller.teste (6ms) Date: Wed, 28 Nov 2012 22:01:42 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50b6a5e67ec10_22e380435d487072a@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3-J0V4FRBaDUglhYSmi1Mnu-bWsg  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/217/users Completed 302 Found in 30ms (ActiveRecord: 2.4ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"217"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 78 AND `account_users`.`account_id` = 217 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 158 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 217 LIMIT 1 Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 1.4ms)  (12.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:42', '2012-11-29 00:01:42', 'teste@teste.com', '$2a$04$Qjsz/VEX/mTSET3WQZVE8e5iTIo7FIlPxUYyMoNPP3Kpp9m0fN3MG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:42') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', NULL, NULL, NULL, '2012-11-29 00:01:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account220' WHERE `accounts`.`id` = 220 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 220 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (220, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 160) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 160 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (160, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account221' WHERE `accounts`.`id` = 221  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account222' WHERE `accounts`.`id` = 222  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (222, 79) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 161) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 161 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (161, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 221 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 221 WHERE `account_users`.`id` = 161  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 79 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account223' WHERE `accounts`.`id` = 223  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 223 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (223, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:42', 'zyHW0sPhJTJyj1Lt2QSM-VdQiqM') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 22:01:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5e6970e0_22e380435d4870882@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4zyHW0sPhJTJyj1Lt2QSM-VdQiqM  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = 79 WHERE `user_invitations`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 79 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:42', '2012-11-29 00:01:42', 'teste@teste.com', '$2a$04$4lBRqZrU1b7Ywbj6Cwg0G.FuJVz.Se6ct/2Ej7/yXfEESRLZRkRv.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', NULL, NULL, NULL, '2012-11-29 00:01:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account224' WHERE `accounts`.`id` = 224 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 224 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (224, 80) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 162) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 162 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (162, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account225' WHERE `accounts`.`id` = 225  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account226' WHERE `accounts`.`id` = 226  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (226, 80) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 163) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 163 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (163, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 225 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 225 WHERE `account_users`.`id` = 163  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 80 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account227' WHERE `accounts`.`id` = 227  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 227 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (227, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:42', 'ak-zrbU8nUVtABDQtGqJkIy-lU4') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 22:01:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5e6aa519_22e380435d4870994@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5ak-zrbU8nUVtABDQtGqJkIy-lU4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = 80 WHERE `user_invitations`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"5ak-zrbU8nUVtABDQtGqJkIy-lU4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 5 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 80 LIMIT 1 Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 1.2ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:42', '2012-11-29 00:01:42', 'teste@teste.com', '$2a$04$8H7CcoxoE5GRIhL6/3jDY.a/3qaXM/FrfMTcD77ijAhpSEshbcGJq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:42') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', NULL, NULL, NULL, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account228' WHERE `accounts`.`id` = 228 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (228, 81) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 164) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 164 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (164, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account229' WHERE `accounts`.`id` = 229  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account230' WHERE `accounts`.`id` = 230  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (230, 81) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 165) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 165 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (165, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 229 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 229 WHERE `account_users`.`id` = 165  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 81 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account231' WHERE `accounts`.`id` = 231  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account232' WHERE `accounts`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 232 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (232, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:42', 'zM0yxVm8SXl0Q-MVe-BH9DZziIY') Sent mail to teste@teste.teste (85ms) Date: Wed, 28 Nov 2012 22:01:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5e6bf845_22e380435d48710b2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/6zM0yxVm8SXl0Q-MVe-BH9DZziIY  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 231 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 231 WHERE `user_invitations`.`id` = 6  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 81 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9821 LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:42', '2012-11-29 00:01:42', 'teste@teste.com', '$2a$04$c1Pgl3gDgq4xv1uzvUuB6eQfyYLrbej2BFqpvWPqaTZReFdQhr3NK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', NULL, NULL, NULL, '2012-11-29 00:01:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account233' WHERE `accounts`.`id` = 233 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (233, 82) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 166) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 166 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (166, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account234' WHERE `accounts`.`id` = 234  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account235' WHERE `accounts`.`id` = 235  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (235, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 167) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 167 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (167, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 234 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 234 WHERE `account_users`.`id` = 167  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 82 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account236' WHERE `accounts`.`id` = 236  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', 'jabanilson', NULL, 1, '2012-11-29 00:01:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account237' WHERE `accounts`.`id` = 237  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 237 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (237, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:42', '7ezFvzLEO9tn7MWcZP_o5wbPYS8') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 22:01:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5e6e72f5_22e380435d4871181@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/77ezFvzLEO9tn7MWcZP_o5wbPYS8  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 236 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 236 WHERE `user_invitations`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"77ezFvzLEO9tn7MWcZP_o5wbPYS8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 82 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 7 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 236 AND `account_users`.`user_id` = 82  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 236 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (236, 82) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 168) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 168 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (168, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 4.1ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:42', '2012-11-29 00:01:42', 'teste@teste.com', '$2a$04$RafVMycXVPpXt2tEQm5mGOepuQL4H3TLW8XB/aBr1O/U5jlHiecQy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:42') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:42', NULL, NULL, NULL, '2012-11-29 00:01:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:42', `updated_at` = '2012-11-29 00:01:42', `subdomain` = 'account238' WHERE `accounts`.`id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (238, 83) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 169) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 169 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (169, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account239' WHERE `accounts`.`id` = 239  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account240' WHERE `accounts`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (240, 83) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 170) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 170 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (170, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 239 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 239 WHERE `account_users`.`id` = 170  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 83 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account241' WHERE `accounts`.`id` = 241  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account242' WHERE `accounts`.`id` = 242  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 242 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (242, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:43', 'OL-T0fP5ORW_S1YRISayv8z5NUg') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 22:01:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5e7b466_22e380435d487121d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/8OL-T0fP5ORW_S1YRISayv8z5NUg  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 241 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 241 WHERE `user_invitations`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (241, 83) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 171) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 171 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (171, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"8OL-T0fP5ORW_S1YRISayv8z5NUg"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 83 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 8 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 241 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 241 AND `account_users`.`user_id` = 83 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$8hK0SMwJJxPaWX53N7uW6e/BSAh39pPkainWh6ue12XZSi5ZwPAwW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account243' WHERE `accounts`.`id` = 243 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 243 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (243, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 172) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 172 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (172, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account244' WHERE `accounts`.`id` = 244  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account245' WHERE `accounts`.`id` = 245  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (245, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 173) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 173 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (173, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 244 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 244 WHERE `account_users`.`id` = 173  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 84 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account246' WHERE `accounts`.`id` = 246  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account247' WHERE `accounts`.`id` = 247  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 247 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (247, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:43', 'kClbTBwUCk0a6zZAhQmA1bM05Go') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 22:01:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5e723a54_22e380435d4871327@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9kClbTBwUCk0a6zZAhQmA1bM05Go  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 246 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 246 WHERE `user_invitations`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (246, 84) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 174) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 174 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (174, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9kClbTBwUCk0a6zZAhQmA1bM05Go"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 84 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 9 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 246 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 246 AND `account_users`.`user_id` = 84 Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$woOOSxWpGMfRorHc5wkJJOYuQ29YhhKe.FEtVJGStLeQQjMB4M0fm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account248' WHERE `accounts`.`id` = 248 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (248, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 175) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 175 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (175, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account249' WHERE `accounts`.`id` = 249  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account250' WHERE `accounts`.`id` = 250  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (250, 85) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 176) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 176 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (176, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 249 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 249 WHERE `account_users`.`id` = 176  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 85 LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 85 LIMIT 1 Completed 404 Not Found in 2ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (10.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$6abLeZkuXAChXXBcWZ89L.V5/xnXVncNHcRBc1WOfcuTCoXlYgVca', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (18.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account251' WHERE `accounts`.`id` = 251 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 251 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (251, 86) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 177) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 177 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (177, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account252' WHERE `accounts`.`id` = 252  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account253' WHERE `accounts`.`id` = 253  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (253, 86) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 178) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 178 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (178, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 252 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 252 WHERE `account_users`.`id` = 178  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 86 LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 86 LIMIT 1 Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)  (18.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$07zuDWfU0FETqNZbwuR49u06GalPObr43a52.PWg5S/ryJYUBSIhO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account254' WHERE `accounts`.`id` = 254 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (254, 87) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (138.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 179) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 179 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (179, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account255' WHERE `accounts`.`id` = 255  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account256' WHERE `accounts`.`id` = 256  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (256, 87) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 180) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 180 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (180, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 255 LIMIT 1  (0.1ms) UPDATE `account_users` SET `account_id` = 255 WHERE `account_users`.`id` = 180  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 87 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 87 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 87  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-29 00:01:43' WHERE `users`.`id` = 87  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 3.8ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$u2MejvdOUFPVoZYeZq8dFuF.v4fiCoAtriBcxD6kXm80UaVyiLXbW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account257' WHERE `accounts`.`id` = 257 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 257 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (257, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 181) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 181 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (181, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account258' WHERE `accounts`.`id` = 258  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account259' WHERE `accounts`.`id` = 259  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (259, 88) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 182) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 182 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (182, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 258 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 258 WHERE `account_users`.`id` = 182  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 88 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 88  (0.5ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-11-29 00:01:43' WHERE `users`.`id` = 88  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 11ms (Views: 2.3ms | ActiveRecord: 1.5ms)  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account260' WHERE `accounts`.`id` = 260  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account261' WHERE `accounts`.`id` = 261  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (261, 88) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 183) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 183 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (183, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 260 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 260 WHERE `account_users`.`id` = 183  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 88 AND (accounts.id = 257) LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$fjcg54jHsy2c2RJkVo.dmuP0ZRc7PF7Ape2Ufl53IAtcvNeTUvhRW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account262' WHERE `accounts`.`id` = 262 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (262, 89) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 184) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 184 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (184, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account263' WHERE `accounts`.`id` = 263  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account264' WHERE `accounts`.`id` = 264  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (264, 89) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 185) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 185 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (185, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 263 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 263 WHERE `account_users`.`id` = 185  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 89 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 89 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 89\n email: teste@teste.com\n encrypted_password: $2a$04$fjcg54jHsy2c2RJkVo.dmuP0ZRc7PF7Ape2Ufl53IAtcvNeTUvhRW\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:43.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:43.000000000Z\n updated_at: 2012-11-29 00:01:43.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_89_destroy', '2012-11-29 00:01:43', '2012-11-29 00:01:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_89_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$u18u2eXSLgujvJ7QlK0q2.ZP/h5I78NSroxtlhPJP6rNR24Js278u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account265' WHERE `accounts`.`id` = 265 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 265 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (265, 90) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 186) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 186 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (186, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account266' WHERE `accounts`.`id` = 266  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account267' WHERE `accounts`.`id` = 267  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (267, 90) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 187) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 187 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (187, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 266 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 266 WHERE `account_users`.`id` = 187  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 90 LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 90 LIMIT 1 Completed 404 Not Found in 2ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$Iqf3Bsk6BtEtwGSaVKgFseCqCTjtzMTE1oYSOsqqfXsMSlpnEzT9e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account268' WHERE `accounts`.`id` = 268 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 268 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (268, 91) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 188) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 188 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (188, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account269' WHERE `accounts`.`id` = 269  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account270' WHERE `accounts`.`id` = 270  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (270, 91) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 189) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 189 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (189, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 269 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 269 WHERE `account_users`.`id` = 189  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 91 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:43', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 91\n email: teste@teste.com\n encrypted_password: $2a$04$Iqf3Bsk6BtEtwGSaVKgFseCqCTjtzMTE1oYSOsqqfXsMSlpnEzT9e\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:43.820913000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:43.821295000Z\n updated_at: 2012-11-29 00:01:43.821295000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_91_destroy', '2012-11-29 00:01:43', '2012-11-29 00:01:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 91 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_91_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$hXxkYQb0iEsCryvFZL6iAOEjBSXZVA3ECDHt0MJ.XfE.lmGVk4nki', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account271' WHERE `accounts`.`id` = 271 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 271 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (271, 92) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 190) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 190 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (190, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account272' WHERE `accounts`.`id` = 272  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account273' WHERE `accounts`.`id` = 273  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (273, 92) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 191) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 191 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (191, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 272 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 272 WHERE `account_users`.`id` = 191  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 92 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 92 WHERE `social_accounts`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92 AND `social_accounts`.`id` = 1 LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 92 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 92  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 1.6ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:43', '2012-11-29 00:01:43', 'teste@teste.com', '$2a$04$LIk9sOEmbxDgcuL1MMJNzOUvjfkZISG/2zjDhv.jLU9suxdjcFJAK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:43') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', NULL, NULL, NULL, '2012-11-29 00:01:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account274' WHERE `accounts`.`id` = 274 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 274 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (274, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 192) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 192 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (192, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account275' WHERE `accounts`.`id` = 275  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:43', 'jabanilson', NULL, 1, '2012-11-29 00:01:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:43', `updated_at` = '2012-11-29 00:01:43', `subdomain` = 'account276' WHERE `accounts`.`id` = 276  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (276, 93) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 193) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 193 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (193, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 275 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 275 WHERE `account_users`.`id` = 193  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 93 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 93 WHERE `social_accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"2"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93 AND `social_accounts`.`id` = 2 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 93 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 93  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 7ms (ActiveRecord: 1.8ms)  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', 'teste@teste.com', '$2a$04$s7z41Pmm2TOeA/I5JxXS/uSqfs4kuKLRTchbA1yDnJEienZD5yqy6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account277' WHERE `accounts`.`id` = 277 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 277 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (277, 94) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 194) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 194 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (194, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account278' WHERE `accounts`.`id` = 278  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account279' WHERE `accounts`.`id` = 279  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (279, 94) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 195) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 195 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (195, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 278 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 278 WHERE `account_users`.`id` = 195  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 94 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 94 WHERE `social_accounts`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', '', '$2a$04$fq9MJvVWvxrxxSJm1EjJfOOQX1Gjx1MJs/eL5Q8QPi.t5gkUjfG0q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.2ms) UPDATE `social_accounts` SET `user_id` = 95 WHERE `social_accounts`.`id` = 4 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account280' WHERE `accounts`.`id` = 280 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (280, 95) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 196) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 196 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (196, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 AND `social_accounts`.`id` = 4 LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 95 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 95 Redirected to http://test.host/settings/profile Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', 'teste@teste.com', '$2a$04$ppJOETOHF4AchTo91V/cruJweaDunWb9C3/ow39OmB4PHgy0qX.7a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account281' WHERE `accounts`.`id` = 281 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (281, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 197) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 197 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (197, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account282' WHERE `accounts`.`id` = 282  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account283' WHERE `accounts`.`id` = 283  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (283, 96) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 198) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 198 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (198, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 282 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 282 WHERE `account_users`.`id` = 198  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 96 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 96 WHERE `social_accounts`.`id` = 5  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', '', '$2a$04$GnyulEZizXi0tHX25gRq4OWFO/PLBDeWO1NVIfZ8FpXV1.aFuzFT2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.4ms) UPDATE `social_accounts` SET `user_id` = 97 WHERE `social_accounts`.`id` = 6 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account284' WHERE `accounts`.`id` = 284 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 284 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (284, 97) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 199) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 199 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (199, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"6"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 AND `social_accounts`.`id` = 6 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 97 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 97 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', 'teste@teste.com', '$2a$04$Vxek7Ahlq5PGdt977KzHuuUgmdsPy13uVaYq8jMQE1pYFy9nvTs5O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account285' WHERE `accounts`.`id` = 285 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 285 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (285, 98) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 200) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 200 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (200, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account286' WHERE `accounts`.`id` = 286  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account287' WHERE `accounts`.`id` = 287  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (287, 98) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 201) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 201 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (201, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 286 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 286 WHERE `account_users`.`id` = 201  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 98 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 98 WHERE `social_accounts`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 98 LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 98 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', 'teste@teste.com', '$2a$04$Dn6IAC6n3XpaOftYoZb0PuGZ/O/byiWxPNMYUClguJxf564NE1xwW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account288' WHERE `accounts`.`id` = 288 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (288, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 202) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 202 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (202, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account289' WHERE `accounts`.`id` = 289  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account290' WHERE `accounts`.`id` = 290  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (290, 99) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 203) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 203 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (203, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 289 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 289 WHERE `account_users`.`id` = 203  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 99 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 99 WHERE `social_accounts`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 99 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 99 AND `social_accounts`.`id` = 9128739127 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', 'teste@teste.com', '$2a$04$/ntX4WhfsK2teAl0vZhZcubmdLmtvQwP2Z3KA9Ne9P2cCiQ6twX5e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account291' WHERE `accounts`.`id` = 291 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 291 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (291, 100) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 204) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 204 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (204, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account292' WHERE `accounts`.`id` = 292  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account293' WHERE `accounts`.`id` = 293  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (293, 100) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 205) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 205 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (205, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 292 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 292 WHERE `account_users`.`id` = 205  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 100 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 100 WHERE `social_accounts`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account294' WHERE `accounts`.`id` = 294 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (294, 101) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 206) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 206 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (206, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 101\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:44.410248000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:44.410945000Z\n updated_at: 2012-11-29 00:01:44.410945000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_101', '2012-12-06 00:01:44', '2012-11-29 00:01:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 101 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 101 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 101) LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$J8nlDwsFbq3qtknh/mRap.0R/yM4Vq3ItnP2jr534fYIrMZs0sDvi', `updated_at` = '2012-11-29 00:01:44' WHERE `users`.`id` = 101  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_101' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 AND (accounts.id = 291) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 101 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 3.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', 'teste@teste.com', '$2a$04$eq9eZ3d0mITWBrcV0zyVseO5eK0PnCE61fwiHcgAl.bsxO30H8hKu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account295' WHERE `accounts`.`id` = 295 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 295 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (295, 102) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 207) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 207 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (207, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account296' WHERE `accounts`.`id` = 296  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account297' WHERE `accounts`.`id` = 297  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (297, 102) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 208) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 208 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (208, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 296 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 296 WHERE `account_users`.`id` = 208  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 102 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 102 WHERE `social_accounts`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account298' WHERE `accounts`.`id` = 298 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 298 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (298, 103) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 209) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 209 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (209, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 103\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:44.498733000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:44.499441000Z\n updated_at: 2012-11-29 00:01:44.499441000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_103', '2012-12-06 00:01:44', '2012-11-29 00:01:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 103 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 103 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 103) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$4y/SIdQyg3aV75V0a.sOBO2isHRmz2kibIXVRhf9GPrj1gHMe2sUu', `updated_at` = '2012-11-29 00:01:44' WHERE `users`.`id` = 103  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_103' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 AND (accounts.id = 295) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 103 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 3.0ms)  (1.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', 'teste@teste.com', '$2a$04$q/E2tRDb788Sk9lsm7l2nOSY55IFN7VIDDVuH.Hspcslx.7Sn8kd6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account299' WHERE `accounts`.`id` = 299 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (299, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 210) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 210 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (210, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account300' WHERE `accounts`.`id` = 300  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account301' WHERE `accounts`.`id` = 301  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (301, 104) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 211) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 211 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (211, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 300 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 300 WHERE `account_users`.`id` = 211  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 104 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 104 WHERE `social_accounts`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account302' WHERE `accounts`.`id` = 302 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 302 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (302, 105) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 212) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 212 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (212, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 105\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:44.597008000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:44.597753000Z\n updated_at: 2012-11-29 00:01:44.597753000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_105', '2012-12-06 00:01:44', '2012-11-29 00:01:44')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 105 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 105 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != 105) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.email', `encrypted_password` = '$2a$04$IoNVaKL1Gp3xbpUl7obLqef1aG5Dhbn6mUwdZK32SQCUMuiqlsHUm', `updated_at` = '2012-11-29 00:01:44' WHERE `users`.`id` = 105  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_105' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 AND (accounts.id = 299) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 105 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 16ms (ActiveRecord: 2.7ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', 'teste@teste.com', '$2a$04$hPaTTlFuIKY4YVZA6rOMYO7XsI73UO7lbgSD6H4UYzBOs4fXU3np2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account303' WHERE `accounts`.`id` = 303 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (303, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 213) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 213 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (213, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account304' WHERE `accounts`.`id` = 304  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', 'jabanilson', NULL, 1, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account305' WHERE `accounts`.`id` = 305  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (305, 106) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 214) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 214 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (214, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 304 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 304 WHERE `account_users`.`id` = 214  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 106 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = 106 WHERE `social_accounts`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account306' WHERE `accounts`.`id` = 306 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 306 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (306, 107) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 215) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 215 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (215, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 107\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:44.681620000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:44.682298000Z\n updated_at: 2012-11-29 00:01:44.682298000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_107', '2012-12-06 00:01:44', '2012-11-29 00:01:44')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 107 LIMIT 1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (1.6ms) ROLLBACK  (0.3ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:44', '2012-11-29 00:01:44', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:44') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:44', NULL, NULL, NULL, '2012-11-29 00:01:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44', `subdomain` = 'account307' WHERE `accounts`.`id` = 307 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 307 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (307, 108) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 216) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 216 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (216, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:44', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 108\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:44.715552000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:44.716621000Z\n updated_at: 2012-11-29 00:01:44.716621000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_108', '2012-12-06 00:01:44', '2012-11-29 00:01:44')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `remember_created_at` = '2012-11-29 00:01:44', `updated_at` = '2012-11-29 00:01:44' WHERE `users`.`id` = 108  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 108 LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 128ms (ActiveRecord: 6.4ms)  (14.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 339ms  (0.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'teste@teste.com', '$2a$04$FQyKzGc4n80yRsX24z9dXOf/FsHMJJCDvB1OcV9OjhnU31zKxPoBK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account308' WHERE `accounts`.`id` = 308 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (308, 109) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 217) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 217 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (217, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account309' WHERE `accounts`.`id` = 309  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account310' WHERE `accounts`.`id` = 310  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (310, 109) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 218) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 218 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (218, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 309 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 309 WHERE `account_users`.`id` = 218  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 109 LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 109 LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'teste@teste.com', '$2a$04$p0Lgn5.Bro85sHxSjlhRi.ZFRGFCbkZjDNVBdd5usAO0xE2mJfa/i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account311' WHERE `accounts`.`id` = 311 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 110) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account312' WHERE `accounts`.`id` = 312  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account313' WHERE `accounts`.`id` = 313  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (313, 110) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 220) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 220 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (220, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 312 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 312 WHERE `account_users`.`id` = 220  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'user2@email.email', '$2a$04$qfoXfb9XHUgo0zORawr0n.qP8f.Z9dONIlpQnAiIdfP.nMb09.a4m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account314' WHERE `accounts`.`id` = 314 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (314, 111) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 221) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 221 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (221, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 110 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (311, 111) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 222) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 222 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (222, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 311 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 446 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 447  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 219) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 219 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (219, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 110 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"311"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 110 AND `account_users`.`account_id` = 311 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 219 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'teste@teste.com', '$2a$04$uN10lBdyOrZGSN.bDWNEt.xhR.1DmJTaYJ3RdYLG9LUI1Wo1Q37Ua', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account315' WHERE `accounts`.`id` = 315 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 112) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account316' WHERE `accounts`.`id` = 316  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account317' WHERE `accounts`.`id` = 317  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (317, 112) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 224) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 224 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (224, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 316 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 316 WHERE `account_users`.`id` = 224  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'user2@email.email', '$2a$04$bjTQmToKgDTnQABlmkhHMOih53ENzFfse2hgHUKe46MW2HfH1vHaK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account318' WHERE `accounts`.`id` = 318 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 318 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (318, 113) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 225) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 225 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (225, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 112 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 315 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (315, 113) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 226) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 226 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (226, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 455 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 112 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.4ms)  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 315 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 463  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 223) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 223 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (223, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"315"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 112 AND `account_users`.`account_id` = 315 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 223 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'teste@teste.com', '$2a$04$9zkGRUg5C5el8XAG911Fa.cZT5pP7scmQ7dva4B3IndH4qHRQmF.m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account319' WHERE `accounts`.`id` = 319 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 114) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account320' WHERE `accounts`.`id` = 320  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account321' WHERE `accounts`.`id` = 321  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (321, 114) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 228) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 228 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (228, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 320 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 320 WHERE `account_users`.`id` = 228  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'user2@email.email', '$2a$04$zvUTdV3Ps8fNdXSNfaWKXu5q9vFeh2V4NAkkvH/5e7gAuymawP4eG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account322' WHERE `accounts`.`id` = 322 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 322 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (322, 115) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 229) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 229 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (229, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 114 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 319 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (319, 115) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 230) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (230, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 319 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 465 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 466  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 227) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 227 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (227, 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"319"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 114 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 93ms (Views: 0.5ms | ActiveRecord: 1.5ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"319"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 114 AND `account_users`.`account_id` = 319 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 227 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'teste@teste.com', '$2a$04$341suyOXzSR71uiPkMfCX.cPoKNiD/jtB/oe0rCAeRN0.Q.r1rFum', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account323' WHERE `accounts`.`id` = 323 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 116) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account324' WHERE `accounts`.`id` = 324  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account325' WHERE `accounts`.`id` = 325  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (325, 116) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 232) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 232 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (232, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 324 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 324 WHERE `account_users`.`id` = 232  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'user2@email.email', '$2a$04$I7nlX6nzvEavtxNowxTfAuhp9ccGISsd8E8pDETBXsnurAK7AjSJu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account326' WHERE `accounts`.`id` = 326 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (326, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 233) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 233 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (233, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 116 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (323, 117) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 234) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 234 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (234, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 323 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 474 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 231) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 231 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (231, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"323"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 116 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 116 AND `account_users`.`account_id` = 323 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 231 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'teste@teste.com', '$2a$04$7lIifF0Uda4MKJ.Rp7Wzn.bUlzWmGH4kNStpzk3GTt2O4QXyrIAKW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account327' WHERE `accounts`.`id` = 327 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 118) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account328' WHERE `accounts`.`id` = 328  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account329' WHERE `accounts`.`id` = 329  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (329, 118) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 236) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (236, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 328 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 328 WHERE `account_users`.`id` = 236  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'user2@email.email', '$2a$04$hE54rWqo3g.PCteWkuPtf.pY6wD/Af4ZifOC13Vp.gSKVLo.9V/RW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account330' WHERE `accounts`.`id` = 330 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 330 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (330, 119) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 237) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (237, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 118 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 327 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (327, 119) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 238) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 238 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (238, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 327 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 483 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 484  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 491  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 235) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 235 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (235, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"327"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 118 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 118 AND `account_users`.`account_id` = 327 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 235 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'teste@teste.com', '$2a$04$tMDV6MBEjUrXjvzrLU51cu/7469BrDzI.Co/8u801RgrSHMrGFqKq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account331' WHERE `accounts`.`id` = 331 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 120) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 239) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 239 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (239, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account332' WHERE `accounts`.`id` = 332  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', 'jabanilson', NULL, 1, '2012-11-29 00:01:45')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account333' WHERE `accounts`.`id` = 333  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (333, 120) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 240) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 240 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (240, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 332 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 332 WHERE `account_users`.`id` = 240  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:45', '2012-11-29 00:01:45', 'user2@email.email', '$2a$04$ea3femmvm3xYxVczfXv8I.7fe9SPi3Gcj.hsPHSfleu/SJ1CpCcv.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:45') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:45', NULL, NULL, NULL, '2012-11-29 00:01:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:45', `updated_at` = '2012-11-29 00:01:45', `subdomain` = 'account334' WHERE `accounts`.`id` = 334 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 334 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (334, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 241) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 241 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (241, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 120 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (331, 121) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 242) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 242 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (242, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 331 LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 120 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 120 AND `account_users`.`account_id` = 231213231231312312341 LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account335' WHERE `accounts`.`id` = 335  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 335 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (335, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:46', 'XbqWam3xinfhnbWygaHMNeONREc') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 22:01:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5ea6096_22e380435d487147a@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/10XbqWam3xinfhnbWygaHMNeONREc  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account336' WHERE `accounts`.`id` = 336  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 336 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (336, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:46', 'DXO7klPH6x0UYpQcBnLIJm5wwzk') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 22:01:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5ea10744_22e380435d48715a6@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/11DXO7klPH6x0UYpQcBnLIJm5wwzk  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account337' WHERE `accounts`.`id` = 337  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 337 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (337, NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account338' WHERE `accounts`.`id` = 338  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 338 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (338, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account339' WHERE `accounts`.`id` = 339  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 339 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (339, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account340' WHERE `accounts`.`id` = 340  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 340 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (340, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account341' WHERE `accounts`.`id` = 341  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 341 AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (341, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account342' WHERE `accounts`.`id` = 342  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 342 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (342, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account343' WHERE `accounts`.`id` = 343  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account344' WHERE `accounts`.`id` = 344  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 344 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (344, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account345' WHERE `accounts`.`id` = 345  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (345, NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 345 AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account346' WHERE `accounts`.`id` = 346  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 346 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (346, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (15.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account347' WHERE `accounts`.`id` = 347  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 347 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (347, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account348' WHERE `accounts`.`id` = 348  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url1.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url1.test.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`url` = 'url2.test.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (348, NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 32  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 348  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = 31  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 348 AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 32 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = 31  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 32 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account349' WHERE `accounts`.`id` = 349  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 349 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (349, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account350' WHERE `accounts`.`id` = 350  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 350 AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (350, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account351' WHERE `accounts`.`id` = 351  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 351 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (351, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account352' WHERE `accounts`.`id` = 352  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 352 AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (352, NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account353' WHERE `accounts`.`id` = 353  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 353 AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (353, NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account354' WHERE `accounts`.`id` = 354  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (354, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 354 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 38  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account355' WHERE `accounts`.`id` = 355  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 355 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (355, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account356' WHERE `accounts`.`id` = 356  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (356, NULL, 'invalid.url.false', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 40  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 356 AND `account_domains`.`verified` = 1 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account357' WHERE `accounts`.`id` = 357  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 357 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (357, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account358' WHERE `accounts`.`id` = 358  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 358 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (358, NULL, 'www.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 42  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:46', 'jabanilson', NULL, 1, '2012-11-29 00:01:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:46', `updated_at` = '2012-11-29 00:01:46', `subdomain` = 'account359' WHERE `accounts`.`id` = 359  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (359, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 359 AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 43  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 42 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account360' WHERE `accounts`.`id` = 360  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 360 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (360, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account361' WHERE `accounts`.`id` = 361  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account362' WHERE `accounts`.`id` = 362  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (362, NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`primary` = 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 362 AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 45 LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account363' WHERE `accounts`.`id` = 363  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 363 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (363, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account364' WHERE `accounts`.`id` = 364  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account365' WHERE `accounts`.`id` = 365  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 365 AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (365, 1, 'www.url1.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account366' WHERE `accounts`.`id` = 366  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 366 AND `account_domains`.`url` = 'www.url2.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (366, 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 47  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 364 WHERE `account_domains`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 364  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 48  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account367' WHERE `accounts`.`id` = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 367 AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (367, NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account368' WHERE `accounts`.`id` = 368  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account369' WHERE `accounts`.`id` = 369  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 369 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (369, 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account370' WHERE `accounts`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 370 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (370, 0, 'www.url2.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 50  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 368 WHERE `account_domains`.`id` = 51  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = 368  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 51  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = 50 LIMIT 1  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account371' WHERE `accounts`.`id` = 371  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 371 AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (371, NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account372' WHERE `accounts`.`id` = 372  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:47', 'jabanilson', NULL, 1, '2012-11-29 00:01:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:47', `updated_at` = '2012-11-29 00:01:47', `subdomain` = 'account373' WHERE `accounts`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 373 AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (373, 1, 'www.url1.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account374' WHERE `accounts`.`id` = 374  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 374 AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (374, 0, 'www.url2.net', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 53  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = 372 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 54  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$mX/HLnCnKmjwk3gq3Xh7Wuz.RKmFhPAuTYGnM9SftzTf/YKp4v8zW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account375' WHERE `accounts`.`id` = 375 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 375 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (375, 122) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 243) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 243 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 375 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 502  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 122 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (243) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (375)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 243) LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (243, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$znyJsH/9x5M1GNBzRY338eYOEGkClzbHAXx5iqzR42xl4YxUEBPY2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account376' WHERE `accounts`.`id` = 376 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 376 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (376, 123) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 376 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 123 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (244) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (376)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 244) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (244, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 244 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 244) LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$sHYJrM7yJW/S6bzhdO.yEupFOtx5x2Z9JYPapVPJevuYgHsxP0ipS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account377' WHERE `accounts`.`id` = 377 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (377, 124) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 245) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 245 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 377 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 508  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 124 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (245) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (377)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 245) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (245, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != 509 AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$j6nnz8uBMSrB02GT7AqTEez8HIRkJfarPmtVIRDm93ahYPJwSaT/6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account378' WHERE `accounts`.`id` = 378 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 378 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (378, 125) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 246) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 246 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 378 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 511  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 125 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (246) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (378)  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 246) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (246, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != 512 AND `account_roles`.`account_user_id` = 246) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` LIMIT 1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'me@me.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'me@me.com', '$2a$04$Oj9Fsh4hkIzopeWkESQMee5ngEBF.iAa4CmdUsIUOFQQjtEF175fW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account384' WHERE `accounts`.`id` = 384 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (384, 126) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 247) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 247 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (247, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account385' WHERE `accounts`.`id` = 385  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account386' WHERE `accounts`.`id` = 386  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (386, 126) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 248) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (248, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 385 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 385 WHERE `account_users`.`id` = 248  (0.1ms) RELEASE SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` INNER JOIN `account_users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 385 AND `users`.`id` = 126 LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdominio' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account389' WHERE `accounts`.`id` = 389  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 389 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account391' WHERE `accounts`.`id` = 391  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 391 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account393' WHERE `accounts`.`id` = 393  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:48', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 393\n created_at: 2012-11-29 00:01:48.353222000Z\n updated_at: 2012-11-29 00:01:48.353222000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account393\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_393_destroy', '2012-11-29 00:01:48', '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_393_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account395' WHERE `accounts`.`id` = 395  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_395_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account397' WHERE `accounts`.`id` = 397  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:48', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 397\n created_at: 2012-11-29 00:01:48.374346000Z\n updated_at: 2012-11-29 00:01:48.374346000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account397\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_397_destroy', '2012-11-29 00:01:48', '2012-11-29 00:01:48')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_397_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account399' WHERE `accounts`.`id` = 399  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_399_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account401' WHERE `accounts`.`id` = 401  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:48', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 401\n created_at: 2012-11-29 00:01:48.394356000Z\n updated_at: 2012-11-29 00:01:48.394356000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account401\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_401_destroy', '2012-11-29 00:01:48', '2012-11-29 00:01:48')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_401_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account403' WHERE `accounts`.`id` = 403  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:48', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 403\n created_at: 2012-11-29 00:01:48.408135000Z\n updated_at: 2012-11-29 00:01:48.408135000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account403\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_403_destroy', '2012-11-29 00:01:48', '2012-11-29 00:01:48')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_403_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account405' WHERE `accounts`.`id` = 405  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_405_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account407' WHERE `accounts`.`id` = 407  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:48', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 407\n created_at: 2012-11-29 00:01:48.430430000Z\n updated_at: 2012-11-29 00:01:48.430430000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account407\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_407_destroy', '2012-11-29 00:01:48', '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48' WHERE `delayed_jobs`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_407_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$.XjLTSKIBYGJGeIMMK1bkO6HWzEGKTuAkQhnWDoL/rkb1cCEpkPEi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account409' WHERE `accounts`.`id` = 409 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 409 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (409, 127) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 127 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 409 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 518  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 249) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 249 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (249, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 409 AND `account_users`.`user_id` = 127 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (249) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (409) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 249 AND `account_roles`.`name` = 'user' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$.UpU5oGtReci2z3KwZtCoOLw3td.Xbi4zfm/5CkMGNG.bZyNExUsu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account411' WHERE `accounts`.`id` = 411 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 411 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (411, 128) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 128 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 411 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 521  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 250) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 250 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (250, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 411 AND `account_users`.`user_id` = 128 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (250) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (411) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 250 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account413' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account413' AND `accounts`.`id` != 413) LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'Named', `updated_at` = '2012-11-29 00:01:48' WHERE `accounts`.`id` = 413  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account415' WHERE `accounts`.`id` = 415  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account415' AND `accounts`.`id` != 415) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = NULL, `updated_at` = '2012-11-29 00:01:48' WHERE `accounts`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account417' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account417' AND `accounts`.`id` != 417) LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-11-29 00:01:48' WHERE `accounts`.`id` = 417  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'subdomainfind', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 419 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (419, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 55  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'getfromdomain.account.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 419 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'subdomainfind', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 421 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (421, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 56  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'subdomainfind.iugusdk.dev' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'subdomainfind' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'unico', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', 'subdomainfind', 1, '2012-11-29 00:01:48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 423 AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (423, NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 57  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'notused.domain.test' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'notused.domain.test' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account424' WHERE `accounts`.`id` = 424  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$7k0g5ann4qP0C/GTGB72QO.vwz1zTpeh.64FSqjjvxwdnpOVCp6e2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account425' WHERE `accounts`.`id` = 425 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 425 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (425, 129) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 251) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 251 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (251, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (424, 129) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 252) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 252 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (252, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (21.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account426' WHERE `accounts`.`id` = 426  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$fWsNHY.fPYGh7Qx8awv2levVA1xXvIMi4CgA61qYFejOmk/fcclSW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account427' WHERE `accounts`.`id` = 427 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 427 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (427, 130) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 253) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 253 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (253, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (426, 130) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 254) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 254 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 426 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 530  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 254) LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (254, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 531 AND `account_roles`.`account_user_id` = 254) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 254 AND `account_roles`.`name` = 'user' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account428' WHERE `accounts`.`id` = 428  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$tqJRKWIOOKbV4jne0fOngOiumK8UgIwkeYwwymOx/h8t08IyPcvxe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account429' WHERE `accounts`.`id` = 429 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 429 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (429, 131) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 255) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 255 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (255, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (428, 131) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 256) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 256 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 428 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 535  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 256) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (256, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 536 AND `account_roles`.`account_user_id` = 256) LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 256 AND `account_roles`.`name` = 'admin' LIMIT 1  (8.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account430' WHERE `accounts`.`id` = 430  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$rd/xkoHJuOGNAEp0C.BBzuksG.63ozU5VbsDF6bCHOBc2uS6Q8OUC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account431' WHERE `accounts`.`id` = 431 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (431, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 257) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 257 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (257, 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (430, 132) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 258) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 258 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 430 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 540  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 258) LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (258, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != 541 AND `account_roles`.`account_user_id` = 258) LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 258 AND `account_roles`.`name` = 'user' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account432' WHERE `accounts`.`id` = 432  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'teste@teste.com', '$2a$04$q6Ue8HwD8tj3ycDva8dv3.xolOUaGHFRxxmVIS/pIN9lDEVeL0UrK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account433' WHERE `accounts`.`id` = 433 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 433 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (433, 133) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 259) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 259 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (259, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (432, 133) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (260, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:48', '2012-11-29 00:01:48', 'notowner@account.test', '$2a$04$K58gmDEdJ/WgF6jIH88uyO8HAOfXoqHx6GEK6kanxqd9oIbeuofTO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:48') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', NULL, NULL, NULL, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account434' WHERE `accounts`.`id` = 434 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 434 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (434, 134) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 261) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 261 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (261, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account435' WHERE `accounts`.`id` = 435  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (435, 134) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 262) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 262 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (262, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 432 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 432 WHERE `account_users`.`id` = 262  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 432 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 545  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 260) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 260 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 260 AND `account_roles`.`name` = 'my_owner' LIMIT 1  (5.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:48', 'jabanilson', NULL, 1, '2012-11-29 00:01:48')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:48', `updated_at` = '2012-11-29 00:01:48', `subdomain` = 'account436' WHERE `accounts`.`id` = 436  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$wfk0OXE8hpYZgSKXaofkDuITfSSSi3lDRn5wX6F/ktnKfeCQycrRe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account437' WHERE `accounts`.`id` = 437 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 437 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (437, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 263) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 263 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (263, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (436, 135) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'notowner@account.test', '$2a$04$kS7oRTwRYqwkKpA7L147D.gH.O52IGvq6Jym3Z2QCBk.AQddiS7Ru', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account438' WHERE `accounts`.`id` = 438 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 438 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (438, 136) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 265) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 265 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (265, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account439' WHERE `accounts`.`id` = 439  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (439, 136) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 266) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 266 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (266, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 436 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 436 WHERE `account_users`.`id` = 266  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 436 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 553  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 264) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 264 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (264, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 264 AND `account_roles`.`name` = 'my_user' LIMIT 1  (11.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account440' WHERE `accounts`.`id` = 440  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$DzJctPfIKMan5EzB/yRElu/C7Dct6XnrAPfkM.cX5WG5.EVYAn0Ry', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account441' WHERE `accounts`.`id` = 441 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 441 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (441, 137) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 267) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 267 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (267, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (440, 137) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 440 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 562  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_guest' AND `account_roles`.`account_user_id` = 268) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 268 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (268, 'my_guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 268 AND `account_roles`.`name` = 'my_guest' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account442' WHERE `accounts`.`id` = 442  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$.Xw6D261I/N1hnchNdeEbOsG4TZV4dgpumytiF6WvK8nQWXKsZpIe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account443' WHERE `accounts`.`id` = 443 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 443 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (443, 138) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 269) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 269 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (269, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (442, 138) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 270  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 442 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 567  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 270) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 270 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (270, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account444' WHERE `accounts`.`id` = 444  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$Bgg8e3VQUWq0cK5KK6Q.Me7RKJYUGbcCxF23melAXXtWAkE6gTIsW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account445' WHERE `accounts`.`id` = 445 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (445, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 271) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 271 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (271, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (444, 139) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 272) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 272 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (272, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 272  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 444 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 572  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account446' WHERE `accounts`.`id` = 446  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$Rc6OFZaR6jNbcYYy5YZU6.ZF1gRuuU3.ecNNrm03VuZ1MsQhZVcJS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account447' WHERE `accounts`.`id` = 447 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (447, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 273) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 273 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (273, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (446, 140) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 274) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 274 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (274, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 274  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 446 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account448' WHERE `accounts`.`id` = 448  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$5VST5F9i4nlvT06snLeUO.qAyHVCzqutGbWHaVl.NFXTIwFsAmlDq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account449' WHERE `accounts`.`id` = 449 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 449 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (449, 141) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 275) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 275 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (275, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (448, 141) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = 276) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 276 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (276, 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 276  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 448 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 580  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account450' WHERE `accounts`.`id` = 450  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$9WsTCgpFnXE0SFBlMKy1QOiJM0UEaKoSO2z1yr0V5aP/Vqo5I9m.G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account451' WHERE `accounts`.`id` = 451 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 451 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (451, 142) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 277) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 277 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (277, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (450, 142) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 278) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 278 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (278, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:49', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 278\n account_id: 450\n user_id: 142\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_278_destroy', '2012-11-29 00:01:49', '2012-11-29 00:01:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_278_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account452' WHERE `accounts`.`id` = 452  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$wZni0YoPv/p.NwZotaT4CuCUI2W7UO9/1tMnWvdCe.LAiCsQxX9be', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account453' WHERE `accounts`.`id` = 453 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 453 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (453, 143) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 279) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 279 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (279, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (452, 143) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 280) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 280 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (280, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_280_destroy' LIMIT 1  (5.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account454' WHERE `accounts`.`id` = 454  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$EnnNAO9B1Fr5CzlkivRuBuFl7QbDqUTyC8q0FLWT6ZQmTxlv734Ae', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account455' WHERE `accounts`.`id` = 455 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (455, 144) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 281) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 281 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (281, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (454, 144) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 282) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 282 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (282, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account456' WHERE `accounts`.`id` = 456  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:49', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 282\n account_id: 454\n user_id: 144\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_282_destroy', '2012-11-29 00:01:49', '2012-11-29 00:01:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_282_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account457' WHERE `accounts`.`id` = 457  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$zdoqFQpGrmEkDEAbFHxMDuW7dNR4K4.9OtgFd5FqcQso2rlTAdmMu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account458' WHERE `accounts`.`id` = 458 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (458, 145) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 283) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 283 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (283, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (457, 145) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 284) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 284 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (284, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account459' WHERE `accounts`.`id` = 459  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_284_destroy' LIMIT 1  (3.5ms) ROLLBACK  (0.2ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account460' WHERE `accounts`.`id` = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$6NlXo085U7Ai8xNUW77XtefsEattM60gXM4N/YuxlGW2Vmz0EqfCW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account461' WHERE `accounts`.`id` = 461 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 461 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (461, 146) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 285) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 285 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (285, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (460, 146) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 286) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 286 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (286, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account462' WHERE `accounts`.`id` = 462  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:49', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 286\n account_id: 460\n user_id: 146\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_286_destroy', '2012-11-29 00:01:49', '2012-11-29 00:01:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_286_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account463' WHERE `accounts`.`id` = 463  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$civ9/ETND9/pXezTURHN1usLhaR.UUK8z2tFtc9nKibbi2/jJd5Ja', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account464' WHERE `accounts`.`id` = 464 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 464 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (464, 147) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 287) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 287 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (287, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (463, 147) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 288) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 288 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (288, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account465' WHERE `accounts`.`id` = 465  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:49', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 288\n account_id: 463\n user_id: 147\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_288_destroy', '2012-11-29 00:01:49', '2012-11-29 00:01:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_288_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 27  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account466' WHERE `accounts`.`id` = 466  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$AYIInFS/GED8RjkyugNmEu2GTM2DTEwBFXvAYInz0kU/rNwHMP.ZW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account467' WHERE `accounts`.`id` = 467 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 467 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (467, 148) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 289) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 289 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (289, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (466, 148) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 290) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 290 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (290, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account468' WHERE `accounts`.`id` = 468  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_290_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account469' WHERE `accounts`.`id` = 469  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$Rr0PlhULB55duwWv6PqUDe.YFs4ABGAcV6sWdtAOqxBJYOdseamYe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account470' WHERE `accounts`.`id` = 470 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 470 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (470, 149) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 291) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 291 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (291, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (469, 149) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 292) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 292 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (292, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account471' WHERE `accounts`.`id` = 471  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:49', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 292\n account_id: 469\n user_id: 149\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_292_destroy', '2012-11-29 00:01:49', '2012-11-29 00:01:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49' WHERE `delayed_jobs`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_292_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account472' WHERE `accounts`.`id` = 472  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 472 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:49', 'api token', '4d662f815d9397fad4345eaae1eeb340', 472, 'Account', '2012-11-29 00:01:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '4d662f815d9397fad4345eaae1eeb340' LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY '4d662f815d9397fad4345eaae1eeb340' LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account473' WHERE `accounts`.`id` = 473  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 473 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:49', 'api token', '505a90c9b36685cca94f16bc0f7116af', 473, 'Account', '2012-11-29 00:01:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account474' WHERE `accounts`.`id` = 474  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 474 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:49', 'api token', 'c1756fb61c51453dc57489a5cb17f930', 474, 'Account', '2012-11-29 00:01:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account475' WHERE `accounts`.`id` = 475  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 475 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:49', 'api token', '4e8915dae7309e5103de65a0914c8686', 475, 'Account', '2012-11-29 00:01:49')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account476' WHERE `accounts`.`id` = 476  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:49', 'token 1', '400842d4ec00fb0e0b7d10fc405f3171', 476, 'Account', '2012-11-29 00:01:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`token` = BINARY '400842d4ec00fb0e0b7d10fc405f3171' AND `api_tokens`.`id` != 8) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`id` != 8 AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 476 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = 476 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account477' WHERE `accounts`.`id` = 477  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = 477 AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-11-29 00:01:49', 'api token', '87883c57ec4beabd346511596c2bbc61', 477, 'Account', '2012-11-29 00:01:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', '', '$2a$04$wGWrEprnKmOrpwb8YKyyMO.vfoflNNh.oOb.GCHCvHT4/t.y8kMZK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account478' WHERE `accounts`.`id` = 478 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 478 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (478, 150) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 293) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 293 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (293, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = 150 WHERE `social_accounts`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 150 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 150  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$mCqlwvF85JWMxMYPQSUwdemfmF5AdwapvOwHH0xKchhUPrTxvaNTm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account479' WHERE `accounts`.`id` = 479 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 479 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (479, 151) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 294) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 294 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (294, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 151)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '', `updated_at` = '2012-11-29 00:01:49' WHERE `users`.`id` = 151  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 151  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'teste@teste.com', '$2a$04$wJc78mP/1WsGgyRWDu7juO2US6Zq5dJDjBxyydhHuOJIH6lnHKbWu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account480' WHERE `accounts`.`id` = 480 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 480 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (480, 152) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 295) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 295 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (295, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 123123123, NULL, 152)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'testing@email.test' AND `users`.`id` != 152) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'testing@email.test', `encrypted_password` = '$2a$04$pHzMtlZMFLaSnbfZ337Q/OP5qJtWk0OOI7KHpGePoe/RRGHtmXjfS', `updated_at` = '2012-11-29 00:01:49' WHERE `users`.`id` = 152  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 152  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', 'jabanilson', NULL, 1, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account481' WHERE `accounts`.`id` = 481  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:49', '2012-11-29 00:01:49', 'invited@test.test', '$2a$04$yrjwNBjyO9lT6N.IS1TvIOdWqyG.xXwwfG27lHjnq3QK.cBTujGim', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:49') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:49', NULL, NULL, NULL, '2012-11-29 00:01:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:49', `updated_at` = '2012-11-29 00:01:49', `subdomain` = 'account482' WHERE `accounts`.`id` = 482 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (482, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 296) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 296 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (296, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 481 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (481, 153) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 297) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 297 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (297, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 481 AND `users`.`email` = 'invited@test.test'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-29 00:01:49', '3G9x0T5cTT-PLTRtTHSC547TdWA') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:49 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a5edf0a47_22e380435d48716bf@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/123G9x0T5cTT-PLTRtTHSC547TdWA  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, NULL, '2012-11-29 00:01:49', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a5ee2a7e_22e380435d48717b5@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/13oiaa09s1jiUHAS8danja9sja0  (0.2ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 13 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-29 00:01:50', 'v6rilPdGK9RLb_sEiauUcxjNUNU') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a5ee97cb_22e380435d4871853@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/14v6rilPdGK9RLb_sEiauUcxjNUNU  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', NULL, 'user', '2012-11-29 00:01:50', 'SFrDMWX4mYVhuxSiQJN3GtcJRLY') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a5eefd26_22e380435d48719f9@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/15SFrDMWX4mYVhuxSiQJN3GtcJRLY  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account483' WHERE `accounts`.`id` = 483  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 483 AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (483, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:50', 'f_xj4Asas_xBqcgVTsy62HrtOZY') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5ee16f41_22e380435d487205c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/16f_xj4Asas_xBqcgVTsy62HrtOZY  (0.2ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 16 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account484' WHERE `accounts`.`id` = 484  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 484 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (484, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:50', 'eHiixdrha0Mz-jiZNECwou67r-8') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5ee1e6fd_22e380435d48721cc@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/17eHiixdrha0Mz-jiZNECwou67r-8  (0.2ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 1238 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account485' WHERE `accounts`.`id` = 485  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 485 AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (485, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:50', 'BHSFpJs-HUKqo1IPi1NDZzZ4sGA') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5ee25c13_22e380435d48722f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/18BHSFpJs-HUKqo1IPi1NDZzZ4sGA  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account486' WHERE `accounts`.`id` = 486  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$L2DkYRZf5BKeFGuq6XeSKORulRS8Y.nd87HzRazPjjtHi9b78gczK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account487' WHERE `accounts`.`id` = 487 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (487, 154) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 298) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 298 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (298, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 486 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 486 WHERE `user_invitations`.`id` = 18  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 486 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (486, 154) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 299) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 299 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (299, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 486 AND `account_users`.`user_id` = 154 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (299) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (486)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account488' WHERE `accounts`.`id` = 488  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 488 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (488, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:50', 'e3atzZUDi30iO0jEtFYCK_7eN2Q') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5ee519d7_22e380435d48723d4@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/19e3atzZUDi30iO0jEtFYCK_7eN2Q  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account489' WHERE `accounts`.`id` = 489  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$B.Zw1Nx1IbmTWsYYgogBa.F3Nq.P.NK5So.MRNMrl3tuDSZFmPa9m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account490' WHERE `accounts`.`id` = 490 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 490 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (490, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 300) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 300 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (300, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 489 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = 19  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 488 AND `account_users`.`user_id` = 155  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (488, 155) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 488 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 630  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = 301) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 301 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (301, 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 301 AND `account_roles`.`name` = 'user' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account491' WHERE `accounts`.`id` = 491  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 491 AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (491, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:50', 'whcc9ahHp2YqZTEvovZRBll4LRI') Sent mail to teste@teste.teste (6ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5ee66ec3_22e380435d48724ad@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/20whcc9ahHp2YqZTEvovZRBll4LRI  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account492' WHERE `accounts`.`id` = 492  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$vsfJ7B2pUwtHAS0cThYqzuiRG2UmgItqLSIvLjyQne5pPaAhazeCO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account493' WHERE `accounts`.`id` = 493 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 493 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (493, 156) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 302) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 302 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (302, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 492 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 492 WHERE `user_invitations`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 492 AND `account_users`.`user_id` = 156  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (492, 156) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 303) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 303 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (303, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account494' WHERE `accounts`.`id` = 494  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 494 AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (494, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:01:50', 'lxBtWAk4sCtXMZn-Asxv-l6zBME') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a5ee79249_22e380435d487259b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/21lxBtWAk4sCtXMZn-Asxv-l6zBME  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account495' WHERE `accounts`.`id` = 495  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$h9i4zD.asYk1r.Y6HIQWj.hC2CTsJyPkKKXwNBUV3d0h2e11qidgi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account496' WHERE `accounts`.`id` = 496 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (496, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 304) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 304 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (304, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 495 AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = 495 WHERE `user_invitations`.`id` = 21  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (495, 157) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 305) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 305 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (305, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 495 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 495 AND `account_users`.`user_id` = 157  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$qT73ukS1lL1jz8Ly1pzsvOogsrdriYqKU7ggU4mWWVzjk8g7zVI4G', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account497' WHERE `accounts`.`id` = 497 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (497, 158) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 306) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 306 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (306, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$GpyWgNNyqPSFRBj2xncRL.LD3bPsFxoIifTpb2k4aH/CKtc/OX01a', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account498' WHERE `accounts`.`id` = 498 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (498, 159) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 307) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 307 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (307, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$yLsodcqYvSz7hEDChNaWJOrT3h2/60J/jPXtNlHZCSUCaZCkiXWSq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account499' WHERE `accounts`.`id` = 499 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 499 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (499, 160) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 308) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (308, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$xxMtsgenFOI37cNodRN0W.Y16oDn9ELiAriKXQ4fHCohQil3au4rK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account500' WHERE `accounts`.`id` = 500 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (500, 161) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 309) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (309, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 161  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$FfBSlht.Fdr8B9zJ75SgieMvRDGjj26H1ZouyUJRJyYPwzqTE58jK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:50', 'User', 'cd83d8cc1d4e94396e978f1409a99831', 162, 'User', '2012-11-29 00:01:50') ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 162 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account501' WHERE `accounts`.`id` = 501 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (501, 162) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 310) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 310 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (310, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'teste@teste.com', '$2a$04$6c5EyuOpcONlvKZ9IKLr6eFp.R2G6slbLj33HioUQVUAQlw9I6nEy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:50', 'User', '656c10081c3429669c0d700eb67b4144', 163, 'User', '2012-11-29 00:01:50') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 163 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account502' WHERE `accounts`.`id` = 502 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (502, 163) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 311) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 311 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (311, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5eeb4525_22e380435d4872695@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'account1@before.destroy', '$2a$04$xus9Hvmo8P45LwkjVBkXhuTVErDxVZjeT5Rko7YEvj11mncOdY.iO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:50', 'User', '7bd731e940019d04e81265f31de5ba05', 164, 'User', '2012-11-29 00:01:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 164 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account503' WHERE `accounts`.`id` = 503 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 503 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (503, 164) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 312) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 312 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (312, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b6a5eebf865_22e380435d4872779@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 164\n email: account1@before.destroy\n encrypted_password: $2a$04$xus9Hvmo8P45LwkjVBkXhuTVErDxVZjeT5Rko7YEvj11mncOdY.iO\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:50.753101000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:50.753479000Z\n updated_at: 2012-11-29 00:01:50.753479000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_164_destroy', '2012-11-29 00:01:50', '2012-11-29 00:01:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_164_destroy' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 164 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 164 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (312) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (503) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 312\n account_id: 503\n user_id: 164\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_312_destroy', '2012-11-29 00:01:50', '2012-11-29 00:01:50') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 164 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 164  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 503 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 503\n created_at: 2012-11-29 00:01:50.000000000Z\n updated_at: 2012-11-29 00:01:50.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account503\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_503_destroy', '2012-11-29 00:01:50', '2012-11-29 00:01:50') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = 164  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_503_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:50', '2012-11-29 00:01:50', 'account1@before.destroy', '$2a$04$pmk96K.1T4arYCvdi.Ay/uVon5DW38n69O9nfy5Nj/sBK2hDdJlEy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:50', 'User', 'c69d8cf4ca33d9ee0e9c9d78cfb7ee1d', 165, 'User', '2012-11-29 00:01:50') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 165 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', NULL, NULL, NULL, '2012-11-29 00:01:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account504' WHERE `accounts`.`id` = 504 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 504 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (504, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 313) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 313 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (313, 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 28 Nov 2012 22:01:50 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b6a5eee75a1_22e380435d4872892@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:50', 'jabanilson', NULL, 1, '2012-11-29 00:01:50')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:50', `updated_at` = '2012-11-29 00:01:50', `subdomain` = 'account505' WHERE `accounts`.`id` = 505  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (505, 165) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 314) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 314 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (314, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165 ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 165\n email: account1@before.destroy\n encrypted_password: $2a$04$pmk96K.1T4arYCvdi.Ay/uVon5DW38n69O9nfy5Nj/sBK2hDdJlEy\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:50.917073000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:50.917485000Z\n updated_at: 2012-11-29 00:01:50.917485000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_165_destroy', '2012-11-29 00:01:50', '2012-11-29 00:01:50')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_165_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 165 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (313, 314) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (504, 505) SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 313\n account_id: 504\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_313_destroy', '2012-11-29 00:01:50', '2012-11-29 00:01:50') SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 314\n account_id: 505\n user_id: 165\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_314_destroy', '2012-11-29 00:01:50', '2012-11-29 00:01:50') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 165 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 165  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 504 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 504\n created_at: 2012-11-29 00:01:50.000000000Z\n updated_at: 2012-11-29 00:01:50.000000000Z\n name: !!null \n subscription_id: !!null \n subdomain: account504\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_504_destroy', '2012-11-29 00:01:50', '2012-11-29 00:01:50')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 505 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:50', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 505\n created_at: 2012-11-29 00:01:50.000000000Z\n updated_at: 2012-11-29 00:01:50.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account505\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_505_destroy', '2012-11-29 00:01:50', '2012-11-29 00:01:50') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = 165  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_505_destroy' LIMIT 1  (2.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:51', '2012-11-29 00:01:51', 'account1@before.destroy', '$2a$04$ZKPr65fZRY9J.OMCDR24jeLp.9vihrivjrXbFxpkOfksfRaE85zoG', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '49fecee316ad47cd4c88865fcafaca4d', 166, 'User', '2012-11-29 00:01:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 166 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account506' WHERE `accounts`.`id` = 506 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 166) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 315) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 315 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (315, 'admin') Sent mail to account1@before.destroy (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50b6a5efa199_22e380435d4872919@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:51', '2012-11-29 00:01:51', 'account2@before.destroy', '$2a$04$IWzm0fqO7m0j8fQ4MCCe5.sMDuYv31vI/3OEUAD5mEP/gtA2fc04y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', 'ae0d9470424761521b71ac215e290fb3', 167, 'User', '2012-11-29 00:01:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 167 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account507' WHERE `accounts`.`id` = 507 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 507 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (507, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 316) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 316 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (316, 'admin') Sent mail to account2@before.destroy (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50b6a5ef152fb_22e380435d4873057@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 506 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (506, 167) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 317) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 317 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (317, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 166\n email: account1@before.destroy\n encrypted_password: $2a$04$ZKPr65fZRY9J.OMCDR24jeLp.9vihrivjrXbFxpkOfksfRaE85zoG\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:51.010143000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:51.010552000Z\n updated_at: 2012-11-29 00:01:51.010552000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_166_destroy', '2012-11-29 00:01:51', '2012-11-29 00:01:51')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_166_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 166 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 166 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (315) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (506) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 315\n account_id: 506\n user_id: 166\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_315_destroy', '2012-11-29 00:01:51', '2012-11-29 00:01:51') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 166 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 166  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = 506 SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = 166  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_506_destroy' LIMIT 1  (3.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:51', '2012-11-29 00:01:51', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '177f7fccbf62447f084ae9c158188c65', 168, 'User', '2012-11-29 00:01:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 168 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account508' WHERE `accounts`.`id` = 508 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (508, 168) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 318) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 318 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (318, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 168\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:51.130513000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:51.131290000Z\n updated_at: 2012-11-29 00:01:51.131290000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_168', '2012-12-06 00:01:51', '2012-11-29 00:01:51')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 168 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != 168) LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `email` = 'regular@user.now', `encrypted_password` = '$2a$04$bBGe6XQiPSVMIw.jZNJ0tuXjMRreeHbP25cR1Ut7xEPxRM9LV5R1C', `updated_at` = '2012-11-29 00:01:51' WHERE `users`.`id` = 168  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_168' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:51', '2012-11-29 00:01:51', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '87f1d9870d39ba49fcff809747066f97', 169, 'User', '2012-11-29 00:01:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 169 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account509' WHERE `accounts`.`id` = 509 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 509 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (509, 169) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 319) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 319 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (319, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 169\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:51.172666000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:51.173826000Z\n updated_at: 2012-11-29 00:01:51.173826000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_169', '2012-12-06 00:01:51', '2012-11-29 00:01:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 169 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != 169) LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:51', '2012-11-29 00:01:51', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '162427290409964cbf277776c54e467e', 170, 'User', '2012-11-29 00:01:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 170 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account510' WHERE `accounts`.`id` = 510 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 510 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (510, 170) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 320) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 320 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (320, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:51', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 170\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:51.207008000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:51.208060000Z\n updated_at: 2012-11-29 00:01:51.208060000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_170', '2012-12-06 00:01:51', '2012-11-29 00:01:51')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 170  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '72aPxnUxsf7rzVCvbxaC' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-29 00:01:51', '72aPxnUxsf7rzVCvbxaC', '2012-11-29 00:01:51', '2012-11-29 00:01:51', 'confirmation@skip.test', '$2a$04$dwiH1PnBcstnILFQlapRgelfwAFOkr8CvW4zU8EScDlN5NDyhv2RK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '526415ec29439f36275c133504800497', 171, 'User', '2012-11-29 00:01:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 171 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account511' WHERE `accounts`.`id` = 511 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 511 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (511, 171) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 321) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 321 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (321, 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50b6a5ef43ab1_22e380435d48731c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'iP8hCKXAMRE9QxEYyFh1' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-29 00:01:51', 'iP8hCKXAMRE9QxEYyFh1', NULL, '2012-11-29 00:01:51', 'confirmation@needed.test', '$2a$04$exSt0Z4NL6TA0ih4hkvIveeyfWvI/W0jtSpNE7fY/bujiHP.81fvq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') Sent mail to confirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b6a5ef4cc56_22e380435d4873235@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', 'd39b406ef6fec302698173c9d1ef3338', 172, 'User', '2012-11-29 00:01:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 172 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account512' WHERE `accounts`.`id` = 512 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (512, 172) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 322) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 322 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (322, 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50b6a5ef55bad_22e380435d48733eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '1TAGxXFgMUmSHWZu6cJj' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-29 00:01:51', '1TAGxXFgMUmSHWZu6cJj', NULL, '2012-11-29 00:01:51', 'reconfirmation@needed.test', '$2a$04$tzrFnMJcRCR02Kwa1AVP/.p9EbeWFqBNvd6xy.xPv1158rHWLz3xu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6a5ef5d38d_22e380435d48734d1@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', 'b0e8595101a8e8b361e788a3e974ce7c', 173, 'User', '2012-11-29 00:01:51') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 173 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account513' WHERE `accounts`.`id` = 513 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 513 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (513, 173) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 323) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 323 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (323, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6a5ef7d326_22e380435d48735f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 173 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 173) LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-29 00:01:51' WHERE `users`.`id` = 173 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'bpcKJwDnuyr1xEKUMwhs' LIMIT 1  (0.3ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-11-29 00:01:51', `confirmation_token` = 'bpcKJwDnuyr1xEKUMwhs' WHERE `users`.`id` = 173 Sent mail to new@email.test (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50b6a5ef83bd2_22e380435d4873622@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'raMdGBTzY7X769szVeX8' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-29 00:01:51', 'raMdGBTzY7X769szVeX8', NULL, '2012-11-29 00:01:51', 'reconfirmation@needed.test', '$2a$04$QWFzsqCBcItI3JyiwM1XF.VG2v2XIz23f8ZVjKwaHTpIFSFRfT9k6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') Sent mail to reconfirmation@needed.test (8ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6a5ef8b0f2_22e380435d48737fb@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', 'a6a9ecea20ee7b9e6135e358998eb78c', 174, 'User', '2012-11-29 00:01:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 174 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account514' WHERE `accounts`.`id` = 514 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 514 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (514, 174) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 324) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 324 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (324, 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50b6a5ef943ca_22e380435d48738ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 174 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != 174) LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-11-29 00:01:51' WHERE `users`.`id` = 174  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:51', 'teste@teste.com', '$2a$04$NIFgMaG5R3k8VNNyw4sGUO2D8UDLazCy52ZkbyFYDYweLJZRfleJm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '299d0e45eb744b5b0cfc4b8dff62dfe2', 175, 'User', '2012-11-29 00:01:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 175 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account515' WHERE `accounts`.`id` = 515 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (515, 175) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 325) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 325 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (325, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5efa1048_22e380435d48739a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 175)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 175  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:51', 'teste@teste.com', '$2a$04$EDFIZrRY.1pvW.Xjw8x5pu75jHkc.d5sqJf0biyYbIS3nUyve7dKq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '21f4ee6de5d7117b6858698ef949bca6', 176, 'User', '2012-11-29 00:01:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 176 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account516' WHERE `accounts`.`id` = 516 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (516, 176) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 326) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 326 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (326, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5efacddd_22e380435d48740e3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 176)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 176 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:51', '2012-11-29 00:01:51', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', 'ba187c11f707ec05950bb1175457c588', 177, 'User', '2012-11-29 00:01:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 177 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account517' WHERE `accounts`.`id` = 517 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 517 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (517, 177) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 327) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 327 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (327, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 177)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 177 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:51', '2012-11-29 00:01:51', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '180980476b0cfd4db6322228e1ed34c5', 178, 'User', '2012-11-29 00:01:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 178 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account518' WHERE `accounts`.`id` = 518 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 518 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (518, 178) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 328) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 328 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (328, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5efbf120_22e380435d48741ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 178)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 178 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:51', 'teste@teste.com', '$2a$04$4Z.XFZKHxh3JcSZz9kFTr.pAHe7o6OI5YaJZnJlJ.DilquGSUUs8O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '899482726302975922cb8d39d241e89b', 179, 'User', '2012-11-29 00:01:51') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 179 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account519' WHERE `accounts`.`id` = 519 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 519 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (519, 179) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 329) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 329 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (329, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5efcad68_22e380435d48742ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 179)  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 179 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:51', 'teste@teste.com', '$2a$04$3Ev2gEpyXxtwkyNRSBde3OhJZfpsJ.2/ciq4cb4fEgSOjKGjiWAEi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '593824c75cb284e5c571c057911da4ee', 180, 'User', '2012-11-29 00:01:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 180 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account520' WHERE `accounts`.`id` = 520 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 520 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (520, 180) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 330) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 330 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (330, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5efd7448_22e380435d487439@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 180)  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 180 LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `token` = 'newtoken' WHERE `social_accounts`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`id` = 21 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'Dxw1cDsBryNXXZKYHXAB' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-29 00:01:51', 'Dxw1cDsBryNXXZKYHXAB', NULL, '2012-11-29 00:01:51', 'test@email.test', '$2a$04$zYW5orNnEAhcpREIycfulOvG8J1ka2l8nOAgqsGtPiMbG8E1AF3fC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b6a5efe04e9_22e380435d487448@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:51', 'User', '4ff3a2d9bbcf2ef2eba5b89b7a3970f2', 181, 'User', '2012-11-29 00:01:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 181 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:51', NULL, NULL, NULL, '2012-11-29 00:01:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:51', `updated_at` = '2012-11-29 00:01:51', `subdomain` = 'account521' WHERE `accounts`.`id` = 521 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 521 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (521, 181) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 331) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 331 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (331, 'admin') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 22:01:51 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b6a5efe8b10_22e380435d4874573@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 181  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'fC7GyaWpmFyxxpNgW3oR' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-11-29 00:01:51', 'fC7GyaWpmFyxxpNgW3oR', NULL, '2012-11-29 00:01:51', 'test@email.test', '$2a$04$mw33f..Q/QO2eWBFS27.Iu2wk3ADEvDCiQIeA39cqvdPeYJZFIMaW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:51') Sent mail to test@email.test (6ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b6a5f013cfe_22e380435d4874611@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', 'b53667bf8bc201b85ddd34720ec6d1a2', 182, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 182 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (8ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50b6a5f019967_22e380435d4874758@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 182  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$LSSj80qx8h03DR/TkH2yr.7EqeqHc3E./jS8fJs2A1962yfcgALwm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '836c3f70a4cafed20ec48dac4b2d6295', 183, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 183 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account522' WHERE `accounts`.`id` = 522 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 522 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (522, 183) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 332) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 332 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (332, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f0251aa_22e380435d48748cc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 183 LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$VFFs4CbODqAZRMCGrpGQ6eT/.C17xHNBi4VftoWyhQjRV.FV3COIq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', 'b0021becf399ca715f7186c8bb415aa5', 184, 'User', '2012-11-29 00:01:52') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 184 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account523' WHERE `accounts`.`id` = 523 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (523, 184) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 333) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 333 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (333, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f031a58_22e380435d4874958@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 184 AND (accounts.id = 523) LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$66mfqPDh3DtxrdAdykxZleq220L9LOqgUEq7IHrbAxdp62nhNwb.i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '48b66013450cec97be52c44e8b7ea227', 185, 'User', '2012-11-29 00:01:52') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 185 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account524' WHERE `accounts`.`id` = 524 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (524, 185) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 334) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 334 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (334, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f03d5d9_22e380435d487504c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 185 AND (accounts.id = 524) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$AVrRRjnFaC45EGwoO3Oziu5HHQTazORraXHZIGF8dL2ipvi3YNzqW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '0b1a566caf246458ca1a707ad103aa19', 186, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 186 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account525' WHERE `accounts`.`id` = 525 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 525 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (525, 186) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 335) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 335 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (335, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f048fcf_22e380435d487519a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 186\n email: teste@teste.com\n encrypted_password: $2a$04$AVrRRjnFaC45EGwoO3Oziu5HHQTazORraXHZIGF8dL2ipvi3YNzqW\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:01:33.475567000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.269048000Z\n updated_at: 2012-11-29 00:01:52.269048000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_186_destroy', '2012-11-29 00:01:52', '2012-11-29 00:01:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_186_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$6x/7S0fXlTzBma0Yylfm5ukO/X7Dt.4PHV0DsHbDLMWMXncOH5l0S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', 'd8a6c176a5424b1e81162f8828d9c6cc', 187, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 187 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account526' WHERE `accounts`.`id` = 526 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 526 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (526, 187) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 336) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 336 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (336, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f055ef1_22e380435d4875231@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_187_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$VbOO5DFU9pES7sL2Y1xjR.ISDqLhD/Uf/POTdlYTh0kGwzW67rN3e', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '52a6d57a04e2fb894355c261d64ef7aa', 188, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 188 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account527' WHERE `accounts`.`id` = 527 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (527, 188) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 337) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 337 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (337, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f061b10_22e380435d4875310@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 188\n email: teste@teste.com\n encrypted_password: $2a$04$VbOO5DFU9pES7sL2Y1xjR.ISDqLhD/Uf/POTdlYTh0kGwzW67rN3e\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:01:33.475567000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.367351000Z\n updated_at: 2012-11-29 00:01:52.367351000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_188_destroy', '2012-11-29 00:01:52', '2012-11-29 00:01:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_188_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$3f4fvN2eSXwG0IBqaVeZoemForDmTND9ty.Nq5Z1tfiFm1LTIApca', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', 'be6948a99755355565db2f9bd8969820', 189, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 189 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account528' WHERE `accounts`.`id` = 528 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 528 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (528, 189) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 338) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 338 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (338, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f06e064_22e380435d487540@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_189_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$DddzmqyHcdnxZRKxHr9.de3vvC0Kjkl14a/JbC5Q4nV094RD/OACO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '6d889354e681b2fad8c16f9758c9bc4f', 190, 'User', '2012-11-29 00:01:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 190 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account529' WHERE `accounts`.`id` = 529 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 529 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (529, 190) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 339) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 339 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (339, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f0794c8_22e380435d48755f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 190\n email: teste@teste.com\n encrypted_password: $2a$04$DddzmqyHcdnxZRKxHr9.de3vvC0Kjkl14a/JbC5Q4nV094RD/OACO\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:01:33.475567000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.466078000Z\n updated_at: 2012-11-29 00:01:52.466078000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_190_destroy', '2012-11-29 00:01:52', '2012-11-29 00:01:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 44  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_190_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$h2YQ.aSE52DoKEvz4jeXAeFP9QFGhXthtdoqXzEcao2ioN0tz8mm2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '52844851baa9eb1e05494ef3abc86600', 191, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 191 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account530' WHERE `accounts`.`id` = 530 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 530 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (530, 191) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 340) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 340 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (340, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f09d3b4_22e380435d48756f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 191\n email: teste@teste.com\n encrypted_password: $2a$04$h2YQ.aSE52DoKEvz4jeXAeFP9QFGhXthtdoqXzEcao2ioN0tz8mm2\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:01:33.475567000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.517861000Z\n updated_at: 2012-11-29 00:01:52.517861000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_191_destroy', '2012-11-29 00:01:52', '2012-11-29 00:01:52')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_191_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 45  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$ham.KvZaT3tr2YR22RKZW.UrqRNgk3.L2frboWwMGZeIVjLnz2hC.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', 'bb1e6d8c4af3da9d0311d002a76c8ba6', 192, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 192 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account531' WHERE `accounts`.`id` = 531 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (531, 192) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 341) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 341 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (341, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f0a9bc7_22e380435d48757fe@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_192_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$Kjz4YXvEVt.jItRLJkM4N.vCitMrCJirEuvmz0tGtjT8nO172/mNe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '9c91323b434cbdd480bc7343ab902a60', 193, 'User', '2012-11-29 00:01:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 193 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account532' WHERE `accounts`.`id` = 532 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (532, 193) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 342) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 342 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (342, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f0b5684_22e380435d4875892@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 193\n email: teste@teste.com\n encrypted_password: $2a$04$Kjz4YXvEVt.jItRLJkM4N.vCitMrCJirEuvmz0tGtjT8nO172/mNe\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-28 22:01:33.475567000 -02:00\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.712709000Z\n updated_at: 2012-11-29 00:01:52.712709000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_193_destroy', '2012-11-29 00:01:52', '2012-11-29 00:01:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52' WHERE `delayed_jobs`.`id` = 46  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_193_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$a4gj6YRRJiELpliC1nVVB.Nr0UUDdarzqUDiWofC1llr1fABNEyaK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '6ab858ec5efbddbf043c35f2b70ef5d7', 194, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 194 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account533' WHERE `accounts`.`id` = 533 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 533 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (533, 194) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f0c2c4f_22e380435d48759b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 194 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 533 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 716  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 343) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 343 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (343, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 533 AND `account_users`.`user_id` = 194 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (343) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (533) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 343 AND `account_roles`.`name` = 'user' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:52', 'teste@teste.com', '$2a$04$lMunYlZz6lxLXV5XDrXhh.fbLGoALusSjR/faDyWFscc/t/66pi0u', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '1881c21584bd88b4df1d0c89f76fa2e0', 195, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 195 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account534' WHERE `accounts`.`id` = 534 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 534 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (534, 195) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:01:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f0d33ab_22e380435d4876041@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 195 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 534 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 719  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 344) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 344 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (344, 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 534 AND `account_users`.`user_id` = 195 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (344) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (534) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 344 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:52', '2012-11-29 00:01:52', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', '1a451ac6ce5f12794c1a962e16ca01fd', 196, 'User', '2012-11-29 00:01:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 196 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account535' WHERE `accounts`.`id` = 535 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 535 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (535, 196) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 345) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 345 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (345, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 196\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:52.893322000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.893901000Z\n updated_at: 2012-11-29 00:01:52.893901000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_196', '2012-12-06 00:01:52', '2012-11-29 00:01:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:52', '2012-11-29 00:01:52', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', 'c37d3c5a8283aafd0e7e91d7a0469d60', 197, 'User', '2012-11-29 00:01:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 197 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account536' WHERE `accounts`.`id` = 536 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 536 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (536, 197) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 346) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 346 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (346, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 197\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:52.922458000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.922915000Z\n updated_at: 2012-11-29 00:01:52.922915000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_197', '2012-12-06 00:01:52', '2012-11-29 00:01:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:52', '2012-11-29 00:01:52', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', 'c82e4634a3b48b7c23414768fca97fc9', 198, 'User', '2012-11-29 00:01:52') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 198 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account537' WHERE `accounts`.`id` = 537 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (537, 198) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 347) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 347 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (347, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 198\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:52.946592000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.947074000Z\n updated_at: 2012-11-29 00:01:52.947074000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_198', '2012-12-06 00:01:52', '2012-11-29 00:01:52')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:52', '2012-11-29 00:01:52', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:52', 'User', 'e7b88706c2235a8995691a7e314ad513', 199, 'User', '2012-11-29 00:01:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 199 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:52', NULL, NULL, NULL, '2012-11-29 00:01:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:52', `updated_at` = '2012-11-29 00:01:52', `subdomain` = 'account538' WHERE `accounts`.`id` = 538 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 538 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (538, 199) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 348) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 348 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (348, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:52', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 199\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:52.970206000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.970685000Z\n updated_at: 2012-11-29 00:01:52.970685000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_199', '2012-12-06 00:01:52', '2012-11-29 00:01:52')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:52', '2012-11-29 00:01:52', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:53', 'User', '86a6425486b78566d9b3b2805ecaa68a', 200, 'User', '2012-11-29 00:01:53') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 200 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:53', NULL, NULL, NULL, '2012-11-29 00:01:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:53', `updated_at` = '2012-11-29 00:01:53', `subdomain` = 'account539' WHERE `accounts`.`id` = 539 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (539, 200) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 349) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 349 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (349, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 200\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:52.996870000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:52.997278000Z\n updated_at: 2012-11-29 00:01:52.997278000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_200', '2012-12-06 00:01:53', '2012-11-29 00:01:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:53', '2012-11-29 00:01:53', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:53') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:53', 'User', '1a41259454870711cf61051f8384ed8f', 201, 'User', '2012-11-29 00:01:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 201 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:53', NULL, NULL, NULL, '2012-11-29 00:01:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:53', `updated_at` = '2012-11-29 00:01:53', `subdomain` = 'account540' WHERE `accounts`.`id` = 540 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 540 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (540, 201) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 350) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 350 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (350, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 201\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:53.021470000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:53.021865000Z\n updated_at: 2012-11-29 00:01:53.021865000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_201', '2012-12-06 00:01:53', '2012-11-29 00:01:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:53', '2012-11-29 00:01:53', '', '', 1, 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:53') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:53', 'User', 'ccd12abcf7f4454fcb4f5f87b5886ef6', 202, 'User', '2012-11-29 00:01:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 202 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:53', NULL, NULL, NULL, '2012-11-29 00:01:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:53', `updated_at` = '2012-11-29 00:01:53', `subdomain` = 'account541' WHERE `accounts`.`id` = 541 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 541 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (541, 202) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 351) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 351 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (351, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 202\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:53.049047000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:53.049478000Z\n updated_at: 2012-11-29 00:01:53.049478000Z\n birthdate: !!null \n name: Guest\n locale: pt-BR\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_202', '2012-12-06 00:01:53', '2012-11-29 00:01:53')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:53', '2012-11-29 00:01:53', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:01:53') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:53', 'User', '630ee8d2a2d323284acaca00c03a20ae', 203, 'User', '2012-11-29 00:01:53') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 203 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:53', NULL, NULL, NULL, '2012-11-29 00:01:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:53', `updated_at` = '2012-11-29 00:01:53', `subdomain` = 'account542' WHERE `accounts`.`id` = 542 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 542 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (542, 203) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 352) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 352 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (352, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:53', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 203\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:01:53.072018000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:01:53.072450000Z\n updated_at: 2012-11-29 00:01:53.072450000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_203', '2012-12-06 00:01:53', '2012-11-29 00:01:53')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:53 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:53 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:53', '2012-11-29 00:01:53', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:53', 'User', '495e82351f9ac0c06d410c2299d920bb', 204, 'User', '2012-11-29 00:01:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 204 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:53', NULL, NULL, NULL, '2012-11-29 00:01:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:53', `updated_at` = '2012-11-29 00:01:53', `subdomain` = 'account543' WHERE `accounts`.`id` = 543 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (543, 204) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 353) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 353 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (353, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:53 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f14ceaf_22e380435d487613c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 204)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:53 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 543 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (543, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/543/domains" for 127.0.0.1 at 2012-11-28 22:01:53 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"543"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 204 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 543 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_543_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 204 AND `account_users`.`account_id` = 543 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 353 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 AND `accounts`.`id` = 543 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 204 Completed 200 OK in 740ms (Views: 729.7ms | ActiveRecord: 2.9ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:54', '2012-11-29 00:01:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:54', 'User', '49ee9007e1d774b29e689750fc7efdd0', 205, 'User', '2012-11-29 00:01:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 205 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:54', NULL, NULL, NULL, '2012-11-29 00:01:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:54', `updated_at` = '2012-11-29 00:01:54', `subdomain` = 'account544' WHERE `accounts`.`id` = 544 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (544, 205) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 354) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 354 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (354, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f2550e8_22e380435d4876220@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 205)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (544, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/544/domains" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"544"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 205 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 544 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_544_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 205 AND `account_users`.`account_id` = 544 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 AND `accounts`.`id` = 544 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 544 AND `account_domains`.`account_id` = 544 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 544 AND `account_users`.`user_id` = 205 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (354) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (544) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 354 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 205 Completed 200 OK in 23ms (Views: 11.4ms | ActiveRecord: 4.1ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:54', '2012-11-29 00:01:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:54', 'User', '49ce15ae7ffd9fe852cf790482f6a89d', 206, 'User', '2012-11-29 00:01:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 206 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:54', NULL, NULL, NULL, '2012-11-29 00:01:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:54', `updated_at` = '2012-11-29 00:01:54', `subdomain` = 'account545' WHERE `accounts`.`id` = 545 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (545, 206) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 355) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 355 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (355, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 22:01:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f26e607_22e380435d48763f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 206)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (545, NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = 60  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/545/domains" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"545"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 206 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 545 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_545_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 206 AND `account_users`.`account_id` = 545 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 AND `accounts`.`id` = 545 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 545 AND `account_domains`.`account_id` = 545 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 545 AND `account_users`.`user_id` = 206 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (355) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (545) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 355 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 206 Completed 200 OK in 24ms (Views: 12.4ms | ActiveRecord: 4.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:54', '2012-11-29 00:01:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:54', 'User', '2f1ba1cb370fc0465ef9dba442b9c84a', 207, 'User', '2012-11-29 00:01:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 207 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:54', NULL, NULL, NULL, '2012-11-29 00:01:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:54', `updated_at` = '2012-11-29 00:01:54', `subdomain` = 'account546' WHERE `accounts`.`id` = 546 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (546, 207) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 356) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 356 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (356, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f287616_22e380435d48764a1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 207)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (546, NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 61  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/546/domains" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"546"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 207 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 546 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_546_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 207 AND `account_users`.`account_id` = 546 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 AND `accounts`.`id` = 546 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 546 AND `account_domains`.`account_id` = 546 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 546 AND `account_users`.`user_id` = 207 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (356) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (546) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 356 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 207 Completed 200 OK in 24ms (Views: 11.4ms | ActiveRecord: 4.3ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:54', '2012-11-29 00:01:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:54', 'User', 'f3c2644f344bb17bd32c183807d35362', 208, 'User', '2012-11-29 00:01:54') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 208 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:54', NULL, NULL, NULL, '2012-11-29 00:01:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:54', `updated_at` = '2012-11-29 00:01:54', `subdomain` = 'account547' WHERE `accounts`.`id` = 547 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (547, 208) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 357) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 357 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (357, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f2b7d4a_22e380435d487654d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 208)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 8.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (547, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = 62  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 62  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/547/domains" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"547"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 208 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 547 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_547_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 208 AND `account_users`.`account_id` = 547 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 AND `accounts`.`id` = 547 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 547 AND `account_domains`.`account_id` = 547 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 547 AND `account_users`.`user_id` = 208 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (357) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (547) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 357 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 208 Completed 200 OK in 24ms (Views: 11.6ms | ActiveRecord: 4.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:54', '2012-11-29 00:01:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:54', 'User', '4b157b35ddc677fbdf90e0204b36bef0', 209, 'User', '2012-11-29 00:01:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 209 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:54', NULL, NULL, NULL, '2012-11-29 00:01:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:54', `updated_at` = '2012-11-29 00:01:54', `subdomain` = 'account548' WHERE `accounts`.`id` = 548 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (548, 209) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 358) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 358 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (358, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f2d112f_22e380435d4876622@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 209)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (548, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = 63  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/548/domains" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"548"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 209 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 548 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_548_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 209 AND `account_users`.`account_id` = 548 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 AND `accounts`.`id` = 548 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 548 AND `account_domains`.`account_id` = 548 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 548 AND `account_users`.`user_id` = 209 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (358) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (548) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 358 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 209 Completed 200 OK in 24ms (Views: 12.7ms | ActiveRecord: 3.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:54', '2012-11-29 00:01:54', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:54', 'User', '55a870b6058dcc680ec86b1d4b395eeb', 210, 'User', '2012-11-29 00:01:54') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 210 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:54', NULL, NULL, NULL, '2012-11-29 00:01:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:54', `updated_at` = '2012-11-29 00:01:54', `subdomain` = 'account549' WHERE `accounts`.`id` = 549 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (549, 210) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 359) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 359 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (359, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:54 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f2e9bea_22e380435d4876736@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 210)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (549, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = 64  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/549/domains" for 127.0.0.1 at 2012-11-28 22:01:54 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"549"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 210 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 549 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_549_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 210 AND `account_users`.`account_id` = 549 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 AND `accounts`.`id` = 549 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 549 AND `account_domains`.`account_id` = 549 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 549 AND `account_users`.`user_id` = 210 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (359) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (549) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 359 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 210 Completed 200 OK in 23ms (Views: 10.8ms | ActiveRecord: 4.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:55', '2012-11-29 00:01:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:55', 'User', '1706dd3e1a0d893745aa1d28689f29f2', 211, 'User', '2012-11-29 00:01:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 211 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:55', NULL, NULL, NULL, '2012-11-29 00:01:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:55', `updated_at` = '2012-11-29 00:01:55', `subdomain` = 'account550' WHERE `accounts`.`id` = 550 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (550, 211) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (360, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f3260ac_22e380435d4876880@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 211)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 148ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `primary`, `url`, `verified`) VALUES (550, NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 550 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 752  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 360) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 360 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/550/domains" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"550"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 211 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 550 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_550_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 211 AND `account_users`.`account_id` = 550 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 AND `accounts`.`id` = 550 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 550 AND `account_domains`.`account_id` = 550 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 550 AND `account_users`.`user_id` = 211 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (360) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (550) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 360 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 211 Completed 200 OK in 23ms (Views: 11.1ms | ActiveRecord: 3.9ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:55', '2012-11-29 00:01:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:55') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:55', 'User', '38fcde92f864213234f2f47c36e7b444', 212, 'User', '2012-11-29 00:01:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 212 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:55', NULL, NULL, NULL, '2012-11-29 00:01:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:55', `updated_at` = '2012-11-29 00:01:55', `subdomain` = 'account551' WHERE `accounts`.`id` = 551 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (551, 212) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (361, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f340852_22e380435d487691f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 212)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 551 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 754  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 361) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 361 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/551/user/212/roles" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"551", "user_id"=>"212"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 212 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 212 AND `account_users`.`account_id` = 551 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 AND `accounts`.`id` = 551 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 551 AND `account_users`.`user_id` = 212 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (361) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (551) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 361 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 212 Completed 200 OK in 29ms (Views: 15.6ms | ActiveRecord: 4.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:55', '2012-11-29 00:01:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:55', 'User', '5d9a30543185028b4308ed867df0cb8d', 213, 'User', '2012-11-29 00:01:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 213 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:55', NULL, NULL, NULL, '2012-11-29 00:01:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:55', `updated_at` = '2012-11-29 00:01:55', `subdomain` = 'account552' WHERE `accounts`.`id` = 552 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 552 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (552, 213) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (362, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f35d40a_22e380435d487707b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 213)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 552 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 756  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 362) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 362 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/552/user/213/roles" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"552", "user_id"=>"213"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 213 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 213 AND `account_users`.`account_id` = 552 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 AND `accounts`.`id` = 552 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 552 AND `account_users`.`user_id` = 213 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (362) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (552) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 362 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 213 Completed 200 OK in 26ms (Views: 13.5ms | ActiveRecord: 3.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:55', '2012-11-29 00:01:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:55', 'User', '0c5fd2fffb189ff9e2896c16bfb0f763', 214, 'User', '2012-11-29 00:01:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 214 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:55', NULL, NULL, NULL, '2012-11-29 00:01:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:55', `updated_at` = '2012-11-29 00:01:55', `subdomain` = 'account553' WHERE `accounts`.`id` = 553 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (553, 214) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (363, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f390c49_22e380435d48771ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 214)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 150ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 553 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 758  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 363) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 363 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/553/user/214/roles" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"553", "user_id"=>"214"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 214 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 214 AND `account_users`.`account_id` = 553 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 AND `accounts`.`id` = 553 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 553 AND `account_users`.`user_id` = 214 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (363) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (553) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 363 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 214 Completed 200 OK in 28ms (Views: 13.0ms | ActiveRecord: 3.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:55', '2012-11-29 00:01:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:55', 'User', 'f51e711ee32daa175ae08095544767dd', 215, 'User', '2012-11-29 00:01:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 215 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:55', NULL, NULL, NULL, '2012-11-29 00:01:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:55', `updated_at` = '2012-11-29 00:01:55', `subdomain` = 'account554' WHERE `accounts`.`id` = 554 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 554 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (554, 215) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (364, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 22:01:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f3abce6_22e380435d487724b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 215)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 554 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 760  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 364) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 364 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/554/user/215/roles" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"554", "user_id"=>"215"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 215 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 215 AND `account_users`.`account_id` = 554 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 AND `accounts`.`id` = 554 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 554 AND `account_users`.`user_id` = 215 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (364) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (554) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 364 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 215 Completed 200 OK in 26ms (Views: 13.7ms | ActiveRecord: 3.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:55', '2012-11-29 00:01:55', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:55', 'User', '8c37bc5e8f17675621dc581cebf41f73', 216, 'User', '2012-11-29 00:01:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 216 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:55', NULL, NULL, NULL, '2012-11-29 00:01:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:55', `updated_at` = '2012-11-29 00:01:55', `subdomain` = 'account555' WHERE `accounts`.`id` = 555 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (555, 216) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:55 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f3c71b2_22e380435d48773ce@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 216)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:55', 'notowner@account.test', '$2a$04$.HvNAjGGg6KMvMJiCgELj.xvLK6qLBmEnmJkHKi0411KG7n15VEKa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:55', 'User', '3f83c55cf855102de08611597d5b52f1', 217, 'User', '2012-11-29 00:01:55') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 217 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:55', NULL, NULL, NULL, '2012-11-29 00:01:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:55', `updated_at` = '2012-11-29 00:01:55', `subdomain` = 'account556' WHERE `accounts`.`id` = 556 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 556 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (556, 217) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 366) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 366 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (366, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 22:01:55 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5f3d739f_22e380435d487745f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:55', 'jabanilson', NULL, 1, '2012-11-29 00:01:55')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:55', `updated_at` = '2012-11-29 00:01:55', `subdomain` = 'account557' WHERE `accounts`.`id` = 557  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (557, 217) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 367) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 367 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (367, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 555 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 555 WHERE `account_users`.`id` = 367  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 555 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 761 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 762  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 365) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 365 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (365, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/555/user/216/roles" for 127.0.0.1 at 2012-11-28 22:01:55 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"555", "user_id"=>"216"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 216 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 216 AND `account_users`.`account_id` = 555 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 AND `accounts`.`id` = 555 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 555 AND `account_users`.`user_id` = 216 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (365) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (555) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 365 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 216 Completed 200 OK in 129ms (Views: 17.1ms | ActiveRecord: 3.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:56', '2012-11-29 00:01:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:56', 'User', '847e9eb20f9a0a60ed37913d60f69a24', 218, 'User', '2012-11-29 00:01:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 218 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', NULL, NULL, NULL, '2012-11-29 00:01:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account558' WHERE `accounts`.`id` = 558 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (558, 218) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f415a1f_22e380435d4877566@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 218)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:56', 'notowner@account.test', '$2a$04$QRFhxAw.9Ms5unGnhpUWXOganPoPoT55Y6B6LkBP5bImTI51.S2.i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:56', 'User', '29d0be720b7745bf0538b663f428dc4a', 219, 'User', '2012-11-29 00:01:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 219 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', NULL, NULL, NULL, '2012-11-29 00:01:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account559' WHERE `accounts`.`id` = 559 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 559 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (559, 219) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 369) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 369 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (369, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 22:01:56 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5f425cfe_22e380435d4877638@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', 'jabanilson', NULL, 1, '2012-11-29 00:01:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account560' WHERE `accounts`.`id` = 560  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (560, 219) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 370) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 370 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (370, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 558 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 558 WHERE `account_users`.`id` = 370  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 558 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 768 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 769  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 368) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 368 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (368, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/558/user/218/roles" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"558", "user_id"=>"218"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 218 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 218 AND `account_users`.`account_id` = 558 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 AND `accounts`.`id` = 558 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 558 AND `account_users`.`user_id` = 218 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (368) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (558) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 368 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 218 Completed 200 OK in 27ms (Views: 13.9ms | ActiveRecord: 4.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:56', '2012-11-29 00:01:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.5ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:56', 'User', '74fbace0721a3aa100fb84cebb058442', 220, 'User', '2012-11-29 00:01:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 220 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', NULL, NULL, NULL, '2012-11-29 00:01:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account561' WHERE `accounts`.`id` = 561 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (561, 220) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f43fd92_22e380435d4877774@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 220)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:56', 'notowner@account.test', '$2a$04$SvphCMY.x8wcsznSxaftF.qQUoM08WSGEV0HDl9MKlHuhcyGIpCR2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:56', 'User', 'c1ab3d189f9a6b526f3528f44e841c27', 221, 'User', '2012-11-29 00:01:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 221 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', NULL, NULL, NULL, '2012-11-29 00:01:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account562' WHERE `accounts`.`id` = 562 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (562, 221) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 372) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 372 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (372, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 22:01:56 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5f4517dc_22e380435d4877833@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', 'jabanilson', NULL, 1, '2012-11-29 00:01:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account563' WHERE `accounts`.`id` = 563  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (563, 221) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 373) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 373 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (373, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 561 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 561 WHERE `account_users`.`id` = 373  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 561 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 775 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 776  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 371) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 371 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (371, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/561/user/220/roles" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"561", "user_id"=>"220"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 220 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 220 AND `account_users`.`account_id` = 561 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 AND `accounts`.`id` = 561 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 561 AND `account_users`.`user_id` = 220 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (371) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (561) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 371 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 220 Completed 200 OK in 29ms (Views: 14.8ms | ActiveRecord: 4.1ms)  (5.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:56', '2012-11-29 00:01:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:56', 'User', '63ba7600fa619b2bb38dccfd35ad29c3', 222, 'User', '2012-11-29 00:01:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 222 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', NULL, NULL, NULL, '2012-11-29 00:01:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account564' WHERE `accounts`.`id` = 564 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (564, 222) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f485cce_22e380435d48779c8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 222)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 153ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:56', 'notowner@account.test', '$2a$04$8AsC9h3pSeiJ3RfD8RQxq.PzSSWv8fYXqzR0CtEURFzKvAXi.YDrW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:56', 'User', '101be1d0627bbff1161efe2e1adcc4a0', 223, 'User', '2012-11-29 00:01:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 223 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', NULL, NULL, NULL, '2012-11-29 00:01:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account565' WHERE `accounts`.`id` = 565 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 565 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (565, 223) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 375) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 375 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (375, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 22:01:56 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5f496b7d_22e380435d48780d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', 'jabanilson', NULL, 1, '2012-11-29 00:01:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account566' WHERE `accounts`.`id` = 566  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (566, 223) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 376) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 376 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (376, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 564 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 564 WHERE `account_users`.`id` = 376  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 564 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 782 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 783  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 374) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 374 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (374, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/564/user/222/roles" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"564", "user_id"=>"222"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 222 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 222 AND `account_users`.`account_id` = 564 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 AND `accounts`.`id` = 564 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 564 AND `account_users`.`user_id` = 222 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (374) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (564) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 374 AND `account_roles`.`name` = 'guest' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 222 Completed 200 OK in 27ms (Views: 14.2ms | ActiveRecord: 4.2ms)  (10.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:56', '2012-11-29 00:01:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:56', 'User', '94a2715dc198032955c00c128c3c3d5c', 224, 'User', '2012-11-29 00:01:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 224 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', NULL, NULL, NULL, '2012-11-29 00:01:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account567' WHERE `accounts`.`id` = 567 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 567 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (567, 224) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 377) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 377 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (377, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 22:01:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f4b316a_22e380435d4878174@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 224)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 224 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 224 AND `account_users`.`account_id` = 567 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (377) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (567) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 224 Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 1.9ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:56', '2012-11-29 00:01:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:56', 'User', '047ab8fc8f9d5b8d750be0f0284058ad', 225, 'User', '2012-11-29 00:01:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 225 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:56', NULL, NULL, NULL, '2012-11-29 00:01:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:56', `updated_at` = '2012-11-29 00:01:56', `subdomain` = 'account568' WHERE `accounts`.`id` = 568 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (568, 225) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 378) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 378 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (378, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:56 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f4c963f_22e380435d48782f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 225)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 225 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 225 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 225 AND `account_users`.`account_id` = 568 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (378) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (568) Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 2.1ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:56 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:56', '2012-11-29 00:01:56', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:57', 'User', '23df86fa32b198d56516a579b115c82e', 226, 'User', '2012-11-29 00:01:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 226 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', NULL, NULL, NULL, '2012-11-29 00:01:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account569' WHERE `accounts`.`id` = 569 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 569 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (569, 226) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 379) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 379 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (379, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f56c0b_22e380435d487838d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 226)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 226 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 226 AND `account_users`.`account_id` = 569 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (379) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (569) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 226 Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 2.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:57', '2012-11-29 00:01:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:57') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:57', 'User', 'd7fd5e6a3aad838d520f5d3079ac88f9', 227, 'User', '2012-11-29 00:01:57') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 227 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', NULL, NULL, NULL, '2012-11-29 00:01:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account570' WHERE `accounts`.`id` = 570 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 570 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (570, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 380) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 380 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (380, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f51f462_22e380435d487842f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 227)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 15ms (Views: 10.4ms | ActiveRecord: 2.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 380\n account_id: 570\n user_id: 227\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_380_destroy', '2012-11-29 00:01:57', '2012-11-29 00:01:57')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', 'jabanilson', NULL, 1, '2012-11-29 00:01:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account571' WHERE `accounts`.`id` = 571  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (571, 227) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 381) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 381 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (381, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 227 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 227 AND `account_users`.`account_id` = 570 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (380) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (570) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 227 Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 2.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:57', '2012-11-29 00:01:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:57') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:57', 'User', '1688f581227a8676ee00c9b8c1411d4c', 228, 'User', '2012-11-29 00:01:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 228 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', NULL, NULL, NULL, '2012-11-29 00:01:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account572' WHERE `accounts`.`id` = 572 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (572, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 382) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 382 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (382, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f542987_22e380435d4878595@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 228)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 113ms (Views: 10.7ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 382\n account_id: 572\n user_id: 228\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_382_destroy', '2012-11-29 00:01:57', '2012-11-29 00:01:57')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', 'jabanilson', NULL, 1, '2012-11-29 00:01:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account573' WHERE `accounts`.`id` = 573  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (573, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 383) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 383 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (383, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', 'jabanilson', NULL, 1, '2012-11-29 00:01:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account574' WHERE `accounts`.`id` = 574  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (574, 228) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 384) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 384 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (384, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 228 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 228 AND `account_users`.`account_id` = 572 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (382) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (572) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 228 Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 2.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:57', '2012-11-29 00:01:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:57') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:57', 'User', 'bc3fb05f2f28a069b4321013abf0e0e7', 229, 'User', '2012-11-29 00:01:57') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 229 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', NULL, NULL, NULL, '2012-11-29 00:01:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account575' WHERE `accounts`.`id` = 575 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 575 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (575, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 385) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 385 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (385, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f5810e7_22e380435d4878670@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 229)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:57', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 385\n account_id: 575\n user_id: 229\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_385_destroy', '2012-11-29 00:01:57', '2012-11-29 00:01:57')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', 'jabanilson', NULL, 1, '2012-11-29 00:01:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account576' WHERE `accounts`.`id` = 576  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (576, 229) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 386) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 386 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (386, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', 'jabanilson', NULL, 1, '2012-11-29 00:01:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account577' WHERE `accounts`.`id` = 577  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (577, 229) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 387) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 387 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (387, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 229 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 229 AND `account_users`.`account_id` = 575 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (385) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (575) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 229 Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 1.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:57', '2012-11-29 00:01:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:57') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:57', 'User', 'fb6566849a6f582bd3442613d723128c', 230, 'User', '2012-11-29 00:01:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 230 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', NULL, NULL, NULL, '2012-11-29 00:01:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account578' WHERE `accounts`.`id` = 578 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 578 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (578, 230) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 388) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 388 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (388, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f5a789f_22e380435d48787b3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 230)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 230 AND `account_users`.`account_id` = 578 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (388) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (578) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', 'jabanilson', NULL, 1, '2012-11-29 00:01:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account579' WHERE `accounts`.`id` = 579  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (579, 230) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 389) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 389 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (389, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/579" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"579"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 230 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 AND `accounts`.`id` = 579 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 579 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 579 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 579 AND `account_users`.`user_id` = 230 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (389) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (579) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 389 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_579_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 230 Completed 200 OK in 143ms (Views: 135.2ms | ActiveRecord: 4.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:57', '2012-11-29 00:01:57', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:57') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:57', 'User', '07f0922a87a27199a149e4a85ae88d70', 231, 'User', '2012-11-29 00:01:57') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 231 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', NULL, NULL, NULL, '2012-11-29 00:01:57')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account580' WHERE `accounts`.`id` = 580 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 580 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (580, 231) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 390) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 390 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (390, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:57 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f5e3dfd_22e380435d4878823@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 231)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 231 AND `account_users`.`account_id` = 580 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (390) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (580) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 1.7ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:57', 'jabanilson', NULL, 1, '2012-11-29 00:01:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:57', `updated_at` = '2012-11-29 00:01:57', `subdomain` = 'account581' WHERE `accounts`.`id` = 581  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (581, 231) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 391) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 391 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (391, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/581" for 127.0.0.1 at 2012-11-28 22:01:57 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"581"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 231 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 AND `accounts`.`id` = 581 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 581 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 581 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 581 AND `account_users`.`user_id` = 231 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (391) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (581) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 391 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_581_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 231 Completed 200 OK in 31ms (Views: 23.5ms | ActiveRecord: 3.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:58', '2012-11-29 00:01:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:58', 'User', '8c91b53264cd689e644fd295bc3c4b6c', 232, 'User', '2012-11-29 00:01:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 232 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', NULL, NULL, NULL, '2012-11-29 00:01:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account582' WHERE `accounts`.`id` = 582 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 582 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (582, 232) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 392) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 392 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (392, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f610ab5_22e380435d487891b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 232)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 232 AND `account_users`.`account_id` = 582 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (392) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (582) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 2.0ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', 'jabanilson', NULL, 1, '2012-11-29 00:01:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account583' WHERE `accounts`.`id` = 583  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (583, 232) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 583 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 822  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 393) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 393 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (393, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/583" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"583"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 232 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 AND `accounts`.`id` = 583 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 583 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 583 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 583 AND `account_users`.`user_id` = 232 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (393) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (583) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 393 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_583_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 232 Completed 200 OK in 36ms (Views: 26.0ms | ActiveRecord: 4.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:58', '2012-11-29 00:01:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:58', 'User', '0caa0a54d377e446fb60ec8a260f5bd6', 233, 'User', '2012-11-29 00:01:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 233 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', NULL, NULL, NULL, '2012-11-29 00:01:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account584' WHERE `accounts`.`id` = 584 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 584 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (584, 233) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 394) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 394 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (394, 'admin') Sent mail to facebook@test.test (106ms) Date: Wed, 28 Nov 2012 22:01:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f634c9e_22e380435d48790b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 233)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 149ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 233 AND `account_users`.`account_id` = 584 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (394) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (584) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', 'jabanilson', NULL, 1, '2012-11-29 00:01:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account585' WHERE `accounts`.`id` = 585  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (585, 233) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (395, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 585 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 827  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 395) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 395 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/585" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"585"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 233 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 AND `accounts`.`id` = 585 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 585 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 585 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 585 AND `account_users`.`user_id` = 233 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (395) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (585) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 395 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_585_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 233 Completed 200 OK in 32ms (Views: 23.9ms | ActiveRecord: 3.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:58', '2012-11-29 00:01:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:58') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:58', 'User', 'dc74cf502897c516a5873887dd7eb9bf', 234, 'User', '2012-11-29 00:01:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 234 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', NULL, NULL, NULL, '2012-11-29 00:01:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account586' WHERE `accounts`.`id` = 586 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 586 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (586, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 396) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 396 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (396, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f67129e_22e380435d4879158@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 234)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 234 AND `account_users`.`account_id` = 586 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (396) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (586) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 15ms (Views: 11.1ms | ActiveRecord: 2.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', 'jabanilson', NULL, 1, '2012-11-29 00:01:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account587' WHERE `accounts`.`id` = 587  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (587, 234) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (397, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 587 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 831  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 397) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 397 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/587" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"587"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 234 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 AND `accounts`.`id` = 587 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 587 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 587 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 587 AND `account_users`.`user_id` = 234 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (397) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (587) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 397 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_587_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 234 Completed 200 OK in 31ms (Views: 23.8ms | ActiveRecord: 3.9ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:58', '2012-11-29 00:01:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:58', 'User', '858cfb9a83d25aee2ba9878ded167468', 235, 'User', '2012-11-29 00:01:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 235 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', NULL, NULL, NULL, '2012-11-29 00:01:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account588' WHERE `accounts`.`id` = 588 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 588 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (588, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 398) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 398 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (398, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f694e6e_22e380435d487929e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 235)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 235 AND `account_users`.`account_id` = 588 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (398) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (588) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', 'jabanilson', NULL, 1, '2012-11-29 00:01:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account589' WHERE `accounts`.`id` = 589  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (589, 235) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (399, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 589 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 835  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 399) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 399 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/589" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"589"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 235 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 AND `accounts`.`id` = 589 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 589 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 589 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 589 AND `account_users`.`user_id` = 235 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (399) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (589) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 399 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_589_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 235 Completed 200 OK in 134ms (Views: 126.1ms | ActiveRecord: 4.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:58', '2012-11-29 00:01:58', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:58', 'User', '72d7dcc0cc36cda6688c895d53bd623a', 236, 'User', '2012-11-29 00:01:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 236 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', NULL, NULL, NULL, '2012-11-29 00:01:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account590' WHERE `accounts`.`id` = 590 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 590 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (590, 236) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 400) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 400 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (400, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:58 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f6d12df_22e380435d487938c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 236)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 236 AND `account_users`.`account_id` = 590 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (400) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (590) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:58', 'jabanilson', NULL, 1, '2012-11-29 00:01:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:58', `updated_at` = '2012-11-29 00:01:58', `subdomain` = 'account591' WHERE `accounts`.`id` = 591  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (591, 236) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (401, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 591 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 839  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 401) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 401 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/591" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"591"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND `accounts`.`id` = 591 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 591 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 591 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_591_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 30ms (Views: 22.8ms | ActiveRecord: 3.7ms) Started GET "/settings/account/591" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"591"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 236 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 AND `accounts`.`id` = 591 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 591 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 591 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 591 AND `account_users`.`user_id` = 236 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (401) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (591) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 401 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_591_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 236 Completed 200 OK in 32ms (Views: 24.7ms | ActiveRecord: 3.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:58 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:59', '2012-11-29 00:01:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:59', 'User', '090b0b2941e3f517d48210e5885a5e66', 237, 'User', '2012-11-29 00:01:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 237 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', NULL, NULL, NULL, '2012-11-29 00:01:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account592' WHERE `accounts`.`id` = 592 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 592 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (592, 237) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 402) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 402 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (402, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:59 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f78361_22e380435d48794c3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 237)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 237 AND `account_users`.`account_id` = 592 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (402) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (592) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.0ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', 'jabanilson', NULL, 1, '2012-11-29 00:01:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account593' WHERE `accounts`.`id` = 593  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (593, 237) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (403, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 593 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 843  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 403) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 403 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 136ms (Views: 127.5ms | ActiveRecord: 4.0ms) Started GET "/settings/account/593" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"593"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 237 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 AND `accounts`.`id` = 593 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 593 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 593 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 593 AND `account_users`.`user_id` = 237 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (403) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (593) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 403 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_593_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 237 Completed 200 OK in 31ms (Views: 22.9ms | ActiveRecord: 4.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:59', '2012-11-29 00:01:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:59', 'User', '1df69683bf62da95edd1f21b3a416218', 238, 'User', '2012-11-29 00:01:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 238 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', NULL, NULL, NULL, '2012-11-29 00:01:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account594' WHERE `accounts`.`id` = 594 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 594 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (594, 238) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 404) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 404 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (404, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:59 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f74c98d_22e380435d4879565@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 238)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 238 AND `account_users`.`account_id` = 594 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (404) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (594) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', 'jabanilson', NULL, 1, '2012-11-29 00:01:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account595' WHERE `accounts`.`id` = 595  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (595, 238) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (405, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 595 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 847  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 405) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 405 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 30ms (Views: 23.0ms | ActiveRecord: 3.8ms) Started DELETE "/settings/account/595" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"595"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 238 AND `account_users`.`account_id` = 595 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 595\n created_at: 2012-11-29 00:01:59.000000000Z\n updated_at: 2012-11-29 00:01:59.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account595\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_595_destroy', '2012-11-29 00:01:59', '2012-11-29 00:01:59')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 13ms (ActiveRecord: 2.9ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 238 AND `account_users`.`account_id` = 594 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (404) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (594) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 14ms (Views: 10.8ms | ActiveRecord: 2.1ms) Started GET "/settings/account/595" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"595"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 238 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 AND `accounts`.`id` = 595 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 595 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 595 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 595 AND `account_users`.`user_id` = 238 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (405) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (595) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 405 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 238 Completed 200 OK in 32ms (Views: 24.1ms | ActiveRecord: 4.0ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_595_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:59', '2012-11-29 00:01:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:59', 'User', 'c6bee47b8f61597ba7ee3414c0ec6854', 239, 'User', '2012-11-29 00:01:59') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 239 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', NULL, NULL, NULL, '2012-11-29 00:01:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account596' WHERE `accounts`.`id` = 596 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 596 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (596, 239) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 406) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 406 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (406, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:01:59 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f7a0748_22e380435d48796fa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 239)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 154ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 2.2ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', 'jabanilson', NULL, 1, '2012-11-29 00:01:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account597' WHERE `accounts`.`id` = 597  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (597, 239) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (407, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 597 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 851  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 407) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 407 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 31ms (Views: 23.6ms | ActiveRecord: 3.6ms) Started DELETE "/settings/account/597" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"597"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 597 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:01:59', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:Account\n attributes:\n id: 597\n created_at: 2012-11-29 00:01:59.000000000Z\n updated_at: 2012-11-29 00:01:59.000000000Z\n name: jabanilson\n subscription_id: 1\n subdomain: account597\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_597_destroy', '2012-11-30 00:01:59', '2012-11-29 00:01:59')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 13ms (ActiveRecord: 2.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 239 AND `account_users`.`account_id` = 596 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (406) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (596) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 2.2ms) Started GET "/settings/account/597" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"597"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 239 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 AND `accounts`.`id` = 597 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 597 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 597 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 597 AND `account_users`.`user_id` = 239 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (407) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (597) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 407 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_597_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 239 Completed 200 OK in 32ms (Views: 24.0ms | ActiveRecord: 4.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:59', '2012-11-29 00:01:59', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:59', 'User', 'aeb08915a856505b4f91d10a6f45f3c4', 240, 'User', '2012-11-29 00:01:59') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 240 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', NULL, NULL, NULL, '2012-11-29 00:01:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account598' WHERE `accounts`.`id` = 598 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 598 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (598, 240) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 408) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 408 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (408, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:01:59 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f7d499c_22e380435d487979b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 240)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 240 AND `account_users`.`account_id` = 598 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (408) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (598) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 15ms (Views: 10.8ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', 'jabanilson', NULL, 1, '2012-11-29 00:01:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account599' WHERE `accounts`.`id` = 599  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (599, 240) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:01:59', 'notowner@account.test', '$2a$04$adRF.CXdlgmdiLWBQbQ2EuNPO7RXVftGcFAVx9Whl8gOqDUa9ln5.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:01:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:01:59', 'User', 'eafb20910d93251d68ab1004d35c4b7d', 241, 'User', '2012-11-29 00:01:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 241 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', NULL, NULL, NULL, '2012-11-29 00:01:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account600' WHERE `accounts`.`id` = 600 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 600 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (600, 241) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 410) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 410 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (410, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 22:01:59 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5f7ebbb8_22e380435d4879882@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:01:59', 'jabanilson', NULL, 1, '2012-11-29 00:01:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:01:59', `updated_at` = '2012-11-29 00:01:59', `subdomain` = 'account601' WHERE `accounts`.`id` = 601  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (601, 241) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 411) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 411 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (411, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 599 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 599 WHERE `account_users`.`id` = 411  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 599 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 854 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 855  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 409) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 409 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (409, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/599" for 127.0.0.1 at 2012-11-28 22:01:59 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"599"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 240 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 AND `accounts`.`id` = 599 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 599 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 599 AND `account_users`.`user_id` = 240 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (409) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (599) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 409 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 240 Completed 200 OK in 136ms (Views: 128.9ms | ActiveRecord: 3.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:00', '2012-11-29 00:02:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:00', 'User', '39839f5c35760d9277745014c987b182', 242, 'User', '2012-11-29 00:02:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 242 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', NULL, NULL, NULL, '2012-11-29 00:02:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account602' WHERE `accounts`.`id` = 602 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 602 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (602, 242) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 412) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 412 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (412, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:00 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f82bd57_22e380435d4879935@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 242)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 242 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 242 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 242 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 242 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 242 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 242 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 242 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 242 AND `account_users`.`account_id` = 602 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (412) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (602) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 242 Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', 'jabanilson', NULL, 1, '2012-11-29 00:02:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account603' WHERE `accounts`.`id` = 603  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 242 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (603, 242) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:00', 'notowner@account.test', '$2a$04$zEvg7UfHdWQN//asv7TYOeQgnMVrv2CcYhtKGiUJbses27ltF.Z/2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:00', 'User', '303a4a4a593425f2926ddade2670aae4', 243, 'User', '2012-11-29 00:02:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 243 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', NULL, NULL, NULL, '2012-11-29 00:02:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account604' WHERE `accounts`.`id` = 604 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 604 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (604, 243) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 414) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 414 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (414, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 22:02:00 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5f843ab0_22e380435d48800c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', 'jabanilson', NULL, 1, '2012-11-29 00:02:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account605' WHERE `accounts`.`id` = 605  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (605, 243) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 415) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 415 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (415, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 603 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 603 WHERE `account_users`.`id` = 415  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 413  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 603 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 863 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 864  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 413) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 413 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (413, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/603" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"603"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 242 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 242 AND `accounts`.`id` = 603 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 603 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 603 AND `account_users`.`user_id` = 242 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (413) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (603) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 413 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 603 AND `account_users`.`user_id` = 242 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (413) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (603) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 413 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 603 AND `account_users`.`user_id` = 242 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (413) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (603) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 413 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 603 AND `account_users`.`user_id` = 242 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (413) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (603) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 413 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 603 AND `account_users`.`user_id` = 242 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (413) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (603) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 413 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 242 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 3.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:00', '2012-11-29 00:02:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:00') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:00', 'User', 'bd7d86011c7311db65e2e674a7ecd9a9', 244, 'User', '2012-11-29 00:02:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 244 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', NULL, NULL, NULL, '2012-11-29 00:02:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account606' WHERE `accounts`.`id` = 606 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 606 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (606, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 416) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 416 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (416, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:00 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f85f250_22e380435d488011d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 244)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 244 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 244 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 244 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 244 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 244 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 244 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 244 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 244 AND `account_users`.`account_id` = 606 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (416) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (606) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 244 Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', 'jabanilson', NULL, 1, '2012-11-29 00:02:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account607' WHERE `accounts`.`id` = 607  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 244 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (607, 244) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:00', 'notowner@account.test', '$2a$04$tKZOhIsvXfVTeiyxciHgsu90xfNNAITETmanMCTaoGbiuJOUEpxcy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:00', 'User', 'a808e74d69cd680ffdfa0219445968fa', 245, 'User', '2012-11-29 00:02:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 245 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', NULL, NULL, NULL, '2012-11-29 00:02:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account608' WHERE `accounts`.`id` = 608 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 608 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (608, 245) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 418) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 418 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (418, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 22:02:00 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5f8763bc_22e380435d4880257@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', 'jabanilson', NULL, 1, '2012-11-29 00:02:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account609' WHERE `accounts`.`id` = 609  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (609, 245) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 419) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 419 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (419, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 607 LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = 607 WHERE `account_users`.`id` = 419  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 417  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 607 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 872 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 873  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 417) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 417 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (417, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/607" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"607"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 244 LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 244 AND `accounts`.`id` = 607 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 607 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 607 AND `account_users`.`user_id` = 244 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (417) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (607) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 417 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 607 AND `account_users`.`user_id` = 244 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (417) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (607) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 417 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 607 AND `account_users`.`user_id` = 244 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (417) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (607) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 417 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 607 AND `account_users`.`user_id` = 244 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (417) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (607) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 417 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 607 AND `account_users`.`user_id` = 244 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (417) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (607) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 417 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 244 Completed 200 OK in 138ms (Views: 22.6ms | ActiveRecord: 3.4ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:00', '2012-11-29 00:02:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:00', 'User', 'c86e8081da945765a83ff422ccfbb614', 246, 'User', '2012-11-29 00:02:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 246 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', NULL, NULL, NULL, '2012-11-29 00:02:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account610' WHERE `accounts`.`id` = 610 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 610 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (610, 246) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 420) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 420 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (420, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 22:02:00 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f8aab05_22e380435d48803f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 246)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 246 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 246 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 246 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 246 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 246 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 246 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 246 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 246 AND `account_users`.`account_id` = 610 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (420) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (610) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 246 Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.1ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', 'jabanilson', NULL, 1, '2012-11-29 00:02:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account611' WHERE `accounts`.`id` = 611  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 246 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (611, 246) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:00', 'notowner@account.test', '$2a$04$vwe1xx2bhX37zFaL3nLOIOvyQ0Jcxc6xo0DOst5TRscc88Le7/fQq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:00', 'User', '69c9b555ee0393ec9ef61ab1d8271213', 247, 'User', '2012-11-29 00:02:00') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 247 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', NULL, NULL, NULL, '2012-11-29 00:02:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account612' WHERE `accounts`.`id` = 612 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 612 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (612, 247) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 422) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 422 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (422, 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 28 Nov 2012 22:02:00 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5f8c2dbc_22e380435d48804e0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', 'jabanilson', NULL, 1, '2012-11-29 00:02:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account613' WHERE `accounts`.`id` = 613  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (613, 247) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 423) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 423 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (423, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 611 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 611 WHERE `account_users`.`id` = 423  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 421  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 611 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 881 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 882  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 421) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 421 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (421, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/611" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"611"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 246 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 246 AND `accounts`.`id` = 611 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 611 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 611 AND `account_users`.`user_id` = 246 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (421) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (611) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 421 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 611 AND `account_users`.`user_id` = 246 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (421) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (611) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 421 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 611 AND `account_users`.`user_id` = 246 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (421) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (611) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 421 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 611 AND `account_users`.`user_id` = 246 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (421) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (611) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 421 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 611 AND `account_users`.`user_id` = 246 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (421) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (611) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 421 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 246 Completed 200 OK in 29ms (Views: 21.9ms | ActiveRecord: 3.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:00', '2012-11-29 00:02:00', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:00', 'User', '39a31c41cbe89812260304e7223b4efe', 248, 'User', '2012-11-29 00:02:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 248 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', NULL, NULL, NULL, '2012-11-29 00:02:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account614' WHERE `accounts`.`id` = 614 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 614 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (614, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 424) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 424 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (424, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 22:02:00 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f8dc246_22e380435d488055c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 248)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 248 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 248 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 248 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 248 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 248 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 248 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 248 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 248 AND `account_users`.`account_id` = 614 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (424) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (614) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 248 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 2.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:00', 'jabanilson', NULL, 1, '2012-11-29 00:02:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:00', `updated_at` = '2012-11-29 00:02:00', `subdomain` = 'account615' WHERE `accounts`.`id` = 615  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 248 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (615, 248) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 425) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 425 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (425, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/615" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"615"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 248 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 248 AND `accounts`.`id` = 615 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 615 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 615 AND `account_users`.`user_id` = 248 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (425) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (615) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 425 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 615 AND `account_users`.`user_id` = 248 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (425) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (615) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 425 AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 615 AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 615 AND `account_users`.`user_id` = 248 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (425) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (615) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 425 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_615_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 248 Completed 200 OK in 28ms (Views: 20.4ms | ActiveRecord: 3.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:00 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:01', '2012-11-29 00:02:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', '956f56893cd0dbbbd708a3f58698a218', 249, 'User', '2012-11-29 00:02:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 249 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account616' WHERE `accounts`.`id` = 616 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 616 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (616, 249) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 426) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 426 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (426, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:01 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f922c79_22e380435d48806a1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 249)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 158ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 249 AND `account_users`.`account_id` = 616 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (426) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (616) CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 2.1ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', 'jabanilson', NULL, 1, '2012-11-29 00:02:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account617' WHERE `accounts`.`id` = 617  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (617, 249) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 427) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 427 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (427, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/617" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"617"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 249 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 AND `accounts`.`id` = 617 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 617 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 617 AND `account_users`.`user_id` = 249 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (427) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (617) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 427 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_617_destroy' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 249 Completed 200 OK in 26ms (Views: 18.0ms | ActiveRecord: 3.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:01', 'teste@teste.com', '$2a$04$8HNGKrG44l6mfe2mxEssr.KOLcubZwaIp0m0Cet1CmoZmTFZreY1m', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', '73981e4c9303eea18810e2b0075c1c94', 250, 'User', '2012-11-29 00:02:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 250 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account618' WHERE `accounts`.`id` = 618 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 618 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (618, 250) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 428) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 428 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (428, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f94243f_22e380435d48807ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:01', '2012-11-29 00:02:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', '68fceb9a210a21a7892664f26e6b68c3', 251, 'User', '2012-11-29 00:02:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 251 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account619' WHERE `accounts`.`id` = 619 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 619 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (619, 251) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (429, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:01 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f94dab2_22e380435d488084d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 251)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 251 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 251 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 251 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 619 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (619, 250) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (430) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 619 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 900 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 901  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 430) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 430 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (430, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 251 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 619 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 899  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 429) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 429 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 251 LIMIT 1 Started GET "/settings/account/619/users" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"619"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 251 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 619 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_619_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 619 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429, 430) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 251 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 251 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_429_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 250 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 251 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_430_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 430 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 619 AND `account_users`.`user_id` = 251 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (429) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (619) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 429 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 251 Completed 200 OK in 36ms (Views: 27.0ms | ActiveRecord: 5.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:01', 'teste@teste.com', '$2a$04$bwhXbBAp5GpQaDqpXzke7u5FN80ColDQHEvf6dcN3m9Z/NFIENlBW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', '88ae3c154c3ff1420ec495aeb16972ce', 252, 'User', '2012-11-29 00:02:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 252 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account620' WHERE `accounts`.`id` = 620 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 620 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (620, 252) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 431) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 431 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (431, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f96fd58_22e380435d48809bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:01', '2012-11-29 00:02:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', 'a6c8525b1e0cfdb1f5ab86ab3b6c2b86', 253, 'User', '2012-11-29 00:02:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 253 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account621' WHERE `accounts`.`id` = 621 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 253) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (432, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:01 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f995b93_22e380435d4881044@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 253)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 253 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 253 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 158ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 253 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (621, 252) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (433) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 907 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 908  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 433) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 433 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (433, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 253 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 621 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 906  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 432) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 432 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 253 LIMIT 1 Started GET "/settings/account/621/users" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"621"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 253 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_621_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 621 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432, 433) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 253 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 253 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_432_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 252 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 253 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_433_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 433 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 621 AND `account_users`.`user_id` = 253 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (432) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (621) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 432 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 253 Completed 200 OK in 33ms (Views: 24.8ms | ActiveRecord: 5.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:01', 'teste@teste.com', '$2a$04$EJwlu1iGvS30wSXgyTRWC.9Y.OMpwt6HKis7XKq69BVpGaVaV9Tiy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', '3d3ead32cd7a174d2a53b66900854b5c', 254, 'User', '2012-11-29 00:02:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 254 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account622' WHERE `accounts`.`id` = 622 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 622 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (622, 254) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 434) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 434 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (434, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f9b722f_22e380435d48811cb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:01', '2012-11-29 00:02:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', '8b23bca47338ba5f4cc76e8c61327c52', 255, 'User', '2012-11-29 00:02:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 255 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account623' WHERE `accounts`.`id` = 623 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 255) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (435, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:01 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5f9c306d_22e380435d4881278@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 255)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 255 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 255 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 255 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (623, 254) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (436) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 914 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 915  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 436) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 436 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (436, 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 255 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 623 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 913  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 435) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 435 LIMIT 1  (0.3ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 255 LIMIT 1 Started GET "/settings/account/623/users" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"623"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 255 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_623_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 623 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435, 436) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 255 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 255 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_435_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 254 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 255 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_436_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 436 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 623 AND `account_users`.`user_id` = 255 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (435) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (623) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 435 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 255 Completed 200 OK in 33ms (Views: 23.6ms | ActiveRecord: 5.5ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:01', 'teste@teste.com', '$2a$04$P48pJpKxNaQm4Zlq0Wdvgu25HOyKcEn/bq8NxnFrfC3b2uRpK17OW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', '97db0088f090cc6b9331f26d243a0eb5', 256, 'User', '2012-11-29 00:02:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 256 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account624' WHERE `accounts`.`id` = 624 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 624 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (624, 256) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 437) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 437 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (437, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5f9e4060_22e380435d48813e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:01 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:01', '2012-11-29 00:02:01', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:01', 'User', '51fe8afa3f60db433bf7a10633ee624c', 257, 'User', '2012-11-29 00:02:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 257 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:01', NULL, NULL, NULL, '2012-11-29 00:02:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:01', `updated_at` = '2012-11-29 00:02:01', `subdomain` = 'account625' WHERE `accounts`.`id` = 625 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 257) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (438, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fa15d18_22e380435d4881413@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 257)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 257 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 257 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 159ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 257 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (625, 256) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (439) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 921 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 922  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 439) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 439 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (439, 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 257 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 625 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 920  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 438) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 438 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 257 LIMIT 1 Started GET "/settings/account/625/users" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"625"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 257 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_625_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 625 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438, 439) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 257 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 257 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_438_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 256 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 257 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_439_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 439 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 625 AND `account_users`.`user_id` = 257 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (438) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (625) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 438 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 257 Completed 200 OK in 34ms (Views: 24.9ms | ActiveRecord: 5.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:02', 'teste@teste.com', '$2a$04$QubApmSDK7G.AVQmcOQRZOO/4kE0.TtkNOKiRZzyhkI6aZMLnYCWe', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:02', 'User', '7a70c1f4a86a9cd988a1919d1c6047b9', 258, 'User', '2012-11-29 00:02:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 258 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:02', NULL, NULL, NULL, '2012-11-29 00:02:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:02', `updated_at` = '2012-11-29 00:02:02', `subdomain` = 'account626' WHERE `accounts`.`id` = 626 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 626 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (626, 258) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 440) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 440 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (440, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fa37561_22e380435d48815b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:02', '2012-11-29 00:02:02', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:02', 'User', '47b0b9acf037cf00b3c5842afb29bce1', 259, 'User', '2012-11-29 00:02:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 259 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:02', NULL, NULL, NULL, '2012-11-29 00:02:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:02', `updated_at` = '2012-11-29 00:02:02', `subdomain` = 'account627' WHERE `accounts`.`id` = 627 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 259) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fa427f1_22e380435d48816f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 259)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 259 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 259 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 259 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (627, 258) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (442) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 928 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 929  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 442) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 442 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (442, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 259 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 627 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 927  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 441) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 441 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (441, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 259 LIMIT 1 Started GET "/settings/account/627/users" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"627"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 259 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_627_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 627 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441, 442) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 259 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 259 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_441_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 258 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 259 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_442_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 442 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 627 AND `account_users`.`user_id` = 259 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (441) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (627) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 441 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 259 Completed 200 OK in 32ms (Views: 24.1ms | ActiveRecord: 4.7ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:02', 'teste@teste.com', '$2a$04$fw5De0maELQDUPgS0dJ3D.JgC64CB/pvBA8t8dyhkQvFQ.AYy5o2i', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:02', 'User', 'c01e23c7a908bd7dd287db82c76a1812', 260, 'User', '2012-11-29 00:02:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 260 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:02', NULL, NULL, NULL, '2012-11-29 00:02:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:02', `updated_at` = '2012-11-29 00:02:02', `subdomain` = 'account628' WHERE `accounts`.`id` = 628 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 628 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (628, 260) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 443) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 443 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (443, 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fa63cc5_22e380435d488177b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:02', '2012-11-29 00:02:02', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:02', 'User', '3c68f77aa506adcb0dda79aeebd32e42', 261, 'User', '2012-11-29 00:02:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 261 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:02', NULL, NULL, NULL, '2012-11-29 00:02:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:02', `updated_at` = '2012-11-29 00:02:02', `subdomain` = 'account629' WHERE `accounts`.`id` = 629 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 261) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fa6f162_22e380435d48818f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 261)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 261 AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 261 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by DashboardController#index as HTML User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 261 LIMIT 1 Completed 200 OK in 116ms (Views: 2.4ms | ActiveRecord: 0.7ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (629, 260) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (445) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 936 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 937  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 445) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 445 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (445, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 261 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 629 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 935  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 444) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 444 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (444, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 261 LIMIT 1 Started GET "/settings/account/629/users" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"629"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 261 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_629_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 629 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444, 445) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 261 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 261 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_444_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 260 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 261 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_445_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 445 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 629 AND `account_users`.`user_id` = 261 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (444) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (629) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 444 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 261 Completed 200 OK in 34ms (Views: 25.0ms | ActiveRecord: 4.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:02', 'teste@teste.com', '$2a$04$9rpgFL8LoOStqja60ZC8H.uGeX4HJo2CLN1Ay912RPwwcHnW2mKgC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:02', 'User', '9747abe57f64804edc489c05d748bb5b', 262, 'User', '2012-11-29 00:02:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 262 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:02', NULL, NULL, NULL, '2012-11-29 00:02:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:02', `updated_at` = '2012-11-29 00:02:02', `subdomain` = 'account630' WHERE `accounts`.`id` = 630 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 630 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (630, 262) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 446) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 446 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (446, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5faab87b_22e380435d4881976@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:02', '2012-11-29 00:02:02', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:02', 'User', '84e25650a4eda14eaa8985bf737a2d8d', 263, 'User', '2012-11-29 00:02:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 263 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:02', NULL, NULL, NULL, '2012-11-29 00:02:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:02', `updated_at` = '2012-11-29 00:02:02', `subdomain` = 'account631' WHERE `accounts`.`id` = 631 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 263) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fab6ef8_22e380435d48820f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 263)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 263 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 263 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 263 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (631, 262) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (448) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 944 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 945  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 448) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 448 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (448, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 263 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 631 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 943  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 447) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 447 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (447, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 263 LIMIT 1 Started GET "/settings/account/631/users" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"631"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 263 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_631_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 631 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447, 448) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 263 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 263 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_447_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 262 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 263 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_448_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 448 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 631 AND `account_users`.`user_id` = 263 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (447) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (631) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 447 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 263 Completed 200 OK in 34ms (Views: 26.2ms | ActiveRecord: 5.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:02', 'teste@teste.com', '$2a$04$mLJiUZ1ermfep8Bip49Az.R4M0Rp1uC4bq.8YkwOdt91JZxHmuClW', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:02', 'User', 'ccd34bd1e79bad6e07455d9b46ad61aa', 264, 'User', '2012-11-29 00:02:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 264 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:02', NULL, NULL, NULL, '2012-11-29 00:02:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:02', `updated_at` = '2012-11-29 00:02:02', `subdomain` = 'account632' WHERE `accounts`.`id` = 632 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 632 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (632, 264) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 449) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 449 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (449, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fad842f_22e380435d4882131@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:02', '2012-11-29 00:02:02', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:02', 'User', '5166a089c76b3a13a7ab5ff62f901b85', 265, 'User', '2012-11-29 00:02:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 265 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:02', NULL, NULL, NULL, '2012-11-29 00:02:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:02', `updated_at` = '2012-11-29 00:02:02', `subdomain` = 'account633' WHERE `accounts`.`id` = 633 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 265) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:02 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fae399d_22e380435d4882279@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 265)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 265 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 265 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:02 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 265 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (633, 264) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (451) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 952 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 953  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 451) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 451 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (451, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (111.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 265 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 633 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 951  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 450) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 450 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (450, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 265 LIMIT 1 Started GET "/settings/account/633/users" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"633"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 265 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_633_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 633 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450, 451) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 265 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 265 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_450_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 264 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 265 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_451_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 451 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 633 AND `account_users`.`user_id` = 265 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (450) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (633) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 450 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 265 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 4.6ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:03', 'teste@teste.com', '$2a$04$FGMes/f0fPXqgYq10GRzGeHJhsuzAUAwAvD9qqyMff9HTT5qfg1sa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', '7da6c56aa3dfa78df13532ea9e3490d0', 266, 'User', '2012-11-29 00:02:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 266 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account634' WHERE `accounts`.`id` = 634 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 634 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (634, 266) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 452) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 452 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (452, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fb2d375_22e380435d4882399@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:03', '2012-11-29 00:02:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', '563a59bc7cbcdd5d9ac070af9ceadb05', 267, 'User', '2012-11-29 00:02:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 267 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account635' WHERE `accounts`.`id` = 635 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 267) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fb38399_22e380435d48824c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 267)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 267 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 267 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 267 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:03', 'notowner@account.test', '$2a$04$c9vy8FIEO8L4M5FLmdlqMeOgRyggKh2AWar97qmiWB1EtYl0bds4O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', '7ef4da2720a2f84ceba3c37036044b6c', 268, 'User', '2012-11-29 00:02:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 268 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account636' WHERE `accounts`.`id` = 636 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 636 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (636, 268) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 454) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 454 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (454, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5fb47100_22e380435d48825d6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', 'jabanilson', NULL, 1, '2012-11-29 00:02:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account637' WHERE `accounts`.`id` = 637  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (637, 268) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 455) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 455 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (455, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 635 WHERE `account_users`.`id` = 455  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (635, 266) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (456) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 964 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 965  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 456) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 456 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (456, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 635 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 958 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 959  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 453) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 453 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (453, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 267 LIMIT 1 Started GET "/settings/account/635/users" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"635"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 267 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_635_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 635 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453, 455, 456) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 267 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 268 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 266 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 635 AND `account_users`.`user_id` = 267 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (453) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (635) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 453 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 267 Completed 200 OK in 45ms (Views: 36.8ms | ActiveRecord: 4.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:03', 'teste@teste.com', '$2a$04$23zQrsn2bKh2Tv/fJWNTnubHMGzR4/H87SXjoPooCo4EDb6vz0OqC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', 'a7884789a750a89ca69e477f55d145ab', 269, 'User', '2012-11-29 00:02:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 269 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account638' WHERE `accounts`.`id` = 638 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 638 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (638, 269) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 457) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 457 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (457, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fb69836_22e380435d488264b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:03', '2012-11-29 00:02:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', '2291057d9a6f91269dde6256d8be7bab', 270, 'User', '2012-11-29 00:02:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 270 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account639' WHERE `accounts`.`id` = 639 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 639 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (639, 270) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fb751fd_22e380435d48827bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 270)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 270 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 270 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 157ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 270 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:03', 'notowner@account.test', '$2a$04$hjewreHFoVfd0WHpQEad9OvpYkNMkU5C.LkFhvBZDJwOCgdiQJkC6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', '65e054e95ade64bb7cf039770250ce48', 271, 'User', '2012-11-29 00:02:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 271 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account640' WHERE `accounts`.`id` = 640 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 640 LIMIT 1 SQL (35.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (640, 271) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 459) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 459 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (459, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5fba77c8_22e380435d48828b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', 'jabanilson', NULL, 1, '2012-11-29 00:02:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account641' WHERE `accounts`.`id` = 641  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (641, 271) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 460) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 460 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (460, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 639 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 639 WHERE `account_users`.`id` = 460  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 639 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (639, 269) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (9.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (461) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 639 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 976 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 977  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 461) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 461 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (461, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 639 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 970 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 971  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 458) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 458 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (458, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 270 LIMIT 1 Started GET "/settings/account/639/users" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"639"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 270 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 639 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_639_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 639 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458, 460, 461) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 270 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 271 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 269 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 639 AND `account_users`.`user_id` = 270 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (458) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (639) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 458 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 270 Completed 200 OK in 51ms (Views: 42.6ms | ActiveRecord: 4.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:03', 'teste@teste.com', '$2a$04$70nXqWyvteMVScTSlD8eduSHE4/kjmEw.dqAmP76TdYujJAjMvW1W', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', 'b8d8956c0943a93153978a3d85e985d0', 272, 'User', '2012-11-29 00:02:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 272 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account642' WHERE `accounts`.`id` = 642 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 642 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (642, 272) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 462) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 462 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (462, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fbce7dd_22e380435d4882919@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:03', '2012-11-29 00:02:03', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', 'e3c3a1370343543c3215ce19ba117f29', 273, 'User', '2012-11-29 00:02:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 273 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account643' WHERE `accounts`.`id` = 643 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 643 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (643, 273) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fbd96e8_22e380435d48830af@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 273)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 273 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 273 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:03 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 273 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:03', 'notowner@account.test', '$2a$04$zpoUTkSN21AbvYLzISQUbOmOb2b0sTmN25k/nnVN1c8krArBXAtMy', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:03', 'User', '14d72c79705d7f78f7e4e7706e1896a1', 274, 'User', '2012-11-29 00:02:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 274 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', NULL, NULL, NULL, '2012-11-29 00:02:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account644' WHERE `accounts`.`id` = 644 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 644 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (644, 274) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 464) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 464 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (464, 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 28 Nov 2012 22:02:03 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5fbe94e7_22e380435d48831d6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:03', 'jabanilson', NULL, 1, '2012-11-29 00:02:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:03', `updated_at` = '2012-11-29 00:02:03', `subdomain` = 'account645' WHERE `accounts`.`id` = 645  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (645, 274) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 465) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 465 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (465, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 643 LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = 643 WHERE `account_users`.`id` = 465  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 643 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (643, 272) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (466) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 643 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 988 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 989  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 466) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 466 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (466, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 643 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 982 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 983  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 463) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 463 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (463, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 273 LIMIT 1 Started GET "/settings/account/643/users" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"643"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 273 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 643 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_643_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 643 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463, 465, 466) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 273 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 274 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 272 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 643 AND `account_users`.`user_id` = 273 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (463) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (643) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 463 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 273 Completed 200 OK in 47ms (Views: 39.2ms | ActiveRecord: 4.6ms)  (23.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:04', 'teste@teste.com', '$2a$04$fmzBorQf3ecktkjyn4p3ouitvgailtGdrMP5yx35LoPxcTMgjgQs2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:04', 'User', 'ed26c088276b477632fbc7b185944d2b', 275, 'User', '2012-11-29 00:02:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 275 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', NULL, NULL, NULL, '2012-11-29 00:02:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account646' WHERE `accounts`.`id` = 646 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 646 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (646, 275) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 467) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 467 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (467, 'admin') Sent mail to teste@teste.com (9ms) Date: Wed, 28 Nov 2012 22:02:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fc3978b_22e380435d48832ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:04', '2012-11-29 00:02:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:04', 'User', 'abf056f4888080b4623ed0a1750ab79c', 276, 'User', '2012-11-29 00:02:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 276 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', NULL, NULL, NULL, '2012-11-29 00:02:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account647' WHERE `accounts`.`id` = 647 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 647 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (647, 276) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fc44dbe_22e380435d48833d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 276)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 276 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 276 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 276 LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:04', 'notowner@account.test', '$2a$04$WhEcBHpD/5wPCQBks5czPucBC3xDglvyC5ygWQ9q2xKAukqWYHYvi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:04') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:04', 'User', 'c41b618f300326a516243e7ab9efd846', 277, 'User', '2012-11-29 00:02:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 277 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', NULL, NULL, NULL, '2012-11-29 00:02:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account648' WHERE `accounts`.`id` = 648 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 648 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (648, 277) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 469) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 469 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (469, 'admin') Sent mail to notowner@account.test (8ms) Date: Wed, 28 Nov 2012 22:02:04 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50b6a5fc55e0e_22e380435d488344e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', 'jabanilson', NULL, 1, '2012-11-29 00:02:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account649' WHERE `accounts`.`id` = 649  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (649, 277) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 470) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 470 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (470, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 647 LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = 647 WHERE `account_users`.`id` = 470  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 647 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (647, 275) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (471) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 647 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1000 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1001  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 471) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 471 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (471, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 647 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 994 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 995  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 468) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 468 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (468, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 276 LIMIT 1 Started GET "/settings/account/647/users" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"647"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 276 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 647 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_647_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 647 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468, 470, 471) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 276 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 277 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468 AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 275 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468 AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 647 AND `account_users`.`user_id` = 276 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (468) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (647) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 468 AND `account_roles`.`name` = 'admin' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 276 Completed 200 OK in 46ms (Views: 37.9ms | ActiveRecord: 4.6ms)  (7.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:04', 'teste@teste.com', '$2a$04$/HSD7KX6bd5yaSaq3AYN4.LAXPXfK0k8xLtw68YaRSCZeQ3RieOOa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:04', 'User', '3c6c3b2ff8b2c9fa80a6527e6689e8e1', 278, 'User', '2012-11-29 00:02:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 278 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', NULL, NULL, NULL, '2012-11-29 00:02:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account650' WHERE `accounts`.`id` = 650 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 650 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (650, 278) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 472) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 472 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (472, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fc7c184_22e380435d4883523@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:04', '2012-11-29 00:02:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:04', 'User', '3dec7fa3c32c67b412399c9ab92ec3e9', 279, 'User', '2012-11-29 00:02:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 279 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', NULL, NULL, NULL, '2012-11-29 00:02:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account651' WHERE `accounts`.`id` = 651 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 651 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (651, 279) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fc87518_22e380435d4883666@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 279)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 279 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 279 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 279 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 651 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (651, 278) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 651 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (474) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (651)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 651 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1008 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1009  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 474) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 474 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (474, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 651 AND `account_users`.`user_id` = 279 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 473  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 651 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1006 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1007  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 473) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 473 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (473, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 279 LIMIT 1 Started GET "/settings/account/651/users" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"651"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 279 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 651 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_651_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 651 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 651 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473, 474) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (651) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 279 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 651 AND `account_users`.`user_id` = 279 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (651) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 473 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_473_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 473 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 278 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 651 AND `account_users`.`user_id` = 279 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (651) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 473 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_474_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 474 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 651 AND `account_users`.`user_id` = 279 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (473) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (651) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 473 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 279 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 4.8ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:04', 'teste@teste.com', '$2a$04$8RcQX1yh84RHc13D9.zLm.6PKaOqv04DUQfnVl6ByP1MOFojKMbAS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:04', 'User', '00c31934fbffdb0e402018ab2e673314', 280, 'User', '2012-11-29 00:02:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 280 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', NULL, NULL, NULL, '2012-11-29 00:02:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account652' WHERE `accounts`.`id` = 652 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 652 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (652, 280) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 475) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 475 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (475, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fcc55b5_22e380435d488376d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:04', '2012-11-29 00:02:04', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:04', 'User', 'd37df7244415fd563e99959911020361', 281, 'User', '2012-11-29 00:02:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 281 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', NULL, NULL, NULL, '2012-11-29 00:02:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account653' WHERE `accounts`.`id` = 653 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 281) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:04 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fcd0a35_22e380435d4883824@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 281)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 281 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 281 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 281 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (653, 280) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (477) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1016 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1017  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 477) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 477 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (477, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 281 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 653 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1014 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1015  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 476) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 476 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (476, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 281 LIMIT 1 Started GET "/settings/account/653/users" for 127.0.0.1 at 2012-11-28 22:02:04 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"653"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 281 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_653_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 653 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476, 477) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 281 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 281 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_476_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 280 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 281 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_477_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 477 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 653 AND `account_users`.`user_id` = 281 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (476) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (653) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 476 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 281 Completed 200 OK in 34ms (Views: 25.3ms | ActiveRecord: 5.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:04', 'teste@teste.com', '$2a$04$abgdrCKq/YJSwTkkzTcAa.r7vyqj78QslrZmxSxNBY1em85kNJWFm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:04', 'User', '034efd34c3ff905ebdaa98629ca52cbb', 282, 'User', '2012-11-29 00:02:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 282 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:04', NULL, NULL, NULL, '2012-11-29 00:02:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:04', `updated_at` = '2012-11-29 00:02:04', `subdomain` = 'account654' WHERE `accounts`.`id` = 654 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 654 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (654, 282) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 478) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 478 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (478, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fcf32f3_22e380435d488393a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:05', '2012-11-29 00:02:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:05', 'User', 'd34da97057c76299946abf6e53246b85', 283, 'User', '2012-11-29 00:02:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 283 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:05', NULL, NULL, NULL, '2012-11-29 00:02:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:05', `updated_at` = '2012-11-29 00:02:05', `subdomain` = 'account655' WHERE `accounts`.`id` = 655 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 283) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fdb578_22e380435d488408e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 283)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 283 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 283 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 283 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (655, 282) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (480) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1024 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1025  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 480) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 480 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (480, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 283 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 655 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1022 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1023  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 479) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 479 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (479, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 283 LIMIT 1 Started GET "/settings/account/655/users" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"655"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 283 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_655_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 655 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479, 480) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 283 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 283 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_479_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 282 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 283 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_480_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 480 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 655 AND `account_users`.`user_id` = 283 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (479) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (655) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 479 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 283 Completed 200 OK in 33ms (Views: 24.6ms | ActiveRecord: 5.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:05', 'teste@teste.com', '$2a$04$5J2ep2MtSj63m3llnmFAT.PYUvY/agLs0N8nWXqKnV5di0RvIkMd.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:05', 'User', '245aaddd27cb42614c41e1f0af4dcdcc', 284, 'User', '2012-11-29 00:02:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 284 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:05', NULL, NULL, NULL, '2012-11-29 00:02:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:05', `updated_at` = '2012-11-29 00:02:05', `subdomain` = 'account656' WHERE `accounts`.`id` = 656 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 656 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (656, 284) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 481) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 481 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (481, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fd472fe_22e380435d488411c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:05', '2012-11-29 00:02:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:05', 'User', '36f9afd0c62aeb57becb9a33b13179f9', 285, 'User', '2012-11-29 00:02:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 285 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:05', NULL, NULL, NULL, '2012-11-29 00:02:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:05', `updated_at` = '2012-11-29 00:02:05', `subdomain` = 'account657' WHERE `accounts`.`id` = 657 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 285) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fd525c1_22e380435d488428c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 285)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 285 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 285 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 285 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (657, 284) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (483) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1032 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1033  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 483) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 483 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (483, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 285 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 657 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1030 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1031  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 482) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 482 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (482, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 285 LIMIT 1 Started GET "/settings/account/657/users" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"657"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 285 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_657_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 657 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482, 483) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 285 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 285 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_482_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 284 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 285 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_483_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 483 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 657 AND `account_users`.`user_id` = 285 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (482) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (657) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 482 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 285 Completed 200 OK in 33ms (Views: 25.0ms | ActiveRecord: 5.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:05', 'teste@teste.com', '$2a$04$jnrT3KEjuZOWpe7NvKLAJ.b5aaMPsUbhyJepzR.TOk4aJsLqHunNq', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:05', 'User', 'a665615c61e7dbb803bdd5bc20cc3c40', 286, 'User', '2012-11-29 00:02:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 286 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:05', NULL, NULL, NULL, '2012-11-29 00:02:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:05', `updated_at` = '2012-11-29 00:02:05', `subdomain` = 'account658' WHERE `accounts`.`id` = 658 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 658 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (658, 286) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 484) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 484 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (484, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fd7435d_22e380435d48843b8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:05', '2012-11-29 00:02:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:05', 'User', 'ae0d1c602cc8602266865105aae31b59', 287, 'User', '2012-11-29 00:02:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 287 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:05', NULL, NULL, NULL, '2012-11-29 00:02:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:05', `updated_at` = '2012-11-29 00:02:05', `subdomain` = 'account659' WHERE `accounts`.`id` = 659 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (659, 287) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (485, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fd7fec5_22e380435d4884471@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 287)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 287 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 287 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 287 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 287 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 659 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1039  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 485) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 485 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 287 LIMIT 1 Started GET "/settings/account/659/users" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"659"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 287 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_659_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 659 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (485) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 287 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 287 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (485) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_485_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 659 AND `account_users`.`user_id` = 287 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (485) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (659) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 485 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 287 Completed 200 OK in 30ms (Views: 22.7ms | ActiveRecord: 3.7ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:05', 'teste@teste.com', '$2a$04$FqLRC3MlZSYfHYNrNg9Yqu87AO4t7LsSqJP39kaYFpt0dIlsSI1e6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:05', 'User', '6d1d4dfe2cff1938c75a479145ae86a0', 288, 'User', '2012-11-29 00:02:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 288 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:05', NULL, NULL, NULL, '2012-11-29 00:02:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:05', `updated_at` = '2012-11-29 00:02:05', `subdomain` = 'account660' WHERE `accounts`.`id` = 660 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 660 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (660, 288) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 486) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 486 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (486, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fd9d139_22e380435d48845a0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:05', '2012-11-29 00:02:05', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.7ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:05', 'User', '9c1f9a0aa3432fcdf2c6a865210330a2', 289, 'User', '2012-11-29 00:02:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 289 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:05', NULL, NULL, NULL, '2012-11-29 00:02:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:05', `updated_at` = '2012-11-29 00:02:05', `subdomain` = 'account661' WHERE `accounts`.`id` = 661 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (661, 289) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (487, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fdc656d_22e380435d4884685@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 289)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 289 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 289 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 173ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 289 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 289 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 661 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1043  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 487) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 487 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 289 LIMIT 1 Started GET "/settings/account/661/users" for 127.0.0.1 at 2012-11-28 22:02:05 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"661"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 289 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_661_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 661 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 289 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 289 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_487_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 661 AND `account_users`.`user_id` = 289 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (487) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (661) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 487 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 289 Completed 200 OK in 25ms (Views: 17.6ms | ActiveRecord: 3.5ms)  (90.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:05', 'teste@teste.com', '$2a$04$AOE66OuqU/WTwWc1H0NXL.vAt84FOMhVDHTpl/nLmM/ER0Solst62', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:05', 'User', '0303c96a0643ed8e49f1a51ec2f3e0a4', 290, 'User', '2012-11-29 00:02:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 290 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:05', NULL, NULL, NULL, '2012-11-29 00:02:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:05', `updated_at` = '2012-11-29 00:02:05', `subdomain` = 'account662' WHERE `accounts`.`id` = 662 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 662 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (662, 290) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 488) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 488 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (488, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fe3d1f_22e380435d488476f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:06', '2012-11-29 00:02:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:06', 'User', 'ab3df2669ec0ce8120d50c838ce49ca0', 291, 'User', '2012-11-29 00:02:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 291 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:06', NULL, NULL, NULL, '2012-11-29 00:02:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:06', `updated_at` = '2012-11-29 00:02:06', `subdomain` = 'account663' WHERE `accounts`.`id` = 663 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (663, 291) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (489, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 22:02:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fe10dae_22e380435d488484@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 291)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 291 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 291 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 291 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 291 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 663 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1047  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 489) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 489 LIMIT 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 291 LIMIT 1 Started GET "/settings/account/663/users" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"663"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 291 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_663_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 663 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 291 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 291 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_489_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 663 AND `account_users`.`user_id` = 291 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (489) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (663) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 489 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 291 Completed 200 OK in 24ms (Views: 17.2ms | ActiveRecord: 3.6ms)  (28.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:06', 'teste@teste.com', '$2a$04$zlnQdkyxjCcxePd92iw9ru7bek4KdVJJqQ0C5KNkup6aul0VShxF6', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:06', 'User', 'e56b2d2c686cb58394eeca162468d6a6', 292, 'User', '2012-11-29 00:02:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 292 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:06', NULL, NULL, NULL, '2012-11-29 00:02:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:06', `updated_at` = '2012-11-29 00:02:06', `subdomain` = 'account664' WHERE `accounts`.`id` = 664 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 664 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (664, 292) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 490) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 490 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (490, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fe3193b_22e380435d4884970@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:06', '2012-11-29 00:02:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:06', 'User', '98154cfda1b649f595b485f4b9409b3b', 293, 'User', '2012-11-29 00:02:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 293 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:06', NULL, NULL, NULL, '2012-11-29 00:02:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:06', `updated_at` = '2012-11-29 00:02:06', `subdomain` = 'account665' WHERE `accounts`.`id` = 665 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (665, 293) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (491, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fe3de73_22e380435d4885025@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 293)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 293 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 293 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 293 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 293 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 665 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1051  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 491) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 491 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 293 LIMIT 1 Started GET "/settings/account/665/users" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"665"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 293 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_665_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 665 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 293 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 293 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_491_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 665 AND `account_users`.`user_id` = 293 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (491) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (665) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 491 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 293 Completed 200 OK in 142ms (Views: 134.8ms | ActiveRecord: 3.4ms)  (66.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:06', 'teste@teste.com', '$2a$04$SDMEVNFOvD84mzJH9brWyeaGOdqGVrtgcBvSs9IU1v8CHN4ye9L82', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:06', 'User', '723ef907908a5293dbb557a357698f30', 294, 'User', '2012-11-29 00:02:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 294 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:06', NULL, NULL, NULL, '2012-11-29 00:02:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:06', `updated_at` = '2012-11-29 00:02:06', `subdomain` = 'account666' WHERE `accounts`.`id` = 666 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 666 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (666, 294) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 492) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 492 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (492, 'admin') Sent mail to teste@teste.com (9ms) Date: Wed, 28 Nov 2012 22:02:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fe84921_22e380435d4885115@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:06', '2012-11-29 00:02:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:06', 'User', 'c93935b8dc8a49996edd44075c676900', 295, 'User', '2012-11-29 00:02:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 295 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:06', NULL, NULL, NULL, '2012-11-29 00:02:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:06', `updated_at` = '2012-11-29 00:02:06', `subdomain` = 'account667' WHERE `accounts`.`id` = 667 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (667, 295) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (493, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 22:02:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fe90133_22e380435d48852f2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 295)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 295 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 295 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (667, 294) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (494) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 667 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1056 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1057  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 494) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 494 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (494, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 295 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 667 AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1055  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 493) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 493 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 295 LIMIT 1 Started GET "/settings/account/667/users" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"667"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_667_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493, 494) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 295 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_493_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_494_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 494 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 295 Completed 200 OK in 33ms (Views: 24.7ms | ActiveRecord: 4.9ms) Started DELETE "/settings/account/667/user/294" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"667", "user_id"=>"294"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_667_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 295 AND `account_users`.`account_id` = 667 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 494 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:06', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 494\n account_id: 667\n user_id: 294\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_494_destroy', '2012-11-29 00:02:06', '2012-11-29 00:02:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_494_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/667/users Completed 302 Found in 21ms (ActiveRecord: 3.1ms) Started GET "/settings/account/667/users" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"667"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_667_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 667 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493, 494) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 295 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 295 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_493_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 294 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_494_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 667 AND `account_users`.`user_id` = 295 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (493) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (667) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 493 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 295 Completed 200 OK in 34ms (Views: 25.9ms | ActiveRecord: 4.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:06', 'teste@teste.com', '$2a$04$.3Kyj43xv7ELHGr38HFyPum3U26jGZHwSJHyoDhASnNuv.KrWW16y', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:06', 'User', '63dd8af88182f73b8ee413bda66649d4', 296, 'User', '2012-11-29 00:02:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 296 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:06', NULL, NULL, NULL, '2012-11-29 00:02:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:06', `updated_at` = '2012-11-29 00:02:06', `subdomain` = 'account668' WHERE `accounts`.`id` = 668 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 668 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (668, 296) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 495) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 495 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (495, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:02:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5fed722a_22e380435d48853a1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:06 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:06', '2012-11-29 00:02:06', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:06', 'User', '09eb881ffc3a8bd59a80d6adf2a58919', 297, 'User', '2012-11-29 00:02:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 297 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:06', NULL, NULL, NULL, '2012-11-29 00:02:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:06', `updated_at` = '2012-11-29 00:02:06', `subdomain` = 'account669' WHERE `accounts`.`id` = 669 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 297) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (496, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:06 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5fee2947_22e380435d48854ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 297)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 297 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 297 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 112ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (669, 296) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (497) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1063 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1064  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 497) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 497 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (497, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 297 LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 669 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1062  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 496) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 496 LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 297 LIMIT 1 Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496, 497) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 297 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_497_destroy' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 497 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 297 Completed 200 OK in 33ms (Views: 24.4ms | ActiveRecord: 4.9ms) Started DELETE "/settings/account/669/user/296" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"669", "user_id"=>"296"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 297 AND `account_users`.`account_id` = 669 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 497 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 497\n account_id: 669\n user_id: 296\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_497_destroy', '2012-11-29 00:02:07', '2012-11-29 00:02:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_497_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/669/users Completed 302 Found in 16ms (ActiveRecord: 3.4ms) Started GET "/settings/account/669/users" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"669"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_669_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 669 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496, 497) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 297 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 297 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_496_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 296 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_497_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 669 AND `account_users`.`user_id` = 297 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (496) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (669) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 496 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 297 Completed 200 OK in 32ms (Views: 24.9ms | ActiveRecord: 4.4ms)  (80.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:07', 'teste@teste.com', '$2a$04$IYxATWSoptT6tP4m9ldEgulE9MLLBjOzcq0eqxejxkuNAif3TULCi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:07', 'User', '58c43c78acd2b6d2eebefbd041d8da3e', 298, 'User', '2012-11-29 00:02:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 298 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:07', NULL, NULL, NULL, '2012-11-29 00:02:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:07', `updated_at` = '2012-11-29 00:02:07', `subdomain` = 'account670' WHERE `accounts`.`id` = 670 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 670 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (670, 298) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 498) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 498 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (498, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5ff5d959_22e380435d488551c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:07', '2012-11-29 00:02:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:07', 'User', '2a7661ddb9ed549eb2697f246232ab39', 299, 'User', '2012-11-29 00:02:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 299 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:07', NULL, NULL, NULL, '2012-11-29 00:02:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:07', `updated_at` = '2012-11-29 00:02:07', `subdomain` = 'account671' WHERE `accounts`.`id` = 671 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 299) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (499, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5ff68a05_22e380435d48856d1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 299)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 299 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 299 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 48ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (671, 298) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (500) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1070 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1071  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 500) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 500 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (500, 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 299 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 671 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1069  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 499) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 499 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 299 LIMIT 1 Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499, 500) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 299 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_500_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 500 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 299 Completed 200 OK in 33ms (Views: 24.5ms | ActiveRecord: 4.6ms) Started DELETE "/settings/account/671/user/298" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"671", "user_id"=>"298"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 299 AND `account_users`.`account_id` = 671 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 500 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 500\n account_id: 671\n user_id: 298\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_500_destroy', '2012-11-30 00:02:07', '2012-11-29 00:02:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_500_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/671/users Completed 302 Found in 17ms (ActiveRecord: 3.7ms) Started GET "/settings/account/671/users" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"671"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_671_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 671 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499, 500) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 299 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 299 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_499_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 298 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_500_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 671 AND `account_users`.`user_id` = 299 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (499) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (671) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 499 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 299 Completed 200 OK in 32ms (Views: 23.6ms | ActiveRecord: 4.8ms)  (6.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:07', 'teste@teste.com', '$2a$04$qKystYvFX06r1pvkMY83Z.HBGLUKvyfXxbUSsmZHMUxQYiZn67r8K', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:07', 'User', '8252c7e1d8fafd4faa2bc4e11718ef30', 300, 'User', '2012-11-29 00:02:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 300 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:07', NULL, NULL, NULL, '2012-11-29 00:02:07')  (0.7ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:07', `updated_at` = '2012-11-29 00:02:07', `subdomain` = 'account672' WHERE `accounts`.`id` = 672 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 672 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (672, 300) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 501) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 501 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (501, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:02:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a5ffb6cfe_22e380435d488572@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:07', '2012-11-29 00:02:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:07', 'User', '73736e731bb97f41560ed69ff8f8377b', 301, 'User', '2012-11-29 00:02:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 301 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:07', NULL, NULL, NULL, '2012-11-29 00:02:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:07', `updated_at` = '2012-11-29 00:02:07', `subdomain` = 'account673' WHERE `accounts`.`id` = 673 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 301) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (502, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a5ffc1852_22e380435d48858a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 301)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 301 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 301 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 47ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (673, 300) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (503) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673)  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1077 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1078  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = 503) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 503 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (503, 'user')  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 301 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 673 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1076  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 502) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 502 LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 301 LIMIT 1 Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502, 503) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 301 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_503_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 503 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 301 Completed 200 OK in 44ms (Views: 34.6ms | ActiveRecord: 5.1ms) Started DELETE "/settings/account/673/user/300" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"673", "user_id"=>"300"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 301 AND `account_users`.`account_id` = 673 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 503 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:07', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 503\n account_id: 673\n user_id: 300\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_503_destroy', '2012-11-30 00:02:07', '2012-11-29 00:02:07')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_503_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/673/users Completed 302 Found in 17ms (ActiveRecord: 4.0ms) Started GET "/settings/account/673/users" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"673"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_673_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 673 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502, 503) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 301 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 301 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_502_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 300 LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_503_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 673 AND `account_users`.`user_id` = 301 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (502) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (673) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 502 AND `account_roles`.`name` = 'owner' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 301 Completed 200 OK in 31ms (Views: 23.6ms | ActiveRecord: 4.5ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/orkut" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::OmniauthCallbacksController#passthru as HTML Parameters: {"provider"=>"orkut"} Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:07', '2012-11-29 00:02:07', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:07', 'User', 'da661b14f36f8f3a60812089cb48dd31', 302, 'User', '2012-11-29 00:02:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 302 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:07', NULL, NULL, NULL, '2012-11-29 00:02:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:07', `updated_at` = '2012-11-29 00:02:07', `subdomain` = 'account674' WHERE `accounts`.`id` = 674 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 674 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (674, 302) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 504) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 504 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (504, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6005642_22e380435d48859ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 302)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 302 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 302 LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:08', '2012-11-29 00:02:08', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:08', 'User', '5c7e7b8dd24f7d985233ea0ed219c13a', 303, 'User', '2012-11-29 00:02:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 303 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:08', NULL, NULL, NULL, '2012-11-29 00:02:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:08', `updated_at` = '2012-11-29 00:02:08', `subdomain` = 'account675' WHERE `accounts`.`id` = 675 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 675 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (675, 303) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 505) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 505 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (505, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6003584e_22e380435d48860f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 303)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 303 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 173ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 303 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (12.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (5.5ms) Completed 200 OK in 52ms (Views: 49.7ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:08', 'test@test.test', '$2a$04$DHuzxBWHw3YaYXHoP6QYueLBomY3iVkNbPWUSq.cqdoF7u9/s8AbK', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:08', 'User', '02d79c561d8c526f75b2e871ad32ab49', 304, 'User', '2012-11-29 00:02:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:08', NULL, NULL, NULL, '2012-11-29 00:02:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:08', `updated_at` = '2012-11-29 00:02:08', `subdomain` = 'account676' WHERE `accounts`.`id` = 676 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 676 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (676, 304) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 506) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 506 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (506, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:08 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a60057403_22e380435d48861e6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 LIMIT 1 Completed 302 Found in 29ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 304 AND (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 304)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 Completed 200 OK in 117ms (Views: 115.3ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 304 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 304 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_304_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 304 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 304 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 304 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 304 Completed 200 OK in 45ms (Views: 40.0ms | ActiveRecord: 2.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'facebook@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:08', 'facebook@test.test', '$2a$04$kwT7pvWaWWvkOvIrTQRSeet9EEXZsMwrbi65XrNFTNQDvhvFwKaee', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:08', 'User', '4fbf89e50501db6c05464e2801a16c3c', 305, 'User', '2012-11-29 00:02:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 305 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:08', NULL, NULL, NULL, '2012-11-29 00:02:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:08', `updated_at` = '2012-11-29 00:02:08', `subdomain` = 'account677' WHERE `accounts`.`id` = 677 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 677 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (677, 305) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 507) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 507 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (507, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a600a12a8_22e380435d488625b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test' Redirected to http://iugusdk.dev/ Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:08', '2012-11-29 00:02:08', '', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:08', 'User', 'fb8a6a248011d8d9dddf47b44a633805', 306, 'User', '2012-11-29 00:02:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 306 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:08', NULL, NULL, NULL, '2012-11-29 00:02:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:08', `updated_at` = '2012-11-29 00:02:08', `subdomain` = 'account678' WHERE `accounts`.`id` = 678 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 678 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (678, 306) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 508) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 508 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (508, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 306)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 306 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 306 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 37ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 306 LIMIT 1 Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:08', 'test@test.test', '$2a$04$6hMhWcCswIJvbdke3J/vRuFunjuzy.J0zWWaXdmZPu5pPhpCTCuQC', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:08', 'User', '0164964d27125e4e192db907da0eef5c', 307, 'User', '2012-11-29 00:02:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:08', NULL, NULL, NULL, '2012-11-29 00:02:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:08', `updated_at` = '2012-11-29 00:02:08', `subdomain` = 'account679' WHERE `accounts`.`id` = 679 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 679 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (679, 307) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 509) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 509 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (509, 'admin') Sent mail to test@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:08 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50b6a600c4a9b_22e380435d48863b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 307 AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('twitter', NULL, 1234, 'newtoken', 307)  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:08 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 307 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 307 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_307_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 307 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 307 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 307 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 307 Completed 200 OK in 26ms (Views: 21.4ms | ActiveRecord: 2.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:09', '2012-11-29 00:02:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:09', 'User', 'ffa59d3435e258a514a5e53d9102f957', 308, 'User', '2012-11-29 00:02:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', NULL, NULL, NULL, '2012-11-29 00:02:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account680' WHERE `accounts`.`id` = 680 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 680 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (680, 308) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 510) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 510 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (510, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a601c901_22e380435d4886466@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 308)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 308 AND `account_users`.`account_id` = 680 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (510) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (680) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 510\n account_id: 680\n user_id: 308\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_510_destroy', '2012-11-30 00:02:09', '2012-11-29 00:02:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', 'jabanilson', NULL, 1, '2012-11-29 00:02:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account681' WHERE `accounts`.`id` = 681  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (681, 308) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 511) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 511 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (511, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 308 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 308 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_308_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 308 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 308 Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 2.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:09', '2012-11-29 00:02:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:09', 'User', 'a40e01186b641ce9701e33ec2ba4a3e3', 309, 'User', '2012-11-29 00:02:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', NULL, NULL, NULL, '2012-11-29 00:02:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account682' WHERE `accounts`.`id` = 682 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 682 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (682, 309) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 512) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 512 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (512, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a60148d7d_22e380435d48865c3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 309)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 170ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 309 AND `account_users`.`account_id` = 682 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (512) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (682) SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:09', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:AccountUser\n attributes:\n id: 512\n account_id: 682\n user_id: 309\nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'account_user_512_destroy', '2012-11-30 00:02:09', '2012-11-29 00:02:09')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', 'jabanilson', NULL, 1, '2012-11-29 00:02:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account683' WHERE `accounts`.`id` = 683  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (683, 309) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 513) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 513 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (513, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', 'jabanilson', NULL, 1, '2012-11-29 00:02:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account684' WHERE `accounts`.`id` = 684  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (684, 309) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 514) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 514 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (514, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 309 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 309 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_309_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 309 AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 309 Completed 200 OK in 25ms (Views: 21.0ms | ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:09', '2012-11-29 00:02:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:09', 'User', '2014d7ff5ad3e285ed367c2e828a7f50', 310, 'User', '2012-11-29 00:02:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', NULL, NULL, NULL, '2012-11-29 00:02:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account685' WHERE `accounts`.`id` = 685 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 685 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (685, 310) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 515) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 515 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (515, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6016a8bf_22e380435d48866fa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 310)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 310 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 310 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_310_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 310 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 2.5ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:09', '2012-11-29 00:02:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:09', 'User', '1a7f50f2acb6ee098a785340ad9253a7', 311, 'User', '2012-11-29 00:02:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 311 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', NULL, NULL, NULL, '2012-11-29 00:02:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account686' WHERE `accounts`.`id` = 686 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 686 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (686, 311) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 516) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 516 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (516, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a601853cb_22e380435d488671a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 311)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 311 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 Completed 200 OK in 123ms (Views: 120.5ms | ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:09', 'teste@teste.com', '$2a$04$FLKa/OpC1YwhzwM4f3U5uO0njg9TVeVKMHPLOqO6Lx6Nouh7ZTtHa', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-29 00:02:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:09', 'User', '0e0d1322db6939fb2a2bb1c4de638165', 312, 'User', '2012-11-29 00:02:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 312 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', NULL, NULL, NULL, '2012-11-29 00:02:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account687' WHERE `accounts`.`id` = 687 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 687 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (687, 312) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 517) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 517 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (517, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a601b1ebd_22e380435d488681f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', 'jabanilson', NULL, 1, '2012-11-29 00:02:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account688' WHERE `accounts`.`id` = 688  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', 'jabanilson', NULL, 1, '2012-11-29 00:02:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account689' WHERE `accounts`.`id` = 689  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 689 AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (689, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:02:09', '8HdyAPjJc_7JsO622_cUZvq8IuQ') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a601b9bcf_22e380435d4886961@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/228HdyAPjJc_7JsO622_cUZvq8IuQ  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 688 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 688, `invited_by` = 312 WHERE `user_invitations`.`id` = 22  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/228HdyAPjJc_7JsO622_cUZvq8IuQ" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"228HdyAPjJc_7JsO622_cUZvq8IuQ"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 311 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 22 LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 312 LIMIT 1 Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 1.1ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:09', '2012-11-29 00:02:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:09', 'User', 'e788e4c9efb56de535f81a999ba7aaa4', 313, 'User', '2012-11-29 00:02:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 313 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', NULL, NULL, NULL, '2012-11-29 00:02:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account690' WHERE `accounts`.`id` = 690 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 690 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (690, 313) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 518) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 518 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (518, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a601ca93b_22e380435d488701b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 313)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 313 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 313 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 313 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:09', 'teste@teste.com', '$2a$04$aKUcPifsrNc.sZ5XcHGHy.Zz7CYBCK1xc/qEqyPvEiLjYeIaVtvcu', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-29 00:02:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:09', 'User', '80931609380e62a5809b2ed31fb6c991', 314, 'User', '2012-11-29 00:02:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 314 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', NULL, NULL, NULL, '2012-11-29 00:02:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account691' WHERE `accounts`.`id` = 691 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 691 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (691, 314) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 519) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 519 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (519, 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a601d912d_22e380435d48871fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', 'jabanilson', NULL, 1, '2012-11-29 00:02:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account692' WHERE `accounts`.`id` = 692  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', 'jabanilson', NULL, 1, '2012-11-29 00:02:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account693' WHERE `accounts`.`id` = 693  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 693 AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (693, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:02:09', '1HXAiyUhdb_DrdcPVKGuEdG63ss') Sent mail to teste@teste.teste (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a601e0c2a_22e380435d488722f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/231HXAiyUhdb_DrdcPVKGuEdG63ss  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 692 AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = 692, `invited_by` = 314 WHERE `user_invitations`.`id` = 23  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/231HXAiyUhdb_DrdcPVKGuEdG63ss" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"231HXAiyUhdb_DrdcPVKGuEdG63ss"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 313 LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 23 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 314 LIMIT 1 Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:09', '2012-11-29 00:02:09', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:09', 'User', 'c6996f66184000bb0590f365b02158e4', 315, 'User', '2012-11-29 00:02:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 315 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:09', NULL, NULL, NULL, '2012-11-29 00:02:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:09', `updated_at` = '2012-11-29 00:02:09', `subdomain` = 'account694' WHERE `accounts`.`id` = 694 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 694 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (694, 315) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 520) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 520 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (520, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a601f0cad_22e380435d4887320@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 315)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 315 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 315 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 315 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:10', 'teste@teste.com', '$2a$04$YQYdc33xNtHe.ddfWICwmusyoonv55lqIvKW4NL54V2A6K7SA5xny', NULL, 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', 'c8b0fa8b8eaf8c57e05b4342449a5f55', 316, 'User', '2012-11-29 00:02:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 316 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account695' WHERE `accounts`.`id` = 695 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 695 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (695, 316) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 521) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 521 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (521, 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50b6a602ca28_22e380435d4887443@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', 'jabanilson', NULL, 1, '2012-11-29 00:02:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account696' WHERE `accounts`.`id` = 696  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', 'jabanilson', NULL, 1, '2012-11-29 00:02:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account697' WHERE `accounts`.`id` = 697  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 697 AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (697, 'teste@teste.teste', NULL, NULL, '2012-11-29 00:02:10', 'GP6DUDAfaVdEyiwYMYprLFmMgnQ') Sent mail to teste@teste.teste (8ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50b6a6023332f_22e380435d48875a2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/24GP6DUDAfaVdEyiwYMYprLFmMgnQ  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = 696 AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = 696, `invited_by` = 316 WHERE `user_invitations`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/24GP6DUDAfaVdEyiwYMYprLFmMgnQ" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"24GP6DUDAfaVdEyiwYMYprLFmMgnQ"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 315 LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = 24 LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 316 LIMIT 1 Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:10', '2012-11-29 00:02:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', '9f5888a78a4d228279aa8302c7fb653c', 317, 'User', '2012-11-29 00:02:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 317 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account698' WHERE `accounts`.`id` = 698 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 698 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (698, 317) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 522) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 522 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (522, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a60246e12_22e380435d488763b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 317)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 317 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 317 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 317 LIMIT 1 Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 317 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:10', 'tester@roles.test', '$2a$04$5fGIRdrbtGY.9a7GC1Zn1Oa3o./2j0K/pVxSttiN6uAaIIRf3N1n2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', 'bbf4050a8ace99dd644615eb4e9de92b', 318, 'User', '2012-11-29 00:02:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 318 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account699' WHERE `accounts`.`id` = 699 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 699 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (699, 318) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 523) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 523 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (523, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a60257436_22e380435d4887731@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 698 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (698, 318) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 524) LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 524 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (524, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/698/invite" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"698"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 317 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 317 AND `account_users`.`account_id` = 698 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 522 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 522 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 698 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 698 AND `account_users`.`user_id` = 317 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (522) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (698) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 522 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 16.7ms | ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:10', '2012-11-29 00:02:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', '74fc857da1b0ff04ef8fb286b09d944e', 319, 'User', '2012-11-29 00:02:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 319 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account700' WHERE `accounts`.`id` = 700 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 319) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 525) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 525 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (525, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6026e8df_22e380435d488784d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 319)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 319 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 319 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 319 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 319 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:10', 'tester@roles.test', '$2a$04$ftd0B.4H1jGHVm3nceoFcOEo4Xb24HHGamLW.IVCOx8.9Ti9i3.gu', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', '0a5e048a957ed71d9efe3ff0eea7363a', 320, 'User', '2012-11-29 00:02:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 320 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account701' WHERE `accounts`.`id` = 701 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 701 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (701, 320) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 526) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 526 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (526, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a6027ee67_22e380435d488792f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (700, 320) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 527) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 527 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (527, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/700/invite" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"700"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 319 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 319 AND `account_users`.`account_id` = 700 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 525 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 525 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 700 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 700 AND `account_users`.`user_id` = 319 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (525) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (700) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 525 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 3.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:10', '2012-11-29 00:02:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', '1e9d366dd3b41b98b30554d8bb858615', 321, 'User', '2012-11-29 00:02:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 321 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account702' WHERE `accounts`.`id` = 702 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 321) AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 528) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 528 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (528, 'admin') Sent mail to facebook@test.test (9ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a602b088b_22e380435d488807d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 321)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 321 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 321 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 173ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 321 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 321 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:10', 'tester@roles.test', '$2a$04$VjjYOa8RnbKNByIzV6kOc.LHKeh0byKb2wsooA9A65SZzEq43X5wi', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', '2ee48b355cbba498d5b2bd86c547a9e1', 322, 'User', '2012-11-29 00:02:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 322 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account703' WHERE `accounts`.`id` = 703 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 703 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (703, 322) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 529) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 529 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (529, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a602c1275_22e380435d48881d1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (702, 322) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 530) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 530 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (530, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/702/invite" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"702"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 321 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 321 AND `account_users`.`account_id` = 702 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 528 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 528 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 702 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 702 AND `account_users`.`user_id` = 321 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (528) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (702) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 528 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 9.9ms | ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:10', '2012-11-29 00:02:10', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', '3f5fa7bfd731584abfea07a8035c0a39', 323, 'User', '2012-11-29 00:02:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 323 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account704' WHERE `accounts`.`id` = 704 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 323) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 531) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 531 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (531, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a602d68de_22e380435d488820@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 323)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 323 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 323 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 323 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 323 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:10', 'tester@roles.test', '$2a$04$EAK7/20E53EOhQ0VWqKGr.bzugoADKeJqGeIs9J8refVqkIxgExd2', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:10', 'User', '16b351de0de8f4833520a30daa657f47', 324, 'User', '2012-11-29 00:02:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 324 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:10', NULL, NULL, NULL, '2012-11-29 00:02:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:10', `updated_at` = '2012-11-29 00:02:10', `subdomain` = 'account705' WHERE `accounts`.`id` = 705 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 705 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (705, 324) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 532) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 532 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (532, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 22:02:10 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a602e66a8_22e380435d4888355@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (704, 324) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 533) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 533 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (533, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/704/invite" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"704"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 323 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 323 AND `account_users`.`account_id` = 704 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 531 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 531 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 704 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 704 AND `account_users`.`user_id` = 323 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (531) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (704) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 531 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 12.7ms | ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:11', '2012-11-29 00:02:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', '95f5485d41751b8d0578874df362ac82', 325, 'User', '2012-11-29 00:02:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 325 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account706' WHERE `accounts`.`id` = 706 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 325) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 534) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 534 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (534, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6039932_22e380435d48884d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 325)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 325 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 325 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 325 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 325 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:11', 'tester@roles.test', '$2a$04$Gtfn6Ts6H2B2OAI3ioQD.eQ5dLytZRp43rmOKqoXeTi9qITjkRtOO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', 'fb52bce045abd9152fc9061b29e474fa', 326, 'User', '2012-11-29 00:02:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 326 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account707' WHERE `accounts`.`id` = 707 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 707 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (707, 326) AccountRole Exists (128.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 535) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 535 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (535, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 22:02:11 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a6033b6d3_22e380435d488854@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (706, 326) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 536) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 536 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (536, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/706/invite" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"706"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 325 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 325 AND `account_users`.`account_id` = 706 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 534 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 534 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 706 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 706 AND `account_users`.`user_id` = 325 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (534) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (706) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 534 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 10.2ms | ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:11', '2012-11-29 00:02:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', '99023d018c58958a11f2400f200206e1', 327, 'User', '2012-11-29 00:02:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 327 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account708' WHERE `accounts`.`id` = 708 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 327) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 537) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 537 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (537, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6035030e_22e380435d4888647@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 327)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 327 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 327 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 327 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 327 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:11', 'tester@roles.test', '$2a$04$VIvWTvAd3j0X2A69hGzWf.YdGDW3YPJdUdF9N0vBDVbKkTW9.Q0pO', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', 'b3f5e3283d255b06a8a6fe0f054b74f6', 328, 'User', '2012-11-29 00:02:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 328 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account709' WHERE `accounts`.`id` = 709 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 709 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (709, 328) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 538) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 538 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (538, 'admin') Sent mail to tester@roles.test (9ms) Date: Wed, 28 Nov 2012 22:02:11 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a6035ffaf_22e380435d48887e5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (708, 328) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 539) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 539 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (539, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/708/invite" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"708"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 327 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 327 AND `account_users`.`account_id` = 708 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 537 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 537 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 708 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 708 AND `account_users`.`user_id` = 327 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (537) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (708) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 537 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 12.3ms | ActiveRecord: 2.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:11', '2012-11-29 00:02:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', 'd30141b4619dae9d2be482a970333d9e', 329, 'User', '2012-11-29 00:02:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 329 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account710' WHERE `accounts`.`id` = 710 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 329) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6037764c_22e380435d488888c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 329)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 329 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 329 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 329 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 329 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:11', 'tester@roles.test', '$2a$04$qoSCBbVZO/8LQwcmyOs4DuI2GktVEzlsF5Q9TqAPT3KDZSo5RZO7O', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', '8b28309d16aaf28895b0307acedfa65a', 330, 'User', '2012-11-29 00:02:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 330 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account711' WHERE `accounts`.`id` = 711 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 711 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (711, 330) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 541) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 541 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (541, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 22:02:11 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a603889ec_22e380435d48889fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (710, 330) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 542) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 542 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (542, 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/710/invite" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"710"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 329 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 329 AND `account_users`.`account_id` = 710 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 540 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 540 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 710 AND `account_users`.`user_id` = 329 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (540) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (710) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 540 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.8ms | ActiveRecord: 2.5ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 329 AND `account_users`.`account_id` = 710 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 540  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 710 AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1152 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1153  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 540) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 540 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (540, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/710/invite" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"710"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 329 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 329 AND `account_users`.`account_id` = 710 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 540 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 540 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 710 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 710 AND `account_users`.`user_id` = 329 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (540) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (710) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 540 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 152ms (Views: 11.9ms | ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:11', '2012-11-29 00:02:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', 'f763696b0b98af77553283cc5d5b9dd9', 331, 'User', '2012-11-29 00:02:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 331 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account712' WHERE `accounts`.`id` = 712 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 331) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 22:02:11 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a603c6226_22e380435d4889019@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 331)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 331 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 331 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 53ms (ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 331 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 331 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:11', 'tester@roles.test', '$2a$04$ZTHkQdMZZoG7mztlWxyXqeqBGYC3HWJA.2VT7tqEwXlL9q1TAcz2q', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', 'a223913151de0adf09c3effd0965932a', 332, 'User', '2012-11-29 00:02:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 332 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account713' WHERE `accounts`.`id` = 713 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 713 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (713, 332) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 544) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 544 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (544, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 22:02:11 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a603d6d47_22e380435d4889179@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (712, 332) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 545) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 545 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (545, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 331 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 331 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 543 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 543 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 331 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (543) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 543 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.2ms | ActiveRecord: 2.6ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 331 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 543  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 712 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1159 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1160  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 543) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 543 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (543, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/712/invite" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"712"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 331 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 331 AND `account_users`.`account_id` = 712 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 543 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 543 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 712 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 712 AND `account_users`.`user_id` = 331 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (543) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (712) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 543 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 10.6ms | ActiveRecord: 2.5ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:11 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:11', '2012-11-29 00:02:11', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:11', 'User', 'd5e93dc7012cdc04373a4091e3dd1d8d', 333, 'User', '2012-11-29 00:02:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 333 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:11', NULL, NULL, NULL, '2012-11-29 00:02:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:11', `updated_at` = '2012-11-29 00:02:11', `subdomain` = 'account714' WHERE `accounts`.`id` = 714 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 333) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a603f3bc0_22e380435d488925f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 333)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 333 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 333 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 333 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 333 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:12', 'tester@roles.test', '$2a$04$G1lPOfLqAO8DBw2llTZVCOY2oWA2QGh9CYWoywCx6gpVaJqJYmJtS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:12', 'User', '1cab80a8746f65f6e44c1f1b4de3ccb7', 334, 'User', '2012-11-29 00:02:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 334 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:12', NULL, NULL, NULL, '2012-11-29 00:02:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:12', `updated_at` = '2012-11-29 00:02:12', `subdomain` = 'account715' WHERE `accounts`.`id` = 715 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 715 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (715, 334) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 547) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 547 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (547, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a604fbfc_22e380435d4889354@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (714, 334) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 548) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 548 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (548, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 333 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 333 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 546 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 546 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 333 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (546) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 546 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.1ms | ActiveRecord: 2.7ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 333 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 546  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 714 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1166 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1167  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 546) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 546 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (546, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/714/invite" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"714"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 333 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 333 AND `account_users`.`account_id` = 714 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 546 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 546 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 714 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 714 AND `account_users`.`user_id` = 333 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (546) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (714) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 546 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 163ms (Views: 152.4ms | ActiveRecord: 2.8ms)  (2.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:12', '2012-11-29 00:02:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:12', 'User', 'b585808ca55f8d0a7633ad3d96667c43', 335, 'User', '2012-11-29 00:02:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 335 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:12', NULL, NULL, NULL, '2012-11-29 00:02:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:12', `updated_at` = '2012-11-29 00:02:12', `subdomain` = 'account716' WHERE `accounts`.`id` = 716 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 335) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6044ff6c_22e380435d488946@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 335)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 335 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 335 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 335 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 335 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:12', 'tester@roles.test', '$2a$04$KkngeKefFai6YuVdLmzF4O07Fp3XmMhPUGg/4OA8eanUczvdM0Ugm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:12', 'User', '938cc38041ccec740553d9beb2b07870', 336, 'User', '2012-11-29 00:02:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 336 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:12', NULL, NULL, NULL, '2012-11-29 00:02:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:12', `updated_at` = '2012-11-29 00:02:12', `subdomain` = 'account717' WHERE `accounts`.`id` = 717 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 717 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (717, 336) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 550) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 550 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (550, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a6045f550_22e380435d488958f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (716, 336) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 551) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 551 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (551, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 335 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 335 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 549 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 549 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 335 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (549) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 549 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 10.6ms | ActiveRecord: 2.8ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 335 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 549  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 716 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1173 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1174  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 549) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 549 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (549, 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/716/invite" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"716"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 335 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 335 AND `account_users`.`account_id` = 716 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 549 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 549 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 716 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 716 AND `account_users`.`user_id` = 335 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (549) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (716) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 549 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.0ms | ActiveRecord: 3.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:12', '2012-11-29 00:02:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:12', 'User', 'c349078c5cc08d383ab584e992d6363c', 337, 'User', '2012-11-29 00:02:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 337 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:12', NULL, NULL, NULL, '2012-11-29 00:02:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:12', `updated_at` = '2012-11-29 00:02:12', `subdomain` = 'account718' WHERE `accounts`.`id` = 718 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 337) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6047c5d9_22e380435d4889662@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 337)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 337 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 337 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 337 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 337 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:12', 'tester@roles.test', '$2a$04$YY3id2Tk/D4Z.8IlP102BuIBkukIkZ9cAlE52FfilP5QgUG31xa3S', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:12', 'User', 'd550370b52ae86f082f30abcfe3272ba', 338, 'User', '2012-11-29 00:02:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 338 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:12', NULL, NULL, NULL, '2012-11-29 00:02:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:12', `updated_at` = '2012-11-29 00:02:12', `subdomain` = 'account719' WHERE `accounts`.`id` = 719 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 719 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (719, 338) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 553) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 553 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (553, 'admin') Sent mail to tester@roles.test (7ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a6048ba94_22e380435d48897cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (718, 338) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 554) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 554 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (554, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 337 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 337 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 552 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 552 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 337 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (552) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 552 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 10.2ms | ActiveRecord: 2.9ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 337 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 552  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 718 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1180 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1181  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 552) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 552 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (552, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/718/invite" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"718"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 337 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 337 AND `account_users`.`account_id` = 718 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 552 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 552 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 718 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 337 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (552) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 552 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 718 AND `account_users`.`user_id` = 337 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (552) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (718) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 552 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 142ms (Views: 134.0ms | ActiveRecord: 2.8ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:12', '2012-11-29 00:02:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:12', 'User', 'a04c57b65bf206f36b923ca45d16de21', 339, 'User', '2012-11-29 00:02:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 339 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:12', NULL, NULL, NULL, '2012-11-29 00:02:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:12', `updated_at` = '2012-11-29 00:02:12', `subdomain` = 'account720' WHERE `accounts`.`id` = 720 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 339) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a604c622f_22e380435d488981e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 339)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 339 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 339 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 339 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 339 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:12', 'tester@roles.test', '$2a$04$R8.U.RZwJVw7ICKjHrwv.uGzUGF4AJh8rtqPaBrvDhjrx2TkwfAe.', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:12', 'User', 'bd3b4f720c589e813d4ac9d6775871b4', 340, 'User', '2012-11-29 00:02:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 340 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:12', NULL, NULL, NULL, '2012-11-29 00:02:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:12', `updated_at` = '2012-11-29 00:02:12', `subdomain` = 'account721' WHERE `accounts`.`id` = 721 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 721 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (721, 340) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 556) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 556 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (556, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a604d5bd0_22e380435d48899b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (720, 340) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 557) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 557 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (557, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 339 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 339 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 555 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 555 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 339 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (555) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 555 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 2.8ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 339 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 555  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 720 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1187 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1188  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 555) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 555 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (555, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/720/invite" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"720"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 339 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 339 AND `account_users`.`account_id` = 720 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 555 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 555 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 720 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 339 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (555) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 555 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 720 AND `account_users`.`user_id` = 339 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (555) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (720) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 555 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 13.3ms | ActiveRecord: 2.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:12 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:12', '2012-11-29 00:02:12', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:12', 'User', '0aee19ebd90b62923919204822ad791d', 341, 'User', '2012-11-29 00:02:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 341 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:12', NULL, NULL, NULL, '2012-11-29 00:02:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:12', `updated_at` = '2012-11-29 00:02:12', `subdomain` = 'account722' WHERE `accounts`.`id` = 722 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 341) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:12 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a604f2c08_22e380435d489004@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 341)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 341 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 341 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 341 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 341 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:13', 'tester@roles.test', '$2a$04$aXsM93n.zYP.x7yoOfXSgOo06oUNr7bXiDuAldYh88fyDOuxSs8jS', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:13', 'User', '316981bb1f48b2a8d7638363968b7d9c', 342, 'User', '2012-11-29 00:02:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 342 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:13', NULL, NULL, NULL, '2012-11-29 00:02:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:13', `updated_at` = '2012-11-29 00:02:13', `subdomain` = 'account723' WHERE `accounts`.`id` = 723 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 723 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (723, 342) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 559) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 559 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (559, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 22:02:13 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a605db49_22e380435d489011f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (722, 342) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 560) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 560 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (560, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 341 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 341 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 558 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 558 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 341 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (558) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 558 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.9ms | ActiveRecord: 3.0ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 341 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 558  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 722 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1194 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1195  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 558) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 558 LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (558, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/722/invite" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"722"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 341 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 341 AND `account_users`.`account_id` = 722 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 558 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 558 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 722 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 341 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (558) Account Load (120.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 558 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 722 AND `account_users`.`user_id` = 341 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (558) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (722) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 558 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 141ms (Views: 13.4ms | ActiveRecord: 122.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:13', '2012-11-29 00:02:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:13', 'User', '430bd2028214b4b446b2ba27b641dc6f', 343, 'User', '2012-11-29 00:02:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 343 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:13', NULL, NULL, NULL, '2012-11-29 00:02:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:13', `updated_at` = '2012-11-29 00:02:13', `subdomain` = 'account724' WHERE `accounts`.`id` = 724 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 343) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a60547cca_22e380435d4890235@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 343)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 343 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 343 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 343 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 343 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:13', 'tester@roles.test', '$2a$04$K7x0tMexFTYinFSvZSx/jeLc1bndgNyDjz5IqK1djmiqf4G117WUm', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:13', 'User', '98a1cf6ffb8474ce3a8e14a045e0bb17', 344, 'User', '2012-11-29 00:02:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 344 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:13', NULL, NULL, NULL, '2012-11-29 00:02:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:13', `updated_at` = '2012-11-29 00:02:13', `subdomain` = 'account725' WHERE `accounts`.`id` = 725 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 725 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (725, 344) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 562) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 562 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (562, 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 28 Nov 2012 22:02:13 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50b6a60556dfa_22e380435d489037f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (724, 344) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 563) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 563 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (563, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 343 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 343 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 561 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 561 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 343 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (561) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 561 AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 10.3ms | ActiveRecord: 2.7ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 343 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = 561  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 724 AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1201 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = 1202  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 561) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 561 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (561, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/724/invite" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"724"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 343 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 343 AND `account_users`.`account_id` = 724 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 561 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 561 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 724 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 343 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (561) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 561 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 724 AND `account_users`.`user_id` = 343 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (561) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (724) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 561 AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 21ms (Views: 12.6ms | ActiveRecord: 2.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:13', '2012-11-29 00:02:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:13', 'User', 'e52689c604985e3196d520e38141e4af', 345, 'User', '2012-11-29 00:02:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:13', NULL, NULL, NULL, '2012-11-29 00:02:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:13', `updated_at` = '2012-11-29 00:02:13', `subdomain` = 'account726' WHERE `accounts`.`id` = 726 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 726 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (726, 345) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 564) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 564 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (564, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a60573c52_22e380435d48904bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 345)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 345 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 345 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 6.8ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 345 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 345 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 345 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_345_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 345 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 345 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 345 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:13', '2012-11-29 00:02:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:13', 'User', '9c8108c1d5debb3643a4496d1eaff7e0', 346, 'User', '2012-11-29 00:02:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:13', NULL, NULL, NULL, '2012-11-29 00:02:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:13', `updated_at` = '2012-11-29 00:02:13', `subdomain` = 'account727' WHERE `accounts`.`id` = 727 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 727 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (727, 346) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 565) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 565 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (565, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 22:02:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a605a7d9f_22e380435d4890531@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 346)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 346 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 50ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_346_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 346 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 346 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_346_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 346 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:13', '2012-11-29 00:02:13', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:13', 'User', '6671412b5636f90091652977eeae9ece', 347, 'User', '2012-11-29 00:02:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:13', NULL, NULL, NULL, '2012-11-29 00:02:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:13', `updated_at` = '2012-11-29 00:02:13', `subdomain` = 'account728' WHERE `accounts`.`id` = 728 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 728 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (728, 347) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 566) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 566 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (566, 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 28 Nov 2012 22:02:13 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a605c4cf9_22e380435d4890615@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 347)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 347 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:13 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 347 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 347 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_347_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 347 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 143ms (Views: 138.2ms | ActiveRecord: 2.5ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:14', '2012-11-29 00:02:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:14', 'User', '0ddc38c22fb975415708267febda5282', 348, 'User', '2012-11-29 00:02:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:14', NULL, NULL, NULL, '2012-11-29 00:02:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:14', `updated_at` = '2012-11-29 00:02:14', `subdomain` = 'account729' WHERE `accounts`.`id` = 729 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 729 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (729, 348) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 567) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 567 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (567, 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 28 Nov 2012 22:02:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a606c09d_22e380435d4890740@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 348)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 348 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 52ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 19.0ms | ActiveRecord: 2.6ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:14', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 348\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:02:14.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:02:14.000000000Z\n updated_at: 2012-11-29 00:02:14.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_348_destroy', '2012-11-29 00:02:14', '2012-11-29 00:02:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 348 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 348 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_348_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 348 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:14', '2012-11-29 00:02:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:14', 'User', 'c34ab1cad0fe35e4280f701ce803edbe', 349, 'User', '2012-11-29 00:02:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:14', NULL, NULL, NULL, '2012-11-29 00:02:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:14', `updated_at` = '2012-11-29 00:02:14', `subdomain` = 'account730' WHERE `accounts`.`id` = 730 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 730 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (730, 349) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 568) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 568 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (568, 'admin') Sent mail to facebook@test.test (124ms) Date: Wed, 28 Nov 2012 22:02:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6062cf70_22e380435d489088c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 349)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 349 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 167ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 29ms (Views: 24.3ms | ActiveRecord: 2.1ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:14', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 349\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:02:14.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:02:14.000000000Z\n updated_at: 2012-11-29 00:02:14.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_349_destroy', '2012-11-29 00:02:14', '2012-11-29 00:02:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 349 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 349 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_349_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 349 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 28ms (Views: 23.7ms | ActiveRecord: 1.9ms)  (7.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:14', '2012-11-29 00:02:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:14', 'User', 'df2799d5bca8308b0a9da527e6cc508e', 350, 'User', '2012-11-29 00:02:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:14', NULL, NULL, NULL, '2012-11-29 00:02:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:14', `updated_at` = '2012-11-29 00:02:14', `subdomain` = 'account731' WHERE `accounts`.`id` = 731 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 731 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (731, 350) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 569) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 569 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (569, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a6066fdbb_22e380435d48909f5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 350)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 350 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.2ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:14', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 350\n email: facebook@test.test\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:02:14.000000000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:02:14.000000000Z\n updated_at: 2012-11-29 00:02:14.000000000Z\n birthdate: !!null \n name: !!null \n locale: en\n guest: !!null \nmethod_name: :destroy_without_delay\nargs: []\n', NULL, NULL, NULL, 0, 'user_350_destroy', '2012-11-29 00:02:14', '2012-11-29 00:02:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-11-29 00:02:14', `updated_at` = '2012-11-29 00:02:14' WHERE `delayed_jobs`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 350 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 350 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_350_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 350 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 2.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:14', '2012-11-29 00:02:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:14', 'User', '1ca5460cfbcb41315f1e9577d4e8d8e1', 351, 'User', '2012-11-29 00:02:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:14', NULL, NULL, NULL, '2012-11-29 00:02:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:14', `updated_at` = '2012-11-29 00:02:14', `subdomain` = 'account732' WHERE `accounts`.`id` = 732 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 732 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (732, 351) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 570) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 570 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (570, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a606acb54_22e380435d48910a8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 351)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 351 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 51ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 351 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.2ms | ActiveRecord: 2.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 351 LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 351 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_351_destroy' LIMIT 1 Completed 200 OK in 18ms (Views: 14.8ms | ActiveRecord: 1.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:14', '2012-11-29 00:02:14', 'facebook@test.test', '', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:14', 'User', '32080ed5fcdba9ce11c9a27e6ace3949', 352, 'User', '2012-11-29 00:02:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:14', NULL, NULL, NULL, '2012-11-29 00:02:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:14', `updated_at` = '2012-11-29 00:02:14', `subdomain` = 'account733' WHERE `accounts`.`id` = 733 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 733 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (733, 352) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 571) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 571 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (571, 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 28 Nov 2012 22:02:14 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50b6a606c8d89_22e380435d4891164@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1234, 'lk2j3lkjasldkjflk3ljsdf', 352)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 352 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 49ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 352 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_352_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 352 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 2.3ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1 Completed 200 OK in 123ms (Views: 120.8ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-11-28 22:02:15 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 352 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:15 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-11-28 22:02:15 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 37ms (Views: 36.1ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-11-28 22:02:15 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:02:15', '2012-11-29 00:02:15', '', '', 1, 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-11-29 00:02:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:15', 'User', 'e3a9685d62c4eabd9cdc016454812a40', 353, 'User', '2012-11-29 00:02:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 353 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:15', NULL, NULL, NULL, '2012-11-29 00:02:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:15', `updated_at` = '2012-11-29 00:02:15', `subdomain` = 'account734' WHERE `accounts`.`id` = 734 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 734 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (734, 353) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 572) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 572 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (572, 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-11-29 00:02:15', NULL, '--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/ActiveRecord:User\n attributes:\n id: 353\n email: \'\'\n encrypted_password: \'\'\n reset_password_token: !!null \n reset_password_sent_at: !!null \n remember_created_at: !!null \n confirmation_token: !!null \n confirmed_at: 2012-11-29 00:02:15.064140000Z\n confirmation_sent_at: !!null \n unconfirmed_email: !!null \n created_at: 2012-11-29 00:02:15.065042000Z\n updated_at: 2012-11-29 00:02:15.065042000Z\n birthdate: !!null \n name: Guest\n locale: en\n guest: true\nmethod_name: :destroy\nargs: []\n', NULL, NULL, NULL, 0, 'guest_353', '2012-12-06 00:02:15', '2012-11-29 00:02:15')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `users` SET `remember_created_at` = '2012-11-29 00:02:15', `updated_at` = '2012-11-29 00:02:15' WHERE `users`.`id` = 353  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 AND (accounts.id = '733') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 353 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 32ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-11-28 22:02:15 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-11-28 22:02:15 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 353 LIMIT 1 Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'good@email.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-11-29 00:01:33', '2012-11-29 00:02:15', 'good@email.com', '$2a$04$FcUxwZDao9eJqw3edSt9meHrR.u5tSnmaKOqfEvOLE2Z/mPcq8joa', NULL, 'en', NULL, NULL, NULL, NULL, NULL, '2012-11-29 00:02:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-11-29 00:02:15', 'User', 'dd5c06c81f2456a33f6b58cfa52a68bc', 354, 'User', '2012-11-29 00:02:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = 354 AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-11-29 00:02:15', NULL, NULL, NULL, '2012-11-29 00:02:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-11-29 00:02:15', `updated_at` = '2012-11-29 00:02:15', `subdomain` = 'account735' WHERE `accounts`.`id` = 735 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 735 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (735, 354) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 573) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 573 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (573, 'admin') Sent mail to good@email.com (7ms) Date: Wed, 28 Nov 2012 22:02:15 -0200 From: Iugu Reply-To: Iugu To: good@email.com Message-ID: <50b6a60727453_22e380435d4891266@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = 354  (0.9ms) ROLLBACK  (0.1ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notanemail' LIMIT 1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (86.0ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (162.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateAccount (20120528164634)  (115.0ms) CREATE TABLE `accounts` (`id` binary(16) PRIMARY KEY, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (168.3ms) CREATE INDEX `index_accounts_on_id` ON `accounts` (`id`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120528164634') Migrating to AddDeviseToUsers (20120529134109)  (119.1ms) CREATE TABLE `users` (`id` binary(16) PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (143.7ms) CREATE INDEX `index_users_on_id` ON `users` (`id`)  (117.0ms) CREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)  (158.2ms) CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)  (149.6ms) CREATE UNIQUE INDEX `index_users_on_confirmation_token` ON `users` (`confirmation_token`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529134109') Migrating to AddBirthdateAndNameToUser (20120529162901)  (139.4ms) ALTER TABLE `users` ADD `birthdate` date  (148.9ms) ALTER TABLE `users` ADD `name` varchar(255)  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529162901') Migrating to AddNameAndSubscriptionIdAndUserIdToAccount (20120529174755)  (139.6ms) ALTER TABLE `accounts` ADD `name` varchar(255)  (133.0ms) ALTER TABLE `accounts` ADD `subscription_id` int(11)  (133.2ms) ALTER TABLE `accounts` ADD `user_id` blob(16)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529174755') Migrating to CreateAccountUsers (20120529180814)  (132.5ms) CREATE TABLE `account_users` (`id` binary(16) PRIMARY KEY, `account_id` binary(16), `user_id` binary(16)) ENGINE=InnoDB  (107.2ms) CREATE INDEX `index_account_users_on_id` ON `account_users` (`id`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529180814') Migrating to RemoveUserIdFromAccounts (20120530114709)  (131.7ms) ALTER TABLE `accounts` DROP `user_id`  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120530114709') Migrating to CreateAccountRoles (20120531171438)  (159.6ms) CREATE TABLE `account_roles` (`id` binary(16) PRIMARY KEY, `name` varchar(255), `account_user_id` binary(16)) ENGINE=InnoDB  (119.4ms) CREATE INDEX `index_account_roles_on_id` ON `account_roles` (`id`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120531171438') Migrating to AddLocaleToUser (20120604131034)  (114.0ms) ALTER TABLE `users` ADD `locale` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120604131034') Migrating to CreateSocialAccount (20120605142527)  (151.7ms) CREATE TABLE `social_accounts` (`id` binary(16) PRIMARY KEY, `social_id` varchar(255), `user_id` binary(16), `provider` varchar(255), `token` varchar(255), `secret` varchar(255)) ENGINE=InnoDB  (111.9ms) CREATE INDEX `index_social_accounts_on_id` ON `social_accounts` (`id`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120605142527') Migrating to SetLocale (20120612141130) SQL (0.2ms) UPDATE `users` SET locale = 'en' WHERE `users`.`locale` IS NULL  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120612141130') Migrating to RemoveUniqueFromUserEmail (20120613173114)  (88.7ms) DROP INDEX `index_users_on_email` ON `users`  (159.6ms) CREATE INDEX `index_users_on_email` ON `users` (`email`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120613173114') Migrating to CreateDelayedJobs (20120615180728)  (110.3ms) CREATE TABLE `delayed_jobs` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `priority` int(11) DEFAULT 0, `attempts` int(11) DEFAULT 0, `handler` text, `last_error` text, `run_at` datetime, `locked_at` datetime, `failed_at` datetime, `locked_by` varchar(255), `queue` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (162.2ms) CREATE INDEX `delayed_jobs_priority` ON `delayed_jobs` (`priority`, `run_at`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120615180728') Migrating to CreateUserInvitations (20120629154429)  (119.3ms) CREATE TABLE `user_invitations` (`id` binary(16) PRIMARY KEY, `invited_by` binary(16), `email` varchar(255), `sent_at` datetime, `account_id` binary(16)) ENGINE=InnoDB  (151.3ms) CREATE INDEX `index_user_invitations_on_id` ON `user_invitations` (`id`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120629154429') Migrating to AddTokenToUserInvitations (20120629195345)  (122.5ms) ALTER TABLE `user_invitations` ADD `token` varchar(255)  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120629195345') Migrating to AddRolesToUserInvitations (20120705202827)  (154.4ms) ALTER TABLE `user_invitations` ADD `roles` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120705202827') Migrating to CreateAccountDomain (20120716145846)  (120.3ms) CREATE TABLE `account_domains` (`id` binary(16) PRIMARY KEY, `account_id` binary(16), `url` varchar(255), `verified` tinyint(1), `primary` tinyint(1)) ENGINE=InnoDB  (119.8ms) CREATE INDEX `index_account_domains_on_id` ON `account_domains` (`id`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120716145846') Migrating to AddSubdomainToAccount (20120719162426)  (122.9ms) ALTER TABLE `accounts` ADD `subdomain` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120719162426') Migrating to AddApiTokenToAccount (20120725170859)  (153.3ms) ALTER TABLE `accounts` ADD `api_token` varchar(255)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120725170859') Migrating to AddGuestToUsers (20120803172545)  (130.9ms) ALTER TABLE `users` ADD `guest` tinyint(1)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120803172545') Migrating to CreateApiToken (20121023113304)  (145.1ms) CREATE TABLE `api_tokens` (`id` binary(16) PRIMARY KEY, `token` varchar(255), `description` varchar(255), `api_type` varchar(255), `tokenable_id` binary(16), `tokenable_type` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (127.3ms) CREATE INDEX `index_api_tokens_on_id` ON `api_tokens` (`id`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121023113304') Migrating to RemoveApiTokenFromAccount (20121108115535)  (139.3ms) ALTER TABLE `accounts` DROP `api_token`  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121108115535')  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (27.9ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (9.2ms) TRUNCATE TABLE `account_domains`;  (1.3ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (2.5ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:07', 'teste@teste.com', '$2a$04$PLujglmQbxRa2bi7CwMcwOQ33AhLbYHErwcMFP98pZ6m6LmVkJ0ru', NULL, x'42127ce902d6466c91e8c1d906e08b26', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'42127ce902d6466c91e8c1d906e08b26' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:07', 'User', x'41aa38a00db54a1ba437dffd934767ae', '0de503aa4585f6b0c9f5af49ec85349c', x'42127ce902d6466c91e8c1d906e08b26', 'User', '2012-12-31 12:17:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'42127ce902d6466c91e8c1d906e08b26' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:08', x'9ab5255263794bc0a07826e526adfd6f', NULL, NULL, NULL, '2012-12-31 12:17:08')  (0.6ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:08', `updated_at` = '2012-12-31 12:17:08', `subdomain` = 'account9ab52552-6379-4bc0-a078-26e526adfd6f' WHERE `accounts`.`id` = x'9ab5255263794bc0a07826e526adfd6f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9ab5255263794bc0a07826e526adfd6f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9ab5255263794bc0a07826e526adfd6f', x'e9c45fc488814a1aa5680d25ecdd5202', x'42127ce902d6466c91e8c1d906e08b26') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e9c45fc488814a1aa5680d25ecdd5202') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9c45fc488814a1aa5680d25ecdd5202' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9c45fc488814a1aa5680d25ecdd5202', x'd52e363112be4258994501256d027df4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e9c45fc488814a1aa5680d25ecdd5202') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9c45fc488814a1aa5680d25ecdd5202' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9c45fc488814a1aa5680d25ecdd5202', x'b7b19d951e3d482c866f233c9e1e27fd', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.2ms) Sent mail to teste@teste.com (164ms) Date: Mon, 31 Dec 2012 10:17:08 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18244c33d2_82580435d4831841@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:08', x'd8dd5a482b4f4338a0ee4dccbaa52ed1', 'jabanilson', NULL, 1, '2012-12-31 12:17:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:08', `updated_at` = '2012-12-31 12:17:08', `subdomain` = 'accountd8dd5a48-2b4f-4338-a0ee-4dccbaa52ed1' WHERE `accounts`.`id` = x'd8dd5a482b4f4338a0ee4dccbaa52ed1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd8dd5a482b4f4338a0ee4dccbaa52ed1', x'7db8a8204ac542bb90c3ba2670420725', x'42127ce902d6466c91e8c1d906e08b26') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7db8a8204ac542bb90c3ba2670420725') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7db8a8204ac542bb90c3ba2670420725' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7db8a8204ac542bb90c3ba2670420725', x'94822f1b8c32403d96e5c78bbbff9535', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7db8a8204ac542bb90c3ba2670420725') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7db8a8204ac542bb90c3ba2670420725' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7db8a8204ac542bb90c3ba2670420725', x'55068e9a642c4c049793787b446a2cf6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42127ce902d6466c91e8c1d906e08b26' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42127ce902d6466c91e8c1d906e08b26' LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'42127ce902d6466c91e8c1d906e08b26' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.7ms) Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 0.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:08', 'teste@teste.com', '$2a$04$skIFkCPmSFEZPARhnKXAYOCHFBHjxmeHjDJrCqUMZVA8aTgDzG2Om', NULL, x'5ec4d922ef874afeb0b3c840f7111a6c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5ec4d922ef874afeb0b3c840f7111a6c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:08', 'User', x'3d141a3c13cd4ade946db17eb026eed6', '4db9c47e9706d950b6ea3392cab4ccee', x'5ec4d922ef874afeb0b3c840f7111a6c', 'User', '2012-12-31 12:17:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5ec4d922ef874afeb0b3c840f7111a6c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:08', x'6bc5f9ee6a984aca9596ead7b86fdc08', NULL, NULL, NULL, '2012-12-31 12:17:08')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:08', `updated_at` = '2012-12-31 12:17:08', `subdomain` = 'account6bc5f9ee-6a98-4aca-9596-ead7b86fdc08' WHERE `accounts`.`id` = x'6bc5f9ee6a984aca9596ead7b86fdc08' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6bc5f9ee6a984aca9596ead7b86fdc08' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6bc5f9ee6a984aca9596ead7b86fdc08', x'b88bdeb4402540b2a082cea4ea9ef715', x'5ec4d922ef874afeb0b3c840f7111a6c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b88bdeb4402540b2a082cea4ea9ef715') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b88bdeb4402540b2a082cea4ea9ef715' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b88bdeb4402540b2a082cea4ea9ef715', x'493339c0abbe4479a6814c68af170c52', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b88bdeb4402540b2a082cea4ea9ef715') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b88bdeb4402540b2a082cea4ea9ef715' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b88bdeb4402540b2a082cea4ea9ef715', x'024c5c6dc87749249da6b9a057913874', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824514c8f_82580435d48319bb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'42d5142199414599a3096199ace3033c', 'jabanilson', NULL, 1, '2012-12-31 12:17:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account42d51421-9941-4599-a309-6199ace3033c' WHERE `accounts`.`id` = x'42d5142199414599a3096199ace3033c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'42d5142199414599a3096199ace3033c', x'd88697e40a964c179a6b3989a1c36624', x'5ec4d922ef874afeb0b3c840f7111a6c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd88697e40a964c179a6b3989a1c36624') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd88697e40a964c179a6b3989a1c36624' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd88697e40a964c179a6b3989a1c36624', x'80973f3c002c45998705c320ed89ec8b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd88697e40a964c179a6b3989a1c36624') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd88697e40a964c179a6b3989a1c36624' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd88697e40a964c179a6b3989a1c36624', x'726a6e9998da406fb282f082e5a4bc13', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ec4d922ef874afeb0b3c840f7111a6c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ec4d922ef874afeb0b3c840f7111a6c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ec4d922ef874afeb0b3c840f7111a6c' LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"42D5142199414599A3096199ACE3033C"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5ec4d922ef874afeb0b3c840f7111a6c' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ec4d922ef874afeb0b3c840f7111a6c' AND `accounts`.`id` = x'42d5142199414599a3096199ace3033c' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'42d5142199414599a3096199ace3033c' AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 13ms (Views: 2.8ms | ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:09', 'teste@teste.com', '$2a$04$QjOY6f37a5opE9EJ2nyQGeyX4WUja1EfhxiTTiE2FMhQMKYyuIW7y', NULL, x'6d9c2cfc08864e1588592bd972e6b525', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6d9c2cfc08864e1588592bd972e6b525' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:09', 'User', x'e30f8fc88d50444f8f5fb1b8944dfe07', '297762bf5eb731388a22a080840c987c', x'6d9c2cfc08864e1588592bd972e6b525', 'User', '2012-12-31 12:17:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6d9c2cfc08864e1588592bd972e6b525' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'88d4920263e6480c85c0943fdf0e97de', NULL, NULL, NULL, '2012-12-31 12:17:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account88d49202-63e6-480c-85c0-943fdf0e97de' WHERE `accounts`.`id` = x'88d4920263e6480c85c0943fdf0e97de' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'88d4920263e6480c85c0943fdf0e97de' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'88d4920263e6480c85c0943fdf0e97de', x'1e0d17fa41a8456cab2b683b905759bd', x'6d9c2cfc08864e1588592bd972e6b525') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1e0d17fa41a8456cab2b683b905759bd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1e0d17fa41a8456cab2b683b905759bd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1e0d17fa41a8456cab2b683b905759bd', x'e0c84b0c4e834fd48aa55f750bd29ac1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1e0d17fa41a8456cab2b683b905759bd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1e0d17fa41a8456cab2b683b905759bd' LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1e0d17fa41a8456cab2b683b905759bd', x'8ca997005d784a49a23e2310df4f7781', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182452a2d1_82580435d4832085@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'3f3a799203084892be67977b1b887db9', 'jabanilson', NULL, 1, '2012-12-31 12:17:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account3f3a7992-0308-4892-be67-977b1b887db9' WHERE `accounts`.`id` = x'3f3a799203084892be67977b1b887db9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3f3a799203084892be67977b1b887db9', x'c35030ff475541a18ecca3e735871b13', x'6d9c2cfc08864e1588592bd972e6b525') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c35030ff475541a18ecca3e735871b13') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c35030ff475541a18ecca3e735871b13' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c35030ff475541a18ecca3e735871b13', x'43fdcc43e57b4933b7ce93214af3deb7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c35030ff475541a18ecca3e735871b13') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c35030ff475541a18ecca3e735871b13' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c35030ff475541a18ecca3e735871b13', x'815c4bd348484134a88195233c8be050', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d9c2cfc08864e1588592bd972e6b525' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d9c2cfc08864e1588592bd972e6b525' LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6d9c2cfc08864e1588592bd972e6b525' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6d9c2cfc08864e1588592bd972e6b525' AND `account_users`.`account_id` = x'88d4920263e6480c85c0943fdf0e97de' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'88d4920263e6480c85c0943fdf0e97de' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'88d4920263e6480c85c0943fdf0e97de' AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 1.9ms | ActiveRecord: 1.1ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:09', 'teste@teste.com', '$2a$04$YxfsmI7tqdUvyJyhknujr.u52UKimHxYyCULMdHRv38cnb5yy6CxK', NULL, x'f853e75fc139416faf59fe1b71c532f0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f853e75fc139416faf59fe1b71c532f0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:09', 'User', x'0203b55d77ca43e192afef1c00176fa2', '49028ed09d25f3482aefdf3f24d242ae', x'f853e75fc139416faf59fe1b71c532f0', 'User', '2012-12-31 12:17:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f853e75fc139416faf59fe1b71c532f0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'07ae765160294f9d91dcc18b6374e812', NULL, NULL, NULL, '2012-12-31 12:17:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account07ae7651-6029-4f9d-91dc-c18b6374e812' WHERE `accounts`.`id` = x'07ae765160294f9d91dcc18b6374e812' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07ae765160294f9d91dcc18b6374e812' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'07ae765160294f9d91dcc18b6374e812', x'd51de31ccace4244ab369e1b4e001a00', x'f853e75fc139416faf59fe1b71c532f0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd51de31ccace4244ab369e1b4e001a00') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd51de31ccace4244ab369e1b4e001a00' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd51de31ccace4244ab369e1b4e001a00', x'8511f2a0cc16409e8395b4812fee91cd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd51de31ccace4244ab369e1b4e001a00') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd51de31ccace4244ab369e1b4e001a00' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd51de31ccace4244ab369e1b4e001a00', x'012b0dfd654049d294f6bb9b25351274', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182453dfb7_82580435d48321d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'4da25eb22bbb445391d110d0623e11a0', 'jabanilson', NULL, 1, '2012-12-31 12:17:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account4da25eb2-2bbb-4453-91d1-10d0623e11a0' WHERE `accounts`.`id` = x'4da25eb22bbb445391d110d0623e11a0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4da25eb22bbb445391d110d0623e11a0', x'fd9a5a0e4a8f43558bf2ca22dc0443d5', x'f853e75fc139416faf59fe1b71c532f0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fd9a5a0e4a8f43558bf2ca22dc0443d5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd9a5a0e4a8f43558bf2ca22dc0443d5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd9a5a0e4a8f43558bf2ca22dc0443d5', x'4968adebf3e64ac7bfddbf2391513358', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fd9a5a0e4a8f43558bf2ca22dc0443d5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd9a5a0e4a8f43558bf2ca22dc0443d5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd9a5a0e4a8f43558bf2ca22dc0443d5', x'a5be4e4abbad499daaa04132fd3a2bec', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f853e75fc139416faf59fe1b71c532f0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f853e75fc139416faf59fe1b71c532f0' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f853e75fc139416faf59fe1b71c532f0' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"07AE765160294F9D91DCC18B6374E812"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f853e75fc139416faf59fe1b71c532f0' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f853e75fc139416faf59fe1b71c532f0' AND `account_users`.`account_id` = x'07ae765160294f9d91dcc18b6374e812' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd51de31ccace4244ab369e1b4e001a00' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f853e75fc139416faf59fe1b71c532f0' AND `accounts`.`id` = x'07ae765160294f9d91dcc18b6374e812' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:09', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 07ae7651-6029-4f9d-91dc-c18b6374e812\n', NULL, NULL, NULL, 0, 'account_07ae7651-6029-4f9d-91dc-c18b6374e812_destroy', '2012-12-31 12:17:09', '2012-12-31 12:17:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_07ae7651-6029-4f9d-91dc-c18b6374e812_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 76ms (ActiveRecord: 4.9ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:09', 'teste@teste.com', '$2a$04$w1/OW4Y0rjubVBeTx0f3s.YTwYmsyB.pwPCOXy5A6bXaCbEuaF44i', NULL, x'4c032f1a576b41bfafd661a0e6b2f397', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4c032f1a576b41bfafd661a0e6b2f397' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:09', 'User', x'65e3ab6c160446e4b3dc9eddbc4136e1', '46d0f51191bdb90c2457284360931f9f', x'4c032f1a576b41bfafd661a0e6b2f397', 'User', '2012-12-31 12:17:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4c032f1a576b41bfafd661a0e6b2f397' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'a0435a45494c4ac5a09be8e67c19eb6b', NULL, NULL, NULL, '2012-12-31 12:17:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'accounta0435a45-494c-4ac5-a09b-e8e67c19eb6b' WHERE `accounts`.`id` = x'a0435a45494c4ac5a09be8e67c19eb6b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a0435a45494c4ac5a09be8e67c19eb6b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a0435a45494c4ac5a09be8e67c19eb6b', x'8a4df740048044f682c40f4dbe266ce6', x'4c032f1a576b41bfafd661a0e6b2f397') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8a4df740048044f682c40f4dbe266ce6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a4df740048044f682c40f4dbe266ce6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a4df740048044f682c40f4dbe266ce6', x'5bff0850f6f64c4a8b3d1625ed2e3e4c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8a4df740048044f682c40f4dbe266ce6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a4df740048044f682c40f4dbe266ce6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a4df740048044f682c40f4dbe266ce6', x'fe35a5bf413845cc9bfc570c1089ae46', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18245749f8_82580435d4832257@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'acc995395ce94e02b5c42aa625d3f374', 'jabanilson', NULL, 1, '2012-12-31 12:17:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'accountacc99539-5ce9-4e02-b5c4-2aa625d3f374' WHERE `accounts`.`id` = x'acc995395ce94e02b5c42aa625d3f374'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'acc995395ce94e02b5c42aa625d3f374', x'0476e06b0c1343979b29534c42d1e57e', x'4c032f1a576b41bfafd661a0e6b2f397') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0476e06b0c1343979b29534c42d1e57e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0476e06b0c1343979b29534c42d1e57e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0476e06b0c1343979b29534c42d1e57e', x'97531eb28f954c4485a7f5db212066e2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0476e06b0c1343979b29534c42d1e57e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0476e06b0c1343979b29534c42d1e57e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0476e06b0c1343979b29534c42d1e57e', x'67011caebeb44117bb9b5a5af4e16855', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4c032f1a576b41bfafd661a0e6b2f397' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4c032f1a576b41bfafd661a0e6b2f397' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4c032f1a576b41bfafd661a0e6b2f397' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"ACC995395CE94E02B5C42AA625D3F374"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4c032f1a576b41bfafd661a0e6b2f397' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4c032f1a576b41bfafd661a0e6b2f397' AND `account_users`.`account_id` = x'acc995395ce94e02b5c42aa625d3f374' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0476e06b0c1343979b29534c42d1e57e' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4c032f1a576b41bfafd661a0e6b2f397' AND `accounts`.`id` = x'acc995395ce94e02b5c42aa625d3f374' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:09', NULL, '--- !ruby/struct:DestroyAccountJob\nid: acc99539-5ce9-4e02-b5c4-2aa625d3f374\n', NULL, NULL, NULL, 0, 'account_acc99539-5ce9-4e02-b5c4-2aa625d3f374_destroy', '2012-12-31 12:17:09', '2012-12-31 12:17:09')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_acc99539-5ce9-4e02-b5c4-2aa625d3f374_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 14ms (ActiveRecord: 1.7ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4c032f1a576b41bfafd661a0e6b2f397' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_acc99539-5ce9-4e02-b5c4-2aa625d3f374_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:09', 'teste@teste.com', '$2a$04$ODrj1k/gsudk4Ad1AQD24e.XbFoaI4Ry/P62O9x1Gjr2gcQSIzO3O', NULL, x'dcbbdce74974441bb41d27a5eb6a58ac', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dcbbdce74974441bb41d27a5eb6a58ac' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:09', 'User', x'9dba6e19615d4fb58e74363c6023104d', '786e88134e3e99f932c9e2a4bc59b06a', x'dcbbdce74974441bb41d27a5eb6a58ac', 'User', '2012-12-31 12:17:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dcbbdce74974441bb41d27a5eb6a58ac' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'ed96b59067c14f18ba93b5d16713c40d', NULL, NULL, NULL, '2012-12-31 12:17:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'accounted96b590-67c1-4f18-ba93-b5d16713c40d' WHERE `accounts`.`id` = x'ed96b59067c14f18ba93b5d16713c40d' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ed96b59067c14f18ba93b5d16713c40d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ed96b59067c14f18ba93b5d16713c40d', x'46501d4f86834750aa67eeeff5b9b862', x'dcbbdce74974441bb41d27a5eb6a58ac') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'46501d4f86834750aa67eeeff5b9b862') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'46501d4f86834750aa67eeeff5b9b862' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'46501d4f86834750aa67eeeff5b9b862', x'f14d601c67e4412a9fb52edef5034995', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'46501d4f86834750aa67eeeff5b9b862') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'46501d4f86834750aa67eeeff5b9b862' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'46501d4f86834750aa67eeeff5b9b862', x'acaad98d93ac41b5975c50793ac66f5e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182459da9b_82580435d48323aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'5d2a6cd842b44b72aaa8ac55d27f6332', 'jabanilson', NULL, 1, '2012-12-31 12:17:09')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account5d2a6cd8-42b4-4b72-aaa8-ac55d27f6332' WHERE `accounts`.`id` = x'5d2a6cd842b44b72aaa8ac55d27f6332'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5d2a6cd842b44b72aaa8ac55d27f6332', x'45f50b37a6d8446e8162a60ba153e10b', x'dcbbdce74974441bb41d27a5eb6a58ac') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'45f50b37a6d8446e8162a60ba153e10b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45f50b37a6d8446e8162a60ba153e10b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45f50b37a6d8446e8162a60ba153e10b', x'2582eb335357421b9f15f015387406b0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'45f50b37a6d8446e8162a60ba153e10b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45f50b37a6d8446e8162a60ba153e10b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45f50b37a6d8446e8162a60ba153e10b', x'4d8bb3ed8ca84f82b1b6256ccbdf2a74', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dcbbdce74974441bb41d27a5eb6a58ac' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dcbbdce74974441bb41d27a5eb6a58ac' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dcbbdce74974441bb41d27a5eb6a58ac' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"5D2A6CD842B44B72AAA8AC55D27F6332"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'dcbbdce74974441bb41d27a5eb6a58ac' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'dcbbdce74974441bb41d27a5eb6a58ac' AND `account_users`.`account_id` = x'5d2a6cd842b44b72aaa8ac55d27f6332' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'45f50b37a6d8446e8162a60ba153e10b' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:09', 'teste@teste.com', '$2a$04$7cP8vR/Kj3ynNgxbjolVX.GA6rQlEhItHnI/u/8QnjsiqIXT.jIXa', NULL, x'31e5ee5d21404cfe8167f44ae19d8e59', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'31e5ee5d21404cfe8167f44ae19d8e59' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:09', 'User', x'136abb8989364439a777ee3818e424aa', '00db9100e18976dbb628336287aff6d3', x'31e5ee5d21404cfe8167f44ae19d8e59', 'User', '2012-12-31 12:17:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'31e5ee5d21404cfe8167f44ae19d8e59' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'a07a9e083d6549dcbe09ae7caea8ccb4', NULL, NULL, NULL, '2012-12-31 12:17:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'accounta07a9e08-3d65-49dc-be09-ae7caea8ccb4' WHERE `accounts`.`id` = x'a07a9e083d6549dcbe09ae7caea8ccb4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a07a9e083d6549dcbe09ae7caea8ccb4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a07a9e083d6549dcbe09ae7caea8ccb4', x'f93b8b8996474ad197b51f32d1f1af48', x'31e5ee5d21404cfe8167f44ae19d8e59') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f93b8b8996474ad197b51f32d1f1af48') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f93b8b8996474ad197b51f32d1f1af48' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f93b8b8996474ad197b51f32d1f1af48', x'fe1fc433bb814bc6b19e48cc194ecaac', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f93b8b8996474ad197b51f32d1f1af48') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f93b8b8996474ad197b51f32d1f1af48' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f93b8b8996474ad197b51f32d1f1af48', x'1591f1aaa69f4a7c889d6a2559c68073', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18245c61be_82580435d48324a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'312bec2da2c341e1abc00884ade76d50', 'jabanilson', NULL, 1, '2012-12-31 12:17:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account312bec2d-a2c3-41e1-abc0-0884ade76d50' WHERE `accounts`.`id` = x'312bec2da2c341e1abc00884ade76d50'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'312bec2da2c341e1abc00884ade76d50', x'3be4111083994658867d5e8f3d02138c', x'31e5ee5d21404cfe8167f44ae19d8e59') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3be4111083994658867d5e8f3d02138c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3be4111083994658867d5e8f3d02138c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3be4111083994658867d5e8f3d02138c', x'62395b3beb5741938d583eecbe49e84c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3be4111083994658867d5e8f3d02138c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3be4111083994658867d5e8f3d02138c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3be4111083994658867d5e8f3d02138c', x'd2464f79f8a641a38f85217d7f7ba0bc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e5ee5d21404cfe8167f44ae19d8e59' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e5ee5d21404cfe8167f44ae19d8e59' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e5ee5d21404cfe8167f44ae19d8e59' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:09', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 312bec2d-a2c3-41e1-abc0-0884ade76d50\n', NULL, NULL, NULL, 0, 'account_312bec2d-a2c3-41e1-abc0-0884ade76d50_destroy', '2012-12-31 12:17:09', '2012-12-31 12:17:09')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e5ee5d21404cfe8167f44ae19d8e59' LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"312BEC2DA2C341E1ABC00884ADE76D50"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'31e5ee5d21404cfe8167f44ae19d8e59' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'31e5ee5d21404cfe8167f44ae19d8e59' AND `account_users`.`account_id` = x'312bec2da2c341e1abc00884ade76d50' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3be4111083994658867d5e8f3d02138c' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e5ee5d21404cfe8167f44ae19d8e59' AND `accounts`.`id` = x'312bec2da2c341e1abc00884ade76d50' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_312bec2d-a2c3-41e1-abc0-0884ade76d50_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_312bec2d-a2c3-41e1-abc0-0884ade76d50_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:09', 'teste@teste.com', '$2a$04$CTCLuMMfHvI3cfN5SfajmuNChcTivlj7hiAWVtVj11AQgHfcQ4Y/a', NULL, x'897a7c876998473b888223d92c99ff8d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'897a7c876998473b888223d92c99ff8d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:09', 'User', x'ca2f70089b3444948eea0c73971046a0', '6ffadccefa52c29a58a68cb3e98aaeea', x'897a7c876998473b888223d92c99ff8d', 'User', '2012-12-31 12:17:09') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'897a7c876998473b888223d92c99ff8d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'a054baaf12f94682a2416a4ad4e7d187', NULL, NULL, NULL, '2012-12-31 12:17:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'accounta054baaf-12f9-4682-a241-6a4ad4e7d187' WHERE `accounts`.`id` = x'a054baaf12f94682a2416a4ad4e7d187' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a054baaf12f94682a2416a4ad4e7d187' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a054baaf12f94682a2416a4ad4e7d187', x'd70916df474d4bd8a642fde6b79d8cfa', x'897a7c876998473b888223d92c99ff8d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd70916df474d4bd8a642fde6b79d8cfa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd70916df474d4bd8a642fde6b79d8cfa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd70916df474d4bd8a642fde6b79d8cfa', x'b13bd5b2728849eab7aa3dcb0c21e3c6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd70916df474d4bd8a642fde6b79d8cfa') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd70916df474d4bd8a642fde6b79d8cfa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd70916df474d4bd8a642fde6b79d8cfa', x'f35fa30200a849e28440b1c8b9630a16', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18245dc556_82580435d48325d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'5a4b01787b6f41dcb54a4accffac07c7', 'jabanilson', NULL, 1, '2012-12-31 12:17:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account5a4b0178-7b6f-41dc-b54a-4accffac07c7' WHERE `accounts`.`id` = x'5a4b01787b6f41dcb54a4accffac07c7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5a4b01787b6f41dcb54a4accffac07c7', x'4b7db0913d144517b822e264bfd21868', x'897a7c876998473b888223d92c99ff8d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4b7db0913d144517b822e264bfd21868') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b7db0913d144517b822e264bfd21868' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b7db0913d144517b822e264bfd21868', x'd7cdcca159ba459ebbc952caf4bdf637', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4b7db0913d144517b822e264bfd21868') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b7db0913d144517b822e264bfd21868' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b7db0913d144517b822e264bfd21868', x'a26c3f263c544827a5a06907f270c3b4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'897a7c876998473b888223d92c99ff8d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'897a7c876998473b888223d92c99ff8d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'897a7c876998473b888223d92c99ff8d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:09', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 5a4b0178-7b6f-41dc-b54a-4accffac07c7\n', NULL, NULL, NULL, 0, 'account_5a4b0178-7b6f-41dc-b54a-4accffac07c7_destroy', '2012-12-31 12:17:09', '2012-12-31 12:17:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'897a7c876998473b888223d92c99ff8d' LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"5A4B01787B6F41DCB54A4ACCFFAC07C7"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'897a7c876998473b888223d92c99ff8d' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'897a7c876998473b888223d92c99ff8d' AND `account_users`.`account_id` = x'5a4b01787b6f41dcb54a4accffac07c7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b7db0913d144517b822e264bfd21868' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'897a7c876998473b888223d92c99ff8d' AND `accounts`.`id` = x'5a4b01787b6f41dcb54a4accffac07c7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5a4b0178-7b6f-41dc-b54a-4accffac07c7_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5a4b0178-7b6f-41dc-b54a-4accffac07c7_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.1ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'897a7c876998473b888223d92c99ff8d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5a4b0178-7b6f-41dc-b54a-4accffac07c7_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:09', 'teste@teste.com', '$2a$04$YJHanYtG1EyAEaCjOPEGkuOejwTsgjdQgdRCCaIidYhiAQIWYNU8m', NULL, x'2e90b1b61b0246249be7c788a5a589fe', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2e90b1b61b0246249be7c788a5a589fe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:09', 'User', x'8911e54061044f3a99fe5ed336dbeed8', '5f469a1921be5d01cc1c97de03a87e1c', x'2e90b1b61b0246249be7c788a5a589fe', 'User', '2012-12-31 12:17:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2e90b1b61b0246249be7c788a5a589fe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:09', x'92e44d0791844aa8a71ec52d525b020c', NULL, NULL, NULL, '2012-12-31 12:17:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:09', `updated_at` = '2012-12-31 12:17:09', `subdomain` = 'account92e44d07-9184-4aa8-a71e-c52d525b020c' WHERE `accounts`.`id` = x'92e44d0791844aa8a71ec52d525b020c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'92e44d0791844aa8a71ec52d525b020c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'92e44d0791844aa8a71ec52d525b020c', x'6234c125f0d646e98aeb3e456014a079', x'2e90b1b61b0246249be7c788a5a589fe') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6234c125f0d646e98aeb3e456014a079') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6234c125f0d646e98aeb3e456014a079' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6234c125f0d646e98aeb3e456014a079', x'25f9779c09e44c05b4de4d91c712f1c6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6234c125f0d646e98aeb3e456014a079') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6234c125f0d646e98aeb3e456014a079' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6234c125f0d646e98aeb3e456014a079', x'63b491e1c0914ef487580a8128764f4e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18245f4226_82580435d483264@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'80853862034441e2b714e507428115b8', 'jabanilson', NULL, 1, '2012-12-31 12:17:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account80853862-0344-41e2-b714-e507428115b8' WHERE `accounts`.`id` = x'80853862034441e2b714e507428115b8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'80853862034441e2b714e507428115b8', x'97ded5fefa52479eb276840abbfc3e3e', x'2e90b1b61b0246249be7c788a5a589fe') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'97ded5fefa52479eb276840abbfc3e3e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'97ded5fefa52479eb276840abbfc3e3e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'97ded5fefa52479eb276840abbfc3e3e', x'7c8fb18f87824a84b538df228dfb7c48', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'97ded5fefa52479eb276840abbfc3e3e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'97ded5fefa52479eb276840abbfc3e3e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'97ded5fefa52479eb276840abbfc3e3e', x'82cc32acda74407d8f9379b06f1e77dd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e90b1b61b0246249be7c788a5a589fe' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e90b1b61b0246249be7c788a5a589fe' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e90b1b61b0246249be7c788a5a589fe' LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"92E44D0791844AA8A71EC52D525B020C"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2e90b1b61b0246249be7c788a5a589fe' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e90b1b61b0246249be7c788a5a589fe' AND (accounts.id = '92E44D0791844AA8A71EC52D525B020C') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e90b1b61b0246249be7c788a5a589fe' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 6ms (ActiveRecord: 0.8ms)  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:10', 'teste@teste.com', '$2a$04$J2gfDVP2IFYeZqYDYdXLNO/L2.2h3aCsZOT5I16Ayo3ifqCSL7We2', NULL, x'e76122296132487f93f9c0ef6a6d1ef3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e76122296132487f93f9c0ef6a6d1ef3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:10', 'User', x'98cbc869cab84e0c8f06c4ef68628239', '35c5ab2ba68e997aa4d2917d1faa7705', x'e76122296132487f93f9c0ef6a6d1ef3', 'User', '2012-12-31 12:17:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e76122296132487f93f9c0ef6a6d1ef3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'7ee135cade9d4944979e8aeae0a7742b', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account7ee135ca-de9d-4944-979e-8aeae0a7742b' WHERE `accounts`.`id` = x'7ee135cade9d4944979e8aeae0a7742b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7ee135cade9d4944979e8aeae0a7742b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7ee135cade9d4944979e8aeae0a7742b', x'6227a0aee1bb45d1bae2d8b18be864e3', x'e76122296132487f93f9c0ef6a6d1ef3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6227a0aee1bb45d1bae2d8b18be864e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6227a0aee1bb45d1bae2d8b18be864e3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6227a0aee1bb45d1bae2d8b18be864e3', x'acc97a0e8ef2451da72dd0717c7c493d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6227a0aee1bb45d1bae2d8b18be864e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6227a0aee1bb45d1bae2d8b18be864e3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6227a0aee1bb45d1bae2d8b18be864e3', x'10f88fa339da41deab5e747576381b16', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182462cf8c_82580435d4832725@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'ba0dd6604fe54284ac56d940ab5d3e86', 'jabanilson', NULL, 1, '2012-12-31 12:17:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'accountba0dd660-4fe5-4284-ac56-d940ab5d3e86' WHERE `accounts`.`id` = x'ba0dd6604fe54284ac56d940ab5d3e86'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ba0dd6604fe54284ac56d940ab5d3e86', x'8cacb1b7bd0548158b19b18db25059c1', x'e76122296132487f93f9c0ef6a6d1ef3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8cacb1b7bd0548158b19b18db25059c1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cacb1b7bd0548158b19b18db25059c1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cacb1b7bd0548158b19b18db25059c1', x'0ee2dfe7ec384274a973cb3347670ba1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8cacb1b7bd0548158b19b18db25059c1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cacb1b7bd0548158b19b18db25059c1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cacb1b7bd0548158b19b18db25059c1', x'7e6249746606477ea3ddafcbaf522204', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e76122296132487f93f9c0ef6a6d1ef3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e76122296132487f93f9c0ef6a6d1ef3' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e76122296132487f93f9c0ef6a6d1ef3' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"7EE135CADE9D4944979E8AEAE0A7742B"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e76122296132487f93f9c0ef6a6d1ef3' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e76122296132487f93f9c0ef6a6d1ef3' AND `account_users`.`account_id` = x'7ee135cade9d4944979e8aeae0a7742b' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6227a0aee1bb45d1bae2d8b18be864e3' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7ee135cade9d4944979e8aeae0a7742b' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account7ee135ca-de9d-4944-979e-8aeae0a7742b' AND `accounts`.`id` != x'7ee135cade9d4944979e8aeae0a7742b') LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:17:10' WHERE `accounts`.`id` = x'7ee135cade9d4944979e8aeae0a7742b'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/7EE135CADE9D4944979E8AEAE0A7742B Completed 302 Found in 16ms (ActiveRecord: 2.1ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e76122296132487f93f9c0ef6a6d1ef3' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:10', 'teste@teste.com', '$2a$04$J9dtoLXwEt5.m1Fxd5PLOurk3lzR6p81vFZfrnKHMdh4ykeOFxk.2', NULL, x'91bf165621e94ffc83854c1344c6935f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'91bf165621e94ffc83854c1344c6935f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:10', 'User', x'221156cbbf4b4249b2c32b4e17b4a471', 'f47c03191cb0312a618544949133e05e', x'91bf165621e94ffc83854c1344c6935f', 'User', '2012-12-31 12:17:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'91bf165621e94ffc83854c1344c6935f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'aba020bc96fe4e3c9d37a8bb1f63b016', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'accountaba020bc-96fe-4e3c-9d37-a8bb1f63b016' WHERE `accounts`.`id` = x'aba020bc96fe4e3c9d37a8bb1f63b016' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aba020bc96fe4e3c9d37a8bb1f63b016' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aba020bc96fe4e3c9d37a8bb1f63b016', x'844842a3e02a4f2f9b8a2b5fd80c78f3', x'91bf165621e94ffc83854c1344c6935f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'844842a3e02a4f2f9b8a2b5fd80c78f3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'844842a3e02a4f2f9b8a2b5fd80c78f3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'844842a3e02a4f2f9b8a2b5fd80c78f3', x'3935fb3ea4b949ada3aa61f60d783ec7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'844842a3e02a4f2f9b8a2b5fd80c78f3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'844842a3e02a4f2f9b8a2b5fd80c78f3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'844842a3e02a4f2f9b8a2b5fd80c78f3', x'9f720bcc66734336a84ad037c4b3a454', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182464705c_82580435d4832839@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'907124f6521e41be95c8599eed774b96', 'jabanilson', NULL, 1, '2012-12-31 12:17:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account907124f6-521e-41be-95c8-599eed774b96' WHERE `accounts`.`id` = x'907124f6521e41be95c8599eed774b96'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'907124f6521e41be95c8599eed774b96', x'6b6c0f800aa14d8f9cc14f79e191737e', x'91bf165621e94ffc83854c1344c6935f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6b6c0f800aa14d8f9cc14f79e191737e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b6c0f800aa14d8f9cc14f79e191737e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6b6c0f800aa14d8f9cc14f79e191737e', x'95a03124e969422f8453db1ec758cb7b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6b6c0f800aa14d8f9cc14f79e191737e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b6c0f800aa14d8f9cc14f79e191737e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6b6c0f800aa14d8f9cc14f79e191737e', x'9b52e7fd1de141d9ab604537f9892f5b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'91bf165621e94ffc83854c1344c6935f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'91bf165621e94ffc83854c1344c6935f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'91bf165621e94ffc83854c1344c6935f' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"907124F6521E41BE95C8599EED774B96"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'91bf165621e94ffc83854c1344c6935f' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'91bf165621e94ffc83854c1344c6935f' AND `account_users`.`account_id` = x'907124f6521e41be95c8599eed774b96' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6b6c0f800aa14d8f9cc14f79e191737e' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'907124f6521e41be95c8599eed774b96' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account907124f6-521e-41be-95c8-599eed774b96' AND `accounts`.`id` != x'907124f6521e41be95c8599eed774b96') LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:17:10' WHERE `accounts`.`id` = x'907124f6521e41be95c8599eed774b96'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/907124F6521E41BE95C8599EED774B96 Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (8.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:10', 'teste@teste.com', '$2a$04$OWh3WOTs8itR.L50q1JLAe87S1h7KR9pNMl26yxqoWot.sjMGprzS', NULL, x'12feb187602949538e67bfbe14b375e1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'12feb187602949538e67bfbe14b375e1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:10', 'User', x'ae8f94d5ebcb4b1287e4ddcf5ce3c6b7', '76bb9a573679ce8d83d8c37202cb9595', x'12feb187602949538e67bfbe14b375e1', 'User', '2012-12-31 12:17:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'12feb187602949538e67bfbe14b375e1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'4cbfbd139dd145d8b39a6ef4bf21c782', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account4cbfbd13-9dd1-45d8-b39a-6ef4bf21c782' WHERE `accounts`.`id` = x'4cbfbd139dd145d8b39a6ef4bf21c782' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4cbfbd139dd145d8b39a6ef4bf21c782' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4cbfbd139dd145d8b39a6ef4bf21c782', x'254d37c1814e4b719ed44b708227d9d6', x'12feb187602949538e67bfbe14b375e1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'254d37c1814e4b719ed44b708227d9d6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'254d37c1814e4b719ed44b708227d9d6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'254d37c1814e4b719ed44b708227d9d6', x'f1a21f1bbe20403bb95c1244176993f7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'254d37c1814e4b719ed44b708227d9d6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'254d37c1814e4b719ed44b708227d9d6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'254d37c1814e4b719ed44b708227d9d6', x'952085f43b054fa6921a9fe3da7657ff', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182465dfbb_82580435d48329a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'8ee5b3956cc0469cb0d43a7984c94ffe', 'jabanilson', NULL, 1, '2012-12-31 12:17:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account8ee5b395-6cc0-469c-b0d4-3a7984c94ffe' WHERE `accounts`.`id` = x'8ee5b3956cc0469cb0d43a7984c94ffe'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8ee5b3956cc0469cb0d43a7984c94ffe', x'0e7de7f7d3284750901fe204b06f35fe', x'12feb187602949538e67bfbe14b375e1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0e7de7f7d3284750901fe204b06f35fe') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e7de7f7d3284750901fe204b06f35fe' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e7de7f7d3284750901fe204b06f35fe', x'4ad0417622f148a3b52742ac7bfbbad0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e7de7f7d3284750901fe204b06f35fe') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e7de7f7d3284750901fe204b06f35fe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e7de7f7d3284750901fe204b06f35fe', x'f227568175114c1783de89ec1a3379b5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'12feb187602949538e67bfbe14b375e1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'12feb187602949538e67bfbe14b375e1' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'12feb187602949538e67bfbe14b375e1' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"8EE5B3956CC0469CB0D43A7984C94FFE"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'12feb187602949538e67bfbe14b375e1' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'12feb187602949538e67bfbe14b375e1' AND `account_users`.`account_id` = x'8ee5b3956cc0469cb0d43a7984c94ffe' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e7de7f7d3284750901fe204b06f35fe' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8ee5b3956cc0469cb0d43a7984c94ffe' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account8ee5b395-6cc0-469c-b0d4-3a7984c94ffe' AND `accounts`.`id` != x'8ee5b3956cc0469cb0d43a7984c94ffe') LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:17:10' WHERE `accounts`.`id` = x'8ee5b3956cc0469cb0d43a7984c94ffe'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/8EE5B3956CC0469CB0D43A7984C94FFE Completed 302 Found in 9ms (ActiveRecord: 1.6ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'12feb187602949538e67bfbe14b375e1' LIMIT 1  (10.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:10', 'teste@teste.com', '$2a$04$p/f133O0wnwwri6BKPxS7OczeYGoXV0WD9CH6ce6SQUcEp0RBMtpC', NULL, x'9a3de26975734022a0e40ddcb83a993e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9a3de26975734022a0e40ddcb83a993e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:10', 'User', x'62a6d51838f941609ab6032846895ccc', '4864526c59b031b72c69ec8be8b75163', x'9a3de26975734022a0e40ddcb83a993e', 'User', '2012-12-31 12:17:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9a3de26975734022a0e40ddcb83a993e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'907e42699cd2416795c09d112000972f', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account907e4269-9cd2-4167-95c0-9d112000972f' WHERE `accounts`.`id` = x'907e42699cd2416795c09d112000972f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'907e42699cd2416795c09d112000972f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'907e42699cd2416795c09d112000972f', x'f47abe017f3a42c9a81af0883fd6730f', x'9a3de26975734022a0e40ddcb83a993e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f47abe017f3a42c9a81af0883fd6730f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f47abe017f3a42c9a81af0883fd6730f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f47abe017f3a42c9a81af0883fd6730f', x'1f2d9c6abcd448d2b3d8fa32a234fa90', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f47abe017f3a42c9a81af0883fd6730f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f47abe017f3a42c9a81af0883fd6730f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f47abe017f3a42c9a81af0883fd6730f', x'4ce4f8f4a13f44bb8d9d7cafce7dd4b8', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824674129_82580435d483302d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'2ce9bf76e2464b23aaa50951eb30833a', 'jabanilson', NULL, 1, '2012-12-31 12:17:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account2ce9bf76-e246-4b23-aaa5-0951eb30833a' WHERE `accounts`.`id` = x'2ce9bf76e2464b23aaa50951eb30833a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2ce9bf76e2464b23aaa50951eb30833a', x'79825116538842c8bc5eabf49a77eb90', x'9a3de26975734022a0e40ddcb83a993e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'79825116538842c8bc5eabf49a77eb90') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'79825116538842c8bc5eabf49a77eb90' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'79825116538842c8bc5eabf49a77eb90', x'b14e389d3ebe4d18863d01a1cba570e1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'79825116538842c8bc5eabf49a77eb90') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'79825116538842c8bc5eabf49a77eb90' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'79825116538842c8bc5eabf49a77eb90', x'acbf5e5462bc47f88717d3260cafe21a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9a3de26975734022a0e40ddcb83a993e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9a3de26975734022a0e40ddcb83a993e' LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9a3de26975734022a0e40ddcb83a993e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'2a9a4e006aff43ddbbc03b3ef6b4eeac', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account2a9a4e00-6aff-43dd-bbc0-3b3ef6b4eeac' WHERE `accounts`.`id` = x'2a9a4e006aff43ddbbc03b3ef6b4eeac'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9a3de26975734022a0e40ddcb83a993e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2a9a4e006aff43ddbbc03b3ef6b4eeac', x'253c472795bd4662a580b711edd4b19b', x'9a3de26975734022a0e40ddcb83a993e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'253c472795bd4662a580b711edd4b19b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'253c472795bd4662a580b711edd4b19b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'253c472795bd4662a580b711edd4b19b', x'e1ddd7ddd59140cbb272db6390d00b9b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'253c472795bd4662a580b711edd4b19b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'253c472795bd4662a580b711edd4b19b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'253c472795bd4662a580b711edd4b19b', x'73ce4d6eee3c4ad1addc7b0303af639b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 93ms (ActiveRecord: 3.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:10', 'teste@teste.com', '$2a$04$P4C5TBD8Zu3aBzK631bFYuwOvSQdyUm4nRJjkKRMpR3Spap2UpXmq', NULL, x'c07bc68e9ea9493c98b28c61180375a3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c07bc68e9ea9493c98b28c61180375a3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:10', 'User', x'fe4613fc1ee5443f94c520413ecfb321', '6f1ad295ec8d57a5ed0faf269e04bbb5', x'c07bc68e9ea9493c98b28c61180375a3', 'User', '2012-12-31 12:17:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c07bc68e9ea9493c98b28c61180375a3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'fc1eb4dee218418bb963c8c506ad4026', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'accountfc1eb4de-e218-418b-b963-c8c506ad4026' WHERE `accounts`.`id` = x'fc1eb4dee218418bb963c8c506ad4026' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fc1eb4dee218418bb963c8c506ad4026' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fc1eb4dee218418bb963c8c506ad4026', x'dd5f40db801e4301aa186123e7dc61cf', x'c07bc68e9ea9493c98b28c61180375a3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dd5f40db801e4301aa186123e7dc61cf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dd5f40db801e4301aa186123e7dc61cf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dd5f40db801e4301aa186123e7dc61cf', x'17cd979689b34ca0a0362ed04e43099b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dd5f40db801e4301aa186123e7dc61cf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dd5f40db801e4301aa186123e7dc61cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dd5f40db801e4301aa186123e7dc61cf', x'8c87a7d603d7498194c6164bfa5ea622', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182469c4e3_82580435d48331e9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'3474bc5ed85b4d0aa953a129468608ad', 'jabanilson', NULL, 1, '2012-12-31 12:17:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account3474bc5e-d85b-4d0a-a953-a129468608ad' WHERE `accounts`.`id` = x'3474bc5ed85b4d0aa953a129468608ad'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3474bc5ed85b4d0aa953a129468608ad', x'd8ca276f31a94d908c2bdda2b5dcf0b8', x'c07bc68e9ea9493c98b28c61180375a3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd8ca276f31a94d908c2bdda2b5dcf0b8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8ca276f31a94d908c2bdda2b5dcf0b8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8ca276f31a94d908c2bdda2b5dcf0b8', x'a49ba06f315d4db2be6ef63815225586', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd8ca276f31a94d908c2bdda2b5dcf0b8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8ca276f31a94d908c2bdda2b5dcf0b8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8ca276f31a94d908c2bdda2b5dcf0b8', x'804392ef7b724d24a4d6731c1734a151', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c07bc68e9ea9493c98b28c61180375a3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c07bc68e9ea9493c98b28c61180375a3' LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c07bc68e9ea9493c98b28c61180375a3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'caa64ec05bd44cad9cb16dea49bbc576', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'accountcaa64ec0-5bd4-4cad-9cb1-6dea49bbc576' WHERE `accounts`.`id` = x'caa64ec05bd44cad9cb16dea49bbc576'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c07bc68e9ea9493c98b28c61180375a3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'caa64ec05bd44cad9cb16dea49bbc576', x'8699fedfbf2644edb73f57c86168bbea', x'c07bc68e9ea9493c98b28c61180375a3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8699fedfbf2644edb73f57c86168bbea') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8699fedfbf2644edb73f57c86168bbea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8699fedfbf2644edb73f57c86168bbea', x'db743e39bf0d43808426bddcefb5f128', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8699fedfbf2644edb73f57c86168bbea') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8699fedfbf2644edb73f57c86168bbea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8699fedfbf2644edb73f57c86168bbea', x'c843cad5411744bc907f302d4d25022b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 19ms (ActiveRecord: 3.1ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c07bc68e9ea9493c98b28c61180375a3' Processing by Iugu::AccountController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'c3528730b76e4f798d00237f997ebed2', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'accountc3528730-b76e-4f79-8d00-237f997ebed2' WHERE `accounts`.`id` = x'c3528730b76e4f798d00237f997ebed2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c07bc68e9ea9493c98b28c61180375a3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c3528730b76e4f798d00237f997ebed2', x'77e39fd906f2414dac797761c08f321a', x'c07bc68e9ea9493c98b28c61180375a3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'77e39fd906f2414dac797761c08f321a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'77e39fd906f2414dac797761c08f321a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'77e39fd906f2414dac797761c08f321a', x'346766510a284ebba34a7be7444ace55', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'77e39fd906f2414dac797761c08f321a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'77e39fd906f2414dac797761c08f321a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'77e39fd906f2414dac797761c08f321a', x'2797133f5629427f868d377d828ee986', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 2.5ms)  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c07bc68e9ea9493c98b28c61180375a3'  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:10', 'teste@teste.com', '$2a$04$xnO5V.C7AkrG3YZNQfpVFeZeQnrWcJ19O20Q1mUswAuGGc3.XNfHG', NULL, x'6abc0863538d458992600e873468cf8a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6abc0863538d458992600e873468cf8a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:10', 'User', x'aa3c36a51a394d70b519b010589714da', '6184f13e06daff52d1be9ff89201b7ab', x'6abc0863538d458992600e873468cf8a', 'User', '2012-12-31 12:17:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6abc0863538d458992600e873468cf8a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'085b9bfb16e64bfd877df2d3b89c27d4', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account085b9bfb-16e6-4bfd-877d-f2d3b89c27d4' WHERE `accounts`.`id` = x'085b9bfb16e64bfd877df2d3b89c27d4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'085b9bfb16e64bfd877df2d3b89c27d4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'085b9bfb16e64bfd877df2d3b89c27d4', x'7d6ac313702a4d658ab805b6b7261c2c', x'6abc0863538d458992600e873468cf8a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7d6ac313702a4d658ab805b6b7261c2c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d6ac313702a4d658ab805b6b7261c2c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d6ac313702a4d658ab805b6b7261c2c', x'303d496dfa8e4bab84f87e2aa480e53d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7d6ac313702a4d658ab805b6b7261c2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d6ac313702a4d658ab805b6b7261c2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d6ac313702a4d658ab805b6b7261c2c', x'2c9cb322879643da8b6504828b1f473c', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18246bc07b_82580435d4833274@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'c4c0490842dd4968aa30774512c89c6a', 'jabanilson', NULL, 1, '2012-12-31 12:17:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'accountc4c04908-42dd-4968-aa30-774512c89c6a' WHERE `accounts`.`id` = x'c4c0490842dd4968aa30774512c89c6a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c4c0490842dd4968aa30774512c89c6a', x'ae5b61e7b9d24ddb92853d35f36ffb63', x'6abc0863538d458992600e873468cf8a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ae5b61e7b9d24ddb92853d35f36ffb63') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae5b61e7b9d24ddb92853d35f36ffb63' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae5b61e7b9d24ddb92853d35f36ffb63', x'ee82fe740c754792b17dfaae5182a425', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ae5b61e7b9d24ddb92853d35f36ffb63') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae5b61e7b9d24ddb92853d35f36ffb63' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae5b61e7b9d24ddb92853d35f36ffb63', x'0652e44e3e8e43a3aabe7c76e4ed9405', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6abc0863538d458992600e873468cf8a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6abc0863538d458992600e873468cf8a' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6abc0863538d458992600e873468cf8a' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"C4C0490842DD4968AA30774512C89C6A"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6abc0863538d458992600e873468cf8a' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c4c0490842dd4968aa30774512c89c6a' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c4c04908-42dd-4968-aa30-774512c89c6a_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6abc0863538d458992600e873468cf8a' AND `account_users`.`account_id` = x'c4c0490842dd4968aa30774512c89c6a' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ae5b61e7b9d24ddb92853d35f36ffb63' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6abc0863538d458992600e873468cf8a' AND `accounts`.`id` = x'c4c0490842dd4968aa30774512c89c6a' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'c4c0490842dd4968aa30774512c89c6a' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c4c0490842dd4968aa30774512c89c6a' LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:17:10', 'token x', x'130ea4e516d64402bad38df8a9b2e5be', '8f94f37095094a74c880dffb047b69a8', x'c4c0490842dd4968aa30774512c89c6a', 'Account', '2012-12-31 12:17:10')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/C4C0490842DD4968AA30774512C89C6A Completed 302 Found in 18ms (ActiveRecord: 3.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:10', 'teste@teste.com', '$2a$04$Rc/fkF6lBw29GY9ZUHJnteZE446E7aQnTOg5YKboae9IzliUP0r2S', NULL, x'8a7c1a7278e44649b88aa8ba2abfe467', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8a7c1a7278e44649b88aa8ba2abfe467' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:10', 'User', x'fdd783acebdf47ab85937da8906513a1', '2b214f4cc902b8195227762ae874afd6', x'8a7c1a7278e44649b88aa8ba2abfe467', 'User', '2012-12-31 12:17:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8a7c1a7278e44649b88aa8ba2abfe467' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'416c608644fd4673bd55ad2b818b6e6c', NULL, NULL, NULL, '2012-12-31 12:17:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account416c6086-44fd-4673-bd55-ad2b818b6e6c' WHERE `accounts`.`id` = x'416c608644fd4673bd55ad2b818b6e6c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'416c608644fd4673bd55ad2b818b6e6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'416c608644fd4673bd55ad2b818b6e6c', x'34a043812e4d43dcba9bd5958dd3f252', x'8a7c1a7278e44649b88aa8ba2abfe467') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'34a043812e4d43dcba9bd5958dd3f252') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'34a043812e4d43dcba9bd5958dd3f252' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'34a043812e4d43dcba9bd5958dd3f252', x'b14962721f4a4111b403346fc5af0ff0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'34a043812e4d43dcba9bd5958dd3f252') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'34a043812e4d43dcba9bd5958dd3f252' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'34a043812e4d43dcba9bd5958dd3f252', x'13d30a7227ba40178d104252a85ddc69', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18246e7966_82580435d4833334@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:10', x'343448fdc22f42648f51197bfc9e649c', 'jabanilson', NULL, 1, '2012-12-31 12:17:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:10', `updated_at` = '2012-12-31 12:17:10', `subdomain` = 'account343448fd-c22f-4264-8f51-197bfc9e649c' WHERE `accounts`.`id` = x'343448fdc22f42648f51197bfc9e649c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'343448fdc22f42648f51197bfc9e649c', x'30ec30b9e3a64fe99cf5abea68b87633', x'8a7c1a7278e44649b88aa8ba2abfe467') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'30ec30b9e3a64fe99cf5abea68b87633') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'30ec30b9e3a64fe99cf5abea68b87633' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'30ec30b9e3a64fe99cf5abea68b87633', x'411a08f5046848dea35989af5c661da8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'30ec30b9e3a64fe99cf5abea68b87633') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'30ec30b9e3a64fe99cf5abea68b87633' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'30ec30b9e3a64fe99cf5abea68b87633', x'dd908b21a10f43838074db12d054a55a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a7c1a7278e44649b88aa8ba2abfe467' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a7c1a7278e44649b88aa8ba2abfe467' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a7c1a7278e44649b88aa8ba2abfe467' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"416C608644FD4673BD55AD2B818B6E6C"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8a7c1a7278e44649b88aa8ba2abfe467' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'416c608644fd4673bd55ad2b818b6e6c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_416c6086-44fd-4673-bd55-ad2b818b6e6c_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8a7c1a7278e44649b88aa8ba2abfe467' AND `account_users`.`account_id` = x'416c608644fd4673bd55ad2b818b6e6c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'34a043812e4d43dcba9bd5958dd3f252' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a7c1a7278e44649b88aa8ba2abfe467' AND `accounts`.`id` = x'416c608644fd4673bd55ad2b818b6e6c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'416c608644fd4673bd55ad2b818b6e6c' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'416c608644fd4673bd55ad2b818b6e6c' LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:17:10', 'token x', x'cf12dc2d6ff44fb996aae4da71f7fa7f', 'e82ae8bc214101033180ec4b6af3f83a', x'416c608644fd4673bd55ad2b818b6e6c', 'Account', '2012-12-31 12:17:10')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/416C608644FD4673BD55AD2B818B6E6C Completed 302 Found in 16ms (ActiveRecord: 2.8ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$4bzsW6IiSmt.LgzZrssDROKV2UFnVEVoLlCCyPfEFs12X6/RUbIe2', NULL, x'eef8ab18e1fd45fd8f85d60332c929ec', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'eef8ab18e1fd45fd8f85d60332c929ec' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'4c295573ca354938a66e70877acb5796', 'f49dfa4cf935e3e8d942891326ba9620', x'eef8ab18e1fd45fd8f85d60332c929ec', 'User', '2012-12-31 12:17:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'eef8ab18e1fd45fd8f85d60332c929ec' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'd41adb9e8f944912bc15f04481181e07', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accountd41adb9e-8f94-4912-bc15-f04481181e07' WHERE `accounts`.`id` = x'd41adb9e8f944912bc15f04481181e07' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd41adb9e8f944912bc15f04481181e07' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd41adb9e8f944912bc15f04481181e07', x'1e58b6278ed6495aa5c94a700007cc0b', x'eef8ab18e1fd45fd8f85d60332c929ec') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1e58b6278ed6495aa5c94a700007cc0b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1e58b6278ed6495aa5c94a700007cc0b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1e58b6278ed6495aa5c94a700007cc0b', x'1a0294f26d334562ac6d45d3aab75a99', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1e58b6278ed6495aa5c94a700007cc0b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1e58b6278ed6495aa5c94a700007cc0b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1e58b6278ed6495aa5c94a700007cc0b', x'b6a6947f2d9b469588ae1afef7dc08bb', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182479ec5_82580435d483348d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'b96f901ae77b422492ab3b68c7a8fe75', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accountb96f901a-e77b-4224-92ab-3b68c7a8fe75' WHERE `accounts`.`id` = x'b96f901ae77b422492ab3b68c7a8fe75'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b96f901ae77b422492ab3b68c7a8fe75', x'b83818dedc2944d4bd8d2957cd0a1fb2', x'eef8ab18e1fd45fd8f85d60332c929ec') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b83818dedc2944d4bd8d2957cd0a1fb2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b83818dedc2944d4bd8d2957cd0a1fb2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b83818dedc2944d4bd8d2957cd0a1fb2', x'c575374138ab4eb7b9fca34b68b33ba3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b83818dedc2944d4bd8d2957cd0a1fb2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b83818dedc2944d4bd8d2957cd0a1fb2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b83818dedc2944d4bd8d2957cd0a1fb2', x'4d01af6f61d44ab59d8e221e7af23f8a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eef8ab18e1fd45fd8f85d60332c929ec' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eef8ab18e1fd45fd8f85d60332c929ec' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eef8ab18e1fd45fd8f85d60332c929ec' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"D41ADB9E8F944912BC15F04481181E07"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'eef8ab18e1fd45fd8f85d60332c929ec' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd41adb9e8f944912bc15f04481181e07' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d41adb9e-8f94-4912-bc15-f04481181e07_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'eef8ab18e1fd45fd8f85d60332c929ec' AND `account_users`.`account_id` = x'd41adb9e8f944912bc15f04481181e07' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1e58b6278ed6495aa5c94a700007cc0b' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eef8ab18e1fd45fd8f85d60332c929ec' AND `accounts`.`id` = x'd41adb9e8f944912bc15f04481181e07' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'd41adb9e8f944912bc15f04481181e07' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd41adb9e8f944912bc15f04481181e07' LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:17:11', 'token x', x'f6897c2edcfe402b8c0a52bcb3487c68', 'f5bf7661fee92feda135fcc3f3964aa1', x'd41adb9e8f944912bc15f04481181e07', 'Account', '2012-12-31 12:17:11')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/D41ADB9E8F944912BC15F04481181E07 Completed 302 Found in 15ms (ActiveRecord: 2.8ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"D41ADB9E8F944912BC15F04481181E07"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd41adb9e8f944912bc15f04481181e07' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d41adb9e-8f94-4912-bc15-f04481181e07_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'eef8ab18e1fd45fd8f85d60332c929ec' AND `account_users`.`account_id` = x'd41adb9e8f944912bc15f04481181e07' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1e58b6278ed6495aa5c94a700007cc0b' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$xLJYSwcflgQZuIu.TwfN/uwZHKquLgLvamw2FcNNRckuNt7jh91cu', NULL, x'3f9e8b45c4824a2f849481dfd3bfe613', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3f9e8b45c4824a2f849481dfd3bfe613' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'76e45729378147b89b5cbbb14f9ef3e7', '166777b1461a1defb59a5b9e3435d3fa', x'3f9e8b45c4824a2f849481dfd3bfe613', 'User', '2012-12-31 12:17:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3f9e8b45c4824a2f849481dfd3bfe613' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'ec422248ae61484492190e6420a1d841', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accountec422248-ae61-4844-9219-0e6420a1d841' WHERE `accounts`.`id` = x'ec422248ae61484492190e6420a1d841' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ec422248ae61484492190e6420a1d841' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ec422248ae61484492190e6420a1d841', x'd7c28d6540da455cba4906a21ca822eb', x'3f9e8b45c4824a2f849481dfd3bfe613') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd7c28d6540da455cba4906a21ca822eb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd7c28d6540da455cba4906a21ca822eb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd7c28d6540da455cba4906a21ca822eb', x'9445a3b558c44ca0b5f9a5766120e960', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd7c28d6540da455cba4906a21ca822eb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd7c28d6540da455cba4906a21ca822eb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd7c28d6540da455cba4906a21ca822eb', x'089915a112244e0a998553349bb877af', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824721a7c_82580435d483355d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'48a9439a1f8a44deaa919a67b88a8277', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account48a9439a-1f8a-44de-aa91-9a67b88a8277' WHERE `accounts`.`id` = x'48a9439a1f8a44deaa919a67b88a8277'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'48a9439a1f8a44deaa919a67b88a8277', x'31b2abb86f3745549dcae515bffa7306', x'3f9e8b45c4824a2f849481dfd3bfe613') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'31b2abb86f3745549dcae515bffa7306') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'31b2abb86f3745549dcae515bffa7306' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'31b2abb86f3745549dcae515bffa7306', x'55322de48c694ecba7874da7127d736c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'31b2abb86f3745549dcae515bffa7306') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'31b2abb86f3745549dcae515bffa7306' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'31b2abb86f3745549dcae515bffa7306', x'bc92822ab6cc4988b3fd944d3ba9ada8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3f9e8b45c4824a2f849481dfd3bfe613' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3f9e8b45c4824a2f849481dfd3bfe613' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3f9e8b45c4824a2f849481dfd3bfe613' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'48a9439a1f8a44deaa919a67b88a8277' AND `account_domains`.`url` = 'controller.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'48a9439a1f8a44deaa919a67b88a8277', x'f6eb6089fc9f413596e73cd972f5acd1', NULL, 'controller.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"48A9439A1F8A44DEAA919A67B88A8277"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3f9e8b45c4824a2f849481dfd3bfe613' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'48a9439a1f8a44deaa919a67b88a8277' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_48a9439a-1f8a-44de-aa91-9a67b88a8277_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3f9e8b45c4824a2f849481dfd3bfe613' AND `account_users`.`account_id` = x'48a9439a1f8a44deaa919a67b88a8277' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'31b2abb86f3745549dcae515bffa7306' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'31b2abb86f3745549dcae515bffa7306' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3f9e8b45c4824a2f849481dfd3bfe613' AND `accounts`.`id` = x'48a9439a1f8a44deaa919a67b88a8277' LIMIT 1 Completed 200 OK in 15ms (Views: 4.2ms | ActiveRecord: 1.9ms)  (4.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$pU/ou7BysooAk8YJjA9VJOOiY53PvLbgwp13r66m4nE1LyJeLwDAy', NULL, x'7be69a82cb524dfe8324cb68a5e7e0c2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7be69a82cb524dfe8324cb68a5e7e0c2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'1baae1d0a40f4ead80223e31003d2ace', '259817750ded9be6253620f772ca5875', x'7be69a82cb524dfe8324cb68a5e7e0c2', 'User', '2012-12-31 12:17:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7be69a82cb524dfe8324cb68a5e7e0c2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'bfee178c003a42ca9f725d34d47165ca', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accountbfee178c-003a-42ca-9f72-5d34d47165ca' WHERE `accounts`.`id` = x'bfee178c003a42ca9f725d34d47165ca' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bfee178c003a42ca9f725d34d47165ca' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bfee178c003a42ca9f725d34d47165ca', x'bd138edfd2524509a9e587a084856b2a', x'7be69a82cb524dfe8324cb68a5e7e0c2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bd138edfd2524509a9e587a084856b2a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd138edfd2524509a9e587a084856b2a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd138edfd2524509a9e587a084856b2a', x'325f0c3c814e47ddb562758e7cea7ae7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bd138edfd2524509a9e587a084856b2a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd138edfd2524509a9e587a084856b2a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd138edfd2524509a9e587a084856b2a', x'b3ef7f4764a24228b8efafb8e8f79aa1', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182475075d_82580435d4833611@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'24fe2bfbec284cebbe2d6e12619fb38e', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account24fe2bfb-ec28-4ceb-be2d-6e12619fb38e' WHERE `accounts`.`id` = x'24fe2bfbec284cebbe2d6e12619fb38e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'24fe2bfbec284cebbe2d6e12619fb38e', x'3cf3fe6c15254cd590a458e6b452c857', x'7be69a82cb524dfe8324cb68a5e7e0c2') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3cf3fe6c15254cd590a458e6b452c857') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3cf3fe6c15254cd590a458e6b452c857' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3cf3fe6c15254cd590a458e6b452c857', x'9ba5e30b1f6e4c45b34b900362582637', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3cf3fe6c15254cd590a458e6b452c857') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3cf3fe6c15254cd590a458e6b452c857' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3cf3fe6c15254cd590a458e6b452c857', x'0a0a6019c182453ebc8c10f1b149b014', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7be69a82cb524dfe8324cb68a5e7e0c2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7be69a82cb524dfe8324cb68a5e7e0c2' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7be69a82cb524dfe8324cb68a5e7e0c2' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"24FE2BFBEC284CEBBE2D6E12619FB38E"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7be69a82cb524dfe8324cb68a5e7e0c2' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'24fe2bfbec284cebbe2d6e12619fb38e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_24fe2bfb-ec28-4ceb-be2d-6e12619fb38e_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7be69a82cb524dfe8324cb68a5e7e0c2' AND `account_users`.`account_id` = x'24fe2bfbec284cebbe2d6e12619fb38e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cf3fe6c15254cd590a458e6b452c857' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cf3fe6c15254cd590a458e6b452c857' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7be69a82cb524dfe8324cb68a5e7e0c2' AND `accounts`.`id` = x'24fe2bfbec284cebbe2d6e12619fb38e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'24fe2bfbec284cebbe2d6e12619fb38e' AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'24fe2bfbec284cebbe2d6e12619fb38e', x'39c83a3f10a64420922fdc54305ecc23', NULL, 'new.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/24FE2BFBEC284CEBBE2D6E12619FB38E/domain/39C83A3F10A64420922FDC54305ECC23 Completed 302 Found in 16ms (ActiveRecord: 3.3ms) AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (13.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$WaNXEEfj2aV6AP.yz6RXae9ybAtuKne6TpGTSwVsiCrQYKGKH832K', NULL, x'7057678380a14ccab7aef9b834d8fead', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7057678380a14ccab7aef9b834d8fead' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'd2cfd95b61684b398dedcbd3b5dfc12c', 'ec37563d92349e57c762e3f8e1c2a050', x'7057678380a14ccab7aef9b834d8fead', 'User', '2012-12-31 12:17:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7057678380a14ccab7aef9b834d8fead' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'f6bea34f6cd742f1bbcc9010391d7f77', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accountf6bea34f-6cd7-42f1-bbcc-9010391d7f77' WHERE `accounts`.`id` = x'f6bea34f6cd742f1bbcc9010391d7f77' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f6bea34f6cd742f1bbcc9010391d7f77' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f6bea34f6cd742f1bbcc9010391d7f77', x'9668b9919e714055800e59143195621c', x'7057678380a14ccab7aef9b834d8fead') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9668b9919e714055800e59143195621c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9668b9919e714055800e59143195621c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9668b9919e714055800e59143195621c', x'5c3131107c7f4caa872f023a18430a7c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9668b9919e714055800e59143195621c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9668b9919e714055800e59143195621c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9668b9919e714055800e59143195621c', x'0d9f910b8d004ed5a8ba3b9b3c408bab', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824769d3a_82580435d48337bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'34bb8f2c389a42e0bd0dd88c4f118f81', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account34bb8f2c-389a-42e0-bd0d-d88c4f118f81' WHERE `accounts`.`id` = x'34bb8f2c389a42e0bd0dd88c4f118f81'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'34bb8f2c389a42e0bd0dd88c4f118f81', x'df60446fe9824c3c8e3bfed29f7a2dfc', x'7057678380a14ccab7aef9b834d8fead') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'df60446fe9824c3c8e3bfed29f7a2dfc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df60446fe9824c3c8e3bfed29f7a2dfc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df60446fe9824c3c8e3bfed29f7a2dfc', x'b2363f0b25c044fd89b360e35b6c5747', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'df60446fe9824c3c8e3bfed29f7a2dfc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df60446fe9824c3c8e3bfed29f7a2dfc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df60446fe9824c3c8e3bfed29f7a2dfc', x'bc299a42463e4dc8ad6f1cc491124109', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7057678380a14ccab7aef9b834d8fead' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7057678380a14ccab7aef9b834d8fead' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7057678380a14ccab7aef9b834d8fead' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"F6BEA34F6CD742F1BBCC9010391D7F77"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7057678380a14ccab7aef9b834d8fead' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f6bea34f6cd742f1bbcc9010391d7f77' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f6bea34f-6cd7-42f1-bbcc-9010391d7f77_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7057678380a14ccab7aef9b834d8fead' AND `account_users`.`account_id` = x'f6bea34f6cd742f1bbcc9010391d7f77' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9668b9919e714055800e59143195621c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9668b9919e714055800e59143195621c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7057678380a14ccab7aef9b834d8fead' AND `accounts`.`id` = x'f6bea34f6cd742f1bbcc9010391d7f77' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f6bea34f6cd742f1bbcc9010391d7f77' AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f6bea34f6cd742f1bbcc9010391d7f77', x'a779b7bc8041473fb04eaaa625c94863', NULL, 'new.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/F6BEA34F6CD742F1BBCC9010391D7F77/domain/A779B7BC8041473FB04EAAA625C94863 Completed 302 Found in 15ms (ActiveRecord: 3.2ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"F6BEA34F6CD742F1BBCC9010391D7F77"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f6bea34f6cd742f1bbcc9010391d7f77' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f6bea34f-6cd7-42f1-bbcc-9010391d7f77_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7057678380a14ccab7aef9b834d8fead' AND `account_users`.`account_id` = x'f6bea34f6cd742f1bbcc9010391d7f77' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9668b9919e714055800e59143195621c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9668b9919e714055800e59143195621c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7057678380a14ccab7aef9b834d8fead' AND `accounts`.`id` = x'f6bea34f6cd742f1bbcc9010391d7f77' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$5vK8t1kCuPiBYlE0O1r5IuRM1EuCsi2JXQP8Jw4NzKBOAQc7Soqy6', NULL, x'76825706e14b48a0acb78b2b37e5eff6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'76825706e14b48a0acb78b2b37e5eff6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'e7155f90babd4ab9981962f3f3d71e92', '1d99ebe1deca844c37eed0f6b724db98', x'76825706e14b48a0acb78b2b37e5eff6', 'User', '2012-12-31 12:17:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'76825706e14b48a0acb78b2b37e5eff6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'6e1fdf58f78e4f3483f9fd9fd762d70a', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account6e1fdf58-f78e-4f34-83f9-fd9fd762d70a' WHERE `accounts`.`id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6e1fdf58f78e4f3483f9fd9fd762d70a', x'9dbb11a755ff4a1b80eaabe8b26abd49', x'76825706e14b48a0acb78b2b37e5eff6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9dbb11a755ff4a1b80eaabe8b26abd49') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9dbb11a755ff4a1b80eaabe8b26abd49' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9dbb11a755ff4a1b80eaabe8b26abd49', x'a503ec6fa5334842b0426d1b16e916fc', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9dbb11a755ff4a1b80eaabe8b26abd49') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9dbb11a755ff4a1b80eaabe8b26abd49' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9dbb11a755ff4a1b80eaabe8b26abd49', x'c45f9e1d54984d85b1d997f5c57463bd', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18247835f8_82580435d483387f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'9c43e1f5e87545b09060e06f0e3f3426', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account9c43e1f5-e875-45b0-9060-e06f0e3f3426' WHERE `accounts`.`id` = x'9c43e1f5e87545b09060e06f0e3f3426'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9c43e1f5e87545b09060e06f0e3f3426', x'ab071137c444404389d521c728544f30', x'76825706e14b48a0acb78b2b37e5eff6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ab071137c444404389d521c728544f30') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab071137c444404389d521c728544f30' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab071137c444404389d521c728544f30', x'379213ead1c440358fa9874e4b955afa', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ab071137c444404389d521c728544f30') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab071137c444404389d521c728544f30' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab071137c444404389d521c728544f30', x'2e1723e9c3594b3f92668c55b06923c1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'76825706e14b48a0acb78b2b37e5eff6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'76825706e14b48a0acb78b2b37e5eff6' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'76825706e14b48a0acb78b2b37e5eff6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'6e1fdf58f78e4f3483f9fd9fd762d70a', x'a59d68e23f0440b38f8ffbd5fc1a4444', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"6E1FDF58F78E4F3483F9FD9FD762D70A", "domain_id"=>"A59D68E23F0440B38F8FFBD5FC1A4444"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'76825706e14b48a0acb78b2b37e5eff6' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6e1fdf58-f78e-4f34-83f9-fd9fd762d70a_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'76825706e14b48a0acb78b2b37e5eff6' AND `account_users`.`account_id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9dbb11a755ff4a1b80eaabe8b26abd49' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9dbb11a755ff4a1b80eaabe8b26abd49' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'76825706e14b48a0acb78b2b37e5eff6' AND `accounts`.`id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' AND `account_domains`.`id` = x'a59d68e23f0440b38f8ffbd5fc1a4444' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'a59d68e23f0440b38f8ffbd5fc1a4444'  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6e1fdf58f78e4f3483f9fd9fd762d70a' AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'a59d68e23f0440b38f8ffbd5fc1a4444'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/6E1FDF58F78E4F3483F9FD9FD762D70A/domains Completed 302 Found in 16ms (ActiveRecord: 3.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$5NURFt8v2imbXuhqUaEAjOXtxAleY4lNfY41rC130QGXaUGit56Om', NULL, x'6b59e762ea2a4223bd1bf563db5a7a16', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6b59e762ea2a4223bd1bf563db5a7a16' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'51e2ee4a6a414f8080e99f62fa60d571', '18b0210cfb6f12235495193c0c1a45d6', x'6b59e762ea2a4223bd1bf563db5a7a16', 'User', '2012-12-31 12:17:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6b59e762ea2a4223bd1bf563db5a7a16' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'96c70a7b4d2445e2bfe956aee30c2e69', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account96c70a7b-4d24-45e2-bfe9-56aee30c2e69' WHERE `accounts`.`id` = x'96c70a7b4d2445e2bfe956aee30c2e69' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'96c70a7b4d2445e2bfe956aee30c2e69' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'96c70a7b4d2445e2bfe956aee30c2e69', x'98f017330f594af58ccb2666f8061ec8', x'6b59e762ea2a4223bd1bf563db5a7a16') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'98f017330f594af58ccb2666f8061ec8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'98f017330f594af58ccb2666f8061ec8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'98f017330f594af58ccb2666f8061ec8', x'2216c00bf23045b992b8a787e6349f81', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'98f017330f594af58ccb2666f8061ec8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'98f017330f594af58ccb2666f8061ec8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'98f017330f594af58ccb2666f8061ec8', x'598d04a2bd8e4b8899baf2f074683bd9', 'admin') Sent mail to teste@teste.com (86ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18247ad91c_82580435d4833961@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'311d12ead9784938a20a8b75a92eca88', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account311d12ea-d978-4938-a20a-8b75a92eca88' WHERE `accounts`.`id` = x'311d12ead9784938a20a8b75a92eca88'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'311d12ead9784938a20a8b75a92eca88', x'41da7a5ff14a440294ce0554a1fd2a99', x'6b59e762ea2a4223bd1bf563db5a7a16') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'41da7a5ff14a440294ce0554a1fd2a99') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41da7a5ff14a440294ce0554a1fd2a99' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41da7a5ff14a440294ce0554a1fd2a99', x'7ad2574a73e043819c10830f0f4f3686', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'41da7a5ff14a440294ce0554a1fd2a99') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41da7a5ff14a440294ce0554a1fd2a99' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41da7a5ff14a440294ce0554a1fd2a99', x'9cfb31aa66df4611adeab7b243660fba', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b59e762ea2a4223bd1bf563db5a7a16' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b59e762ea2a4223bd1bf563db5a7a16' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b59e762ea2a4223bd1bf563db5a7a16' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'311d12ead9784938a20a8b75a92eca88' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'311d12ead9784938a20a8b75a92eca88', x'58bf76f4e223459c8a8c7f4f4ab2e427', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'311d12ead9784938a20a8b75a92eca88' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"311D12EAD9784938A20A8B75A92ECA88", "domain_id"=>"58BF76F4E223459C8A8C7F4F4AB2E427"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6b59e762ea2a4223bd1bf563db5a7a16' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'311d12ead9784938a20a8b75a92eca88' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_311d12ea-d978-4938-a20a-8b75a92eca88_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6b59e762ea2a4223bd1bf563db5a7a16' AND `account_users`.`account_id` = x'311d12ead9784938a20a8b75a92eca88' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'41da7a5ff14a440294ce0554a1fd2a99' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'41da7a5ff14a440294ce0554a1fd2a99' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b59e762ea2a4223bd1bf563db5a7a16' AND `accounts`.`id` = x'311d12ead9784938a20a8b75a92eca88' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'311d12ead9784938a20a8b75a92eca88' AND `account_domains`.`id` = x'58bf76f4e223459c8a8c7f4f4ab2e427' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'58bf76f4e223459c8a8c7f4f4ab2e427'  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'311d12ead9784938a20a8b75a92eca88' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'311d12ead9784938a20a8b75a92eca88' AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'58bf76f4e223459c8a8c7f4f4ab2e427'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/311D12EAD9784938A20A8B75A92ECA88/domains Completed 302 Found in 15ms (ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$D5v1f0KYVyANthHyt8u7du.CwzPRuTKCRRrUMnshXXLDExcs8l3xm', NULL, x'4ecdd7fd9948453392fbd92a883902e3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4ecdd7fd9948453392fbd92a883902e3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'a0964219fc474657ba3bebb8bbea2f66', 'b0abde7c8df6383435b7fa303555cb27', x'4ecdd7fd9948453392fbd92a883902e3', 'User', '2012-12-31 12:17:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4ecdd7fd9948453392fbd92a883902e3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'4c5aea7797c84391b15ad101531a2c3d', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account4c5aea77-97c8-4391-b15a-d101531a2c3d' WHERE `accounts`.`id` = x'4c5aea7797c84391b15ad101531a2c3d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c5aea7797c84391b15ad101531a2c3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4c5aea7797c84391b15ad101531a2c3d', x'79e1c0f98274410fb653ab239d161731', x'4ecdd7fd9948453392fbd92a883902e3') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'79e1c0f98274410fb653ab239d161731') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'79e1c0f98274410fb653ab239d161731' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'79e1c0f98274410fb653ab239d161731', x'2c1c534da0c6439a8130ccd423019d1f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'79e1c0f98274410fb653ab239d161731') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'79e1c0f98274410fb653ab239d161731' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'79e1c0f98274410fb653ab239d161731', x'0b16b743ad764e6f96a69d79d8abae2f', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18247c49e0_82580435d4834045@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'fd93782763cc458680b76cf265063d12', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accountfd937827-63cc-4586-80b7-6cf265063d12' WHERE `accounts`.`id` = x'fd93782763cc458680b76cf265063d12'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fd93782763cc458680b76cf265063d12', x'7b0f79704bf34ddaa7cd545119ec0266', x'4ecdd7fd9948453392fbd92a883902e3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7b0f79704bf34ddaa7cd545119ec0266') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b0f79704bf34ddaa7cd545119ec0266' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b0f79704bf34ddaa7cd545119ec0266', x'e1d5368572774e82912bd49c5a6039e4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7b0f79704bf34ddaa7cd545119ec0266') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b0f79704bf34ddaa7cd545119ec0266' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b0f79704bf34ddaa7cd545119ec0266', x'1e636f087f5945e29b5aaa3d6ed6b59b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4ecdd7fd9948453392fbd92a883902e3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4ecdd7fd9948453392fbd92a883902e3' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4ecdd7fd9948453392fbd92a883902e3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c5aea7797c84391b15ad101531a2c3d' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4c5aea7797c84391b15ad101531a2c3d', x'39e628f2a9f94dbb9f4437299e892bd7', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c5aea7797c84391b15ad101531a2c3d' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"4C5AEA7797C84391B15AD101531A2C3D", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4ecdd7fd9948453392fbd92a883902e3' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c5aea7797c84391b15ad101531a2c3d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4c5aea77-97c8-4391-b15a-d101531a2c3d_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4ecdd7fd9948453392fbd92a883902e3' AND `account_users`.`account_id` = x'4c5aea7797c84391b15ad101531a2c3d' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'79e1c0f98274410fb653ab239d161731' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'79e1c0f98274410fb653ab239d161731' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4ecdd7fd9948453392fbd92a883902e3' AND `accounts`.`id` = x'4c5aea7797c84391b15ad101531a2c3d' LIMIT 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c5aea7797c84391b15ad101531a2c3d' AND `account_domains`.`id` = x'33383136323833373631323338373136' LIMIT 1 Redirected to http://test.host/settings/account/4C5AEA7797C84391B15AD101531A2C3D/domains Completed 302 Found in 11ms (ActiveRecord: 1.8ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$hbfVCYMohwW/ZBlfE4W/JuosYlnHELMiAd5Jn4CCVSJRVpbHwRtbK', NULL, x'8b86d795631a4f169ea8506f323e9afc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8b86d795631a4f169ea8506f323e9afc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'5fded7119345431c96bf676a242aca17', '235b63697168d97c1194c0d75bd23593', x'8b86d795631a4f169ea8506f323e9afc', 'User', '2012-12-31 12:17:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8b86d795631a4f169ea8506f323e9afc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'f5bda3ec0fa04c2384e303912f3554cb', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accountf5bda3ec-0fa0-4c23-84e3-03912f3554cb' WHERE `accounts`.`id` = x'f5bda3ec0fa04c2384e303912f3554cb' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f5bda3ec0fa04c2384e303912f3554cb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f5bda3ec0fa04c2384e303912f3554cb', x'872a897bc33548a5bbc9652f0a34cdb8', x'8b86d795631a4f169ea8506f323e9afc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'872a897bc33548a5bbc9652f0a34cdb8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'872a897bc33548a5bbc9652f0a34cdb8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'872a897bc33548a5bbc9652f0a34cdb8', x'36344abb43fb4c2d861b25ffb43f5237', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'872a897bc33548a5bbc9652f0a34cdb8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'872a897bc33548a5bbc9652f0a34cdb8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'872a897bc33548a5bbc9652f0a34cdb8', x'2333570067cb46c29b833197e87fdc93', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18247da3e6_82580435d48341d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'bce9d3c9ff48490192084f35646ae430', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accountbce9d3c9-ff48-4901-9208-4f35646ae430' WHERE `accounts`.`id` = x'bce9d3c9ff48490192084f35646ae430'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bce9d3c9ff48490192084f35646ae430', x'bbd8548e71fa4b3c9cceccd3bbcd4234', x'8b86d795631a4f169ea8506f323e9afc') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bbd8548e71fa4b3c9cceccd3bbcd4234') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbd8548e71fa4b3c9cceccd3bbcd4234' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbd8548e71fa4b3c9cceccd3bbcd4234', x'59c99da5388b49e699665f0bd6399a55', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bbd8548e71fa4b3c9cceccd3bbcd4234') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbd8548e71fa4b3c9cceccd3bbcd4234' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbd8548e71fa4b3c9cceccd3bbcd4234', x'e8c16c1d19324e8b99eb65d8010d590c', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8b86d795631a4f169ea8506f323e9afc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8b86d795631a4f169ea8506f323e9afc' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8b86d795631a4f169ea8506f323e9afc' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f5bda3ec0fa04c2384e303912f3554cb' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f5bda3ec0fa04c2384e303912f3554cb', x'9495c8b6804542e4a8a86297f7d68aed', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f5bda3ec0fa04c2384e303912f3554cb' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"F5BDA3EC0FA04C2384E303912F3554CB", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8b86d795631a4f169ea8506f323e9afc' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f5bda3ec0fa04c2384e303912f3554cb' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f5bda3ec-0fa0-4c23-84e3-03912f3554cb_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8b86d795631a4f169ea8506f323e9afc' AND `account_users`.`account_id` = x'f5bda3ec0fa04c2384e303912f3554cb' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'872a897bc33548a5bbc9652f0a34cdb8' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'872a897bc33548a5bbc9652f0a34cdb8' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8b86d795631a4f169ea8506f323e9afc' AND `accounts`.`id` = x'f5bda3ec0fa04c2384e303912f3554cb' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f5bda3ec0fa04c2384e303912f3554cb' AND `account_domains`.`id` = x'33383136323833373631323338373136' LIMIT 1 Redirected to http://test.host/settings/account/F5BDA3EC0FA04C2384E303912F3554CB/domains Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:11', 'teste@teste.com', '$2a$04$gEbivEWdOToCQKLFlaHNBOYMBXOSPq3wDSxu.u7qJjYP.K.QJlE9K', NULL, x'45b00d9e71c645e7b07199354518a811', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'45b00d9e71c645e7b07199354518a811' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:11', 'User', x'34bc3b74832f4ef393bb27763bf5dd42', '49ec055692b3dcd464f28535c5126139', x'45b00d9e71c645e7b07199354518a811', 'User', '2012-12-31 12:17:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'45b00d9e71c645e7b07199354518a811' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'8682c95394534fa88590d87d4700e78e', NULL, NULL, NULL, '2012-12-31 12:17:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'account8682c953-9453-4fa8-8590-d87d4700e78e' WHERE `accounts`.`id` = x'8682c95394534fa88590d87d4700e78e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8682c95394534fa88590d87d4700e78e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8682c95394534fa88590d87d4700e78e', x'd079110908c74894b07495b3e8911e45', x'45b00d9e71c645e7b07199354518a811') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd079110908c74894b07495b3e8911e45') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd079110908c74894b07495b3e8911e45' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd079110908c74894b07495b3e8911e45', x'6555c5b126db4787b21b3f2ac507b5fa', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd079110908c74894b07495b3e8911e45') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd079110908c74894b07495b3e8911e45' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd079110908c74894b07495b3e8911e45', x'd4aad2399d4c40ba9ada3e3f702f6015', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18247f0f27_82580435d48342a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:11', x'e2f1a02f1f954c70ba2620eec464ed0b', 'jabanilson', NULL, 1, '2012-12-31 12:17:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:11', `updated_at` = '2012-12-31 12:17:11', `subdomain` = 'accounte2f1a02f-1f95-4c70-ba26-20eec464ed0b' WHERE `accounts`.`id` = x'e2f1a02f1f954c70ba2620eec464ed0b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e2f1a02f1f954c70ba2620eec464ed0b', x'91645532cef340a5ada005d76c68e5c9', x'45b00d9e71c645e7b07199354518a811') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'91645532cef340a5ada005d76c68e5c9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91645532cef340a5ada005d76c68e5c9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91645532cef340a5ada005d76c68e5c9', x'0fb16b38f0394befb618b37d75175c9e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'91645532cef340a5ada005d76c68e5c9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91645532cef340a5ada005d76c68e5c9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91645532cef340a5ada005d76c68e5c9', x'7759364d866049348d48533e4ee4f787', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45b00d9e71c645e7b07199354518a811' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45b00d9e71c645e7b07199354518a811' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45b00d9e71c645e7b07199354518a811' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e2f1a02f1f954c70ba2620eec464ed0b' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e2f1a02f1f954c70ba2620eec464ed0b', x'52f3dd1a0a2a4e0fbf3903ddeeb0e3fd', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'e2f1a02f1f954c70ba2620eec464ed0b' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"E2F1A02F1F954C70BA2620EEC464ED0B", "domain_id"=>"52F3DD1A0A2A4E0FBF3903DDEEB0E3FD"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'45b00d9e71c645e7b07199354518a811' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e2f1a02f1f954c70ba2620eec464ed0b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e2f1a02f-1f95-4c70-ba26-20eec464ed0b_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45b00d9e71c645e7b07199354518a811' AND `accounts`.`id` = x'e2f1a02f1f954c70ba2620eec464ed0b' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'e2f1a02f1f954c70ba2620eec464ed0b' AND `account_domains`.`id` = x'52f3dd1a0a2a4e0fbf3903ddeeb0e3fd' LIMIT 1 Completed 200 OK in 22ms (Views: 14.8ms | ActiveRecord: 1.5ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:12', 'teste@teste.com', '$2a$04$Emtu2xjMQH0v9xdpTyjpAO/Y08YLDTCoIHs2ufwtuIlxyDTszoij2', NULL, x'f4a484b02dd345398f2e935a90bc67fb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f4a484b02dd345398f2e935a90bc67fb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:12', 'User', x'4d6b424ffac5454f90ccf32ceea6a4f2', '1c248947e1be30176fe3932b18bb8d37', x'f4a484b02dd345398f2e935a90bc67fb', 'User', '2012-12-31 12:17:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f4a484b02dd345398f2e935a90bc67fb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'ec9ee04563f84a60af45ad6d3714a804', NULL, NULL, NULL, '2012-12-31 12:17:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'accountec9ee045-63f8-4a60-af45-ad6d3714a804' WHERE `accounts`.`id` = x'ec9ee04563f84a60af45ad6d3714a804' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ec9ee04563f84a60af45ad6d3714a804' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ec9ee04563f84a60af45ad6d3714a804', x'a6a2c0549ec94c7899ce39450d0e8e06', x'f4a484b02dd345398f2e935a90bc67fb') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a6a2c0549ec94c7899ce39450d0e8e06') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a6a2c0549ec94c7899ce39450d0e8e06' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a6a2c0549ec94c7899ce39450d0e8e06', x'16b76d42fb5242569f2393957fd23fc6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a6a2c0549ec94c7899ce39450d0e8e06') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a6a2c0549ec94c7899ce39450d0e8e06' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a6a2c0549ec94c7899ce39450d0e8e06', x'ae238b567af54490b4f76fbd1916af3e', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824828f59_82580435d48343af@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'86001bebd56c47c3b3001571ff485453', 'jabanilson', NULL, 1, '2012-12-31 12:17:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'account86001beb-d56c-47c3-b300-1571ff485453' WHERE `accounts`.`id` = x'86001bebd56c47c3b3001571ff485453'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'86001bebd56c47c3b3001571ff485453', x'7609d722623a48b690ff1f83ff9ec3af', x'f4a484b02dd345398f2e935a90bc67fb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7609d722623a48b690ff1f83ff9ec3af') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7609d722623a48b690ff1f83ff9ec3af' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7609d722623a48b690ff1f83ff9ec3af', x'1719d1632749429591218302f2a9ea70', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7609d722623a48b690ff1f83ff9ec3af') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7609d722623a48b690ff1f83ff9ec3af' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7609d722623a48b690ff1f83ff9ec3af', x'fc8e09ebf4dc42b1b03cca31beac2bcf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4a484b02dd345398f2e935a90bc67fb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4a484b02dd345398f2e935a90bc67fb' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4a484b02dd345398f2e935a90bc67fb' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'86001bebd56c47c3b3001571ff485453' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'86001bebd56c47c3b3001571ff485453', x'73671257428643348a0bedb9a4191c23', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'86001bebd56c47c3b3001571ff485453' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"86001BEBD56C47C3B3001571FF485453", "domain_id"=>"1209371923812238"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f4a484b02dd345398f2e935a90bc67fb' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'86001bebd56c47c3b3001571ff485453' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_86001beb-d56c-47c3-b300-1571ff485453_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4a484b02dd345398f2e935a90bc67fb' AND `accounts`.`id` = x'86001bebd56c47c3b3001571ff485453' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'86001bebd56c47c3b3001571ff485453' AND `account_domains`.`id` = x'31323039333731393233383132323338' LIMIT 1 Redirected to http://test.host/settings/account/86001BEBD56C47C3B3001571FF485453/domains Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:12', 'teste@teste.com', '$2a$04$0zmM6Z4OEFh5WANEQQlrQ.f1R8k1oH9e6echkmPY9W/Mu.bneGU7C', NULL, x'62d24483d9444524846da4f94e803e65', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'62d24483d9444524846da4f94e803e65' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:12', 'User', x'08b818d0808e4708992f6f2e27d7ea3a', 'e3fa63c68577411bbe899d13364eacff', x'62d24483d9444524846da4f94e803e65', 'User', '2012-12-31 12:17:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'62d24483d9444524846da4f94e803e65' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'f21a02d0e3184deea17a7d9ba8362024', NULL, NULL, NULL, '2012-12-31 12:17:12')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'accountf21a02d0-e318-4dee-a17a-7d9ba8362024' WHERE `accounts`.`id` = x'f21a02d0e3184deea17a7d9ba8362024' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f21a02d0e3184deea17a7d9ba8362024' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f21a02d0e3184deea17a7d9ba8362024', x'5068759efb974456961d39940ddfc218', x'62d24483d9444524846da4f94e803e65') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5068759efb974456961d39940ddfc218') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5068759efb974456961d39940ddfc218' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5068759efb974456961d39940ddfc218', x'9fd250b69a1d442892c3326282bac02f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5068759efb974456961d39940ddfc218') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5068759efb974456961d39940ddfc218' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5068759efb974456961d39940ddfc218', x'75b68e27bd9f4557bc647f95869e125f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182483db45_82580435d48344dd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'849cbfe3b8d945fc89405023609b2d4e', 'jabanilson', NULL, 1, '2012-12-31 12:17:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'account849cbfe3-b8d9-45fc-8940-5023609b2d4e' WHERE `accounts`.`id` = x'849cbfe3b8d945fc89405023609b2d4e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'849cbfe3b8d945fc89405023609b2d4e', x'bd5d52f8d5764dd38a077822b0b3c398', x'62d24483d9444524846da4f94e803e65') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bd5d52f8d5764dd38a077822b0b3c398') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd5d52f8d5764dd38a077822b0b3c398' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd5d52f8d5764dd38a077822b0b3c398', x'2036c24106684fc9a2dabc903fdfffd9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bd5d52f8d5764dd38a077822b0b3c398') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd5d52f8d5764dd38a077822b0b3c398' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd5d52f8d5764dd38a077822b0b3c398', x'2e519c112dab4e42a67517b50104cb87', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62d24483d9444524846da4f94e803e65' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62d24483d9444524846da4f94e803e65' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62d24483d9444524846da4f94e803e65' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f21a02d0e3184deea17a7d9ba8362024' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f21a02d0e3184deea17a7d9ba8362024', x'4f97965d20844b20bc1acd2698310046', NULL, 'instructions.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f21a02d0e3184deea17a7d9ba8362024' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"F21A02D0E3184DEEA17A7D9BA8362024", "domain_id"=>"1209371923812238"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'62d24483d9444524846da4f94e803e65' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f21a02d0e3184deea17a7d9ba8362024' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f21a02d0-e318-4dee-a17a-7d9ba8362024_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62d24483d9444524846da4f94e803e65' AND `accounts`.`id` = x'f21a02d0e3184deea17a7d9ba8362024' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f21a02d0e3184deea17a7d9ba8362024' AND `account_domains`.`id` = x'31323039333731393233383132323338' LIMIT 1 Redirected to http://test.host/settings/account/F21A02D0E3184DEEA17A7D9BA8362024/domains Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:12', 'teste@teste.com', '$2a$04$RX2V6IeABbFFCIcLsh87AOJx6C0PiDJB/5vsGAtQm3wQsZQ4DSj/S', NULL, x'e68ddee4cb4a48dc9373859c290a754d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e68ddee4cb4a48dc9373859c290a754d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:12', 'User', x'10058466c41f43bb95916e7005082fe0', 'cf9cbc6a002044b0716df9f51a73187e', x'e68ddee4cb4a48dc9373859c290a754d', 'User', '2012-12-31 12:17:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e68ddee4cb4a48dc9373859c290a754d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'8753fd7b642b45ffa992597cb5efc1fb', NULL, NULL, NULL, '2012-12-31 12:17:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'account8753fd7b-642b-45ff-a992-597cb5efc1fb' WHERE `accounts`.`id` = x'8753fd7b642b45ffa992597cb5efc1fb' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8753fd7b642b45ffa992597cb5efc1fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8753fd7b642b45ffa992597cb5efc1fb', x'2e52f35fbfa346e09bb6c4596338c1c5', x'e68ddee4cb4a48dc9373859c290a754d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2e52f35fbfa346e09bb6c4596338c1c5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2e52f35fbfa346e09bb6c4596338c1c5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2e52f35fbfa346e09bb6c4596338c1c5', x'fe0c68bf1f44429fac16b3d11c4f70ae', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2e52f35fbfa346e09bb6c4596338c1c5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2e52f35fbfa346e09bb6c4596338c1c5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2e52f35fbfa346e09bb6c4596338c1c5', x'f64c5a45ff5d4554aa4fe7cbcfa8c3e7', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824852f64_82580435d48345a7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'e1295c8fe19443d5be3504fd2a5f0904', 'jabanilson', NULL, 1, '2012-12-31 12:17:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'accounte1295c8f-e194-43d5-be35-04fd2a5f0904' WHERE `accounts`.`id` = x'e1295c8fe19443d5be3504fd2a5f0904'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e1295c8fe19443d5be3504fd2a5f0904', x'68f8bd490cb043d9902b57631e5fe86f', x'e68ddee4cb4a48dc9373859c290a754d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'68f8bd490cb043d9902b57631e5fe86f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'68f8bd490cb043d9902b57631e5fe86f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'68f8bd490cb043d9902b57631e5fe86f', x'be35cc1a978e49e98a26a82db0866654', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'68f8bd490cb043d9902b57631e5fe86f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'68f8bd490cb043d9902b57631e5fe86f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'68f8bd490cb043d9902b57631e5fe86f', x'3aaedd3e417141a4a09d0aef5ff95c9f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e68ddee4cb4a48dc9373859c290a754d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e68ddee4cb4a48dc9373859c290a754d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e68ddee4cb4a48dc9373859c290a754d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8753fd7b642b45ffa992597cb5efc1fb' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8753fd7b642b45ffa992597cb5efc1fb', x'afe87aaea5d84a569029c33346ef0808', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8753fd7b642b45ffa992597cb5efc1fb' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"8753FD7B642B45FFA992597CB5EFC1FB", "domain_id"=>"AFE87AAEA5D84A569029C33346EF0808"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e68ddee4cb4a48dc9373859c290a754d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8753fd7b642b45ffa992597cb5efc1fb' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8753fd7b-642b-45ff-a992-597cb5efc1fb_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e68ddee4cb4a48dc9373859c290a754d' AND `account_users`.`account_id` = x'8753fd7b642b45ffa992597cb5efc1fb' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2e52f35fbfa346e09bb6c4596338c1c5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2e52f35fbfa346e09bb6c4596338c1c5' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e68ddee4cb4a48dc9373859c290a754d' AND `accounts`.`id` = x'8753fd7b642b45ffa992597cb5efc1fb' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8753fd7b642b45ffa992597cb5efc1fb' AND `account_domains`.`id` = x'afe87aaea5d84a569029c33346ef0808' LIMIT 1 Redirected to http://test.host/settings/account/8753FD7B642B45FFA992597CB5EFC1FB/domains Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:12', 'teste@teste.com', '$2a$04$abgNqWRjVqicBkq/R/bVTeBTLgSRnHm.tScfNIHfpunJ57GMG3eGC', NULL, x'28745ba68d8242d6b6505535a3d1a75e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'28745ba68d8242d6b6505535a3d1a75e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:12', 'User', x'1be2a26cb09c40daaec531c23256ff3c', 'ed4d726d2fe9ea85a2363fe360817d24', x'28745ba68d8242d6b6505535a3d1a75e', 'User', '2012-12-31 12:17:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'28745ba68d8242d6b6505535a3d1a75e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'a952362869804fcebb6050306b914d7b', NULL, NULL, NULL, '2012-12-31 12:17:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'accounta9523628-6980-4fce-bb60-50306b914d7b' WHERE `accounts`.`id` = x'a952362869804fcebb6050306b914d7b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a952362869804fcebb6050306b914d7b' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a952362869804fcebb6050306b914d7b', x'b1310641a3104771a23d12238d9c5021', x'28745ba68d8242d6b6505535a3d1a75e') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b1310641a3104771a23d12238d9c5021') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1310641a3104771a23d12238d9c5021' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1310641a3104771a23d12238d9c5021', x'e177f89ace2c4b1c88427f427008b6d7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b1310641a3104771a23d12238d9c5021') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1310641a3104771a23d12238d9c5021' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1310641a3104771a23d12238d9c5021', x'ec522b5f6cc4428f87fa598e3e367526', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182487d1a5_82580435d4834687@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'868b92b3adab40fdbc5c58607f8c963a', 'jabanilson', NULL, 1, '2012-12-31 12:17:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'account868b92b3-adab-40fd-bc5c-58607f8c963a' WHERE `accounts`.`id` = x'868b92b3adab40fdbc5c58607f8c963a'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'868b92b3adab40fdbc5c58607f8c963a', x'19e992fab02646b384db840c0fd49f71', x'28745ba68d8242d6b6505535a3d1a75e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'19e992fab02646b384db840c0fd49f71') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19e992fab02646b384db840c0fd49f71' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19e992fab02646b384db840c0fd49f71', x'191370220caa43c49d75b6b3e239be76', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'19e992fab02646b384db840c0fd49f71') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19e992fab02646b384db840c0fd49f71' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19e992fab02646b384db840c0fd49f71', x'a57f501b7454476da7ab85a6803e6ed8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'28745ba68d8242d6b6505535a3d1a75e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'28745ba68d8242d6b6505535a3d1a75e' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'28745ba68d8242d6b6505535a3d1a75e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'868b92b3adab40fdbc5c58607f8c963a' AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'868b92b3adab40fdbc5c58607f8c963a', x'0dac9f08ced84f91aecc3b7263630510', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'868b92b3adab40fdbc5c58607f8c963a' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"868B92B3ADAB40FDBC5C58607F8C963A", "domain_id"=>"0DAC9F08CED84F91AECC3B7263630510"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'28745ba68d8242d6b6505535a3d1a75e' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'868b92b3adab40fdbc5c58607f8c963a' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_868b92b3-adab-40fd-bc5c-58607f8c963a_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'28745ba68d8242d6b6505535a3d1a75e' AND `account_users`.`account_id` = x'868b92b3adab40fdbc5c58607f8c963a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'19e992fab02646b384db840c0fd49f71' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'19e992fab02646b384db840c0fd49f71' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'28745ba68d8242d6b6505535a3d1a75e' AND `accounts`.`id` = x'868b92b3adab40fdbc5c58607f8c963a' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'868b92b3adab40fdbc5c58607f8c963a' AND `account_domains`.`id` = x'0dac9f08ced84f91aecc3b7263630510' LIMIT 1 Redirected to http://test.host/settings/account/868B92B3ADAB40FDBC5C58607F8C963A/domains Completed 302 Found in 12ms (ActiveRecord: 2.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:12', 'teste@teste.com', '$2a$04$90gpzPXlmlmrhymKUPtuMeZYJN.g6zUZursgx7wDZE4fUOmUnPcyu', NULL, x'fa7a8e4c0fbd432a82e7070a05fbd203', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fa7a8e4c0fbd432a82e7070a05fbd203' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:12', 'User', x'4b4ed9227a8c4e35b44971e835ad515a', '51932cd38031276a81e6521d5e297f96', x'fa7a8e4c0fbd432a82e7070a05fbd203', 'User', '2012-12-31 12:17:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fa7a8e4c0fbd432a82e7070a05fbd203' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'4972a9c79d8e48f2b079b908c0189f06', NULL, NULL, NULL, '2012-12-31 12:17:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'account4972a9c7-9d8e-48f2-b079-b908c0189f06' WHERE `accounts`.`id` = x'4972a9c79d8e48f2b079b908c0189f06' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4972a9c79d8e48f2b079b908c0189f06' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4972a9c79d8e48f2b079b908c0189f06', x'b026bbdcac0f417aaa765b8257de71e0', x'fa7a8e4c0fbd432a82e7070a05fbd203') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b026bbdcac0f417aaa765b8257de71e0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b026bbdcac0f417aaa765b8257de71e0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b026bbdcac0f417aaa765b8257de71e0', x'adda98740cbd495797a135f7558b4860', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b026bbdcac0f417aaa765b8257de71e0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b026bbdcac0f417aaa765b8257de71e0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b026bbdcac0f417aaa765b8257de71e0', x'b4b4391de61e4ae5be6ec1692814c6b5', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824893f5b_82580435d483473@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'86b0cb42a0e749c7b5ee19fe6074a003', 'jabanilson', NULL, 1, '2012-12-31 12:17:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'account86b0cb42-a0e7-49c7-b5ee-19fe6074a003' WHERE `accounts`.`id` = x'86b0cb42a0e749c7b5ee19fe6074a003'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'86b0cb42a0e749c7b5ee19fe6074a003', x'61ec220136284fd2bd430e80baa0c199', x'fa7a8e4c0fbd432a82e7070a05fbd203') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'61ec220136284fd2bd430e80baa0c199') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61ec220136284fd2bd430e80baa0c199' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61ec220136284fd2bd430e80baa0c199', x'399a0b8d3ef34c268411ff0cb57c7937', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'61ec220136284fd2bd430e80baa0c199') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61ec220136284fd2bd430e80baa0c199' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61ec220136284fd2bd430e80baa0c199', x'3adf87a9212540c89f4a4f3a6843bd07', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa7a8e4c0fbd432a82e7070a05fbd203' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa7a8e4c0fbd432a82e7070a05fbd203' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa7a8e4c0fbd432a82e7070a05fbd203' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'86b0cb42a0e749c7b5ee19fe6074a003' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'86b0cb42a0e749c7b5ee19fe6074a003', x'5ec2fba231184abd8b238ed9dd5cbec5', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'86b0cb42a0e749c7b5ee19fe6074a003' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"86B0CB42A0E749C7B5EE19FE6074A003", "domain_id"=>"5EC2FBA231184ABD8B238ED9DD5CBEC5"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fa7a8e4c0fbd432a82e7070a05fbd203' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'86b0cb42a0e749c7b5ee19fe6074a003' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_86b0cb42-a0e7-49c7-b5ee-19fe6074a003_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'fa7a8e4c0fbd432a82e7070a05fbd203' AND `account_users`.`account_id` = x'86b0cb42a0e749c7b5ee19fe6074a003' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'61ec220136284fd2bd430e80baa0c199' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'61ec220136284fd2bd430e80baa0c199' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa7a8e4c0fbd432a82e7070a05fbd203' AND `accounts`.`id` = x'86b0cb42a0e749c7b5ee19fe6074a003' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'86b0cb42a0e749c7b5ee19fe6074a003' AND `account_domains`.`id` = x'5ec2fba231184abd8b238ed9dd5cbec5' LIMIT 1 Redirected to http://test.host/settings/account/86B0CB42A0E749C7B5EE19FE6074A003/domain/5EC2FBA231184ABD8B238ED9DD5CBEC5 Completed 302 Found in 13ms (ActiveRecord: 2.1ms)  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:12', 'teste@teste.com', '$2a$04$CA6Oq7U/5eRSY/XB81Wx7erxe5.Wwz0iaz2bwVNQ8jfxWDrQ5HTNy', NULL, x'41f24db8087e431a9b30af196298af17', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'41f24db8087e431a9b30af196298af17' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:12', 'User', x'801d9b1ac62e4e0a87ed80869eaf469c', 'af1b25ad7b9edad8b2b6f6affae6176a', x'41f24db8087e431a9b30af196298af17', 'User', '2012-12-31 12:17:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'41f24db8087e431a9b30af196298af17' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'190ce4abf7ab4ccb95db498f3cf485e9', NULL, NULL, NULL, '2012-12-31 12:17:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'account190ce4ab-f7ab-4ccb-95db-498f3cf485e9' WHERE `accounts`.`id` = x'190ce4abf7ab4ccb95db498f3cf485e9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'190ce4abf7ab4ccb95db498f3cf485e9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'190ce4abf7ab4ccb95db498f3cf485e9', x'ce5b29b1c6ab4144a13032ae44faf758', x'41f24db8087e431a9b30af196298af17') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ce5b29b1c6ab4144a13032ae44faf758') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce5b29b1c6ab4144a13032ae44faf758' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce5b29b1c6ab4144a13032ae44faf758', x'6dcc20b78d954fd9b83f97c7cfe376d1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ce5b29b1c6ab4144a13032ae44faf758') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce5b29b1c6ab4144a13032ae44faf758' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce5b29b1c6ab4144a13032ae44faf758', x'1fc9bfafc4e44e83a59270ca80f5d4dc', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18248abb64_82580435d4834859@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'ccc23203e12a475d8a8de8e074514933', 'jabanilson', NULL, 1, '2012-12-31 12:17:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'accountccc23203-e12a-475d-8a8d-e8e074514933' WHERE `accounts`.`id` = x'ccc23203e12a475d8a8de8e074514933'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ccc23203e12a475d8a8de8e074514933', x'f7998e67f49c4acf83cc2e6b19199eec', x'41f24db8087e431a9b30af196298af17') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f7998e67f49c4acf83cc2e6b19199eec') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7998e67f49c4acf83cc2e6b19199eec' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7998e67f49c4acf83cc2e6b19199eec', x'737a8c0eb7bc461e94640ef33b2ccb90', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f7998e67f49c4acf83cc2e6b19199eec') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7998e67f49c4acf83cc2e6b19199eec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7998e67f49c4acf83cc2e6b19199eec', x'c5f9bdb2d72e4f0daaa856f45c9926f1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41f24db8087e431a9b30af196298af17' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41f24db8087e431a9b30af196298af17' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41f24db8087e431a9b30af196298af17' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'190ce4abf7ab4ccb95db498f3cf485e9' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'190ce4abf7ab4ccb95db498f3cf485e9', x'12202534c6a2437c9923d8cabcfe1570', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'190ce4abf7ab4ccb95db498f3cf485e9' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"190CE4ABF7AB4CCB95DB498F3CF485E9", "domain_id"=>"12202534C6A2437C9923D8CABCFE1570"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'41f24db8087e431a9b30af196298af17' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'190ce4abf7ab4ccb95db498f3cf485e9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_190ce4ab-f7ab-4ccb-95db-498f3cf485e9_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'41f24db8087e431a9b30af196298af17' AND `account_users`.`account_id` = x'190ce4abf7ab4ccb95db498f3cf485e9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5b29b1c6ab4144a13032ae44faf758' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5b29b1c6ab4144a13032ae44faf758' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41f24db8087e431a9b30af196298af17' AND `accounts`.`id` = x'190ce4abf7ab4ccb95db498f3cf485e9' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'190ce4abf7ab4ccb95db498f3cf485e9' AND `account_domains`.`id` = x'12202534c6a2437c9923d8cabcfe1570' LIMIT 1 Redirected to http://test.host/settings/account/190CE4ABF7AB4CCB95DB498F3CF485E9/domain/12202534C6A2437C9923D8CABCFE1570 Completed 302 Found in 14ms (ActiveRecord: 2.1ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:12', 'teste@teste.com', '$2a$04$ZtGS.A2dHFbw6qhcl/D9B.Apb9aBQDrUYEb3xspcKYVkmvLo0YQGK', NULL, x'f5902b41086346a1ae113e4a939c5068', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f5902b41086346a1ae113e4a939c5068' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:12', 'User', x'dd8e837b81694513aad0c1aaeb597276', 'aa0e5f6dad37aee636cd27d63d26705b', x'f5902b41086346a1ae113e4a939c5068', 'User', '2012-12-31 12:17:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f5902b41086346a1ae113e4a939c5068' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'e244669d83ac40919c757b7110c90358', NULL, NULL, NULL, '2012-12-31 12:17:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'accounte244669d-83ac-4091-9c75-7b7110c90358' WHERE `accounts`.`id` = x'e244669d83ac40919c757b7110c90358' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e244669d83ac40919c757b7110c90358' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e244669d83ac40919c757b7110c90358', x'eef78c620c6d4e96b4cae9aa6f679323', x'f5902b41086346a1ae113e4a939c5068') AccountRole Exists (104.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eef78c620c6d4e96b4cae9aa6f679323') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eef78c620c6d4e96b4cae9aa6f679323' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eef78c620c6d4e96b4cae9aa6f679323', x'088d63b6012848ef9c0866718eba8823', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eef78c620c6d4e96b4cae9aa6f679323') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eef78c620c6d4e96b4cae9aa6f679323' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eef78c620c6d4e96b4cae9aa6f679323', x'0b427d9498b049ae9bea8acd47db51e9', 'admin') Sent mail to teste@teste.com (11ms) Date: Mon, 31 Dec 2012 10:17:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18248e0328_82580435d48349c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'2e16fe66302547a6a4faf92974c43e72', 'jabanilson', NULL, 1, '2012-12-31 12:17:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'account2e16fe66-3025-47a6-a4fa-f92974c43e72' WHERE `accounts`.`id` = x'2e16fe66302547a6a4faf92974c43e72'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2e16fe66302547a6a4faf92974c43e72', x'44b935b6e5a3439bab107397ac4bee21', x'f5902b41086346a1ae113e4a939c5068') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'44b935b6e5a3439bab107397ac4bee21') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44b935b6e5a3439bab107397ac4bee21' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44b935b6e5a3439bab107397ac4bee21', x'b83ae0e073514a24acbd814e971db08b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'44b935b6e5a3439bab107397ac4bee21') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44b935b6e5a3439bab107397ac4bee21' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44b935b6e5a3439bab107397ac4bee21', x'8e8fe9f2bb004052ba64894a2bbda779', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f5902b41086346a1ae113e4a939c5068' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f5902b41086346a1ae113e4a939c5068' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f5902b41086346a1ae113e4a939c5068' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2e16fe66302547a6a4faf92974c43e72' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2e16fe66302547a6a4faf92974c43e72', x'30d248d412804e498680f5ca50cf8e88', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'2e16fe66302547a6a4faf92974c43e72' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"2E16FE66302547A6A4FAF92974C43E72", "domain_id"=>"1231241241231241231234"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f5902b41086346a1ae113e4a939c5068' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2e16fe66302547a6a4faf92974c43e72' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2e16fe66-3025-47a6-a4fa-f92974c43e72_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f5902b41086346a1ae113e4a939c5068' AND `account_users`.`account_id` = x'2e16fe66302547a6a4faf92974c43e72' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'44b935b6e5a3439bab107397ac4bee21' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'44b935b6e5a3439bab107397ac4bee21' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f5902b41086346a1ae113e4a939c5068' AND `accounts`.`id` = x'2e16fe66302547a6a4faf92974c43e72' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'2e16fe66302547a6a4faf92974c43e72' AND `account_domains`.`id` = x'31323431323331323431323331323334' LIMIT 1 Redirected to http://test.host/settings/account/2E16FE66302547A6A4FAF92974C43E72/domains Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:12', 'teste@teste.com', '$2a$04$VWjDrirmAamgQ01lgT/ZpOEDFMzvVGr0LDeOeexMVoYhwlc9RxBg2', NULL, x'8a52924b8ef64adebbb6dbb6e9a4fa5b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8a52924b8ef64adebbb6dbb6e9a4fa5b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:12', 'User', x'03eefeb59fc941329df86d7f12cbc398', '2f5f25f68e8f278b5b2872d53d8e2c3e', x'8a52924b8ef64adebbb6dbb6e9a4fa5b', 'User', '2012-12-31 12:17:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8a52924b8ef64adebbb6dbb6e9a4fa5b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:12', x'b44138b322be400d83d7028ec4f4c7fc', NULL, NULL, NULL, '2012-12-31 12:17:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:12', `updated_at` = '2012-12-31 12:17:12', `subdomain` = 'accountb44138b3-22be-400d-83d7-028ec4f4c7fc' WHERE `accounts`.`id` = x'b44138b322be400d83d7028ec4f4c7fc' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b44138b322be400d83d7028ec4f4c7fc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b44138b322be400d83d7028ec4f4c7fc', x'791db48c0dda463686d5c60e6e63ee5b', x'8a52924b8ef64adebbb6dbb6e9a4fa5b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'791db48c0dda463686d5c60e6e63ee5b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'791db48c0dda463686d5c60e6e63ee5b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'791db48c0dda463686d5c60e6e63ee5b', x'2818808083c44cc6b6d9e01a7532b79b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'791db48c0dda463686d5c60e6e63ee5b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'791db48c0dda463686d5c60e6e63ee5b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'791db48c0dda463686d5c60e6e63ee5b', x'e2194ae242834f528b76c5a065e45215', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182496375_82580435d48350ab@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'ab3e38504c7e4d6c98c27cc10d7a3141', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'accountab3e3850-4c7e-4d6c-98c2-7cc10d7a3141' WHERE `accounts`.`id` = x'ab3e38504c7e4d6c98c27cc10d7a3141'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ab3e38504c7e4d6c98c27cc10d7a3141', x'cf522360678e44059869005eb411097d', x'8a52924b8ef64adebbb6dbb6e9a4fa5b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cf522360678e44059869005eb411097d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf522360678e44059869005eb411097d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf522360678e44059869005eb411097d', x'ff131fe1de46467487cf784867284d81', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cf522360678e44059869005eb411097d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf522360678e44059869005eb411097d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf522360678e44059869005eb411097d', x'17b493dc079d4dac8f7492c030818a77', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a52924b8ef64adebbb6dbb6e9a4fa5b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a52924b8ef64adebbb6dbb6e9a4fa5b' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a52924b8ef64adebbb6dbb6e9a4fa5b' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b44138b322be400d83d7028ec4f4c7fc' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b44138b322be400d83d7028ec4f4c7fc', x'63a5f64207b64d9082f9e814758abc4a', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b44138b322be400d83d7028ec4f4c7fc' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"B44138B322BE400D83D7028EC4F4C7FC", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8a52924b8ef64adebbb6dbb6e9a4fa5b' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b44138b322be400d83d7028ec4f4c7fc' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b44138b3-22be-400d-83d7-028ec4f4c7fc_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8a52924b8ef64adebbb6dbb6e9a4fa5b' AND `account_users`.`account_id` = x'b44138b322be400d83d7028ec4f4c7fc' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'791db48c0dda463686d5c60e6e63ee5b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'791db48c0dda463686d5c60e6e63ee5b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a52924b8ef64adebbb6dbb6e9a4fa5b' AND `accounts`.`id` = x'b44138b322be400d83d7028ec4f4c7fc' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b44138b322be400d83d7028ec4f4c7fc' AND `account_domains`.`id` = x'31323431323331323431323331323334' LIMIT 1 Redirected to http://test.host/settings/account/B44138B322BE400D83D7028EC4F4C7FC/domains Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$WBMT5CNFNyfXUCRgfDYmkelZ0WHNhM2rWfR0rzQqSFWs1viw/K/Ny', NULL, x'd0c03bb729694c9bbe626e0edc53131c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd0c03bb729694c9bbe626e0edc53131c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'a47e977ca1474a289a2a4e2efeb8d17f', '521074d82b6a6cc2a1b82f775bebacfb', x'd0c03bb729694c9bbe626e0edc53131c', 'User', '2012-12-31 12:17:13') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd0c03bb729694c9bbe626e0edc53131c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'743c58265d054dcdbd63929a0dcbde30', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account743c5826-5d05-4dcd-bd63-929a0dcbde30' WHERE `accounts`.`id` = x'743c58265d054dcdbd63929a0dcbde30' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'743c58265d054dcdbd63929a0dcbde30' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'743c58265d054dcdbd63929a0dcbde30', x'ed9bb705f729462b90dd83653dcdc7e4', x'd0c03bb729694c9bbe626e0edc53131c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ed9bb705f729462b90dd83653dcdc7e4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed9bb705f729462b90dd83653dcdc7e4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed9bb705f729462b90dd83653dcdc7e4', x'1f267add00e5453d9261ad5545e0523c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ed9bb705f729462b90dd83653dcdc7e4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed9bb705f729462b90dd83653dcdc7e4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed9bb705f729462b90dd83653dcdc7e4', x'489cd44cab7340b195f3287c97911663', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182491c48f_82580435d483517f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'517b67ef1d804305937753afee55c3da', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account517b67ef-1d80-4305-9377-53afee55c3da' WHERE `accounts`.`id` = x'517b67ef1d804305937753afee55c3da'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'517b67ef1d804305937753afee55c3da', x'5f6b2f6a25c44577a65a6252d2f11b1e', x'd0c03bb729694c9bbe626e0edc53131c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5f6b2f6a25c44577a65a6252d2f11b1e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f6b2f6a25c44577a65a6252d2f11b1e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f6b2f6a25c44577a65a6252d2f11b1e', x'00bddd0a409f46f9b0161354ddbbd379', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5f6b2f6a25c44577a65a6252d2f11b1e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f6b2f6a25c44577a65a6252d2f11b1e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f6b2f6a25c44577a65a6252d2f11b1e', x'f2d181d36efd44dea5fcc9cdaa8c9583', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c03bb729694c9bbe626e0edc53131c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c03bb729694c9bbe626e0edc53131c' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c03bb729694c9bbe626e0edc53131c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'517b67ef1d804305937753afee55c3da' AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'517b67ef1d804305937753afee55c3da', x'595bd0059e68431e914ca90ecd2e22ab', NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'517b67ef1d804305937753afee55c3da' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"517B67EF1D804305937753AFEE55C3DA", "domain_id"=>"595BD0059E68431E914CA90ECD2E22AB"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd0c03bb729694c9bbe626e0edc53131c' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'517b67ef1d804305937753afee55c3da' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_517b67ef-1d80-4305-9377-53afee55c3da_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd0c03bb729694c9bbe626e0edc53131c' AND `account_users`.`account_id` = x'517b67ef1d804305937753afee55c3da' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f6b2f6a25c44577a65a6252d2f11b1e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f6b2f6a25c44577a65a6252d2f11b1e' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c03bb729694c9bbe626e0edc53131c' AND `accounts`.`id` = x'517b67ef1d804305937753afee55c3da' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'517b67ef1d804305937753afee55c3da' AND `account_domains`.`id` = x'595bd0059e68431e914ca90ecd2e22ab' LIMIT 1 Redirected to http://test.host/settings/account/517B67EF1D804305937753AFEE55C3DA/domains Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$OYrROxC/1PbI9CQVwGPrKeOZqeT8w5oTomxev4/wWV4VDtwQMNqCa', NULL, x'7f41a14c83b444d38e0065fcb0f85f00', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7f41a14c83b444d38e0065fcb0f85f00' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'6f29de64a80849d88d822b7d95bc0aad', '42a61ae837c0abbc8156d637af964b69', x'7f41a14c83b444d38e0065fcb0f85f00', 'User', '2012-12-31 12:17:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7f41a14c83b444d38e0065fcb0f85f00' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'2b391f71b50e433f84753cdff1887ee8', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account2b391f71-b50e-433f-8475-3cdff1887ee8' WHERE `accounts`.`id` = x'2b391f71b50e433f84753cdff1887ee8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2b391f71b50e433f84753cdff1887ee8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2b391f71b50e433f84753cdff1887ee8', x'181826e239ff4e6f835a1a324f92f9a5', x'7f41a14c83b444d38e0065fcb0f85f00') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'181826e239ff4e6f835a1a324f92f9a5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'181826e239ff4e6f835a1a324f92f9a5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'181826e239ff4e6f835a1a324f92f9a5', x'db17ec7d0a694a74b426970af21c37fc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'181826e239ff4e6f835a1a324f92f9a5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'181826e239ff4e6f835a1a324f92f9a5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'181826e239ff4e6f835a1a324f92f9a5', x'db291d6798994a63b7167e757893fa96', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182493257e_82580435d48352f5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'ebd54675b33a45b6a829b667ea857a3e', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'accountebd54675-b33a-45b6-a829-b667ea857a3e' WHERE `accounts`.`id` = x'ebd54675b33a45b6a829b667ea857a3e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ebd54675b33a45b6a829b667ea857a3e', x'66cbae4700b0414398f1369891f65167', x'7f41a14c83b444d38e0065fcb0f85f00') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'66cbae4700b0414398f1369891f65167') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66cbae4700b0414398f1369891f65167' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66cbae4700b0414398f1369891f65167', x'6b7ff258d20d4172880a95a008daca6a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'66cbae4700b0414398f1369891f65167') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66cbae4700b0414398f1369891f65167' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66cbae4700b0414398f1369891f65167', x'46ad0245c95a49cabde06be9eba78eb4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f41a14c83b444d38e0065fcb0f85f00' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f41a14c83b444d38e0065fcb0f85f00' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f41a14c83b444d38e0065fcb0f85f00' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2b391f71b50e433f84753cdff1887ee8' AND `account_domains`.`url` = 'primary.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2b391f71b50e433f84753cdff1887ee8', x'58f2734288fe4f9589339d1724ed6a8c', NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'2b391f71b50e433f84753cdff1887ee8' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"2B391F71B50E433F84753CDFF1887EE8", "domain_id"=>"58F2734288FE4F9589339D1724ED6A8C"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7f41a14c83b444d38e0065fcb0f85f00' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2b391f71b50e433f84753cdff1887ee8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2b391f71-b50e-433f-8475-3cdff1887ee8_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7f41a14c83b444d38e0065fcb0f85f00' AND `account_users`.`account_id` = x'2b391f71b50e433f84753cdff1887ee8' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'181826e239ff4e6f835a1a324f92f9a5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'181826e239ff4e6f835a1a324f92f9a5' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f41a14c83b444d38e0065fcb0f85f00' AND `accounts`.`id` = x'2b391f71b50e433f84753cdff1887ee8' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'2b391f71b50e433f84753cdff1887ee8' AND `account_domains`.`id` = x'58f2734288fe4f9589339d1724ed6a8c' LIMIT 1 Redirected to http://test.host/settings/account/2B391F71B50E433F84753CDFF1887EE8/domains Completed 302 Found in 11ms (ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$a7/uRwQt6YJgnW.w.twfk.t8zokHWb90lEmsl/dWqA1zGNnImZryu', NULL, x'4263e1b39525422a8de4bfb034bff91b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4263e1b39525422a8de4bfb034bff91b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'a5b4d7c4bcb440d89bc87f98471443fd', 'fc210f5a454cd587649edf2d4b6d7376', x'4263e1b39525422a8de4bfb034bff91b', 'User', '2012-12-31 12:17:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4263e1b39525422a8de4bfb034bff91b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'049b8a5448144d5b9f0aeaf00ee01dd8', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account049b8a54-4814-4d5b-9f0a-eaf00ee01dd8' WHERE `accounts`.`id` = x'049b8a5448144d5b9f0aeaf00ee01dd8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'049b8a5448144d5b9f0aeaf00ee01dd8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'049b8a5448144d5b9f0aeaf00ee01dd8', x'b8e469db68de4ce5992509d2f09c12fb', x'4263e1b39525422a8de4bfb034bff91b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b8e469db68de4ce5992509d2f09c12fb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b8e469db68de4ce5992509d2f09c12fb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b8e469db68de4ce5992509d2f09c12fb', x'418aa13ad664447c8ba28aefd4c9572b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b8e469db68de4ce5992509d2f09c12fb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b8e469db68de4ce5992509d2f09c12fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b8e469db68de4ce5992509d2f09c12fb', x'c959f5fffe204c0cb76016df30061a8d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182495be05_82580435d48353b3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'5361d506bbc44efeb0e4ad93f142478f', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account5361d506-bbc4-4efe-b0e4-ad93f142478f' WHERE `accounts`.`id` = x'5361d506bbc44efeb0e4ad93f142478f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5361d506bbc44efeb0e4ad93f142478f', x'fcd753113b704323983e87da009869d2', x'4263e1b39525422a8de4bfb034bff91b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fcd753113b704323983e87da009869d2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fcd753113b704323983e87da009869d2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fcd753113b704323983e87da009869d2', x'672a2faff9684d5a82aeacbebfdd6b97', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fcd753113b704323983e87da009869d2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fcd753113b704323983e87da009869d2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fcd753113b704323983e87da009869d2', x'd7c5c9a05b754570b7e33c63bfaf334a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4263e1b39525422a8de4bfb034bff91b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4263e1b39525422a8de4bfb034bff91b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4263e1b39525422a8de4bfb034bff91b' LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'049b8a5448144d5b9f0aeaf00ee01dd8' AND `account_domains`.`url` = 'primary.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'049b8a5448144d5b9f0aeaf00ee01dd8', x'64634689a36e4a5485a897414562da08', NULL, 'primary.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'049b8a5448144d5b9f0aeaf00ee01dd8' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"049B8A5448144D5B9F0AEAF00EE01DD8", "domain_id"=>"1231241243141314"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4263e1b39525422a8de4bfb034bff91b' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'049b8a5448144d5b9f0aeaf00ee01dd8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_049b8a54-4814-4d5b-9f0a-eaf00ee01dd8_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4263e1b39525422a8de4bfb034bff91b' AND `account_users`.`account_id` = x'049b8a5448144d5b9f0aeaf00ee01dd8' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b8e469db68de4ce5992509d2f09c12fb' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b8e469db68de4ce5992509d2f09c12fb' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4263e1b39525422a8de4bfb034bff91b' AND `accounts`.`id` = x'049b8a5448144d5b9f0aeaf00ee01dd8' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'049b8a5448144d5b9f0aeaf00ee01dd8' AND `account_domains`.`id` = x'31323331323431323433313431333134' LIMIT 1 Redirected to http://test.host/settings/account/049B8A5448144D5B9F0AEAF00EE01DD8/domains Completed 302 Found in 11ms (ActiveRecord: 1.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$In32inawqrNBxGq/S4jaZeJnMIiuV9TrRWOaZq39fBCIdD1uGbpKi', NULL, x'8563fb7ed7dc4beb856ab6eb1828a540', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8563fb7ed7dc4beb856ab6eb1828a540' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'1eb5f6b986784685ab54610118e40575', 'a8e77a8532d885032f9ee0602bbd2e98', x'8563fb7ed7dc4beb856ab6eb1828a540', 'User', '2012-12-31 12:17:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8563fb7ed7dc4beb856ab6eb1828a540' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'c10239e065584106925ec54dab80aa58', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'accountc10239e0-6558-4106-925e-c54dab80aa58' WHERE `accounts`.`id` = x'c10239e065584106925ec54dab80aa58' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c10239e065584106925ec54dab80aa58' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c10239e065584106925ec54dab80aa58', x'5ca0fb0e9b7047eb9483bb13b716d944', x'8563fb7ed7dc4beb856ab6eb1828a540') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5ca0fb0e9b7047eb9483bb13b716d944') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5ca0fb0e9b7047eb9483bb13b716d944' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5ca0fb0e9b7047eb9483bb13b716d944', x'08c0a73ba7a642809cdf3f945b8d9f23', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5ca0fb0e9b7047eb9483bb13b716d944') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5ca0fb0e9b7047eb9483bb13b716d944' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5ca0fb0e9b7047eb9483bb13b716d944', x'a821b72056f74fc998da35d76f2f4c46', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182497205e_82580435d483542d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'd525d27c8a8e478ea51f7ee44d464925', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'accountd525d27c-8a8e-478e-a51f-7ee44d464925' WHERE `accounts`.`id` = x'd525d27c8a8e478ea51f7ee44d464925'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd525d27c8a8e478ea51f7ee44d464925', x'f9d566dc37584a318cabf34d18b7ab8d', x'8563fb7ed7dc4beb856ab6eb1828a540') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f9d566dc37584a318cabf34d18b7ab8d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f9d566dc37584a318cabf34d18b7ab8d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f9d566dc37584a318cabf34d18b7ab8d', x'4a1bdcc8e9f04f11bce671c214c85eeb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f9d566dc37584a318cabf34d18b7ab8d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f9d566dc37584a318cabf34d18b7ab8d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f9d566dc37584a318cabf34d18b7ab8d', x'aac77ca9f38941aeba65d148fa648fed', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8563fb7ed7dc4beb856ab6eb1828a540' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8563fb7ed7dc4beb856ab6eb1828a540' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8563fb7ed7dc4beb856ab6eb1828a540' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c10239e065584106925ec54dab80aa58' AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c10239e065584106925ec54dab80aa58', x'6625ac300dc34bf9a70ab7cbc4f8a915', NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c10239e065584106925ec54dab80aa58' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"C10239E065584106925EC54DAB80AA58", "domain_id"=>"1231241243141314"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8563fb7ed7dc4beb856ab6eb1828a540' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c10239e065584106925ec54dab80aa58' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c10239e0-6558-4106-925e-c54dab80aa58_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8563fb7ed7dc4beb856ab6eb1828a540' AND `account_users`.`account_id` = x'c10239e065584106925ec54dab80aa58' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5ca0fb0e9b7047eb9483bb13b716d944' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5ca0fb0e9b7047eb9483bb13b716d944' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8563fb7ed7dc4beb856ab6eb1828a540' AND `accounts`.`id` = x'c10239e065584106925ec54dab80aa58' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c10239e065584106925ec54dab80aa58' AND `account_domains`.`id` = x'31323331323431323433313431333134' LIMIT 1 Redirected to http://test.host/settings/account/C10239E065584106925EC54DAB80AA58/domains Completed 302 Found in 12ms (ActiveRecord: 2.1ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$lmz1.dUexNkPNiiHHgBkzeOxI0WYk0g7s0knuSsLsAJRsyUNjNF2a', NULL, x'0cdcca2e6c8142c89dc72a9d67caa726', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0cdcca2e6c8142c89dc72a9d67caa726' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'2490650a61c848998ec20778cce051d1', 'a8cc161fae80846f3cbf60e1f9f15671', x'0cdcca2e6c8142c89dc72a9d67caa726', 'User', '2012-12-31 12:17:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0cdcca2e6c8142c89dc72a9d67caa726' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'5b21c3fe79de41dcaabef6f5f73ec86e', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account5b21c3fe-79de-41dc-aabe-f6f5f73ec86e' WHERE `accounts`.`id` = x'5b21c3fe79de41dcaabef6f5f73ec86e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5b21c3fe79de41dcaabef6f5f73ec86e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5b21c3fe79de41dcaabef6f5f73ec86e', x'f5c237591f0d47f591a47df693bc4435', x'0cdcca2e6c8142c89dc72a9d67caa726') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f5c237591f0d47f591a47df693bc4435') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5c237591f0d47f591a47df693bc4435' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5c237591f0d47f591a47df693bc4435', x'f4d27b56d7634360a9e1eb90fc17cac6', 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f5c237591f0d47f591a47df693bc4435') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5c237591f0d47f591a47df693bc4435' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5c237591f0d47f591a47df693bc4435', x'62c78368171647f2a1985c97df41d706', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824989181_82580435d4835554@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'fb9a6542aa194d4b82c0f5eb1a1e2186', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'accountfb9a6542-aa19-4d4b-82c0-f5eb1a1e2186' WHERE `accounts`.`id` = x'fb9a6542aa194d4b82c0f5eb1a1e2186'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fb9a6542aa194d4b82c0f5eb1a1e2186', x'4578df99fca74e22a7be83eab9818234', x'0cdcca2e6c8142c89dc72a9d67caa726') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4578df99fca74e22a7be83eab9818234') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4578df99fca74e22a7be83eab9818234' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4578df99fca74e22a7be83eab9818234', x'9a7859f45c8d4d919f673f03da321b1a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4578df99fca74e22a7be83eab9818234') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4578df99fca74e22a7be83eab9818234' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4578df99fca74e22a7be83eab9818234', x'd1fcd544bd7b425c97812714bc58613e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0cdcca2e6c8142c89dc72a9d67caa726' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0cdcca2e6c8142c89dc72a9d67caa726' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0cdcca2e6c8142c89dc72a9d67caa726' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"5B21C3FE79DE41DCAABEF6F5F73EC86E"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0cdcca2e6c8142c89dc72a9d67caa726' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5b21c3fe79de41dcaabef6f5f73ec86e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5b21c3fe-79de-41dc-aabe-f6f5f73ec86e_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0cdcca2e6c8142c89dc72a9d67caa726' AND `account_users`.`account_id` = x'5b21c3fe79de41dcaabef6f5f73ec86e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f5c237591f0d47f591a47df693bc4435' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f5c237591f0d47f591a47df693bc4435' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0cdcca2e6c8142c89dc72a9d67caa726' AND `accounts`.`id` = x'5b21c3fe79de41dcaabef6f5f73ec86e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'5b21c3fe79de41dcaabef6f5f73ec86e') LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:17:13' WHERE `accounts`.`id` = x'5b21c3fe79de41dcaabef6f5f73ec86e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/5B21C3FE79DE41DCAABEF6F5F73EC86E/domains Completed 302 Found in 14ms (ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$Ulyu2jCTdvdyNFuhPIxHFehN5bvX9TLTBGMo0S44GS38xhzgR5ir2', NULL, x'9249f3464eb6443abc5f81f365428355', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9249f3464eb6443abc5f81f365428355' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'2743705d231d49a49a86f91b32d230c2', '2fb6b211303af56436b25e093b85a113', x'9249f3464eb6443abc5f81f365428355', 'User', '2012-12-31 12:17:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9249f3464eb6443abc5f81f365428355' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'5e8e81e287144df4b3b80153e6863068', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account5e8e81e2-8714-4df4-b3b8-0153e6863068' WHERE `accounts`.`id` = x'5e8e81e287144df4b3b80153e6863068' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5e8e81e287144df4b3b80153e6863068' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e8e81e287144df4b3b80153e6863068', x'de8070bcf3624f1692d7358a73437558', x'9249f3464eb6443abc5f81f365428355') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'de8070bcf3624f1692d7358a73437558') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de8070bcf3624f1692d7358a73437558' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de8070bcf3624f1692d7358a73437558', x'20874a8d2f9a4e2aaeb4c5e682032b6e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'de8070bcf3624f1692d7358a73437558') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de8070bcf3624f1692d7358a73437558' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de8070bcf3624f1692d7358a73437558', x'169da109d46c4c6ea9bb9ecc55c019d3', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18249b4f38_82580435d4835658@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'c5700bc20742433cb734eac96b1f0603', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'accountc5700bc2-0742-433c-b734-eac96b1f0603' WHERE `accounts`.`id` = x'c5700bc20742433cb734eac96b1f0603'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c5700bc20742433cb734eac96b1f0603', x'92a5fd6b705b4c3c909829ff8b22968f', x'9249f3464eb6443abc5f81f365428355') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'92a5fd6b705b4c3c909829ff8b22968f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'92a5fd6b705b4c3c909829ff8b22968f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'92a5fd6b705b4c3c909829ff8b22968f', x'708166d2f09647efb04211b774eb3d3c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'92a5fd6b705b4c3c909829ff8b22968f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'92a5fd6b705b4c3c909829ff8b22968f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'92a5fd6b705b4c3c909829ff8b22968f', x'a9d6cbb68f39416ea46d87417f020cec', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9249f3464eb6443abc5f81f365428355' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9249f3464eb6443abc5f81f365428355' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9249f3464eb6443abc5f81f365428355' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"C5700BC20742433CB734EAC96B1F0603"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9249f3464eb6443abc5f81f365428355' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c5700bc20742433cb734eac96b1f0603' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c5700bc2-0742-433c-b734-eac96b1f0603_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9249f3464eb6443abc5f81f365428355' AND `account_users`.`account_id` = x'c5700bc20742433cb734eac96b1f0603' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'92a5fd6b705b4c3c909829ff8b22968f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'92a5fd6b705b4c3c909829ff8b22968f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9249f3464eb6443abc5f81f365428355' AND `accounts`.`id` = x'c5700bc20742433cb734eac96b1f0603' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'c5700bc20742433cb734eac96b1f0603') LIMIT 1  (0.2ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:17:13' WHERE `accounts`.`id` = x'c5700bc20742433cb734eac96b1f0603'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/C5700BC20742433CB734EAC96B1F0603/domains Completed 302 Found in 14ms (ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$NxrhBSz4F6sW9NsOs2CuTO/jg6lHaeKecLa/6vmR7yz6EODeZPbFa', NULL, x'3dbce770e9f34acc8571a7fc5952f300', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3dbce770e9f34acc8571a7fc5952f300' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'bd1927836caf41c8add5f6f94771f930', '72572a486ad6804b5d575d29071a9f93', x'3dbce770e9f34acc8571a7fc5952f300', 'User', '2012-12-31 12:17:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3dbce770e9f34acc8571a7fc5952f300' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'077f6860050b45988b68492d058244e9', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account077f6860-050b-4598-8b68-492d058244e9' WHERE `accounts`.`id` = x'077f6860050b45988b68492d058244e9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'077f6860050b45988b68492d058244e9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'077f6860050b45988b68492d058244e9', x'a61459572b4a4a01bd6becc7efa2f5d9', x'3dbce770e9f34acc8571a7fc5952f300') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a61459572b4a4a01bd6becc7efa2f5d9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a61459572b4a4a01bd6becc7efa2f5d9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a61459572b4a4a01bd6becc7efa2f5d9', x'd1c89bbf45f84d8fa2e9e23836fbaae9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a61459572b4a4a01bd6becc7efa2f5d9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a61459572b4a4a01bd6becc7efa2f5d9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a61459572b4a4a01bd6becc7efa2f5d9', x'3e6283119812477aafd180e139ccdfed', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18249ca721_82580435d483578@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'6369727310c94f268cb70cd59af364d2', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account63697273-10c9-4f26-8cb7-0cd59af364d2' WHERE `accounts`.`id` = x'6369727310c94f268cb70cd59af364d2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6369727310c94f268cb70cd59af364d2', x'c12e1eb1f4eb4026947bc55f2187eb41', x'3dbce770e9f34acc8571a7fc5952f300') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c12e1eb1f4eb4026947bc55f2187eb41') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c12e1eb1f4eb4026947bc55f2187eb41' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c12e1eb1f4eb4026947bc55f2187eb41', x'6ad65fd49ff0470c8ea0a6cdb0de809f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c12e1eb1f4eb4026947bc55f2187eb41') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c12e1eb1f4eb4026947bc55f2187eb41' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c12e1eb1f4eb4026947bc55f2187eb41', x'9135e209f7204a0181065632a4f844af', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3dbce770e9f34acc8571a7fc5952f300' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3dbce770e9f34acc8571a7fc5952f300' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3dbce770e9f34acc8571a7fc5952f300' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"077F6860050B45988B68492D058244E9"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3dbce770e9f34acc8571a7fc5952f300' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'077f6860050b45988b68492d058244e9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_077f6860-050b-4598-8b68-492d058244e9_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3dbce770e9f34acc8571a7fc5952f300' AND `account_users`.`account_id` = x'077f6860050b45988b68492d058244e9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a61459572b4a4a01bd6becc7efa2f5d9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a61459572b4a4a01bd6becc7efa2f5d9' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3dbce770e9f34acc8571a7fc5952f300' AND `accounts`.`id` = x'077f6860050b45988b68492d058244e9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'077f6860050b45988b68492d058244e9') LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:17:13' WHERE `accounts`.`id` = x'077f6860050b45988b68492d058244e9'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/077F6860050B45988B68492D058244E9/domains Completed 302 Found in 13ms (ActiveRecord: 2.7ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"077F6860050B45988B68492D058244E9"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'077f6860050b45988b68492d058244e9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_077f6860-050b-4598-8b68-492d058244e9_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3dbce770e9f34acc8571a7fc5952f300' AND `account_users`.`account_id` = x'077f6860050b45988b68492d058244e9' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a61459572b4a4a01bd6becc7efa2f5d9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a61459572b4a4a01bd6becc7efa2f5d9' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3dbce770e9f34acc8571a7fc5952f300' AND `accounts`.`id` = x'077f6860050b45988b68492d058244e9' LIMIT 1 Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.7ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$.JzYW0c4RJiDo7MM8PF/7eW47GOobkgldqsnR4nmdX6ukGnd3RVlW', NULL, x'588ad339cbaf46b8a5e12e52b195a168', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'588ad339cbaf46b8a5e12e52b195a168' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'a4db1299d6fb4b31aa589ea80a9a5a12', '7c32e325b8017eecabb5657665bf948c', x'588ad339cbaf46b8a5e12e52b195a168', 'User', '2012-12-31 12:17:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'588ad339cbaf46b8a5e12e52b195a168' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'7a0268506ab2458da3007c4817868591', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account7a026850-6ab2-458d-a300-7c4817868591' WHERE `accounts`.`id` = x'7a0268506ab2458da3007c4817868591' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a0268506ab2458da3007c4817868591' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7a0268506ab2458da3007c4817868591', x'579083fe96364a52a7c816d808c296d1', x'588ad339cbaf46b8a5e12e52b195a168') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'579083fe96364a52a7c816d808c296d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'579083fe96364a52a7c816d808c296d1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'579083fe96364a52a7c816d808c296d1', x'943142a5205f444fb0ba1d38e9abbd23', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'579083fe96364a52a7c816d808c296d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'579083fe96364a52a7c816d808c296d1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'579083fe96364a52a7c816d808c296d1', x'41d3d84568f64b7f8dc9e627e4c48f1a', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18249e2e59_82580435d4835820@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'6e9c0d980c3e4a7e818a8fd0553194c3', 'jabanilson', NULL, 1, '2012-12-31 12:17:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account6e9c0d98-0c3e-4a7e-818a-8fd0553194c3' WHERE `accounts`.`id` = x'6e9c0d980c3e4a7e818a8fd0553194c3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6e9c0d980c3e4a7e818a8fd0553194c3', x'c63e1408e52743bfaf796a2480f127f4', x'588ad339cbaf46b8a5e12e52b195a168') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c63e1408e52743bfaf796a2480f127f4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c63e1408e52743bfaf796a2480f127f4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c63e1408e52743bfaf796a2480f127f4', x'532048264fdf4ea9977ff791ef25523e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c63e1408e52743bfaf796a2480f127f4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c63e1408e52743bfaf796a2480f127f4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c63e1408e52743bfaf796a2480f127f4', x'0da7cb7b2f2443299240f80d52c18f2e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'588ad339cbaf46b8a5e12e52b195a168' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'588ad339cbaf46b8a5e12e52b195a168' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'588ad339cbaf46b8a5e12e52b195a168' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"7A0268506AB2458DA3007C4817868591"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'588ad339cbaf46b8a5e12e52b195a168' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a0268506ab2458da3007c4817868591' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7a026850-6ab2-458d-a300-7c4817868591_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'588ad339cbaf46b8a5e12e52b195a168' AND `account_users`.`account_id` = x'7a0268506ab2458da3007c4817868591' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'579083fe96364a52a7c816d808c296d1' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'579083fe96364a52a7c816d808c296d1' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:13', 'teste@teste.com', '$2a$04$5VUdNQ7ChitgmBUtTYdm/uDFMjgE1X4tBAJ0nQfcul45EJ8C5BcOG', NULL, x'502518acae364c50b9a4649cbac772ba', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'502518acae364c50b9a4649cbac772ba' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:13', 'User', x'88381a6cd7794c0fa1870179b14a6402', '9bf66fee12a8bb44862b84e145cc1d49', x'502518acae364c50b9a4649cbac772ba', 'User', '2012-12-31 12:17:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'502518acae364c50b9a4649cbac772ba' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:13', x'1cf985a533dd4ceda6652f17797df0b7', NULL, NULL, NULL, '2012-12-31 12:17:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:13', `updated_at` = '2012-12-31 12:17:13', `subdomain` = 'account1cf985a5-33dd-4ced-a665-2f17797df0b7' WHERE `accounts`.`id` = x'1cf985a533dd4ceda6652f17797df0b7' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1cf985a533dd4ceda6652f17797df0b7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1cf985a533dd4ceda6652f17797df0b7', x'09375f65e55b4061841567fda3a44938', x'502518acae364c50b9a4649cbac772ba') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'09375f65e55b4061841567fda3a44938') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09375f65e55b4061841567fda3a44938' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09375f65e55b4061841567fda3a44938', x'0be3ff09cbf84fd699fb058a4108a7f9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'09375f65e55b4061841567fda3a44938') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09375f65e55b4061841567fda3a44938' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09375f65e55b4061841567fda3a44938', x'ff5e6321399049a197960cb48cb05bec', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824a163b4_82580435d48359bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'a19a7e6214cf46ce93e3596650a4efc2', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'accounta19a7e62-14cf-46ce-93e3-596650a4efc2' WHERE `accounts`.`id` = x'a19a7e6214cf46ce93e3596650a4efc2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a19a7e6214cf46ce93e3596650a4efc2', x'6e4f302e713e46c3b19046c00ae85102', x'502518acae364c50b9a4649cbac772ba') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6e4f302e713e46c3b19046c00ae85102') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e4f302e713e46c3b19046c00ae85102' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e4f302e713e46c3b19046c00ae85102', x'59b015c4bfa6404499e71af35bc5d263', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6e4f302e713e46c3b19046c00ae85102') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e4f302e713e46c3b19046c00ae85102' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e4f302e713e46c3b19046c00ae85102', x'6a47da8fa89e4c08b8c6a882391ef93b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'502518acae364c50b9a4649cbac772ba' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'502518acae364c50b9a4649cbac772ba' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'502518acae364c50b9a4649cbac772ba' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"1CF985A533DD4CEDA6652F17797DF0B7"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'502518acae364c50b9a4649cbac772ba' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1cf985a533dd4ceda6652f17797df0b7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1cf985a5-33dd-4ced-a665-2f17797df0b7_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:14', 'teste@teste.com', '$2a$04$rHZ0PzTsHdr1hhySRNOUdOL1pBa0DmToLa94z8gYH6LN0Vu/Idxiq', NULL, x'3304a48687664f5892401ddec3141a59', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3304a48687664f5892401ddec3141a59' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:14', 'User', x'1b14c765a86542ae9278e5f1898647ff', '4188a9da40646aff9ab26fc9073d1315', x'3304a48687664f5892401ddec3141a59', 'User', '2012-12-31 12:17:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3304a48687664f5892401ddec3141a59' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'7299e72596574473b8393bbe80497cf4', NULL, NULL, NULL, '2012-12-31 12:17:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account7299e725-9657-4473-b839-3bbe80497cf4' WHERE `accounts`.`id` = x'7299e72596574473b8393bbe80497cf4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7299e72596574473b8393bbe80497cf4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7299e72596574473b8393bbe80497cf4', x'ff7aadf9f7954cdf9952fc51f9b3aed5', x'3304a48687664f5892401ddec3141a59') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ff7aadf9f7954cdf9952fc51f9b3aed5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff7aadf9f7954cdf9952fc51f9b3aed5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff7aadf9f7954cdf9952fc51f9b3aed5', x'd9ec41671f2940c380581e937bdf8b61', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ff7aadf9f7954cdf9952fc51f9b3aed5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff7aadf9f7954cdf9952fc51f9b3aed5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff7aadf9f7954cdf9952fc51f9b3aed5', x'1c5d62e098c2456fb23a6ed2c7f48cef', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824a289d5_82580435d48360c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'3edf4efeaf1e4df79bccbd0868a8597f', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account3edf4efe-af1e-4df7-9bcc-bd0868a8597f' WHERE `accounts`.`id` = x'3edf4efeaf1e4df79bccbd0868a8597f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3edf4efeaf1e4df79bccbd0868a8597f', x'b3b59fc743294c4f96e08aa710ec7c64', x'3304a48687664f5892401ddec3141a59') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b3b59fc743294c4f96e08aa710ec7c64') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3b59fc743294c4f96e08aa710ec7c64' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3b59fc743294c4f96e08aa710ec7c64', x'2ecc141b4dfd4db7b6b5cbe6e63f63a5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b3b59fc743294c4f96e08aa710ec7c64') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3b59fc743294c4f96e08aa710ec7c64' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3b59fc743294c4f96e08aa710ec7c64', x'51832051e21b4175b9039f8c67a74849', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3304a48687664f5892401ddec3141a59' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3304a48687664f5892401ddec3141a59' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3304a48687664f5892401ddec3141a59' LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"3EDF4EFEAF1E4DF79BCCBD0868A8597F", "domain_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3304a48687664f5892401ddec3141a59' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3edf4efeaf1e4df79bccbd0868a8597f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3edf4efe-af1e-4df7-9bcc-bd0868a8597f_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:14', 'teste@teste.com', '$2a$04$mufFNInmbwE67jXv9hg4AO.Ex2xht5E1RFMl9jJyA.eN9qpx66LTu', NULL, x'01934439a83a4ff4aacc2aed9be85edf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'01934439a83a4ff4aacc2aed9be85edf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:14', 'User', x'cd9a4775b95b45e295f4f51775ee59ef', '0380c0188d9047d17c85a0b1d92fd6bb', x'01934439a83a4ff4aacc2aed9be85edf', 'User', '2012-12-31 12:17:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'01934439a83a4ff4aacc2aed9be85edf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'e5cfb12faa1c4738ab7216601e7f5483', NULL, NULL, NULL, '2012-12-31 12:17:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'accounte5cfb12f-aa1c-4738-ab72-16601e7f5483' WHERE `accounts`.`id` = x'e5cfb12faa1c4738ab7216601e7f5483' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e5cfb12faa1c4738ab7216601e7f5483' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e5cfb12faa1c4738ab7216601e7f5483', x'c980600efc7a492dbaf1997b5767ec4c', x'01934439a83a4ff4aacc2aed9be85edf') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c980600efc7a492dbaf1997b5767ec4c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c980600efc7a492dbaf1997b5767ec4c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c980600efc7a492dbaf1997b5767ec4c', x'08f7f5c175584e058488cefa28d6a1f6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c980600efc7a492dbaf1997b5767ec4c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c980600efc7a492dbaf1997b5767ec4c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c980600efc7a492dbaf1997b5767ec4c', x'60c1da6c2efa47f28dc22d077c86ab13', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824a3b659_82580435d4836163@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'6e9cddd96b9d48c99d9eb7ee4a7b27ad', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account6e9cddd9-6b9d-48c9-9d9e-b7ee4a7b27ad' WHERE `accounts`.`id` = x'6e9cddd96b9d48c99d9eb7ee4a7b27ad'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6e9cddd96b9d48c99d9eb7ee4a7b27ad', x'cc7e999e7ced431683ded8c98fc9396a', x'01934439a83a4ff4aacc2aed9be85edf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cc7e999e7ced431683ded8c98fc9396a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc7e999e7ced431683ded8c98fc9396a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc7e999e7ced431683ded8c98fc9396a', x'2ec6330fcd2449bc8cbc4419755b55b7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cc7e999e7ced431683ded8c98fc9396a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc7e999e7ced431683ded8c98fc9396a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc7e999e7ced431683ded8c98fc9396a', x'eedd713454ed43e9bd5151b5dac92a1e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'01934439a83a4ff4aacc2aed9be85edf' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'01934439a83a4ff4aacc2aed9be85edf' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'01934439a83a4ff4aacc2aed9be85edf' LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"E5CFB12FAA1C4738AB7216601E7F5483"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'01934439a83a4ff4aacc2aed9be85edf' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e5cfb12faa1c4738ab7216601e7f5483' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e5cfb12f-aa1c-4738-ab72-16601e7f5483_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'01934439a83a4ff4aacc2aed9be85edf' AND `account_users`.`account_id` = x'e5cfb12faa1c4738ab7216601e7f5483' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c980600efc7a492dbaf1997b5767ec4c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c980600efc7a492dbaf1997b5767ec4c' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 9ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:14', 'teste@teste.com', '$2a$04$Wxn3RTRIi1UcMIlL8reK3Ozk2W41Y2l8QGjyxyLg0UenQZ70Bq0O6', NULL, x'1bbd440fcc4641f0b508b5ceb474cbdc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:14', 'User', x'905d6a35d747485bbeba67f850e1b9fa', '04be76fed73d6852397062cefd56855d', x'1bbd440fcc4641f0b508b5ceb474cbdc', 'User', '2012-12-31 12:17:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'b655de07332f4d4bacf4902379ae3a7e', NULL, NULL, NULL, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'accountb655de07-332f-4d4b-acf4-902379ae3a7e' WHERE `accounts`.`id` = x'b655de07332f4d4bacf4902379ae3a7e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b655de07332f4d4bacf4902379ae3a7e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b655de07332f4d4bacf4902379ae3a7e', x'4ee88037efdb4fbd837a85b5e67324ce', x'1bbd440fcc4641f0b508b5ceb474cbdc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4ee88037efdb4fbd837a85b5e67324ce') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ee88037efdb4fbd837a85b5e67324ce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4ee88037efdb4fbd837a85b5e67324ce', x'0397425c00914727a459b12372c41409', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4ee88037efdb4fbd837a85b5e67324ce') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ee88037efdb4fbd837a85b5e67324ce' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4ee88037efdb4fbd837a85b5e67324ce', x'1d8ab3dbbbab4f3d852828a9bc1f38a2', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824a51e3e_82580435d48362a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'b8beea19934b4b97bda03433b40c77a7', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'accountb8beea19-934b-4b97-bda0-3433b40c77a7' WHERE `accounts`.`id` = x'b8beea19934b4b97bda03433b40c77a7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b8beea19934b4b97bda03433b40c77a7', x'b5ec77f4b33b4145a2ffa3975289d0dd', x'1bbd440fcc4641f0b508b5ceb474cbdc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b5ec77f4b33b4145a2ffa3975289d0dd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b5ec77f4b33b4145a2ffa3975289d0dd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b5ec77f4b33b4145a2ffa3975289d0dd', x'f324e08b98a642318912c3e594016cca', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b5ec77f4b33b4145a2ffa3975289d0dd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b5ec77f4b33b4145a2ffa3975289d0dd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b5ec77f4b33b4145a2ffa3975289d0dd', x'0aa3c34f60cc41f4858a9b5dcfa56552', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4ee88037efdb4fbd837a85b5e67324ce'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ee88037efdb4fbd837a85b5e67324ce' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¶UÞ3/MK¬ô#y®:~' AND name = 'owner') SQL (0.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1d8ab3dbbbab4f3d852828a9bc1f38a2'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4ee88037efdb4fbd837a85b5e67324ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ee88037efdb4fbd837a85b5e67324ce' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b655de07332f4d4bacf4902379ae3a7e' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' LIMIT 1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"b655de07-332f-4d4b-acf4-902379ae3a7e", "user_id"=>"1bbd440f-cc46-41f0-b508-b5ceb474cbdc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' AND `account_users`.`account_id` = x'b655de07332f4d4bacf4902379ae3a7e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4ee88037efdb4fbd837a85b5e67324ce' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4ee88037efdb4fbd837a85b5e67324ce' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' AND `accounts`.`id` = x'b655de07332f4d4bacf4902379ae3a7e' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b655de07332f4d4bacf4902379ae3a7e' AND `account_users`.`user_id` = x'1bbd440fcc4641f0b508b5ceb474cbdc' LIMIT 1 Completed 200 OK in 94ms (Views: 3.6ms | ActiveRecord: 2.1ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:14', 'teste@teste.com', '$2a$04$s.3rgBXyuMIPX86Q6Tict.dtRfSdB07quAEOAWt9xNEPfR65BPQNO', NULL, x'ff03bccf67fe4f9798eb6edba277c643', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ff03bccf67fe4f9798eb6edba277c643' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:14', 'User', x'56be27f3bccd4f3a9ed34982346977b6', 'dfe42d26aa3873ea0875b8585addc3d2', x'ff03bccf67fe4f9798eb6edba277c643', 'User', '2012-12-31 12:17:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ff03bccf67fe4f9798eb6edba277c643' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'232fd6c09e604368a8a6881cbfb4e515', NULL, NULL, NULL, '2012-12-31 12:17:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account232fd6c0-9e60-4368-a8a6-881cbfb4e515' WHERE `accounts`.`id` = x'232fd6c09e604368a8a6881cbfb4e515' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'232fd6c09e604368a8a6881cbfb4e515' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'232fd6c09e604368a8a6881cbfb4e515', x'8c4743894c314d159c9ebca5497e38f2', x'ff03bccf67fe4f9798eb6edba277c643') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8c4743894c314d159c9ebca5497e38f2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c4743894c314d159c9ebca5497e38f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8c4743894c314d159c9ebca5497e38f2', x'7da7c4146869486e8e1e05a7f1ca83bc', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8c4743894c314d159c9ebca5497e38f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c4743894c314d159c9ebca5497e38f2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8c4743894c314d159c9ebca5497e38f2', x'ee124c0be7964ac583fa7efc51be8ae1', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824a7e6c7_82580435d48363ab@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'96908b85734446959bd776a3fa22e7a0', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account96908b85-7344-4695-9bd7-76a3fa22e7a0' WHERE `accounts`.`id` = x'96908b85734446959bd776a3fa22e7a0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'96908b85734446959bd776a3fa22e7a0', x'9404c8ae2e7443fc864ad217a180d46a', x'ff03bccf67fe4f9798eb6edba277c643') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9404c8ae2e7443fc864ad217a180d46a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9404c8ae2e7443fc864ad217a180d46a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9404c8ae2e7443fc864ad217a180d46a', x'e1fcfc2dcd774125bb4b7dfa71e2e2b1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9404c8ae2e7443fc864ad217a180d46a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9404c8ae2e7443fc864ad217a180d46a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9404c8ae2e7443fc864ad217a180d46a', x'c4170e178a954e37889b52504117df00', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff03bccf67fe4f9798eb6edba277c643' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff03bccf67fe4f9798eb6edba277c643' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ff03bccf67fe4f9798eb6edba277c643' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8c4743894c314d159c9ebca5497e38f2'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c4743894c314d159c9ebca5497e38f2' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '#/ÖÀž`Ch¨¦ˆ¿´å' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ee124c0be7964ac583fa7efc51be8ae1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8c4743894c314d159c9ebca5497e38f2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c4743894c314d159c9ebca5497e38f2' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'232fd6c09e604368a8a6881cbfb4e515' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ff03bccf67fe4f9798eb6edba277c643' LIMIT 1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"232fd6c0-9e60-4368-a8a6-881cbfb4e515", "user_id"=>"ff03bccf-67fe-4f97-98eb-6edba277c643"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ff03bccf67fe4f9798eb6edba277c643' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ff03bccf67fe4f9798eb6edba277c643' AND `account_users`.`account_id` = x'232fd6c09e604368a8a6881cbfb4e515' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8c4743894c314d159c9ebca5497e38f2' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8c4743894c314d159c9ebca5497e38f2' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff03bccf67fe4f9798eb6edba277c643' AND `accounts`.`id` = x'232fd6c09e604368a8a6881cbfb4e515' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'232fd6c09e604368a8a6881cbfb4e515' AND `account_users`.`user_id` = x'ff03bccf67fe4f9798eb6edba277c643' LIMIT 1 Completed 200 OK in 11ms (Views: 1.8ms | ActiveRecord: 1.7ms)  (1.0ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:14', 'teste@teste.com', '$2a$04$lrn8GgQDOfH02KbrluGmZuvMwMTZH7LibGCKnpqEFBt0zVdL4pcZ2', NULL, x'4f800172bbfb41d2bf9e78f48336c36b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4f800172bbfb41d2bf9e78f48336c36b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:14', 'User', x'198ebf10f8944a5f9130969f7a94d5cd', '5b8de871811be4e9e04a9f93d4a5d0b2', x'4f800172bbfb41d2bf9e78f48336c36b', 'User', '2012-12-31 12:17:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4f800172bbfb41d2bf9e78f48336c36b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'9923c09b04324ae3a477662941ff4940', NULL, NULL, NULL, '2012-12-31 12:17:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account9923c09b-0432-4ae3-a477-662941ff4940' WHERE `accounts`.`id` = x'9923c09b04324ae3a477662941ff4940' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9923c09b04324ae3a477662941ff4940' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9923c09b04324ae3a477662941ff4940', x'54aea180029e42c9b76e30685ad588f7', x'4f800172bbfb41d2bf9e78f48336c36b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'54aea180029e42c9b76e30685ad588f7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'54aea180029e42c9b76e30685ad588f7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'54aea180029e42c9b76e30685ad588f7', x'49b78ce5befd4b3cb846573fa1e887a1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'54aea180029e42c9b76e30685ad588f7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'54aea180029e42c9b76e30685ad588f7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'54aea180029e42c9b76e30685ad588f7', x'e380bedf8c764ea6bf62832bdbbb2a8e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824a95ab3_82580435d4836491@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'7ad9bfeed91c40a0a894f66585c90f12', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account7ad9bfee-d91c-40a0-a894-f66585c90f12' WHERE `accounts`.`id` = x'7ad9bfeed91c40a0a894f66585c90f12'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7ad9bfeed91c40a0a894f66585c90f12', x'097b7eeaa69c4c5ba17b3ca177bb341e', x'4f800172bbfb41d2bf9e78f48336c36b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'097b7eeaa69c4c5ba17b3ca177bb341e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'097b7eeaa69c4c5ba17b3ca177bb341e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'097b7eeaa69c4c5ba17b3ca177bb341e', x'892c0f68258545ea97230e6b039d2c10', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'097b7eeaa69c4c5ba17b3ca177bb341e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'097b7eeaa69c4c5ba17b3ca177bb341e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'097b7eeaa69c4c5ba17b3ca177bb341e', x'f9798a2575b144ec8a1c708d0ffbd3c2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f800172bbfb41d2bf9e78f48336c36b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f800172bbfb41d2bf9e78f48336c36b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4f800172bbfb41d2bf9e78f48336c36b' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7ad9bfeed91c40a0a894f66585c90f12' LIMIT 1 Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"7ad9bfee-d91c-40a0-a894-f66585c90f12", "user_id"=>"4f800172-bbfb-41d2-bf9e-78f48336c36b"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4f800172bbfb41d2bf9e78f48336c36b' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4f800172bbfb41d2bf9e78f48336c36b' AND `account_users`.`account_id` = x'7ad9bfeed91c40a0a894f66585c90f12' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'097b7eeaa69c4c5ba17b3ca177bb341e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'097b7eeaa69c4c5ba17b3ca177bb341e' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f800172bbfb41d2bf9e78f48336c36b' AND `accounts`.`id` = x'7ad9bfeed91c40a0a894f66585c90f12' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7ad9bfeed91c40a0a894f66585c90f12' AND `account_users`.`user_id` = x'4f800172bbfb41d2bf9e78f48336c36b' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'097b7eeaa69c4c5ba17b3ca177bb341e'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'097b7eeaa69c4c5ba17b3ca177bb341e' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'zÙ¿îÙ@ ¨”öe…É' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f9798a2575b144ec8a1c708d0ffbd3c2'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/7ad9bfee-d91c-40a0-a894-f66585c90f12/users Completed 302 Found in 16ms (ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'dd928a2726e64581b145f3ca9b7b17cf', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'accountdd928a27-26e6-4581-b145-f3ca9b7b17cf' WHERE `accounts`.`id` = x'dd928a2726e64581b145f3ca9b7b17cf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:14', 'teste@teste.com', '$2a$04$cTe/V8uhAcDsl.L4Co592edMsYRJOx1jkrVLufwZb5OxzL7F0peAC', NULL, x'b309a2d0cf8246249fb599513d6280e1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b309a2d0cf8246249fb599513d6280e1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:14', 'User', x'32f4b85e419244a399ce670ccef89236', 'e92443de403e8662e6a5e327f7858bb4', x'b309a2d0cf8246249fb599513d6280e1', 'User', '2012-12-31 12:17:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b309a2d0cf8246249fb599513d6280e1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'610348c35d5a4424852f40d692b3eaae', NULL, NULL, NULL, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account610348c3-5d5a-4424-852f-40d692b3eaae' WHERE `accounts`.`id` = x'610348c35d5a4424852f40d692b3eaae' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'610348c35d5a4424852f40d692b3eaae' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'610348c35d5a4424852f40d692b3eaae', x'fe702f2e24ce487ca61f8d4d7032df8b', x'b309a2d0cf8246249fb599513d6280e1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fe702f2e24ce487ca61f8d4d7032df8b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe702f2e24ce487ca61f8d4d7032df8b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe702f2e24ce487ca61f8d4d7032df8b', x'44e7ce5842d7432b80b477dcc6ba45e8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fe702f2e24ce487ca61f8d4d7032df8b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe702f2e24ce487ca61f8d4d7032df8b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe702f2e24ce487ca61f8d4d7032df8b', x'0d049d844ebb4bedb4e37e3eb8dd9afa', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824aac731_82580435d48365f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'ee11a998d2fc4debb1863d7c363ec8e6', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'accountee11a998-d2fc-4deb-b186-3d7c363ec8e6' WHERE `accounts`.`id` = x'ee11a998d2fc4debb1863d7c363ec8e6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ee11a998d2fc4debb1863d7c363ec8e6', x'5072b16ac2d74e79b835693093fb702e', x'b309a2d0cf8246249fb599513d6280e1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5072b16ac2d74e79b835693093fb702e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5072b16ac2d74e79b835693093fb702e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5072b16ac2d74e79b835693093fb702e', x'653e03f5971c47b2ac37e0f494deece0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5072b16ac2d74e79b835693093fb702e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5072b16ac2d74e79b835693093fb702e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5072b16ac2d74e79b835693093fb702e', x'9901321c003e4dfda76cfd071f4a7b6f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b309a2d0cf8246249fb599513d6280e1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b309a2d0cf8246249fb599513d6280e1' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:14', NULL, '--- !ruby/struct:DestroyAccountJob\nid: dd928a27-26e6-4581-b145-f3ca9b7b17cf\n', NULL, NULL, NULL, 0, 'account_dd928a27-26e6-4581-b145-f3ca9b7b17cf_destroy', '2012-12-31 12:17:14', '2012-12-31 12:17:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"DD928A2726E64581B145F3CA9B7B17CF"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b309a2d0cf8246249fb599513d6280e1' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dd928a2726e64581b145f3ca9b7b17cf' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_dd928a27-26e6-4581-b145-f3ca9b7b17cf_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 101ms (Views: 95.6ms | ActiveRecord: 1.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'22223151afcf415c97c769cad7fdb0e0', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account22223151-afcf-415c-97c7-69cad7fdb0e0' WHERE `accounts`.`id` = x'22223151afcf415c97c769cad7fdb0e0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:14', 'teste@teste.com', '$2a$04$LzaQsoEvAEvlgz0u3LupeefFryWnnmREI9DM7pRCyMvz70yRfiIM.', NULL, x'ec7a6c348d844940accc8fabae194461', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ec7a6c348d844940accc8fabae194461' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:14', 'User', x'15d4ec3168524fd5b0cd2729dc2447fb', '3402e30acc0388db7eebb77b02e96108', x'ec7a6c348d844940accc8fabae194461', 'User', '2012-12-31 12:17:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ec7a6c348d844940accc8fabae194461' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'2de9403190e04811a6bc34cad66e6847', NULL, NULL, NULL, '2012-12-31 12:17:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account2de94031-90e0-4811-a6bc-34cad66e6847' WHERE `accounts`.`id` = x'2de9403190e04811a6bc34cad66e6847' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2de9403190e04811a6bc34cad66e6847' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2de9403190e04811a6bc34cad66e6847', x'5928ac9a6aee42f088f87ce08c83f196', x'ec7a6c348d844940accc8fabae194461') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5928ac9a6aee42f088f87ce08c83f196') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5928ac9a6aee42f088f87ce08c83f196' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5928ac9a6aee42f088f87ce08c83f196', x'd0bc1a66d81d4f638de8ca401825651b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5928ac9a6aee42f088f87ce08c83f196') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5928ac9a6aee42f088f87ce08c83f196' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5928ac9a6aee42f088f87ce08c83f196', x'2e1e6e360d874c03b2d8852cda05513f', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824adabbd_82580435d4836656@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'27fb8277f2fe423e944c6cdb3fdf080c', 'jabanilson', NULL, 1, '2012-12-31 12:17:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'account27fb8277-f2fe-423e-944c-6cdb3fdf080c' WHERE `accounts`.`id` = x'27fb8277f2fe423e944c6cdb3fdf080c'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'27fb8277f2fe423e944c6cdb3fdf080c', x'c3851d0732b44e728079082447fde63c', x'ec7a6c348d844940accc8fabae194461') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c3851d0732b44e728079082447fde63c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3851d0732b44e728079082447fde63c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3851d0732b44e728079082447fde63c', x'c4f428f2edd246b7ad6f70e4824fe885', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c3851d0732b44e728079082447fde63c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3851d0732b44e728079082447fde63c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3851d0732b44e728079082447fde63c', x'570652509d984a95be2bfe79592054e8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec7a6c348d844940accc8fabae194461' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec7a6c348d844940accc8fabae194461' LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"22223151AFCF415C97C769CAD7FDB0E0"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ec7a6c348d844940accc8fabae194461' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'22223151afcf415c97c769cad7fdb0e0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22223151-afcf-415c-97c7-69cad7fdb0e0_destroy' LIMIT 1 Completed 200 OK in 22ms (Views: 17.2ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:14', 'teste@teste.com', '$2a$04$3XG2yjKS7KXTBwzVs9sANeRvKKQFhaHTo8ZV.nukWPpsjkBJgU2Z.', NULL, x'af07889f9bb94cb6947a064d421aa969', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'af07889f9bb94cb6947a064d421aa969' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:14', 'User', x'5141bf73d2a14ebf9fdde662a62312c3', '7a262eb45b6ad70d742868deb4a2456b', x'af07889f9bb94cb6947a064d421aa969', 'User', '2012-12-31 12:17:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'af07889f9bb94cb6947a064d421aa969' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:14', x'b1f3a22f9ee34e50b5c1f4cb0478e04f', NULL, NULL, NULL, '2012-12-31 12:17:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:14', `updated_at` = '2012-12-31 12:17:14', `subdomain` = 'accountb1f3a22f-9ee3-4e50-b5c1-f4cb0478e04f' WHERE `accounts`.`id` = x'b1f3a22f9ee34e50b5c1f4cb0478e04f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b1f3a22f9ee34e50b5c1f4cb0478e04f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b1f3a22f9ee34e50b5c1f4cb0478e04f', x'4287815277284c719ef476ce61dadbcf', x'af07889f9bb94cb6947a064d421aa969') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4287815277284c719ef476ce61dadbcf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4287815277284c719ef476ce61dadbcf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4287815277284c719ef476ce61dadbcf', x'6afc84b872d04a3cae6c4909271a98d2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4287815277284c719ef476ce61dadbcf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4287815277284c719ef476ce61dadbcf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4287815277284c719ef476ce61dadbcf', x'74b6d29c03dd46108e8f8ce8944e3e0b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824af3174_82580435d483679b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'ec5183e53ccd47e2b1cf0034b45b09ed', 'jabanilson', NULL, 1, '2012-12-31 12:17:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accountec5183e5-3ccd-47e2-b1cf-0034b45b09ed' WHERE `accounts`.`id` = x'ec5183e53ccd47e2b1cf0034b45b09ed'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ec5183e53ccd47e2b1cf0034b45b09ed', x'62f40cefdce545de9a622da59d792812', x'af07889f9bb94cb6947a064d421aa969') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'62f40cefdce545de9a622da59d792812') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'62f40cefdce545de9a622da59d792812' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'62f40cefdce545de9a622da59d792812', x'd17f738b56be4170bd0e78ac0c7e5a55', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'62f40cefdce545de9a622da59d792812') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'62f40cefdce545de9a622da59d792812' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'62f40cefdce545de9a622da59d792812', x'd79628f7dcd04985bbb133f08f608818', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'af07889f9bb94cb6947a064d421aa969' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'af07889f9bb94cb6947a064d421aa969' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'af07889f9bb94cb6947a064d421aa969' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"B1F3A22F9EE34E50B5C1F4CB0478E04F"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'af07889f9bb94cb6947a064d421aa969' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b1f3a22f9ee34e50b5c1f4cb0478e04f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b1f3a22f-9ee3-4e50-b5c1-f4cb0478e04f_destroy' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b1f3a22f9ee34e50b5c1f4cb0478e04f' LIMIT 1 Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'teste@teste.com', '$2a$04$guuyjWBX.zTwdLtAqdeGwuQNux3O5dc6AiJsHkrKnG0UtmkQcjGHG', NULL, x'804b83b3846d420390f4ef49f80ec4ce', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'804b83b3846d420390f4ef49f80ec4ce' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'8f536c25aa1747aa8449704120e5a06c', '795e70547e9ba31fd784062af57f1701', x'804b83b3846d420390f4ef49f80ec4ce', 'User', '2012-12-31 12:17:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'804b83b3846d420390f4ef49f80ec4ce' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'3f353a95982d4bea93a2efaa45664f92', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'account3f353a95-982d-4bea-93a2-efaa45664f92' WHERE `accounts`.`id` = x'3f353a95982d4bea93a2efaa45664f92' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3f353a95982d4bea93a2efaa45664f92' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3f353a95982d4bea93a2efaa45664f92', x'0be2051edefb4bcd9eee3a4e6599e870', x'804b83b3846d420390f4ef49f80ec4ce') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0be2051edefb4bcd9eee3a4e6599e870') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0be2051edefb4bcd9eee3a4e6599e870' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0be2051edefb4bcd9eee3a4e6599e870', x'aa7d8106ef594127981d77100537172c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0be2051edefb4bcd9eee3a4e6599e870') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0be2051edefb4bcd9eee3a4e6599e870' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0be2051edefb4bcd9eee3a4e6599e870', x'd2e31d549f0c44d2a669ba3485a23697', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824b13be2_82580435d4836856@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'fc9d994ef616460ea0786d3639a0d42e', 'jabanilson', NULL, 1, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accountfc9d994e-f616-460e-a078-6d3639a0d42e' WHERE `accounts`.`id` = x'fc9d994ef616460ea0786d3639a0d42e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fc9d994ef616460ea0786d3639a0d42e', x'7b9f316369bd421ea3a446dd12b2497a', x'804b83b3846d420390f4ef49f80ec4ce') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7b9f316369bd421ea3a446dd12b2497a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b9f316369bd421ea3a446dd12b2497a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b9f316369bd421ea3a446dd12b2497a', x'68ad81091de5440b917ca78a4879701e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7b9f316369bd421ea3a446dd12b2497a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b9f316369bd421ea3a446dd12b2497a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b9f316369bd421ea3a446dd12b2497a', x'ce802afaff7240da9dc34699b1021aff', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'804b83b3846d420390f4ef49f80ec4ce' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'804b83b3846d420390f4ef49f80ec4ce' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'804b83b3846d420390f4ef49f80ec4ce' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"3F353A95982D4BEA93A2EFAA45664F92"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'804b83b3846d420390f4ef49f80ec4ce' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3f353a95982d4bea93a2efaa45664f92' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3f353a95-982d-4bea-93a2-efaa45664f92_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3f353a95982d4bea93a2efaa45664f92' LIMIT 1 Completed 200 OK in 86ms (Views: 2.1ms | ActiveRecord: 1.0ms) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'804b83b3846d420390f4ef49f80ec4ce' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"3F353A95982D4BEA93A2EFAA45664F92"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3f353a95982d4bea93a2efaa45664f92' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3f353a95-982d-4bea-93a2-efaa45664f92_destroy' LIMIT 1 Completed 404 Not Found in 2ms  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'teste@teste.com', '$2a$04$EE3u5wOpf2GGAnXteZ6F.uLFNYTLJaFADBic.EZXFIm/HbM1ChKZy', NULL, x'6bf03801dd96413a9d96d1707035d47f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6bf03801dd96413a9d96d1707035d47f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'094f2bfc959848ac872ec18f1dc5a19a', 'c07307369a6b32a406d0a8572296356f', x'6bf03801dd96413a9d96d1707035d47f', 'User', '2012-12-31 12:17:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6bf03801dd96413a9d96d1707035d47f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'4d9d5b2c3543420891f691f6225f2476', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'account4d9d5b2c-3543-4208-91f6-91f6225f2476' WHERE `accounts`.`id` = x'4d9d5b2c3543420891f691f6225f2476' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d9d5b2c3543420891f691f6225f2476' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4d9d5b2c3543420891f691f6225f2476', x'9209b4dd627b49febd6026ac33d7b462', x'6bf03801dd96413a9d96d1707035d47f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9209b4dd627b49febd6026ac33d7b462') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9209b4dd627b49febd6026ac33d7b462' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9209b4dd627b49febd6026ac33d7b462', x'86247b56168a4604bcdcafc2bea92e03', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9209b4dd627b49febd6026ac33d7b462') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9209b4dd627b49febd6026ac33d7b462' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9209b4dd627b49febd6026ac33d7b462', x'6aa0bdb21f344f32af1402096b169359', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824b3c3fe_82580435d4836937@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'2f6b1f1a1f0149e6bd155b353f6f68b6', 'jabanilson', NULL, 1, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'account2f6b1f1a-1f01-49e6-bd15-5b353f6f68b6' WHERE `accounts`.`id` = x'2f6b1f1a1f0149e6bd155b353f6f68b6'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2f6b1f1a1f0149e6bd155b353f6f68b6', x'f48f397f7aeb43dda1efa4ed67a943fc', x'6bf03801dd96413a9d96d1707035d47f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f48f397f7aeb43dda1efa4ed67a943fc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f48f397f7aeb43dda1efa4ed67a943fc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f48f397f7aeb43dda1efa4ed67a943fc', x'195865f1c9184a7aa669072ffac0e274', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f48f397f7aeb43dda1efa4ed67a943fc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f48f397f7aeb43dda1efa4ed67a943fc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f48f397f7aeb43dda1efa4ed67a943fc', x'92272f7fe971480c92ecce578428bbba', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6bf03801dd96413a9d96d1707035d47f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6bf03801dd96413a9d96d1707035d47f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6bf03801dd96413a9d96d1707035d47f' LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"4D9D5B2C3543420891F691F6225F2476", "user_id"=>"6BF03801DD96413A9D96D1707035D47F"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6bf03801dd96413a9d96d1707035d47f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d9d5b2c3543420891f691f6225f2476' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4d9d5b2c-3543-4208-91f6-91f6225f2476_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4d9d5b2c3543420891f691f6225f2476' AND `account_users`.`user_id` = x'6bf03801dd96413a9d96d1707035d47f' LIMIT 1 Completed 200 OK in 8ms (Views: 2.5ms | ActiveRecord: 1.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'teste@teste.com', '$2a$04$mCP9CdtMTxIv8lUlGiOiteNDs0ZXAOBtFIZD8AuxP8AQW8Kkf35Py', NULL, x'c1b39f63079f4afc95b2e6824e63bcb6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c1b39f63079f4afc95b2e6824e63bcb6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'4ea864ff2c6a46b582b9ba4382eb4449', 'e4c74ce58cfd74781774c1d5b41fae68', x'c1b39f63079f4afc95b2e6824e63bcb6', 'User', '2012-12-31 12:17:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c1b39f63079f4afc95b2e6824e63bcb6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'cefb3f11caa7490e85039d125d957f45', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accountcefb3f11-caa7-490e-8503-9d125d957f45' WHERE `accounts`.`id` = x'cefb3f11caa7490e85039d125d957f45' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cefb3f11caa7490e85039d125d957f45' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cefb3f11caa7490e85039d125d957f45', x'e23735361c524580b3e82be333a15bc6', x'c1b39f63079f4afc95b2e6824e63bcb6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e23735361c524580b3e82be333a15bc6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e23735361c524580b3e82be333a15bc6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e23735361c524580b3e82be333a15bc6', x'9f64b296eeac4da3b5512b4e5592a107', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e23735361c524580b3e82be333a15bc6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e23735361c524580b3e82be333a15bc6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e23735361c524580b3e82be333a15bc6', x'0ebaa5e00a734607a74efae25f665c0f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824b503c0_82580435d4837092@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'e25ea4a085f14501a7b8729f67cfc047', 'jabanilson', NULL, 1, '2012-12-31 12:17:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accounte25ea4a0-85f1-4501-a7b8-729f67cfc047' WHERE `accounts`.`id` = x'e25ea4a085f14501a7b8729f67cfc047'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e25ea4a085f14501a7b8729f67cfc047', x'd1e20ee98ec5456291b32b81b7a25899', x'c1b39f63079f4afc95b2e6824e63bcb6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd1e20ee98ec5456291b32b81b7a25899') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd1e20ee98ec5456291b32b81b7a25899' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd1e20ee98ec5456291b32b81b7a25899', x'ff5237db2e124312b033a73ee43f56e8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd1e20ee98ec5456291b32b81b7a25899') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd1e20ee98ec5456291b32b81b7a25899' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd1e20ee98ec5456291b32b81b7a25899', x'b45a1750d2e2484e809eaa8fd0ec2354', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1b39f63079f4afc95b2e6824e63bcb6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1b39f63079f4afc95b2e6824e63bcb6' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1b39f63079f4afc95b2e6824e63bcb6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'targetdestroy@teste.teste', '$2a$04$3yk.f4ejlefOmQA17pgoOO6wmS1WOyGvornc2tpnr2SF.tXSWHQ1O', NULL, x'545d48291b3f40289c37a3f1bdceb22b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'545d48291b3f40289c37a3f1bdceb22b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'bdf1312e3c07400a880c63e2ece9a3de', '1eb55816d1bfb2b62fa109f86b722277', x'545d48291b3f40289c37a3f1bdceb22b', 'User', '2012-12-31 12:17:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'545d48291b3f40289c37a3f1bdceb22b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'c7411dbda5104b2bb751b3bda185db16', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accountc7411dbd-a510-4b2b-b751-b3bda185db16' WHERE `accounts`.`id` = x'c7411dbda5104b2bb751b3bda185db16' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c7411dbda5104b2bb751b3bda185db16' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c7411dbda5104b2bb751b3bda185db16', x'bb99fc6a47fc47e8a1d48de19ac2a748', x'545d48291b3f40289c37a3f1bdceb22b') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bb99fc6a47fc47e8a1d48de19ac2a748') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb99fc6a47fc47e8a1d48de19ac2a748' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb99fc6a47fc47e8a1d48de19ac2a748', x'470b2e6cb2ee443387c6d92be99a84b0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bb99fc6a47fc47e8a1d48de19ac2a748') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb99fc6a47fc47e8a1d48de19ac2a748' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb99fc6a47fc47e8a1d48de19ac2a748', x'583bda38f0de432d9fd407f56a3972ec', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e1824b60acb_82580435d483716@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e25ea4a085f14501a7b8729f67cfc047' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e25ea4a085f14501a7b8729f67cfc047', x'12815c110c0143a5bc1f2f00dce46471', x'545d48291b3f40289c37a3f1bdceb22b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'12815c110c0143a5bc1f2f00dce46471') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'12815c110c0143a5bc1f2f00dce46471' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'12815c110c0143a5bc1f2f00dce46471', x'582c351f6efd428f9f716afb38d1a667', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'12815c110c0143a5bc1f2f00dce46471') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'12815c110c0143a5bc1f2f00dce46471' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'12815c110c0143a5bc1f2f00dce46471', x'73e399b61de74242a4841b94a07a50cc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"545D48291B3F40289C37A3F1BDCEB22B"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c1b39f63079f4afc95b2e6824e63bcb6' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31383932373331383932333731323733' LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'teste@teste.com', '$2a$04$ljnSliIglIL6kBDyWsCdbuPE2LYFtMPNq9LOK10hcrz7B79tslESW', NULL, x'68c380080d304737803279cc12b62fcb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'68c380080d304737803279cc12b62fcb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'6f63d3f373764ad7ab8d1ba5706ed714', 'd6ad7be12c90cf9ec8f39c40d198b71b', x'68c380080d304737803279cc12b62fcb', 'User', '2012-12-31 12:17:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'68c380080d304737803279cc12b62fcb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'4aabc4cc2b3447e6b436dd9ac102b267', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'account4aabc4cc-2b34-47e6-b436-dd9ac102b267' WHERE `accounts`.`id` = x'4aabc4cc2b3447e6b436dd9ac102b267' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4aabc4cc2b3447e6b436dd9ac102b267' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4aabc4cc2b3447e6b436dd9ac102b267', x'5f124ef4c71247b98d437d74091c07da', x'68c380080d304737803279cc12b62fcb') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5f124ef4c71247b98d437d74091c07da') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f124ef4c71247b98d437d74091c07da' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f124ef4c71247b98d437d74091c07da', x'c1a220d624034c90a96a2ba8ce1dd8ea', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5f124ef4c71247b98d437d74091c07da') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f124ef4c71247b98d437d74091c07da' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f124ef4c71247b98d437d74091c07da', x'6e5c3977292649f59b86cc9ebe66e719', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824b72485_82580435d48372d1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'af90c24baac341c6962765e7c61dba99', 'jabanilson', NULL, 1, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accountaf90c24b-aac3-41c6-9627-65e7c61dba99' WHERE `accounts`.`id` = x'af90c24baac341c6962765e7c61dba99'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'af90c24baac341c6962765e7c61dba99', x'8d7e947f8eaf45daae8ed252dcfbd150', x'68c380080d304737803279cc12b62fcb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8d7e947f8eaf45daae8ed252dcfbd150') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d7e947f8eaf45daae8ed252dcfbd150' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d7e947f8eaf45daae8ed252dcfbd150', x'654b41326d394c45ad9777cbea75cf2c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8d7e947f8eaf45daae8ed252dcfbd150') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d7e947f8eaf45daae8ed252dcfbd150' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d7e947f8eaf45daae8ed252dcfbd150', x'd7c20f866c1444c5bb2cf4b31a474cfd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'68c380080d304737803279cc12b62fcb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'68c380080d304737803279cc12b62fcb' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'68c380080d304737803279cc12b62fcb' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'targetdestroy@teste.teste', '$2a$04$H8HhLHn532QUovOm.XZZ0uV1rT/mbwJ9XI1KANxZ.7VTTuvztDnpO', NULL, x'5bf64c0b12de4445bc6b52e65328da86', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5bf64c0b12de4445bc6b52e65328da86' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'2797013a9764430db5d932431068c9db', '1ec7742ce34187de67ecbbf58d0ea563', x'5bf64c0b12de4445bc6b52e65328da86', 'User', '2012-12-31 12:17:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5bf64c0b12de4445bc6b52e65328da86' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'fb2de30c558e4f00aa58fbd3eb25ac71', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accountfb2de30c-558e-4f00-aa58-fbd3eb25ac71' WHERE `accounts`.`id` = x'fb2de30c558e4f00aa58fbd3eb25ac71' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fb2de30c558e4f00aa58fbd3eb25ac71' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fb2de30c558e4f00aa58fbd3eb25ac71', x'e32dfa1d0a8642abbaea123df6e67178', x'5bf64c0b12de4445bc6b52e65328da86') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e32dfa1d0a8642abbaea123df6e67178') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e32dfa1d0a8642abbaea123df6e67178' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e32dfa1d0a8642abbaea123df6e67178', x'b07a5a72e44545acb4e519871478f43f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e32dfa1d0a8642abbaea123df6e67178') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e32dfa1d0a8642abbaea123df6e67178' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e32dfa1d0a8642abbaea123df6e67178', x'e80c897edbb84079921109f4f0ed2762', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e1824b96673_82580435d483737d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4aabc4cc2b3447e6b436dd9ac102b267' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4aabc4cc2b3447e6b436dd9ac102b267', x'1a71992d4e9b4ede82f7c5d88e0f5ddd', x'5bf64c0b12de4445bc6b52e65328da86') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1a71992d4e9b4ede82f7c5d88e0f5ddd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a71992d4e9b4ede82f7c5d88e0f5ddd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a71992d4e9b4ede82f7c5d88e0f5ddd', x'29350a279b124f7fb49d7c264fa630b4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1a71992d4e9b4ede82f7c5d88e0f5ddd') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a71992d4e9b4ede82f7c5d88e0f5ddd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a71992d4e9b4ede82f7c5d88e0f5ddd', x'cdcd7e1b6103460fa50a312f17b8a429', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"4AABC4CC2B3447E6B436DD9AC102B267", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'68c380080d304737803279cc12b62fcb' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4aabc4cc2b3447e6b436dd9ac102b267' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4aabc4cc-2b34-47e6-b436-dd9ac102b267_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'68c380080d304737803279cc12b62fcb' AND `account_users`.`account_id` = x'4aabc4cc2b3447e6b436dd9ac102b267' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f124ef4c71247b98d437d74091c07da' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f124ef4c71247b98d437d74091c07da' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4aabc4cc2b3447e6b436dd9ac102b267' AND `account_users`.`user_id` = x'38323337313938323337313932383337' LIMIT 1 Completed 404 Not Found in 9ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'teste@teste.com', '$2a$04$/bZB28aTaJQ9nqzgsLXrr.vAs1AdIVBArv49F.asjCarQZEeZxjX6', NULL, x'440ef6aa3ebf41b98a0eeebed076025a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'440ef6aa3ebf41b98a0eeebed076025a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'e3ffa3a4bc8f4238ab83aa31a33396d7', 'df5c51a7f965df9d8ffdd069c966eb06', x'440ef6aa3ebf41b98a0eeebed076025a', 'User', '2012-12-31 12:17:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'440ef6aa3ebf41b98a0eeebed076025a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'8045438be9444ac4bc04877e8d89484a', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'account8045438b-e944-4ac4-bc04-877e8d89484a' WHERE `accounts`.`id` = x'8045438be9444ac4bc04877e8d89484a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8045438be9444ac4bc04877e8d89484a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8045438be9444ac4bc04877e8d89484a', x'789d31fa684e44648a7a0e39abcfba08', x'440ef6aa3ebf41b98a0eeebed076025a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'789d31fa684e44648a7a0e39abcfba08') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'789d31fa684e44648a7a0e39abcfba08' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'789d31fa684e44648a7a0e39abcfba08', x'03d0b90f5aab4195993431637522bc6b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'789d31fa684e44648a7a0e39abcfba08') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'789d31fa684e44648a7a0e39abcfba08' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'789d31fa684e44648a7a0e39abcfba08', x'7db7bd9df4b84e988229d2caca5d4773', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824ba9155_82580435d4837462@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'2839fe7f45d44c749a3b50c0b92bd44c', 'jabanilson', NULL, 1, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'account2839fe7f-45d4-4c74-9a3b-50c0b92bd44c' WHERE `accounts`.`id` = x'2839fe7f45d44c749a3b50c0b92bd44c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2839fe7f45d44c749a3b50c0b92bd44c', x'f14016bd240649158230d8ffa1a0fc1d', x'440ef6aa3ebf41b98a0eeebed076025a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f14016bd240649158230d8ffa1a0fc1d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f14016bd240649158230d8ffa1a0fc1d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f14016bd240649158230d8ffa1a0fc1d', x'ef05a46778704067bdddedd2a091e678', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f14016bd240649158230d8ffa1a0fc1d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f14016bd240649158230d8ffa1a0fc1d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f14016bd240649158230d8ffa1a0fc1d', x'3d0e5660bdd844968f4b2a7534868de9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'440ef6aa3ebf41b98a0eeebed076025a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'440ef6aa3ebf41b98a0eeebed076025a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'440ef6aa3ebf41b98a0eeebed076025a' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'targetdestroy@teste.teste', '$2a$04$BKgU/.zKPRYLp0wNvkgktucGm4yzmxoJlCDbNq3O5r9ZvHu7ZHjju', NULL, x'29adb1ff0e974c42a1fbe2e4c16f0b9c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'29adb1ff0e974c42a1fbe2e4c16f0b9c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'1b3c9aad4ddc47be93b25d3ae6fa1f18', 'e8b9c1a18edd4e84dd631afa5695d75a', x'29adb1ff0e974c42a1fbe2e4c16f0b9c', 'User', '2012-12-31 12:17:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'29adb1ff0e974c42a1fbe2e4c16f0b9c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'e7b5381a73874b1facd80536b6a6f723', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accounte7b5381a-7387-4b1f-acd8-0536b6a6f723' WHERE `accounts`.`id` = x'e7b5381a73874b1facd80536b6a6f723' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e7b5381a73874b1facd80536b6a6f723' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e7b5381a73874b1facd80536b6a6f723', x'eca6f456a97649308575e226705c9b95', x'29adb1ff0e974c42a1fbe2e4c16f0b9c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eca6f456a97649308575e226705c9b95') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eca6f456a97649308575e226705c9b95' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eca6f456a97649308575e226705c9b95', x'f76fb50d2370440c843bd402eac132e6', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eca6f456a97649308575e226705c9b95') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eca6f456a97649308575e226705c9b95' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eca6f456a97649308575e226705c9b95', x'5d66166160654b5685a64e87578b2d1b', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e1824bb8d60_82580435d483752e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2839fe7f45d44c749a3b50c0b92bd44c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2839fe7f45d44c749a3b50c0b92bd44c', x'0591c13353c2403aa9194fe4b1b2eff0', x'29adb1ff0e974c42a1fbe2e4c16f0b9c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0591c13353c2403aa9194fe4b1b2eff0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0591c13353c2403aa9194fe4b1b2eff0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0591c13353c2403aa9194fe4b1b2eff0', x'94ac848b0be8437195d808e672bf82cd', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0591c13353c2403aa9194fe4b1b2eff0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0591c13353c2403aa9194fe4b1b2eff0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0591c13353c2403aa9194fe4b1b2eff0', x'a6f1c1a3b7db4c7fa65e45bd0ba376a1', 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0591c13353c2403aa9194fe4b1b2eff0'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0591c13353c2403aa9194fe4b1b2eff0' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '(9þEÔLtš;PÀ¹+ÔL' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'94ac848b0be8437195d808e672bf82cd' SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a6f1c1a3b7db4c7fa65e45bd0ba376a1'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'0591c13353c2403aa9194fe4b1b2eff0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0591c13353c2403aa9194fe4b1b2eff0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0591c13353c2403aa9194fe4b1b2eff0', x'fe03b10644fe4dadbdb4e960a10bb8bd', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"2839FE7F45D44C749A3B50C0B92BD44C", "user_id"=>"29ADB1FF0E974C42A1FBE2E4C16F0B9C"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'440ef6aa3ebf41b98a0eeebed076025a' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2839fe7f45d44c749a3b50c0b92bd44c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2839fe7f-45d4-4c74-9a3b-50c0b92bd44c_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'440ef6aa3ebf41b98a0eeebed076025a' AND `account_users`.`account_id` = x'2839fe7f45d44c749a3b50c0b92bd44c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f14016bd240649158230d8ffa1a0fc1d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f14016bd240649158230d8ffa1a0fc1d' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2839fe7f45d44c749a3b50c0b92bd44c' AND `account_users`.`user_id` = x'29adb1ff0e974c42a1fbe2e4c16f0b9c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2839fe7f45d44c749a3b50c0b92bd44c' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'29adb1ff0e974c42a1fbe2e4c16f0b9c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0591c13353c2403aa9194fe4b1b2eff0' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:15', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 0591c133-53c2-403a-a919-4fe4b1b2eff0\n', NULL, NULL, NULL, 0, 'account_user_0591c133-53c2-403a-a919-4fe4b1b2eff0_destroy', '2012-12-31 12:17:15', '2012-12-31 12:17:15')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_0591c133-53c2-403a-a919-4fe4b1b2eff0_destroy' LIMIT 1 Redirected to http://test.host/settings/account/2839FE7F45D44C749A3B50C0B92BD44C/users Completed 302 Found in 20ms (ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'teste@teste.com', '$2a$04$HKidEeaANdO3n6wqH4d0QOEyRQGJuOyUirEoMzuDV8dyxqB6XBCAG', NULL, x'909c48acdf2f49aaa1bc586b68b93e50', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'909c48acdf2f49aaa1bc586b68b93e50' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'20c593d3b03c45a1907a3bc51308998d', '9124f7c73e83892c8f9733faf0796c56', x'909c48acdf2f49aaa1bc586b68b93e50', 'User', '2012-12-31 12:17:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'909c48acdf2f49aaa1bc586b68b93e50' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'c6a8d2020b314eea99767dc070017d0c', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accountc6a8d202-0b31-4eea-9976-7dc070017d0c' WHERE `accounts`.`id` = x'c6a8d2020b314eea99767dc070017d0c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c6a8d2020b314eea99767dc070017d0c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c6a8d2020b314eea99767dc070017d0c', x'152ae0047079416aab58361201cf589e', x'909c48acdf2f49aaa1bc586b68b93e50') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'152ae0047079416aab58361201cf589e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'152ae0047079416aab58361201cf589e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'152ae0047079416aab58361201cf589e', x'26ecd3ac19f4407c9849d2ff80adf1d1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'152ae0047079416aab58361201cf589e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'152ae0047079416aab58361201cf589e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'152ae0047079416aab58361201cf589e', x'0d532575e98e41bd8f339d527feedc39', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824be4dda_82580435d48376c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'e75ca02befd5470291613c65dcdab911', 'jabanilson', NULL, 1, '2012-12-31 12:17:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'accounte75ca02b-efd5-4702-9161-3c65dcdab911' WHERE `accounts`.`id` = x'e75ca02befd5470291613c65dcdab911'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e75ca02befd5470291613c65dcdab911', x'392931534eb54a5f92a0ad47b84a2fd4', x'909c48acdf2f49aaa1bc586b68b93e50') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'392931534eb54a5f92a0ad47b84a2fd4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'392931534eb54a5f92a0ad47b84a2fd4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'392931534eb54a5f92a0ad47b84a2fd4', x'77a7ef772ae545cda58ef235b3462c66', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'392931534eb54a5f92a0ad47b84a2fd4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'392931534eb54a5f92a0ad47b84a2fd4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'392931534eb54a5f92a0ad47b84a2fd4', x'da24a0f0de2649c9bcbb30af7e8119b5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'909c48acdf2f49aaa1bc586b68b93e50' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'909c48acdf2f49aaa1bc586b68b93e50' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'909c48acdf2f49aaa1bc586b68b93e50' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:15', 'targetdestroy@teste.teste', '$2a$04$ZAIh13O2bQJvkqN9o/fMle/Ap5VEbGNlFOpH1GkXO43s1HSz6Ja7m', NULL, x'76f4e1805ae6411bb8a8198d1d8039b1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'76f4e1805ae6411bb8a8198d1d8039b1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:15', 'User', x'03c3fce208d241119d4e675e146d0953', '322b490569f6e0ffbe1c8f1ffe795cb2', x'76f4e1805ae6411bb8a8198d1d8039b1', 'User', '2012-12-31 12:17:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'76f4e1805ae6411bb8a8198d1d8039b1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:15', x'9cc7d740d92548f0bdf2b1fe008dcf48', NULL, NULL, NULL, '2012-12-31 12:17:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:15', `updated_at` = '2012-12-31 12:17:15', `subdomain` = 'account9cc7d740-d925-48f0-bdf2-b1fe008dcf48' WHERE `accounts`.`id` = x'9cc7d740d92548f0bdf2b1fe008dcf48' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9cc7d740d92548f0bdf2b1fe008dcf48' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9cc7d740d92548f0bdf2b1fe008dcf48', x'c678b08a76b54f7b94bed70a7ae4baaa', x'76f4e1805ae6411bb8a8198d1d8039b1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c678b08a76b54f7b94bed70a7ae4baaa') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c678b08a76b54f7b94bed70a7ae4baaa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c678b08a76b54f7b94bed70a7ae4baaa', x'88760b176bda46ff80e652c14e643bbd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c678b08a76b54f7b94bed70a7ae4baaa') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c678b08a76b54f7b94bed70a7ae4baaa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c678b08a76b54f7b94bed70a7ae4baaa', x'9f069297cece4599a7c055baf1d3e8fe', 'admin') Sent mail to targetdestroy@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e1824c101c_82580435d483777@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c6a8d2020b314eea99767dc070017d0c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c6a8d2020b314eea99767dc070017d0c', x'bbeb9ee1154942efbe8901ec67cc6c20', x'76f4e1805ae6411bb8a8198d1d8039b1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bbeb9ee1154942efbe8901ec67cc6c20') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbeb9ee1154942efbe8901ec67cc6c20' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbeb9ee1154942efbe8901ec67cc6c20', x'8eb9f2816c554784a1383184e3cd511c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bbeb9ee1154942efbe8901ec67cc6c20') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbeb9ee1154942efbe8901ec67cc6c20' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbeb9ee1154942efbe8901ec67cc6c20', x'014399f52d744b57b812ca779077b79e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bbeb9ee1154942efbe8901ec67cc6c20'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'014399f52d744b57b812ca779077b79e' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbeb9ee1154942efbe8901ec67cc6c20' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ƨÒ 1Nê™v}Àp} ' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8eb9f2816c554784a1383184e3cd511c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bbeb9ee1154942efbe8901ec67cc6c20') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbeb9ee1154942efbe8901ec67cc6c20' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbeb9ee1154942efbe8901ec67cc6c20', x'54b19ad83e404b91bfba42f61db08227', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"C6A8D2020B314EEA99767DC070017D0C", "user_id"=>"76F4E1805AE6411BB8A8198D1D8039B1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'909c48acdf2f49aaa1bc586b68b93e50' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c6a8d2020b314eea99767dc070017d0c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c6a8d202-0b31-4eea-9976-7dc070017d0c_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'909c48acdf2f49aaa1bc586b68b93e50' AND `account_users`.`account_id` = x'c6a8d2020b314eea99767dc070017d0c' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'152ae0047079416aab58361201cf589e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'152ae0047079416aab58361201cf589e' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c6a8d2020b314eea99767dc070017d0c' AND `account_users`.`user_id` = x'76f4e1805ae6411bb8a8198d1d8039b1' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c6a8d2020b314eea99767dc070017d0c' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'76f4e1805ae6411bb8a8198d1d8039b1' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bbeb9ee1154942efbe8901ec67cc6c20' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 13ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'teste@teste.com', '$2a$04$1bUHXHsmWuecvEoJIR4F2.1Av4cIXCFVbl//lwJj28fNxGP2R49tu', NULL, x'41e5e2e082dd4cd8b8940573592235f8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'41e5e2e082dd4cd8b8940573592235f8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'e3f485c61fd44253875c089bf5cca890', '967654bc9b904caa69181f6c9e298677', x'41e5e2e082dd4cd8b8940573592235f8', 'User', '2012-12-31 12:17:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'41e5e2e082dd4cd8b8940573592235f8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'abdbdbfb6f724a33a7292b2eed41f19b', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'accountabdbdbfb-6f72-4a33-a729-2b2eed41f19b' WHERE `accounts`.`id` = x'abdbdbfb6f724a33a7292b2eed41f19b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'abdbdbfb6f724a33a7292b2eed41f19b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'abdbdbfb6f724a33a7292b2eed41f19b', x'0e5c4460295641f0a4a2597392c30f6b', x'41e5e2e082dd4cd8b8940573592235f8') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0e5c4460295641f0a4a2597392c30f6b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e5c4460295641f0a4a2597392c30f6b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e5c4460295641f0a4a2597392c30f6b', x'd303d993831a43b0beff34ac87140a83', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e5c4460295641f0a4a2597392c30f6b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e5c4460295641f0a4a2597392c30f6b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e5c4460295641f0a4a2597392c30f6b', x'64e4e569056f4c70af59be466839ac0b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824c16020_82580435d4837852@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'6197848f876449279691c8875215b7b9', 'jabanilson', NULL, 1, '2012-12-31 12:17:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account6197848f-8764-4927-9691-c8875215b7b9' WHERE `accounts`.`id` = x'6197848f876449279691c8875215b7b9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6197848f876449279691c8875215b7b9', x'88788987f14d45f5ab2d62bb4d411a54', x'41e5e2e082dd4cd8b8940573592235f8') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'88788987f14d45f5ab2d62bb4d411a54') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'88788987f14d45f5ab2d62bb4d411a54' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'88788987f14d45f5ab2d62bb4d411a54', x'3eb004b97e644f59a2d49e9bd785289a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'88788987f14d45f5ab2d62bb4d411a54') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'88788987f14d45f5ab2d62bb4d411a54' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'88788987f14d45f5ab2d62bb4d411a54', x'ec3d3d374f484d42be24fda7a045055c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41e5e2e082dd4cd8b8940573592235f8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41e5e2e082dd4cd8b8940573592235f8' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41e5e2e082dd4cd8b8940573592235f8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'targetdestroy@teste.teste', '$2a$04$yJc3AsJHw4q0eQzDdV12q.almNQ163R7/mOA3TYyNDGJ1LkGEEbaC', NULL, x'90846ec4200b4ff09f5a935410b43298', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'90846ec4200b4ff09f5a935410b43298' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'5bfc50fb297a4d639f3a059000371e5d', 'b6577d175185a3270b9d202afea84a89', x'90846ec4200b4ff09f5a935410b43298', 'User', '2012-12-31 12:17:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'90846ec4200b4ff09f5a935410b43298' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'65a0930b5e4f4cac887c2377ee60ae8a', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account65a0930b-5e4f-4cac-887c-2377ee60ae8a' WHERE `accounts`.`id` = x'65a0930b5e4f4cac887c2377ee60ae8a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'65a0930b5e4f4cac887c2377ee60ae8a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'65a0930b5e4f4cac887c2377ee60ae8a', x'320567b0ee60488480cd1199113a8389', x'90846ec4200b4ff09f5a935410b43298') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'320567b0ee60488480cd1199113a8389') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'320567b0ee60488480cd1199113a8389' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'320567b0ee60488480cd1199113a8389', x'f4a73899b2904b5e9bbd16e75506f5d0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'320567b0ee60488480cd1199113a8389') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'320567b0ee60488480cd1199113a8389' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'320567b0ee60488480cd1199113a8389', x'8845b877058d431b81a689f9f0a478ad', 'admin') Sent mail to targetdestroy@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e1824c264a5_82580435d483799a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'abdbdbfb6f724a33a7292b2eed41f19b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'abdbdbfb6f724a33a7292b2eed41f19b', x'46b561d3904f49db9d326c20c0938308', x'90846ec4200b4ff09f5a935410b43298') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'46b561d3904f49db9d326c20c0938308') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'46b561d3904f49db9d326c20c0938308' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'46b561d3904f49db9d326c20c0938308', x'e6719c8e12e34a88ae7fcc6731b97c91', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'46b561d3904f49db9d326c20c0938308') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'46b561d3904f49db9d326c20c0938308' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'46b561d3904f49db9d326c20c0938308', x'c6314e9663104c51bf9c900d40db9374', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'abdbdbfb6f724a33a7292b2eed41f19b' AND `account_users`.`user_id` = x'41e5e2e082dd4cd8b8940573592235f8' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e5c4460295641f0a4a2597392c30f6b'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'64e4e569056f4c70af59be466839ac0b' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e5c4460295641f0a4a2597392c30f6b' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '«ÛÛûorJ3§)+.íAñ›' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd303d993831a43b0beff34ac87140a83'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e5c4460295641f0a4a2597392c30f6b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e5c4460295641f0a4a2597392c30f6b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e5c4460295641f0a4a2597392c30f6b', x'4562fa6783de4542be734b5154404369', 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"abdbdbfb-6f72-4a33-a729-2b2eed41f19b", "user_id"=>"41e5e2e0-82dd-4cd8-b894-0573592235f8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'41e5e2e082dd4cd8b8940573592235f8' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'abdbdbfb6f724a33a7292b2eed41f19b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_abdbdbfb-6f72-4a33-a729-2b2eed41f19b_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'41e5e2e082dd4cd8b8940573592235f8' AND `account_users`.`account_id` = x'abdbdbfb6f724a33a7292b2eed41f19b' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e5c4460295641f0a4a2597392c30f6b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e5c4460295641f0a4a2597392c30f6b' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'abdbdbfb6f724a33a7292b2eed41f19b' AND `account_users`.`user_id` = x'41e5e2e082dd4cd8b8940573592235f8' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'abdbdbfb6f724a33a7292b2eed41f19b' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'41e5e2e082dd4cd8b8940573592235f8' LIMIT 1 Completed 404 Not Found in 11ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'teste@teste.com', '$2a$04$5ybn/mGhp61C2S78edLKuutZwebMsmVMozu2bLvabHGkzMjvAeII6', NULL, x'9533856b752347259a42b1329ce15321', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9533856b752347259a42b1329ce15321' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'9a0bde4b76a64ff4b2d2b804021af68b', '69853e5ac6e0f38bac59d7444c6f6b6d', x'9533856b752347259a42b1329ce15321', 'User', '2012-12-31 12:17:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9533856b752347259a42b1329ce15321' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'63c9f704930743b49c68c271eeaea7be', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account63c9f704-9307-43b4-9c68-c271eeaea7be' WHERE `accounts`.`id` = x'63c9f704930743b49c68c271eeaea7be' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'63c9f704930743b49c68c271eeaea7be' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'63c9f704930743b49c68c271eeaea7be', x'd23f2e4cb6ab45b0ba69228ef5a6275d', x'9533856b752347259a42b1329ce15321') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd23f2e4cb6ab45b0ba69228ef5a6275d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd23f2e4cb6ab45b0ba69228ef5a6275d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd23f2e4cb6ab45b0ba69228ef5a6275d', x'aa23f6c1c558440d860edbe0836b7e2d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd23f2e4cb6ab45b0ba69228ef5a6275d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd23f2e4cb6ab45b0ba69228ef5a6275d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd23f2e4cb6ab45b0ba69228ef5a6275d', x'b3a57f5d20ce4e37928d1633ef4eedea', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824c51469_82580435d483802e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'843a96b2cdcd474799cd3dc9fed7027c', 'jabanilson', NULL, 1, '2012-12-31 12:17:16')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account843a96b2-cdcd-4747-99cd-3dc9fed7027c' WHERE `accounts`.`id` = x'843a96b2cdcd474799cd3dc9fed7027c'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'843a96b2cdcd474799cd3dc9fed7027c', x'6a9cb6d6bf3a4949b421260e1f0236ce', x'9533856b752347259a42b1329ce15321') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6a9cb6d6bf3a4949b421260e1f0236ce') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6a9cb6d6bf3a4949b421260e1f0236ce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6a9cb6d6bf3a4949b421260e1f0236ce', x'cd7e0061410c439d91f2bf64b3b328d1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6a9cb6d6bf3a4949b421260e1f0236ce') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6a9cb6d6bf3a4949b421260e1f0236ce' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6a9cb6d6bf3a4949b421260e1f0236ce', x'5d8eb53bed0246ae8f30d7a57a492a63', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9533856b752347259a42b1329ce15321' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9533856b752347259a42b1329ce15321' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9533856b752347259a42b1329ce15321' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'target@test.test', '$2a$04$Elbol.z2SiqkN8G6JVn3L.JhWlx5Yl6mJlI.qC7D9LpxX4VfA26yu', NULL, x'e95043fa84ac4ce0a2f806d302585b09', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e95043fa84ac4ce0a2f806d302585b09' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'621d92fdd241431eb4338fe88201cf29', '22b30c1d6239e7ed2fe1d511d5d64720', x'e95043fa84ac4ce0a2f806d302585b09', 'User', '2012-12-31 12:17:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e95043fa84ac4ce0a2f806d302585b09' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'42def2291e1f4071b93ed42f93b766e1', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account42def229-1e1f-4071-b93e-d42f93b766e1' WHERE `accounts`.`id` = x'42def2291e1f4071b93ed42f93b766e1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'42def2291e1f4071b93ed42f93b766e1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'42def2291e1f4071b93ed42f93b766e1', x'ba6cf488de554870a489a5cb4760aecd', x'e95043fa84ac4ce0a2f806d302585b09') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ba6cf488de554870a489a5cb4760aecd') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ba6cf488de554870a489a5cb4760aecd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ba6cf488de554870a489a5cb4760aecd', x'f3496f62737f4441864465177c598ad0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ba6cf488de554870a489a5cb4760aecd') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ba6cf488de554870a489a5cb4760aecd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ba6cf488de554870a489a5cb4760aecd', x'505eec517b924ca0b9fa512888292af4', 'admin') Sent mail to target@test.test (6ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e1824c619c1_82580435d4838114@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'843a96b2cdcd474799cd3dc9fed7027c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'843a96b2cdcd474799cd3dc9fed7027c', x'f1463a1fd75845ff9ebe7a5c8680045d', x'e95043fa84ac4ce0a2f806d302585b09') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f1463a1fd75845ff9ebe7a5c8680045d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f1463a1fd75845ff9ebe7a5c8680045d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f1463a1fd75845ff9ebe7a5c8680045d', x'93f0b9b605c14f27bfd21bb27a1b2cca', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f1463a1fd75845ff9ebe7a5c8680045d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f1463a1fd75845ff9ebe7a5c8680045d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f1463a1fd75845ff9ebe7a5c8680045d', x'7a93cbd580e04710b9c334273d33b619', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f1463a1fd75845ff9ebe7a5c8680045d'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7a93cbd580e04710b9c334273d33b619' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f1463a1fd75845ff9ebe7a5c8680045d' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '„:–²ÍÍGG™Í=Éþ×|' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'93f0b9b605c14f27bfd21bb27a1b2cca'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'f1463a1fd75845ff9ebe7a5c8680045d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f1463a1fd75845ff9ebe7a5c8680045d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f1463a1fd75845ff9ebe7a5c8680045d', x'677b3c5d010a49d58db7efb629611c47', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:16', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: f1463a1f-d758-45ff-9ebe-7a5c8680045d\n', NULL, NULL, NULL, 0, 'account_user_f1463a1f-d758-45ff-9ebe-7a5c8680045d_destroy', '2012-12-31 12:17:16', '2012-12-31 12:17:16')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"E95043FA84AC4CE0A2F806D302585B09"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9533856b752347259a42b1329ce15321' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31383932373331383932333731323733' LIMIT 1 Completed 404 Not Found in 4ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'teste@teste.com', '$2a$04$ca2ww0R.9Wm4ebbATTDaUeLKXE5IIe0ctWYzpO869dx8Sw37Mz5xW', NULL, x'45a1b911794941d1bb100f6be78763b5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'45a1b911794941d1bb100f6be78763b5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'c9e215e9bc2f47ceb0104e006495a2a0', 'c59fda587d54447846c6bed3ba3feee1', x'45a1b911794941d1bb100f6be78763b5', 'User', '2012-12-31 12:17:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'45a1b911794941d1bb100f6be78763b5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'3029a605624943bbaef74c5ccd9a76a1', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account3029a605-6249-43bb-aef7-4c5ccd9a76a1' WHERE `accounts`.`id` = x'3029a605624943bbaef74c5ccd9a76a1' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3029a605624943bbaef74c5ccd9a76a1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3029a605624943bbaef74c5ccd9a76a1', x'7b5194ec13f74d5f8bb6176bbdfc30db', x'45a1b911794941d1bb100f6be78763b5') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7b5194ec13f74d5f8bb6176bbdfc30db') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b5194ec13f74d5f8bb6176bbdfc30db' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b5194ec13f74d5f8bb6176bbdfc30db', x'65621aa53feb4bd981e3910aa462aef2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7b5194ec13f74d5f8bb6176bbdfc30db') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b5194ec13f74d5f8bb6176bbdfc30db' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b5194ec13f74d5f8bb6176bbdfc30db', x'1ddfbc8c0b5a4b7d93f4f0ef140bd0b5', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824c75062_82580435d48382a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'82a50549057d4ccbb0a605fbd76e0eb9', 'jabanilson', NULL, 1, '2012-12-31 12:17:16')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account82a50549-057d-4ccb-b0a6-05fbd76e0eb9' WHERE `accounts`.`id` = x'82a50549057d4ccbb0a605fbd76e0eb9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'82a50549057d4ccbb0a605fbd76e0eb9', x'60c25936e02049e7adac1925502ac4b2', x'45a1b911794941d1bb100f6be78763b5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'60c25936e02049e7adac1925502ac4b2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'60c25936e02049e7adac1925502ac4b2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'60c25936e02049e7adac1925502ac4b2', x'223c3a321a6f41aab8bb5a4389d5466b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'60c25936e02049e7adac1925502ac4b2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'60c25936e02049e7adac1925502ac4b2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'60c25936e02049e7adac1925502ac4b2', x'd659c19c5b6f4edfa8b12e641388a591', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45a1b911794941d1bb100f6be78763b5' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45a1b911794941d1bb100f6be78763b5' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45a1b911794941d1bb100f6be78763b5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'target@test.test', '$2a$04$aibLiTKL8e9f.n4v/D5uRuQMteUvOlY8D3oi65xRdPXFTo9oPN4Fq', NULL, x'cca72a7db0c043468945feb799e99527', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cca72a7db0c043468945feb799e99527' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'edc10a085c87407da7a7731f753283b6', '7ef7875aeef66cd1dc8e981d39432327', x'cca72a7db0c043468945feb799e99527', 'User', '2012-12-31 12:17:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cca72a7db0c043468945feb799e99527' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'efbcf2b1a0054a09b59c0267a00fbd7d', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'accountefbcf2b1-a005-4a09-b59c-0267a00fbd7d' WHERE `accounts`.`id` = x'efbcf2b1a0054a09b59c0267a00fbd7d' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'efbcf2b1a0054a09b59c0267a00fbd7d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'efbcf2b1a0054a09b59c0267a00fbd7d', x'e3c4a38a7f564bafa3df9c932985fe82', x'cca72a7db0c043468945feb799e99527') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e3c4a38a7f564bafa3df9c932985fe82') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e3c4a38a7f564bafa3df9c932985fe82' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e3c4a38a7f564bafa3df9c932985fe82', x'99588e722a074adebbfcffd427111bdd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e3c4a38a7f564bafa3df9c932985fe82') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e3c4a38a7f564bafa3df9c932985fe82' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e3c4a38a7f564bafa3df9c932985fe82', x'7dee3ddebbe346a5ad6532a7475b92f8', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e1824c85af0_82580435d4838370@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'82a50549057d4ccbb0a605fbd76e0eb9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'82a50549057d4ccbb0a605fbd76e0eb9', x'579968924f01434b8700b00fbba65a86', x'cca72a7db0c043468945feb799e99527') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'579968924f01434b8700b00fbba65a86') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'579968924f01434b8700b00fbba65a86' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'579968924f01434b8700b00fbba65a86', x'6788a810358b40509c7f000f1accb297', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'579968924f01434b8700b00fbba65a86') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'579968924f01434b8700b00fbba65a86' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'579968924f01434b8700b00fbba65a86', x'290fa01bcaae466d99be67da0c73328a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'579968924f01434b8700b00fbba65a86'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'290fa01bcaae466d99be67da0c73328a' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'579968924f01434b8700b00fbba65a86' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '‚¥I}LË°¦û×n¹' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'6788a810358b40509c7f000f1accb297'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'579968924f01434b8700b00fbba65a86') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'579968924f01434b8700b00fbba65a86' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'579968924f01434b8700b00fbba65a86', x'd9cd08f307dd4f30af7c7efed44f3321', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:16', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 57996892-4f01-434b-8700-b00fbba65a86\n', NULL, NULL, NULL, 0, 'account_user_57996892-4f01-434b-8700-b00fbba65a86_destroy', '2012-12-31 12:17:16', '2012-12-31 12:17:16')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"82A50549057D4CCBB0A605FBD76E0EB9", "user_id"=>"18237198237192837"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'45a1b911794941d1bb100f6be78763b5' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'82a50549057d4ccbb0a605fbd76e0eb9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_82a50549-057d-4ccb-b0a6-05fbd76e0eb9_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'45a1b911794941d1bb100f6be78763b5' AND `account_users`.`account_id` = x'82a50549057d4ccbb0a605fbd76e0eb9' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'60c25936e02049e7adac1925502ac4b2' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'60c25936e02049e7adac1925502ac4b2' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'82a50549057d4ccbb0a605fbd76e0eb9' AND `account_users`.`user_id` = x'38323337313938323337313932383337' LIMIT 1 Completed 404 Not Found in 9ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'teste@teste.com', '$2a$04$PbJ9GM46VdSDH15N4XLVveglWckBQdBZIQXqZOf3v0KgaLkUUegIq', NULL, x'fa1a982182c24d88b5a0e05fe973567a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fa1a982182c24d88b5a0e05fe973567a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'bdce6d92a9e0466fa7bca4e195c3f5d3', 'be2dc3d53e9ead3de3d8e5cc6a62cd59', x'fa1a982182c24d88b5a0e05fe973567a', 'User', '2012-12-31 12:17:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fa1a982182c24d88b5a0e05fe973567a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'5cb9a92367394502b6a50a668112641d', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account5cb9a923-6739-4502-b6a5-0a668112641d' WHERE `accounts`.`id` = x'5cb9a92367394502b6a50a668112641d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5cb9a92367394502b6a50a668112641d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5cb9a92367394502b6a50a668112641d', x'4d60c9795bc14c1ca693a1183eb0049a', x'fa1a982182c24d88b5a0e05fe973567a') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4d60c9795bc14c1ca693a1183eb0049a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d60c9795bc14c1ca693a1183eb0049a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4d60c9795bc14c1ca693a1183eb0049a', x'60caf511880d4a48a72e42d98707c12b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4d60c9795bc14c1ca693a1183eb0049a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d60c9795bc14c1ca693a1183eb0049a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4d60c9795bc14c1ca693a1183eb0049a', x'd4fda244daae4e1884dc2c6549c0ecc1', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824cb041d_82580435d483841@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'169dd33f1483439d89a2848a9a06814c', 'jabanilson', NULL, 1, '2012-12-31 12:17:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account169dd33f-1483-439d-89a2-848a9a06814c' WHERE `accounts`.`id` = x'169dd33f1483439d89a2848a9a06814c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'169dd33f1483439d89a2848a9a06814c', x'ee4d7f06d54a47c2bca6357b56806b68', x'fa1a982182c24d88b5a0e05fe973567a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ee4d7f06d54a47c2bca6357b56806b68') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ee4d7f06d54a47c2bca6357b56806b68' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ee4d7f06d54a47c2bca6357b56806b68', x'8e8240a991444ceea6ea155a3c507d62', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ee4d7f06d54a47c2bca6357b56806b68') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ee4d7f06d54a47c2bca6357b56806b68' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ee4d7f06d54a47c2bca6357b56806b68', x'8bbfc2a932ac4ee4a88e949271e5764b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa1a982182c24d88b5a0e05fe973567a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa1a982182c24d88b5a0e05fe973567a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa1a982182c24d88b5a0e05fe973567a' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'target@test.test', '$2a$04$jsStyje/VULxuMug6cShrusCWi8XaXB4qPOWL1asN0zD5SNV47QVW', NULL, x'28592b0f7d254a488d93d352940dca4c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'28592b0f7d254a488d93d352940dca4c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'bbec215a520d43dab510a0e3fb6bd25b', 'e218fbd7d62016a62447a0a8f7a5c193', x'28592b0f7d254a488d93d352940dca4c', 'User', '2012-12-31 12:17:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'28592b0f7d254a488d93d352940dca4c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'59ef0a3eb7844fd99fe1876e63dff7b3', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account59ef0a3e-b784-4fd9-9fe1-876e63dff7b3' WHERE `accounts`.`id` = x'59ef0a3eb7844fd99fe1876e63dff7b3' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'59ef0a3eb7844fd99fe1876e63dff7b3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'59ef0a3eb7844fd99fe1876e63dff7b3', x'5cefe9cf31974cd7a5f90892d220089f', x'28592b0f7d254a488d93d352940dca4c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5cefe9cf31974cd7a5f90892d220089f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5cefe9cf31974cd7a5f90892d220089f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5cefe9cf31974cd7a5f90892d220089f', x'6a809ccaa2b24f909776f35080abaac5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5cefe9cf31974cd7a5f90892d220089f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5cefe9cf31974cd7a5f90892d220089f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5cefe9cf31974cd7a5f90892d220089f', x'a19f3c97ca9f4b66bc3f53707ec07da8', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e1824cc051c_82580435d4838577@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5cb9a92367394502b6a50a668112641d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5cb9a92367394502b6a50a668112641d', x'da51e8a97c48495fb419db43371d79b9', x'28592b0f7d254a488d93d352940dca4c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da51e8a97c48495fb419db43371d79b9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da51e8a97c48495fb419db43371d79b9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da51e8a97c48495fb419db43371d79b9', x'41f874c2ad2945979a4a334291f848da', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'da51e8a97c48495fb419db43371d79b9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da51e8a97c48495fb419db43371d79b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da51e8a97c48495fb419db43371d79b9', x'26689b669d774152a8bddb855a154576', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'da51e8a97c48495fb419db43371d79b9'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'26689b669d774152a8bddb855a154576' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da51e8a97c48495fb419db43371d79b9' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'41f874c2ad2945979a4a334291f848da'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'da51e8a97c48495fb419db43371d79b9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da51e8a97c48495fb419db43371d79b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da51e8a97c48495fb419db43371d79b9', x'cf4c9045d0724555b9989901152d1f8f', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:16', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: da51e8a9-7c48-495f-b419-db43371d79b9\n', NULL, NULL, NULL, 0, 'account_user_da51e8a9-7c48-495f-b419-db43371d79b9_destroy', '2012-12-31 12:17:16', '2012-12-31 12:17:16')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'fa1a982182c24d88b5a0e05fe973567a' AND `account_users`.`account_id` = x'5cb9a92367394502b6a50a668112641d' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4d60c9795bc14c1ca693a1183eb0049a'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d60c9795bc14c1ca693a1183eb0049a' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd4fda244daae4e1884dc2c6549c0ecc1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4d60c9795bc14c1ca693a1183eb0049a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d60c9795bc14c1ca693a1183eb0049a' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"5CB9A92367394502B6A50A668112641D", "user_id"=>"28592B0F7D254A488D93D352940DCA4C"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fa1a982182c24d88b5a0e05fe973567a' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5cb9a92367394502b6a50a668112641d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5cb9a923-6739-4502-b6a5-0a668112641d_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'fa1a982182c24d88b5a0e05fe973567a' AND `account_users`.`account_id` = x'5cb9a92367394502b6a50a668112641d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4d60c9795bc14c1ca693a1183eb0049a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4d60c9795bc14c1ca693a1183eb0049a' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5cb9a92367394502b6a50a668112641d' AND `account_users`.`user_id` = x'28592b0f7d254a488d93d352940dca4c' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5cb9a92367394502b6a50a668112641d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_da51e8a9-7c48-495f-b419-db43371d79b9_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_da51e8a9-7c48-495f-b419-db43371d79b9_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/5CB9A92367394502B6A50A668112641D/users Completed 302 Found in 12ms (ActiveRecord: 2.4ms) Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_da51e8a9-7c48-495f-b419-db43371d79b9_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'teste@teste.com', '$2a$04$xNHNs6iFOXXeZ6UApu.p7uM3Rwmd0Y9Or2AF4kmVa.pmiwbnUheN.', NULL, x'd3818b674d95441c8cbcb36fd529a792', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd3818b674d95441c8cbcb36fd529a792' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'1fa58bc620a941e49eb6429b5345dcfc', '9940f67da3c7ef0739fb8a0595dc6a4c', x'd3818b674d95441c8cbcb36fd529a792', 'User', '2012-12-31 12:17:16') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd3818b674d95441c8cbcb36fd529a792' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'9146051a971141edbff836ff77edb65e', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account9146051a-9711-41ed-bff8-36ff77edb65e' WHERE `accounts`.`id` = x'9146051a971141edbff836ff77edb65e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9146051a971141edbff836ff77edb65e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9146051a971141edbff836ff77edb65e', x'4f534a22432f401788394f3f62f4fb01', x'd3818b674d95441c8cbcb36fd529a792') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4f534a22432f401788394f3f62f4fb01') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f534a22432f401788394f3f62f4fb01' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f534a22432f401788394f3f62f4fb01', x'4a511e422cf948f6809add5ade4c74de', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4f534a22432f401788394f3f62f4fb01') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f534a22432f401788394f3f62f4fb01' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f534a22432f401788394f3f62f4fb01', x'a58711cc57ce4e6caa6a1362081be5b7', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824cd9567_82580435d4838625@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'60a7503cab7c4571a1a5509e49d5c2cc', 'jabanilson', NULL, 1, '2012-12-31 12:17:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account60a7503c-ab7c-4571-a1a5-509e49d5c2cc' WHERE `accounts`.`id` = x'60a7503cab7c4571a1a5509e49d5c2cc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'60a7503cab7c4571a1a5509e49d5c2cc', x'883a91f879974783a34944b554df2a04', x'd3818b674d95441c8cbcb36fd529a792') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'883a91f879974783a34944b554df2a04') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'883a91f879974783a34944b554df2a04' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'883a91f879974783a34944b554df2a04', x'c5cb131d1f30409db8c2db385433c243', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'883a91f879974783a34944b554df2a04') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'883a91f879974783a34944b554df2a04' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'883a91f879974783a34944b554df2a04', x'34fd993750ba4a0e9a4cd92b4688ab3e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3818b674d95441c8cbcb36fd529a792' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3818b674d95441c8cbcb36fd529a792' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3818b674d95441c8cbcb36fd529a792' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (8.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:16', 'target@test.test', '$2a$04$/m0slCdhuv119mTiilJM3./yBT/CUIgQbXm/9iGg5bLHFOB.qUdHG', NULL, x'839603e0b90741af96f26e73acc2ff03', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'839603e0b90741af96f26e73acc2ff03' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:16', 'User', x'dd180d56eab54423b4fc7c441c77569f', '9cec7cccccdefb163f63830b0f9a19ab', x'839603e0b90741af96f26e73acc2ff03', 'User', '2012-12-31 12:17:16') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'839603e0b90741af96f26e73acc2ff03' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:16', x'01310060207f4e6aaf807217842bdca8', NULL, NULL, NULL, '2012-12-31 12:17:16')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:16', `updated_at` = '2012-12-31 12:17:16', `subdomain` = 'account01310060-207f-4e6a-af80-7217842bdca8' WHERE `accounts`.`id` = x'01310060207f4e6aaf807217842bdca8' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'01310060207f4e6aaf807217842bdca8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'01310060207f4e6aaf807217842bdca8', x'0bbaf725b5fc4a3dab001dd7c590270e', x'839603e0b90741af96f26e73acc2ff03') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0bbaf725b5fc4a3dab001dd7c590270e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0bbaf725b5fc4a3dab001dd7c590270e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0bbaf725b5fc4a3dab001dd7c590270e', x'da2a952cce344d7ca583f4cf11a2b577', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0bbaf725b5fc4a3dab001dd7c590270e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0bbaf725b5fc4a3dab001dd7c590270e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0bbaf725b5fc4a3dab001dd7c590270e', x'3f06e487ab154cc497e5654c5cdee33c', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:17:16 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e1824cec7cb_82580435d483872d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'60a7503cab7c4571a1a5509e49d5c2cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'60a7503cab7c4571a1a5509e49d5c2cc', x'ad24310d11894f02932861ecca64ab09', x'839603e0b90741af96f26e73acc2ff03') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ad24310d11894f02932861ecca64ab09') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad24310d11894f02932861ecca64ab09' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad24310d11894f02932861ecca64ab09', x'c0e7b736803e44e39e4ea8caf6890013', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ad24310d11894f02932861ecca64ab09') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad24310d11894f02932861ecca64ab09' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad24310d11894f02932861ecca64ab09', x'70d9c9dcdfac49c98cd6140b0e753691', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ad24310d11894f02932861ecca64ab09'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'70d9c9dcdfac49c98cd6140b0e753691' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad24310d11894f02932861ecca64ab09' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '`§P<«|Eq¡¥PžIÕÂÌ' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c0e7b736803e44e39e4ea8caf6890013'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'ad24310d11894f02932861ecca64ab09') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad24310d11894f02932861ecca64ab09' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad24310d11894f02932861ecca64ab09', x'5d85bb76d0804a1bae562ef62a6d6d0d', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:17', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: ad24310d-1189-4f02-9328-61ecca64ab09\n', NULL, NULL, NULL, 0, 'account_user_ad24310d-1189-4f02-9328-61ecca64ab09_destroy', '2012-12-31 12:17:17', '2012-12-31 12:17:17')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd3818b674d95441c8cbcb36fd529a792' AND `account_users`.`account_id` = x'60a7503cab7c4571a1a5509e49d5c2cc' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'883a91f879974783a34944b554df2a04'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'34fd993750ba4a0e9a4cd92b4688ab3e' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'883a91f879974783a34944b554df2a04' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '`§P<«|Eq¡¥PžIÕÂÌ' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'883a91f879974783a34944b554df2a04') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'883a91f879974783a34944b554df2a04' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"60A7503CAB7C4571A1A5509E49D5C2CC", "user_id"=>"839603E0B90741AF96F26E73ACC2FF03"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd3818b674d95441c8cbcb36fd529a792' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'60a7503cab7c4571a1a5509e49d5c2cc' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_60a7503c-ab7c-4571-a1a5-509e49d5c2cc_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd3818b674d95441c8cbcb36fd529a792' AND `account_users`.`account_id` = x'60a7503cab7c4571a1a5509e49d5c2cc' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'883a91f879974783a34944b554df2a04' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'883a91f879974783a34944b554df2a04' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'60a7503cab7c4571a1a5509e49d5c2cc' AND `account_users`.`user_id` = x'839603e0b90741af96f26e73acc2ff03' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'60a7503cab7c4571a1a5509e49d5c2cc' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ad24310d-1189-4f02-9328-61ecca64ab09_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ad24310d-1189-4f02-9328-61ecca64ab09_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/60A7503CAB7C4571A1A5509E49D5C2CC/users Completed 302 Found in 12ms (ActiveRecord: 2.6ms)  (1.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:17', 'teste@teste.com', '$2a$04$eHWZzwLaPj/FANBrUrWsnu3p3VKJjyEHXHtg2ItjMFAYxUg5QiCCG', NULL, x'8488b0f794e747d5b595c43360f1244d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8488b0f794e747d5b595c43360f1244d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:17', 'User', x'3180ffd3903742cd9ae2e50b9979fdeb', 'e979898b15a87a482a87e9d74084b119', x'8488b0f794e747d5b595c43360f1244d', 'User', '2012-12-31 12:17:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8488b0f794e747d5b595c43360f1244d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'620c8e0763694efea37b1eb0d7fbd9a8', NULL, NULL, NULL, '2012-12-31 12:17:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account620c8e07-6369-4efe-a37b-1eb0d7fbd9a8' WHERE `accounts`.`id` = x'620c8e0763694efea37b1eb0d7fbd9a8' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'620c8e0763694efea37b1eb0d7fbd9a8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'620c8e0763694efea37b1eb0d7fbd9a8', x'ab516ee0b6ff49449d287b49675762f9', x'8488b0f794e747d5b595c43360f1244d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ab516ee0b6ff49449d287b49675762f9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab516ee0b6ff49449d287b49675762f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab516ee0b6ff49449d287b49675762f9', x'6a2cbae7ab674d0a8d12368c681cd774', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ab516ee0b6ff49449d287b49675762f9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab516ee0b6ff49449d287b49675762f9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab516ee0b6ff49449d287b49675762f9', x'9f57e03edfd14fa28d1c33f03961692c', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824d27745_82580435d48388f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'90da884d695a443a92cacc4c1fe5f3f0', 'jabanilson', NULL, 1, '2012-12-31 12:17:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account90da884d-695a-443a-92ca-cc4c1fe5f3f0' WHERE `accounts`.`id` = x'90da884d695a443a92cacc4c1fe5f3f0'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'90da884d695a443a92cacc4c1fe5f3f0', x'2c4e4df261d442218215760a33d187c2', x'8488b0f794e747d5b595c43360f1244d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2c4e4df261d442218215760a33d187c2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2c4e4df261d442218215760a33d187c2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2c4e4df261d442218215760a33d187c2', x'cb8dffb595dd49589235a84db2276295', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2c4e4df261d442218215760a33d187c2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2c4e4df261d442218215760a33d187c2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2c4e4df261d442218215760a33d187c2', x'd40fbf24e2304d61aa802de8f55ec333', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8488b0f794e747d5b595c43360f1244d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8488b0f794e747d5b595c43360f1244d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8488b0f794e747d5b595c43360f1244d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:17', 'target@test.test', '$2a$04$AdMTWVtU.DWKAOBISo6Z0OC6eewXGFAdSt/PLr1J/eZJZjyGBsexS', NULL, x'23242d07b9054a82a5fef5346ee1b767', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'23242d07b9054a82a5fef5346ee1b767' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:17', 'User', x'52b064934f63431b98d2cd17aaad33f3', 'ea95c3b7c22ee100537bc4b01e636e9b', x'23242d07b9054a82a5fef5346ee1b767', 'User', '2012-12-31 12:17:17') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'23242d07b9054a82a5fef5346ee1b767' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'd106f182d9dd40b4ad057da4b7e651bf', NULL, NULL, NULL, '2012-12-31 12:17:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'accountd106f182-d9dd-40b4-ad05-7da4b7e651bf' WHERE `accounts`.`id` = x'd106f182d9dd40b4ad057da4b7e651bf' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd106f182d9dd40b4ad057da4b7e651bf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd106f182d9dd40b4ad057da4b7e651bf', x'7802b171708d4a12abe42e9e69bb58a4', x'23242d07b9054a82a5fef5346ee1b767') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7802b171708d4a12abe42e9e69bb58a4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7802b171708d4a12abe42e9e69bb58a4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7802b171708d4a12abe42e9e69bb58a4', x'43f9c8179f55410fb63b1e4397ce164c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7802b171708d4a12abe42e9e69bb58a4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7802b171708d4a12abe42e9e69bb58a4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7802b171708d4a12abe42e9e69bb58a4', x'e06386f06444476ead6254e76d3cca7a', 'admin') Sent mail to target@test.test (6ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e1824d3788f_82580435d4838917@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'90da884d695a443a92cacc4c1fe5f3f0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'90da884d695a443a92cacc4c1fe5f3f0', x'57a3577563374303b3a5f2390ae4593d', x'23242d07b9054a82a5fef5346ee1b767') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'57a3577563374303b3a5f2390ae4593d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57a3577563374303b3a5f2390ae4593d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57a3577563374303b3a5f2390ae4593d', x'32422397d5c34ce0adcede2a06e2fcc6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'57a3577563374303b3a5f2390ae4593d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57a3577563374303b3a5f2390ae4593d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57a3577563374303b3a5f2390ae4593d', x'8db1f7a069c24835be16eb8d90549b8c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'57a3577563374303b3a5f2390ae4593d'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57a3577563374303b3a5f2390ae4593d' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ÚˆMiZD:’ÊÌLåóð' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'32422397d5c34ce0adcede2a06e2fcc6' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8db1f7a069c24835be16eb8d90549b8c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'57a3577563374303b3a5f2390ae4593d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57a3577563374303b3a5f2390ae4593d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57a3577563374303b3a5f2390ae4593d', x'504f38b2034548ba84434e2683f79bb7', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:17', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 57a35775-6337-4303-b3a5-f2390ae4593d\n', NULL, NULL, NULL, 0, 'account_user_57a35775-6337-4303-b3a5-f2390ae4593d_destroy', '2012-12-31 12:17:17', '2012-12-31 12:17:17')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:17', 'notowner@account.test', '$2a$04$6wTaCImE8GHrH8FSGiK4SeTQZPlRBkrO01cJf5ca.LmXbBmSq2yhu', NULL, x'e4e302d624a64eeba42d7fd875cb756b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:17') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e4e302d624a64eeba42d7fd875cb756b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:17', 'User', x'c26dd9d3e76d4d9f88566fe235cd7d7e', 'b105026246be05924db78490f11c7427', x'e4e302d624a64eeba42d7fd875cb756b', 'User', '2012-12-31 12:17:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e4e302d624a64eeba42d7fd875cb756b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'00ba0af46c0b4e42af43adca06764b9e', NULL, NULL, NULL, '2012-12-31 12:17:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account00ba0af4-6c0b-4e42-af43-adca06764b9e' WHERE `accounts`.`id` = x'00ba0af46c0b4e42af43adca06764b9e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00ba0af46c0b4e42af43adca06764b9e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'00ba0af46c0b4e42af43adca06764b9e', x'd0a0702e17b949a1a2caed461f52c11d', x'e4e302d624a64eeba42d7fd875cb756b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd0a0702e17b949a1a2caed461f52c11d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0a0702e17b949a1a2caed461f52c11d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0a0702e17b949a1a2caed461f52c11d', x'3505f584c1bc4801843a1a7268007652', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd0a0702e17b949a1a2caed461f52c11d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0a0702e17b949a1a2caed461f52c11d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0a0702e17b949a1a2caed461f52c11d', x'ecb7e08b1d4a44ea92ac93f57fe39bc3', 'admin') Sent mail to notowner@account.test (7ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e1824d49de0_82580435d483902b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'090dd5f131994e6b9f474cbceed2b97f', 'jabanilson', NULL, 1, '2012-12-31 12:17:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account090dd5f1-3199-4e6b-9f47-4cbceed2b97f' WHERE `accounts`.`id` = x'090dd5f131994e6b9f474cbceed2b97f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'090dd5f131994e6b9f474cbceed2b97f', x'5bf073f8c15d45bb8e38b22b494183fb', x'e4e302d624a64eeba42d7fd875cb756b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5bf073f8c15d45bb8e38b22b494183fb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5bf073f8c15d45bb8e38b22b494183fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5bf073f8c15d45bb8e38b22b494183fb', x'3e9bb65ea9534b5893d96642e6c989c3', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5bf073f8c15d45bb8e38b22b494183fb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5bf073f8c15d45bb8e38b22b494183fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5bf073f8c15d45bb8e38b22b494183fb', x'1f82695110604dbea3b2a5f491461993', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'90da884d695a443a92cacc4c1fe5f3f0' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'90da884d695a443a92cacc4c1fe5f3f0' WHERE `account_users`.`id` = x'5bf073f8c15d45bb8e38b22b494183fb'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8488b0f794e747d5b595c43360f1244d' AND `account_users`.`account_id` = x'90da884d695a443a92cacc4c1fe5f3f0' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2c4e4df261d442218215760a33d187c2'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2c4e4df261d442218215760a33d187c2' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ÚˆMiZD:’ÊÌLåóð' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'cb8dffb595dd49589235a84db2276295' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd40fbf24e2304d61aa802de8f55ec333'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'2c4e4df261d442218215760a33d187c2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2c4e4df261d442218215760a33d187c2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2c4e4df261d442218215760a33d187c2', x'de1e7d11d531469480cb680a6dc27e94', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"90DA884D695A443A92CACC4C1FE5F3F0", "user_id"=>"23242D07B9054A82A5FEF5346EE1B767"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8488b0f794e747d5b595c43360f1244d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'90da884d695a443a92cacc4c1fe5f3f0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_90da884d-695a-443a-92ca-cc4c1fe5f3f0_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8488b0f794e747d5b595c43360f1244d' AND `account_users`.`account_id` = x'90da884d695a443a92cacc4c1fe5f3f0' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2c4e4df261d442218215760a33d187c2' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2c4e4df261d442218215760a33d187c2' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 131ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:17', 'teste@teste.com', '$2a$04$JbwuaVa7.WkuujxQ8ITTSu/SpZt7HpFbiyyA6bmdrek5lINRDFVAW', NULL, x'f8cbb968b3a3460e8b9e3f70a635ef47', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f8cbb968b3a3460e8b9e3f70a635ef47' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:17', 'User', x'077c71dd725a4177a7d1cf92eedbc44d', '92d608955d96d08622ed4e44fbfae073', x'f8cbb968b3a3460e8b9e3f70a635ef47', 'User', '2012-12-31 12:17:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f8cbb968b3a3460e8b9e3f70a635ef47' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'4e7c2c5f5b7a43ada22f046bfd2352a4', NULL, NULL, NULL, '2012-12-31 12:17:17')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account4e7c2c5f-5b7a-43ad-a22f-046bfd2352a4' WHERE `accounts`.`id` = x'4e7c2c5f5b7a43ada22f046bfd2352a4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4e7c2c5f5b7a43ada22f046bfd2352a4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4e7c2c5f5b7a43ada22f046bfd2352a4', x'2278e86882c3426f845bcbfba1fab007', x'f8cbb968b3a3460e8b9e3f70a635ef47') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2278e86882c3426f845bcbfba1fab007') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2278e86882c3426f845bcbfba1fab007' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2278e86882c3426f845bcbfba1fab007', x'834412f395f34540abecd2325bb3dee3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2278e86882c3426f845bcbfba1fab007') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2278e86882c3426f845bcbfba1fab007' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2278e86882c3426f845bcbfba1fab007', x'54f4be8fca1d412f996162e89d92379a', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824d81c0a_82580435d48391b3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'91bbffd35b8341f39afcc767dfaa919c', 'jabanilson', NULL, 1, '2012-12-31 12:17:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account91bbffd3-5b83-41f3-9afc-c767dfaa919c' WHERE `accounts`.`id` = x'91bbffd35b8341f39afcc767dfaa919c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'91bbffd35b8341f39afcc767dfaa919c', x'ff328ee8187b46ddac76815bafd87880', x'f8cbb968b3a3460e8b9e3f70a635ef47') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ff328ee8187b46ddac76815bafd87880') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff328ee8187b46ddac76815bafd87880' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff328ee8187b46ddac76815bafd87880', x'674c12c43daa40acae66ded98ab4994a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ff328ee8187b46ddac76815bafd87880') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff328ee8187b46ddac76815bafd87880' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff328ee8187b46ddac76815bafd87880', x'57416e096ed44bcfad75873ccfc83948', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f8cbb968b3a3460e8b9e3f70a635ef47' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f8cbb968b3a3460e8b9e3f70a635ef47' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'09ccf42e442c436aa1c7ad5ff53ba576', 'jabanilson', NULL, 1, '2012-12-31 12:17:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account09ccf42e-442c-436a-a1c7-ad5ff53ba576' WHERE `accounts`.`id` = x'09ccf42e442c436aa1c7ad5ff53ba576'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"09ccf42e-442c-436a-a1c7-ad5ff53ba576"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f8cbb968b3a3460e8b9e3f70a635ef47' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f8cbb968b3a3460e8b9e3f70a635ef47' AND `account_users`.`account_id` = x'09ccf42e442c436aa1c7ad5ff53ba576' LIMIT 1 Completed 404 Not Found in 4ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:17', 'teste@teste.com', '$2a$04$QqgTKxWY5QStGZtz344VMOev0F1Oc07V44cdh2yug0ibHjVxLpSau', NULL, x'1e3b1eeeb87f4a5caa42b31fb6eed456', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1e3b1eeeb87f4a5caa42b31fb6eed456' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:17', 'User', x'ea87b0bde9ce4c9c9a293a48d56c9175', '454eb36a284a22c1bd75529fe5c7efc0', x'1e3b1eeeb87f4a5caa42b31fb6eed456', 'User', '2012-12-31 12:17:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1e3b1eeeb87f4a5caa42b31fb6eed456' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'aa93dc2699644f2aa5996d8bea342d38', NULL, NULL, NULL, '2012-12-31 12:17:17')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'accountaa93dc26-9964-4f2a-a599-6d8bea342d38' WHERE `accounts`.`id` = x'aa93dc2699644f2aa5996d8bea342d38' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aa93dc2699644f2aa5996d8bea342d38' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aa93dc2699644f2aa5996d8bea342d38', x'dcd590b4ccab467e9dcab0d32662e35b', x'1e3b1eeeb87f4a5caa42b31fb6eed456') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dcd590b4ccab467e9dcab0d32662e35b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dcd590b4ccab467e9dcab0d32662e35b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dcd590b4ccab467e9dcab0d32662e35b', x'fb29539e4f9e46818df190d48327468e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dcd590b4ccab467e9dcab0d32662e35b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dcd590b4ccab467e9dcab0d32662e35b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dcd590b4ccab467e9dcab0d32662e35b', x'76b0cc8ce19d4ede91e38d885de81bf6', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824d9529d_82580435d4839273@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'b031db1c36d245779525b5201493418e', 'jabanilson', NULL, 1, '2012-12-31 12:17:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'accountb031db1c-36d2-4577-9525-b5201493418e' WHERE `accounts`.`id` = x'b031db1c36d245779525b5201493418e'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b031db1c36d245779525b5201493418e', x'f5b940dd7181452ebdf6991defc03867', x'1e3b1eeeb87f4a5caa42b31fb6eed456') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f5b940dd7181452ebdf6991defc03867') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5b940dd7181452ebdf6991defc03867' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5b940dd7181452ebdf6991defc03867', x'a357fff875dc4fa29ccf04b6056aeeb4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f5b940dd7181452ebdf6991defc03867') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5b940dd7181452ebdf6991defc03867' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5b940dd7181452ebdf6991defc03867', x'21c1676f74954bff9c087eefad401ef5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1e3b1eeeb87f4a5caa42b31fb6eed456' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1e3b1eeeb87f4a5caa42b31fb6eed456' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1e3b1eeeb87f4a5caa42b31fb6eed456' LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"AA93DC2699644F2AA5996D8BEA342D38"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1e3b1eeeb87f4a5caa42b31fb6eed456' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1e3b1eeeb87f4a5caa42b31fb6eed456' AND `account_users`.`account_id` = x'aa93dc2699644f2aa5996d8bea342d38' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'dcd590b4ccab467e9dcab0d32662e35b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'dcd590b4ccab467e9dcab0d32662e35b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aa93dc2699644f2aa5996d8bea342d38' LIMIT 1 Completed 200 OK in 21ms (Views: 4.4ms | ActiveRecord: 3.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:17', 'teste@teste.com', '$2a$04$CZeyfUlXRoPvOfqCoLIjq.FHkpONrUSCCZFFL7tzDvl6ANrCA1sey', NULL, x'9b98dd1bcb4c442d8504ac86a402114f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9b98dd1bcb4c442d8504ac86a402114f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:17', 'User', x'efd3509c2b094a6f8e7209155399ac79', 'c85cbfd25a040fd10a2aa73b475d975c', x'9b98dd1bcb4c442d8504ac86a402114f', 'User', '2012-12-31 12:17:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9b98dd1bcb4c442d8504ac86a402114f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'a76c6de55b7c4a238cd1111cd9cf7335', NULL, NULL, NULL, '2012-12-31 12:17:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'accounta76c6de5-5b7c-4a23-8cd1-111cd9cf7335' WHERE `accounts`.`id` = x'a76c6de55b7c4a238cd1111cd9cf7335' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a76c6de55b7c4a238cd1111cd9cf7335' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a76c6de55b7c4a238cd1111cd9cf7335', x'3f772de51c204e93945ceea4668f9e1f', x'9b98dd1bcb4c442d8504ac86a402114f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3f772de51c204e93945ceea4668f9e1f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f772de51c204e93945ceea4668f9e1f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3f772de51c204e93945ceea4668f9e1f', x'db79f7b559134e48b4635302978b95a9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3f772de51c204e93945ceea4668f9e1f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f772de51c204e93945ceea4668f9e1f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3f772de51c204e93945ceea4668f9e1f', x'38134899c5b24a5b91c8ced7dca0476e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824dac82e_82580435d48393e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'193b9671f34c447daf449f31f03460cc', 'jabanilson', NULL, 1, '2012-12-31 12:17:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account193b9671-f34c-447d-af44-9f31f03460cc' WHERE `accounts`.`id` = x'193b9671f34c447daf449f31f03460cc'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'193b9671f34c447daf449f31f03460cc', x'61e435595be44aae9b73629573cba3bd', x'9b98dd1bcb4c442d8504ac86a402114f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'61e435595be44aae9b73629573cba3bd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61e435595be44aae9b73629573cba3bd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61e435595be44aae9b73629573cba3bd', x'4a34819e22f94988a59af26163eb31a9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'61e435595be44aae9b73629573cba3bd') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61e435595be44aae9b73629573cba3bd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61e435595be44aae9b73629573cba3bd', x'2fcd3ed807f640c791dd68bfb17380a7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b98dd1bcb4c442d8504ac86a402114f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b98dd1bcb4c442d8504ac86a402114f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b98dd1bcb4c442d8504ac86a402114f' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"A76C6DE55B7C4A238CD1111CD9CF7335"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9b98dd1bcb4c442d8504ac86a402114f' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9b98dd1bcb4c442d8504ac86a402114f' AND `account_users`.`account_id` = x'a76c6de55b7c4a238cd1111cd9cf7335' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3f772de51c204e93945ceea4668f9e1f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3f772de51c204e93945ceea4668f9e1f' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'a76c6de55b7c4a238cd1111cd9cf7335' AND `users`.`email` = 'create@controller.teste' SQL (0.5ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'a76c6de55b7c4a238cd1111cd9cf7335', 'create@controller.teste', x'9499e4221d8b47efad11a5d7f2f6d647', x'9b98dd1bcb4c442d8504ac86a402114f', NULL, '2012-12-31 12:17:17', 'e8kasVKBIDSCB5O3Q7qX7CbJ7jY') Sent mail to create@controller.teste (7ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e1824dd35da_82580435d483942f@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9499e422-1d8b-47ef-ad11-a5d7f2f6d647e8kasVKBIDSCB5O3Q7qX7CbJ7jY  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/A76C6DE55B7C4A238CD1111CD9CF7335/users Completed 302 Found in 49ms (ActiveRecord: 2.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:17', 'teste@teste.com', '$2a$04$fv4IJS9psGW6VLs1YJrz0.n/WjUGnesC/pONOdksEVkgAL/9NlUpO', NULL, x'd789e7e3072747479a2d2959b8e7b05d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:17') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd789e7e3072747479a2d2959b8e7b05d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:17', 'User', x'73891c46dcf245cba40ad7f2ec7798a1', 'f7e04dcb8a4c2ed1fee784242f68dd09', x'd789e7e3072747479a2d2959b8e7b05d', 'User', '2012-12-31 12:17:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd789e7e3072747479a2d2959b8e7b05d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'102ff933726f4192a35d0fad1bb5b3fb', NULL, NULL, NULL, '2012-12-31 12:17:17')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'account102ff933-726f-4192-a35d-0fad1bb5b3fb' WHERE `accounts`.`id` = x'102ff933726f4192a35d0fad1bb5b3fb' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'102ff933726f4192a35d0fad1bb5b3fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'102ff933726f4192a35d0fad1bb5b3fb', x'e115d3be296c4c08a012911e4e79c96c', x'd789e7e3072747479a2d2959b8e7b05d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e115d3be296c4c08a012911e4e79c96c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e115d3be296c4c08a012911e4e79c96c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e115d3be296c4c08a012911e4e79c96c', x'75003765bec644528e3bed46e61ba4a1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e115d3be296c4c08a012911e4e79c96c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e115d3be296c4c08a012911e4e79c96c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e115d3be296c4c08a012911e4e79c96c', x'fd911de4fee840afa0d879fd2288a79b', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824ddff91_82580435d4839531@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'a7d268541a574ff9be0e822576c93acb', 'jabanilson', NULL, 1, '2012-12-31 12:17:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'accounta7d26854-1a57-4ff9-be0e-822576c93acb' WHERE `accounts`.`id` = x'a7d268541a574ff9be0e822576c93acb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a7d268541a574ff9be0e822576c93acb', x'64398ff8fe43427693e8104cd5f18a22', x'd789e7e3072747479a2d2959b8e7b05d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'64398ff8fe43427693e8104cd5f18a22') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'64398ff8fe43427693e8104cd5f18a22' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'64398ff8fe43427693e8104cd5f18a22', x'52d434ecae514ea7a521b46fd0c4950f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'64398ff8fe43427693e8104cd5f18a22') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'64398ff8fe43427693e8104cd5f18a22' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'64398ff8fe43427693e8104cd5f18a22', x'fe6369c8562049ec9381b4069dd4fde1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd789e7e3072747479a2d2959b8e7b05d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd789e7e3072747479a2d2959b8e7b05d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd789e7e3072747479a2d2959b8e7b05d' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"A7D268541A574FF9BE0E822576C93ACB"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd789e7e3072747479a2d2959b8e7b05d' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd789e7e3072747479a2d2959b8e7b05d' AND `account_users`.`account_id` = x'a7d268541a574ff9be0e822576c93acb' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'64398ff8fe43427693e8104cd5f18a22' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'64398ff8fe43427693e8104cd5f18a22' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'a7d268541a574ff9be0e822576c93acb' AND `users`.`email` = 'create@controller.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'a7d268541a574ff9be0e822576c93acb', 'create@controller.teste', x'fc462e3c09314104940dd66b4c853e39', x'd789e7e3072747479a2d2959b8e7b05d', NULL, '2012-12-31 12:17:17', '5OaYqmsvWgpaTfJ_kQUKGRHldhg') Sent mail to create@controller.teste (6ms) Date: Mon, 31 Dec 2012 10:17:17 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e1824ded25c_82580435d4839688@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/fc462e3c-0931-4104-940d-d66b4c853e395OaYqmsvWgpaTfJ_kQUKGRHldhg  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/A7D268541A574FF9BE0E822576C93ACB/users Completed 302 Found in 31ms (ActiveRecord: 2.1ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:17', 'teste@teste.com', '$2a$04$JaoDeduqQwz8BVI1n6crO.dtmYjGmBjKBqXiK3osnah.QNgdYPYRa', NULL, x'abca0c8db82e4ca4bd849d6b98afd89a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:17') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'abca0c8db82e4ca4bd849d6b98afd89a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:17', 'User', x'e54300f12e814761a48474bb7aea9465', '118d65385eeef9eb1fabad3c8b4a4e10', x'abca0c8db82e4ca4bd849d6b98afd89a', 'User', '2012-12-31 12:17:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'abca0c8db82e4ca4bd849d6b98afd89a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:17', x'cef6a2b3456d431d8697c0813e03addf', NULL, NULL, NULL, '2012-12-31 12:17:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:17', `updated_at` = '2012-12-31 12:17:17', `subdomain` = 'accountcef6a2b3-456d-431d-8697-c0813e03addf' WHERE `accounts`.`id` = x'cef6a2b3456d431d8697c0813e03addf' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cef6a2b3456d431d8697c0813e03addf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cef6a2b3456d431d8697c0813e03addf', x'140fd56393d2490b969de512651f8206', x'abca0c8db82e4ca4bd849d6b98afd89a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'140fd56393d2490b969de512651f8206') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'140fd56393d2490b969de512651f8206' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'140fd56393d2490b969de512651f8206', x'f8efe6140a6340698f1446d0a09b9b4f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'140fd56393d2490b969de512651f8206') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'140fd56393d2490b969de512651f8206' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'140fd56393d2490b969de512651f8206', x'c30c3abea6e246f58a76d8a913dc9b9a', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824e5c74_82580435d4839742@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'df56c9980f9840418f488f38be869010', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'accountdf56c998-0f98-4041-8f48-8f38be869010' WHERE `accounts`.`id` = x'df56c9980f9840418f488f38be869010'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'df56c9980f9840418f488f38be869010', x'131a995ba46d4171bf3f8f36e86b06da', x'abca0c8db82e4ca4bd849d6b98afd89a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'131a995ba46d4171bf3f8f36e86b06da') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'131a995ba46d4171bf3f8f36e86b06da' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'131a995ba46d4171bf3f8f36e86b06da', x'4dfeadf0a40243158dfdb46ed902123b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'131a995ba46d4171bf3f8f36e86b06da') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'131a995ba46d4171bf3f8f36e86b06da' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'131a995ba46d4171bf3f8f36e86b06da', x'f430e8478cda4dd089c3b5a7cc8427e4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abca0c8db82e4ca4bd849d6b98afd89a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abca0c8db82e4ca4bd849d6b98afd89a' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abca0c8db82e4ca4bd849d6b98afd89a' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"DF56C9980F9840418F488F38BE869010"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'abca0c8db82e4ca4bd849d6b98afd89a' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'abca0c8db82e4ca4bd849d6b98afd89a' AND `account_users`.`account_id` = x'df56c9980f9840418f488f38be869010' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'131a995ba46d4171bf3f8f36e86b06da' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'131a995ba46d4171bf3f8f36e86b06da' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'df56c9980f9840418f488f38be869010' AND `users`.`email` = 'create@controller.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'df56c9980f9840418f488f38be869010', 'create@controller.teste', x'd762e94b3ee94e75932021c78f118f82', x'abca0c8db82e4ca4bd849d6b98afd89a', NULL, '2012-12-31 12:17:18', 'K54jhj3Uuk8Of0d07iBzblsgYGE') Sent mail to create@controller.teste (7ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e1824e12d6b_82580435d48398e1@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/d762e94b-3ee9-4e75-9320-21c78f118f82K54jhj3Uuk8Of0d07iBzblsgYGE  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/DF56C9980F9840418F488F38BE869010/users Completed 302 Found in 31ms (ActiveRecord: 2.3ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"DF56C9980F9840418F488F38BE869010"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'abca0c8db82e4ca4bd849d6b98afd89a' AND `account_users`.`account_id` = x'df56c9980f9840418f488f38be869010' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'131a995ba46d4171bf3f8f36e86b06da' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'131a995ba46d4171bf3f8f36e86b06da' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'df56c9980f9840418f488f38be869010' LIMIT 1 Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 1.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:18', 'teste@teste.com', '$2a$04$Rb48hPMv6mCn4g9BYaVTZuK0p2PwepHmEza4J.gUPLldpt.F/EsLy', NULL, x'920426136c4e4b3a82e24c5db62f7daa', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'920426136c4e4b3a82e24c5db62f7daa' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:18', 'User', x'ae72801bb2de427183851fcf2cccd010', 'ffc99da131c2c08fb46d4ba9d07fe5a6', x'920426136c4e4b3a82e24c5db62f7daa', 'User', '2012-12-31 12:17:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'920426136c4e4b3a82e24c5db62f7daa' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'd0d4a9f4b2164282bcdcb17460eb22e9', NULL, NULL, NULL, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'accountd0d4a9f4-b216-4282-bcdc-b17460eb22e9' WHERE `accounts`.`id` = x'd0d4a9f4b2164282bcdcb17460eb22e9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd0d4a9f4b2164282bcdcb17460eb22e9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd0d4a9f4b2164282bcdcb17460eb22e9', x'13df87b6c78c4e5da46d4629fc4274ba', x'920426136c4e4b3a82e24c5db62f7daa') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'13df87b6c78c4e5da46d4629fc4274ba') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'13df87b6c78c4e5da46d4629fc4274ba' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'13df87b6c78c4e5da46d4629fc4274ba', x'4825a0baf279469bb0b045eddfd18eae', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'13df87b6c78c4e5da46d4629fc4274ba') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'13df87b6c78c4e5da46d4629fc4274ba' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'13df87b6c78c4e5da46d4629fc4274ba', x'5080cdc55b2e4463b26ab6e0140cec4b', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824e3953c_82580435d48399a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'72ae17606c024e9a9f127e5747a04338', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account72ae1760-6c02-4e9a-9f12-7e5747a04338' WHERE `accounts`.`id` = x'72ae17606c024e9a9f127e5747a04338'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'72ae17606c024e9a9f127e5747a04338', x'65230a8dc875406aa0b26c2c5ac89bd2', x'920426136c4e4b3a82e24c5db62f7daa') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'65230a8dc875406aa0b26c2c5ac89bd2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65230a8dc875406aa0b26c2c5ac89bd2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65230a8dc875406aa0b26c2c5ac89bd2', x'2b0c2889dd2945abad84d6654bcefda0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'65230a8dc875406aa0b26c2c5ac89bd2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65230a8dc875406aa0b26c2c5ac89bd2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65230a8dc875406aa0b26c2c5ac89bd2', x'0857c9f5e3184117a38d796a3d2e975b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'920426136c4e4b3a82e24c5db62f7daa' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'920426136c4e4b3a82e24c5db62f7daa' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'ee19bbe318ab41f48314573b8eb17754', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'accountee19bbe3-18ab-41f4-8314-573b8eb17754' WHERE `accounts`.`id` = x'ee19bbe318ab41f48314573b8eb17754'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'ee19bbe318ab41f48314573b8eb17754' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'ee19bbe318ab41f48314573b8eb17754', 'teste@teste.teste', x'1b496396669f4a6e9f3eb57cb8ec7c60', NULL, NULL, '2012-12-31 12:17:18', 'edNa2BC1ymzptR4xWgA5o0r7YfQ') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1824e45603_82580435d48400be@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1b496396-669f-4a6e-9f3e-b57cb8ec7c60edNa2BC1ymzptR4xWgA5o0r7YfQ  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = x'920426136c4e4b3a82e24c5db62f7daa' WHERE `user_invitations`.`id` = x'1b496396669f4a6e9f3eb57cb8ec7c60'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'920426136c4e4b3a82e24c5db62f7daa' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'61626262626261616161616363636363' LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:18', 'teste@teste.com', '$2a$04$.d0MZT9kHRP1TlitqpD6uuN1dYx4gZ6b07CWUk4VtbSud1eDHe7sG', NULL, x'ec19cd7f13124e08b61b0dbc8b78c274', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ec19cd7f13124e08b61b0dbc8b78c274' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:18', 'User', x'fcd6c96440414083840d91b1acd0c0af', '877221a8f95f3f92ecab69947a486fcb', x'ec19cd7f13124e08b61b0dbc8b78c274', 'User', '2012-12-31 12:17:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ec19cd7f13124e08b61b0dbc8b78c274' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'491e080d917f40e4867b4a2e4db30b8d', NULL, NULL, NULL, '2012-12-31 12:17:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account491e080d-917f-40e4-867b-4a2e4db30b8d' WHERE `accounts`.`id` = x'491e080d917f40e4867b4a2e4db30b8d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'491e080d917f40e4867b4a2e4db30b8d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'491e080d917f40e4867b4a2e4db30b8d', x'dbe6bbc9613b4ea887017f4f2faa8a04', x'ec19cd7f13124e08b61b0dbc8b78c274') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dbe6bbc9613b4ea887017f4f2faa8a04') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dbe6bbc9613b4ea887017f4f2faa8a04' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dbe6bbc9613b4ea887017f4f2faa8a04', x'39ca10bd91354d80834eebabd0f1bc8e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dbe6bbc9613b4ea887017f4f2faa8a04') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dbe6bbc9613b4ea887017f4f2faa8a04' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dbe6bbc9613b4ea887017f4f2faa8a04', x'7ca378f5ded7494e99f139e85d4bc626', 'admin') Sent mail to teste@teste.com (11ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824e558d6_82580435d48401e0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'68c8eea79e81405a8d3853fdfe7651b9', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account68c8eea7-9e81-405a-8d38-53fdfe7651b9' WHERE `accounts`.`id` = x'68c8eea79e81405a8d3853fdfe7651b9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'68c8eea79e81405a8d3853fdfe7651b9', x'17004a4767d440b9b743c3d694118fd1', x'ec19cd7f13124e08b61b0dbc8b78c274') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'17004a4767d440b9b743c3d694118fd1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17004a4767d440b9b743c3d694118fd1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17004a4767d440b9b743c3d694118fd1', x'a588ea91c5ee49e1a961f5bfdeeb6675', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'17004a4767d440b9b743c3d694118fd1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17004a4767d440b9b743c3d694118fd1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17004a4767d440b9b743c3d694118fd1', x'f634e97b013e4d69a16f409410ebf564', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec19cd7f13124e08b61b0dbc8b78c274' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec19cd7f13124e08b61b0dbc8b78c274' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'51fe90eeb52b4a48a5189aad7e2cf4dd', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account51fe90ee-b52b-4a48-a518-9aad7e2cf4dd' WHERE `accounts`.`id` = x'51fe90eeb52b4a48a5189aad7e2cf4dd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'51fe90eeb52b4a48a5189aad7e2cf4dd' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'51fe90eeb52b4a48a5189aad7e2cf4dd', 'teste@teste.teste', x'712e2e0dac1c4868a14c46bc6a4360a4', NULL, NULL, '2012-12-31 12:17:18', 'oHt2eVGe8pv7cvVQb2Mbh6tqciM') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1824e6238c_82580435d48402ed@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/712e2e0d-ac1c-4868-a14c-46bc6a4360a4oHt2eVGe8pv7cvVQb2Mbh6tqciM  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = x'ec19cd7f13124e08b61b0dbc8b78c274' WHERE `user_invitations`.`id` = x'712e2e0dac1c4868a14c46bc6a4360a4'  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"712e2e0d-ac1c-4868-a14c-46bc6a4360a4oHt2eVGe8pv7cvVQb2Mbh6tqciM"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ec19cd7f13124e08b61b0dbc8b78c274' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'712e2e0dac1c4868a14c46bc6a4360a4' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ec19cd7f13124e08b61b0dbc8b78c274' LIMIT 1 Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:18', 'teste@teste.com', '$2a$04$b9KALiPumua7a1/bAnLzi.pEar.otDEst8gJwgqU7YtXZhmIxD.0O', NULL, x'8da4447316a04a8ab83c0f777a310cf8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8da4447316a04a8ab83c0f777a310cf8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:18', 'User', x'a6d9145b7556445b9675e0403e124240', '07ce54d73cd7747b5755c588c4ed8989', x'8da4447316a04a8ab83c0f777a310cf8', 'User', '2012-12-31 12:17:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8da4447316a04a8ab83c0f777a310cf8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'ae9e1cc9b04e47268fe18ff71791018b', NULL, NULL, NULL, '2012-12-31 12:17:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'accountae9e1cc9-b04e-4726-8fe1-8ff71791018b' WHERE `accounts`.`id` = x'ae9e1cc9b04e47268fe18ff71791018b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ae9e1cc9b04e47268fe18ff71791018b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ae9e1cc9b04e47268fe18ff71791018b', x'd2c2485bebe84715954d5dd1be805445', x'8da4447316a04a8ab83c0f777a310cf8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd2c2485bebe84715954d5dd1be805445') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd2c2485bebe84715954d5dd1be805445' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd2c2485bebe84715954d5dd1be805445', x'412d7b2c36954989ac3e7f068bc23e9a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd2c2485bebe84715954d5dd1be805445') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd2c2485bebe84715954d5dd1be805445' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd2c2485bebe84715954d5dd1be805445', x'76e8cdb5bb4b44ffa5eb33ec11731417', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824e714c0_82580435d484032f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'8eb7a3c1d68543bfb2a872e6e99da99a', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account8eb7a3c1-d685-43bf-b2a8-72e6e99da99a' WHERE `accounts`.`id` = x'8eb7a3c1d68543bfb2a872e6e99da99a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8eb7a3c1d68543bfb2a872e6e99da99a', x'476ab0b2416d4a85b2a0d70b4c5b8c00', x'8da4447316a04a8ab83c0f777a310cf8') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'476ab0b2416d4a85b2a0d70b4c5b8c00') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'476ab0b2416d4a85b2a0d70b4c5b8c00' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'476ab0b2416d4a85b2a0d70b4c5b8c00', x'9bfaa6b68d254c7b9ed93e3a20773ceb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'476ab0b2416d4a85b2a0d70b4c5b8c00') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'476ab0b2416d4a85b2a0d70b4c5b8c00' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'476ab0b2416d4a85b2a0d70b4c5b8c00', x'b565a23dcbe54c11a804b7d79c473dc9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8da4447316a04a8ab83c0f777a310cf8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8da4447316a04a8ab83c0f777a310cf8' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'8975594143414a188c4de07bc6d101a6', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account89755941-4341-4a18-8c4d-e07bc6d101a6' WHERE `accounts`.`id` = x'8975594143414a188c4de07bc6d101a6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'b90d7b727f914e95a5e5104cad884fed', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'accountb90d7b72-7f91-4e95-a5e5-104cad884fed' WHERE `accounts`.`id` = x'b90d7b727f914e95a5e5104cad884fed'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'b90d7b727f914e95a5e5104cad884fed' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'b90d7b727f914e95a5e5104cad884fed', 'teste@teste.teste', x'9811196006de40e88456c3c3583e15b7', NULL, NULL, '2012-12-31 12:17:18', 'BnHDAwK3LYkcl4xKqvp2Mas06LI') Sent mail to teste@teste.teste (8ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1824e94b56_82580435d4840431@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/98111960-06de-40e8-8456-c3c3583e15b7BnHDAwK3LYkcl4xKqvp2Mas06LI  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'8975594143414a188c4de07bc6d101a6' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'8975594143414a188c4de07bc6d101a6' WHERE `user_invitations`.`id` = x'9811196006de40e88456c3c3583e15b7'  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8da4447316a04a8ab83c0f777a310cf8' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'61626262626261616161616363636363' LIMIT 1 Completed 404 Not Found in 3ms  (136.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:18', 'teste@teste.com', '$2a$04$4svX8MSyLBaFoU7x2t4FU.mPYWjq4WYKwmaiTXiNNVz77uPx5X4QO', NULL, x'b226b40b0adb4fd3b17f5f0b62906a85', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:18') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b226b40b0adb4fd3b17f5f0b62906a85' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:18', 'User', x'ee4095433d534fe8b34b49b336f40625', '8e9e1678da5c704fda79cc27f0a38382', x'b226b40b0adb4fd3b17f5f0b62906a85', 'User', '2012-12-31 12:17:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b226b40b0adb4fd3b17f5f0b62906a85' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'f3e348604e734ae5931edb55ae4a0cca', NULL, NULL, NULL, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'accountf3e34860-4e73-4ae5-931e-db55ae4a0cca' WHERE `accounts`.`id` = x'f3e348604e734ae5931edb55ae4a0cca' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f3e348604e734ae5931edb55ae4a0cca' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f3e348604e734ae5931edb55ae4a0cca', x'71b5225f735749d385614ef39f909e77', x'b226b40b0adb4fd3b17f5f0b62906a85') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'71b5225f735749d385614ef39f909e77') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'71b5225f735749d385614ef39f909e77' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'71b5225f735749d385614ef39f909e77', x'e851ed337bfa4694af517ad8693e841f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'71b5225f735749d385614ef39f909e77') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'71b5225f735749d385614ef39f909e77' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'71b5225f735749d385614ef39f909e77', x'6403f0a113284d15a3a2a149f8a9f0d5', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824ec59d2_82580435d48405f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'2a5ccea4087e4dbb9a5895612b12e048', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account2a5ccea4-087e-4dbb-9a58-95612b12e048' WHERE `accounts`.`id` = x'2a5ccea4087e4dbb9a5895612b12e048'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2a5ccea4087e4dbb9a5895612b12e048', x'52f9f8cee7624eac9ee0d206a6ecf822', x'b226b40b0adb4fd3b17f5f0b62906a85') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'52f9f8cee7624eac9ee0d206a6ecf822') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52f9f8cee7624eac9ee0d206a6ecf822' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52f9f8cee7624eac9ee0d206a6ecf822', x'b3547339ce294ba88746ca3e5c6ee46a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'52f9f8cee7624eac9ee0d206a6ecf822') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52f9f8cee7624eac9ee0d206a6ecf822' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52f9f8cee7624eac9ee0d206a6ecf822', x'fa8f0f7e61f2408ab5b58e3ba0831454', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b226b40b0adb4fd3b17f5f0b62906a85' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b226b40b0adb4fd3b17f5f0b62906a85' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'0eab383acd004ed0b760d3e217e53894', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account0eab383a-cd00-4ed0-b760-d3e217e53894' WHERE `accounts`.`id` = x'0eab383acd004ed0b760d3e217e53894'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'eab08be8d4bf48b88dfc5c40a6f5f0af', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'accounteab08be8-d4bf-48b8-8dfc-5c40a6f5f0af' WHERE `accounts`.`id` = x'eab08be8d4bf48b88dfc5c40a6f5f0af'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'eab08be8d4bf48b88dfc5c40a6f5f0af' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'eab08be8d4bf48b88dfc5c40a6f5f0af', 'teste@teste.teste', x'6a56b87abc7b4c9e9241fba4c226c8a4', NULL, NULL, '2012-12-31 12:17:18', 'qmxvo9KrITgb3oIjWv6vS3-8KZk') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1824ed1fef_82580435d48406c1@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/6a56b87a-bc7b-4c9e-9241-fba4c226c8a4qmxvo9KrITgb3oIjWv6vS3-8KZk  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0eab383acd004ed0b760d3e217e53894' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'0eab383acd004ed0b760d3e217e53894' WHERE `user_invitations`.`id` = x'6a56b87abc7b4c9e9241fba4c226c8a4'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"6a56b87a-bc7b-4c9e-9241-fba4c226c8a4qmxvo9KrITgb3oIjWv6vS3-8KZk"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b226b40b0adb4fd3b17f5f0b62906a85' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'6a56b87abc7b4c9e9241fba4c226c8a4' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0eab383acd004ed0b760d3e217e53894' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'0eab383acd004ed0b760d3e217e53894' AND `account_users`.`user_id` = x'b226b40b0adb4fd3b17f5f0b62906a85'  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0eab383acd004ed0b760d3e217e53894' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0eab383acd004ed0b760d3e217e53894', x'716c0a459bff4f0782511f40bb262d07', x'b226b40b0adb4fd3b17f5f0b62906a85') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'716c0a459bff4f0782511f40bb262d07') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'716c0a459bff4f0782511f40bb262d07' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'716c0a459bff4f0782511f40bb262d07', x'858746d8f62648a69efd8a3c3dc8edc4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'716c0a459bff4f0782511f40bb262d07') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'716c0a459bff4f0782511f40bb262d07' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'716c0a459bff4f0782511f40bb262d07', x'dceb55cf943f4ee79e47ec52eee3358a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 3.0ms)  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:18', 'teste@teste.com', '$2a$04$FsiTfF9RSYoZMSkvihAs7.dT6dTsOelWx/C3DY5wuQvxohieHiy8y', NULL, x'4e23b9fdbcfa41b6a0593eb07396c11c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:18') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4e23b9fdbcfa41b6a0593eb07396c11c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:18', 'User', x'6f5355d652b648f8bab46aa9280ee133', '9dacdcb03cdb8bc59450a2e95891bee9', x'4e23b9fdbcfa41b6a0593eb07396c11c', 'User', '2012-12-31 12:17:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4e23b9fdbcfa41b6a0593eb07396c11c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'57a293d7a9d24993aa94b63c611b9049', NULL, NULL, NULL, '2012-12-31 12:17:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account57a293d7-a9d2-4993-aa94-b63c611b9049' WHERE `accounts`.`id` = x'57a293d7a9d24993aa94b63c611b9049' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'57a293d7a9d24993aa94b63c611b9049' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'57a293d7a9d24993aa94b63c611b9049', x'b18fa2ebf240408b985c94b9ab2255e5', x'4e23b9fdbcfa41b6a0593eb07396c11c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b18fa2ebf240408b985c94b9ab2255e5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b18fa2ebf240408b985c94b9ab2255e5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b18fa2ebf240408b985c94b9ab2255e5', x'5d82c7a8a4ed4c539e5b26b00d2be090', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b18fa2ebf240408b985c94b9ab2255e5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b18fa2ebf240408b985c94b9ab2255e5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b18fa2ebf240408b985c94b9ab2255e5', x'27d57be4541e40808d0ed556081f3263', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824ee5761_82580435d48407f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'a797becd4bf8465d984f1a308e5b1023', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'accounta797becd-4bf8-465d-984f-1a308e5b1023' WHERE `accounts`.`id` = x'a797becd4bf8465d984f1a308e5b1023'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a797becd4bf8465d984f1a308e5b1023', x'e5e2b4e9ca114b05aaec4e624c7684fb', x'4e23b9fdbcfa41b6a0593eb07396c11c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e5e2b4e9ca114b05aaec4e624c7684fb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e5e2b4e9ca114b05aaec4e624c7684fb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e5e2b4e9ca114b05aaec4e624c7684fb', x'dc6bc30f62684a0db4078835b4f35761', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e5e2b4e9ca114b05aaec4e624c7684fb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e5e2b4e9ca114b05aaec4e624c7684fb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e5e2b4e9ca114b05aaec4e624c7684fb', x'd19fb6abfa3f4a1a92c4a7a7eac09fd9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4e23b9fdbcfa41b6a0593eb07396c11c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4e23b9fdbcfa41b6a0593eb07396c11c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'147cd0b931154cec81dbd24e8f290bc4', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account147cd0b9-3115-4cec-81db-d24e8f290bc4' WHERE `accounts`.`id` = x'147cd0b931154cec81dbd24e8f290bc4'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:18', x'2f0630ce6f2d4a0aa3b2bdc5d49c350f', 'jabanilson', NULL, 1, '2012-12-31 12:17:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:18', `updated_at` = '2012-12-31 12:17:18', `subdomain` = 'account2f0630ce-6f2d-4a0a-a3b2-bdc5d49c350f' WHERE `accounts`.`id` = x'2f0630ce6f2d4a0aa3b2bdc5d49c350f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'2f0630ce6f2d4a0aa3b2bdc5d49c350f' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'2f0630ce6f2d4a0aa3b2bdc5d49c350f', 'teste@teste.teste', x'629519d1a5194f019134f44d6af17a91', NULL, NULL, '2012-12-31 12:17:18', 'rYbdUEGNLZmr_34xyFvyUazi5mc') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:17:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1824ef1a91_82580435d4840841@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/629519d1-a519-4f01-9134-f44d6af17a91rYbdUEGNLZmr_34xyFvyUazi5mc  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'147cd0b931154cec81dbd24e8f290bc4' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'147cd0b931154cec81dbd24e8f290bc4' WHERE `user_invitations`.`id` = x'629519d1a5194f019134f44d6af17a91'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'147cd0b931154cec81dbd24e8f290bc4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'147cd0b931154cec81dbd24e8f290bc4', x'e123683a04b249b8bc604c0903b83117', x'4e23b9fdbcfa41b6a0593eb07396c11c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e123683a04b249b8bc604c0903b83117') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e123683a04b249b8bc604c0903b83117' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e123683a04b249b8bc604c0903b83117', x'e3e38e1026ea4902ae4f19f0bfa7693e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e123683a04b249b8bc604c0903b83117') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e123683a04b249b8bc604c0903b83117' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e123683a04b249b8bc604c0903b83117', x'd69ac0d49118491bba3dd2a9efe3f643', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"629519d1-a519-4f01-9134-f44d6af17a91rYbdUEGNLZmr_34xyFvyUazi5mc"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4e23b9fdbcfa41b6a0593eb07396c11c' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'629519d1a5194f019134f44d6af17a91' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'147cd0b931154cec81dbd24e8f290bc4' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'147cd0b931154cec81dbd24e8f290bc4' AND `account_users`.`user_id` = x'4e23b9fdbcfa41b6a0593eb07396c11c' Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:19', 'teste@teste.com', '$2a$04$4GPutO/J2bs2o3Fi0KJhAeeR1Cp9vBvT6fPOQhul65cPxTsUFoqfW', NULL, x'2bbafe2179294d5397d6a5f8b9bf00af', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2bbafe2179294d5397d6a5f8b9bf00af' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:19', 'User', x'abd8060fcbdc4c489c0601ebc3ba02b6', '6bb4192fb6610cf8dbafd683e9de6b38', x'2bbafe2179294d5397d6a5f8b9bf00af', 'User', '2012-12-31 12:17:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2bbafe2179294d5397d6a5f8b9bf00af' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'7e53d5488ded498e82ef3b52dd6ddf74', NULL, NULL, NULL, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account7e53d548-8ded-498e-82ef-3b52dd6ddf74' WHERE `accounts`.`id` = x'7e53d5488ded498e82ef3b52dd6ddf74' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7e53d5488ded498e82ef3b52dd6ddf74' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7e53d5488ded498e82ef3b52dd6ddf74', x'0ba11be6a11347959dccce90aa68637c', x'2bbafe2179294d5397d6a5f8b9bf00af') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0ba11be6a11347959dccce90aa68637c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0ba11be6a11347959dccce90aa68637c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0ba11be6a11347959dccce90aa68637c', x'175c30ce5be349b69f725c7109d517b1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0ba11be6a11347959dccce90aa68637c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0ba11be6a11347959dccce90aa68637c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0ba11be6a11347959dccce90aa68637c', x'0468d96f29024569a89496e270d81425', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824f26c11_82580435d4840926@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'100c88cedafa4281b80266631e3fb73b', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account100c88ce-dafa-4281-b802-66631e3fb73b' WHERE `accounts`.`id` = x'100c88cedafa4281b80266631e3fb73b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'100c88cedafa4281b80266631e3fb73b', x'548a1749713f4ac598802a80c2e16872', x'2bbafe2179294d5397d6a5f8b9bf00af') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'548a1749713f4ac598802a80c2e16872') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'548a1749713f4ac598802a80c2e16872' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'548a1749713f4ac598802a80c2e16872', x'240b261b526447bbb2a26d77d076ff64', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'548a1749713f4ac598802a80c2e16872') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'548a1749713f4ac598802a80c2e16872' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'548a1749713f4ac598802a80c2e16872', x'363496bd71b24a5c9f36f4a09466ac61', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2bbafe2179294d5397d6a5f8b9bf00af' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2bbafe2179294d5397d6a5f8b9bf00af' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'3faf7616c5c342dfa883ca706358c892', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account3faf7616-c5c3-42df-a883-ca706358c892' WHERE `accounts`.`id` = x'3faf7616c5c342dfa883ca706358c892'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'd7d195919d014f8d804536a8cfccc077', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'accountd7d19591-9d01-4f8d-8045-36a8cfccc077' WHERE `accounts`.`id` = x'd7d195919d014f8d804536a8cfccc077'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'd7d195919d014f8d804536a8cfccc077' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'd7d195919d014f8d804536a8cfccc077', 'teste@teste.teste', x'5eda023bf2e4495f8af8aaa1c8e77862', NULL, NULL, '2012-12-31 12:17:19', 'F7BFsLQu9xGADg1CVIWqX9LiMpQ') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1824f33587_82580435d48410be@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5eda023b-f2e4-495f-8af8-aaa1c8e77862F7BFsLQu9xGADg1CVIWqX9LiMpQ  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'3faf7616c5c342dfa883ca706358c892' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'3faf7616c5c342dfa883ca706358c892' WHERE `user_invitations`.`id` = x'5eda023bf2e4495f8af8aaa1c8e77862'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3faf7616c5c342dfa883ca706358c892' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3faf7616c5c342dfa883ca706358c892', x'84cb2b2cb0fb4c399bfdc62ca0fa4062', x'2bbafe2179294d5397d6a5f8b9bf00af') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'84cb2b2cb0fb4c399bfdc62ca0fa4062') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84cb2b2cb0fb4c399bfdc62ca0fa4062' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84cb2b2cb0fb4c399bfdc62ca0fa4062', x'1752a24f707b47c9b55cdbe61bb1fe18', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'84cb2b2cb0fb4c399bfdc62ca0fa4062') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84cb2b2cb0fb4c399bfdc62ca0fa4062' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84cb2b2cb0fb4c399bfdc62ca0fa4062', x'aa0c9f8495fa47ec8df9c8484299f2a5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"5eda023b-f2e4-495f-8af8-aaa1c8e77862F7BFsLQu9xGADg1CVIWqX9LiMpQ"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2bbafe2179294d5397d6a5f8b9bf00af' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'5eda023bf2e4495f8af8aaa1c8e77862' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3faf7616c5c342dfa883ca706358c892' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'3faf7616c5c342dfa883ca706358c892' AND `account_users`.`user_id` = x'2bbafe2179294d5397d6a5f8b9bf00af' Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:19', 'teste@teste.com', '$2a$04$YCjZT65F4dR0n7UjtIUdkO1hwUM/kblEOnk7Jt9OxUn0.MMVXTk0S', NULL, x'7d5382f4b88340c081b77108bf2a1474', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7d5382f4b88340c081b77108bf2a1474' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:19', 'User', x'd86f1749d6f54b3c9f2caf9edebe68a4', '9ee7728ed676acae4cd765b007ea031b', x'7d5382f4b88340c081b77108bf2a1474', 'User', '2012-12-31 12:17:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7d5382f4b88340c081b77108bf2a1474' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'af80fa0df36d475a8a044f65893e4174', NULL, NULL, NULL, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'accountaf80fa0d-f36d-475a-8a04-4f65893e4174' WHERE `accounts`.`id` = x'af80fa0df36d475a8a044f65893e4174' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'af80fa0df36d475a8a044f65893e4174' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'af80fa0df36d475a8a044f65893e4174', x'37c7c332932349e6bea051bc08b0ff48', x'7d5382f4b88340c081b77108bf2a1474') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'37c7c332932349e6bea051bc08b0ff48') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37c7c332932349e6bea051bc08b0ff48' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37c7c332932349e6bea051bc08b0ff48', x'782cdf4c9b8a496e87b064d5eefbd84a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'37c7c332932349e6bea051bc08b0ff48') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37c7c332932349e6bea051bc08b0ff48' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37c7c332932349e6bea051bc08b0ff48', x'47b8ed74e4314a1abb5e692e7fc5ab75', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824f45eaf_82580435d4841116@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'b1b5a09f62ab4697a5f28fc2a5e6887a', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'accountb1b5a09f-62ab-4697-a5f2-8fc2a5e6887a' WHERE `accounts`.`id` = x'b1b5a09f62ab4697a5f28fc2a5e6887a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b1b5a09f62ab4697a5f28fc2a5e6887a', x'be8c866aa2c7465c84e5b9e2514343db', x'7d5382f4b88340c081b77108bf2a1474') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'be8c866aa2c7465c84e5b9e2514343db') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be8c866aa2c7465c84e5b9e2514343db' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be8c866aa2c7465c84e5b9e2514343db', x'08a17d3fbd8143ee8ea9e055ffba506d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'be8c866aa2c7465c84e5b9e2514343db') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be8c866aa2c7465c84e5b9e2514343db' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be8c866aa2c7465c84e5b9e2514343db', x'a66b76beae4a4d7fb5e8a9fef6bc5b5e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7d5382f4b88340c081b77108bf2a1474' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7d5382f4b88340c081b77108bf2a1474' LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7d5382f4b88340c081b77108bf2a1474' LIMIT 1 Completed 404 Not Found in 2ms  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:19', 'teste@teste.com', '$2a$04$Kt4X10hPXHD7mW/OQcN3yOqABR7l5Ygr4hif0W.RB/30NSKjq70g6', NULL, x'57336933cd884427b02af31989781fd4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'57336933cd884427b02af31989781fd4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:19', 'User', x'3e2555a7a0d746a6b8a019e323f12923', 'f1f5a04f9296aa3305c3c0467e94a308', x'57336933cd884427b02af31989781fd4', 'User', '2012-12-31 12:17:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'57336933cd884427b02af31989781fd4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'5e231a326b154cac859ae08eff5e3eca', NULL, NULL, NULL, '2012-12-31 12:17:19')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account5e231a32-6b15-4cac-859a-e08eff5e3eca' WHERE `accounts`.`id` = x'5e231a326b154cac859ae08eff5e3eca' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5e231a326b154cac859ae08eff5e3eca' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e231a326b154cac859ae08eff5e3eca', x'afc0480ec7674b42b10d54d0f7f54f70', x'57336933cd884427b02af31989781fd4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'afc0480ec7674b42b10d54d0f7f54f70') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'afc0480ec7674b42b10d54d0f7f54f70' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'afc0480ec7674b42b10d54d0f7f54f70', x'16a3e0845dd64fad9456f5f53e22b47d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'afc0480ec7674b42b10d54d0f7f54f70') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'afc0480ec7674b42b10d54d0f7f54f70' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'afc0480ec7674b42b10d54d0f7f54f70', x'c92db23a3b804f0c9772a2dcc3f8d4b6', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824f5843a_82580435d484121b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'a242334a9fa44f31b83271deb545d2ae', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'accounta242334a-9fa4-4f31-b832-71deb545d2ae' WHERE `accounts`.`id` = x'a242334a9fa44f31b83271deb545d2ae'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a242334a9fa44f31b83271deb545d2ae', x'4baa225d1fae413e864f820f6cf73dae', x'57336933cd884427b02af31989781fd4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4baa225d1fae413e864f820f6cf73dae') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4baa225d1fae413e864f820f6cf73dae' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4baa225d1fae413e864f820f6cf73dae', x'46c78a7b36234a54a4cfedbaa9622f3c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4baa225d1fae413e864f820f6cf73dae') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4baa225d1fae413e864f820f6cf73dae' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4baa225d1fae413e864f820f6cf73dae', x'760df828cca345c58b41a394de1e542e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'57336933cd884427b02af31989781fd4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'57336933cd884427b02af31989781fd4' LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'57336933cd884427b02af31989781fd4' LIMIT 1 Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:19', 'teste@teste.com', '$2a$04$gNVud3/BVPM6TbUztuTF7.xyj3sEG8sgx56QRGTPZFaDpWljgNN.m', NULL, x'9e45782606034c3884497b0b08d00fc2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9e45782606034c3884497b0b08d00fc2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:19', 'User', x'0316145db42c4b8d88a02d523b697a4d', '274333dc0cbcf437502e86a06466f221', x'9e45782606034c3884497b0b08d00fc2', 'User', '2012-12-31 12:17:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9e45782606034c3884497b0b08d00fc2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'1f6905fcad494b1281c96a510b7e848b', NULL, NULL, NULL, '2012-12-31 12:17:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account1f6905fc-ad49-4b12-81c9-6a510b7e848b' WHERE `accounts`.`id` = x'1f6905fcad494b1281c96a510b7e848b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1f6905fcad494b1281c96a510b7e848b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1f6905fcad494b1281c96a510b7e848b', x'61931f4ecf7c4e12b8991b3db20d6f07', x'9e45782606034c3884497b0b08d00fc2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'61931f4ecf7c4e12b8991b3db20d6f07') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61931f4ecf7c4e12b8991b3db20d6f07' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61931f4ecf7c4e12b8991b3db20d6f07', x'0708481b323244d7aea55141af2a02e6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'61931f4ecf7c4e12b8991b3db20d6f07') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61931f4ecf7c4e12b8991b3db20d6f07' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61931f4ecf7c4e12b8991b3db20d6f07', x'03bdd06119ac4fbfab42cfcebe2486e9', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824f821cc_82580435d484139e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'fa69c59684594e90bf22664b268abebe', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'accountfa69c596-8459-4e90-bf22-664b268abebe' WHERE `accounts`.`id` = x'fa69c59684594e90bf22664b268abebe'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fa69c59684594e90bf22664b268abebe', x'c018d231b1184a3d951f4352e95cac6c', x'9e45782606034c3884497b0b08d00fc2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c018d231b1184a3d951f4352e95cac6c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c018d231b1184a3d951f4352e95cac6c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c018d231b1184a3d951f4352e95cac6c', x'189f1ba572db4b48b8773c71c8985d9c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c018d231b1184a3d951f4352e95cac6c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c018d231b1184a3d951f4352e95cac6c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c018d231b1184a3d951f4352e95cac6c', x'2d83fb24e0ab42a79a88c00263e4c06e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9e45782606034c3884497b0b08d00fc2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9e45782606034c3884497b0b08d00fc2' LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9e45782606034c3884497b0b08d00fc2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'9e45782606034c3884497b0b08d00fc2'  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-12-31 12:17:19' WHERE `users`.`id` = x'9e45782606034c3884497b0b08d00fc2'  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.9ms | ActiveRecord: 3.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:19', 'teste@teste.com', '$2a$04$ZVbbPfAmOB.rBBZ5LEwQo.1iZz6qtK.IvVYZkfNZto7VSSMtQQT.W', NULL, x'c844bedc0682431190bd6be8d357d06f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c844bedc0682431190bd6be8d357d06f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:19', 'User', x'4381fb973d7a4b8b9d5dc424e620adbe', '51abaf661ba1743718430ca08317ef81', x'c844bedc0682431190bd6be8d357d06f', 'User', '2012-12-31 12:17:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c844bedc0682431190bd6be8d357d06f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'921a9075434c469390728e4e339fc3b9', NULL, NULL, NULL, '2012-12-31 12:17:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account921a9075-434c-4693-9072-8e4e339fc3b9' WHERE `accounts`.`id` = x'921a9075434c469390728e4e339fc3b9' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'921a9075434c469390728e4e339fc3b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'921a9075434c469390728e4e339fc3b9', x'74fa594762b940e590510be3bd8cd710', x'c844bedc0682431190bd6be8d357d06f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'74fa594762b940e590510be3bd8cd710') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74fa594762b940e590510be3bd8cd710' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74fa594762b940e590510be3bd8cd710', x'2d2ddbd62db040a0a1589944a48cc2c5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'74fa594762b940e590510be3bd8cd710') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74fa594762b940e590510be3bd8cd710' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74fa594762b940e590510be3bd8cd710', x'9a5570df89704eb1882612a0a482e164', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824f97862_82580435d4841474@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'046520a5cd5e460ca7fbd2323eb2c13d', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account046520a5-cd5e-460c-a7fb-d2323eb2c13d' WHERE `accounts`.`id` = x'046520a5cd5e460ca7fbd2323eb2c13d'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'046520a5cd5e460ca7fbd2323eb2c13d', x'ddaf5c5dfff64e678927dac649e09392', x'c844bedc0682431190bd6be8d357d06f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ddaf5c5dfff64e678927dac649e09392') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ddaf5c5dfff64e678927dac649e09392' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ddaf5c5dfff64e678927dac649e09392', x'5b78fbd9841a48eb9ee2ab8acdd5dece', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ddaf5c5dfff64e678927dac649e09392') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ddaf5c5dfff64e678927dac649e09392' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ddaf5c5dfff64e678927dac649e09392', x'eabef29574824795812b49f87b3237f0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c844bedc0682431190bd6be8d357d06f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c844bedc0682431190bd6be8d357d06f' LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c844bedc0682431190bd6be8d357d06f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c844bedc0682431190bd6be8d357d06f'  (0.3ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-12-31 12:17:19' WHERE `users`.`id` = x'c844bedc0682431190bd6be8d357d06f'  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.8ms | ActiveRecord: 1.1ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'493276a24aae426c8ae5b3c58bc28297', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account493276a2-4aae-426c-8ae5-b3c58bc28297' WHERE `accounts`.`id` = x'493276a24aae426c8ae5b3c58bc28297'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'493276a24aae426c8ae5b3c58bc28297', x'6f98bb189f344cff95563fbc2448ba24', x'c844bedc0682431190bd6be8d357d06f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6f98bb189f344cff95563fbc2448ba24') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f98bb189f344cff95563fbc2448ba24' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f98bb189f344cff95563fbc2448ba24', x'69b1fc0a2f894ba6ae6a413894ca4a48', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6f98bb189f344cff95563fbc2448ba24') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f98bb189f344cff95563fbc2448ba24' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f98bb189f344cff95563fbc2448ba24', x'f5232cadaef34774ae9db50f9960ad1d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c844bedc0682431190bd6be8d357d06f' AND (accounts.id = x'921a9075434c469390728e4e339fc3b9') LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:19', 'teste@teste.com', '$2a$04$YvKyFZ0qzqJWnDur8CHg0.9UG/8kBLNaaYIcP/K.07Bg3LLE8WCHa', NULL, x'd1746a43c105411da0326678797348fc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd1746a43c105411da0326678797348fc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:19', 'User', x'27263d1f75d94131afe8e7ffe22286cc', 'a5bfc313cab422586c349eea7e6906f3', x'd1746a43c105411da0326678797348fc', 'User', '2012-12-31 12:17:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd1746a43c105411da0326678797348fc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'ae16d1ad186a488ba5cbaaa14b094cc8', NULL, NULL, NULL, '2012-12-31 12:17:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'accountae16d1ad-186a-488b-a5cb-aaa14b094cc8' WHERE `accounts`.`id` = x'ae16d1ad186a488ba5cbaaa14b094cc8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ae16d1ad186a488ba5cbaaa14b094cc8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ae16d1ad186a488ba5cbaaa14b094cc8', x'a13b263548f74a268b636883c9ffa5c0', x'd1746a43c105411da0326678797348fc') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a13b263548f74a268b636883c9ffa5c0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a13b263548f74a268b636883c9ffa5c0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a13b263548f74a268b636883c9ffa5c0', x'927a9d6a14764a868c0b5244abd2163e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a13b263548f74a268b636883c9ffa5c0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a13b263548f74a268b636883c9ffa5c0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a13b263548f74a268b636883c9ffa5c0', x'7ff9916ca8914a6f8558c1a6ed3c362c', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824fb2925_82580435d4841570@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'96dcecb1f57b4e9ea0cc0e6d824ccae7', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account96dcecb1-f57b-4e9e-a0cc-0e6d824ccae7' WHERE `accounts`.`id` = x'96dcecb1f57b4e9ea0cc0e6d824ccae7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'96dcecb1f57b4e9ea0cc0e6d824ccae7', x'457512f9611a4c259600cebb98fc7ed2', x'd1746a43c105411da0326678797348fc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'457512f9611a4c259600cebb98fc7ed2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'457512f9611a4c259600cebb98fc7ed2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'457512f9611a4c259600cebb98fc7ed2', x'a7c049800d5d483dbd11fc9620c922ac', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'457512f9611a4c259600cebb98fc7ed2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'457512f9611a4c259600cebb98fc7ed2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'457512f9611a4c259600cebb98fc7ed2', x'59a1cb5c8ad34782bf74402990345c1d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd1746a43c105411da0326678797348fc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd1746a43c105411da0326678797348fc' LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd1746a43c105411da0326678797348fc' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:19', NULL, '--- !ruby/struct:DestroyUserJob\nid: d1746a43-c105-411d-a032-6678797348fc\n', NULL, NULL, NULL, 0, 'user_d1746a43-c105-411d-a032-6678797348fc_destroy', '2012-12-31 12:17:19', '2012-12-31 12:17:19')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_d1746a43-c105-411d-a032-6678797348fc_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 103ms (ActiveRecord: 1.3ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_d1746a43-c105-411d-a032-6678797348fc_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:19', 'teste@teste.com', '$2a$04$XyfSm8yvQiXXGTrlupnLSu9mGzWEEV7XJFyhqaiWdnSTxtaR0mrsu', NULL, x'ebe0efc3e28547569c91fc71a0ddaa94', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ebe0efc3e28547569c91fc71a0ddaa94' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:19', 'User', x'ec0ca7b34a7f4fbcb88753f0d03a26fd', 'b8b25ac61cb70a6e82c5995c4eab5e79', x'ebe0efc3e28547569c91fc71a0ddaa94', 'User', '2012-12-31 12:17:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ebe0efc3e28547569c91fc71a0ddaa94' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'227c893d92554cdc9260e859d32c77d0', NULL, NULL, NULL, '2012-12-31 12:17:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account227c893d-9255-4cdc-9260-e859d32c77d0' WHERE `accounts`.`id` = x'227c893d92554cdc9260e859d32c77d0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'227c893d92554cdc9260e859d32c77d0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'227c893d92554cdc9260e859d32c77d0', x'55449500e7de412f833f48c3a62789f7', x'ebe0efc3e28547569c91fc71a0ddaa94') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'55449500e7de412f833f48c3a62789f7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55449500e7de412f833f48c3a62789f7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55449500e7de412f833f48c3a62789f7', x'a5e9aca0185347109b37a4af583ed46f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'55449500e7de412f833f48c3a62789f7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55449500e7de412f833f48c3a62789f7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55449500e7de412f833f48c3a62789f7', x'a43f5be5fbc84924a28cf0f4cbd966df', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824fdd42f_82580435d484165a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'2cd0c59f3f764aafa21de4481515af84', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'account2cd0c59f-3f76-4aaf-a21d-e4481515af84' WHERE `accounts`.`id` = x'2cd0c59f3f764aafa21de4481515af84'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2cd0c59f3f764aafa21de4481515af84', x'6d01999ad36047e89289b30c92901e4d', x'ebe0efc3e28547569c91fc71a0ddaa94') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6d01999ad36047e89289b30c92901e4d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d01999ad36047e89289b30c92901e4d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d01999ad36047e89289b30c92901e4d', x'5bcd923fcf574c9a942afe3b7252c588', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6d01999ad36047e89289b30c92901e4d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d01999ad36047e89289b30c92901e4d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d01999ad36047e89289b30c92901e4d', x'72f6063e88564cdb8b11fc3e8cacf141', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebe0efc3e28547569c91fc71a0ddaa94' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebe0efc3e28547569c91fc71a0ddaa94' LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ebe0efc3e28547569c91fc71a0ddaa94' LIMIT 1 Completed 404 Not Found in 2ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:19', 'teste@teste.com', '$2a$04$FA6u9EJoRFJ9b38LmU488uEUgqexNBd83PBj.khjdfYVYMPS1mlxm', NULL, x'60203864790944749501a7fa013277e8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'60203864790944749501a7fa013277e8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:19', 'User', x'0970bdc16a7842cdbb7588bd26ebdd0d', '4a2f46d0f84d5de739e7bd30f40ab66d', x'60203864790944749501a7fa013277e8', 'User', '2012-12-31 12:17:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'60203864790944749501a7fa013277e8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'd1fc648d88c14308b8a9df47d71e0f03', NULL, NULL, NULL, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'accountd1fc648d-88c1-4308-b8a9-df47d71e0f03' WHERE `accounts`.`id` = x'd1fc648d88c14308b8a9df47d71e0f03' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd1fc648d88c14308b8a9df47d71e0f03' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd1fc648d88c14308b8a9df47d71e0f03', x'3b6399a02a8b4f94b2b796d20c68df5a', x'60203864790944749501a7fa013277e8') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3b6399a02a8b4f94b2b796d20c68df5a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b6399a02a8b4f94b2b796d20c68df5a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b6399a02a8b4f94b2b796d20c68df5a', x'a8fee6fb373342f9884009971f3110e5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3b6399a02a8b4f94b2b796d20c68df5a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b6399a02a8b4f94b2b796d20c68df5a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b6399a02a8b4f94b2b796d20c68df5a', x'62757056a5a14a9c813cc26b8cdffeb7', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1824fef74e_82580435d48417d1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:19', x'f57835d2b6794ecfa925acd1bb63514a', 'jabanilson', NULL, 1, '2012-12-31 12:17:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:19', `updated_at` = '2012-12-31 12:17:19', `subdomain` = 'accountf57835d2-b679-4ecf-a925-acd1bb63514a' WHERE `accounts`.`id` = x'f57835d2b6794ecfa925acd1bb63514a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f57835d2b6794ecfa925acd1bb63514a', x'9adced13a2034e199ececcecd11d935d', x'60203864790944749501a7fa013277e8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9adced13a2034e199ececcecd11d935d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9adced13a2034e199ececcecd11d935d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9adced13a2034e199ececcecd11d935d', x'94b695304d9f4bb6856795a82407b515', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9adced13a2034e199ececcecd11d935d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9adced13a2034e199ececcecd11d935d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9adced13a2034e199ececcecd11d935d', x'653b30fca3194da7988680f3ad425a1e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60203864790944749501a7fa013277e8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60203864790944749501a7fa013277e8' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:17:20', NULL, '--- !ruby/struct:DestroyUserJob\nid: 60203864-7909-4474-9501-a7fa013277e8\n', NULL, NULL, NULL, 0, 'user_60203864-7909-4474-9501-a7fa013277e8_destroy', '2012-12-31 12:17:20', '2012-12-31 12:17:20')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'60203864790944749501a7fa013277e8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_60203864-7909-4474-9501-a7fa013277e8_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_60203864-7909-4474-9501-a7fa013277e8_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_60203864-7909-4474-9501-a7fa013277e8_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:20', 'teste@teste.com', '$2a$04$bUCFTnqfPD8CpAjfzwL0T.WKBxb69y96ws6oulZcQZI1HIVFwu9LK', NULL, x'dfbea432e79142cbb1123cc95fd71d72', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dfbea432e79142cbb1123cc95fd71d72' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'd8fe22e4f1d146d3829be034f7fd1825', '35795e22d8376b315f205026e4fe168a', x'dfbea432e79142cbb1123cc95fd71d72', 'User', '2012-12-31 12:17:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dfbea432e79142cbb1123cc95fd71d72' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'496742f981f7461ea95b63d599e93f21', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account496742f9-81f7-461e-a95b-63d599e93f21' WHERE `accounts`.`id` = x'496742f981f7461ea95b63d599e93f21' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'496742f981f7461ea95b63d599e93f21' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'496742f981f7461ea95b63d599e93f21', x'ca503eb11756472880bb54b71e669b3d', x'dfbea432e79142cbb1123cc95fd71d72') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ca503eb11756472880bb54b71e669b3d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca503eb11756472880bb54b71e669b3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca503eb11756472880bb54b71e669b3d', x'04b92cb03bc040b986a4a89fdfdf8c11', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ca503eb11756472880bb54b71e669b3d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca503eb11756472880bb54b71e669b3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca503eb11756472880bb54b71e669b3d', x'c57934390ece4a53adc639487b11daa0', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18250f2a4_82580435d48418c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'625925a3e1c349478596f7bfd0c62e04', 'jabanilson', NULL, 1, '2012-12-31 12:17:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account625925a3-e1c3-4947-8596-f7bfd0c62e04' WHERE `accounts`.`id` = x'625925a3e1c349478596f7bfd0c62e04'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'625925a3e1c349478596f7bfd0c62e04', x'2ebfa36aaef845ca8b3a4990205d51cd', x'dfbea432e79142cbb1123cc95fd71d72') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2ebfa36aaef845ca8b3a4990205d51cd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ebfa36aaef845ca8b3a4990205d51cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ebfa36aaef845ca8b3a4990205d51cd', x'7413038c0a4d4d8abc388f2c58f7ba7d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2ebfa36aaef845ca8b3a4990205d51cd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ebfa36aaef845ca8b3a4990205d51cd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ebfa36aaef845ca8b3a4990205d51cd', x'0877f06a08754775ad9b8a89fb6435ae', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dfbea432e79142cbb1123cc95fd71d72' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dfbea432e79142cbb1123cc95fd71d72' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'd6c35c55e50349c088750036b9c0b613', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'dfbea432e79142cbb1123cc95fd71d72' WHERE `social_accounts`.`id` = x'd6c35c55e50349c088750036b9c0b613'  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'dfbea432e79142cbb1123cc95fd71d72' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"D6C35C55E50349C088750036B9C0B613"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'dfbea432e79142cbb1123cc95fd71d72' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'dfbea432e79142cbb1123cc95fd71d72' AND `social_accounts`.`id` = x'd6c35c55e50349c088750036b9c0b613' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'dfbea432e79142cbb1123cc95fd71d72' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'dfbea432e79142cbb1123cc95fd71d72'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'd6c35c55e50349c088750036b9c0b613'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 1.7ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:20', 'teste@teste.com', '$2a$04$Ccz6YxObuQqi/N6bpZVgveW1rfqcQEjQpxh2iOgE6JC7nNg6WtZAq', NULL, x'3305633c6dc14bd0bae85c04b5926d42', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3305633c6dc14bd0bae85c04b5926d42' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'0ce6836d846d4df6bb474574aeb59a0c', '640742d7f93b725868549c899e046839', x'3305633c6dc14bd0bae85c04b5926d42', 'User', '2012-12-31 12:17:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3305633c6dc14bd0bae85c04b5926d42' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'dea104ccdec94b85b395dccfac9a7cea', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'accountdea104cc-dec9-4b85-b395-dccfac9a7cea' WHERE `accounts`.`id` = x'dea104ccdec94b85b395dccfac9a7cea' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dea104ccdec94b85b395dccfac9a7cea' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dea104ccdec94b85b395dccfac9a7cea', x'38d51e5d9fd8468fae9f8861810a0cda', x'3305633c6dc14bd0bae85c04b5926d42') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'38d51e5d9fd8468fae9f8861810a0cda') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'38d51e5d9fd8468fae9f8861810a0cda' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'38d51e5d9fd8468fae9f8861810a0cda', x'9c6b38497d7a430ab8132ee567b33953', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'38d51e5d9fd8468fae9f8861810a0cda') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'38d51e5d9fd8468fae9f8861810a0cda' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'38d51e5d9fd8468fae9f8861810a0cda', x'f460d854783844b19b88712447e483c2', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182503d561_82580435d48419e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'7aafdc47cce94df1b2e195038e8602c1', 'jabanilson', NULL, 1, '2012-12-31 12:17:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account7aafdc47-cce9-4df1-b2e1-95038e8602c1' WHERE `accounts`.`id` = x'7aafdc47cce94df1b2e195038e8602c1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7aafdc47cce94df1b2e195038e8602c1', x'41e3708ce25341ed9cc71e9ae72bbfe7', x'3305633c6dc14bd0bae85c04b5926d42') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'41e3708ce25341ed9cc71e9ae72bbfe7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41e3708ce25341ed9cc71e9ae72bbfe7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41e3708ce25341ed9cc71e9ae72bbfe7', x'69e981119941423f86ea503e7287543b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'41e3708ce25341ed9cc71e9ae72bbfe7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41e3708ce25341ed9cc71e9ae72bbfe7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41e3708ce25341ed9cc71e9ae72bbfe7', x'08579bfaae6c4d4baaf9cdf3345feaa0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3305633c6dc14bd0bae85c04b5926d42' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3305633c6dc14bd0bae85c04b5926d42' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'719f73f2fa5f46cb81c4b26c89d693c0', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'3305633c6dc14bd0bae85c04b5926d42' WHERE `social_accounts`.`id` = x'719f73f2fa5f46cb81c4b26c89d693c0'  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3305633c6dc14bd0bae85c04b5926d42' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"719F73F2FA5F46CB81C4B26C89D693C0"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3305633c6dc14bd0bae85c04b5926d42' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3305633c6dc14bd0bae85c04b5926d42' AND `social_accounts`.`id` = x'719f73f2fa5f46cb81c4b26c89d693c0' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3305633c6dc14bd0bae85c04b5926d42' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3305633c6dc14bd0bae85c04b5926d42'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'719f73f2fa5f46cb81c4b26c89d693c0'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:20', 'teste@teste.com', '$2a$04$qEhVkZN6PpVHwzw0ohKoDu0ihA5EiPG9iMA/X3KtHxcyRaEOfwjvi', NULL, x'67169d5ddebc403583c3264354af442f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'67169d5ddebc403583c3264354af442f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'871eaf2616a143ce898f87f9cb7397d6', '8d9ed6dac5d0c555ed0b7085af9d2a7b', x'67169d5ddebc403583c3264354af442f', 'User', '2012-12-31 12:17:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'67169d5ddebc403583c3264354af442f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'caf9cab8299a45e5a969d2a54ff15b89', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'accountcaf9cab8-299a-45e5-a969-d2a54ff15b89' WHERE `accounts`.`id` = x'caf9cab8299a45e5a969d2a54ff15b89' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'caf9cab8299a45e5a969d2a54ff15b89' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'caf9cab8299a45e5a969d2a54ff15b89', x'10d9a3d02e5641c69adf1d1a2fc8a9bc', x'67169d5ddebc403583c3264354af442f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'10d9a3d02e5641c69adf1d1a2fc8a9bc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10d9a3d02e5641c69adf1d1a2fc8a9bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10d9a3d02e5641c69adf1d1a2fc8a9bc', x'52af0cc57b6844508391c0d1d1de50ef', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'10d9a3d02e5641c69adf1d1a2fc8a9bc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10d9a3d02e5641c69adf1d1a2fc8a9bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10d9a3d02e5641c69adf1d1a2fc8a9bc', x'eacb827f92214ca2a6b081f7e2c51974', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:17:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182505bcc4_82580435d48420a8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'08c94bf3c3314e298b06d388d0578adc', 'jabanilson', NULL, 1, '2012-12-31 12:17:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account08c94bf3-c331-4e29-8b06-d388d0578adc' WHERE `accounts`.`id` = x'08c94bf3c3314e298b06d388d0578adc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'08c94bf3c3314e298b06d388d0578adc', x'3a52e04d4dfd403cbc0c12647b0807af', x'67169d5ddebc403583c3264354af442f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3a52e04d4dfd403cbc0c12647b0807af') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a52e04d4dfd403cbc0c12647b0807af' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a52e04d4dfd403cbc0c12647b0807af', x'f1f7bd3bd33e488e953aea0be2f4419f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3a52e04d4dfd403cbc0c12647b0807af') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a52e04d4dfd403cbc0c12647b0807af' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a52e04d4dfd403cbc0c12647b0807af', x'0afabe06e8ff42579d2e046b090562ba', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'67169d5ddebc403583c3264354af442f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'67169d5ddebc403583c3264354af442f' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'fed2edc30aad4e219aed9ed0f425a62a', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'67169d5ddebc403583c3264354af442f' WHERE `social_accounts`.`id` = x'fed2edc30aad4e219aed9ed0f425a62a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'26143bb627ae4509b6cb03004955c490', 'twitter', NULL, '123123123', NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:20', '2012-12-31 12:17:20', '', '$2a$04$CQbft.bv9.mEYsSxs7PaWOhXWPvqOu/pQvwj728zBP6ZDB7x91VVS', NULL, x'8fd99eb36e6e42c2857be0a6cc0b41d3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' WHERE `social_accounts`.`id` = x'26143bb627ae4509b6cb03004955c490' ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'61f387236b794efe92af42eef809de4d', '99f4ae863a44145f09f85aa1cc828743', x'8fd99eb36e6e42c2857be0a6cc0b41d3', 'User', '2012-12-31 12:17:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'4aee29a5f4834ae588ab7c0a42c04d7e', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account4aee29a5-f483-4ae5-88ab-7c0a42c04d7e' WHERE `accounts`.`id` = x'4aee29a5f4834ae588ab7c0a42c04d7e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4aee29a5f4834ae588ab7c0a42c04d7e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4aee29a5f4834ae588ab7c0a42c04d7e', x'a23530b534d54290811dd6c1a8499941', x'8fd99eb36e6e42c2857be0a6cc0b41d3') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a23530b534d54290811dd6c1a8499941') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a23530b534d54290811dd6c1a8499941' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a23530b534d54290811dd6c1a8499941', x'6ef0329e5d0e46f1aab840200226c54f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a23530b534d54290811dd6c1a8499941') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a23530b534d54290811dd6c1a8499941' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a23530b534d54290811dd6c1a8499941', x'71245417fe8445d687bbb0ca5402693a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"26143BB627AE4509B6CB03004955C490"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' AND `social_accounts`.`id` = x'26143bb627ae4509b6cb03004955c490' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8fd99eb36e6e42c2857be0a6cc0b41d3' Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:20', 'teste@teste.com', '$2a$04$NCrOKV65eY3nET6VRv.r8OHxs.VpMaVHmWUeYM2INfHCHPKrFuStq', NULL, x'376d56c874544e3890f152ca949b8e6b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'376d56c874544e3890f152ca949b8e6b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'42b90d43e997467b994fa95dbc619500', '73537a4f549cc875a2816ec48f4fef05', x'376d56c874544e3890f152ca949b8e6b', 'User', '2012-12-31 12:17:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'376d56c874544e3890f152ca949b8e6b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'59d5f789433b4e0c84b6a87427618131', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account59d5f789-433b-4e0c-84b6-a87427618131' WHERE `accounts`.`id` = x'59d5f789433b4e0c84b6a87427618131' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'59d5f789433b4e0c84b6a87427618131' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'59d5f789433b4e0c84b6a87427618131', x'1373b743c9f7403f8bde1717c82e21f8', x'376d56c874544e3890f152ca949b8e6b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1373b743c9f7403f8bde1717c82e21f8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1373b743c9f7403f8bde1717c82e21f8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1373b743c9f7403f8bde1717c82e21f8', x'fb2e302a0b094e1e8085e84577a27511', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1373b743c9f7403f8bde1717c82e21f8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1373b743c9f7403f8bde1717c82e21f8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1373b743c9f7403f8bde1717c82e21f8', x'a2c9bae61c804df7b9132e463d27ecc8', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e182507634f_82580435d4842170@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'265f0c8a061a4268805fa4585680b2f4', 'jabanilson', NULL, 1, '2012-12-31 12:17:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account265f0c8a-061a-4268-805f-a4585680b2f4' WHERE `accounts`.`id` = x'265f0c8a061a4268805fa4585680b2f4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'265f0c8a061a4268805fa4585680b2f4', x'df5d7934d6af420a87ff01a3ac79ba92', x'376d56c874544e3890f152ca949b8e6b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'df5d7934d6af420a87ff01a3ac79ba92') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df5d7934d6af420a87ff01a3ac79ba92' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df5d7934d6af420a87ff01a3ac79ba92', x'5caafc05fc3a404a9f02b6cb4f06e19c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'df5d7934d6af420a87ff01a3ac79ba92') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df5d7934d6af420a87ff01a3ac79ba92' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df5d7934d6af420a87ff01a3ac79ba92', x'04ce84bd53954d80a739eb1a135243a0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'376d56c874544e3890f152ca949b8e6b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'376d56c874544e3890f152ca949b8e6b' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'213a159433274ace8a997e94daea597e', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'376d56c874544e3890f152ca949b8e6b' WHERE `social_accounts`.`id` = x'213a159433274ace8a997e94daea597e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'5fc1dff87a674141b242548daca2aedd', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:20', '2012-12-31 12:17:20', '', '$2a$04$aqC/sTbciKTD..KsYAYLyOvF3.94fkHzTkN4wFhUPnuDMvkiwIVNy', NULL, x'69087480f5304760a9a529cc4cf7ea0f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'69087480f5304760a9a529cc4cf7ea0f' WHERE `social_accounts`.`id` = x'5fc1dff87a674141b242548daca2aedd' ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'69087480f5304760a9a529cc4cf7ea0f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'aed5ed58bfe54cf5a120f063e620ed79', '8ee6e91a67807a9487ee2f208333095d', x'69087480f5304760a9a529cc4cf7ea0f', 'User', '2012-12-31 12:17:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'69087480f5304760a9a529cc4cf7ea0f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'4edbb8cdc01443a6ab0bc7aa4fb2754d', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account4edbb8cd-c014-43a6-ab0b-c7aa4fb2754d' WHERE `accounts`.`id` = x'4edbb8cdc01443a6ab0bc7aa4fb2754d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4edbb8cdc01443a6ab0bc7aa4fb2754d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4edbb8cdc01443a6ab0bc7aa4fb2754d', x'106dddabd0454fdeb9dda4f6ab3e26ae', x'69087480f5304760a9a529cc4cf7ea0f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'106dddabd0454fdeb9dda4f6ab3e26ae') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'106dddabd0454fdeb9dda4f6ab3e26ae' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'106dddabd0454fdeb9dda4f6ab3e26ae', x'0ea69622f46a4f8d984771090bab413e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'106dddabd0454fdeb9dda4f6ab3e26ae') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'106dddabd0454fdeb9dda4f6ab3e26ae' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'106dddabd0454fdeb9dda4f6ab3e26ae', x'4c7d3cb65bc047ab9e0fad3326a268e0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'69087480f5304760a9a529cc4cf7ea0f' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'69087480f5304760a9a529cc4cf7ea0f' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"5FC1DFF87A674141B242548DACA2AEDD"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'69087480f5304760a9a529cc4cf7ea0f' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'69087480f5304760a9a529cc4cf7ea0f' AND `social_accounts`.`id` = x'5fc1dff87a674141b242548daca2aedd' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'69087480f5304760a9a529cc4cf7ea0f' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'69087480f5304760a9a529cc4cf7ea0f' Redirected to http://test.host/settings/profile Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:20', 'teste@teste.com', '$2a$04$GjnVzAL6XnEZoZjNOtsWRe5GgF0IHujssgQ0CZTT/otoaY7gpX8k.', NULL, x'a039d0fd75e040ce9a338997a44d1c0b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a039d0fd75e040ce9a338997a44d1c0b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'ffee2931cbfd43fe8a84e7c87fca95ea', '3b6b86cc890f4249eed499e2ce915ec4', x'a039d0fd75e040ce9a338997a44d1c0b', 'User', '2012-12-31 12:17:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a039d0fd75e040ce9a338997a44d1c0b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'd01ceeb9c77d42cc8ff7de770fc0d969', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'accountd01ceeb9-c77d-42cc-8ff7-de770fc0d969' WHERE `accounts`.`id` = x'd01ceeb9c77d42cc8ff7de770fc0d969' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd01ceeb9c77d42cc8ff7de770fc0d969' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd01ceeb9c77d42cc8ff7de770fc0d969', x'e47b99a67d1f4a13a76481e083ed40b8', x'a039d0fd75e040ce9a338997a44d1c0b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e47b99a67d1f4a13a76481e083ed40b8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e47b99a67d1f4a13a76481e083ed40b8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e47b99a67d1f4a13a76481e083ed40b8', x'b1f59dd951b542569e46e415e18472be', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e47b99a67d1f4a13a76481e083ed40b8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e47b99a67d1f4a13a76481e083ed40b8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e47b99a67d1f4a13a76481e083ed40b8', x'b95d399e7768416aaa47b6ec06ff6ed6', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18250a8804_82580435d4842243@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'9a810c166d06412d8a56d07128151135', 'jabanilson', NULL, 1, '2012-12-31 12:17:20')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account9a810c16-6d06-412d-8a56-d07128151135' WHERE `accounts`.`id` = x'9a810c166d06412d8a56d07128151135'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9a810c166d06412d8a56d07128151135', x'dfc02436063a4bfa950bd63fdf086c19', x'a039d0fd75e040ce9a338997a44d1c0b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dfc02436063a4bfa950bd63fdf086c19') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dfc02436063a4bfa950bd63fdf086c19' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dfc02436063a4bfa950bd63fdf086c19', x'7a86bc20280043f1b4f6addbaf1716f0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dfc02436063a4bfa950bd63fdf086c19') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dfc02436063a4bfa950bd63fdf086c19' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dfc02436063a4bfa950bd63fdf086c19', x'dce8213ca4a2448c9a756b5a775fc566', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a039d0fd75e040ce9a338997a44d1c0b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a039d0fd75e040ce9a338997a44d1c0b' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'5577ad6d702641a1bc663cad05b4e7af', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'a039d0fd75e040ce9a338997a44d1c0b' WHERE `social_accounts`.`id` = x'5577ad6d702641a1bc663cad05b4e7af'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a039d0fd75e040ce9a338997a44d1c0b' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'a039d0fd75e040ce9a338997a44d1c0b' AND `social_accounts`.`id` = x'00000000000039313238373339313237' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:20', 'teste@teste.com', '$2a$04$pRdz5XxB0gdIH8y80JQfdelqLBJkFs0PHDOd98VkCuDC/yfDd2NY2', NULL, x'82125b50bfcf48a999324f52da3f9ead', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'82125b50bfcf48a999324f52da3f9ead' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'5ea8bc28294c4ff19c43381ad7d5d318', 'd1cdbe350bf8ab00d832a2e73bb0f815', x'82125b50bfcf48a999324f52da3f9ead', 'User', '2012-12-31 12:17:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'82125b50bfcf48a999324f52da3f9ead' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'1a48e514293f49b9b5729ed447ef2fa9', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account1a48e514-293f-49b9-b572-9ed447ef2fa9' WHERE `accounts`.`id` = x'1a48e514293f49b9b5729ed447ef2fa9' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1a48e514293f49b9b5729ed447ef2fa9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1a48e514293f49b9b5729ed447ef2fa9', x'e8cea3bddef6456c95030a6b93c2bcce', x'82125b50bfcf48a999324f52da3f9ead') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e8cea3bddef6456c95030a6b93c2bcce') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e8cea3bddef6456c95030a6b93c2bcce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e8cea3bddef6456c95030a6b93c2bcce', x'b774558750784d5085081ac62deebfe0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e8cea3bddef6456c95030a6b93c2bcce') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e8cea3bddef6456c95030a6b93c2bcce' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e8cea3bddef6456c95030a6b93c2bcce', x'ffd9314a04154732874268c5abd724eb', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:17:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18250bb903_82580435d4842310@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'bab26f48380440ae80f49968312e1b4d', 'jabanilson', NULL, 1, '2012-12-31 12:17:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'accountbab26f48-3804-40ae-80f4-9968312e1b4d' WHERE `accounts`.`id` = x'bab26f48380440ae80f49968312e1b4d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bab26f48380440ae80f49968312e1b4d', x'5b02195c375d455bb31c99773f6d58d6', x'82125b50bfcf48a999324f52da3f9ead') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5b02195c375d455bb31c99773f6d58d6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b02195c375d455bb31c99773f6d58d6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b02195c375d455bb31c99773f6d58d6', x'9b5cafcf2def4382a3fa8b5508cad722', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5b02195c375d455bb31c99773f6d58d6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b02195c375d455bb31c99773f6d58d6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b02195c375d455bb31c99773f6d58d6', x'80d1cfe08e204c83b7f51b72d4200f84', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82125b50bfcf48a999324f52da3f9ead' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82125b50bfcf48a999324f52da3f9ead' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'c51f48e7d86c42d6a91075629f0d2ad8', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'82125b50bfcf48a999324f52da3f9ead' WHERE `social_accounts`.`id` = x'c51f48e7d86c42d6a91075629f0d2ad8'  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'82125b50bfcf48a999324f52da3f9ead' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'82125b50bfcf48a999324f52da3f9ead' AND `social_accounts`.`id` = x'00000000000039313238373339313237' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:07', '2012-12-31 12:17:20', 'teste@teste.com', '$2a$04$Cgdhghj08yv1DnNKE7Hl7O4BxwluByd1OoBK8zMmS8tuyUjOSVEDy', NULL, x'7c77fa46b8314efb8432bd1fd3890b62', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:17:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7c77fa46b8314efb8432bd1fd3890b62' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'80f0cd075e3c4e76a5643aed725a9eb0', '9c8b5ec35f57bb6b690bfa3c2e9ac0a1', x'7c77fa46b8314efb8432bd1fd3890b62', 'User', '2012-12-31 12:17:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7c77fa46b8314efb8432bd1fd3890b62' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'9511f5339202448d883d3c6c42c910db', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account9511f533-9202-448d-883d-3c6c42c910db' WHERE `accounts`.`id` = x'9511f5339202448d883d3c6c42c910db' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9511f5339202448d883d3c6c42c910db' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9511f5339202448d883d3c6c42c910db', x'320bd9a9bbfc4096a80936eb064d4dac', x'7c77fa46b8314efb8432bd1fd3890b62') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'320bd9a9bbfc4096a80936eb064d4dac') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'320bd9a9bbfc4096a80936eb064d4dac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'320bd9a9bbfc4096a80936eb064d4dac', x'19f8aa76b2fd41dcaf54fd85ef3932fb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'320bd9a9bbfc4096a80936eb064d4dac') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'320bd9a9bbfc4096a80936eb064d4dac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'320bd9a9bbfc4096a80936eb064d4dac', x'6a5e32d60e49467989e00a2a582a41ba', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:17:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18250cf815_82580435d484248f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'c269530d7f77440597f33290018b5b06', 'jabanilson', NULL, 1, '2012-12-31 12:17:20')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'accountc269530d-7f77-4405-97f3-3290018b5b06' WHERE `accounts`.`id` = x'c269530d7f77440597f33290018b5b06'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c269530d7f77440597f33290018b5b06', x'3081c08e5fe04fb5aea14ccbfa0a4673', x'7c77fa46b8314efb8432bd1fd3890b62') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3081c08e5fe04fb5aea14ccbfa0a4673') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3081c08e5fe04fb5aea14ccbfa0a4673' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3081c08e5fe04fb5aea14ccbfa0a4673', x'ec83b18b25e441d9b582fac578cfeaf1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3081c08e5fe04fb5aea14ccbfa0a4673') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3081c08e5fe04fb5aea14ccbfa0a4673' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3081c08e5fe04fb5aea14ccbfa0a4673', x'4c3b9aedf68c4ffa962740f551f9e3c4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7c77fa46b8314efb8432bd1fd3890b62' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7c77fa46b8314efb8432bd1fd3890b62' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ad453c7b885a49bbac4c47147448d7a0', 'twitter', NULL, '123123123', NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'7c77fa46b8314efb8432bd1fd3890b62' WHERE `social_accounts`.`id` = x'ad453c7b885a49bbac4c47147448d7a0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:17:20', '2012-12-31 12:17:20', '', '', 1, x'885fc9dccc304f0aabdac02b66dae8f1', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:17:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'885fc9dccc304f0aabdac02b66dae8f1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:17:20', 'User', x'b615a6e6de994e09a62a5772d4eee804', '4202dc3c24b81c3502d6fd1f0a7933cc', x'885fc9dccc304f0aabdac02b66dae8f1', 'User', '2012-12-31 12:17:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'885fc9dccc304f0aabdac02b66dae8f1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:17:20', x'330b94f2a05243e482c43bca8fafe88c', NULL, NULL, NULL, '2012-12-31 12:17:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:17:20', `updated_at` = '2012-12-31 12:17:20', `subdomain` = 'account330b94f2-a052-43e4-82c4-3bca8fafe88c' WHERE `accounts`.`id` = x'330b94f2a05243e482c43bca8fafe88c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'330b94f2a05243e482c43bca8fafe88c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'330b94f2a05243e482c43bca8fafe88c', x'c3595b9fa7174fc88751ad3d6a451abf', x'885fc9dccc304f0aabdac02b66dae8f1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c3595b9fa7174fc88751ad3d6a451abf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3595b9fa7174fc88751ad3d6a451abf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3595b9fa7174fc88751ad3d6a451abf', x'6a5aa4fba71b4724bd7caa38b371f413', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c3595b9fa7174fc88751ad3d6a451abf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3595b9fa7174fc88751ad3d6a451abf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3595b9fa7174fc88751ad3d6a451abf', x'c03af809011d4673800425ee60500572', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (11.4ms) TRUNCATE TABLE `account_domains`;  (8.1ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (1.1ms) TRUNCATE TABLE `api_tokens`;  (0.9ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'526cd8ab2ae741f2a58f7df5f0edde86', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account526cd8ab-2ae7-41f2-a58f-7df5f0edde86' WHERE `accounts`.`id` = x'526cd8ab2ae741f2a58f7df5f0edde86'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'526cd8ab2ae741f2a58f7df5f0edde86' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'526cd8ab2ae741f2a58f7df5f0edde86', x'c4f6b56ce8b442459b62c43db1463341', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'633e75ebf1a8457caf3846efc25b2941', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account633e75eb-f1a8-457c-af38-46efc25b2941' WHERE `accounts`.`id` = x'633e75ebf1a8457caf3846efc25b2941'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'633e75ebf1a8457caf3846efc25b2941' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'633e75ebf1a8457caf3846efc25b2941', x'46cf5d4a736442978ea428a35d2833f3', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'bf42b0b979504785b0be6ae8989a78eb', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'accountbf42b0b9-7950-4785-b0be-6ae8989a78eb' WHERE `accounts`.`id` = x'bf42b0b979504785b0be6ae8989a78eb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bf42b0b979504785b0be6ae8989a78eb' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bf42b0b979504785b0be6ae8989a78eb', x'2bc060026ce342f7971d06d1756b7221', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'06ca3d3c32ff441fb689cb7fea68d40b', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account06ca3d3c-32ff-441f-b689-cb7fea68d40b' WHERE `accounts`.`id` = x'06ca3d3c32ff441fb689cb7fea68d40b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'06ca3d3c32ff441fb689cb7fea68d40b' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'06ca3d3c32ff441fb689cb7fea68d40b', x'c48f00625b524add84649b504edbe4a4', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'826e45e73ad043ff8f60a08cf3d36f72', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account826e45e7-3ad0-43ff-8f60-a08cf3d36f72' WHERE `accounts`.`id` = x'826e45e73ad043ff8f60a08cf3d36f72'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'826e45e73ad043ff8f60a08cf3d36f72' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'826e45e73ad043ff8f60a08cf3d36f72', x'c84573c8619b4cc38db1db281fcd62ab', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'5ddafae3889047c6b6b28f680f6f22e8', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account5ddafae3-8890-47c6-b6b2-8f680f6f22e8' WHERE `accounts`.`id` = x'5ddafae3889047c6b6b28f680f6f22e8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5ddafae3889047c6b6b28f680f6f22e8' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5ddafae3889047c6b6b28f680f6f22e8', x'38d3e49d082f4d259a70c5da78d5eee5', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'abfeadc8681a4e2a9b72cfcb7d5365fd', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'accountabfeadc8-681a-4e2a-9b72-cfcb7d5365fd' WHERE `accounts`.`id` = x'abfeadc8681a4e2a9b72cfcb7d5365fd'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'f8e9b61207c741a5b34d7c980944f16b', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'accountf8e9b612-07c7-41a5-b34d-7c980944f16b' WHERE `accounts`.`id` = x'f8e9b61207c741a5b34d7c980944f16b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f8e9b61207c741a5b34d7c980944f16b' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f8e9b61207c741a5b34d7c980944f16b', x'9451b3b3faa8450788be9940e16d6438', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'4c4d262338464531983dbcbf41d858f1', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account4c4d2623-3846-4531-983d-bcbf41d858f1' WHERE `accounts`.`id` = x'4c4d262338464531983dbcbf41d858f1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c4d262338464531983dbcbf41d858f1' AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4c4d262338464531983dbcbf41d858f1', x'c6d5cad09f814a7bb9434f078c82a8d9', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c4d262338464531983dbcbf41d858f1' AND `account_domains`.`url` = 'valid.url.test'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'cf3c609f4e9e4afeab264940e2d8e656', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'accountcf3c609f-4e9e-4afe-ab26-4940e2d8e656' WHERE `accounts`.`id` = x'cf3c609f4e9e4afeab264940e2d8e656'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'cf3c609f4e9e4afeab264940e2d8e656' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'cf3c609f4e9e4afeab264940e2d8e656', x'2af393bc6cdb4c4181abddec1f513542', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'50760988b9f14a818b3ac78f4fa0d7b9', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account50760988-b9f1-4a81-8b3a-c78f4fa0d7b9' WHERE `accounts`.`id` = x'50760988b9f14a818b3ac78f4fa0d7b9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'50760988b9f14a818b3ac78f4fa0d7b9' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'50760988b9f14a818b3ac78f4fa0d7b9', x'2fcfbd68963d4137ad9c213091589c50', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'1a048c29d5214282995f2885d06a085d', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account1a048c29-d521-4282-995f-2885d06a085d' WHERE `accounts`.`id` = x'1a048c29d5214282995f2885d06a085d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1a048c29d5214282995f2885d06a085d' AND `account_domains`.`url` = 'url1.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1a048c29d5214282995f2885d06a085d', x'518d9d10c9ac4dc4aef63b3e1e6bfb0a', NULL, 'url1.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1a048c29d5214282995f2885d06a085d' AND `account_domains`.`url` = 'url2.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1a048c29d5214282995f2885d06a085d', x'4c1846a708ab402fa452761804a2b5df', NULL, 'url2.test.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'518d9d10c9ac4dc4aef63b3e1e6bfb0a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'4c1846a708ab402fa452761804a2b5df'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'1a048c29d5214282995f2885d06a085d'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'518d9d10c9ac4dc4aef63b3e1e6bfb0a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'518d9d10c9ac4dc4aef63b3e1e6bfb0a'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1a048c29d5214282995f2885d06a085d' AND `account_domains`.`primary` = 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'1a048c29d5214282995f2885d06a085d' AND `account_domains`.`verified` = 1 LIMIT 1  (0.3ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'4c1846a708ab402fa452761804a2b5df' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'518d9d10c9ac4dc4aef63b3e1e6bfb0a'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'4c1846a708ab402fa452761804a2b5df' LIMIT 1  (9.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'4efcea0cd5df41adae904f12e18e7515', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account4efcea0c-d5df-41ad-ae90-4f12e18e7515' WHERE `accounts`.`id` = x'4efcea0cd5df41adae904f12e18e7515'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4efcea0cd5df41adae904f12e18e7515' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4efcea0cd5df41adae904f12e18e7515', x'3fff2373840c4444b766192aabb73f14', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'24b81f498fde4a45a0cb78ab33726d82', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account24b81f49-8fde-4a45-a0cb-78ab33726d82' WHERE `accounts`.`id` = x'24b81f498fde4a45a0cb78ab33726d82'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'24b81f498fde4a45a0cb78ab33726d82' AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'24b81f498fde4a45a0cb78ab33726d82', x'7a6953a459c6444c9fbd911b3e791460', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'5cb197b080a54b6198d5041a65d37fac', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account5cb197b0-80a5-4b61-98d5-041a65d37fac' WHERE `accounts`.`id` = x'5cb197b080a54b6198d5041a65d37fac'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5cb197b080a54b6198d5041a65d37fac' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5cb197b080a54b6198d5041a65d37fac', x'85aa3f79656f4527b2a2e48421cd1a0a', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'76c82d9ea72e43089807c07519902888', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account76c82d9e-a72e-4308-9807-c07519902888' WHERE `accounts`.`id` = x'76c82d9ea72e43089807c07519902888'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'76c82d9ea72e43089807c07519902888' AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'76c82d9ea72e43089807c07519902888', x'b6dfd528af654bebb7e658a1abb0f855', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'5196672675e945c4a9df3ab92caaed67', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account51966726-75e9-45c4-a9df-3ab92caaed67' WHERE `accounts`.`id` = x'5196672675e945c4a9df3ab92caaed67'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5196672675e945c4a9df3ab92caaed67' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5196672675e945c4a9df3ab92caaed67', x'58e3d5f519334330887a3e0574fea5e5', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:18:31', x'281d57e28797422b816ca0fc36e594a9', 'jabanilson', NULL, 1, '2012-12-31 12:18:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:18:31', `updated_at` = '2012-12-31 12:18:31', `subdomain` = 'account281d57e2-8797-422b-816c-a0fc36e594a9' WHERE `accounts`.`id` = x'281d57e28797422b816ca0fc36e594a9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'281d57e28797422b816ca0fc36e594a9' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'281d57e28797422b816ca0fc36e594a9', x'bcaee1ceb8ed4729a1f5f65ba940ab22', NULL, 'www.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'bcaee1ceb8ed4729a1f5f65ba940ab22'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'281d57e28797422b816ca0fc36e594a9' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'281d57e28797422b816ca0fc36e594a9' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'bcaee1ceb8ed4729a1f5f65ba940ab22'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:19:32', x'7dfedb130b214ceb9ccab25194cf9cec', 'jabanilson', NULL, 1, '2012-12-31 12:19:32')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:19:32', `updated_at` = '2012-12-31 12:19:32', `subdomain` = 'account7dfedb13-0b21-4ceb-9cca-b25194cf9cec' WHERE `accounts`.`id` = x'7dfedb130b214ceb9ccab25194cf9cec'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7dfedb130b214ceb9ccab25194cf9cec' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7dfedb130b214ceb9ccab25194cf9cec', x'821723b3f3e44e20b8c742ad41d2de37', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:19:32', x'a6b62d5e27124abfba25bf3e34c61f6a', 'jabanilson', NULL, 1, '2012-12-31 12:19:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:19:32', `updated_at` = '2012-12-31 12:19:32', `subdomain` = 'accounta6b62d5e-2712-4abf-ba25-bf3e34c61f6a' WHERE `accounts`.`id` = x'a6b62d5e27124abfba25bf3e34c61f6a'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a6b62d5e27124abfba25bf3e34c61f6a' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a6b62d5e27124abfba25bf3e34c61f6a', x'c3bd7a1695464282b2662d8f2804d526', NULL, 'invalid.url.false', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'c3bd7a1695464282b2662d8f2804d526'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a6b62d5e27124abfba25bf3e34c61f6a' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'a6b62d5e27124abfba25bf3e34c61f6a' AND `account_domains`.`verified` = 1 LIMIT 1  (10.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:19:32', x'81d6afde4e67474cabe2d8f0f1a1fb79', 'jabanilson', NULL, 1, '2012-12-31 12:19:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:19:32', `updated_at` = '2012-12-31 12:19:32', `subdomain` = 'account81d6afde-4e67-474c-abe2-d8f0f1a1fb79' WHERE `accounts`.`id` = x'81d6afde4e67474cabe2d8f0f1a1fb79'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'81d6afde4e67474cabe2d8f0f1a1fb79' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'81d6afde4e67474cabe2d8f0f1a1fb79', x'b0465b1fbdf943cb8608b91bf8b7f1bb', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:19:32', x'eb5b5eceff654f50886d3feaefd29add', 'jabanilson', NULL, 1, '2012-12-31 12:19:32')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:19:32', `updated_at` = '2012-12-31 12:19:32', `subdomain` = 'accounteb5b5ece-ff65-4f50-886d-3feaefd29add' WHERE `accounts`.`id` = x'eb5b5eceff654f50886d3feaefd29add'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'eb5b5eceff654f50886d3feaefd29add' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'eb5b5eceff654f50886d3feaefd29add', x'a29d5fecbc4a45689aced0072b113478', NULL, 'www.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'a29d5fecbc4a45689aced0072b113478'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:19:32', x'e87fc5deccc4493c9db4dd2a5c970c2f', 'jabanilson', NULL, 1, '2012-12-31 12:19:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:19:32', `updated_at` = '2012-12-31 12:19:32', `subdomain` = 'accounte87fc5de-ccc4-493c-9db4-dd2a5c970c2f' WHERE `accounts`.`id` = x'e87fc5deccc4493c9db4dd2a5c970c2f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e87fc5deccc4493c9db4dd2a5c970c2f' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e87fc5deccc4493c9db4dd2a5c970c2f', x'10d9b65638754eb4ae5fecf1706c4bf9', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (0.8ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (0.9ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.6ms) TRUNCATE TABLE `user_invitations`;  (1.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'8db850b84a624fb8977bad6b1e7508a7', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account8db850b8-4a62-4fb8-977b-ad6b1e7508a7' WHERE `accounts`.`id` = x'8db850b84a624fb8977bad6b1e7508a7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8db850b84a624fb8977bad6b1e7508a7' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8db850b84a624fb8977bad6b1e7508a7', x'5b7c34e075c441f4a78f4154be38b647', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (17.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'2730ff205b3b43b69c4859847d6e0f33', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account2730ff20-5b3b-43b6-9c48-59847d6e0f33' WHERE `accounts`.`id` = x'2730ff205b3b43b69c4859847d6e0f33'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2730ff205b3b43b69c4859847d6e0f33' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2730ff205b3b43b69c4859847d6e0f33', x'd95a710cdb9d4d328ecf4430bfd905d7', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'ce863a97f8f34b17b84b2b689efcddae', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accountce863a97-f8f3-4b17-b84b-2b689efcddae' WHERE `accounts`.`id` = x'ce863a97f8f34b17b84b2b689efcddae'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ce863a97f8f34b17b84b2b689efcddae' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ce863a97f8f34b17b84b2b689efcddae', x'1c324a7a3adb43579f1ace4bf247de8b', NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'3728dea430a947e9b3fda9822b926d0d', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account3728dea4-30a9-47e9-b3fd-a9822b926d0d' WHERE `accounts`.`id` = x'3728dea430a947e9b3fda9822b926d0d'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3728dea430a947e9b3fda9822b926d0d' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3728dea430a947e9b3fda9822b926d0d', x'626597316a234d5799ddda567e268c4f', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'8b9a71f728654eff8713188aa83b00d3', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account8b9a71f7-2865-4eff-8713-188aa83b00d3' WHERE `accounts`.`id` = x'8b9a71f728654eff8713188aa83b00d3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8b9a71f728654eff8713188aa83b00d3' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8b9a71f728654eff8713188aa83b00d3', x'4a2bf42e0df140e5a143002367965d81', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'8c09157e660c4f46badf3010f893b283', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account8c09157e-660c-4f46-badf-3010f893b283' WHERE `accounts`.`id` = x'8c09157e660c4f46badf3010f893b283'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8c09157e660c4f46badf3010f893b283' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8c09157e660c4f46badf3010f893b283', x'b907d7d0ae634f10b42a55aedd85bf83', NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'ff44c8290ac44ec8bde887fcb9da25be', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accountff44c829-0ac4-4ec8-bde8-87fcb9da25be' WHERE `accounts`.`id` = x'ff44c8290ac44ec8bde887fcb9da25be'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (9.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'abb650b2e80d4692bdadc6266ea39d2a', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accountabb650b2-e80d-4692-bdad-c6266ea39d2a' WHERE `accounts`.`id` = x'abb650b2e80d4692bdadc6266ea39d2a'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'abb650b2e80d4692bdadc6266ea39d2a' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'abb650b2e80d4692bdadc6266ea39d2a', x'91833a683de04820b5eae27d7f11c197', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'64c7502b9c1f4d0bbbd822c11a104b3e', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account64c7502b-9c1f-4d0b-bbd8-22c11a104b3e' WHERE `accounts`.`id` = x'64c7502b9c1f4d0bbbd822c11a104b3e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'64c7502b9c1f4d0bbbd822c11a104b3e' AND `account_domains`.`url` = 'valid.url.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'64c7502b9c1f4d0bbbd822c11a104b3e', x'3a6f5e9955f34021ac993b1d676958fa', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'64c7502b9c1f4d0bbbd822c11a104b3e' AND `account_domains`.`url` = 'valid.url.test'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'a523272e21934405bc67d92e185c6de9', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accounta523272e-2193-4405-bc67-d92e185c6de9' WHERE `accounts`.`id` = x'a523272e21934405bc67d92e185c6de9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a523272e21934405bc67d92e185c6de9' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a523272e21934405bc67d92e185c6de9', x'14b3c67f92b54dcda3c01849fb825ab4', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'407fd8097981484fa46181548893c6ce', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account407fd809-7981-484f-a461-81548893c6ce' WHERE `accounts`.`id` = x'407fd8097981484fa46181548893c6ce'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'407fd8097981484fa46181548893c6ce' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'407fd8097981484fa46181548893c6ce', x'85fc28770fb547309d57aaf7df85c78d', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'c5a44b29f29247b3aaf72b10e7030627', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accountc5a44b29-f292-47b3-aaf7-2b10e7030627' WHERE `accounts`.`id` = x'c5a44b29f29247b3aaf72b10e7030627'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c5a44b29f29247b3aaf72b10e7030627' AND `account_domains`.`url` = 'url1.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c5a44b29f29247b3aaf72b10e7030627', x'44a71d09713148f5980690a008084c10', NULL, 'url1.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c5a44b29f29247b3aaf72b10e7030627' AND `account_domains`.`url` = 'url2.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c5a44b29f29247b3aaf72b10e7030627', x'7dd2a0cbf9f84058a9c089ea3bf85143', NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'44a71d09713148f5980690a008084c10'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'7dd2a0cbf9f84058a9c089ea3bf85143'  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'c5a44b29f29247b3aaf72b10e7030627'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'44a71d09713148f5980690a008084c10'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'44a71d09713148f5980690a008084c10'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c5a44b29f29247b3aaf72b10e7030627' AND `account_domains`.`primary` = 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c5a44b29f29247b3aaf72b10e7030627' AND `account_domains`.`verified` = 1 LIMIT 1  (0.3ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'7dd2a0cbf9f84058a9c089ea3bf85143' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'44a71d09713148f5980690a008084c10'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'7dd2a0cbf9f84058a9c089ea3bf85143' LIMIT 1  (18.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'f33ffa81f29f4da5b6dfef27d9f0617c', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accountf33ffa81-f29f-4da5-b6df-ef27d9f0617c' WHERE `accounts`.`id` = x'f33ffa81f29f4da5b6dfef27d9f0617c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f33ffa81f29f4da5b6dfef27d9f0617c' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f33ffa81f29f4da5b6dfef27d9f0617c', x'2d1b68945b0a43e1920e4e83e5813921', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'c29d08b5860b40f7bdf59300f99186ae', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accountc29d08b5-860b-40f7-bdf5-9300f99186ae' WHERE `accounts`.`id` = x'c29d08b5860b40f7bdf59300f99186ae'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c29d08b5860b40f7bdf59300f99186ae' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c29d08b5860b40f7bdf59300f99186ae', x'08c970185dbb4f3eadd009602c8332ac', NULL, 'www.normal.host', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'1de4d4a9d5364441b4611504c20d274c', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account1de4d4a9-d536-4441-b461-1504c20d274c' WHERE `accounts`.`id` = x'1de4d4a9d5364441b4611504c20d274c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1de4d4a9d5364441b4611504c20d274c' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1de4d4a9d5364441b4611504c20d274c', x'7aedfe4792414640b0aff898c9fab16e', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'ed792fdbedee4be899deb8a5bcb80bff', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accounted792fdb-edee-4be8-99de-b8a5bcb80bff' WHERE `accounts`.`id` = x'ed792fdbedee4be899deb8a5bcb80bff'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ed792fdbedee4be899deb8a5bcb80bff' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ed792fdbedee4be899deb8a5bcb80bff', x'28f1002d8f23434da87c8f6e2714d037', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'ae79d9f8003e40e19582000956f47c99', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'accountae79d9f8-003e-40e1-9582-000956f47c99' WHERE `accounts`.`id` = x'ae79d9f8003e40e19582000956f47c99'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ae79d9f8003e40e19582000956f47c99' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ae79d9f8003e40e19582000956f47c99', x'e028ebec73ef453eb5bc7f7655b19b79', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:20:15', x'90c2090bba004e8a84867200698e8a16', 'jabanilson', NULL, 1, '2012-12-31 12:20:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:20:15', `updated_at` = '2012-12-31 12:20:15', `subdomain` = 'account90c2090b-ba00-4e8a-8486-7200698e8a16' WHERE `accounts`.`id` = x'90c2090bba004e8a84867200698e8a16'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'90c2090bba004e8a84867200698e8a16' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'90c2090bba004e8a84867200698e8a16', x'20b4890c3260472f855249823bec484b', NULL, 'www.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (0.8ms) TRUNCATE TABLE `delayed_jobs`;  (0.7ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:06', 'teste@teste.com', '$2a$04$e2NOw/3ggOawojcY5Jo.3e4kpwoAmZepTwgRkv0qXOb0sZM6bmRge', NULL, x'04284870a39e4d12b16ed4f69e0b6ab1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'04284870a39e4d12b16ed4f69e0b6ab1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:06', 'User', x'5e7ac8d63a984c649c485a7aeffe9db4', '64fc801d4f8e5bd1a1522b469a898dd0', x'04284870a39e4d12b16ed4f69e0b6ab1', 'User', '2012-12-31 12:21:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'04284870a39e4d12b16ed4f69e0b6ab1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:06', x'ced8d7d5303b4da184859f6aed24d31a', NULL, NULL, NULL, '2012-12-31 12:21:06')  (0.6ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:06', `updated_at` = '2012-12-31 12:21:06', `subdomain` = 'accountced8d7d5-303b-4da1-8485-9f6aed24d31a' WHERE `accounts`.`id` = x'ced8d7d5303b4da184859f6aed24d31a' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ced8d7d5303b4da184859f6aed24d31a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ced8d7d5303b4da184859f6aed24d31a', x'd60cc12bc7ea46fabc3080f13de00ef1', x'04284870a39e4d12b16ed4f69e0b6ab1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd60cc12bc7ea46fabc3080f13de00ef1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd60cc12bc7ea46fabc3080f13de00ef1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd60cc12bc7ea46fabc3080f13de00ef1', x'a2687ce11dac46fea10c4befc1adcd6a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd60cc12bc7ea46fabc3080f13de00ef1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd60cc12bc7ea46fabc3080f13de00ef1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd60cc12bc7ea46fabc3080f13de00ef1', x'c1f40d5325bf4f28b457d0dbf14ed69e', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (83ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18333b12b_a6480435d4847a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'teste@teste.com', '$2a$04$gyrIqy5BNIG/wVBb5cgu/.fGE9H9uFPo04oaFRVgOLTR5WBUKMx0m', NULL, x'e31c8b7d04a544a1b0cd781802e53d84', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e31c8b7d04a544a1b0cd781802e53d84' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'48be3e37dd574857a673bd9052a091c9', '08a8d7632c7225eec1ab25eddf09347f', x'e31c8b7d04a544a1b0cd781802e53d84', 'User', '2012-12-31 12:21:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e31c8b7d04a544a1b0cd781802e53d84' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'f2ddc1279a9a4fceab0c7ff43f4b0a21', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'accountf2ddc127-9a9a-4fce-ab0c-7ff43f4b0a21' WHERE `accounts`.`id` = x'f2ddc1279a9a4fceab0c7ff43f4b0a21' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f2ddc1279a9a4fceab0c7ff43f4b0a21' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f2ddc1279a9a4fceab0c7ff43f4b0a21', x'ab6fb6c34d1c4c16908384c1e7d43cc5', x'e31c8b7d04a544a1b0cd781802e53d84') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ab6fb6c34d1c4c16908384c1e7d43cc5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab6fb6c34d1c4c16908384c1e7d43cc5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab6fb6c34d1c4c16908384c1e7d43cc5', x'15c6334962484a3b92db2a070be35297', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ab6fb6c34d1c4c16908384c1e7d43cc5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab6fb6c34d1c4c16908384c1e7d43cc5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab6fb6c34d1c4c16908384c1e7d43cc5', x'57c6a31f40964227b057a382a7e4fbe7', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183331ff1d_a6480435d4848f0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'teste@teste.com', '$2a$04$Gg8sBJn6O1Ka8n3/2c403OdiCGSe6g4dMNheSM9EV61xVeF6NIabG', NULL, x'17c99f530e0a4b85992c1937ba4d24d0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'17c99f530e0a4b85992c1937ba4d24d0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'555d5cea6e314c73847ddb3b18dcc280', 'e34f38718d158b72da17efd97383295b', x'17c99f530e0a4b85992c1937ba4d24d0', 'User', '2012-12-31 12:21:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'17c99f530e0a4b85992c1937ba4d24d0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'1ea0451bce6d425486a2e8156dc8fa11', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'account1ea0451b-ce6d-4254-86a2-e8156dc8fa11' WHERE `accounts`.`id` = x'1ea0451bce6d425486a2e8156dc8fa11' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1ea0451bce6d425486a2e8156dc8fa11' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1ea0451bce6d425486a2e8156dc8fa11', x'33910a5a71494f03aaed39fc6e61ccdf', x'17c99f530e0a4b85992c1937ba4d24d0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'33910a5a71494f03aaed39fc6e61ccdf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'33910a5a71494f03aaed39fc6e61ccdf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'33910a5a71494f03aaed39fc6e61ccdf', x'de8e7e5249f043198b5e6a896875813d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'33910a5a71494f03aaed39fc6e61ccdf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'33910a5a71494f03aaed39fc6e61ccdf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'33910a5a71494f03aaed39fc6e61ccdf', x'004bc9cd6bb342e6b98c17cd54dc2344', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183332ba4c_a6480435d484928@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'teste@teste.com', '$2a$04$jeP1ChWfCNcrBfDznxPdHOxB7vS4ECqluTbqVqp751bB4CIbN/UJq', NULL, x'62bdfb142e79461fb87089e91db18a35', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'62bdfb142e79461fb87089e91db18a35' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'03985b649ab64b06a86ccf77608a3bce', 'c2b2a58b07314b74aa87c214c2446eb4', x'62bdfb142e79461fb87089e91db18a35', 'User', '2012-12-31 12:21:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'62bdfb142e79461fb87089e91db18a35' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'61f9c53cb56d4da28f48833f3130f154', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'account61f9c53c-b56d-4da2-8f48-833f3130f154' WHERE `accounts`.`id` = x'61f9c53cb56d4da28f48833f3130f154' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'61f9c53cb56d4da28f48833f3130f154' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'61f9c53cb56d4da28f48833f3130f154', x'2d9e7a839d2f463b9b2aa50eb227e1d1', x'62bdfb142e79461fb87089e91db18a35') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2d9e7a839d2f463b9b2aa50eb227e1d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2d9e7a839d2f463b9b2aa50eb227e1d1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2d9e7a839d2f463b9b2aa50eb227e1d1', x'1e834a94c5b34e3dad4be4971238aad5', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2d9e7a839d2f463b9b2aa50eb227e1d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2d9e7a839d2f463b9b2aa50eb227e1d1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2d9e7a839d2f463b9b2aa50eb227e1d1', x'd7331f45dc524aea838cf1fbbd905569', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (65ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183334680c_a6480435d48509b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'62bdfb142e79461fb87089e91db18a35'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'teste@teste.com', '$2a$04$/0XerOZk45.ffjHpCfWXzehLIn2LP77N92py91Y85b/86a0WhXS36', NULL, x'f34ba85b11f64a09addec2b4156c8b1b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f34ba85b11f64a09addec2b4156c8b1b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'987d3cb882bb4def805c6ccbdbbb6f74', '94cee9480a92222f7a2f941ef5c6b1f3', x'f34ba85b11f64a09addec2b4156c8b1b', 'User', '2012-12-31 12:21:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f34ba85b11f64a09addec2b4156c8b1b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'890944681e88478290a1338261b25be8', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'account89094468-1e88-4782-90a1-338261b25be8' WHERE `accounts`.`id` = x'890944681e88478290a1338261b25be8' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'890944681e88478290a1338261b25be8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'890944681e88478290a1338261b25be8', x'f35bbb53fb804af9b586e5b5b0ad9db3', x'f34ba85b11f64a09addec2b4156c8b1b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f35bbb53fb804af9b586e5b5b0ad9db3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f35bbb53fb804af9b586e5b5b0ad9db3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f35bbb53fb804af9b586e5b5b0ad9db3', x'8108bacbe6ae4ecf93967bca5c324f56', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f35bbb53fb804af9b586e5b5b0ad9db3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f35bbb53fb804af9b586e5b5b0ad9db3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f35bbb53fb804af9b586e5b5b0ad9db3', x'de1c4ebb29af4fb2b0fe7f60146ee0be', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183336309b_a6480435d4851a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'teste@teste.com', '$2a$04$9MNLKfkKzYHKen/fb2JF3eGYEzOXHTYT8AWTNfbhbTciT45yItnle', NULL, x'6b2141d4c07947d192ddbe9a27bb7858', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6b2141d4c07947d192ddbe9a27bb7858' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'787efa21096145e78eef1e2ebbead471', 'ac3eb4fae8c987afe298cc9ccd41b98f', x'6b2141d4c07947d192ddbe9a27bb7858', 'User', '2012-12-31 12:21:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6b2141d4c07947d192ddbe9a27bb7858' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'aff7972ab99f488f93347518a6c1f6b9', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'accountaff7972a-b99f-488f-9334-7518a6c1f6b9' WHERE `accounts`.`id` = x'aff7972ab99f488f93347518a6c1f6b9' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aff7972ab99f488f93347518a6c1f6b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aff7972ab99f488f93347518a6c1f6b9', x'a7b0cc7c0967419f9bdcd54b88103031', x'6b2141d4c07947d192ddbe9a27bb7858') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a7b0cc7c0967419f9bdcd54b88103031') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a7b0cc7c0967419f9bdcd54b88103031' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a7b0cc7c0967419f9bdcd54b88103031', x'63b67ef9590540d29aa6abc637ea3871', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a7b0cc7c0967419f9bdcd54b88103031') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a7b0cc7c0967419f9bdcd54b88103031' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a7b0cc7c0967419f9bdcd54b88103031', x'3850265f8cf1409da2c6bc2b1f4b84ab', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1833373ce2_a6480435d485263@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'account1@before.destroy', '$2a$04$YYjrtEWT1z790wNGPr81Je9lkpz.UWi8bYJdiogOfJ.pLNkfeV/PG', NULL, x'32f69f83f8dd423c995cdf57992601d1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'32f69f83f8dd423c995cdf57992601d1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'62307ed6fc0a4d86a23c0424c1c6e2ec', '76bd237e6178316efbc57a3585b54917', x'32f69f83f8dd423c995cdf57992601d1', 'User', '2012-12-31 12:21:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'32f69f83f8dd423c995cdf57992601d1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'6d46cd4523f94de49e05eafc558e60eb', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'account6d46cd45-23f9-4de4-9e05-eafc558e60eb' WHERE `accounts`.`id` = x'6d46cd4523f94de49e05eafc558e60eb' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6d46cd4523f94de49e05eafc558e60eb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6d46cd4523f94de49e05eafc558e60eb', x'4ee5eeee0d93461b8e1ab354db9ef3f6', x'32f69f83f8dd423c995cdf57992601d1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4ee5eeee0d93461b8e1ab354db9ef3f6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ee5eeee0d93461b8e1ab354db9ef3f6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4ee5eeee0d93461b8e1ab354db9ef3f6', x'2faf3de8af554e008187b5716be9b696', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4ee5eeee0d93461b8e1ab354db9ef3f6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ee5eeee0d93461b8e1ab354db9ef3f6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4ee5eeee0d93461b8e1ab354db9ef3f6', x'2b75d7a183934047a22171721376b01d', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e183337fe01_a6480435d48536b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'32f69f83f8dd423c995cdf57992601d1' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyUserJob\nid: 32f69f83-f8dd-423c-995c-df57992601d1\n', NULL, NULL, NULL, 0, 'user_32f69f83-f8dd-423c-995c-df57992601d1_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_32f69f83-f8dd-423c-995c-df57992601d1_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'32f69f83f8dd423c995cdf57992601d1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'32f69f83f8dd423c995cdf57992601d1' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 4ee5eeee-0d93-461b-8e1a-b354db9ef3f6\n', NULL, NULL, NULL, 0, 'account_user_4ee5eeee-0d93-461b-8e1a-b354db9ef3f6_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'32f69f83f8dd423c995cdf57992601d1' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'32f69f83f8dd423c995cdf57992601d1'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'6d46cd4523f94de49e05eafc558e60eb' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 6d46cd45-23f9-4de4-9e05-eafc558e60eb\n', NULL, NULL, NULL, 0, 'account_6d46cd45-23f9-4de4-9e05-eafc558e60eb_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'32f69f83f8dd423c995cdf57992601d1'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6d46cd45-23f9-4de4-9e05-eafc558e60eb_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'account1@before.destroy', '$2a$04$v.LCyP0ds0jpMBGX7eJQoeXHIlrj04eOGCORj8WiLcB34b5SR7wx.', NULL, x'e1110efdcfcb49819d946396113ebd46', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e1110efdcfcb49819d946396113ebd46' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'f55eafacfef24e6eafd9700aad5e0df2', '7f85d93f005050eefcd80f8878d5bf08', x'e1110efdcfcb49819d946396113ebd46', 'User', '2012-12-31 12:21:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e1110efdcfcb49819d946396113ebd46' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'a25cb75ff3d34dafb6a014b1e6dee3b8', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'accounta25cb75f-f3d3-4daf-b6a0-14b1e6dee3b8' WHERE `accounts`.`id` = x'a25cb75ff3d34dafb6a014b1e6dee3b8' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a25cb75ff3d34dafb6a014b1e6dee3b8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a25cb75ff3d34dafb6a014b1e6dee3b8', x'8df00df2945b44d59629f534683e5b0f', x'e1110efdcfcb49819d946396113ebd46') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8df00df2945b44d59629f534683e5b0f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8df00df2945b44d59629f534683e5b0f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8df00df2945b44d59629f534683e5b0f', x'c328865c7f87439c9576bf928bfcabcb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8df00df2945b44d59629f534683e5b0f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8df00df2945b44d59629f534683e5b0f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8df00df2945b44d59629f534683e5b0f', x'0d928aef385b4199b1b8f38625d4b920', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e18333ad484_a6480435d48547f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'552b1a667100450ba9a0702992fbf31c', 'jabanilson', NULL, 1, '2012-12-31 12:21:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'account552b1a66-7100-450b-a9a0-702992fbf31c' WHERE `accounts`.`id` = x'552b1a667100450ba9a0702992fbf31c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e1110efdcfcb49819d946396113ebd46' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'552b1a667100450ba9a0702992fbf31c', x'717b24a7b5a14183900764c741858981', x'e1110efdcfcb49819d946396113ebd46') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'717b24a7b5a14183900764c741858981') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'717b24a7b5a14183900764c741858981' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'717b24a7b5a14183900764c741858981', x'b66ba88f9da847d7b528e5863669b0b5', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'717b24a7b5a14183900764c741858981') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'717b24a7b5a14183900764c741858981' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'717b24a7b5a14183900764c741858981', x'52e160cee58e4de9a28465235d66d5b1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e1110efdcfcb49819d946396113ebd46' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyUserJob\nid: e1110efd-cfcb-4981-9d94-6396113ebd46\n', NULL, NULL, NULL, 0, 'user_e1110efd-cfcb-4981-9d94-6396113ebd46_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_e1110efd-cfcb-4981-9d94-6396113ebd46_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e1110efdcfcb49819d946396113ebd46' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e1110efdcfcb49819d946396113ebd46' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 717b24a7-b5a1-4183-9007-64c741858981\n', NULL, NULL, NULL, 0, 'account_user_717b24a7-b5a1-4183-9007-64c741858981_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 8df00df2-945b-44d5-9629-f534683e5b0f\n', NULL, NULL, NULL, 0, 'account_user_8df00df2-945b-44d5-9629-f534683e5b0f_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'e1110efdcfcb49819d946396113ebd46' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e1110efdcfcb49819d946396113ebd46'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'552b1a667100450ba9a0702992fbf31c' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 552b1a66-7100-450b-a9a0-702992fbf31c\n', NULL, NULL, NULL, 0, 'account_552b1a66-7100-450b-a9a0-702992fbf31c_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'a25cb75ff3d34dafb6a014b1e6dee3b8' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyAccountJob\nid: a25cb75f-f3d3-4daf-b6a0-14b1e6dee3b8\n', NULL, NULL, NULL, 0, 'account_a25cb75f-f3d3-4daf-b6a0-14b1e6dee3b8_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = x'e1110efdcfcb49819d946396113ebd46'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a25cb75f-f3d3-4daf-b6a0-14b1e6dee3b8_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'account1@before.destroy', '$2a$04$1yQNIM8z7C30vsl134GPQ.anCBjy.OTSenpv854PP9lIGeUIZ52fS', NULL, x'92acdf85f24142168d31336e96ff7d1e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'92acdf85f24142168d31336e96ff7d1e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'9b0ff73c3bc64220a3fe93177c032970', '004cdc5ca13f87b28b2d5d4fa606df70', x'92acdf85f24142168d31336e96ff7d1e', 'User', '2012-12-31 12:21:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'92acdf85f24142168d31336e96ff7d1e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'282dca1c8b444f4bbda1f4b620b03dcf', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'account282dca1c-8b44-4f4b-bda1-f4b620b03dcf' WHERE `accounts`.`id` = x'282dca1c8b444f4bbda1f4b620b03dcf' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'282dca1c8b444f4bbda1f4b620b03dcf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'282dca1c8b444f4bbda1f4b620b03dcf', x'c1b5ffc706814be8b009a9c70b17ba99', x'92acdf85f24142168d31336e96ff7d1e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c1b5ffc706814be8b009a9c70b17ba99') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c1b5ffc706814be8b009a9c70b17ba99' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c1b5ffc706814be8b009a9c70b17ba99', x'09fb264891494396939158525e3dd5c2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c1b5ffc706814be8b009a9c70b17ba99') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c1b5ffc706814be8b009a9c70b17ba99' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c1b5ffc706814be8b009a9c70b17ba99', x'20c0051746304e1b85ab55bad8f2a484', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e18333c6099_a6480435d4855c1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'92acdf85f24142168d31336e96ff7d1e' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:06', '2012-12-31 12:21:07', 'account2@before.destroy', '$2a$04$8LS33lbv0yAq6ttQ8r9VGuPfPYp6zstvs7KgXEDQdFbZB1wmqhXMK', NULL, x'ae4db93bd6134e2ebdcf2bd9e5ed321d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ae4db93bd6134e2ebdcf2bd9e5ed321d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'324614ecd090473cacb4a0b67e0430a9', '38d535b4942874b9dc47220a10cf531d', x'ae4db93bd6134e2ebdcf2bd9e5ed321d', 'User', '2012-12-31 12:21:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ae4db93bd6134e2ebdcf2bd9e5ed321d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'9139c834a46d4c7dbd42d359ace412dc', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'account9139c834-a46d-4c7d-bd42-d359ace412dc' WHERE `accounts`.`id` = x'9139c834a46d4c7dbd42d359ace412dc' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9139c834a46d4c7dbd42d359ace412dc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9139c834a46d4c7dbd42d359ace412dc', x'0e1670540af746d2a90402971dfe9815', x'ae4db93bd6134e2ebdcf2bd9e5ed321d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0e1670540af746d2a90402971dfe9815') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e1670540af746d2a90402971dfe9815' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e1670540af746d2a90402971dfe9815', x'3cd9108a3cc5474f9ab61a2729aa69ac', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e1670540af746d2a90402971dfe9815') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e1670540af746d2a90402971dfe9815' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e1670540af746d2a90402971dfe9815', x'a1f4f46d63fb46a48a0218c78b1409e3', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:21:07 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e18333e1150_a6480435d485656@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'282dca1c8b444f4bbda1f4b620b03dcf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'282dca1c8b444f4bbda1f4b620b03dcf', x'bf75e9f7a4a644ee987e177e992646f7', x'ae4db93bd6134e2ebdcf2bd9e5ed321d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bf75e9f7a4a644ee987e177e992646f7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bf75e9f7a4a644ee987e177e992646f7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bf75e9f7a4a644ee987e177e992646f7', x'61be4ba9eab44c78abc306ac1f332e77', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bf75e9f7a4a644ee987e177e992646f7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bf75e9f7a4a644ee987e177e992646f7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bf75e9f7a4a644ee987e177e992646f7', x'a1b98e731b404f3fa9729c1c9277d305', 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyUserJob\nid: 92acdf85-f241-4216-8d31-336e96ff7d1e\n', NULL, NULL, NULL, 0, 'user_92acdf85-f241-4216-8d31-336e96ff7d1e_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_92acdf85-f241-4216-8d31-336e96ff7d1e_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'92acdf85f24142168d31336e96ff7d1e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'92acdf85f24142168d31336e96ff7d1e' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:21:07', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: c1b5ffc7-0681-4be8-b009-a9c70b17ba99\n', NULL, NULL, NULL, 0, 'account_user_c1b5ffc7-0681-4be8-b009-a9c70b17ba99_destroy', '2012-12-31 12:21:07', '2012-12-31 12:21:07') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'92acdf85f24142168d31336e96ff7d1e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'92acdf85f24142168d31336e96ff7d1e'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'282dca1c8b444f4bbda1f4b620b03dcf' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'92acdf85f24142168d31336e96ff7d1e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_282dca1c-8b44-4f4b-bda1-f4b620b03dcf_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:07', '2012-12-31 12:21:07', '', '', 1, x'3e08db95dac544d68dfb19e958f50f48', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:21:07') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3e08db95dac544d68dfb19e958f50f48' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:07', 'User', x'c0ac1bad83ca414bb924d6322405c77d', '5a5bf21bb1f13e59ccf9813386b4c5ae', x'3e08db95dac544d68dfb19e958f50f48', 'User', '2012-12-31 12:21:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3e08db95dac544d68dfb19e958f50f48' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:07', x'3b71c34b0595492f92d5dcc4bf59ec24', NULL, NULL, NULL, '2012-12-31 12:21:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:07', `updated_at` = '2012-12-31 12:21:07', `subdomain` = 'account3b71c34b-0595-492f-92d5-dcc4bf59ec24' WHERE `accounts`.`id` = x'3b71c34b0595492f92d5dcc4bf59ec24' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3b71c34b0595492f92d5dcc4bf59ec24' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3b71c34b0595492f92d5dcc4bf59ec24', x'275b4af26786447297dea5c0e7f81db1', x'3e08db95dac544d68dfb19e958f50f48') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'275b4af26786447297dea5c0e7f81db1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'275b4af26786447297dea5c0e7f81db1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'275b4af26786447297dea5c0e7f81db1', x'e4ca1fec3e7e4e49867d9fd8a0deebf3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'275b4af26786447297dea5c0e7f81db1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'275b4af26786447297dea5c0e7f81db1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'275b4af26786447297dea5c0e7f81db1', x'f043b8537ddc4b859d0f595494561359', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (0.7ms) TRUNCATE TABLE `account_roles`;  (0.7ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (0.8ms) TRUNCATE TABLE `user_invitations`;  (2.0ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:27', x'04a8b9588eb146ec931c823d684c91f2', 'jabanilson', NULL, 1, '2012-12-31 12:21:27')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:21:27', `updated_at` = '2012-12-31 12:21:27', `subdomain` = 'account04a8b958-8eb1-46ec-931c-823d684c91f2' WHERE `accounts`.`id` = x'04a8b9588eb146ec931c823d684c91f2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:27', '2012-12-31 12:21:27', 'invited@test.test', '$2a$04$.5V8hy.gkfgEDcuwmychveW2jn3O5FRukyp0ZtsiBJ5WZ.KKsO6f6', NULL, x'501079a7fbcd47c99df278f768a96d14', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'501079a7fbcd47c99df278f768a96d14' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:27', 'User', x'80a22f56e8214bc29ef89f00eb39cf7f', '36316c6e8ed48d6e7720dfa56ba37eb6', x'501079a7fbcd47c99df278f768a96d14', 'User', '2012-12-31 12:21:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'501079a7fbcd47c99df278f768a96d14' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:28', x'db9baf7f6c4b4c03acfedf8010dacc89', NULL, NULL, NULL, '2012-12-31 12:21:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:28', `updated_at` = '2012-12-31 12:21:28', `subdomain` = 'accountdb9baf7f-6c4b-4c03-acfe-df8010dacc89' WHERE `accounts`.`id` = x'db9baf7f6c4b4c03acfedf8010dacc89' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'db9baf7f6c4b4c03acfedf8010dacc89' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'db9baf7f6c4b4c03acfedf8010dacc89', x'7ed3b8a77313478f9cc0be1c47f6239a', x'501079a7fbcd47c99df278f768a96d14') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7ed3b8a77313478f9cc0be1c47f6239a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7ed3b8a77313478f9cc0be1c47f6239a' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7ed3b8a77313478f9cc0be1c47f6239a', x'170b196d1299479689db6364eed218fd', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7ed3b8a77313478f9cc0be1c47f6239a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7ed3b8a77313478f9cc0be1c47f6239a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7ed3b8a77313478f9cc0be1c47f6239a', x'cc1d1f36d73246b39f9c3da2ddbf7ff2', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to invited@test.test (135ms) Date: Mon, 31 Dec 2012 10:21:28 -0200 From: Iugu Reply-To: Iugu To: invited@test.test Message-ID: <50e1834882f2d_a7180435d486052c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'04a8b9588eb146ec931c823d684c91f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'04a8b9588eb146ec931c823d684c91f2', x'1b40290ff2044a8982655e926b5b1809', x'501079a7fbcd47c99df278f768a96d14') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1b40290ff2044a8982655e926b5b1809') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b40290ff2044a8982655e926b5b1809' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b40290ff2044a8982655e926b5b1809', x'278cb6e432d24bcf83f87154864a8e52', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1b40290ff2044a8982655e926b5b1809') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b40290ff2044a8982655e926b5b1809' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b40290ff2044a8982655e926b5b1809', x'3f7e0cf1cbdc43d8821e7fe4cd628ac7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'04a8b9588eb146ec931c823d684c91f2' AND `users`.`email` = 'invited@test.test'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'f1a1e28d439948de9ecd64668593b1ac', NULL, 'user', '2012-12-31 12:21:28', '7DobXKmwt-RzgytCQfn9WKy8pq0') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (1.7ms) Sent mail to test@test.test (6ms) Date: Mon, 31 Dec 2012 10:21:28 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e18348ba755_a7180435d48606cf@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/f1a1e28d-4399-48de-9ecd-64668593b1ac7DobXKmwt-RzgytCQfn9WKy8pq0  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'44777d29febc454394b03431b33466c1', NULL, NULL, '2012-12-31 12:21:28', 'oiaa09s1jiUHAS8danja9sja0') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.9ms) Sent mail to test@test.test (7ms) Date: Mon, 31 Dec 2012 10:21:28 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e18348c1196_a7180435d486076@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/44777d29-febc-4543-94b0-3431b33466c1oiaa09s1jiUHAS8danja9sja0  (0.2ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'44777d29febc454394b03431b33466c1' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'2dbd8f6d069a4bc19feafe54c8dc08a1', NULL, 'user', '2012-12-31 12:21:28', 'kTFj0ti9VbuIBIU-Kfa4KO28pTw') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.7ms) Sent mail to test@test.test (6ms) Date: Mon, 31 Dec 2012 10:21:28 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e18348c7b21_a7180435d48608d0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2dbd8f6d-069a-4bc1-9fea-fe54c8dc08a1kTFj0ti9VbuIBIU-Kfa4KO28pTw  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'a55bf2ef46d741d0a92fa4cce85a9be5', NULL, 'user', '2012-12-31 12:21:28', 'IPAY5bx0LHxWI_pHdTJIgtevzNw') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.7ms) Sent mail to test@test.test (7ms) Date: Mon, 31 Dec 2012 10:21:28 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e18348d21b3_a7180435d486093c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/a55bf2ef-46d7-41d0-a92f-a4cce85a9be5IPAY5bx0LHxWI_pHdTJIgtevzNw  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:28', x'e491357e028f4eac9bba9602de77d846', 'jabanilson', NULL, 1, '2012-12-31 12:21:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:21:28', `updated_at` = '2012-12-31 12:21:28', `subdomain` = 'accounte491357e-028f-4eac-9bba-9602de77d846' WHERE `accounts`.`id` = x'e491357e028f4eac9bba9602de77d846'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'e491357e028f4eac9bba9602de77d846' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'e491357e028f4eac9bba9602de77d846', 'teste@teste.teste', x'cea5fe81440e4e5fa17cf8a923265f4c', NULL, NULL, '2012-12-31 12:21:28', 'FLOiLc7T8UMhKKA1E5mYy6KS9fc') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.6ms) Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:21:28 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18348d9972_a7180435d4861012@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/cea5fe81-440e-4e5f-a17c-f8a923265f4cFLOiLc7T8UMhKKA1E5mYy6KS9fc  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'cea5fe81440e4e5fa17cf8a923265f4c' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:28', x'67a43f7d07914c63b45a11508b25969c', 'jabanilson', NULL, 1, '2012-12-31 12:21:28')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:21:28', `updated_at` = '2012-12-31 12:21:28', `subdomain` = 'account67a43f7d-0791-4c63-b45a-11508b25969c' WHERE `accounts`.`id` = x'67a43f7d07914c63b45a11508b25969c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'67a43f7d07914c63b45a11508b25969c' AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'67a43f7d07914c63b45a11508b25969c', 'teste@teste.teste', x'211245a87b104808836cc14dfce761f7', NULL, NULL, '2012-12-31 12:21:28', 'DXuSCzPNxEOBYT7CDA-CuRRgK4s') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.7ms) Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:21:28 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18348e1e20_a7180435d48611b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/211245a8-7b10-4808-836c-c14dfce761f7DXuSCzPNxEOBYT7CDA-CuRRgK4s  (0.1ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'00000000000000000000000031323338' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:28', x'b98c8c8f3bdd4e10b2adcda830bdffb3', 'jabanilson', NULL, 1, '2012-12-31 12:21:28')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:21:28', `updated_at` = '2012-12-31 12:21:28', `subdomain` = 'accountb98c8c8f-3bdd-4e10-b2ad-cda830bdffb3' WHERE `accounts`.`id` = x'b98c8c8f3bdd4e10b2adcda830bdffb3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'b98c8c8f3bdd4e10b2adcda830bdffb3' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'b98c8c8f3bdd4e10b2adcda830bdffb3', 'teste@teste.teste', x'09082cd73af0426681f11b0e07f4362a', NULL, NULL, '2012-12-31 12:21:28', 'jNLU9ZpeLRcRLSOHC1tdyivRGv4') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.7ms) Sent mail to teste@teste.teste (9ms) Date: Mon, 31 Dec 2012 10:21:28 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18348e9c81_a7180435d48612ab@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/09082cd7-3af0-4266-81f1-1b0e07f4362ajNLU9ZpeLRcRLSOHC1tdyivRGv4  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:27', '2012-12-31 12:21:28', 'teste@teste.com', '$2a$04$j7totcS3bESCYi8QA6Xpju.ufQSuj5iBg8rYEZzGB1nq6gLKQYSGq', NULL, x'4666b88b991640a0a21be0fc7b822fef', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:28') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4666b88b991640a0a21be0fc7b822fef' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:28', 'User', x'36800bb0613b4417913a89474b56ad41', 'e9de98a53dcda4bf2051c443cc929617', x'4666b88b991640a0a21be0fc7b822fef', 'User', '2012-12-31 12:21:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4666b88b991640a0a21be0fc7b822fef' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:28', x'922e18cc9760406f947e306107218e86', NULL, NULL, NULL, '2012-12-31 12:21:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:28', `updated_at` = '2012-12-31 12:21:28', `subdomain` = 'account922e18cc-9760-406f-947e-306107218e86' WHERE `accounts`.`id` = x'922e18cc9760406f947e306107218e86' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'922e18cc9760406f947e306107218e86' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'922e18cc9760406f947e306107218e86', x'16cabe32b004462daa4579508ec919b6', x'4666b88b991640a0a21be0fc7b822fef') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'16cabe32b004462daa4579508ec919b6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'16cabe32b004462daa4579508ec919b6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'16cabe32b004462daa4579508ec919b6', x'40a0bc15526e4b1aa12ebd262391ac59', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'16cabe32b004462daa4579508ec919b6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'16cabe32b004462daa4579508ec919b6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'16cabe32b004462daa4579508ec919b6', x'aef552a03fba4773884a95de3e613505', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (73ms) Date: Mon, 31 Dec 2012 10:21:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1834914807_a7180435d486133f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'b98c8c8f3bdd4e10b2adcda830bdffb3' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'b98c8c8f3bdd4e10b2adcda830bdffb3' AND `account_users`.`user_id` = x'4666b88b991640a0a21be0fc7b822fef'  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b98c8c8f3bdd4e10b2adcda830bdffb3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b98c8c8f3bdd4e10b2adcda830bdffb3', x'52da3dbe8e404bada8deb2ee70e3be70', x'4666b88b991640a0a21be0fc7b822fef') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'52da3dbe8e404bada8deb2ee70e3be70') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52da3dbe8e404bada8deb2ee70e3be70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52da3dbe8e404bada8deb2ee70e3be70', x'6f6cf87d7c8a449ebb8f50350647414a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'52da3dbe8e404bada8deb2ee70e3be70') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52da3dbe8e404bada8deb2ee70e3be70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52da3dbe8e404bada8deb2ee70e3be70', x'0a18f1f6c8c546e09d4e2ebafd36a675', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b98c8c8f3bdd4e10b2adcda830bdffb3' AND `account_users`.`user_id` = x'4666b88b991640a0a21be0fc7b822fef' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:29', x'97fd9d627a8045c8bef19391e35eff2f', 'jabanilson', NULL, 1, '2012-12-31 12:21:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:21:29', `updated_at` = '2012-12-31 12:21:29', `subdomain` = 'account97fd9d62-7a80-45c8-bef1-9391e35eff2f' WHERE `accounts`.`id` = x'97fd9d627a8045c8bef19391e35eff2f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'97fd9d627a8045c8bef19391e35eff2f' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'97fd9d627a8045c8bef19391e35eff2f', 'teste@teste.teste', x'8edf39ee2bb143cba6ce2e66f569e084', NULL, NULL, '2012-12-31 12:21:29', 'KS0A_B5v7SIsmV2A4YkcEzSmjmk') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.6ms) Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:21:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1834920bba_a7180435d48614c1@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/8edf39ee-2bb1-43cb-a6ce-2e66f569e084KS0A_B5v7SIsmV2A4YkcEzSmjmk  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:27', '2012-12-31 12:21:29', 'teste@teste.com', '$2a$04$Rx92nbHdEG6oU.t.VNUlc.t/BiIppXrhf/m70J9X7/VE.Gv03D5Le', NULL, x'19c15fe8af424d3cb9fa365db8933cae', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'19c15fe8af424d3cb9fa365db8933cae' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:29', 'User', x'13070cee3d4e452b840f00ed6b06f394', '6c623578b89696b9d9c8f458bcab6124', x'19c15fe8af424d3cb9fa365db8933cae', 'User', '2012-12-31 12:21:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'19c15fe8af424d3cb9fa365db8933cae' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:29', x'7569572cd65f431dab14878bf9740016', NULL, NULL, NULL, '2012-12-31 12:21:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:29', `updated_at` = '2012-12-31 12:21:29', `subdomain` = 'account7569572c-d65f-431d-ab14-878bf9740016' WHERE `accounts`.`id` = x'7569572cd65f431dab14878bf9740016' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7569572cd65f431dab14878bf9740016' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7569572cd65f431dab14878bf9740016', x'6969f93f72a142a49143730daad21a71', x'19c15fe8af424d3cb9fa365db8933cae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6969f93f72a142a49143730daad21a71') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6969f93f72a142a49143730daad21a71' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6969f93f72a142a49143730daad21a71', x'116998c01e57442092d18fd6cd5907d1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6969f93f72a142a49143730daad21a71') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6969f93f72a142a49143730daad21a71' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6969f93f72a142a49143730daad21a71', x'0106e767abaa47e3ad454f27985b5167', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:21:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183492c2b3_a7180435d4861575@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'97fd9d627a8045c8bef19391e35eff2f' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = x'8edf39ee2bb143cba6ce2e66f569e084'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'97fd9d627a8045c8bef19391e35eff2f' AND `account_users`.`user_id` = x'19c15fe8af424d3cb9fa365db8933cae'  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'97fd9d627a8045c8bef19391e35eff2f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'97fd9d627a8045c8bef19391e35eff2f', x'efb56df2792e46269e17505f18cbf6bb', x'19c15fe8af424d3cb9fa365db8933cae') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'efb56df2792e46269e17505f18cbf6bb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efb56df2792e46269e17505f18cbf6bb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efb56df2792e46269e17505f18cbf6bb', x'84e2567ab92c49ecbc6dbdd0da23ed31', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'efb56df2792e46269e17505f18cbf6bb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efb56df2792e46269e17505f18cbf6bb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efb56df2792e46269e17505f18cbf6bb', x'202c5a2b43374a93af88e7a30860e9a9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'efb56df2792e46269e17505f18cbf6bb'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'202c5a2b43374a93af88e7a30860e9a9' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efb56df2792e46269e17505f18cbf6bb' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '—ýbz€EȾñ“‘ã^ÿ/' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'efb56df2792e46269e17505f18cbf6bb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efb56df2792e46269e17505f18cbf6bb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efb56df2792e46269e17505f18cbf6bb', x'b98556e00733404fba8d64453c27718f', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'efb56df2792e46269e17505f18cbf6bb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efb56df2792e46269e17505f18cbf6bb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efb56df2792e46269e17505f18cbf6bb', x'7939ae275563465aabe453fdf4c18d84', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'97fd9d627a8045c8bef19391e35eff2f' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'97fd9d627a8045c8bef19391e35eff2f' AND `account_users`.`user_id` = x'19c15fe8af424d3cb9fa365db8933cae' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'efb56df2792e46269e17505f18cbf6bb' AND `account_roles`.`name` = 'user' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'97fd9d627a8045c8bef19391e35eff2f' AND `account_users`.`user_id` = x'19c15fe8af424d3cb9fa365db8933cae' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'efb56df2792e46269e17505f18cbf6bb' AND `account_roles`.`name` = 'guest' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:29', x'f05be1fb7b204c44973d07695564199a', 'jabanilson', NULL, 1, '2012-12-31 12:21:29')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:21:29', `updated_at` = '2012-12-31 12:21:29', `subdomain` = 'accountf05be1fb-7b20-4c44-973d-07695564199a' WHERE `accounts`.`id` = x'f05be1fb7b204c44973d07695564199a'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'f05be1fb7b204c44973d07695564199a' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'f05be1fb7b204c44973d07695564199a', 'teste@teste.teste', x'f31dded8151c44a6b3a09ac65fae1a61', NULL, NULL, '2012-12-31 12:21:29', 'RSy32PLNuqJMiC0rCdkJu6AxEEQ') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.6ms) Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:21:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e183493c41c_a7180435d48616de@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/f31dded8-151c-44a6-b3a0-9ac65fae1a61RSy32PLNuqJMiC0rCdkJu6AxEEQ  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:27', '2012-12-31 12:21:29', 'teste@teste.com', '$2a$04$nqyBOqF6KSasKuVZqdWgduJB/GydfFA5kQ5FoSJQDcpEbirLXMrsa', NULL, x'595cfe4bcd2649cabc9e4d0380406269', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'595cfe4bcd2649cabc9e4d0380406269' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:29', 'User', x'20b6684a5112437e900cd06365a95038', 'f288b8ee9617269b29add726cfc43261', x'595cfe4bcd2649cabc9e4d0380406269', 'User', '2012-12-31 12:21:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'595cfe4bcd2649cabc9e4d0380406269' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:29', x'd996b822ecc746f2ac4003ade17be370', NULL, NULL, NULL, '2012-12-31 12:21:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:29', `updated_at` = '2012-12-31 12:21:29', `subdomain` = 'accountd996b822-ecc7-46f2-ac40-03ade17be370' WHERE `accounts`.`id` = x'd996b822ecc746f2ac4003ade17be370' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd996b822ecc746f2ac4003ade17be370' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd996b822ecc746f2ac4003ade17be370', x'65ffdbe3389248ac900ab417f0432c38', x'595cfe4bcd2649cabc9e4d0380406269') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'65ffdbe3389248ac900ab417f0432c38') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65ffdbe3389248ac900ab417f0432c38' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65ffdbe3389248ac900ab417f0432c38', x'b8675192483248168eefcf1b5e0ac624', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'65ffdbe3389248ac900ab417f0432c38') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65ffdbe3389248ac900ab417f0432c38' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65ffdbe3389248ac900ab417f0432c38', x'e8b3ed0348144023921c777155506c7c', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:21:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1834948159_a7180435d4861795@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'f05be1fb7b204c44973d07695564199a' AND `users`.`email` = 'teste@teste.teste'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'f05be1fb7b204c44973d07695564199a' AND `account_users`.`user_id` = x'595cfe4bcd2649cabc9e4d0380406269'  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f05be1fb7b204c44973d07695564199a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f05be1fb7b204c44973d07695564199a', x'f709e626dea848a5a81f5991dd1b09ff', x'595cfe4bcd2649cabc9e4d0380406269') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f709e626dea848a5a81f5991dd1b09ff') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f709e626dea848a5a81f5991dd1b09ff' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f709e626dea848a5a81f5991dd1b09ff', x'1939467b13524511a7021137001149bf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f709e626dea848a5a81f5991dd1b09ff') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f709e626dea848a5a81f5991dd1b09ff' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f709e626dea848a5a81f5991dd1b09ff', x'264736bcc05c4d91b084e7d94e21a90b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:29', x'e0ec2c9d3df74eceba2a45015d23b1bd', 'jabanilson', NULL, 1, '2012-12-31 12:21:29')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:21:29', `updated_at` = '2012-12-31 12:21:29', `subdomain` = 'accounte0ec2c9d-3df7-4ece-ba2a-45015d23b1bd' WHERE `accounts`.`id` = x'e0ec2c9d3df74eceba2a45015d23b1bd'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'e0ec2c9d3df74eceba2a45015d23b1bd' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'e0ec2c9d3df74eceba2a45015d23b1bd', 'teste@teste.teste', x'de84ab7354b14c8fb49d2ef8df8b6fc6', NULL, NULL, '2012-12-31 12:21:29', 'tb7nJyor2vd_6oxOX-OalB6G3_c') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/invitation.html.haml (0.7ms) Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:21:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1834953f52_a7180435d4861851@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/de84ab73-54b1-4c8f-b49d-2ef8df8b6fc6tb7nJyor2vd_6oxOX-OalB6G3_c  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:21:27', '2012-12-31 12:21:29', 'teste@teste.com', '$2a$04$88teOFJyaDN8bhTLBowAhOE46VdBnzxWzUuUb3pEcHVDp23k8Rpk2', NULL, x'85bb172380b0493db377da840e3a319f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:21:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'85bb172380b0493db377da840e3a319f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:21:29', 'User', x'e522ce94615d4d3f8cde0507cf98355c', '2f268013849921cf5fa30895ce61014c', x'85bb172380b0493db377da840e3a319f', 'User', '2012-12-31 12:21:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'85bb172380b0493db377da840e3a319f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:21:29', x'2c48f4ed736e4eca9b9d2e47aef6b184', NULL, NULL, NULL, '2012-12-31 12:21:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:21:29', `updated_at` = '2012-12-31 12:21:29', `subdomain` = 'account2c48f4ed-736e-4eca-9b9d-2e47aef6b184' WHERE `accounts`.`id` = x'2c48f4ed736e4eca9b9d2e47aef6b184' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2c48f4ed736e4eca9b9d2e47aef6b184' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2c48f4ed736e4eca9b9d2e47aef6b184', x'569c2066b44543e1964235793d25114e', x'85bb172380b0493db377da840e3a319f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'569c2066b44543e1964235793d25114e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'569c2066b44543e1964235793d25114e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'569c2066b44543e1964235793d25114e', x'b0ff2a85f22940e6b365ceb9c10bdbad', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'569c2066b44543e1964235793d25114e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'569c2066b44543e1964235793d25114e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'569c2066b44543e1964235793d25114e', x'cd1c040a1e9e4dd2bab14c87c7f46d02', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:21:29 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183496f570_a7180435d486191e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'e0ec2c9d3df74eceba2a45015d23b1bd' AND `users`.`email` = 'teste@teste.teste'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e0ec2c9d3df74eceba2a45015d23b1bd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e0ec2c9d3df74eceba2a45015d23b1bd', x'3df90a8a89d2467a9d99111e12660a6a', x'85bb172380b0493db377da840e3a319f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3df90a8a89d2467a9d99111e12660a6a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3df90a8a89d2467a9d99111e12660a6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3df90a8a89d2467a9d99111e12660a6a', x'bda8dccfafe847199c5319370af5d64f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3df90a8a89d2467a9d99111e12660a6a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3df90a8a89d2467a9d99111e12660a6a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3df90a8a89d2467a9d99111e12660a6a', x'69687370ba6a44e3831a2d9d0be91529', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'e0ec2c9d3df74eceba2a45015d23b1bd' AND `account_users`.`user_id` = x'85bb172380b0493db377da840e3a319f'  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (10.9ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (1.1ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.7ms) TRUNCATE TABLE `social_accounts`;  (10.4ms) TRUNCATE TABLE `user_invitations`;  (1.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:22:44', '2012-12-31 12:22:44', 'teste@teste.com', '$2a$04$43KJneMIWQXBHYWz7v1S2OaH3NywPASffq.EPLitEPR1CgiSe5ZC6', NULL, x'cf2ead9c8cd543b4ad0890cec4b94865', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:22:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cf2ead9c8cd543b4ad0890cec4b94865' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:22:44', 'User', x'b951900b5f6c46dcac9ac54bbc7eb623', 'a7d606d9135fef937b894a4a15e139bf', x'cf2ead9c8cd543b4ad0890cec4b94865', 'User', '2012-12-31 12:22:44') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cf2ead9c8cd543b4ad0890cec4b94865' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:22:44', x'c38cc02817b94d50bba798b2a056ac0c', NULL, NULL, NULL, '2012-12-31 12:22:44')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:22:44', `updated_at` = '2012-12-31 12:22:44', `subdomain` = 'accountc38cc028-17b9-4d50-bba7-98b2a056ac0c' WHERE `accounts`.`id` = x'c38cc02817b94d50bba798b2a056ac0c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c38cc02817b94d50bba798b2a056ac0c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c38cc02817b94d50bba798b2a056ac0c', x'7897be11d29b415caf4703f23180f39a', x'cf2ead9c8cd543b4ad0890cec4b94865') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7897be11d29b415caf4703f23180f39a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7897be11d29b415caf4703f23180f39a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7897be11d29b415caf4703f23180f39a', x'a784d955c5334699802f79dc8f1710c3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7897be11d29b415caf4703f23180f39a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7897be11d29b415caf4703f23180f39a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7897be11d29b415caf4703f23180f39a', x'f4e2e36834d44e4e8966a40eb6775d08', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (139ms) Date: Mon, 31 Dec 2012 10:22:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1839544a28_aee80435d485094a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:22:44', '2012-12-31 12:22:45', 'teste@teste.com', '$2a$04$Dcgl.HZ7Z7oH2F5XcoIAluwT5OMMgBJPJoL1zS0Vy/JQWGZXL3lqy', NULL, x'b9e89af821a34a96a48359112a885bd5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:22:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b9e89af821a34a96a48359112a885bd5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:22:45', 'User', x'd0f8408a64d740be8cad5dd6775b0ba5', '0ca636811b6014b5480f218fa93c41ce', x'b9e89af821a34a96a48359112a885bd5', 'User', '2012-12-31 12:22:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b9e89af821a34a96a48359112a885bd5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:22:45', x'4bb7e2082f5e4142b2322707dd451087', NULL, NULL, NULL, '2012-12-31 12:22:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:22:45', `updated_at` = '2012-12-31 12:22:45', `subdomain` = 'account4bb7e208-2f5e-4142-b232-2707dd451087' WHERE `accounts`.`id` = x'4bb7e2082f5e4142b2322707dd451087' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4bb7e2082f5e4142b2322707dd451087' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4bb7e2082f5e4142b2322707dd451087', x'fbadd56bd69741bf97d8d50ed6f17685', x'b9e89af821a34a96a48359112a885bd5') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fbadd56bd69741bf97d8d50ed6f17685') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fbadd56bd69741bf97d8d50ed6f17685' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fbadd56bd69741bf97d8d50ed6f17685', x'753eb9f5caeb481ba8c6f336b8abc8da', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fbadd56bd69741bf97d8d50ed6f17685') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fbadd56bd69741bf97d8d50ed6f17685' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fbadd56bd69741bf97d8d50ed6f17685', x'217d3e0f8f98467bb5f36fef911773a0', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:22:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1839559d13_aee80435d485104c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:22:44', '2012-12-31 12:22:45', 'teste@teste.com', '$2a$04$ZcvFle1DElOr7zTEh31g8.FzmkOIJdS.9MDXS4Y9YAB5ccgCyRQK.', NULL, x'43b031b978e4467e928e31225311b5d8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:22:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'43b031b978e4467e928e31225311b5d8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:22:45', 'User', x'ca544efa590b40a08f3b932d7073f32b', '9f8303606bd07a99683773f3b45e422d', x'43b031b978e4467e928e31225311b5d8', 'User', '2012-12-31 12:22:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'43b031b978e4467e928e31225311b5d8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:22:45', x'ad8e06a3fc8d424a8bd0263a892342f4', NULL, NULL, NULL, '2012-12-31 12:22:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:22:45', `updated_at` = '2012-12-31 12:22:45', `subdomain` = 'accountad8e06a3-fc8d-424a-8bd0-263a892342f4' WHERE `accounts`.`id` = x'ad8e06a3fc8d424a8bd0263a892342f4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ad8e06a3fc8d424a8bd0263a892342f4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ad8e06a3fc8d424a8bd0263a892342f4', x'fb2800ea1fa04799b7f773a852edd33a', x'43b031b978e4467e928e31225311b5d8') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fb2800ea1fa04799b7f773a852edd33a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb2800ea1fa04799b7f773a852edd33a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb2800ea1fa04799b7f773a852edd33a', x'b2b488c5e8cf4ac6aec208584e480234', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fb2800ea1fa04799b7f773a852edd33a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb2800ea1fa04799b7f773a852edd33a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb2800ea1fa04799b7f773a852edd33a', x'd8793a9ec9e448918d194cdd1fbd8a73', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:22:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1839565728_aee80435d485111c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:22:44', '2012-12-31 12:22:45', 'teste@teste.com', '$2a$04$r99YalXsyo2rFrvHSuFUTOOsDIUH9mIKJGKlew7woJOfjkodYAvD2', NULL, x'0504268466f2408eb9aa16080a72431f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:22:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0504268466f2408eb9aa16080a72431f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:22:45', 'User', x'702b4ab666734655b0e6d6381abb79bc', 'a3027d6f7323cce8686b47a376ed9a2c', x'0504268466f2408eb9aa16080a72431f', 'User', '2012-12-31 12:22:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0504268466f2408eb9aa16080a72431f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:22:45', x'54927a30c12c4a6bba79f6e32175be3b', NULL, NULL, NULL, '2012-12-31 12:22:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:22:45', `updated_at` = '2012-12-31 12:22:45', `subdomain` = 'account54927a30-c12c-4a6b-ba79-f6e32175be3b' WHERE `accounts`.`id` = x'54927a30c12c4a6bba79f6e32175be3b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'54927a30c12c4a6bba79f6e32175be3b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'54927a30c12c4a6bba79f6e32175be3b', x'493e63f4266a44908094077020d19637', x'0504268466f2408eb9aa16080a72431f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'493e63f4266a44908094077020d19637') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'493e63f4266a44908094077020d19637' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'493e63f4266a44908094077020d19637', x'b9d2c23ec31d4cfcbeab33fe4c995bd4', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'493e63f4266a44908094077020d19637') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'493e63f4266a44908094077020d19637' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'493e63f4266a44908094077020d19637', x'b76efd17612441239be90a61986f88f3', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:22:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18395724e2_aee80435d485124f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0504268466f2408eb9aa16080a72431f'  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (14.4ms) TRUNCATE TABLE `account_domains`;  (8.1ms) TRUNCATE TABLE `account_roles`;  (1.1ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (10.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:05', '2012-12-31 12:23:06', 'teste@teste.com', '$2a$04$mZApBHe7P9nbS2OiFIX5Z.jGwPm3kbucs1zHxRyG1gPMfsxOtmJe2', NULL, x'21d8f1fedac94a508e29e51497460c21', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'21d8f1fedac94a508e29e51497460c21' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:06', 'User', x'b83d7c1416a8472fa2b928654e827672', '80fc8a7e23732bcd43751f15634a594c', x'21d8f1fedac94a508e29e51497460c21', 'User', '2012-12-31 12:23:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'21d8f1fedac94a508e29e51497460c21' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:06', x'5ed1d805b73f478dba6596b2508eb26e', NULL, NULL, NULL, '2012-12-31 12:23:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:06', `updated_at` = '2012-12-31 12:23:06', `subdomain` = 'account5ed1d805-b73f-478d-ba65-96b2508eb26e' WHERE `accounts`.`id` = x'5ed1d805b73f478dba6596b2508eb26e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5ed1d805b73f478dba6596b2508eb26e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5ed1d805b73f478dba6596b2508eb26e', x'a6c1c4be99a64f3d8b724894a0a8f139', x'21d8f1fedac94a508e29e51497460c21') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a6c1c4be99a64f3d8b724894a0a8f139') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a6c1c4be99a64f3d8b724894a0a8f139' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a6c1c4be99a64f3d8b724894a0a8f139', x'd9cb602736b64542b3caf500efc25225', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a6c1c4be99a64f3d8b724894a0a8f139') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a6c1c4be99a64f3d8b724894a0a8f139' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a6c1c4be99a64f3d8b724894a0a8f139', x'93eeacebea5c40759d4b2a97c41be23f', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.2ms) Sent mail to teste@teste.com (138ms) Date: Mon, 31 Dec 2012 10:23:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183aae1426_af980435d4830086@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:05', '2012-12-31 12:23:06', 'teste@teste.com', '$2a$04$8ROxeZv6PwOA9SCOo/V6SecKZIFq3V8TCXvPcodRe1/ROVP9Q4ZBW', NULL, x'aced7ee4f11c4af7a24d7683f74b7c0b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:06') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'aced7ee4f11c4af7a24d7683f74b7c0b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:06', 'User', x'873c09d9f3e9453b9ee03cca9efb620d', '03e2828e513ef040fdb1a4d9862bbcc6', x'aced7ee4f11c4af7a24d7683f74b7c0b', 'User', '2012-12-31 12:23:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'aced7ee4f11c4af7a24d7683f74b7c0b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:06', x'c1eaf83d1a5b4ea6ba404b0573a23062', NULL, NULL, NULL, '2012-12-31 12:23:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:06', `updated_at` = '2012-12-31 12:23:06', `subdomain` = 'accountc1eaf83d-1a5b-4ea6-ba40-4b0573a23062' WHERE `accounts`.`id` = x'c1eaf83d1a5b4ea6ba404b0573a23062' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c1eaf83d1a5b4ea6ba404b0573a23062' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c1eaf83d1a5b4ea6ba404b0573a23062', x'd34bf43bb36f47b6959a6cb618fa6a0b', x'aced7ee4f11c4af7a24d7683f74b7c0b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd34bf43bb36f47b6959a6cb618fa6a0b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd34bf43bb36f47b6959a6cb618fa6a0b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd34bf43bb36f47b6959a6cb618fa6a0b', x'34f0206e32b14960823e9cb991bec767', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd34bf43bb36f47b6959a6cb618fa6a0b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd34bf43bb36f47b6959a6cb618fa6a0b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd34bf43bb36f47b6959a6cb618fa6a0b', x'565431608f2a4fb89fdbc5c139c0570d', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:23:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183ab260f_af980435d48301ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:05', '2012-12-31 12:23:07', 'teste@teste.com', '$2a$04$51h7qzE0cp9bB7UYMw60UedcmtR4SSUxeAUqb37xw.V2qzUsfmq0G', NULL, x'774a47bc5d774275abd4e47f22c3f042', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:07') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'774a47bc5d774275abd4e47f22c3f042' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:07', 'User', x'5816b7f7144848d78ecec01521b973ee', '09ad3e6262058b3858c016872f642df4', x'774a47bc5d774275abd4e47f22c3f042', 'User', '2012-12-31 12:23:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'774a47bc5d774275abd4e47f22c3f042' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:07', x'a20d21f2870345ff883b8586a77a5a50', NULL, NULL, NULL, '2012-12-31 12:23:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:07', `updated_at` = '2012-12-31 12:23:07', `subdomain` = 'accounta20d21f2-8703-45ff-883b-8586a77a5a50' WHERE `accounts`.`id` = x'a20d21f2870345ff883b8586a77a5a50' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a20d21f2870345ff883b8586a77a5a50' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a20d21f2870345ff883b8586a77a5a50', x'dfa44a2cdf7a4deaa18b1e90cd462a4b', x'774a47bc5d774275abd4e47f22c3f042') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dfa44a2cdf7a4deaa18b1e90cd462a4b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dfa44a2cdf7a4deaa18b1e90cd462a4b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dfa44a2cdf7a4deaa18b1e90cd462a4b', x'9eefc21aef2d4952aef6cc2299ee5793', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dfa44a2cdf7a4deaa18b1e90cd462a4b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dfa44a2cdf7a4deaa18b1e90cd462a4b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dfa44a2cdf7a4deaa18b1e90cd462a4b', x'00c782a34e3e48a0858c98898f4a62a5', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183abec2b_af980435d48302e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:05', '2012-12-31 12:23:07', 'teste@teste.com', '$2a$04$9ivOhFxfKf8d8RNOEf9Hh.yl7l6SpUA8tyw1lx6G8l4kv634Hgjfq', NULL, x'343e9284099549768ea1de4616bd1f1c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:07') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'343e9284099549768ea1de4616bd1f1c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:07', 'User', x'c5d3b6f1ead849399c54bf97987da119', '3d90435a3af1097ab42b25e1621e69b1', x'343e9284099549768ea1de4616bd1f1c', 'User', '2012-12-31 12:23:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'343e9284099549768ea1de4616bd1f1c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:07', x'66ccccfdee48488180294328ef1fbbf2', NULL, NULL, NULL, '2012-12-31 12:23:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:07', `updated_at` = '2012-12-31 12:23:07', `subdomain` = 'account66ccccfd-ee48-4881-8029-4328ef1fbbf2' WHERE `accounts`.`id` = x'66ccccfdee48488180294328ef1fbbf2' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'66ccccfdee48488180294328ef1fbbf2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'66ccccfdee48488180294328ef1fbbf2', x'20c054bd450e40d3839d5c2d49fa0c7f', x'343e9284099549768ea1de4616bd1f1c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'20c054bd450e40d3839d5c2d49fa0c7f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'20c054bd450e40d3839d5c2d49fa0c7f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'20c054bd450e40d3839d5c2d49fa0c7f', x'24f061c0a0a640c68b66016f89ce0025', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'20c054bd450e40d3839d5c2d49fa0c7f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'20c054bd450e40d3839d5c2d49fa0c7f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'20c054bd450e40d3839d5c2d49fa0c7f', x'78e875a4a3ee41aea65b062b7af4481e', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183ab1bd7c_af980435d4830325@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'343e9284099549768ea1de4616bd1f1c'  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:05', '2012-12-31 12:23:07', 'teste@teste.com', '$2a$04$g5scOwdlaf2/Leja4PXb/ebXZmFj/obsRuT3N4wr5z4tFruZnwUqO', NULL, x'a03b6c1088814835be1e3f224b9bd445', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a03b6c1088814835be1e3f224b9bd445' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:07', 'User', x'bff990bc0ecb4f4b9ba5067253f72fd3', 'd60a1e97c81ae1cb1492db1776fbeeac', x'a03b6c1088814835be1e3f224b9bd445', 'User', '2012-12-31 12:23:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a03b6c1088814835be1e3f224b9bd445' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:07', x'24c7383e3dfe44c59db21c009e6566d7', NULL, NULL, NULL, '2012-12-31 12:23:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:07', `updated_at` = '2012-12-31 12:23:07', `subdomain` = 'account24c7383e-3dfe-44c5-9db2-1c009e6566d7' WHERE `accounts`.`id` = x'24c7383e3dfe44c59db21c009e6566d7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'24c7383e3dfe44c59db21c009e6566d7' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'24c7383e3dfe44c59db21c009e6566d7', x'738972fbb1b746428d4578066a19ddec', x'a03b6c1088814835be1e3f224b9bd445') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'738972fbb1b746428d4578066a19ddec') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'738972fbb1b746428d4578066a19ddec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'738972fbb1b746428d4578066a19ddec', x'fce5535e56a14611ac1f090ee6dc5f23', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'738972fbb1b746428d4578066a19ddec') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'738972fbb1b746428d4578066a19ddec' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'738972fbb1b746428d4578066a19ddec', x'2329f5f0e0204a4d83603bb0e1109b51', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:23:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183ab37fa9_af980435d4830450@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.3ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (11.6ms) TRUNCATE TABLE `social_accounts`;  (1.1ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:24', '2012-12-31 12:23:24', 'teste@teste.com', '$2a$04$H9LfTpCM.APh.ao0gVk1i.6earv..gCnHSxXyq0HH1mgddHongl7m', NULL, x'36a59187741b44e2afba31e951b5582a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:24') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'36a59187741b44e2afba31e951b5582a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:24', 'User', x'4ad518ae39b34e6d8578637e42e5bcf6', 'c6ea926b1796ed0a979953486f06bf9c', x'36a59187741b44e2afba31e951b5582a', 'User', '2012-12-31 12:23:24') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'36a59187741b44e2afba31e951b5582a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:24', x'b8e5249e5d6a497da0f2fb511568ec48', NULL, NULL, NULL, '2012-12-31 12:23:24')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:24', `updated_at` = '2012-12-31 12:23:24', `subdomain` = 'accountb8e5249e-5d6a-497d-a0f2-fb511568ec48' WHERE `accounts`.`id` = x'b8e5249e5d6a497da0f2fb511568ec48' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b8e5249e5d6a497da0f2fb511568ec48' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b8e5249e5d6a497da0f2fb511568ec48', x'c5acfce81fbd425ea15c477b172a9bfd', x'36a59187741b44e2afba31e951b5582a') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c5acfce81fbd425ea15c477b172a9bfd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c5acfce81fbd425ea15c477b172a9bfd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c5acfce81fbd425ea15c477b172a9bfd', x'119ecd9c997344deb1391d8af302cec8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c5acfce81fbd425ea15c477b172a9bfd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c5acfce81fbd425ea15c477b172a9bfd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c5acfce81fbd425ea15c477b172a9bfd', x'2ee2022e2df24d5fa948fac098429210', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.2ms) Sent mail to teste@teste.com (139ms) Date: Mon, 31 Dec 2012 10:23:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183bd16c16_b0380435d48735e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:24', '2012-12-31 12:23:25', 'teste@teste.com', '$2a$04$aR6rk2wAcbZZyOVXS.6.EumYc8FDMc1aLOx1s56Kze5Shaxe8joeC', NULL, x'8665ce1787de4d5eb3ce00d0059a2efb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:25') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8665ce1787de4d5eb3ce00d0059a2efb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:25', 'User', x'8a37990df68f4d16a3ed2b8a492c15b9', 'a564d9474ca22bd821b985bfc6710df7', x'8665ce1787de4d5eb3ce00d0059a2efb', 'User', '2012-12-31 12:23:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8665ce1787de4d5eb3ce00d0059a2efb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:25', x'bbedfda448594e3ba0ecc494cf1befbb', NULL, NULL, NULL, '2012-12-31 12:23:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:25', `updated_at` = '2012-12-31 12:23:25', `subdomain` = 'accountbbedfda4-4859-4e3b-a0ec-c494cf1befbb' WHERE `accounts`.`id` = x'bbedfda448594e3ba0ecc494cf1befbb' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bbedfda448594e3ba0ecc494cf1befbb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bbedfda448594e3ba0ecc494cf1befbb', x'615e72781eca4a37b1068311f6a03ac7', x'8665ce1787de4d5eb3ce00d0059a2efb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'615e72781eca4a37b1068311f6a03ac7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'615e72781eca4a37b1068311f6a03ac7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'615e72781eca4a37b1068311f6a03ac7', x'b32f2483753c442a89be349983dd13cb', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'615e72781eca4a37b1068311f6a03ac7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'615e72781eca4a37b1068311f6a03ac7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'615e72781eca4a37b1068311f6a03ac7', x'28791d25338b47008b3b3f2776bdf5a6', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183bd2c0a2_b0380435d4873613@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:24', '2012-12-31 12:23:25', 'teste@teste.com', '$2a$04$T6Nx1qAiF63UOq5zuh7ik.FmBRK0RYYdYI2Acd5L9.loP14i/dif6', NULL, x'b921a7a2659b4dfbb692a71d43efa981', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:25') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b921a7a2659b4dfbb692a71d43efa981' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:25', 'User', x'c171b19305f74e8d98ca660db0787973', 'ceee1a042c6a629152c81c4a7c7eb09d', x'b921a7a2659b4dfbb692a71d43efa981', 'User', '2012-12-31 12:23:25') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b921a7a2659b4dfbb692a71d43efa981' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:25', x'0c59113429cd490eb2c816df46929d90', NULL, NULL, NULL, '2012-12-31 12:23:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:25', `updated_at` = '2012-12-31 12:23:25', `subdomain` = 'account0c591134-29cd-490e-b2c8-16df46929d90' WHERE `accounts`.`id` = x'0c59113429cd490eb2c816df46929d90' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0c59113429cd490eb2c816df46929d90' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0c59113429cd490eb2c816df46929d90', x'27e3f7d866a643e3a10d088993c964d1', x'b921a7a2659b4dfbb692a71d43efa981') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'27e3f7d866a643e3a10d088993c964d1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'27e3f7d866a643e3a10d088993c964d1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'27e3f7d866a643e3a10d088993c964d1', x'fa890adce0b14b978d0de1ddc18ae5b8', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'27e3f7d866a643e3a10d088993c964d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'27e3f7d866a643e3a10d088993c964d1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'27e3f7d866a643e3a10d088993c964d1', x'a4b562dc70c04683bd2b6004747f312b', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183bd380a7_b0380435d4873741@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:24', '2012-12-31 12:23:25', 'teste@teste.com', '$2a$04$MXMoNPq3zyPFhERdur8v1ud0/M54HJpawZs10toiJzDzlQHfQqGVi', NULL, x'3116f38670a24e0a9717e024640c579c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:25') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3116f38670a24e0a9717e024640c579c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:25', 'User', x'dcee49a5b2354ca5aaf165fa6f500b7f', 'f4916f9905631048661b18b416902ca1', x'3116f38670a24e0a9717e024640c579c', 'User', '2012-12-31 12:23:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3116f38670a24e0a9717e024640c579c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:25', x'2607fb2e6a3b447981e055e102b64ab5', NULL, NULL, NULL, '2012-12-31 12:23:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:25', `updated_at` = '2012-12-31 12:23:25', `subdomain` = 'account2607fb2e-6a3b-4479-81e0-55e102b64ab5' WHERE `accounts`.`id` = x'2607fb2e6a3b447981e055e102b64ab5' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2607fb2e6a3b447981e055e102b64ab5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2607fb2e6a3b447981e055e102b64ab5', x'c00d198477924a87aaff1c243a59b5ba', x'3116f38670a24e0a9717e024640c579c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c00d198477924a87aaff1c243a59b5ba') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c00d198477924a87aaff1c243a59b5ba' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c00d198477924a87aaff1c243a59b5ba', x'06ebd8e2293c4ada853df27ea01d7475', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c00d198477924a87aaff1c243a59b5ba') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c00d198477924a87aaff1c243a59b5ba' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c00d198477924a87aaff1c243a59b5ba', x'9bb4b3a6285348cd94e078005a6c46df', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:23:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183bd45935_b0380435d4873873@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3116f38670a24e0a9717e024640c579c'  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:24', '2012-12-31 12:23:25', 'teste@teste.com', '$2a$04$/K8xV7jQiruMfL9jz/qBu.Wf/ZJ.gdJfBxBRoimQokBcQ1USyykvq', NULL, x'b86c3a9c698a45b5933a3ca78a6e7c4c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:25') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b86c3a9c698a45b5933a3ca78a6e7c4c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:25', 'User', x'4bf72e69653f46bd845de8d2f97126ac', '7ce26eb1e55712d3059ebfa06cd6284b', x'b86c3a9c698a45b5933a3ca78a6e7c4c', 'User', '2012-12-31 12:23:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b86c3a9c698a45b5933a3ca78a6e7c4c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:25', x'28b7f3ec9cd54921bf60be4b2203cfac', NULL, NULL, NULL, '2012-12-31 12:23:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:25', `updated_at` = '2012-12-31 12:23:25', `subdomain` = 'account28b7f3ec-9cd5-4921-bf60-be4b2203cfac' WHERE `accounts`.`id` = x'28b7f3ec9cd54921bf60be4b2203cfac' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'28b7f3ec9cd54921bf60be4b2203cfac' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'28b7f3ec9cd54921bf60be4b2203cfac', x'8ddc758927e0442ead01aeaf22002a59', x'b86c3a9c698a45b5933a3ca78a6e7c4c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8ddc758927e0442ead01aeaf22002a59') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8ddc758927e0442ead01aeaf22002a59' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8ddc758927e0442ead01aeaf22002a59', x'0d52345b2f044d14a948b6413d20103f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8ddc758927e0442ead01aeaf22002a59') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8ddc758927e0442ead01aeaf22002a59' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8ddc758927e0442ead01aeaf22002a59', x'f1a06e7f9af24358bab3622178546c96', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.1ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183bd53aa1_b0380435d48739aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:24', '2012-12-31 12:23:25', 'teste@teste.com', '$2a$04$IdTmjJ66.vfl.fhFEyfrIugGe1FGAjyGC3lus7LGxZmWa6GVLrgoG', NULL, x'ac7f8194a48640b8a40b815e9b01695b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:25') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ac7f8194a48640b8a40b815e9b01695b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:25', 'User', x'2315362af2f54232852339b56fa2fefd', 'b4ba34fa0536dc8a6be63d5b1518e39a', x'ac7f8194a48640b8a40b815e9b01695b', 'User', '2012-12-31 12:23:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ac7f8194a48640b8a40b815e9b01695b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:25', x'81dd582b883b4d6e8d449580a688c1f6', NULL, NULL, NULL, '2012-12-31 12:23:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:25', `updated_at` = '2012-12-31 12:23:25', `subdomain` = 'account81dd582b-883b-4d6e-8d44-9580a688c1f6' WHERE `accounts`.`id` = x'81dd582b883b4d6e8d449580a688c1f6' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'81dd582b883b4d6e8d449580a688c1f6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'81dd582b883b4d6e8d449580a688c1f6', x'5500dea50fa249789ace2745a9d7365b', x'ac7f8194a48640b8a40b815e9b01695b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5500dea50fa249789ace2745a9d7365b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5500dea50fa249789ace2745a9d7365b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5500dea50fa249789ace2745a9d7365b', x'fd8446e0f7854157820485e1a46a43f6', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5500dea50fa249789ace2745a9d7365b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5500dea50fa249789ace2745a9d7365b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5500dea50fa249789ace2745a9d7365b', x'e3de0a10993f491d97a94a78ca1473d7', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:23:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183bd81245_b0380435d48740a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (0.8ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (9.2ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:51', 'teste@teste.com', '$2a$04$M175rV1N7KJgXupTzP2ccOIppjdecy4kwVYDy0aBweOVuXYnAY012', NULL, x'867f78f6eb7a43cdbb82bc3bbaa80657', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:51') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'867f78f6eb7a43cdbb82bc3bbaa80657' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:51', 'User', x'0d218031d1c94063a9471ed9ae9a2b4e', '7cac9edad2f02dad09a7809368cdb8cf', x'867f78f6eb7a43cdbb82bc3bbaa80657', 'User', '2012-12-31 12:23:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'867f78f6eb7a43cdbb82bc3bbaa80657' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:51', x'028efbb59bb24441b6ba53eeaf1d6139', NULL, NULL, NULL, '2012-12-31 12:23:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:51', `updated_at` = '2012-12-31 12:23:51', `subdomain` = 'account028efbb5-9bb2-4441-b6ba-53eeaf1d6139' WHERE `accounts`.`id` = x'028efbb59bb24441b6ba53eeaf1d6139' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'028efbb59bb24441b6ba53eeaf1d6139' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'028efbb59bb24441b6ba53eeaf1d6139', x'5790628ba97340e792c7eb9c14644be1', x'867f78f6eb7a43cdbb82bc3bbaa80657') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5790628ba97340e792c7eb9c14644be1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5790628ba97340e792c7eb9c14644be1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5790628ba97340e792c7eb9c14644be1', x'a06e9ccb9f234a4cbad5ec591ccc53d0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5790628ba97340e792c7eb9c14644be1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5790628ba97340e792c7eb9c14644be1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5790628ba97340e792c7eb9c14644be1', x'f4f84dcc84354c6f94c5bfe69f43b7df', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.0ms) Sent mail to teste@teste.com (138ms) Date: Mon, 31 Dec 2012 10:23:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183d7c2969_b0d80435d48352e3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:51', 'teste@teste.com', '$2a$04$CpgwZWx0nRo3obBescSOzu57puBRTYAKoxH3ddDKwsyGLzi0Gbmgy', NULL, x'35fcc1193fed4af8acb57419e9eeb2eb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:51') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'35fcc1193fed4af8acb57419e9eeb2eb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:51', 'User', x'b4be61e379f74e69b255c33bec58965e', '21401406f4104a155ad8baa6724c9038', x'35fcc1193fed4af8acb57419e9eeb2eb', 'User', '2012-12-31 12:23:51') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'35fcc1193fed4af8acb57419e9eeb2eb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:51', x'a9fcd5e589c84158a085ec6279b7fd15', NULL, NULL, NULL, '2012-12-31 12:23:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:51', `updated_at` = '2012-12-31 12:23:51', `subdomain` = 'accounta9fcd5e5-89c8-4158-a085-ec6279b7fd15' WHERE `accounts`.`id` = x'a9fcd5e589c84158a085ec6279b7fd15' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a9fcd5e589c84158a085ec6279b7fd15' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a9fcd5e589c84158a085ec6279b7fd15', x'63d6df60d93d45c1931ff41ccd39b404', x'35fcc1193fed4af8acb57419e9eeb2eb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'63d6df60d93d45c1931ff41ccd39b404') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'63d6df60d93d45c1931ff41ccd39b404' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'63d6df60d93d45c1931ff41ccd39b404', x'50972c4b6df445ad889b23256c8fdc0b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'63d6df60d93d45c1931ff41ccd39b404') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'63d6df60d93d45c1931ff41ccd39b404' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'63d6df60d93d45c1931ff41ccd39b404', x'69e3e46c272c426d86f60e852e438d7c', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183d7d8300_b0d80435d48353ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:51', 'teste@teste.com', '$2a$04$iRh5FnA0J.IGiUukHjlKeuUoeX2G.I3y2EAO2s8rPHmbHn0AJwQ1S', NULL, x'1671697c523d4062adc60f9b5f5b57d5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1671697c523d4062adc60f9b5f5b57d5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:51', 'User', x'1913ae31515c4b799e26f9abd22177fc', '69101cb48d56c768544c3a74a80de920', x'1671697c523d4062adc60f9b5f5b57d5', 'User', '2012-12-31 12:23:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1671697c523d4062adc60f9b5f5b57d5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:51', x'c5f0697ae5aa4544af53ced8da343e44', NULL, NULL, NULL, '2012-12-31 12:23:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:51', `updated_at` = '2012-12-31 12:23:51', `subdomain` = 'accountc5f0697a-e5aa-4544-af53-ced8da343e44' WHERE `accounts`.`id` = x'c5f0697ae5aa4544af53ced8da343e44' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c5f0697ae5aa4544af53ced8da343e44' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c5f0697ae5aa4544af53ced8da343e44', x'4f66cb8fa5ac40c0ab4c0be0eac62029', x'1671697c523d4062adc60f9b5f5b57d5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4f66cb8fa5ac40c0ab4c0be0eac62029') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f66cb8fa5ac40c0ab4c0be0eac62029' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f66cb8fa5ac40c0ab4c0be0eac62029', x'5cbd730157814b57b18cd139979dddce', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4f66cb8fa5ac40c0ab4c0be0eac62029') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f66cb8fa5ac40c0ab4c0be0eac62029' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f66cb8fa5ac40c0ab4c0be0eac62029', x'61d741fd6efa43c9acc3cd2314e0ff90', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183d7e549e_b0d80435d483541a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:51', 'teste@teste.com', '$2a$04$XKA.w4NYW80KPD/KSySk4uZeSsFS/mSVPLd9bZGkxPZ6/IpVduKLW', NULL, x'7b6b845884bf4cc19db87672b69f585d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7b6b845884bf4cc19db87672b69f585d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:51', 'User', x'40ece50e1e86413e9af8671c22f5d4e9', '4cca09646502fc04fff494dcbb96b886', x'7b6b845884bf4cc19db87672b69f585d', 'User', '2012-12-31 12:23:51') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7b6b845884bf4cc19db87672b69f585d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:51', x'7978a7f8ca054a34b1dd4eb97b4c4f4c', NULL, NULL, NULL, '2012-12-31 12:23:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:51', `updated_at` = '2012-12-31 12:23:51', `subdomain` = 'account7978a7f8-ca05-4a34-b1dd-4eb97b4c4f4c' WHERE `accounts`.`id` = x'7978a7f8ca054a34b1dd4eb97b4c4f4c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7978a7f8ca054a34b1dd4eb97b4c4f4c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7978a7f8ca054a34b1dd4eb97b4c4f4c', x'03c227a3932f46b39461f8fea3eff99b', x'7b6b845884bf4cc19db87672b69f585d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'03c227a3932f46b39461f8fea3eff99b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03c227a3932f46b39461f8fea3eff99b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03c227a3932f46b39461f8fea3eff99b', x'ff96e4ff78814b75a3991dffc1234219', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'03c227a3932f46b39461f8fea3eff99b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03c227a3932f46b39461f8fea3eff99b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03c227a3932f46b39461f8fea3eff99b', x'468ca17ab9bb4b02bf2991c9c30eac6e', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183d7f33ff_b0d80435d4835512@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7b6b845884bf4cc19db87672b69f585d'  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:52', 'teste@teste.com', '$2a$04$JTRSroD9Cc0okCbXYp8apuVGjeJ1CYPBpVmLsGg.eLEee7HoKsEnO', NULL, x'950d7a8c3004404d86040ab319a066bb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'950d7a8c3004404d86040ab319a066bb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:52', 'User', x'8117da3951fd4720b5c8ec770b8aeedf', '4ddaeeb6ecf603be2bdc6773abf27601', x'950d7a8c3004404d86040ab319a066bb', 'User', '2012-12-31 12:23:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'950d7a8c3004404d86040ab319a066bb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:52', x'65fcad0e0cd6492697eb329c88b59f3f', NULL, NULL, NULL, '2012-12-31 12:23:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:52', `updated_at` = '2012-12-31 12:23:52', `subdomain` = 'account65fcad0e-0cd6-4926-97eb-329c88b59f3f' WHERE `accounts`.`id` = x'65fcad0e0cd6492697eb329c88b59f3f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'65fcad0e0cd6492697eb329c88b59f3f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'65fcad0e0cd6492697eb329c88b59f3f', x'705248efb8a54b5e81ef8db624f233b0', x'950d7a8c3004404d86040ab319a066bb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'705248efb8a54b5e81ef8db624f233b0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'705248efb8a54b5e81ef8db624f233b0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'705248efb8a54b5e81ef8db624f233b0', x'4554d1f5f3994e368caaecc9ee72705b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'705248efb8a54b5e81ef8db624f233b0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'705248efb8a54b5e81ef8db624f233b0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'705248efb8a54b5e81ef8db624f233b0', x'6e76380152e8435086fd28782b19c4a5', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:23:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183d81caca_b0d80435d48356a2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:52', 'teste@teste.com', '$2a$04$2EWy2jF90LX60U8BLQS0L.bfsNB.14y6zlUX/YBClHO8LSSNfw1QG', NULL, x'c865eb270a72476f9d4cd08e0a14fca9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c865eb270a72476f9d4cd08e0a14fca9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:52', 'User', x'917b8b8a59cb4cb6abd31a7379029e1c', '8162ee6da16aefdd4c6344e7caea62e8', x'c865eb270a72476f9d4cd08e0a14fca9', 'User', '2012-12-31 12:23:52') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c865eb270a72476f9d4cd08e0a14fca9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:52', x'191165d2d0884e2b9e90fa5c619a7285', NULL, NULL, NULL, '2012-12-31 12:23:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:52', `updated_at` = '2012-12-31 12:23:52', `subdomain` = 'account191165d2-d088-4e2b-9e90-fa5c619a7285' WHERE `accounts`.`id` = x'191165d2d0884e2b9e90fa5c619a7285' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'191165d2d0884e2b9e90fa5c619a7285' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'191165d2d0884e2b9e90fa5c619a7285', x'c6b9dac21e0c4710abb8cbe8e2d64719', x'c865eb270a72476f9d4cd08e0a14fca9') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c6b9dac21e0c4710abb8cbe8e2d64719') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c6b9dac21e0c4710abb8cbe8e2d64719' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c6b9dac21e0c4710abb8cbe8e2d64719', x'618ae1090c3f4f15a3af97c29805c4f8', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c6b9dac21e0c4710abb8cbe8e2d64719') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c6b9dac21e0c4710abb8cbe8e2d64719' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c6b9dac21e0c4710abb8cbe8e2d64719', x'02a79b5c63a94c379d0e7abbd3726f4c', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:23:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183d83bf7d_b0d80435d48357b5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:52', 'account1@before.destroy', '$2a$04$qSWrnAmJJLTV9ITs/foDOOHZG9/tPEfQzDPz2Il.m3GsRBi1LqZ52', NULL, x'd4be4b80e825461da04b0158726a4767', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd4be4b80e825461da04b0158726a4767' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:52', 'User', x'e105ccc1ad474213a077a8158edafb1f', 'ced95f48472ed9a573361d4ffaa675f0', x'd4be4b80e825461da04b0158726a4767', 'User', '2012-12-31 12:23:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd4be4b80e825461da04b0158726a4767' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:52', x'e3f8dde5eda743dd9bc3b1a5cd76d05b', NULL, NULL, NULL, '2012-12-31 12:23:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:52', `updated_at` = '2012-12-31 12:23:52', `subdomain` = 'accounte3f8dde5-eda7-43dd-9bc3-b1a5cd76d05b' WHERE `accounts`.`id` = x'e3f8dde5eda743dd9bc3b1a5cd76d05b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e3f8dde5eda743dd9bc3b1a5cd76d05b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e3f8dde5eda743dd9bc3b1a5cd76d05b', x'3293ddc70da84aa7ae17694b02e291d3', x'd4be4b80e825461da04b0158726a4767') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3293ddc70da84aa7ae17694b02e291d3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3293ddc70da84aa7ae17694b02e291d3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3293ddc70da84aa7ae17694b02e291d3', x'4a200b3a87cc4e018b89814d265f272e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3293ddc70da84aa7ae17694b02e291d3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3293ddc70da84aa7ae17694b02e291d3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3293ddc70da84aa7ae17694b02e291d3', x'9fae5fcf25cd4c9eab7682c40ddb502a', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:23:52 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e183d848aaf_b0d80435d48358c1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd4be4b80e825461da04b0158726a4767' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyUserJob\nid: d4be4b80-e825-461d-a04b-0158726a4767\n', NULL, NULL, NULL, 0, 'user_d4be4b80-e825-461d-a04b-0158726a4767_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_d4be4b80-e825-461d-a04b-0158726a4767_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd4be4b80e825461da04b0158726a4767' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd4be4b80e825461da04b0158726a4767' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 3293ddc7-0da8-4aa7-ae17-694b02e291d3\n', NULL, NULL, NULL, 0, 'account_user_3293ddc7-0da8-4aa7-ae17-694b02e291d3_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd4be4b80e825461da04b0158726a4767' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd4be4b80e825461da04b0158726a4767'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'e3f8dde5eda743dd9bc3b1a5cd76d05b' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyAccountJob\nid: e3f8dde5-eda7-43dd-9bc3-b1a5cd76d05b\n', NULL, NULL, NULL, 0, 'account_e3f8dde5-eda7-43dd-9bc3-b1a5cd76d05b_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = x'd4be4b80e825461da04b0158726a4767'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e3f8dde5-eda7-43dd-9bc3-b1a5cd76d05b_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:52', 'account1@before.destroy', '$2a$04$LvJuvqIipFquz38R7sJWaePaV2W5bGbbHx1DQPjUbh.S2oGK8XNIS', NULL, x'7de32b07908b46a6abbad0f8c62c2fb1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:52') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7de32b07908b46a6abbad0f8c62c2fb1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:52', 'User', x'70adb4db5b954d6291a430b694a1c659', 'ce7946ecab76b01b7f45497e5ce93bb6', x'7de32b07908b46a6abbad0f8c62c2fb1', 'User', '2012-12-31 12:23:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7de32b07908b46a6abbad0f8c62c2fb1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:52', x'd1eb4fb4caa0493b9b87860096b47567', NULL, NULL, NULL, '2012-12-31 12:23:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:52', `updated_at` = '2012-12-31 12:23:52', `subdomain` = 'accountd1eb4fb4-caa0-493b-9b87-860096b47567' WHERE `accounts`.`id` = x'd1eb4fb4caa0493b9b87860096b47567' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd1eb4fb4caa0493b9b87860096b47567' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd1eb4fb4caa0493b9b87860096b47567', x'3552b9db6d68419c8a2e0b9936a52661', x'7de32b07908b46a6abbad0f8c62c2fb1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3552b9db6d68419c8a2e0b9936a52661') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3552b9db6d68419c8a2e0b9936a52661' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3552b9db6d68419c8a2e0b9936a52661', x'17ea85b7ef0e4039add74924be26dd5f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3552b9db6d68419c8a2e0b9936a52661') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3552b9db6d68419c8a2e0b9936a52661' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3552b9db6d68419c8a2e0b9936a52661', x'9b571f9a41b24ec48c07077b47ae445b', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:23:52 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e183d875788_b0d80435d483598a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:52', x'70710cfa357946bca65e13082c0af2b7', 'jabanilson', NULL, 1, '2012-12-31 12:23:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:23:52', `updated_at` = '2012-12-31 12:23:52', `subdomain` = 'account70710cfa-3579-46bc-a65e-13082c0af2b7' WHERE `accounts`.`id` = x'70710cfa357946bca65e13082c0af2b7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7de32b07908b46a6abbad0f8c62c2fb1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'70710cfa357946bca65e13082c0af2b7', x'1f785a3884bf4c9b81ec01fc8926c158', x'7de32b07908b46a6abbad0f8c62c2fb1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1f785a3884bf4c9b81ec01fc8926c158') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1f785a3884bf4c9b81ec01fc8926c158' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1f785a3884bf4c9b81ec01fc8926c158', x'b286f589984341188f7cd21e2ecbec3c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1f785a3884bf4c9b81ec01fc8926c158') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1f785a3884bf4c9b81ec01fc8926c158' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1f785a3884bf4c9b81ec01fc8926c158', x'019b8f92bc01464faded1f9d170cb222', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7de32b07908b46a6abbad0f8c62c2fb1' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyUserJob\nid: 7de32b07-908b-46a6-abba-d0f8c62c2fb1\n', NULL, NULL, NULL, 0, 'user_7de32b07-908b-46a6-abba-d0f8c62c2fb1_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7de32b07-908b-46a6-abba-d0f8c62c2fb1_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7de32b07908b46a6abbad0f8c62c2fb1' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7de32b07908b46a6abbad0f8c62c2fb1' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 1f785a38-84bf-4c9b-81ec-01fc8926c158\n', NULL, NULL, NULL, 0, 'account_user_1f785a38-84bf-4c9b-81ec-01fc8926c158_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 3552b9db-6d68-419c-8a2e-0b9936a52661\n', NULL, NULL, NULL, 0, 'account_user_3552b9db-6d68-419c-8a2e-0b9936a52661_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7de32b07908b46a6abbad0f8c62c2fb1' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7de32b07908b46a6abbad0f8c62c2fb1'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'70710cfa357946bca65e13082c0af2b7' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 70710cfa-3579-46bc-a65e-13082c0af2b7\n', NULL, NULL, NULL, 0, 'account_70710cfa-3579-46bc-a65e-13082c0af2b7_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52')  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'd1eb4fb4caa0493b9b87860096b47567' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyAccountJob\nid: d1eb4fb4-caa0-493b-9b87-860096b47567\n', NULL, NULL, NULL, 0, 'account_d1eb4fb4-caa0-493b-9b87-860096b47567_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'7de32b07908b46a6abbad0f8c62c2fb1'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d1eb4fb4-caa0-493b-9b87-860096b47567_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:52', 'account1@before.destroy', '$2a$04$8/8cYHRkHpR6B/AcS3bggO574327cSHj4p3P/PPR2rqNeCf3J0UJG', NULL, x'f3dea78fe3ab40078f141ca0f0e71f22', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:52') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f3dea78fe3ab40078f141ca0f0e71f22' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:52', 'User', x'539cd977f5f64b7c8af88bee895d0e6d', 'b0a7f0017cc6d724d543a6f6a17bde01', x'f3dea78fe3ab40078f141ca0f0e71f22', 'User', '2012-12-31 12:23:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f3dea78fe3ab40078f141ca0f0e71f22' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:52', x'f5902c6a2adf4223ae3f5d8e54613673', NULL, NULL, NULL, '2012-12-31 12:23:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:52', `updated_at` = '2012-12-31 12:23:52', `subdomain` = 'accountf5902c6a-2adf-4223-ae3f-5d8e54613673' WHERE `accounts`.`id` = x'f5902c6a2adf4223ae3f5d8e54613673' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f5902c6a2adf4223ae3f5d8e54613673' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f5902c6a2adf4223ae3f5d8e54613673', x'8d4a5c3ebc814908a3914423029acb75', x'f3dea78fe3ab40078f141ca0f0e71f22') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8d4a5c3ebc814908a3914423029acb75') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d4a5c3ebc814908a3914423029acb75' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d4a5c3ebc814908a3914423029acb75', x'926d3e5e7e8f4f8aad23a4d154204b44', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8d4a5c3ebc814908a3914423029acb75') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d4a5c3ebc814908a3914423029acb75' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d4a5c3ebc814908a3914423029acb75', x'392aa5ee6b0a4a8ba9f093532e8a5085', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:23:52 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e183d88dc0a_b0d80435d48360a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3dea78fe3ab40078f141ca0f0e71f22' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:23:50', '2012-12-31 12:23:52', 'account2@before.destroy', '$2a$04$HAOH7mOW7mFAyJ5PGy05buENFkHigceTOuyOjelzqfjcU72gcANgq', NULL, x'9c7ed4e997424f7a885f0184bf558c9f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:23:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9c7ed4e997424f7a885f0184bf558c9f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:23:52', 'User', x'f4ee5d9b90b74764969dad5c4d9de7fd', '5e9bf7a92428e7dd8c4cd29e5bd108f8', x'9c7ed4e997424f7a885f0184bf558c9f', 'User', '2012-12-31 12:23:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9c7ed4e997424f7a885f0184bf558c9f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:23:52', x'62a9f3f751a54441a8e7399e4072b30a', NULL, NULL, NULL, '2012-12-31 12:23:52')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:23:52', `updated_at` = '2012-12-31 12:23:52', `subdomain` = 'account62a9f3f7-51a5-4441-a8e7-399e4072b30a' WHERE `accounts`.`id` = x'62a9f3f751a54441a8e7399e4072b30a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'62a9f3f751a54441a8e7399e4072b30a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'62a9f3f751a54441a8e7399e4072b30a', x'1f3b804f363745b78972d2fa6acc9fcf', x'9c7ed4e997424f7a885f0184bf558c9f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1f3b804f363745b78972d2fa6acc9fcf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1f3b804f363745b78972d2fa6acc9fcf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1f3b804f363745b78972d2fa6acc9fcf', x'b190957d42794a6db3e1411a9d822582', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1f3b804f363745b78972d2fa6acc9fcf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1f3b804f363745b78972d2fa6acc9fcf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1f3b804f363745b78972d2fa6acc9fcf', x'6f2e4597f8e049fab9c75f84bcb27435', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.1ms) Sent mail to account2@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:23:52 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e183d8a8ffd_b0d80435d4836122@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f5902c6a2adf4223ae3f5d8e54613673' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f5902c6a2adf4223ae3f5d8e54613673', x'9509a9e558bf49cc80595f0eac9ff25c', x'9c7ed4e997424f7a885f0184bf558c9f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9509a9e558bf49cc80595f0eac9ff25c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9509a9e558bf49cc80595f0eac9ff25c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9509a9e558bf49cc80595f0eac9ff25c', x'9ad3b969cd3d4e9c9c41ae79f4202cb7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9509a9e558bf49cc80595f0eac9ff25c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9509a9e558bf49cc80595f0eac9ff25c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9509a9e558bf49cc80595f0eac9ff25c', x'23ea20e90cdb45fb9607f02cab2b133f', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyUserJob\nid: f3dea78f-e3ab-4007-8f14-1ca0f0e71f22\n', NULL, NULL, NULL, 0, 'user_f3dea78f-e3ab-4007-8f14-1ca0f0e71f22_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_f3dea78f-e3ab-4007-8f14-1ca0f0e71f22_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3dea78fe3ab40078f141ca0f0e71f22' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f3dea78fe3ab40078f141ca0f0e71f22' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:23:52', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 8d4a5c3e-bc81-4908-a391-4423029acb75\n', NULL, NULL, NULL, 0, 'account_user_8d4a5c3e-bc81-4908-a391-4423029acb75_destroy', '2012-12-31 12:23:52', '2012-12-31 12:23:52') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f3dea78fe3ab40078f141ca0f0e71f22' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3dea78fe3ab40078f141ca0f0e71f22'  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'f5902c6a2adf4223ae3f5d8e54613673' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'f3dea78fe3ab40078f141ca0f0e71f22'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f5902c6a-2adf-4223-ae3f-5d8e54613673_destroy' LIMIT 1  (0.9ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.4ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (0.8ms) TRUNCATE TABLE `account_roles`;  (0.8ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (13.7ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:22', 'teste@teste.com', '$2a$04$f8gHAREivetsFu25CotnBezNwqXHE54aiRHZLdthpMwiTp509AWzu', NULL, x'b6936fd61c614ad4866e04a955492d5e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b6936fd61c614ad4866e04a955492d5e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:23', 'User', x'461d7f7f5b54446bb4f28f8814782b74', '05aa15afb975da4ab65a0cb96b122980', x'b6936fd61c614ad4866e04a955492d5e', 'User', '2012-12-31 12:24:23') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b6936fd61c614ad4866e04a955492d5e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:23', x'd3bb992fc5f84e0c829175147cf5d163', NULL, NULL, NULL, '2012-12-31 12:24:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:23', `updated_at` = '2012-12-31 12:24:23', `subdomain` = 'accountd3bb992f-c5f8-4e0c-8291-75147cf5d163' WHERE `accounts`.`id` = x'd3bb992fc5f84e0c829175147cf5d163' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd3bb992fc5f84e0c829175147cf5d163' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd3bb992fc5f84e0c829175147cf5d163', x'8dffe3f8f89b46f68ad90fdcde418e29', x'b6936fd61c614ad4866e04a955492d5e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8dffe3f8f89b46f68ad90fdcde418e29') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8dffe3f8f89b46f68ad90fdcde418e29' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8dffe3f8f89b46f68ad90fdcde418e29', x'd9a3fbf754934350b7a5792958aed746', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8dffe3f8f89b46f68ad90fdcde418e29') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8dffe3f8f89b46f68ad90fdcde418e29' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8dffe3f8f89b46f68ad90fdcde418e29', x'5854883031024a48a3a601d7a747ddc3', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (136ms) Date: Mon, 31 Dec 2012 10:24:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183f798748_b1780435d48697fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:23', 'teste@teste.com', '$2a$04$tYvJZiJcRc6NQCTP2nQpNOEUxtIwzZlD/Yh9DGpT2cGE3cdx7ZOq.', NULL, x'0fa993ac81df4830b5a72bbe32caa777', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:23') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0fa993ac81df4830b5a72bbe32caa777' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:23', 'User', x'5c960085c5cf4ee5a13378ab51d3090c', 'b5bcbb2bd136505b79f4e3ee8b56a5ae', x'0fa993ac81df4830b5a72bbe32caa777', 'User', '2012-12-31 12:24:23') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0fa993ac81df4830b5a72bbe32caa777' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:23', x'cb55232e18f546f48404cbcc6be6f280', NULL, NULL, NULL, '2012-12-31 12:24:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:23', `updated_at` = '2012-12-31 12:24:23', `subdomain` = 'accountcb55232e-18f5-46f4-8404-cbcc6be6f280' WHERE `accounts`.`id` = x'cb55232e18f546f48404cbcc6be6f280' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cb55232e18f546f48404cbcc6be6f280' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cb55232e18f546f48404cbcc6be6f280', x'd8416fb3864e46ca948b204ba87d90de', x'0fa993ac81df4830b5a72bbe32caa777') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd8416fb3864e46ca948b204ba87d90de') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8416fb3864e46ca948b204ba87d90de' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8416fb3864e46ca948b204ba87d90de', x'1f57382599e54611b03356ea0a58a533', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd8416fb3864e46ca948b204ba87d90de') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8416fb3864e46ca948b204ba87d90de' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8416fb3864e46ca948b204ba87d90de', x'5dfec0f4281240b09a2b00d6fca87c7e', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:24:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183f7adce2_b1780435d4869843@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:23', 'teste@teste.com', '$2a$04$UuJZnfrTUDqvGBa8DTjMG.K4b4xCEOFQM/giid.IpMb/.LTggx0dC', NULL, x'd50889d7e3f9463f871faad9c29b9360', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:23') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd50889d7e3f9463f871faad9c29b9360' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:23', 'User', x'0c7a768d755d47d4a07bc8516708581e', '51f384a902a887deedb74e7975764a30', x'd50889d7e3f9463f871faad9c29b9360', 'User', '2012-12-31 12:24:23') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd50889d7e3f9463f871faad9c29b9360' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:23', x'4b60abec603b428994f7a9df13ec230f', NULL, NULL, NULL, '2012-12-31 12:24:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:23', `updated_at` = '2012-12-31 12:24:23', `subdomain` = 'account4b60abec-603b-4289-94f7-a9df13ec230f' WHERE `accounts`.`id` = x'4b60abec603b428994f7a9df13ec230f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4b60abec603b428994f7a9df13ec230f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4b60abec603b428994f7a9df13ec230f', x'e56832df17914c95a13b85d81d4b8359', x'd50889d7e3f9463f871faad9c29b9360') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e56832df17914c95a13b85d81d4b8359') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e56832df17914c95a13b85d81d4b8359' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e56832df17914c95a13b85d81d4b8359', x'3ffea86b3a164ddaa6c7a7216affad4e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e56832df17914c95a13b85d81d4b8359') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e56832df17914c95a13b85d81d4b8359' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e56832df17914c95a13b85d81d4b8359', x'3c9787ba09164d9ca2082298067924ac', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:24:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183f7b9a8c_b1780435d4869932@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:23', 'teste@teste.com', '$2a$04$EfYDMXaQdtADUHcrtxDNv.dCiexxockdEEvocz7JXF7PfY5fRCSUm', NULL, x'9c9866a9139746d5b82b4acca7ed4db4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:23') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9c9866a9139746d5b82b4acca7ed4db4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:23', 'User', x'f01652c66f1b44b0b59560f6ebdece7e', 'f6a60243303f66b70fa4f075f67a2f37', x'9c9866a9139746d5b82b4acca7ed4db4', 'User', '2012-12-31 12:24:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9c9866a9139746d5b82b4acca7ed4db4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:23', x'3b90120fc98b4ace89595ae6ba56e9eb', NULL, NULL, NULL, '2012-12-31 12:24:23')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:23', `updated_at` = '2012-12-31 12:24:23', `subdomain` = 'account3b90120f-c98b-4ace-8959-5ae6ba56e9eb' WHERE `accounts`.`id` = x'3b90120fc98b4ace89595ae6ba56e9eb' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3b90120fc98b4ace89595ae6ba56e9eb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3b90120fc98b4ace89595ae6ba56e9eb', x'54a1b7fd82944aa08921cad2f2012cf8', x'9c9866a9139746d5b82b4acca7ed4db4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'54a1b7fd82944aa08921cad2f2012cf8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'54a1b7fd82944aa08921cad2f2012cf8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'54a1b7fd82944aa08921cad2f2012cf8', x'3cff6dce37624c919592ce1fce890af2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'54a1b7fd82944aa08921cad2f2012cf8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'54a1b7fd82944aa08921cad2f2012cf8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'54a1b7fd82944aa08921cad2f2012cf8', x'df0f8cda84084b3d84020b385025f392', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:24:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183f7c6629_b1780435d4870041@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'9c9866a9139746d5b82b4acca7ed4db4'  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:23', 'teste@teste.com', '$2a$04$4gOFDViEn6fYtmXf9b7ZYO9mR6pxDHYWHFZPLq7fSoPooKONJG4o6', NULL, x'96e4553f45c94b9dbb021a14e3e0829d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:23') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'96e4553f45c94b9dbb021a14e3e0829d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:23', 'User', x'4e19edba52c94ca98e0050ed681afb42', 'def6a853e26284b9780cc9b4a8ee721f', x'96e4553f45c94b9dbb021a14e3e0829d', 'User', '2012-12-31 12:24:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'96e4553f45c94b9dbb021a14e3e0829d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:23', x'15f766130e764c1bac6714d77da891ae', NULL, NULL, NULL, '2012-12-31 12:24:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:23', `updated_at` = '2012-12-31 12:24:23', `subdomain` = 'account15f76613-0e76-4c1b-ac67-14d77da891ae' WHERE `accounts`.`id` = x'15f766130e764c1bac6714d77da891ae' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'15f766130e764c1bac6714d77da891ae' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'15f766130e764c1bac6714d77da891ae', x'17d9d2be155a4abeb2680dcd2da46603', x'96e4553f45c94b9dbb021a14e3e0829d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'17d9d2be155a4abeb2680dcd2da46603') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17d9d2be155a4abeb2680dcd2da46603' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17d9d2be155a4abeb2680dcd2da46603', x'1377fd6083104c358b41220fbb5b11a9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'17d9d2be155a4abeb2680dcd2da46603') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17d9d2be155a4abeb2680dcd2da46603' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17d9d2be155a4abeb2680dcd2da46603', x'7168649a761746d4bd55aeec5d3b5964', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:24:23 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183f7f1481_b1780435d4870136@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:24', 'teste@teste.com', '$2a$04$TZ0L8ql2Ii4hn9twMOGtH.euiJewWBRUS6nTzDjWAkkkytkmTSdla', NULL, x'e26410d1661a4f2787e2aa6a30a92b15', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:24') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e26410d1661a4f2787e2aa6a30a92b15' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:24', 'User', x'8bcd0678c512468a911e75ddbd52be14', '23c9e3b7f2566fb9861713ebaa6b0811', x'e26410d1661a4f2787e2aa6a30a92b15', 'User', '2012-12-31 12:24:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e26410d1661a4f2787e2aa6a30a92b15' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:24', x'57cf0ddc71b8498ebc07102dc4c0f054', NULL, NULL, NULL, '2012-12-31 12:24:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:24', `updated_at` = '2012-12-31 12:24:24', `subdomain` = 'account57cf0ddc-71b8-498e-bc07-102dc4c0f054' WHERE `accounts`.`id` = x'57cf0ddc71b8498ebc07102dc4c0f054' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'57cf0ddc71b8498ebc07102dc4c0f054' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'57cf0ddc71b8498ebc07102dc4c0f054', x'c092619d1c814d50a571ab1adde3ca0b', x'e26410d1661a4f2787e2aa6a30a92b15') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c092619d1c814d50a571ab1adde3ca0b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c092619d1c814d50a571ab1adde3ca0b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c092619d1c814d50a571ab1adde3ca0b', x'c0fc9c33110b47f499c2ec6f929de471', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c092619d1c814d50a571ab1adde3ca0b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c092619d1c814d50a571ab1adde3ca0b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c092619d1c814d50a571ab1adde3ca0b', x'0c6fdbb411c64919866f2fb516271717', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:24:24 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e183f8d065_b1780435d48702c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:24', 'account1@before.destroy', '$2a$04$1K5ZGy/onwfJU/c/KVpH9OLi8tdUxklgT2vNNy.IPdwffkHcwTxc2', NULL, x'd4dd6c4a6cb041cab55c6f4d7d109b31', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:24') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd4dd6c4a6cb041cab55c6f4d7d109b31' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:24', 'User', x'd0e147460f1c4eaf9139ac66440f2658', '7326fe0fa6a5d3dae70752b1fc45e090', x'd4dd6c4a6cb041cab55c6f4d7d109b31', 'User', '2012-12-31 12:24:24') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd4dd6c4a6cb041cab55c6f4d7d109b31' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:24', x'37ee0e480483448db44fe92763e93b93', NULL, NULL, NULL, '2012-12-31 12:24:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:24', `updated_at` = '2012-12-31 12:24:24', `subdomain` = 'account37ee0e48-0483-448d-b44f-e92763e93b93' WHERE `accounts`.`id` = x'37ee0e480483448db44fe92763e93b93' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'37ee0e480483448db44fe92763e93b93' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'37ee0e480483448db44fe92763e93b93', x'004ff4a9128f43d28f47479a07e04244', x'd4dd6c4a6cb041cab55c6f4d7d109b31') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'004ff4a9128f43d28f47479a07e04244') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'004ff4a9128f43d28f47479a07e04244' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'004ff4a9128f43d28f47479a07e04244', x'930787107e4443c38e84a0dc6e960b17', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'004ff4a9128f43d28f47479a07e04244') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'004ff4a9128f43d28f47479a07e04244' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'004ff4a9128f43d28f47479a07e04244', x'0199cdc4d09d4059b88be0e78ff8d508', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:24:24 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e183f818a7c_b1780435d48703f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd4dd6c4a6cb041cab55c6f4d7d109b31' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyUserJob\nid: d4dd6c4a-6cb0-41ca-b55c-6f4d7d109b31\n', NULL, NULL, NULL, 0, 'user_d4dd6c4a-6cb0-41ca-b55c-6f4d7d109b31_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_d4dd6c4a-6cb0-41ca-b55c-6f4d7d109b31_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd4dd6c4a6cb041cab55c6f4d7d109b31' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd4dd6c4a6cb041cab55c6f4d7d109b31' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 004ff4a9-128f-43d2-8f47-479a07e04244\n', NULL, NULL, NULL, 0, 'account_user_004ff4a9-128f-43d2-8f47-479a07e04244_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd4dd6c4a6cb041cab55c6f4d7d109b31' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd4dd6c4a6cb041cab55c6f4d7d109b31'  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'37ee0e480483448db44fe92763e93b93' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 37ee0e48-0483-448d-b44f-e92763e93b93\n', NULL, NULL, NULL, 0, 'account_37ee0e48-0483-448d-b44f-e92763e93b93_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'd4dd6c4a6cb041cab55c6f4d7d109b31'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_37ee0e48-0483-448d-b44f-e92763e93b93_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:24', 'account1@before.destroy', '$2a$04$1xnRDYDyZwe77Tag9im0FOwYqL9M5gLyMdc90VyheUZjDUUl4kd5e', NULL, x'a148239e327f46ef9ad46b4179500dbb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:24') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a148239e327f46ef9ad46b4179500dbb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:24', 'User', x'6e29eda1c46346c8af5b1537f37052ab', '75d4bba965337beb9a7dfa417c7426bc', x'a148239e327f46ef9ad46b4179500dbb', 'User', '2012-12-31 12:24:24') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a148239e327f46ef9ad46b4179500dbb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:24', x'1700b000a78f4ff89a4e700ed0dd86a2', NULL, NULL, NULL, '2012-12-31 12:24:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:24', `updated_at` = '2012-12-31 12:24:24', `subdomain` = 'account1700b000-a78f-4ff8-9a4e-700ed0dd86a2' WHERE `accounts`.`id` = x'1700b000a78f4ff89a4e700ed0dd86a2' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1700b000a78f4ff89a4e700ed0dd86a2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1700b000a78f4ff89a4e700ed0dd86a2', x'46687ace26fa4cf3b98b331f34e4fdda', x'a148239e327f46ef9ad46b4179500dbb') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'46687ace26fa4cf3b98b331f34e4fdda') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'46687ace26fa4cf3b98b331f34e4fdda' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'46687ace26fa4cf3b98b331f34e4fdda', x'3bcd9a01833c4f7ab09af7be5f68c3f5', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'46687ace26fa4cf3b98b331f34e4fdda') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'46687ace26fa4cf3b98b331f34e4fdda' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'46687ace26fa4cf3b98b331f34e4fdda', x'2dabd62954f34e6d97e1f0d1de427f5c', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:24:24 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e183f845adb_b1780435d48704bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:24', x'89e31e28f42042eb89344ff020f431d6', 'jabanilson', NULL, 1, '2012-12-31 12:24:24')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:24:24', `updated_at` = '2012-12-31 12:24:24', `subdomain` = 'account89e31e28-f420-42eb-8934-4ff020f431d6' WHERE `accounts`.`id` = x'89e31e28f42042eb89344ff020f431d6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a148239e327f46ef9ad46b4179500dbb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'89e31e28f42042eb89344ff020f431d6', x'fd49940313954c10952988cf2ccdcf18', x'a148239e327f46ef9ad46b4179500dbb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fd49940313954c10952988cf2ccdcf18') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd49940313954c10952988cf2ccdcf18' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd49940313954c10952988cf2ccdcf18', x'd54b092b81be4afcaf08b584fd95994d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fd49940313954c10952988cf2ccdcf18') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd49940313954c10952988cf2ccdcf18' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd49940313954c10952988cf2ccdcf18', x'c12311a8211a4862a2e82f6833a3dde7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a148239e327f46ef9ad46b4179500dbb' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyUserJob\nid: a148239e-327f-46ef-9ad4-6b4179500dbb\n', NULL, NULL, NULL, 0, 'user_a148239e-327f-46ef-9ad4-6b4179500dbb_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a148239e-327f-46ef-9ad4-6b4179500dbb_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a148239e327f46ef9ad46b4179500dbb' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a148239e327f46ef9ad46b4179500dbb' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 46687ace-26fa-4cf3-b98b-331f34e4fdda\n', NULL, NULL, NULL, 0, 'account_user_46687ace-26fa-4cf3-b98b-331f34e4fdda_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: fd499403-1395-4c10-9529-88cf2ccdcf18\n', NULL, NULL, NULL, 0, 'account_user_fd499403-1395-4c10-9529-88cf2ccdcf18_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'a148239e327f46ef9ad46b4179500dbb' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a148239e327f46ef9ad46b4179500dbb'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'1700b000a78f4ff89a4e700ed0dd86a2' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 1700b000-a78f-4ff8-9a4e-700ed0dd86a2\n', NULL, NULL, NULL, 0, 'account_1700b000-a78f-4ff8-9a4e-700ed0dd86a2_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24')  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'89e31e28f42042eb89344ff020f431d6' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 89e31e28-f420-42eb-8934-4ff020f431d6\n', NULL, NULL, NULL, 0, 'account_89e31e28-f420-42eb-8934-4ff020f431d6_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = x'a148239e327f46ef9ad46b4179500dbb'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_89e31e28-f420-42eb-8934-4ff020f431d6_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:24', 'account1@before.destroy', '$2a$04$CDLDgISITSMh9X.KT..1LOPRmgdTuk3SHN0SbSHBFoH.8Jjcnw37G', NULL, x'9024f9c0795e45c89496738405e5329e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:24') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9024f9c0795e45c89496738405e5329e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:24', 'User', x'614b298282334e1a8fd7d4cb71449898', '2822d676fda9aa1a1c9414ff16a804e8', x'9024f9c0795e45c89496738405e5329e', 'User', '2012-12-31 12:24:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9024f9c0795e45c89496738405e5329e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:24', x'8a494ebd9bc44f38bdd70acf168910a1', NULL, NULL, NULL, '2012-12-31 12:24:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:24', `updated_at` = '2012-12-31 12:24:24', `subdomain` = 'account8a494ebd-9bc4-4f38-bdd7-0acf168910a1' WHERE `accounts`.`id` = x'8a494ebd9bc44f38bdd70acf168910a1' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8a494ebd9bc44f38bdd70acf168910a1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a494ebd9bc44f38bdd70acf168910a1', x'80369e35417944caa470a154e3ea3543', x'9024f9c0795e45c89496738405e5329e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'80369e35417944caa470a154e3ea3543') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'80369e35417944caa470a154e3ea3543' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'80369e35417944caa470a154e3ea3543', x'738f8fd63ee04dbfac411eb7e59dbe4b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'80369e35417944caa470a154e3ea3543') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'80369e35417944caa470a154e3ea3543' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'80369e35417944caa470a154e3ea3543', x'e8ae9b5e31d64c32bf999d9a5122351c', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:24:24 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e183f85d9a8_b1780435d4870556@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9024f9c0795e45c89496738405e5329e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:22', '2012-12-31 12:24:24', 'account2@before.destroy', '$2a$04$HkLbvZTljLucVx8fZZRvbe7xjvWKKZfl3N7Tw81KkcNZidisrb8Uu', NULL, x'6e0b8de46a774e4d8e6378ac05573f1f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:24') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6e0b8de46a774e4d8e6378ac05573f1f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:24', 'User', x'3e18281a9d3c4ca3b44edd26c9524f0e', '6a45984dcdf1a0bf5518880517ddc1b6', x'6e0b8de46a774e4d8e6378ac05573f1f', 'User', '2012-12-31 12:24:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6e0b8de46a774e4d8e6378ac05573f1f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:24', x'940209c1fe994b1282242b1e240c620d', NULL, NULL, NULL, '2012-12-31 12:24:24')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:24', `updated_at` = '2012-12-31 12:24:24', `subdomain` = 'account940209c1-fe99-4b12-8224-2b1e240c620d' WHERE `accounts`.`id` = x'940209c1fe994b1282242b1e240c620d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'940209c1fe994b1282242b1e240c620d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'940209c1fe994b1282242b1e240c620d', x'6152de78006d435ba48c6a36fbf2a323', x'6e0b8de46a774e4d8e6378ac05573f1f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6152de78006d435ba48c6a36fbf2a323') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6152de78006d435ba48c6a36fbf2a323' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6152de78006d435ba48c6a36fbf2a323', x'8bc85902a9264a019a6ef29de4a47473', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6152de78006d435ba48c6a36fbf2a323') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6152de78006d435ba48c6a36fbf2a323' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6152de78006d435ba48c6a36fbf2a323', x'c1d60429752841268d6fa84c43c3ba53', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:24:24 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e183f878764_b1780435d48706ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8a494ebd9bc44f38bdd70acf168910a1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a494ebd9bc44f38bdd70acf168910a1', x'ae7f9058edfd4384a98d3a6ac0099267', x'6e0b8de46a774e4d8e6378ac05573f1f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ae7f9058edfd4384a98d3a6ac0099267') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae7f9058edfd4384a98d3a6ac0099267' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae7f9058edfd4384a98d3a6ac0099267', x'e345b3b2384b43a096e5fce277e74f8f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ae7f9058edfd4384a98d3a6ac0099267') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae7f9058edfd4384a98d3a6ac0099267' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae7f9058edfd4384a98d3a6ac0099267', x'adf061e5ea7f4cbeb5dd5951d03b6325', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyUserJob\nid: 9024f9c0-795e-45c8-9496-738405e5329e\n', NULL, NULL, NULL, 0, 'user_9024f9c0-795e-45c8-9496-738405e5329e_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_9024f9c0-795e-45c8-9496-738405e5329e_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9024f9c0795e45c89496738405e5329e' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9024f9c0795e45c89496738405e5329e' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:24', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 80369e35-4179-44ca-a470-a154e3ea3543\n', NULL, NULL, NULL, 0, 'account_user_80369e35-4179-44ca-a470-a154e3ea3543_destroy', '2012-12-31 12:24:24', '2012-12-31 12:24:24') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'9024f9c0795e45c89496738405e5329e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9024f9c0795e45c89496738405e5329e'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'8a494ebd9bc44f38bdd70acf168910a1' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'9024f9c0795e45c89496738405e5329e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8a494ebd-9bc4-4f38-bdd7-0acf168910a1_destroy' LIMIT 1  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (12.2ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.7ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:42', 'teste@teste.com', '$2a$04$LP7XfF1npd9c1dxDUgUXE.9wBYRF9inYofWccpmr3jP5d1X7iQ4EG', NULL, x'b7353146a3774a5cbdb9f821afcf0d88', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:42') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b7353146a3774a5cbdb9f821afcf0d88' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:42', 'User', x'f6e5f4ee4bd3451b92a53cb47b11a1e5', '5c2e5098413a92e35c0a689c743156a0', x'b7353146a3774a5cbdb9f821afcf0d88', 'User', '2012-12-31 12:24:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b7353146a3774a5cbdb9f821afcf0d88' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:42', x'88ad857ed9c248a5b0db4e24571d9943', NULL, NULL, NULL, '2012-12-31 12:24:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:42', `updated_at` = '2012-12-31 12:24:42', `subdomain` = 'account88ad857e-d9c2-48a5-b0db-4e24571d9943' WHERE `accounts`.`id` = x'88ad857ed9c248a5b0db4e24571d9943' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'88ad857ed9c248a5b0db4e24571d9943' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'88ad857ed9c248a5b0db4e24571d9943', x'fb897bf0dc5f45a6b42a5ebc5201562c', x'b7353146a3774a5cbdb9f821afcf0d88') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fb897bf0dc5f45a6b42a5ebc5201562c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb897bf0dc5f45a6b42a5ebc5201562c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb897bf0dc5f45a6b42a5ebc5201562c', x'6124718e248747618faaf915a6c1ef1c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fb897bf0dc5f45a6b42a5ebc5201562c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb897bf0dc5f45a6b42a5ebc5201562c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb897bf0dc5f45a6b42a5ebc5201562c', x'6e2c6b920dfd49c39574f958621d5b28', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.2ms) Sent mail to teste@teste.com (138ms) Date: Mon, 31 Dec 2012 10:24:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1840ab758a_b2180435d48540c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:42', 'teste@teste.com', '$2a$04$oQpG3WzBWandDZ.9PcSdGe7Ec517ovv1UoxfaHp1Kmg1BgJqYEhW.', NULL, x'a6516250cbfb44e38da6384e9cf88d6d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:42') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a6516250cbfb44e38da6384e9cf88d6d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:42', 'User', x'b683944a045b417c876036a0f2348c82', 'e6dc52be4deb6068f4c7d24aa7172c0c', x'a6516250cbfb44e38da6384e9cf88d6d', 'User', '2012-12-31 12:24:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a6516250cbfb44e38da6384e9cf88d6d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:42', x'9fc7201f8ea14039874b177dcdd9979a', NULL, NULL, NULL, '2012-12-31 12:24:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:42', `updated_at` = '2012-12-31 12:24:42', `subdomain` = 'account9fc7201f-8ea1-4039-874b-177dcdd9979a' WHERE `accounts`.`id` = x'9fc7201f8ea14039874b177dcdd9979a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9fc7201f8ea14039874b177dcdd9979a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9fc7201f8ea14039874b177dcdd9979a', x'201c540f17a240b68f1cbcf045c4760a', x'a6516250cbfb44e38da6384e9cf88d6d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'201c540f17a240b68f1cbcf045c4760a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'201c540f17a240b68f1cbcf045c4760a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'201c540f17a240b68f1cbcf045c4760a', x'32842654dcf2412f9860ae89e0c7d170', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'201c540f17a240b68f1cbcf045c4760a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'201c540f17a240b68f1cbcf045c4760a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'201c540f17a240b68f1cbcf045c4760a', x'ec9b1cdd003d4342a246fc578ef10af5', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:24:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1840acc432_b2180435d4854176@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:42', 'teste@teste.com', '$2a$04$RKyDmo.v1zzwvtgv9LQ/J.CHz3HMAfz2IMbgGWo0vbun6bOX4mNWq', NULL, x'd7f4c71095684de1a7b02335a017dc70', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd7f4c71095684de1a7b02335a017dc70' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:42', 'User', x'0f65d65d7e3d43c089a1c44c31e51f88', 'e1d124f79b885f72d8edd12d596bc197', x'd7f4c71095684de1a7b02335a017dc70', 'User', '2012-12-31 12:24:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd7f4c71095684de1a7b02335a017dc70' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:42', x'4f7c6414d7224fa2b57d3d3d8d9e13ca', NULL, NULL, NULL, '2012-12-31 12:24:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:42', `updated_at` = '2012-12-31 12:24:42', `subdomain` = 'account4f7c6414-d722-4fa2-b57d-3d3d8d9e13ca' WHERE `accounts`.`id` = x'4f7c6414d7224fa2b57d3d3d8d9e13ca' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f7c6414d7224fa2b57d3d3d8d9e13ca' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4f7c6414d7224fa2b57d3d3d8d9e13ca', x'ff13debdf9a24d68aed237c45168a88d', x'd7f4c71095684de1a7b02335a017dc70') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ff13debdf9a24d68aed237c45168a88d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff13debdf9a24d68aed237c45168a88d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff13debdf9a24d68aed237c45168a88d', x'5b16f96748b84477977995e4e41e761f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ff13debdf9a24d68aed237c45168a88d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff13debdf9a24d68aed237c45168a88d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff13debdf9a24d68aed237c45168a88d', x'786ddc0900274f15a31d4153e0241899', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:24:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1840ad83e3_b2180435d4854251@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:42', 'teste@teste.com', '$2a$04$zZe4A5eLXcjtMxf3QKIayuxkNjfrAPLZQhQaOF8jybvq5Ab/nKiuu', NULL, x'5b282cc585c24254b0327c9b2bbdc5a6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:42') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5b282cc585c24254b0327c9b2bbdc5a6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:42', 'User', x'327b7f7599ee4346abd0a0554df2eb46', '6e9303f14d95c4daa7c833f7fe509638', x'5b282cc585c24254b0327c9b2bbdc5a6', 'User', '2012-12-31 12:24:42') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5b282cc585c24254b0327c9b2bbdc5a6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:42', x'7eb801149d3b4b7fb907b737510f3190', NULL, NULL, NULL, '2012-12-31 12:24:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:42', `updated_at` = '2012-12-31 12:24:42', `subdomain` = 'account7eb80114-9d3b-4b7f-b907-b737510f3190' WHERE `accounts`.`id` = x'7eb801149d3b4b7fb907b737510f3190' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7eb801149d3b4b7fb907b737510f3190' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7eb801149d3b4b7fb907b737510f3190', x'2489641bdcc5414291a8fdaf1c39a232', x'5b282cc585c24254b0327c9b2bbdc5a6') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2489641bdcc5414291a8fdaf1c39a232') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2489641bdcc5414291a8fdaf1c39a232' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2489641bdcc5414291a8fdaf1c39a232', x'927b6d7eb9d8439e8968731965bca738', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2489641bdcc5414291a8fdaf1c39a232') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2489641bdcc5414291a8fdaf1c39a232' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2489641bdcc5414291a8fdaf1c39a232', x'6c87b3c32ed34cb6b0d58eaf7ea4a108', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:24:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1840ae491f_b2180435d485435c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5b282cc585c24254b0327c9b2bbdc5a6'  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:43', 'teste@teste.com', '$2a$04$n2w8MwrF2QgCpXrRA8UHquK2zhuYGAWFZoFSNLQ/aLP4Qu5axrOZS', NULL, x'4b5e6b824e43441d93b88f25261f3c97', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:43') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4b5e6b824e43441d93b88f25261f3c97' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:43', 'User', x'b5729778b9944dbb8de6274119998432', '89b9c092c62b2c64181bb44f44d2f97a', x'4b5e6b824e43441d93b88f25261f3c97', 'User', '2012-12-31 12:24:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4b5e6b824e43441d93b88f25261f3c97' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:43', x'70159cf0285646b9bfaea29b1f165c22', NULL, NULL, NULL, '2012-12-31 12:24:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:43', `updated_at` = '2012-12-31 12:24:43', `subdomain` = 'account70159cf0-2856-46b9-bfae-a29b1f165c22' WHERE `accounts`.`id` = x'70159cf0285646b9bfaea29b1f165c22' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'70159cf0285646b9bfaea29b1f165c22' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'70159cf0285646b9bfaea29b1f165c22', x'5810cabac8be4baca3bacc63f76780f5', x'4b5e6b824e43441d93b88f25261f3c97') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5810cabac8be4baca3bacc63f76780f5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5810cabac8be4baca3bacc63f76780f5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5810cabac8be4baca3bacc63f76780f5', x'bd337e2356a043a3b461a69b6cbd0652', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5810cabac8be4baca3bacc63f76780f5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5810cabac8be4baca3bacc63f76780f5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5810cabac8be4baca3bacc63f76780f5', x'b49417d9c0ca418793a73c84d8149ad6', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:24:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1840b1b75e_b2180435d48544b7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:43', 'teste@teste.com', '$2a$04$vJBnMOR1PDOozGuINsMjN.fAlLFTdl6S2lGv9dzWKkiPcqaWTlzPa', NULL, x'fbe29622c6514597873641198ce89ff7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:43') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fbe29622c6514597873641198ce89ff7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:43', 'User', x'07550f2d91f84a37ad843e36f8256866', 'dafa75b81e571ca23cf84e901f736b52', x'fbe29622c6514597873641198ce89ff7', 'User', '2012-12-31 12:24:43') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fbe29622c6514597873641198ce89ff7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:43', x'2f08b070548b45cdb2f7e9a1ff9e0e15', NULL, NULL, NULL, '2012-12-31 12:24:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:43', `updated_at` = '2012-12-31 12:24:43', `subdomain` = 'account2f08b070-548b-45cd-b2f7-e9a1ff9e0e15' WHERE `accounts`.`id` = x'2f08b070548b45cdb2f7e9a1ff9e0e15' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2f08b070548b45cdb2f7e9a1ff9e0e15' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2f08b070548b45cdb2f7e9a1ff9e0e15', x'44588d2c7d034c91b8b669a2021b0ae4', x'fbe29622c6514597873641198ce89ff7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'44588d2c7d034c91b8b669a2021b0ae4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44588d2c7d034c91b8b669a2021b0ae4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44588d2c7d034c91b8b669a2021b0ae4', x'fb2e21c0b702419a90260a6942ab4697', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'44588d2c7d034c91b8b669a2021b0ae4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44588d2c7d034c91b8b669a2021b0ae4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44588d2c7d034c91b8b669a2021b0ae4', x'80ac94ce56c947de87f786c30ab3315a', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:24:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1840b2ba24_b2180435d4854561@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:43', 'account1@before.destroy', '$2a$04$DeQqW/JnC2oJZskO6uFVtOtVTo6M4cGJRJXzaxN8jWLuIJu6xkm7i', NULL, x'adbcc6c12299456bb2beea9bb246ecd8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'adbcc6c12299456bb2beea9bb246ecd8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:43', 'User', x'629549022ea147fa853bb50d90b9be7e', '3752d3a28dce18076ba02a279396e485', x'adbcc6c12299456bb2beea9bb246ecd8', 'User', '2012-12-31 12:24:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'adbcc6c12299456bb2beea9bb246ecd8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:43', x'4aaa44d0d04141d2a2458aa9183ed891', NULL, NULL, NULL, '2012-12-31 12:24:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:43', `updated_at` = '2012-12-31 12:24:43', `subdomain` = 'account4aaa44d0-d041-41d2-a245-8aa9183ed891' WHERE `accounts`.`id` = x'4aaa44d0d04141d2a2458aa9183ed891' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4aaa44d0d04141d2a2458aa9183ed891' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4aaa44d0d04141d2a2458aa9183ed891', x'8af09b02536b4c11bd4614fa843d4660', x'adbcc6c12299456bb2beea9bb246ecd8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8af09b02536b4c11bd4614fa843d4660') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8af09b02536b4c11bd4614fa843d4660' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8af09b02536b4c11bd4614fa843d4660', x'52231dbf1d404f829dc19407b6182006', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8af09b02536b4c11bd4614fa843d4660') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8af09b02536b4c11bd4614fa843d4660' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8af09b02536b4c11bd4614fa843d4660', x'6adcefe80fea45a3b9276ee915c03b8f', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:24:43 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1840b37a36_b2180435d485463c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'adbcc6c12299456bb2beea9bb246ecd8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyUserJob\nid: adbcc6c1-2299-456b-b2be-ea9bb246ecd8\n', NULL, NULL, NULL, 0, 'user_adbcc6c1-2299-456b-b2be-ea9bb246ecd8_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_adbcc6c1-2299-456b-b2be-ea9bb246ecd8_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'adbcc6c12299456bb2beea9bb246ecd8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'adbcc6c12299456bb2beea9bb246ecd8' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 8af09b02-536b-4c11-bd46-14fa843d4660\n', NULL, NULL, NULL, 0, 'account_user_8af09b02-536b-4c11-bd46-14fa843d4660_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'adbcc6c12299456bb2beea9bb246ecd8' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'adbcc6c12299456bb2beea9bb246ecd8'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'4aaa44d0d04141d2a2458aa9183ed891' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 4aaa44d0-d041-41d2-a245-8aa9183ed891\n', NULL, NULL, NULL, 0, 'account_4aaa44d0-d041-41d2-a245-8aa9183ed891_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'adbcc6c12299456bb2beea9bb246ecd8'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4aaa44d0-d041-41d2-a245-8aa9183ed891_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:43', 'account1@before.destroy', '$2a$04$mr1LDr592LjuoEUpaz4cnezFwsjPnliE17qON.zoKU.5LRiYGaRUq', NULL, x'd31c5c5dc9c74492a91618487f4b5989', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd31c5c5dc9c74492a91618487f4b5989' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:43', 'User', x'c2abb6d053fe4cfaa20d38fd2986b726', '2a172dc0c0b7c33b715e4c4ae119323d', x'd31c5c5dc9c74492a91618487f4b5989', 'User', '2012-12-31 12:24:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd31c5c5dc9c74492a91618487f4b5989' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:43', x'26c68118793b4f61ac18a815737c2e83', NULL, NULL, NULL, '2012-12-31 12:24:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:43', `updated_at` = '2012-12-31 12:24:43', `subdomain` = 'account26c68118-793b-4f61-ac18-a815737c2e83' WHERE `accounts`.`id` = x'26c68118793b4f61ac18a815737c2e83' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'26c68118793b4f61ac18a815737c2e83' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'26c68118793b4f61ac18a815737c2e83', x'9d5c57d193ee48fcb9b85e2d17738729', x'd31c5c5dc9c74492a91618487f4b5989') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9d5c57d193ee48fcb9b85e2d17738729') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d5c57d193ee48fcb9b85e2d17738729' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d5c57d193ee48fcb9b85e2d17738729', x'40a988f3fbf74db88b051d135bae433d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9d5c57d193ee48fcb9b85e2d17738729') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d5c57d193ee48fcb9b85e2d17738729' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d5c57d193ee48fcb9b85e2d17738729', x'91985b849efe4937b9d7a9a89f420727', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:24:43 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1840b69f54_b2180435d4854759@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:43', x'a87f649460894143829d3492adb1f3a3', 'jabanilson', NULL, 1, '2012-12-31 12:24:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:24:43', `updated_at` = '2012-12-31 12:24:43', `subdomain` = 'accounta87f6494-6089-4143-829d-3492adb1f3a3' WHERE `accounts`.`id` = x'a87f649460894143829d3492adb1f3a3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd31c5c5dc9c74492a91618487f4b5989' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a87f649460894143829d3492adb1f3a3', x'742a14bbff624e7abacac22fe39e2a65', x'd31c5c5dc9c74492a91618487f4b5989') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'742a14bbff624e7abacac22fe39e2a65') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'742a14bbff624e7abacac22fe39e2a65' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'742a14bbff624e7abacac22fe39e2a65', x'7eb971946ab74d39ac24bd7f87e9573d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'742a14bbff624e7abacac22fe39e2a65') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'742a14bbff624e7abacac22fe39e2a65' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'742a14bbff624e7abacac22fe39e2a65', x'95b20aa9b64345b19294d31c93c91ff9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd31c5c5dc9c74492a91618487f4b5989' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyUserJob\nid: d31c5c5d-c9c7-4492-a916-18487f4b5989\n', NULL, NULL, NULL, 0, 'user_d31c5c5d-c9c7-4492-a916-18487f4b5989_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_d31c5c5d-c9c7-4492-a916-18487f4b5989_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd31c5c5dc9c74492a91618487f4b5989' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd31c5c5dc9c74492a91618487f4b5989' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 742a14bb-ff62-4e7a-baca-c22fe39e2a65\n', NULL, NULL, NULL, 0, 'account_user_742a14bb-ff62-4e7a-baca-c22fe39e2a65_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 9d5c57d1-93ee-48fc-b9b8-5e2d17738729\n', NULL, NULL, NULL, 0, 'account_user_9d5c57d1-93ee-48fc-b9b8-5e2d17738729_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd31c5c5dc9c74492a91618487f4b5989' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd31c5c5dc9c74492a91618487f4b5989'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'a87f649460894143829d3492adb1f3a3' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyAccountJob\nid: a87f6494-6089-4143-829d-3492adb1f3a3\n', NULL, NULL, NULL, 0, 'account_a87f6494-6089-4143-829d-3492adb1f3a3_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43')  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'26c68118793b4f61ac18a815737c2e83' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 26c68118-793b-4f61-ac18-a815737c2e83\n', NULL, NULL, NULL, 0, 'account_26c68118-793b-4f61-ac18-a815737c2e83_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = x'd31c5c5dc9c74492a91618487f4b5989'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a87f6494-6089-4143-829d-3492adb1f3a3_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:43', 'account1@before.destroy', '$2a$04$Iac4D2EpaPXAB.y34MnaFuDyoE5vR7t04hnRYQHhFmaK7zbVE.xT.', NULL, x'8ae6a943cd804ffaa115adacf5285464', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:43') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8ae6a943cd804ffaa115adacf5285464' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:43', 'User', x'25dfc64ab0614f0fa550614878ba7860', '591524f9067821ca88d85c893e3526f5', x'8ae6a943cd804ffaa115adacf5285464', 'User', '2012-12-31 12:24:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8ae6a943cd804ffaa115adacf5285464' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:43', x'374fec90cdb54b7a84bfadf9f354a4c9', NULL, NULL, NULL, '2012-12-31 12:24:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:43', `updated_at` = '2012-12-31 12:24:43', `subdomain` = 'account374fec90-cdb5-4b7a-84bf-adf9f354a4c9' WHERE `accounts`.`id` = x'374fec90cdb54b7a84bfadf9f354a4c9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'374fec90cdb54b7a84bfadf9f354a4c9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'374fec90cdb54b7a84bfadf9f354a4c9', x'c0a849868408490099e5b5ccbc2c3e6e', x'8ae6a943cd804ffaa115adacf5285464') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c0a849868408490099e5b5ccbc2c3e6e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0a849868408490099e5b5ccbc2c3e6e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0a849868408490099e5b5ccbc2c3e6e', x'd86f79f6f30a47599b059a08ef8f297f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c0a849868408490099e5b5ccbc2c3e6e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0a849868408490099e5b5ccbc2c3e6e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0a849868408490099e5b5ccbc2c3e6e', x'2ad2ddd59f4b4814823f14a610a2dcdf', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:24:43 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1840b82007_b2180435d485483a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ae6a943cd804ffaa115adacf5285464' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:41', '2012-12-31 12:24:43', 'account2@before.destroy', '$2a$04$HBSvZdecFnNzCywaJ4kfbOUYf14h1h4Bd8rjeOleiDyEbnUBafEQG', NULL, x'149e267b6ee84bb0a53368b8e0ab3e0c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:24:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'149e267b6ee84bb0a53368b8e0ab3e0c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:43', 'User', x'4d804d05c8e44f799a9050fcb215dc77', '0f8319424405da791ecdc4b55ea19377', x'149e267b6ee84bb0a53368b8e0ab3e0c', 'User', '2012-12-31 12:24:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'149e267b6ee84bb0a53368b8e0ab3e0c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:43', x'83306551a5fb401d81540982fea26713', NULL, NULL, NULL, '2012-12-31 12:24:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:43', `updated_at` = '2012-12-31 12:24:43', `subdomain` = 'account83306551-a5fb-401d-8154-0982fea26713' WHERE `accounts`.`id` = x'83306551a5fb401d81540982fea26713' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'83306551a5fb401d81540982fea26713' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'83306551a5fb401d81540982fea26713', x'f04492e427a643c8ab3cb276aaee3708', x'149e267b6ee84bb0a53368b8e0ab3e0c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f04492e427a643c8ab3cb276aaee3708') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f04492e427a643c8ab3cb276aaee3708' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f04492e427a643c8ab3cb276aaee3708', x'13f54237797e45e8b13a74716ead2c84', 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f04492e427a643c8ab3cb276aaee3708') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f04492e427a643c8ab3cb276aaee3708' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f04492e427a643c8ab3cb276aaee3708', x'be9e9dbb3df742fa80ae0a91dbd822fc', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:24:43 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e1840b9d146_b2180435d4854931@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'374fec90cdb54b7a84bfadf9f354a4c9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'374fec90cdb54b7a84bfadf9f354a4c9', x'ff6d60d37dde44d398c848178c8f8eaf', x'149e267b6ee84bb0a53368b8e0ab3e0c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ff6d60d37dde44d398c848178c8f8eaf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff6d60d37dde44d398c848178c8f8eaf' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff6d60d37dde44d398c848178c8f8eaf', x'168efc6f262c4b9cb1449c32e761e100', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ff6d60d37dde44d398c848178c8f8eaf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff6d60d37dde44d398c848178c8f8eaf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff6d60d37dde44d398c848178c8f8eaf', x'5efbf4bb670c41eabbe2bcaf74b752e0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyUserJob\nid: 8ae6a943-cd80-4ffa-a115-adacf5285464\n', NULL, NULL, NULL, 0, 'user_8ae6a943-cd80-4ffa-a115-adacf5285464_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8ae6a943-cd80-4ffa-a115-adacf5285464_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8ae6a943cd804ffaa115adacf5285464' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8ae6a943cd804ffaa115adacf5285464' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:24:43', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: c0a84986-8408-4900-99e5-b5ccbc2c3e6e\n', NULL, NULL, NULL, 0, 'account_user_c0a84986-8408-4900-99e5-b5ccbc2c3e6e_destroy', '2012-12-31 12:24:43', '2012-12-31 12:24:43') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8ae6a943cd804ffaa115adacf5285464' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ae6a943cd804ffaa115adacf5285464'  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'374fec90cdb54b7a84bfadf9f354a4c9' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'8ae6a943cd804ffaa115adacf5285464'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_374fec90-cdb5-4b7a-84bf-adf9f354a4c9_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:24:43', '2012-12-31 12:24:43', '', '', 1, x'24bb8ef5ffdf415291636a8c5521079f', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:24:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'24bb8ef5ffdf415291636a8c5521079f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:24:43', 'User', x'7bbeb5d2132b467e853f1cb463a3c1d3', 'd14b3364faf97dd601d9c45c9280c817', x'24bb8ef5ffdf415291636a8c5521079f', 'User', '2012-12-31 12:24:43') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'24bb8ef5ffdf415291636a8c5521079f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:24:43', x'3b915a86c5bf485daafb1e095af10c19', NULL, NULL, NULL, '2012-12-31 12:24:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:24:43', `updated_at` = '2012-12-31 12:24:43', `subdomain` = 'account3b915a86-c5bf-485d-aafb-1e095af10c19' WHERE `accounts`.`id` = x'3b915a86c5bf485daafb1e095af10c19' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3b915a86c5bf485daafb1e095af10c19' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3b915a86c5bf485daafb1e095af10c19', x'cc52aad367c04c16a2a88d90e907b493', x'24bb8ef5ffdf415291636a8c5521079f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cc52aad367c04c16a2a88d90e907b493') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc52aad367c04c16a2a88d90e907b493' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc52aad367c04c16a2a88d90e907b493', x'17aa2d5cf9f94cb89129e7fef814dca5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cc52aad367c04c16a2a88d90e907b493') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc52aad367c04c16a2a88d90e907b493' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc52aad367c04c16a2a88d90e907b493', x'ab43cc6bc18c4cbc8965463804b95f55', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (13.7ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.8ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:10', 'teste@teste.com', '$2a$04$3neJqdYZkwlw/XncZq8uT..4.3JR0IKUzLig0tmVV6M5UkSEhmf/i', NULL, x'31048429d007419ca30978ccb5812a17', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'31048429d007419ca30978ccb5812a17' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:10', 'User', x'07ed6c1f59ab404f959114ef4ed804b4', '86bc418bfcb81b5d9e2fb856a690bead', x'31048429d007419ca30978ccb5812a17', 'User', '2012-12-31 12:25:10') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'31048429d007419ca30978ccb5812a17' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:11', x'c40f5d59f6614119b2429477600027c1', NULL, NULL, NULL, '2012-12-31 12:25:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:11', `updated_at` = '2012-12-31 12:25:11', `subdomain` = 'accountc40f5d59-f661-4119-b242-9477600027c1' WHERE `accounts`.`id` = x'c40f5d59f6614119b2429477600027c1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c40f5d59f6614119b2429477600027c1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c40f5d59f6614119b2429477600027c1', x'4e79c9bdaaf748a1819a4108a19c7f70', x'31048429d007419ca30978ccb5812a17') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4e79c9bdaaf748a1819a4108a19c7f70') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e79c9bdaaf748a1819a4108a19c7f70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e79c9bdaaf748a1819a4108a19c7f70', x'c5a35384f3164493a6584f22d584f5ad', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4e79c9bdaaf748a1819a4108a19c7f70') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e79c9bdaaf748a1819a4108a19c7f70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e79c9bdaaf748a1819a4108a19c7f70', x'2a5f1269c9ac4c249fcd3489f7ba68f1', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (137ms) Date: Mon, 31 Dec 2012 10:25:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1842783591_b2c80435d48527f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:11', 'teste@teste.com', '$2a$04$iK4poGMXJHbLGA52TQUAGe5SH4dXz7G4u1pTPYjWvf1mE0oTIdr9q', NULL, x'9a95871aaa4f489c9afce0d73a149a4b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9a95871aaa4f489c9afce0d73a149a4b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:11', 'User', x'ca136e7f83874a5fbcce88744ede0825', '4f79533a9707b131c684a6d387fc8d1a', x'9a95871aaa4f489c9afce0d73a149a4b', 'User', '2012-12-31 12:25:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9a95871aaa4f489c9afce0d73a149a4b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:11', x'92d37ed9d721494fb34cf9fad0f13b96', NULL, NULL, NULL, '2012-12-31 12:25:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:11', `updated_at` = '2012-12-31 12:25:11', `subdomain` = 'account92d37ed9-d721-494f-b34c-f9fad0f13b96' WHERE `accounts`.`id` = x'92d37ed9d721494fb34cf9fad0f13b96' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'92d37ed9d721494fb34cf9fad0f13b96' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'92d37ed9d721494fb34cf9fad0f13b96', x'79f0e1f5a5a044489377ea4c8080ca82', x'9a95871aaa4f489c9afce0d73a149a4b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'79f0e1f5a5a044489377ea4c8080ca82') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'79f0e1f5a5a044489377ea4c8080ca82' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'79f0e1f5a5a044489377ea4c8080ca82', x'99ab395ae27a4841aae970208f6eb658', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'79f0e1f5a5a044489377ea4c8080ca82') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'79f0e1f5a5a044489377ea4c8080ca82' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'79f0e1f5a5a044489377ea4c8080ca82', x'9d83afb360cf4a1fbc501ae5728179e2', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:25:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1842797f8a_b2c80435d48528f2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:11', 'teste@teste.com', '$2a$04$j5N1i1II2qtcZ.K9zqw4ZOXVKxswEbyxm0vZiQEbig0axhBwfZvI2', NULL, x'35cea2e3377b4a8f86890d5992f462bf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:11') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'35cea2e3377b4a8f86890d5992f462bf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:11', 'User', x'ebdf2a56f0794c0396e849184679d207', '9f516245b241a3e087f14cc9535bd1d4', x'35cea2e3377b4a8f86890d5992f462bf', 'User', '2012-12-31 12:25:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'35cea2e3377b4a8f86890d5992f462bf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:11', x'230c60175f214532b65b51d7d1d6b435', NULL, NULL, NULL, '2012-12-31 12:25:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:11', `updated_at` = '2012-12-31 12:25:11', `subdomain` = 'account230c6017-5f21-4532-b65b-51d7d1d6b435' WHERE `accounts`.`id` = x'230c60175f214532b65b51d7d1d6b435' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'230c60175f214532b65b51d7d1d6b435' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'230c60175f214532b65b51d7d1d6b435', x'bbac93791ccc4fccb76496373f0e74e0', x'35cea2e3377b4a8f86890d5992f462bf') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bbac93791ccc4fccb76496373f0e74e0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbac93791ccc4fccb76496373f0e74e0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbac93791ccc4fccb76496373f0e74e0', x'4daa3436920d4c128bcb325fe5b26b1d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bbac93791ccc4fccb76496373f0e74e0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbac93791ccc4fccb76496373f0e74e0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbac93791ccc4fccb76496373f0e74e0', x'41adca5684c54fe18fad7bed41f781ac', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:25:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18427a400c_b2c80435d48529e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:11', 'teste@teste.com', '$2a$04$hABcZ2h0OB9TDtouHvAsaO0TeuovUyNHSNJuZo1XOK43FHz8RfWLO', NULL, x'f19fcf03eb234e7290e8207a4bf96418', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f19fcf03eb234e7290e8207a4bf96418' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:11', 'User', x'd2ba8356671c47cea6215faa435635b0', 'ab83c1d67b8833d329e52f8e8bb03cf2', x'f19fcf03eb234e7290e8207a4bf96418', 'User', '2012-12-31 12:25:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f19fcf03eb234e7290e8207a4bf96418' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:11', x'2a808ca57ea748fcb6889915207f590b', NULL, NULL, NULL, '2012-12-31 12:25:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:11', `updated_at` = '2012-12-31 12:25:11', `subdomain` = 'account2a808ca5-7ea7-48fc-b688-9915207f590b' WHERE `accounts`.`id` = x'2a808ca57ea748fcb6889915207f590b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2a808ca57ea748fcb6889915207f590b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2a808ca57ea748fcb6889915207f590b', x'582dca0f3afb4be38f6c783d662517ee', x'f19fcf03eb234e7290e8207a4bf96418') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'582dca0f3afb4be38f6c783d662517ee') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'582dca0f3afb4be38f6c783d662517ee' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'582dca0f3afb4be38f6c783d662517ee', x'b50abc8f9c084535b770905f20c48bfc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'582dca0f3afb4be38f6c783d662517ee') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'582dca0f3afb4be38f6c783d662517ee' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'582dca0f3afb4be38f6c783d662517ee', x'50b0f538ef5f4f73a3183ca94155ade9', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:25:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18427b0c89_b2c80435d485303d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f19fcf03eb234e7290e8207a4bf96418'  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:11', 'teste@teste.com', '$2a$04$ubgS5o3vkqfTgitAuDtdOOTp2lYz9.SlLlaNX7e321E5wOKR.moCq', NULL, x'eda7b443164c4cf697ea249564275d55', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'eda7b443164c4cf697ea249564275d55' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:11', 'User', x'020f642490534960ac811d864865eb52', '5355ba9905133e956879c4a338535369', x'eda7b443164c4cf697ea249564275d55', 'User', '2012-12-31 12:25:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'eda7b443164c4cf697ea249564275d55' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:11', x'bfd28d8f68fe40d99f642d7ee5bcbe3e', NULL, NULL, NULL, '2012-12-31 12:25:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:11', `updated_at` = '2012-12-31 12:25:11', `subdomain` = 'accountbfd28d8f-68fe-40d9-9f64-2d7ee5bcbe3e' WHERE `accounts`.`id` = x'bfd28d8f68fe40d99f642d7ee5bcbe3e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bfd28d8f68fe40d99f642d7ee5bcbe3e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bfd28d8f68fe40d99f642d7ee5bcbe3e', x'd87b87bb5b78439d9b6e82b9f9e664c4', x'eda7b443164c4cf697ea249564275d55') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd87b87bb5b78439d9b6e82b9f9e664c4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd87b87bb5b78439d9b6e82b9f9e664c4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd87b87bb5b78439d9b6e82b9f9e664c4', x'a2aa23336a96454e98eab66fd6dacc62', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd87b87bb5b78439d9b6e82b9f9e664c4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd87b87bb5b78439d9b6e82b9f9e664c4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd87b87bb5b78439d9b6e82b9f9e664c4', x'9975da1aa44f48569c2568ce89c7caed', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:25:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18427dbe12_b2c80435d48531d6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:11', 'teste@teste.com', '$2a$04$lrMk9pAAu/tx3.YDYgCUVOMt/GtX3HE6PpJ2En5gmLwQAPBNERw5y', NULL, x'298c11685c6b400c97cedcf0b14f9ace', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'298c11685c6b400c97cedcf0b14f9ace' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:11', 'User', x'3d97a9e581fc472ca327193dc43e463e', '110cff01d0d0ed04ec512cb628c4784a', x'298c11685c6b400c97cedcf0b14f9ace', 'User', '2012-12-31 12:25:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'298c11685c6b400c97cedcf0b14f9ace' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:11', x'ef2cb3241019462c909219ab8f33e15b', NULL, NULL, NULL, '2012-12-31 12:25:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:11', `updated_at` = '2012-12-31 12:25:11', `subdomain` = 'accountef2cb324-1019-462c-9092-19ab8f33e15b' WHERE `accounts`.`id` = x'ef2cb3241019462c909219ab8f33e15b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ef2cb3241019462c909219ab8f33e15b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ef2cb3241019462c909219ab8f33e15b', x'04719bfc2b324db09d64f4a7684be604', x'298c11685c6b400c97cedcf0b14f9ace') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'04719bfc2b324db09d64f4a7684be604') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'04719bfc2b324db09d64f4a7684be604' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'04719bfc2b324db09d64f4a7684be604', x'cf4448784b274f54b489a453b2c9b336', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'04719bfc2b324db09d64f4a7684be604') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'04719bfc2b324db09d64f4a7684be604' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'04719bfc2b324db09d64f4a7684be604', x'42f83d78950849c99f1aedd5762cf9fd', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:25:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18427ec4cb_b2c80435d485327f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:11', 'account1@before.destroy', '$2a$04$k7grAGJNHwA2JczmanFL0eC6ht.4aL.BKEP4LrML4m0W2xWbef1Ke', NULL, x'ebb799614d924ec4ad9c301d99437460', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ebb799614d924ec4ad9c301d99437460' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:11', 'User', x'3d2b5687366d4b9e99b83059d86afe16', '9acea29310eead8b860b241b16534944', x'ebb799614d924ec4ad9c301d99437460', 'User', '2012-12-31 12:25:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ebb799614d924ec4ad9c301d99437460' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:11', x'bb2ac3bfcef4454cb7b769e9c74d1e05', NULL, NULL, NULL, '2012-12-31 12:25:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:11', `updated_at` = '2012-12-31 12:25:11', `subdomain` = 'accountbb2ac3bf-cef4-454c-b7b7-69e9c74d1e05' WHERE `accounts`.`id` = x'bb2ac3bfcef4454cb7b769e9c74d1e05' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bb2ac3bfcef4454cb7b769e9c74d1e05' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bb2ac3bfcef4454cb7b769e9c74d1e05', x'c95e99ea142d47569ed746fb0a9282f4', x'ebb799614d924ec4ad9c301d99437460') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c95e99ea142d47569ed746fb0a9282f4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c95e99ea142d47569ed746fb0a9282f4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c95e99ea142d47569ed746fb0a9282f4', x'a1147b52e60a4c79bb3b2178e6b10a5e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c95e99ea142d47569ed746fb0a9282f4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c95e99ea142d47569ed746fb0a9282f4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c95e99ea142d47569ed746fb0a9282f4', x'669fe9bcde634c379e36739a9845ec0b', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (11ms) Date: Mon, 31 Dec 2012 10:25:12 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1842872ab_b2c80435d4853310@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebb799614d924ec4ad9c301d99437460' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyUserJob\nid: ebb79961-4d92-4ec4-ad9c-301d99437460\n', NULL, NULL, NULL, 0, 'user_ebb79961-4d92-4ec4-ad9c-301d99437460_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_ebb79961-4d92-4ec4-ad9c-301d99437460_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ebb799614d924ec4ad9c301d99437460' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ebb799614d924ec4ad9c301d99437460' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: c95e99ea-142d-4756-9ed7-46fb0a9282f4\n', NULL, NULL, NULL, 0, 'account_user_c95e99ea-142d-4756-9ed7-46fb0a9282f4_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ebb799614d924ec4ad9c301d99437460' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebb799614d924ec4ad9c301d99437460'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'bb2ac3bfcef4454cb7b769e9c74d1e05' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyAccountJob\nid: bb2ac3bf-cef4-454c-b7b7-69e9c74d1e05\n', NULL, NULL, NULL, 0, 'account_bb2ac3bf-cef4-454c-b7b7-69e9c74d1e05_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'ebb799614d924ec4ad9c301d99437460'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bb2ac3bf-cef4-454c-b7b7-69e9c74d1e05_destroy' LIMIT 1  (23.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:12', 'account1@before.destroy', '$2a$04$yfz//4352GywlywuVi.OEeJ.dojovxqrfCbU1X6Aifxf7TGb0jKfS', NULL, x'0cc22cdfa2494af3a28d2d027fde749b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0cc22cdfa2494af3a28d2d027fde749b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:12', 'User', x'85a2d1fc5356480aa1eff6885fc356b2', 'edbf9d77f37a8f20de4d4a7eec80d36e', x'0cc22cdfa2494af3a28d2d027fde749b', 'User', '2012-12-31 12:25:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0cc22cdfa2494af3a28d2d027fde749b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:12', x'83dc1329e96c4fecb5b6e52eb2d4e844', NULL, NULL, NULL, '2012-12-31 12:25:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:12', `updated_at` = '2012-12-31 12:25:12', `subdomain` = 'account83dc1329-e96c-4fec-b5b6-e52eb2d4e844' WHERE `accounts`.`id` = x'83dc1329e96c4fecb5b6e52eb2d4e844' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'83dc1329e96c4fecb5b6e52eb2d4e844' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'83dc1329e96c4fecb5b6e52eb2d4e844', x'4c3ae9bbcaef4e47aaf915b47a3a5c19', x'0cc22cdfa2494af3a28d2d027fde749b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4c3ae9bbcaef4e47aaf915b47a3a5c19') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c3ae9bbcaef4e47aaf915b47a3a5c19' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c3ae9bbcaef4e47aaf915b47a3a5c19', x'394854011dfa4eefa476f10e00959d6b', 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4c3ae9bbcaef4e47aaf915b47a3a5c19') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c3ae9bbcaef4e47aaf915b47a3a5c19' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c3ae9bbcaef4e47aaf915b47a3a5c19', x'071a68ecbd0d4dbfb1e63a5aa9d79ea0', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:25:12 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e184283b50c_b2c80435d48534b5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:12', x'b4e2c123c06940d8a00bc0d1a2622f2e', 'jabanilson', NULL, 1, '2012-12-31 12:25:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:25:12', `updated_at` = '2012-12-31 12:25:12', `subdomain` = 'accountb4e2c123-c069-40d8-a00b-c0d1a2622f2e' WHERE `accounts`.`id` = x'b4e2c123c06940d8a00bc0d1a2622f2e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0cc22cdfa2494af3a28d2d027fde749b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b4e2c123c06940d8a00bc0d1a2622f2e', x'289615986f7947ba93de50421040a5f6', x'0cc22cdfa2494af3a28d2d027fde749b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'289615986f7947ba93de50421040a5f6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'289615986f7947ba93de50421040a5f6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'289615986f7947ba93de50421040a5f6', x'bce15c634fd5464192be2ab9f3f0fe6e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'289615986f7947ba93de50421040a5f6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'289615986f7947ba93de50421040a5f6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'289615986f7947ba93de50421040a5f6', x'a963905c7ffa4eccaf35c50f5d951de6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0cc22cdfa2494af3a28d2d027fde749b' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyUserJob\nid: 0cc22cdf-a249-4af3-a28d-2d027fde749b\n', NULL, NULL, NULL, 0, 'user_0cc22cdf-a249-4af3-a28d-2d027fde749b_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_0cc22cdf-a249-4af3-a28d-2d027fde749b_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0cc22cdfa2494af3a28d2d027fde749b' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0cc22cdfa2494af3a28d2d027fde749b' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 28961598-6f79-47ba-93de-50421040a5f6\n', NULL, NULL, NULL, 0, 'account_user_28961598-6f79-47ba-93de-50421040a5f6_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 4c3ae9bb-caef-4e47-aaf9-15b47a3a5c19\n', NULL, NULL, NULL, 0, 'account_user_4c3ae9bb-caef-4e47-aaf9-15b47a3a5c19_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0cc22cdfa2494af3a28d2d027fde749b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0cc22cdfa2494af3a28d2d027fde749b'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'b4e2c123c06940d8a00bc0d1a2622f2e' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyAccountJob\nid: b4e2c123-c069-40d8-a00b-c0d1a2622f2e\n', NULL, NULL, NULL, 0, 'account_b4e2c123-c069-40d8-a00b-c0d1a2622f2e_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12')  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'83dc1329e96c4fecb5b6e52eb2d4e844' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 83dc1329-e96c-4fec-b5b6-e52eb2d4e844\n', NULL, NULL, NULL, 0, 'account_83dc1329-e96c-4fec-b5b6-e52eb2d4e844_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'0cc22cdfa2494af3a28d2d027fde749b'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b4e2c123-c069-40d8-a00b-c0d1a2622f2e_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:12', 'account1@before.destroy', '$2a$04$KU/PYzxMPJc8JoLmXzr5VOAOFNJtkc73nElKgvYSZTOsrZzLGQqrK', NULL, x'b0fbcb3bcef94563bfe2597f6e25c04f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b0fbcb3bcef94563bfe2597f6e25c04f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:12', 'User', x'7c79ae9877874d499df5b5812abd464d', '96067a15bfe5ca111a59ace74b49de01', x'b0fbcb3bcef94563bfe2597f6e25c04f', 'User', '2012-12-31 12:25:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b0fbcb3bcef94563bfe2597f6e25c04f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:12', x'daaf233b8fb846cd855ff7d210be6079', NULL, NULL, NULL, '2012-12-31 12:25:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:12', `updated_at` = '2012-12-31 12:25:12', `subdomain` = 'accountdaaf233b-8fb8-46cd-855f-f7d210be6079' WHERE `accounts`.`id` = x'daaf233b8fb846cd855ff7d210be6079' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'daaf233b8fb846cd855ff7d210be6079' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'daaf233b8fb846cd855ff7d210be6079', x'cfb513c5ea5046cea71fa0a9cb477c86', x'b0fbcb3bcef94563bfe2597f6e25c04f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cfb513c5ea5046cea71fa0a9cb477c86') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfb513c5ea5046cea71fa0a9cb477c86' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfb513c5ea5046cea71fa0a9cb477c86', x'0cc70272c94248248d036c7ce6ee4112', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cfb513c5ea5046cea71fa0a9cb477c86') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfb513c5ea5046cea71fa0a9cb477c86' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfb513c5ea5046cea71fa0a9cb477c86', x'76ef292266c74e08852f1ed80c5d8130', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:25:12 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e18428534bc_b2c80435d4853550@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b0fbcb3bcef94563bfe2597f6e25c04f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:25:10', '2012-12-31 12:25:12', 'account2@before.destroy', '$2a$04$.ey9omg/HLrL4NtdMlEHoefpC1UN1wgUWyaAaU1zFa2.btckU/RUe', NULL, x'e6630eed1b2640dfacc2825172d51822', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:25:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e6630eed1b2640dfacc2825172d51822' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:25:12', 'User', x'46ea627512a54d6da62971bd9e867400', 'fbcf60f35bdb8426ab64508426d25583', x'e6630eed1b2640dfacc2825172d51822', 'User', '2012-12-31 12:25:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e6630eed1b2640dfacc2825172d51822' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:25:12', x'6161585c45c0462abdea8253f71c9731', NULL, NULL, NULL, '2012-12-31 12:25:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:25:12', `updated_at` = '2012-12-31 12:25:12', `subdomain` = 'account6161585c-45c0-462a-bdea-8253f71c9731' WHERE `accounts`.`id` = x'6161585c45c0462abdea8253f71c9731' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6161585c45c0462abdea8253f71c9731' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6161585c45c0462abdea8253f71c9731', x'98f9faf1591149aeb6d4fa403d392602', x'e6630eed1b2640dfacc2825172d51822') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'98f9faf1591149aeb6d4fa403d392602') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'98f9faf1591149aeb6d4fa403d392602' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'98f9faf1591149aeb6d4fa403d392602', x'6283e5bbbd484f03bb0ce20a5fca22ea', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'98f9faf1591149aeb6d4fa403d392602') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'98f9faf1591149aeb6d4fa403d392602' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'98f9faf1591149aeb6d4fa403d392602', x'bb4d09f140e246dca119d553ceee95d1', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:25:12 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e184286eccc_b2c80435d4853642@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'daaf233b8fb846cd855ff7d210be6079' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'daaf233b8fb846cd855ff7d210be6079', x'a1732c286e9a46c1a267ea579b624652', x'e6630eed1b2640dfacc2825172d51822') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a1732c286e9a46c1a267ea579b624652') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a1732c286e9a46c1a267ea579b624652' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a1732c286e9a46c1a267ea579b624652', x'dbd245ba27e949ec83d462da41b15d1b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a1732c286e9a46c1a267ea579b624652') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a1732c286e9a46c1a267ea579b624652' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a1732c286e9a46c1a267ea579b624652', x'b15502120e4e41f0bcaa8ee13102b6cd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyUserJob\nid: b0fbcb3b-cef9-4563-bfe2-597f6e25c04f\n', NULL, NULL, NULL, 0, 'user_b0fbcb3b-cef9-4563-bfe2-597f6e25c04f_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_b0fbcb3b-cef9-4563-bfe2-597f6e25c04f_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b0fbcb3bcef94563bfe2597f6e25c04f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b0fbcb3bcef94563bfe2597f6e25c04f' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:25:12', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: cfb513c5-ea50-46ce-a71f-a0a9cb477c86\n', NULL, NULL, NULL, 0, 'account_user_cfb513c5-ea50-46ce-a71f-a0a9cb477c86_destroy', '2012-12-31 12:25:12', '2012-12-31 12:25:12') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b0fbcb3bcef94563bfe2597f6e25c04f' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b0fbcb3bcef94563bfe2597f6e25c04f'  (0.1ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'daaf233b8fb846cd855ff7d210be6079' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'b0fbcb3bcef94563bfe2597f6e25c04f'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_daaf233b-8fb8-46cd-855f-f7d210be6079_destroy' LIMIT 1  (0.9ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (9.1ms) TRUNCATE TABLE `account_domains`;  (6.7ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (0.9ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:20', 'teste@teste.com', '$2a$04$EYii.Mm4AHFUdpwfP/nhj.pkAB/ZvnSJcHwxJA8tCP0oLDq4/7WpW', NULL, x'e5509637a1fc4f39b4ac34cddd38d316', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e5509637a1fc4f39b4ac34cddd38d316' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:20', 'User', x'b87ed9eb66244d5595195768a276249d', 'dd1c751b250cbf825dee07a72de3355a', x'e5509637a1fc4f39b4ac34cddd38d316', 'User', '2012-12-31 12:26:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e5509637a1fc4f39b4ac34cddd38d316' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:20', x'f13b99a2d2924264b8dbf1149073c085', NULL, NULL, NULL, '2012-12-31 12:26:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:20', `updated_at` = '2012-12-31 12:26:20', `subdomain` = 'accountf13b99a2-d292-4264-b8db-f1149073c085' WHERE `accounts`.`id` = x'f13b99a2d2924264b8dbf1149073c085' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f13b99a2d2924264b8dbf1149073c085' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f13b99a2d2924264b8dbf1149073c085', x'0fe6314032ba4f1e9c7ba33468a155ba', x'e5509637a1fc4f39b4ac34cddd38d316') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0fe6314032ba4f1e9c7ba33468a155ba') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0fe6314032ba4f1e9c7ba33468a155ba' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0fe6314032ba4f1e9c7ba33468a155ba', x'6f1c8b73ba3a462ca5cf6225c898035c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0fe6314032ba4f1e9c7ba33468a155ba') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0fe6314032ba4f1e9c7ba33468a155ba' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0fe6314032ba4f1e9c7ba33468a155ba', x'0769499b6b6f40f49384f9984f863402', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (137ms) Date: Mon, 31 Dec 2012 10:26:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1846c9efad_b3b80435d4847b8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:20', 'teste@teste.com', '$2a$04$fLr2M1GRsl73RK8Pd5ATLuUjj2cPGOL.i5UzpPn0wO0XMLvD6vABW', NULL, x'2f3784b7287947f3b84a3cff251131e1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2f3784b7287947f3b84a3cff251131e1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:20', 'User', x'494f0368ee4b49ed8aa1271cc94b5746', 'f03517e7e06dc402c13c52f640e715af', x'2f3784b7287947f3b84a3cff251131e1', 'User', '2012-12-31 12:26:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2f3784b7287947f3b84a3cff251131e1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:20', x'875484e646f04c769b07a1f1bf55777e', NULL, NULL, NULL, '2012-12-31 12:26:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:20', `updated_at` = '2012-12-31 12:26:20', `subdomain` = 'account875484e6-46f0-4c76-9b07-a1f1bf55777e' WHERE `accounts`.`id` = x'875484e646f04c769b07a1f1bf55777e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'875484e646f04c769b07a1f1bf55777e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'875484e646f04c769b07a1f1bf55777e', x'497167aaefaf41bbbc41e3c9fc43b4aa', x'2f3784b7287947f3b84a3cff251131e1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'497167aaefaf41bbbc41e3c9fc43b4aa') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'497167aaefaf41bbbc41e3c9fc43b4aa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'497167aaefaf41bbbc41e3c9fc43b4aa', x'5625396a1ff34e2e832b051595c0f71f', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'497167aaefaf41bbbc41e3c9fc43b4aa') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'497167aaefaf41bbbc41e3c9fc43b4aa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'497167aaefaf41bbbc41e3c9fc43b4aa', x'33f58b75e3a84f0daf36b44bfd48bbf8', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1846cb462c_b3b80435d48484e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:20', 'teste@teste.com', '$2a$04$klcV589OM9rchMJRTDzpk.RVAx9wt7EWAwCvgKbdgkKcfSEhUhLny', NULL, x'a02eeeda7cfe4854b59449e9c68b4239', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a02eeeda7cfe4854b59449e9c68b4239' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:20', 'User', x'99b1f3b8940247c5ad036ff070c513b1', 'e8a9d990f18a0b4824cf339c867c753b', x'a02eeeda7cfe4854b59449e9c68b4239', 'User', '2012-12-31 12:26:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a02eeeda7cfe4854b59449e9c68b4239' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:20', x'abc39f06907742c0880d08acf88a38da', NULL, NULL, NULL, '2012-12-31 12:26:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:20', `updated_at` = '2012-12-31 12:26:20', `subdomain` = 'accountabc39f06-9077-42c0-880d-08acf88a38da' WHERE `accounts`.`id` = x'abc39f06907742c0880d08acf88a38da' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'abc39f06907742c0880d08acf88a38da' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'abc39f06907742c0880d08acf88a38da', x'cfb6ba266d0448b2a080f68895e2e412', x'a02eeeda7cfe4854b59449e9c68b4239') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cfb6ba266d0448b2a080f68895e2e412') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfb6ba266d0448b2a080f68895e2e412' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfb6ba266d0448b2a080f68895e2e412', x'd1f50a6efe1f441a9cdf5fdb71a19aa7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cfb6ba266d0448b2a080f68895e2e412') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfb6ba266d0448b2a080f68895e2e412' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfb6ba266d0448b2a080f68895e2e412', x'98d775a565bf4b21acaff708bd0df191', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1846cc0360_b3b80435d48491c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:20', 'teste@teste.com', '$2a$04$4gtybpMOut0RDpLsEmtDfOvmI5DAmELEcbcDu0dxwhmcx/zS/hScy', NULL, x'71b993e42c5f4e28a7225a8b5fe41496', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'71b993e42c5f4e28a7225a8b5fe41496' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:20', 'User', x'7ba5810835ab4c3b85880e47935c0f0a', '2504d422af2e665dea34f5d7613c3ea4', x'71b993e42c5f4e28a7225a8b5fe41496', 'User', '2012-12-31 12:26:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'71b993e42c5f4e28a7225a8b5fe41496' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:20', x'192f4acd21134c639b5f758635c22854', NULL, NULL, NULL, '2012-12-31 12:26:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:20', `updated_at` = '2012-12-31 12:26:20', `subdomain` = 'account192f4acd-2113-4c63-9b5f-758635c22854' WHERE `accounts`.`id` = x'192f4acd21134c639b5f758635c22854' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'192f4acd21134c639b5f758635c22854' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'192f4acd21134c639b5f758635c22854', x'343962d102e04f82ab823f5f2eb10f5d', x'71b993e42c5f4e28a7225a8b5fe41496') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'343962d102e04f82ab823f5f2eb10f5d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'343962d102e04f82ab823f5f2eb10f5d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'343962d102e04f82ab823f5f2eb10f5d', x'cedc636dc75a4201932b378e5fa459ff', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'343962d102e04f82ab823f5f2eb10f5d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'343962d102e04f82ab823f5f2eb10f5d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'343962d102e04f82ab823f5f2eb10f5d', x'66823e0a83524d319bb04ec949c28eed', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1846ccc622_b3b80435d4850f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'71b993e42c5f4e28a7225a8b5fe41496'  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:20', 'teste@teste.com', '$2a$04$MwLbpcYFjQu4Z.9s.taIQOdrXWX.f7f3aCkSWUkU9XoJBo8Nkg1c.', NULL, x'48560d9b671741db988a855a744a249b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'48560d9b671741db988a855a744a249b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:20', 'User', x'81b5e00363dc477c9c2431d763616a41', '3cf44487e4d96fedb170edbb24f321cc', x'48560d9b671741db988a855a744a249b', 'User', '2012-12-31 12:26:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'48560d9b671741db988a855a744a249b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:20', x'22b8c6ee947e45d5ba024331a4c93318', NULL, NULL, NULL, '2012-12-31 12:26:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:20', `updated_at` = '2012-12-31 12:26:20', `subdomain` = 'account22b8c6ee-947e-45d5-ba02-4331a4c93318' WHERE `accounts`.`id` = x'22b8c6ee947e45d5ba024331a4c93318' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'22b8c6ee947e45d5ba024331a4c93318' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'22b8c6ee947e45d5ba024331a4c93318', x'3d4b688558ae4a059b82c0c03cbfba01', x'48560d9b671741db988a855a744a249b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3d4b688558ae4a059b82c0c03cbfba01') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d4b688558ae4a059b82c0c03cbfba01' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d4b688558ae4a059b82c0c03cbfba01', x'd41cfe1a73284beaabbcf2862760bea0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3d4b688558ae4a059b82c0c03cbfba01') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d4b688558ae4a059b82c0c03cbfba01' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d4b688558ae4a059b82c0c03cbfba01', x'87a03c03a741468a9fd24f222b7d2dc6', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1846d32d3_b3b80435d48513d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:21', 'teste@teste.com', '$2a$04$jAmHJseNC4hJH0EitKnuDec7NKYEmXBLnvzBk.UtZ5g/MrL6n/EWG', NULL, x'7042a271693f451cb213f42711e9cf1c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7042a271693f451cb213f42711e9cf1c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:21', 'User', x'af2f437677324a12b6475ee5d340e00c', '9d51bfdc9e12b34efffe6fb3aa420e6f', x'7042a271693f451cb213f42711e9cf1c', 'User', '2012-12-31 12:26:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7042a271693f451cb213f42711e9cf1c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:21', x'57b98fb1eb414e078fde208d90ad42ce', NULL, NULL, NULL, '2012-12-31 12:26:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:21', `updated_at` = '2012-12-31 12:26:21', `subdomain` = 'account57b98fb1-eb41-4e07-8fde-208d90ad42ce' WHERE `accounts`.`id` = x'57b98fb1eb414e078fde208d90ad42ce' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'57b98fb1eb414e078fde208d90ad42ce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'57b98fb1eb414e078fde208d90ad42ce', x'3c6841d7e8c14ee492dc86870c70bc21', x'7042a271693f451cb213f42711e9cf1c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c6841d7e8c14ee492dc86870c70bc21') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c6841d7e8c14ee492dc86870c70bc21' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c6841d7e8c14ee492dc86870c70bc21', x'32ef49a7210b4823bbfbcbd3f2b135a6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c6841d7e8c14ee492dc86870c70bc21') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c6841d7e8c14ee492dc86870c70bc21' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c6841d7e8c14ee492dc86870c70bc21', x'f73393fac15244cfb89b54172f71fdca', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:26:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1846d1383f_b3b80435d485266@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (3.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:21', 'account1@before.destroy', '$2a$04$60TDH0/U9yjEsaZZ4ZGe6OMSKN09HwkP3neXZbomb.ggz8NsphuGG', NULL, x'9e62ddf60ada4b16a5e00f0809a4ad76', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9e62ddf60ada4b16a5e00f0809a4ad76' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:21', 'User', x'1ad2eca7c07a4d42ba62f73587bad3ad', '18b52feec5d4ecc82c611e44b2b4beed', x'9e62ddf60ada4b16a5e00f0809a4ad76', 'User', '2012-12-31 12:26:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9e62ddf60ada4b16a5e00f0809a4ad76' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:21', x'64ed9ac502564edf82b5f3da76ac32a0', NULL, NULL, NULL, '2012-12-31 12:26:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:21', `updated_at` = '2012-12-31 12:26:21', `subdomain` = 'account64ed9ac5-0256-4edf-82b5-f3da76ac32a0' WHERE `accounts`.`id` = x'64ed9ac502564edf82b5f3da76ac32a0' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'64ed9ac502564edf82b5f3da76ac32a0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'64ed9ac502564edf82b5f3da76ac32a0', x'c4e330c132a0418082c599843c1d941a', x'9e62ddf60ada4b16a5e00f0809a4ad76') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c4e330c132a0418082c599843c1d941a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4e330c132a0418082c599843c1d941a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4e330c132a0418082c599843c1d941a', x'1eb3e96c680a44d2a4a0b48865fe8e85', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c4e330c132a0418082c599843c1d941a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4e330c132a0418082c599843c1d941a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4e330c132a0418082c599843c1d941a', x'd736df4aba9c432895c110503b1a0703', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:26:21 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1846d201e6_b3b80435d4853f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9e62ddf60ada4b16a5e00f0809a4ad76' LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: 9e62ddf6-0ada-4b16-a5e0-0f0809a4ad76\n', NULL, NULL, NULL, 0, 'user_9e62ddf6-0ada-4b16-a5e0-0f0809a4ad76_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_9e62ddf6-0ada-4b16-a5e0-0f0809a4ad76_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9e62ddf60ada4b16a5e00f0809a4ad76' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9e62ddf60ada4b16a5e00f0809a4ad76' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: c4e330c1-32a0-4180-82c5-99843c1d941a\n', NULL, NULL, NULL, 0, 'account_user_c4e330c1-32a0-4180-82c5-99843c1d941a_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'9e62ddf60ada4b16a5e00f0809a4ad76' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9e62ddf60ada4b16a5e00f0809a4ad76'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'64ed9ac502564edf82b5f3da76ac32a0' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 64ed9ac5-0256-4edf-82b5-f3da76ac32a0\n', NULL, NULL, NULL, 0, 'account_64ed9ac5-0256-4edf-82b5-f3da76ac32a0_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = x'9e62ddf60ada4b16a5e00f0809a4ad76'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_64ed9ac5-0256-4edf-82b5-f3da76ac32a0_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:21', 'account1@before.destroy', '$2a$04$7ijtOu5yJpWVDdGwsq56WO/RfQfRcbm.s2jD1tAK0JxXutNK4R0nS', NULL, x'c8dc51eac9b042e0980125e52a33dd07', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c8dc51eac9b042e0980125e52a33dd07' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:21', 'User', x'a620d223299148e798bb63461279e550', '39985fd44b62457711b8f1a5adf46026', x'c8dc51eac9b042e0980125e52a33dd07', 'User', '2012-12-31 12:26:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c8dc51eac9b042e0980125e52a33dd07' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:21', x'bb190b877bfb4296a8b646fcdf6986b1', NULL, NULL, NULL, '2012-12-31 12:26:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:21', `updated_at` = '2012-12-31 12:26:21', `subdomain` = 'accountbb190b87-7bfb-4296-a8b6-46fcdf6986b1' WHERE `accounts`.`id` = x'bb190b877bfb4296a8b646fcdf6986b1' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bb190b877bfb4296a8b646fcdf6986b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bb190b877bfb4296a8b646fcdf6986b1', x'b6a5bc07506b47cfa43bced455b4c3d8', x'c8dc51eac9b042e0980125e52a33dd07') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b6a5bc07506b47cfa43bced455b4c3d8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6a5bc07506b47cfa43bced455b4c3d8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6a5bc07506b47cfa43bced455b4c3d8', x'22613fac6730436ba22ca08a5ac93720', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b6a5bc07506b47cfa43bced455b4c3d8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6a5bc07506b47cfa43bced455b4c3d8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6a5bc07506b47cfa43bced455b4c3d8', x'4fc207f279a94f3c8860adf02ddcdff6', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:26:21 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1846d4d20c_b3b80435d4854f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:21', x'288cf8343cc846cebe300780ecfca34e', 'jabanilson', NULL, 1, '2012-12-31 12:26:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:26:21', `updated_at` = '2012-12-31 12:26:21', `subdomain` = 'account288cf834-3cc8-46ce-be30-0780ecfca34e' WHERE `accounts`.`id` = x'288cf8343cc846cebe300780ecfca34e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c8dc51eac9b042e0980125e52a33dd07' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'288cf8343cc846cebe300780ecfca34e', x'a7d731204a484be6afd3d74908f0f495', x'c8dc51eac9b042e0980125e52a33dd07') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a7d731204a484be6afd3d74908f0f495') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a7d731204a484be6afd3d74908f0f495' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a7d731204a484be6afd3d74908f0f495', x'6affeb6345224c61b042feeadc1aa5d7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a7d731204a484be6afd3d74908f0f495') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a7d731204a484be6afd3d74908f0f495' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a7d731204a484be6afd3d74908f0f495', x'44e3164aabeb4725b27bcf9fd1560c50', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c8dc51eac9b042e0980125e52a33dd07' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: c8dc51ea-c9b0-42e0-9801-25e52a33dd07\n', NULL, NULL, NULL, 0, 'user_c8dc51ea-c9b0-42e0-9801-25e52a33dd07_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_c8dc51ea-c9b0-42e0-9801-25e52a33dd07_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c8dc51eac9b042e0980125e52a33dd07' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c8dc51eac9b042e0980125e52a33dd07' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: a7d73120-4a48-4be6-afd3-d74908f0f495\n', NULL, NULL, NULL, 0, 'account_user_a7d73120-4a48-4be6-afd3-d74908f0f495_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: b6a5bc07-506b-47cf-a43b-ced455b4c3d8\n', NULL, NULL, NULL, 0, 'account_user_b6a5bc07-506b-47cf-a43b-ced455b4c3d8_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c8dc51eac9b042e0980125e52a33dd07' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c8dc51eac9b042e0980125e52a33dd07'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'288cf8343cc846cebe300780ecfca34e' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 288cf834-3cc8-46ce-be30-0780ecfca34e\n', NULL, NULL, NULL, 0, 'account_288cf834-3cc8-46ce-be30-0780ecfca34e_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21')  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'bb190b877bfb4296a8b646fcdf6986b1' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyAccountJob\nid: bb190b87-7bfb-4296-a8b6-46fcdf6986b1\n', NULL, NULL, NULL, 0, 'account_bb190b87-7bfb-4296-a8b6-46fcdf6986b1_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'c8dc51eac9b042e0980125e52a33dd07'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bb190b87-7bfb-4296-a8b6-46fcdf6986b1_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:21', 'account1@before.destroy', '$2a$04$7k0DpEm.pdGwkojyc/KfxufCZw5vgR68LxN1U/17vY4gkEp5xKDN6', NULL, x'e278f36932c3454c8ef1f8e73f434ffe', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e278f36932c3454c8ef1f8e73f434ffe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:21', 'User', x'6a770f0a403c476e882948258fb5a178', '65d109e71d7be7b2c9325dfd3e2a6e54', x'e278f36932c3454c8ef1f8e73f434ffe', 'User', '2012-12-31 12:26:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e278f36932c3454c8ef1f8e73f434ffe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:21', x'616c6cef35474c919d7b6c6f8d7cec12', NULL, NULL, NULL, '2012-12-31 12:26:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:21', `updated_at` = '2012-12-31 12:26:21', `subdomain` = 'account616c6cef-3547-4c91-9d7b-6c6f8d7cec12' WHERE `accounts`.`id` = x'616c6cef35474c919d7b6c6f8d7cec12' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'616c6cef35474c919d7b6c6f8d7cec12' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'616c6cef35474c919d7b6c6f8d7cec12', x'fb890338d1274e898516f62fe2f54c91', x'e278f36932c3454c8ef1f8e73f434ffe') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fb890338d1274e898516f62fe2f54c91') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb890338d1274e898516f62fe2f54c91' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb890338d1274e898516f62fe2f54c91', x'71f0109e71b748a5b5e29f6c8f9c62aa', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fb890338d1274e898516f62fe2f54c91') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb890338d1274e898516f62fe2f54c91' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb890338d1274e898516f62fe2f54c91', x'68eb05fdac8b48deb8a8c084b00d9810', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:26:21 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1846d65816_b3b80435d48555b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e278f36932c3454c8ef1f8e73f434ffe' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:19', '2012-12-31 12:26:21', 'account2@before.destroy', '$2a$04$9rsmhLbQPJ4h0WVjWAcxe.Xle2XUfDOX0N5kRg9dIuAp7yexhY0XW', NULL, x'791e6e3720214319aa396eedb2b5391a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'791e6e3720214319aa396eedb2b5391a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:21', 'User', x'054b4dd7ddc64c489234926615147908', '06f680cffa81fcd9381a6ff0616836fb', x'791e6e3720214319aa396eedb2b5391a', 'User', '2012-12-31 12:26:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'791e6e3720214319aa396eedb2b5391a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:21', x'fbdc3e54bacf4d3aa7fecf8fc170d624', NULL, NULL, NULL, '2012-12-31 12:26:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:21', `updated_at` = '2012-12-31 12:26:21', `subdomain` = 'accountfbdc3e54-bacf-4d3a-a7fe-cf8fc170d624' WHERE `accounts`.`id` = x'fbdc3e54bacf4d3aa7fecf8fc170d624' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fbdc3e54bacf4d3aa7fecf8fc170d624' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fbdc3e54bacf4d3aa7fecf8fc170d624', x'7ec7746224384aa38daf7ec8909c99bf', x'791e6e3720214319aa396eedb2b5391a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7ec7746224384aa38daf7ec8909c99bf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7ec7746224384aa38daf7ec8909c99bf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7ec7746224384aa38daf7ec8909c99bf', x'07cb841a0667416bbf031a8d5e1afc23', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7ec7746224384aa38daf7ec8909c99bf') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7ec7746224384aa38daf7ec8909c99bf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7ec7746224384aa38daf7ec8909c99bf', x'26c6b445f12f46779a1983bfee7a4ad1', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:26:21 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e1846d8098c_b3b80435d48569c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'616c6cef35474c919d7b6c6f8d7cec12' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'616c6cef35474c919d7b6c6f8d7cec12', x'4b90c370028b4cbabfd534ffc0456b4f', x'791e6e3720214319aa396eedb2b5391a') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4b90c370028b4cbabfd534ffc0456b4f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b90c370028b4cbabfd534ffc0456b4f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b90c370028b4cbabfd534ffc0456b4f', x'8085aa616b0f47c7828829a6ed51b877', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4b90c370028b4cbabfd534ffc0456b4f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b90c370028b4cbabfd534ffc0456b4f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b90c370028b4cbabfd534ffc0456b4f', x'0114cb7b397b44c18926e39f668de4bd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: e278f369-32c3-454c-8ef1-f8e73f434ffe\n', NULL, NULL, NULL, 0, 'user_e278f369-32c3-454c-8ef1-f8e73f434ffe_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_e278f369-32c3-454c-8ef1-f8e73f434ffe_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e278f36932c3454c8ef1f8e73f434ffe' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e278f36932c3454c8ef1f8e73f434ffe' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:21', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: fb890338-d127-4e89-8516-f62fe2f54c91\n', NULL, NULL, NULL, 0, 'account_user_fb890338-d127-4e89-8516-f62fe2f54c91_destroy', '2012-12-31 12:26:21', '2012-12-31 12:26:21') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'e278f36932c3454c8ef1f8e73f434ffe' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e278f36932c3454c8ef1f8e73f434ffe'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'616c6cef35474c919d7b6c6f8d7cec12' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'e278f36932c3454c8ef1f8e73f434ffe'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_616c6cef-3547-4c91-9d7b-6c6f8d7cec12_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:21', '2012-12-31 12:26:21', '', '', 1, x'82b4e3ff0c51487e9cf992b22163e9ff', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:26:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'82b4e3ff0c51487e9cf992b22163e9ff' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:21', 'User', x'250b9d650b2a4e7e81361854725e7a23', 'c944d40867fd52440b919a86a3e42ea0', x'82b4e3ff0c51487e9cf992b22163e9ff', 'User', '2012-12-31 12:26:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'82b4e3ff0c51487e9cf992b22163e9ff' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:21', x'7b5f8da83881493ea1ce2ec6791f9e40', NULL, NULL, NULL, '2012-12-31 12:26:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:21', `updated_at` = '2012-12-31 12:26:21', `subdomain` = 'account7b5f8da8-3881-493e-a1ce-2ec6791f9e40' WHERE `accounts`.`id` = x'7b5f8da83881493ea1ce2ec6791f9e40' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7b5f8da83881493ea1ce2ec6791f9e40' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7b5f8da83881493ea1ce2ec6791f9e40', x'b0e174b31d314bd980eda4d494a037cc', x'82b4e3ff0c51487e9cf992b22163e9ff') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b0e174b31d314bd980eda4d494a037cc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0e174b31d314bd980eda4d494a037cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0e174b31d314bd980eda4d494a037cc', x'72ba7e16d40a48479ad35385d5ab9b3a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b0e174b31d314bd980eda4d494a037cc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0e174b31d314bd980eda4d494a037cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0e174b31d314bd980eda4d494a037cc', x'133054460b0641c0a8868bdd0242707f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.8ms) TRUNCATE TABLE `user_invitations`;  (27.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:45', 'teste@teste.com', '$2a$04$FBIFKgGVDy7Tm78QPBqQnecw1KPZRSQlKXcVfLa6ZON3e7j8no2OK', NULL, x'7c740cf96bd74c6ab33cdce1815e767b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7c740cf96bd74c6ab33cdce1815e767b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:45', 'User', x'6801bfea214f4e8f9c616b72bbda75b5', 'bb0fe2455214916d93b2c7ec90960c4b', x'7c740cf96bd74c6ab33cdce1815e767b', 'User', '2012-12-31 12:26:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7c740cf96bd74c6ab33cdce1815e767b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:45', x'bdd05567347047109f516e5ab27041bd', NULL, NULL, NULL, '2012-12-31 12:26:45')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:45', `updated_at` = '2012-12-31 12:26:45', `subdomain` = 'accountbdd05567-3470-4710-9f51-6e5ab27041bd' WHERE `accounts`.`id` = x'bdd05567347047109f516e5ab27041bd' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bdd05567347047109f516e5ab27041bd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bdd05567347047109f516e5ab27041bd', x'87bd10ce07484454a163252de8b480b6', x'7c740cf96bd74c6ab33cdce1815e767b') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'87bd10ce07484454a163252de8b480b6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87bd10ce07484454a163252de8b480b6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'87bd10ce07484454a163252de8b480b6', x'66aa7a1c779645a8aabd1087b0691c0a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'87bd10ce07484454a163252de8b480b6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87bd10ce07484454a163252de8b480b6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'87bd10ce07484454a163252de8b480b6', x'2a838901db2d4e5fbc91955f874ef4eb', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.2ms) Sent mail to teste@teste.com (136ms) Date: Mon, 31 Dec 2012 10:26:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1848656449_b4680435d4863654@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:46', 'teste@teste.com', '$2a$04$XmIpc9TZoO.CTqMRBwTeCuG6O/yJnpCz3HYZ0u3zNX.vn68HptlBi', NULL, x'9b34cbc7d528494abe74055260024d32', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9b34cbc7d528494abe74055260024d32' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:46', 'User', x'ee97a9f2fb44490ea3923431ac3fc627', '82f0ae0299589fa047489ddfa09053eb', x'9b34cbc7d528494abe74055260024d32', 'User', '2012-12-31 12:26:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9b34cbc7d528494abe74055260024d32' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:46', x'41a32eecd33c4e9a8821cfb28905500c', NULL, NULL, NULL, '2012-12-31 12:26:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:46', `updated_at` = '2012-12-31 12:26:46', `subdomain` = 'account41a32eec-d33c-4e9a-8821-cfb28905500c' WHERE `accounts`.`id` = x'41a32eecd33c4e9a8821cfb28905500c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'41a32eecd33c4e9a8821cfb28905500c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'41a32eecd33c4e9a8821cfb28905500c', x'4d97ce86b73f4e2c9a2cb33debee6dcf', x'9b34cbc7d528494abe74055260024d32') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4d97ce86b73f4e2c9a2cb33debee6dcf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d97ce86b73f4e2c9a2cb33debee6dcf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4d97ce86b73f4e2c9a2cb33debee6dcf', x'5ec3824fba364dec9198be98f228e257', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4d97ce86b73f4e2c9a2cb33debee6dcf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d97ce86b73f4e2c9a2cb33debee6dcf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4d97ce86b73f4e2c9a2cb33debee6dcf', x'66f8406fbd3c43378bef7cf6eabe5de8', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e184866bc4e_b4680435d48637be@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:46', 'teste@teste.com', '$2a$04$neflwiEvln5jSTIoVQWwvejG/rPfXQ2I9t206YhGX/I0qTRoShxXO', NULL, x'3d0a82cfcf3046ccb7f91a6f06fb19d0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3d0a82cfcf3046ccb7f91a6f06fb19d0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:46', 'User', x'8aee42435f204c5eb0963d7cbd72429f', 'fb7246fbae2c4adf914fb82c63de6014', x'3d0a82cfcf3046ccb7f91a6f06fb19d0', 'User', '2012-12-31 12:26:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3d0a82cfcf3046ccb7f91a6f06fb19d0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:46', x'b8316eed0c294a2dbf01c27a41f0b854', NULL, NULL, NULL, '2012-12-31 12:26:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:46', `updated_at` = '2012-12-31 12:26:46', `subdomain` = 'accountb8316eed-0c29-4a2d-bf01-c27a41f0b854' WHERE `accounts`.`id` = x'b8316eed0c294a2dbf01c27a41f0b854' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b8316eed0c294a2dbf01c27a41f0b854' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b8316eed0c294a2dbf01c27a41f0b854', x'254ef577cea1421b93aa27de4ba3b427', x'3d0a82cfcf3046ccb7f91a6f06fb19d0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'254ef577cea1421b93aa27de4ba3b427') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'254ef577cea1421b93aa27de4ba3b427' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'254ef577cea1421b93aa27de4ba3b427', x'650772b4e8cd4f568739801e38430c2d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'254ef577cea1421b93aa27de4ba3b427') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'254ef577cea1421b93aa27de4ba3b427' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'254ef577cea1421b93aa27de4ba3b427', x'b5e8c4e1655e40819adaf4cb02ce53e7', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1848677c14_b4680435d4863879@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:46', 'teste@teste.com', '$2a$04$9.DRgrJluxalYa7Y9NbXLO6Yn5LJJXSeiIfZ1hLRUWwzyq8mEWQpG', NULL, x'c9f7608565af4470a7223905acd3e947', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:46') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c9f7608565af4470a7223905acd3e947' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:46', 'User', x'deaf36c4390647739a88611a829a6e1f', 'beab30c158c5172a44e6e83dc82c83ee', x'c9f7608565af4470a7223905acd3e947', 'User', '2012-12-31 12:26:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c9f7608565af4470a7223905acd3e947' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:46', x'3cf480f1f3054377903dc834bc44eca2', NULL, NULL, NULL, '2012-12-31 12:26:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:46', `updated_at` = '2012-12-31 12:26:46', `subdomain` = 'account3cf480f1-f305-4377-903d-c834bc44eca2' WHERE `accounts`.`id` = x'3cf480f1f3054377903dc834bc44eca2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3cf480f1f3054377903dc834bc44eca2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3cf480f1f3054377903dc834bc44eca2', x'7516f4f28d3c44b7b862675b89c80116', x'c9f7608565af4470a7223905acd3e947') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7516f4f28d3c44b7b862675b89c80116') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7516f4f28d3c44b7b862675b89c80116' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7516f4f28d3c44b7b862675b89c80116', x'1d284defb3fe4cc1a04f259135cf1b85', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7516f4f28d3c44b7b862675b89c80116') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7516f4f28d3c44b7b862675b89c80116' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7516f4f28d3c44b7b862675b89c80116', x'725ace6fd7dd465f989d236f9f8583fb', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1848684c42_b4680435d4863911@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c9f7608565af4470a7223905acd3e947'  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:46', 'teste@teste.com', '$2a$04$JP.tycz/Yif7O7wlx498OOnrNfOH/mhEqqe57MHuAzL8O4cQPVo0W', NULL, x'86cbb5dddfe0493a9ac761a885137d0e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:46') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'86cbb5dddfe0493a9ac761a885137d0e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:46', 'User', x'4f68ad5e95a249ed9b11ea09a5896209', 'd375144a81667b282569a19314aa0107', x'86cbb5dddfe0493a9ac761a885137d0e', 'User', '2012-12-31 12:26:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'86cbb5dddfe0493a9ac761a885137d0e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:46', x'3156dc247a1446e2ac139cb7682bd3cf', NULL, NULL, NULL, '2012-12-31 12:26:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:46', `updated_at` = '2012-12-31 12:26:46', `subdomain` = 'account3156dc24-7a14-46e2-ac13-9cb7682bd3cf' WHERE `accounts`.`id` = x'3156dc247a1446e2ac139cb7682bd3cf' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3156dc247a1446e2ac139cb7682bd3cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3156dc247a1446e2ac139cb7682bd3cf', x'2a4b6c2f0c484210bfa8d1d74ada670e', x'86cbb5dddfe0493a9ac761a885137d0e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2a4b6c2f0c484210bfa8d1d74ada670e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a4b6c2f0c484210bfa8d1d74ada670e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a4b6c2f0c484210bfa8d1d74ada670e', x'653ea48eae02415bbc613f175ccea2bb', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2a4b6c2f0c484210bfa8d1d74ada670e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a4b6c2f0c484210bfa8d1d74ada670e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a4b6c2f0c484210bfa8d1d74ada670e', x'f438cd3df43846c9b30e857227c94438', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18486afd1d_b4680435d486403d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:46', 'teste@teste.com', '$2a$04$dV2eMBMuIhQ5w3Ac.KM6V.x6AKqBkQg6LBWgbYPVTCKv8pryx4p/6', NULL, x'dc6d8f5b91cb42a98649e73d6540e9ab', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:46') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dc6d8f5b91cb42a98649e73d6540e9ab' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:46', 'User', x'b973df8c50574d4fb09f96c5ac90ad6f', 'febe374c6aa7a03433fc27d63e2cdbd6', x'dc6d8f5b91cb42a98649e73d6540e9ab', 'User', '2012-12-31 12:26:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dc6d8f5b91cb42a98649e73d6540e9ab' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:46', x'87d6ee590c1744f395b7e0fdabb227d6', NULL, NULL, NULL, '2012-12-31 12:26:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:46', `updated_at` = '2012-12-31 12:26:46', `subdomain` = 'account87d6ee59-0c17-44f3-95b7-e0fdabb227d6' WHERE `accounts`.`id` = x'87d6ee590c1744f395b7e0fdabb227d6' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'87d6ee590c1744f395b7e0fdabb227d6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'87d6ee590c1744f395b7e0fdabb227d6', x'0efa1673ace34cdd8dbfa88a0d8d1e74', x'dc6d8f5b91cb42a98649e73d6540e9ab') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0efa1673ace34cdd8dbfa88a0d8d1e74') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0efa1673ace34cdd8dbfa88a0d8d1e74' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0efa1673ace34cdd8dbfa88a0d8d1e74', x'889822efe376409da7d58e81aadf019e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0efa1673ace34cdd8dbfa88a0d8d1e74') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0efa1673ace34cdd8dbfa88a0d8d1e74' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0efa1673ace34cdd8dbfa88a0d8d1e74', x'f76bade2c3164036a1a9e2aad0cdd67b', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:26:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18486c04ad_b4680435d4864119@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:46', 'account1@before.destroy', '$2a$04$ibmpxQczTxdaINUoLrvnVusr8tc2enCMAy4xnBAf63sFRL0XXAgE2', NULL, x'451ff261d22f4f4793a36324ab73d65f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'451ff261d22f4f4793a36324ab73d65f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:46', 'User', x'fa3b5911b8564867aa956e93d05b702c', '91466f8ada81e9cd5d2fcafe00aa4ee6', x'451ff261d22f4f4793a36324ab73d65f', 'User', '2012-12-31 12:26:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'451ff261d22f4f4793a36324ab73d65f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:46', x'b5c7f579c58149b99c05061c1fb5a1f5', NULL, NULL, NULL, '2012-12-31 12:26:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:46', `updated_at` = '2012-12-31 12:26:46', `subdomain` = 'accountb5c7f579-c581-49b9-9c05-061c1fb5a1f5' WHERE `accounts`.`id` = x'b5c7f579c58149b99c05061c1fb5a1f5' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b5c7f579c58149b99c05061c1fb5a1f5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b5c7f579c58149b99c05061c1fb5a1f5', x'6b4ad20f6b1b4aafa0ea21ab8cb83649', x'451ff261d22f4f4793a36324ab73d65f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6b4ad20f6b1b4aafa0ea21ab8cb83649') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b4ad20f6b1b4aafa0ea21ab8cb83649' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6b4ad20f6b1b4aafa0ea21ab8cb83649', x'63bb4a6df7c84bcbb2892bf56933f30f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6b4ad20f6b1b4aafa0ea21ab8cb83649') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b4ad20f6b1b4aafa0ea21ab8cb83649' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6b4ad20f6b1b4aafa0ea21ab8cb83649', x'2e898c03a47e418eac677a18d7239605', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (8ms) Date: Mon, 31 Dec 2012 10:26:46 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e18486cc842_b4680435d4864235@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'451ff261d22f4f4793a36324ab73d65f' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:46', NULL, '--- !ruby/struct:DestroyUserJob\nid: 451ff261-d22f-4f47-93a3-6324ab73d65f\n', NULL, NULL, NULL, 0, 'user_451ff261-d22f-4f47-93a3-6324ab73d65f_destroy', '2012-12-31 12:26:46', '2012-12-31 12:26:46')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_451ff261-d22f-4f47-93a3-6324ab73d65f_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'451ff261d22f4f4793a36324ab73d65f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'451ff261d22f4f4793a36324ab73d65f' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:46', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 6b4ad20f-6b1b-4aaf-a0ea-21ab8cb83649\n', NULL, NULL, NULL, 0, 'account_user_6b4ad20f-6b1b-4aaf-a0ea-21ab8cb83649_destroy', '2012-12-31 12:26:46', '2012-12-31 12:26:46') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'451ff261d22f4f4793a36324ab73d65f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'451ff261d22f4f4793a36324ab73d65f'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'b5c7f579c58149b99c05061c1fb5a1f5' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:46', NULL, '--- !ruby/struct:DestroyAccountJob\nid: b5c7f579-c581-49b9-9c05-061c1fb5a1f5\n', NULL, NULL, NULL, 0, 'account_b5c7f579-c581-49b9-9c05-061c1fb5a1f5_destroy', '2012-12-31 12:26:46', '2012-12-31 12:26:46') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = x'451ff261d22f4f4793a36324ab73d65f'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b5c7f579-c581-49b9-9c05-061c1fb5a1f5_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:46', 'account1@before.destroy', '$2a$04$2h3VxrgEA.tFkKFuoyrSS.SBaqspKg1sJcKssp9GOV3NHmFh7rup2', NULL, x'e94f65d0c2eb4fe480a283a6df97bcd9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:46') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e94f65d0c2eb4fe480a283a6df97bcd9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:46', 'User', x'72cc081c67f74f00883c7f2491a08806', '1b7b3fe8d5a654bfdf42dadede26d629', x'e94f65d0c2eb4fe480a283a6df97bcd9', 'User', '2012-12-31 12:26:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e94f65d0c2eb4fe480a283a6df97bcd9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:46', x'fc671d08742d4a26ba1035a842d6a97c', NULL, NULL, NULL, '2012-12-31 12:26:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:46', `updated_at` = '2012-12-31 12:26:46', `subdomain` = 'accountfc671d08-742d-4a26-ba10-35a842d6a97c' WHERE `accounts`.`id` = x'fc671d08742d4a26ba1035a842d6a97c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fc671d08742d4a26ba1035a842d6a97c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fc671d08742d4a26ba1035a842d6a97c', x'9a2e9f311a9a4dba851d59496a518c08', x'e94f65d0c2eb4fe480a283a6df97bcd9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9a2e9f311a9a4dba851d59496a518c08') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a2e9f311a9a4dba851d59496a518c08' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a2e9f311a9a4dba851d59496a518c08', x'd30d59a1f6a64311b139532e0bb2e0df', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9a2e9f311a9a4dba851d59496a518c08') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a2e9f311a9a4dba851d59496a518c08' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a2e9f311a9a4dba851d59496a518c08', x'd824a56845214e6592f387ba071979ef', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (8ms) Date: Mon, 31 Dec 2012 10:26:47 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e184874a41_b4680435d48643cc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:47', x'73d38d2fff6a4c598e7c95326ea54f14', 'jabanilson', NULL, 1, '2012-12-31 12:26:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:26:47', `updated_at` = '2012-12-31 12:26:47', `subdomain` = 'account73d38d2f-ff6a-4c59-8e7c-95326ea54f14' WHERE `accounts`.`id` = x'73d38d2fff6a4c598e7c95326ea54f14'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e94f65d0c2eb4fe480a283a6df97bcd9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'73d38d2fff6a4c598e7c95326ea54f14', x'e9c321a444174d3b8726b432c7847ee1', x'e94f65d0c2eb4fe480a283a6df97bcd9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e9c321a444174d3b8726b432c7847ee1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9c321a444174d3b8726b432c7847ee1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9c321a444174d3b8726b432c7847ee1', x'e2a6b185eba0456ea1a4f2d2f584e3ed', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e9c321a444174d3b8726b432c7847ee1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9c321a444174d3b8726b432c7847ee1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9c321a444174d3b8726b432c7847ee1', x'a7166d360ff84484ad2ca69abe906006', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e94f65d0c2eb4fe480a283a6df97bcd9' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:47', NULL, '--- !ruby/struct:DestroyUserJob\nid: e94f65d0-c2eb-4fe4-80a2-83a6df97bcd9\n', NULL, NULL, NULL, 0, 'user_e94f65d0-c2eb-4fe4-80a2-83a6df97bcd9_destroy', '2012-12-31 12:26:47', '2012-12-31 12:26:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_e94f65d0-c2eb-4fe4-80a2-83a6df97bcd9_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e94f65d0c2eb4fe480a283a6df97bcd9' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e94f65d0c2eb4fe480a283a6df97bcd9' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:47', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 9a2e9f31-1a9a-4dba-851d-59496a518c08\n', NULL, NULL, NULL, 0, 'account_user_9a2e9f31-1a9a-4dba-851d-59496a518c08_destroy', '2012-12-31 12:26:47', '2012-12-31 12:26:47') SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:47', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: e9c321a4-4417-4d3b-8726-b432c7847ee1\n', NULL, NULL, NULL, 0, 'account_user_e9c321a4-4417-4d3b-8726-b432c7847ee1_destroy', '2012-12-31 12:26:47', '2012-12-31 12:26:47') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'e94f65d0c2eb4fe480a283a6df97bcd9' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e94f65d0c2eb4fe480a283a6df97bcd9'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'fc671d08742d4a26ba1035a842d6a97c' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:47', NULL, '--- !ruby/struct:DestroyAccountJob\nid: fc671d08-742d-4a26-ba10-35a842d6a97c\n', NULL, NULL, NULL, 0, 'account_fc671d08-742d-4a26-ba10-35a842d6a97c_destroy', '2012-12-31 12:26:47', '2012-12-31 12:26:47')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'73d38d2fff6a4c598e7c95326ea54f14' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:47', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 73d38d2f-ff6a-4c59-8e7c-95326ea54f14\n', NULL, NULL, NULL, 0, 'account_73d38d2f-ff6a-4c59-8e7c-95326ea54f14_destroy', '2012-12-31 12:26:47', '2012-12-31 12:26:47') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'e94f65d0c2eb4fe480a283a6df97bcd9'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_fc671d08-742d-4a26-ba10-35a842d6a97c_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:47', 'account1@before.destroy', '$2a$04$c76590nsyLC96A6a.4oYL.0/OcmZylU6PklPXyDJciuFOl4dy6Ovm', NULL, x'28520c2e6d19487c8ad5a246e5836675', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'28520c2e6d19487c8ad5a246e5836675' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:47', 'User', x'1eeb6a5078da44f0a5b01e8bd3a03eb3', '0078d0e6894d2c8e0799f4e8867b5104', x'28520c2e6d19487c8ad5a246e5836675', 'User', '2012-12-31 12:26:47') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'28520c2e6d19487c8ad5a246e5836675' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:47', x'8008391da688461e96b570202cb3d586', NULL, NULL, NULL, '2012-12-31 12:26:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:47', `updated_at` = '2012-12-31 12:26:47', `subdomain` = 'account8008391d-a688-461e-96b5-70202cb3d586' WHERE `accounts`.`id` = x'8008391da688461e96b570202cb3d586' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8008391da688461e96b570202cb3d586' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8008391da688461e96b570202cb3d586', x'08c11b41fa88439bb6299efeea18fba3', x'28520c2e6d19487c8ad5a246e5836675') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'08c11b41fa88439bb6299efeea18fba3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08c11b41fa88439bb6299efeea18fba3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08c11b41fa88439bb6299efeea18fba3', x'866d5009ffd048ad917958c18f9f9beb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'08c11b41fa88439bb6299efeea18fba3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08c11b41fa88439bb6299efeea18fba3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08c11b41fa88439bb6299efeea18fba3', x'7c700121b4d949ba9f3890d28b7987d6', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:26:47 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e184871d9a0_b4680435d486446@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'28520c2e6d19487c8ad5a246e5836675' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:26:45', '2012-12-31 12:26:47', 'account2@before.destroy', '$2a$04$JrGDqYALJqAetMiEKDBiYOpbDXfx9Trz88Vt7mK48/joqTmDONOM6', NULL, x'81832f11875d4fb5951f1d4c4471ffbd', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:26:47') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'81832f11875d4fb5951f1d4c4471ffbd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:26:47', 'User', x'd2e72eb84a714b6a9bb6e98e1f84bd41', '58300886d0a434380712ae2ecf79d85c', x'81832f11875d4fb5951f1d4c4471ffbd', 'User', '2012-12-31 12:26:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'81832f11875d4fb5951f1d4c4471ffbd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:26:47', x'0a4959188b4942cbb0c4115a9b57c6e2', NULL, NULL, NULL, '2012-12-31 12:26:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:26:47', `updated_at` = '2012-12-31 12:26:47', `subdomain` = 'account0a495918-8b49-42cb-b0c4-115a9b57c6e2' WHERE `accounts`.`id` = x'0a4959188b4942cbb0c4115a9b57c6e2' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0a4959188b4942cbb0c4115a9b57c6e2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0a4959188b4942cbb0c4115a9b57c6e2', x'bb01f76fb64e4b53a9e53ce6347d4d11', x'81832f11875d4fb5951f1d4c4471ffbd') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bb01f76fb64e4b53a9e53ce6347d4d11') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb01f76fb64e4b53a9e53ce6347d4d11' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb01f76fb64e4b53a9e53ce6347d4d11', x'08f0849896e143979a4d1f2f07e67490', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bb01f76fb64e4b53a9e53ce6347d4d11') LIMIT 1 AccountUser Load (57.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb01f76fb64e4b53a9e53ce6347d4d11' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb01f76fb64e4b53a9e53ce6347d4d11', x'b17482efd3644f0bb9fcabc3822c65d2', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:26:47 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e1848737a10_b4680435d48645b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8008391da688461e96b570202cb3d586' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8008391da688461e96b570202cb3d586', x'4a5e7860ac3446d88916a1d98a352ec4', x'81832f11875d4fb5951f1d4c4471ffbd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4a5e7860ac3446d88916a1d98a352ec4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4a5e7860ac3446d88916a1d98a352ec4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4a5e7860ac3446d88916a1d98a352ec4', x'c2470334d0d247cfa195b2bfb7341767', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4a5e7860ac3446d88916a1d98a352ec4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4a5e7860ac3446d88916a1d98a352ec4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4a5e7860ac3446d88916a1d98a352ec4', x'039aabf111ec4b7e93a8e420bc0ed297', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:47', NULL, '--- !ruby/struct:DestroyUserJob\nid: 28520c2e-6d19-487c-8ad5-a246e5836675\n', NULL, NULL, NULL, 0, 'user_28520c2e-6d19-487c-8ad5-a246e5836675_destroy', '2012-12-31 12:26:47', '2012-12-31 12:26:47')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_28520c2e-6d19-487c-8ad5-a246e5836675_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'28520c2e6d19487c8ad5a246e5836675' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'28520c2e6d19487c8ad5a246e5836675' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:26:47', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 08c11b41-fa88-439b-b629-9efeea18fba3\n', NULL, NULL, NULL, 0, 'account_user_08c11b41-fa88-439b-b629-9efeea18fba3_destroy', '2012-12-31 12:26:47', '2012-12-31 12:26:47') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'28520c2e6d19487c8ad5a246e5836675' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'28520c2e6d19487c8ad5a246e5836675'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'8008391da688461e96b570202cb3d586' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'28520c2e6d19487c8ad5a246e5836675'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8008391d-a688-461e-96b5-70202cb3d586_destroy' LIMIT 1  (0.9ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (0.7ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (10.9ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (0.8ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:09', 'teste@teste.com', '$2a$04$7FY//ryGhjkKHiIBUudtNuZMk11LvrcOSYP0/aY5Y03bQRyJTA2Oi', NULL, x'18525858c4da4f7cbb5c2d2cae9bf89b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'18525858c4da4f7cbb5c2d2cae9bf89b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:09', 'User', x'5270e095143343cd9d1717bca28e3807', '1cf7ed4a39d256481c195afac93f6d35', x'18525858c4da4f7cbb5c2d2cae9bf89b', 'User', '2012-12-31 12:27:09') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'18525858c4da4f7cbb5c2d2cae9bf89b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:09', x'91d2414dd2594ae29852f36b396935d4', NULL, NULL, NULL, '2012-12-31 12:27:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:09', `updated_at` = '2012-12-31 12:27:09', `subdomain` = 'account91d2414d-d259-4ae2-9852-f36b396935d4' WHERE `accounts`.`id` = x'91d2414dd2594ae29852f36b396935d4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'91d2414dd2594ae29852f36b396935d4' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'91d2414dd2594ae29852f36b396935d4', x'199f066e0e04417aa92e698791f8cce1', x'18525858c4da4f7cbb5c2d2cae9bf89b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'199f066e0e04417aa92e698791f8cce1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'199f066e0e04417aa92e698791f8cce1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'199f066e0e04417aa92e698791f8cce1', x'74944cfcba314317a33031e76d4c8ae0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'199f066e0e04417aa92e698791f8cce1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'199f066e0e04417aa92e698791f8cce1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'199f066e0e04417aa92e698791f8cce1', x'aff24f7c418f42a7ba1752a5a25f0241', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (136ms) Date: Mon, 31 Dec 2012 10:27:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1849de1bc3_b5180435d4854814@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:09', 'teste@teste.com', '$2a$04$n8KUu3kYL7yBICHWJ/E69euu6Co7Lth1n3kYCD7pO5uNB9vLWUnGq', NULL, x'e7495ce12f204e32affaf0c3553e8da2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e7495ce12f204e32affaf0c3553e8da2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:09', 'User', x'60f2ab03617e412282bd7b937c8d68c8', '25645c067e6e9287f131f91174142f10', x'e7495ce12f204e32affaf0c3553e8da2', 'User', '2012-12-31 12:27:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e7495ce12f204e32affaf0c3553e8da2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:09', x'fae9788ad378441581edf2f2007bf33b', NULL, NULL, NULL, '2012-12-31 12:27:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:09', `updated_at` = '2012-12-31 12:27:09', `subdomain` = 'accountfae9788a-d378-4415-81ed-f2f2007bf33b' WHERE `accounts`.`id` = x'fae9788ad378441581edf2f2007bf33b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fae9788ad378441581edf2f2007bf33b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fae9788ad378441581edf2f2007bf33b', x'a918587fda304d0197a08a32f197b946', x'e7495ce12f204e32affaf0c3553e8da2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a918587fda304d0197a08a32f197b946') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a918587fda304d0197a08a32f197b946' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a918587fda304d0197a08a32f197b946', x'e2de78ea1ed24c6195dae856434f597b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a918587fda304d0197a08a32f197b946') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a918587fda304d0197a08a32f197b946' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a918587fda304d0197a08a32f197b946', x'dbd657b356d443c29df9deed01022a71', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1849e2a9b_b5180435d485491a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:10', 'teste@teste.com', '$2a$04$qP382Rw9z56s8n38PO5XT.6ggvMqcXWoXdu0J4sbbakEkXyDc4hwO', NULL, x'0d0f14e37c434d469c6ee45e048709bb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0d0f14e37c434d469c6ee45e048709bb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'badf4e4546d64ce8a1267007379864a1', '84538826c7db1e4ecf84181f7b5cc0d0', x'0d0f14e37c434d469c6ee45e048709bb', 'User', '2012-12-31 12:27:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0d0f14e37c434d469c6ee45e048709bb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'48e03c74efcb486d95e739536394681d', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'account48e03c74-efcb-486d-95e7-39536394681d' WHERE `accounts`.`id` = x'48e03c74efcb486d95e739536394681d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'48e03c74efcb486d95e739536394681d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'48e03c74efcb486d95e739536394681d', x'3c1a06f4faea4ade9cc7a0928f8ae143', x'0d0f14e37c434d469c6ee45e048709bb') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c1a06f4faea4ade9cc7a0928f8ae143') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c1a06f4faea4ade9cc7a0928f8ae143' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c1a06f4faea4ade9cc7a0928f8ae143', x'9d98b08ee2084d77a483435c651b92fb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c1a06f4faea4ade9cc7a0928f8ae143') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c1a06f4faea4ade9cc7a0928f8ae143' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c1a06f4faea4ade9cc7a0928f8ae143', x'c9b241e1dfd14914a8bdbd43c9e1da0b', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1849ef0a1_b5180435d485505a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:10', 'teste@teste.com', '$2a$04$jfk.SEl1Fy0dZD3h4cNSQu0s3Uy9GRkEkAduNcdgAKWun3d511hnS', NULL, x'3ccaa57a4a7c4155a6bdeaacbd82fe25', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3ccaa57a4a7c4155a6bdeaacbd82fe25' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'921e5fb3ac3941a685799dbb8ce1d542', 'a2ef4f6cf548c75e55845ceddc1101f7', x'3ccaa57a4a7c4155a6bdeaacbd82fe25', 'User', '2012-12-31 12:27:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3ccaa57a4a7c4155a6bdeaacbd82fe25' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'ceab4d0cbfa4440daa8fcf5444675bda', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'accountceab4d0c-bfa4-440d-aa8f-cf5444675bda' WHERE `accounts`.`id` = x'ceab4d0cbfa4440daa8fcf5444675bda' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ceab4d0cbfa4440daa8fcf5444675bda' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ceab4d0cbfa4440daa8fcf5444675bda', x'db7fd5b4d6ec44368e7972b756579add', x'3ccaa57a4a7c4155a6bdeaacbd82fe25') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'db7fd5b4d6ec44368e7972b756579add') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'db7fd5b4d6ec44368e7972b756579add' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'db7fd5b4d6ec44368e7972b756579add', x'c70077f0d9854802a06d5f56bfa98bfd', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'db7fd5b4d6ec44368e7972b756579add') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'db7fd5b4d6ec44368e7972b756579add' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'db7fd5b4d6ec44368e7972b756579add', x'c275c2f6d4944461ad0e2ae9f44ffa2f', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1849e1b992_b5180435d485517a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3ccaa57a4a7c4155a6bdeaacbd82fe25'  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:10', 'teste@teste.com', '$2a$04$p5MKoanlZoZ64k2743nsi.5uNFh5OE7qmDr2U0Ny0Jol0YO5Q.Rge', NULL, x'af3829ea3cf94a48a4a4526c52db9612', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'af3829ea3cf94a48a4a4526c52db9612' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'f88f4a778d694cd7aefc06ae3265e3a9', '934fc20589347aed4b1aa528fba253a6', x'af3829ea3cf94a48a4a4526c52db9612', 'User', '2012-12-31 12:27:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'af3829ea3cf94a48a4a4526c52db9612' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'508012423cea4a6d8bbb233e0be8dbee', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'account50801242-3cea-4a6d-8bbb-233e0be8dbee' WHERE `accounts`.`id` = x'508012423cea4a6d8bbb233e0be8dbee' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'508012423cea4a6d8bbb233e0be8dbee' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'508012423cea4a6d8bbb233e0be8dbee', x'75967ec146904502b71903d8a6a01f2c', x'af3829ea3cf94a48a4a4526c52db9612') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'75967ec146904502b71903d8a6a01f2c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'75967ec146904502b71903d8a6a01f2c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'75967ec146904502b71903d8a6a01f2c', x'91244c7b160c442698df3d54b37ef3ca', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'75967ec146904502b71903d8a6a01f2c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'75967ec146904502b71903d8a6a01f2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'75967ec146904502b71903d8a6a01f2c', x'0c42cf4068774d17b6ded4c0584c3c9c', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1849e47161_b5180435d4855283@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:10', 'teste@teste.com', '$2a$04$zCo7igZSuxx/To2NjsPGV.kOpIRfgaFpgPszPM4CT/zvlEBK0tRBe', NULL, x'21dceaaaf0264dc3a638dc2cf37d00d0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'21dceaaaf0264dc3a638dc2cf37d00d0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'c62d78a1c7bc48f685e7f8f3e253b45a', 'be7b2bc6482503e7058b0b9467df5c75', x'21dceaaaf0264dc3a638dc2cf37d00d0', 'User', '2012-12-31 12:27:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'21dceaaaf0264dc3a638dc2cf37d00d0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'af157e4f371141daa5d035125a55c416', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'accountaf157e4f-3711-41da-a5d0-35125a55c416' WHERE `accounts`.`id` = x'af157e4f371141daa5d035125a55c416' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'af157e4f371141daa5d035125a55c416' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'af157e4f371141daa5d035125a55c416', x'21fdbd5d41e0458d9b49c84fccdb1f44', x'21dceaaaf0264dc3a638dc2cf37d00d0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'21fdbd5d41e0458d9b49c84fccdb1f44') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21fdbd5d41e0458d9b49c84fccdb1f44' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21fdbd5d41e0458d9b49c84fccdb1f44', x'155a08f70580428ab916617c10e91baf', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'21fdbd5d41e0458d9b49c84fccdb1f44') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21fdbd5d41e0458d9b49c84fccdb1f44' LIMIT 1 SQL (0.8ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21fdbd5d41e0458d9b49c84fccdb1f44', x'8fb9943088914ad9808a2372824d8da9', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1849e57ef0_b5180435d48553b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:10', 'account1@before.destroy', '$2a$04$4V/1kKuqv4UbJy7jnTIe2.qjsV85.oek5EMy01p.J.jT1Hox83RUi', NULL, x'a2a59c69e8334d17b4af59fefea7a17e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a2a59c69e8334d17b4af59fefea7a17e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'cae84137613542089dd20a68665922be', '0c124df340ae8b1c048dcdef73c42e51', x'a2a59c69e8334d17b4af59fefea7a17e', 'User', '2012-12-31 12:27:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a2a59c69e8334d17b4af59fefea7a17e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'4a7f868fe7e14529a63a843c479c5505', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'account4a7f868f-e7e1-4529-a63a-843c479c5505' WHERE `accounts`.`id` = x'4a7f868fe7e14529a63a843c479c5505' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4a7f868fe7e14529a63a843c479c5505' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4a7f868fe7e14529a63a843c479c5505', x'13c259c7153e427bb2edbd3ae23bd53b', x'a2a59c69e8334d17b4af59fefea7a17e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'13c259c7153e427bb2edbd3ae23bd53b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'13c259c7153e427bb2edbd3ae23bd53b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'13c259c7153e427bb2edbd3ae23bd53b', x'cf6843c0ec1b4ea38baf27261c52eaa3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'13c259c7153e427bb2edbd3ae23bd53b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'13c259c7153e427bb2edbd3ae23bd53b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'13c259c7153e427bb2edbd3ae23bd53b', x'daff003c339549d8a77ef5e8bd6879ef', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (10ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1849e66a33_b5180435d48554b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a2a59c69e8334d17b4af59fefea7a17e' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyUserJob\nid: a2a59c69-e833-4d17-b4af-59fefea7a17e\n', NULL, NULL, NULL, 0, 'user_a2a59c69-e833-4d17-b4af-59fefea7a17e_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a2a59c69-e833-4d17-b4af-59fefea7a17e_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a2a59c69e8334d17b4af59fefea7a17e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a2a59c69e8334d17b4af59fefea7a17e' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 13c259c7-153e-427b-b2ed-bd3ae23bd53b\n', NULL, NULL, NULL, 0, 'account_user_13c259c7-153e-427b-b2ed-bd3ae23bd53b_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'a2a59c69e8334d17b4af59fefea7a17e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a2a59c69e8334d17b4af59fefea7a17e'  (0.1ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'4a7f868fe7e14529a63a843c479c5505' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 4a7f868f-e7e1-4529-a63a-843c479c5505\n', NULL, NULL, NULL, 0, 'account_4a7f868f-e7e1-4529-a63a-843c479c5505_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = x'a2a59c69e8334d17b4af59fefea7a17e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4a7f868f-e7e1-4529-a63a-843c479c5505_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:10', 'account1@before.destroy', '$2a$04$t36OX7BTYCKyI/DHJwMWselNLxwZ3drw2TYkyHO.dyvUpK/qNnI.a', NULL, x'd9d1e65a60cd414f8e003a8be37760c1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd9d1e65a60cd414f8e003a8be37760c1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'a46a77c86881405cb3266c2fd6c9a7b0', '98c45a9e0e09bebfc7a2e855e258b78d', x'd9d1e65a60cd414f8e003a8be37760c1', 'User', '2012-12-31 12:27:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd9d1e65a60cd414f8e003a8be37760c1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'de0783fac6ba4d13aa59f86b3f8ee537', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'accountde0783fa-c6ba-4d13-aa59-f86b3f8ee537' WHERE `accounts`.`id` = x'de0783fac6ba4d13aa59f86b3f8ee537' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'de0783fac6ba4d13aa59f86b3f8ee537' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'de0783fac6ba4d13aa59f86b3f8ee537', x'254400f50b344365bcb447fb07b54eec', x'd9d1e65a60cd414f8e003a8be37760c1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'254400f50b344365bcb447fb07b54eec') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'254400f50b344365bcb447fb07b54eec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'254400f50b344365bcb447fb07b54eec', x'c3d6dad7169e40468aa7b857e32be836', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'254400f50b344365bcb447fb07b54eec') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'254400f50b344365bcb447fb07b54eec' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'254400f50b344365bcb447fb07b54eec', x'1a4d423802fa45c2bd0bcc1e090bdfef', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1849e955e9_b5180435d485554a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'9128592934744d4a891c57fbf13ce9fc', 'jabanilson', NULL, 1, '2012-12-31 12:27:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'account91285929-3474-4d4a-891c-57fbf13ce9fc' WHERE `accounts`.`id` = x'9128592934744d4a891c57fbf13ce9fc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd9d1e65a60cd414f8e003a8be37760c1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9128592934744d4a891c57fbf13ce9fc', x'fb739ca5defe4cd88e88ad68cb4ae649', x'd9d1e65a60cd414f8e003a8be37760c1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fb739ca5defe4cd88e88ad68cb4ae649') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb739ca5defe4cd88e88ad68cb4ae649' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb739ca5defe4cd88e88ad68cb4ae649', x'ddf154f6e7fa43c6ba29d52992e95ab3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fb739ca5defe4cd88e88ad68cb4ae649') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb739ca5defe4cd88e88ad68cb4ae649' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb739ca5defe4cd88e88ad68cb4ae649', x'28ee691f002b42699e0ca957d32b84fb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd9d1e65a60cd414f8e003a8be37760c1' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyUserJob\nid: d9d1e65a-60cd-414f-8e00-3a8be37760c1\n', NULL, NULL, NULL, 0, 'user_d9d1e65a-60cd-414f-8e00-3a8be37760c1_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_d9d1e65a-60cd-414f-8e00-3a8be37760c1_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd9d1e65a60cd414f8e003a8be37760c1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd9d1e65a60cd414f8e003a8be37760c1' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 254400f5-0b34-4365-bcb4-47fb07b54eec\n', NULL, NULL, NULL, 0, 'account_user_254400f5-0b34-4365-bcb4-47fb07b54eec_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: fb739ca5-defe-4cd8-8e88-ad68cb4ae649\n', NULL, NULL, NULL, 0, 'account_user_fb739ca5-defe-4cd8-8e88-ad68cb4ae649_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd9d1e65a60cd414f8e003a8be37760c1' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd9d1e65a60cd414f8e003a8be37760c1'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'de0783fac6ba4d13aa59f86b3f8ee537' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyAccountJob\nid: de0783fa-c6ba-4d13-aa59-f86b3f8ee537\n', NULL, NULL, NULL, 0, 'account_de0783fa-c6ba-4d13-aa59-f86b3f8ee537_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'9128592934744d4a891c57fbf13ce9fc' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 91285929-3474-4d4a-891c-57fbf13ce9fc\n', NULL, NULL, NULL, 0, 'account_91285929-3474-4d4a-891c-57fbf13ce9fc_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'd9d1e65a60cd414f8e003a8be37760c1'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_de0783fa-c6ba-4d13-aa59-f86b3f8ee537_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:10', 'account1@before.destroy', '$2a$04$wYwYBEVth042/zZlluWeIOKov4OAdCNru97pHNgT9zQt6ORsKZlCW', NULL, x'8842fc4a41c04dc69aabf91176222731', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8842fc4a41c04dc69aabf91176222731' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'2ceb1d505fb9469d818881016ad02bdd', 'b119711cb7affab307515ee5e80a2d25', x'8842fc4a41c04dc69aabf91176222731', 'User', '2012-12-31 12:27:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8842fc4a41c04dc69aabf91176222731' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'ecc270359dbd441795b32b86d7871919', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'accountecc27035-9dbd-4417-95b3-2b86d7871919' WHERE `accounts`.`id` = x'ecc270359dbd441795b32b86d7871919' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecc270359dbd441795b32b86d7871919' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ecc270359dbd441795b32b86d7871919', x'fd87f90657154170923812b3ab4a220c', x'8842fc4a41c04dc69aabf91176222731') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fd87f90657154170923812b3ab4a220c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd87f90657154170923812b3ab4a220c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd87f90657154170923812b3ab4a220c', x'eeb94027abd64abf83ce3a08fd7d7751', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fd87f90657154170923812b3ab4a220c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd87f90657154170923812b3ab4a220c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd87f90657154170923812b3ab4a220c', x'dabd28eebebe4f5a85c03fb6443854de', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1849eadc7f_b5180435d4855666@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8842fc4a41c04dc69aabf91176222731' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:09', '2012-12-31 12:27:10', 'account2@before.destroy', '$2a$04$DYnrFz8twL7yrxxt3KEg4uzyJzTNyBBtZ63G9jwZ3Cv4xG9ekwfEK', NULL, x'2dd46d52d15f4067a48eb1e4fabebd96', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2dd46d52d15f4067a48eb1e4fabebd96' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'c888bde0d7eb4cb9b7a182812d4a225c', '01200f039ee920005496060157f28295', x'2dd46d52d15f4067a48eb1e4fabebd96', 'User', '2012-12-31 12:27:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2dd46d52d15f4067a48eb1e4fabebd96' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'7a6a2e31e63941b2b3309e332581dff7', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'account7a6a2e31-e639-41b2-b330-9e332581dff7' WHERE `accounts`.`id` = x'7a6a2e31e63941b2b3309e332581dff7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a6a2e31e63941b2b3309e332581dff7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7a6a2e31e63941b2b3309e332581dff7', x'd0532a5015b449cf9917edf09b6a18ad', x'2dd46d52d15f4067a48eb1e4fabebd96') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd0532a5015b449cf9917edf09b6a18ad') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0532a5015b449cf9917edf09b6a18ad' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0532a5015b449cf9917edf09b6a18ad', x'0359cb04aab448eba11ac72ccd95d00d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd0532a5015b449cf9917edf09b6a18ad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0532a5015b449cf9917edf09b6a18ad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0532a5015b449cf9917edf09b6a18ad', x'94802ede6b194cb7bca604be3915153c', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:27:10 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e1849ec8d21_b5180435d4855749@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecc270359dbd441795b32b86d7871919' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ecc270359dbd441795b32b86d7871919', x'2685db865b6444d89500fb3a5b1c11e3', x'2dd46d52d15f4067a48eb1e4fabebd96') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2685db865b6444d89500fb3a5b1c11e3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2685db865b6444d89500fb3a5b1c11e3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2685db865b6444d89500fb3a5b1c11e3', x'6beebfa0aea7464685517673ab16a2b3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2685db865b6444d89500fb3a5b1c11e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2685db865b6444d89500fb3a5b1c11e3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2685db865b6444d89500fb3a5b1c11e3', x'9dec6b66e3304861832ba0a1bb00a187', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyUserJob\nid: 8842fc4a-41c0-4dc6-9aab-f91176222731\n', NULL, NULL, NULL, 0, 'user_8842fc4a-41c0-4dc6-9aab-f91176222731_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8842fc4a-41c0-4dc6-9aab-f91176222731_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8842fc4a41c04dc69aabf91176222731' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8842fc4a41c04dc69aabf91176222731' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:27:10', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: fd87f906-5715-4170-9238-12b3ab4a220c\n', NULL, NULL, NULL, 0, 'account_user_fd87f906-5715-4170-9238-12b3ab4a220c_destroy', '2012-12-31 12:27:10', '2012-12-31 12:27:10') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8842fc4a41c04dc69aabf91176222731' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8842fc4a41c04dc69aabf91176222731'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'ecc270359dbd441795b32b86d7871919' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'8842fc4a41c04dc69aabf91176222731'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ecc27035-9dbd-4417-95b3-2b86d7871919_destroy' LIMIT 1  (3.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:27:10', '2012-12-31 12:27:10', '', '', 1, x'd04085b037c045a1b74884d13d3ce327', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:27:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd04085b037c045a1b74884d13d3ce327' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:27:10', 'User', x'df55fae272c7452bba990a79b7626748', 'd1fc42761209428268f9848cbbae11f1', x'd04085b037c045a1b74884d13d3ce327', 'User', '2012-12-31 12:27:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd04085b037c045a1b74884d13d3ce327' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:27:10', x'af90227b74f24205a63a75e96dfe213b', NULL, NULL, NULL, '2012-12-31 12:27:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:27:10', `updated_at` = '2012-12-31 12:27:10', `subdomain` = 'accountaf90227b-74f2-4205-a63a-75e96dfe213b' WHERE `accounts`.`id` = x'af90227b74f24205a63a75e96dfe213b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'af90227b74f24205a63a75e96dfe213b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'af90227b74f24205a63a75e96dfe213b', x'8f4ccdb2e23b48cd8f236923d9b914d8', x'd04085b037c045a1b74884d13d3ce327') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8f4ccdb2e23b48cd8f236923d9b914d8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f4ccdb2e23b48cd8f236923d9b914d8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f4ccdb2e23b48cd8f236923d9b914d8', x'b85e73a17f6d4b3796d88a2e68d30f60', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8f4ccdb2e23b48cd8f236923d9b914d8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f4ccdb2e23b48cd8f236923d9b914d8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f4ccdb2e23b48cd8f236923d9b914d8', x'2d5debd2de554398b333f6db7209abc3', 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.0ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (1.2ms) TRUNCATE TABLE `api_tokens`;  (13.1ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:01', 'teste@teste.com', '$2a$04$DMNxx9GtaWO80FDK8KsR2OIIJ7Ph38qY2J4Mdh/.UaTein0QbOm6e', NULL, x'7a970dad59654b318b90845c96e453a9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7a970dad59654b318b90845c96e453a9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:01', 'User', x'02daa40f65f84852b9589eaf979a0cc1', 'b0fa961d0c095cd3806fb9676a23a533', x'7a970dad59654b318b90845c96e453a9', 'User', '2012-12-31 12:28:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7a970dad59654b318b90845c96e453a9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:01', x'2af6d8861da945aaa0e72b200d3e32f2', NULL, NULL, NULL, '2012-12-31 12:28:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:01', `updated_at` = '2012-12-31 12:28:01', `subdomain` = 'account2af6d886-1da9-45aa-a0e7-2b200d3e32f2' WHERE `accounts`.`id` = x'2af6d8861da945aaa0e72b200d3e32f2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2af6d8861da945aaa0e72b200d3e32f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2af6d8861da945aaa0e72b200d3e32f2', x'98725fbb7a864aab9ff03fb8b66c0a58', x'7a970dad59654b318b90845c96e453a9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'98725fbb7a864aab9ff03fb8b66c0a58') LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'98725fbb7a864aab9ff03fb8b66c0a58' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'98725fbb7a864aab9ff03fb8b66c0a58', x'f3ef82ce8dd643f79797f4c368393d8b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'98725fbb7a864aab9ff03fb8b66c0a58') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'98725fbb7a864aab9ff03fb8b66c0a58' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'98725fbb7a864aab9ff03fb8b66c0a58', x'b7281982a8d049e787ac1b28be7b110a', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (139ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e184d2aa49_b5b80435d48100ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'teste@teste.com', '$2a$04$r0D0VRtsEyQ0xOvoKDwOROD2z3nDet8SSeq22G4AXP4Y4ID9g/Oei', NULL, x'7bb153fc3593474983a0ed9cdbdcfa9c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7bb153fc3593474983a0ed9cdbdcfa9c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'5728be8e09a84e6eb24e870fd42c5978', '693ff48e3f55eaba9d898cf04455a364', x'7bb153fc3593474983a0ed9cdbdcfa9c', 'User', '2012-12-31 12:28:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7bb153fc3593474983a0ed9cdbdcfa9c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'a74f8d626d6f4ecd93db2e675ef951c0', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'accounta74f8d62-6d6f-4ecd-93db-2e675ef951c0' WHERE `accounts`.`id` = x'a74f8d626d6f4ecd93db2e675ef951c0' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a74f8d626d6f4ecd93db2e675ef951c0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a74f8d626d6f4ecd93db2e675ef951c0', x'3b860119553947db86d33185de57050b', x'7bb153fc3593474983a0ed9cdbdcfa9c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3b860119553947db86d33185de57050b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b860119553947db86d33185de57050b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b860119553947db86d33185de57050b', x'f5540d73e12f4defb55a052ae4cba3a3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3b860119553947db86d33185de57050b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b860119553947db86d33185de57050b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b860119553947db86d33185de57050b', x'74952eb8a3df4b1396c3f04617a995f6', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e184d21ff6b_b5b80435d481018a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'teste@teste.com', '$2a$04$EcumDuHLHyZAxm7AzF.r0u7KP4RaaU9yRk1x3WnCFAEW2rX36LTKC', NULL, x'e0155f3ba2a74e389bbba1631b33f67b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e0155f3ba2a74e389bbba1631b33f67b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'b7c816a3f0e740beb5cfe485558b48c5', 'c71c6b92217b4147862bc322a22320f9', x'e0155f3ba2a74e389bbba1631b33f67b', 'User', '2012-12-31 12:28:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e0155f3ba2a74e389bbba1631b33f67b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'd357a53170e74949b12344585bccfc49', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'accountd357a531-70e7-4949-b123-44585bccfc49' WHERE `accounts`.`id` = x'd357a53170e74949b12344585bccfc49' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd357a53170e74949b12344585bccfc49' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd357a53170e74949b12344585bccfc49', x'7cc2ef0a6cac451b98ae00b428b086be', x'e0155f3ba2a74e389bbba1631b33f67b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7cc2ef0a6cac451b98ae00b428b086be') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7cc2ef0a6cac451b98ae00b428b086be' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7cc2ef0a6cac451b98ae00b428b086be', x'244cb7f0680242448eadb8afa9454f3c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7cc2ef0a6cac451b98ae00b428b086be') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7cc2ef0a6cac451b98ae00b428b086be' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7cc2ef0a6cac451b98ae00b428b086be', x'e87388b27a564c3ba7932af0850c37a3', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e184d22ba85_b5b80435d481029c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'teste@teste.com', '$2a$04$pUqeaZbqAMa96JqEmNgAW.BQMkQwqoGXMVmuGoZHtTgUOpXvRPIA2', NULL, x'594b3e1cfffb4433b13970a256ccc2bb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'594b3e1cfffb4433b13970a256ccc2bb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'ef460a52c4c2416a83415929e9bd7d63', '8c62d696c75e0621f1a87a1b05254493', x'594b3e1cfffb4433b13970a256ccc2bb', 'User', '2012-12-31 12:28:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'594b3e1cfffb4433b13970a256ccc2bb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'a2e600487d8b49b78b9be1c81a2767f6', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'accounta2e60048-7d8b-49b7-8b9b-e1c81a2767f6' WHERE `accounts`.`id` = x'a2e600487d8b49b78b9be1c81a2767f6' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a2e600487d8b49b78b9be1c81a2767f6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a2e600487d8b49b78b9be1c81a2767f6', x'66ff40411df54fb196e415f3b49ce527', x'594b3e1cfffb4433b13970a256ccc2bb') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'66ff40411df54fb196e415f3b49ce527') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66ff40411df54fb196e415f3b49ce527' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66ff40411df54fb196e415f3b49ce527', x'4875f2df3a7e450eb83cf5fbc046b760', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'66ff40411df54fb196e415f3b49ce527') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66ff40411df54fb196e415f3b49ce527' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66ff40411df54fb196e415f3b49ce527', x'f08a2c8c52e645fc8d38fd8fad62a6fe', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e184d238482_b5b80435d48103d1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'594b3e1cfffb4433b13970a256ccc2bb'  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'teste@teste.com', '$2a$04$.4FOv.pFwpxJouFcvDhAxuxgbKobPCKbKeA0A84VHDzVqTrZ1oa22', NULL, x'4fa10cd4d41f4167ad3e53fad1482818', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4fa10cd4d41f4167ad3e53fad1482818' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'5d73c7ae8cfb474fafe3c0a6e6a2d98b', '17169c9e1b4b3cfb84a6aa2052a41a80', x'4fa10cd4d41f4167ad3e53fad1482818', 'User', '2012-12-31 12:28:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4fa10cd4d41f4167ad3e53fad1482818' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'3ccade5cc1314c6189e24f5239106c0f', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'account3ccade5c-c131-4c61-89e2-4f5239106c0f' WHERE `accounts`.`id` = x'3ccade5cc1314c6189e24f5239106c0f' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3ccade5cc1314c6189e24f5239106c0f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3ccade5cc1314c6189e24f5239106c0f', x'398ef2e5c74c431aa7eab375bd31aecf', x'4fa10cd4d41f4167ad3e53fad1482818') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'398ef2e5c74c431aa7eab375bd31aecf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'398ef2e5c74c431aa7eab375bd31aecf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'398ef2e5c74c431aa7eab375bd31aecf', x'36601893958d4bfc83079a2e30f03623', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'398ef2e5c74c431aa7eab375bd31aecf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'398ef2e5c74c431aa7eab375bd31aecf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'398ef2e5c74c431aa7eab375bd31aecf', x'1768d03bc58a433b8ab72ecaf1a87186', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e184d2633fb_b5b80435d481044f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'teste@teste.com', '$2a$04$qPQZtIKSgC9Xwe94h9td7uCFPs3tkbo0opCQUGYbCQF.rzrHU5KUS', NULL, x'afb4d6a795644bc8b05bdc964013e3f8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'afb4d6a795644bc8b05bdc964013e3f8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'b71ea16041944cd2a2c1da097fdb7236', '8b21e110a61e0e754058f8e0f3e67af0', x'afb4d6a795644bc8b05bdc964013e3f8', 'User', '2012-12-31 12:28:02') ApiToken Load (1.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'afb4d6a795644bc8b05bdc964013e3f8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'5e9391fd4b35413a8d72067676558899', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'account5e9391fd-4b35-413a-8d72-067676558899' WHERE `accounts`.`id` = x'5e9391fd4b35413a8d72067676558899' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5e9391fd4b35413a8d72067676558899' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e9391fd4b35413a8d72067676558899', x'9f41e7773096456ea8ac974551114c4e', x'afb4d6a795644bc8b05bdc964013e3f8') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9f41e7773096456ea8ac974551114c4e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f41e7773096456ea8ac974551114c4e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f41e7773096456ea8ac974551114c4e', x'2d77032986084885affb1d5ea6f206a1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9f41e7773096456ea8ac974551114c4e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f41e7773096456ea8ac974551114c4e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f41e7773096456ea8ac974551114c4e', x'7de48ed0e79d46e3b242badc3e6cc6de', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (10ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e184d274492_b5b80435d4810518@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'account1@before.destroy', '$2a$04$RluFAJ4ngFF9dBC86YZvyu4McPU0rm7uGwOv4j5Fh1csegTSWavoK', NULL, x'6db82d2155b64d96979056d1ad5545fe', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6db82d2155b64d96979056d1ad5545fe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'9558dcdf3e8c4b24b13c8ac6234f5b45', '3afc9d6a1953125746279341dcc48c4a', x'6db82d2155b64d96979056d1ad5545fe', 'User', '2012-12-31 12:28:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6db82d2155b64d96979056d1ad5545fe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'c3f3d92b9da1445aa968b823f87b597e', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'accountc3f3d92b-9da1-445a-a968-b823f87b597e' WHERE `accounts`.`id` = x'c3f3d92b9da1445aa968b823f87b597e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c3f3d92b9da1445aa968b823f87b597e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c3f3d92b9da1445aa968b823f87b597e', x'b6a4ccb740a944618be3ab303c77ad02', x'6db82d2155b64d96979056d1ad5545fe') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b6a4ccb740a944618be3ab303c77ad02') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6a4ccb740a944618be3ab303c77ad02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6a4ccb740a944618be3ab303c77ad02', x'485fa2e8411b44a0ae544a1e35448016', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b6a4ccb740a944618be3ab303c77ad02') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6a4ccb740a944618be3ab303c77ad02' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6a4ccb740a944618be3ab303c77ad02', x'4dad28eba32d4fb4a7f870913ca060aa', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (9ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e184d28417c_b5b80435d48106f0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6db82d2155b64d96979056d1ad5545fe' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyUserJob\nid: 6db82d21-55b6-4d96-9790-56d1ad5545fe\n', NULL, NULL, NULL, 0, 'user_6db82d21-55b6-4d96-9790-56d1ad5545fe_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6db82d21-55b6-4d96-9790-56d1ad5545fe_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6db82d2155b64d96979056d1ad5545fe' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6db82d2155b64d96979056d1ad5545fe' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: b6a4ccb7-40a9-4461-8be3-ab303c77ad02\n', NULL, NULL, NULL, 0, 'account_user_b6a4ccb7-40a9-4461-8be3-ab303c77ad02_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'6db82d2155b64d96979056d1ad5545fe' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6db82d2155b64d96979056d1ad5545fe'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'c3f3d92b9da1445aa968b823f87b597e' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyAccountJob\nid: c3f3d92b-9da1-445a-a968-b823f87b597e\n', NULL, NULL, NULL, 0, 'account_c3f3d92b-9da1-445a-a968-b823f87b597e_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = x'6db82d2155b64d96979056d1ad5545fe'  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c3f3d92b-9da1-445a-a968-b823f87b597e_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'account1@before.destroy', '$2a$04$w4e1m3MtKKeAZAj.QLyk7Oq6/QLcuN/sa/lnOr8cnfZi6oCoX6OTO', NULL, x'46b956482f5c4279b57b42f63d0e2b3b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'46b956482f5c4279b57b42f63d0e2b3b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'ba76f372e8584b94b36cef196ab14c3d', 'bcbee5c83bfa5c80e62ef521b3cc2bad', x'46b956482f5c4279b57b42f63d0e2b3b', 'User', '2012-12-31 12:28:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'46b956482f5c4279b57b42f63d0e2b3b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'775f69e6709d4767a34a73b1c4431a17', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'account775f69e6-709d-4767-a34a-73b1c4431a17' WHERE `accounts`.`id` = x'775f69e6709d4767a34a73b1c4431a17' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'775f69e6709d4767a34a73b1c4431a17' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'775f69e6709d4767a34a73b1c4431a17', x'eaef71c69bec47b9bd73440e11ebe356', x'46b956482f5c4279b57b42f63d0e2b3b') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eaef71c69bec47b9bd73440e11ebe356') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaef71c69bec47b9bd73440e11ebe356' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaef71c69bec47b9bd73440e11ebe356', x'91e0a3bc34914091be74ac191630e848', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eaef71c69bec47b9bd73440e11ebe356') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaef71c69bec47b9bd73440e11ebe356' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaef71c69bec47b9bd73440e11ebe356', x'a7dca7e79a844ad3bddbbb441d52782e', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e184d2b10fc_b5b80435d481078d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'b88c53f631164b0cb809e63ec776fe0d', 'jabanilson', NULL, 1, '2012-12-31 12:28:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'accountb88c53f6-3116-4b0c-b809-e63ec776fe0d' WHERE `accounts`.`id` = x'b88c53f631164b0cb809e63ec776fe0d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'46b956482f5c4279b57b42f63d0e2b3b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b88c53f631164b0cb809e63ec776fe0d', x'a68dc0dd82ef4b5bb74fab5f5b06773e', x'46b956482f5c4279b57b42f63d0e2b3b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a68dc0dd82ef4b5bb74fab5f5b06773e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a68dc0dd82ef4b5bb74fab5f5b06773e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a68dc0dd82ef4b5bb74fab5f5b06773e', x'5bd9b1acde124693addcd1fe8fb5ee5d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a68dc0dd82ef4b5bb74fab5f5b06773e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a68dc0dd82ef4b5bb74fab5f5b06773e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a68dc0dd82ef4b5bb74fab5f5b06773e', x'49735c130b624faa938d5e614d4f124e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'46b956482f5c4279b57b42f63d0e2b3b' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyUserJob\nid: 46b95648-2f5c-4279-b57b-42f63d0e2b3b\n', NULL, NULL, NULL, 0, 'user_46b95648-2f5c-4279-b57b-42f63d0e2b3b_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_46b95648-2f5c-4279-b57b-42f63d0e2b3b_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'46b956482f5c4279b57b42f63d0e2b3b' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'46b956482f5c4279b57b42f63d0e2b3b' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: a68dc0dd-82ef-4b5b-b74f-ab5f5b06773e\n', NULL, NULL, NULL, 0, 'account_user_a68dc0dd-82ef-4b5b-b74f-ab5f5b06773e_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: eaef71c6-9bec-47b9-bd73-440e11ebe356\n', NULL, NULL, NULL, 0, 'account_user_eaef71c6-9bec-47b9-bd73-440e11ebe356_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'46b956482f5c4279b57b42f63d0e2b3b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'46b956482f5c4279b57b42f63d0e2b3b'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'b88c53f631164b0cb809e63ec776fe0d' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyAccountJob\nid: b88c53f6-3116-4b0c-b809-e63ec776fe0d\n', NULL, NULL, NULL, 0, 'account_b88c53f6-3116-4b0c-b809-e63ec776fe0d_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'775f69e6709d4767a34a73b1c4431a17' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 775f69e6-709d-4767-a34a-73b1c4431a17\n', NULL, NULL, NULL, 0, 'account_775f69e6-709d-4767-a34a-73b1c4431a17_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'46b956482f5c4279b57b42f63d0e2b3b'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b88c53f6-3116-4b0c-b809-e63ec776fe0d_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'account1@before.destroy', '$2a$04$Sko1i0g9IVAwl5MAltE42urnkI3i9fh1ghCx2dhgrIOYNulEZT.zK', NULL, x'8648fa1f35dd45719746c7d1f51305bd', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8648fa1f35dd45719746c7d1f51305bd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'e437c98f828641ffafc73b1576a2d423', '94c7977928d925dac6bfeeeaf8ab9bd0', x'8648fa1f35dd45719746c7d1f51305bd', 'User', '2012-12-31 12:28:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8648fa1f35dd45719746c7d1f51305bd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'5f3add2d190e4884b0c777e5f18932be', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'account5f3add2d-190e-4884-b0c7-77e5f18932be' WHERE `accounts`.`id` = x'5f3add2d190e4884b0c777e5f18932be' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5f3add2d190e4884b0c777e5f18932be' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5f3add2d190e4884b0c777e5f18932be', x'b67ac51a832749f58a134d7a28c41ca6', x'8648fa1f35dd45719746c7d1f51305bd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b67ac51a832749f58a134d7a28c41ca6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b67ac51a832749f58a134d7a28c41ca6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b67ac51a832749f58a134d7a28c41ca6', x'409ed9edbc374eef82d7a022876d0bb4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b67ac51a832749f58a134d7a28c41ca6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b67ac51a832749f58a134d7a28c41ca6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b67ac51a832749f58a134d7a28c41ca6', x'ccbeddf87b17433fa7f794cd9a60d439', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e184d2c8b85_b5b80435d4810893@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8648fa1f35dd45719746c7d1f51305bd' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:01', '2012-12-31 12:28:02', 'account2@before.destroy', '$2a$04$lKA.Lv.256ui/pBOPYKFS.NRqI39Yob7B90bKbCvvM7EseT9fCDui', NULL, x'ce408940ffc5456eb7bc58b884165d8f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ce408940ffc5456eb7bc58b884165d8f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'02047d2df39e4a5e9afb0a220f195da0', '6b5abebcc90ef8bc9421975364b57565', x'ce408940ffc5456eb7bc58b884165d8f', 'User', '2012-12-31 12:28:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ce408940ffc5456eb7bc58b884165d8f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'0d470de0fee3443abeae27fb74d63839', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'account0d470de0-fee3-443a-beae-27fb74d63839' WHERE `accounts`.`id` = x'0d470de0fee3443abeae27fb74d63839' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0d470de0fee3443abeae27fb74d63839' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0d470de0fee3443abeae27fb74d63839', x'fb502cfe99ff44ce867ba4c6cd7a0edd', x'ce408940ffc5456eb7bc58b884165d8f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fb502cfe99ff44ce867ba4c6cd7a0edd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb502cfe99ff44ce867ba4c6cd7a0edd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb502cfe99ff44ce867ba4c6cd7a0edd', x'2c4b5034e2bb4ea59439c93392c207b9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fb502cfe99ff44ce867ba4c6cd7a0edd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fb502cfe99ff44ce867ba4c6cd7a0edd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fb502cfe99ff44ce867ba4c6cd7a0edd', x'bd6bff02ab424c909354eb4a103065e3', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.1ms) Sent mail to account2@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:28:02 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e184d2e3479_b5b80435d48109d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5f3add2d190e4884b0c777e5f18932be' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5f3add2d190e4884b0c777e5f18932be', x'50c884de109242a3bf69884a6770a9a5', x'ce408940ffc5456eb7bc58b884165d8f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'50c884de109242a3bf69884a6770a9a5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50c884de109242a3bf69884a6770a9a5' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50c884de109242a3bf69884a6770a9a5', x'07bc1a567abf4bac8c1b224df2f04d5b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'50c884de109242a3bf69884a6770a9a5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50c884de109242a3bf69884a6770a9a5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50c884de109242a3bf69884a6770a9a5', x'7225f891eafa49e8b11b5047fdd45c02', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyUserJob\nid: 8648fa1f-35dd-4571-9746-c7d1f51305bd\n', NULL, NULL, NULL, 0, 'user_8648fa1f-35dd-4571-9746-c7d1f51305bd_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8648fa1f-35dd-4571-9746-c7d1f51305bd_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8648fa1f35dd45719746c7d1f51305bd' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8648fa1f35dd45719746c7d1f51305bd' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:28:02', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: b67ac51a-8327-49f5-8a13-4d7a28c41ca6\n', NULL, NULL, NULL, 0, 'account_user_b67ac51a-8327-49f5-8a13-4d7a28c41ca6_destroy', '2012-12-31 12:28:02', '2012-12-31 12:28:02') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8648fa1f35dd45719746c7d1f51305bd' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8648fa1f35dd45719746c7d1f51305bd'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'5f3add2d190e4884b0c777e5f18932be' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'8648fa1f35dd45719746c7d1f51305bd'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5f3add2d-190e-4884-b0c7-77e5f18932be_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:28:02', '2012-12-31 12:28:02', '', '', 1, x'c7cffd55ae4b46aa8548c192c92f53ad', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:28:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c7cffd55ae4b46aa8548c192c92f53ad' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:28:02', 'User', x'4a2094a9cb2c49bebb57e7e386789399', '6bddc8abfad9b6b2f6b9b02e7d0583d1', x'c7cffd55ae4b46aa8548c192c92f53ad', 'User', '2012-12-31 12:28:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c7cffd55ae4b46aa8548c192c92f53ad' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:28:02', x'e50a4a3bff7e442e9c274733cfbc6a09', NULL, NULL, NULL, '2012-12-31 12:28:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:28:02', `updated_at` = '2012-12-31 12:28:02', `subdomain` = 'accounte50a4a3b-ff7e-442e-9c27-4733cfbc6a09' WHERE `accounts`.`id` = x'e50a4a3bff7e442e9c274733cfbc6a09' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e50a4a3bff7e442e9c274733cfbc6a09' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e50a4a3bff7e442e9c274733cfbc6a09', x'6d5a53ab62c04316bdca2357fd681fa4', x'c7cffd55ae4b46aa8548c192c92f53ad') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6d5a53ab62c04316bdca2357fd681fa4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d5a53ab62c04316bdca2357fd681fa4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d5a53ab62c04316bdca2357fd681fa4', x'c146766fa4334c99ba0b1fbd7501dece', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6d5a53ab62c04316bdca2357fd681fa4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d5a53ab62c04316bdca2357fd681fa4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d5a53ab62c04316bdca2357fd681fa4', x'caa8dcbcbc7a4290b188ef45bdab352e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (0.8ms) TRUNCATE TABLE `account_roles`;  (0.8ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (0.8ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.6ms) TRUNCATE TABLE `user_invitations`;  (1.5ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:20', 'teste@teste.com', '$2a$04$pH7CPDAzsnl16zpLLfnZt.42D4TJgGzKjuRNUJWfs.VhThprSBxVa', NULL, x'd492ae4452ec4d95847fd3dd54a381b2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd492ae4452ec4d95847fd3dd54a381b2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:20', 'User', x'8d72938e33dc4665b438b6673e32fcdb', 'db6f52bc18cfab08c2a1a27110476e08', x'd492ae4452ec4d95847fd3dd54a381b2', 'User', '2012-12-31 12:29:20') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd492ae4452ec4d95847fd3dd54a381b2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:20', x'5bd763c294fc45388af3d6c8f5359684', NULL, NULL, NULL, '2012-12-31 12:29:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:20', `updated_at` = '2012-12-31 12:29:20', `subdomain` = 'account5bd763c2-94fc-4538-8af3-d6c8f5359684' WHERE `accounts`.`id` = x'5bd763c294fc45388af3d6c8f5359684' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5bd763c294fc45388af3d6c8f5359684' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5bd763c294fc45388af3d6c8f5359684', x'5957296ef87246ac8cbfdbb4a845a32a', x'd492ae4452ec4d95847fd3dd54a381b2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5957296ef87246ac8cbfdbb4a845a32a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5957296ef87246ac8cbfdbb4a845a32a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5957296ef87246ac8cbfdbb4a845a32a', x'8522253329504e788bd3514029221865', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5957296ef87246ac8cbfdbb4a845a32a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5957296ef87246ac8cbfdbb4a845a32a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5957296ef87246ac8cbfdbb4a845a32a', x'7beb97f00d67472aaa244d5b1cd25cfb', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (137ms) Date: Mon, 31 Dec 2012 10:29:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1852168d0e_b6680435d4817961@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:21', 'teste@teste.com', '$2a$04$Wz7vubZSgiK0ONG4rHLFZ.cyNXLiNmqYi8ViwoaQys1IABPU0Nkjq', NULL, x'f9249e82993d4eb08c22b18951cc372e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f9249e82993d4eb08c22b18951cc372e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:21', 'User', x'd6cc762a5e2e4d9f830dfc7b31b56a09', '69b5ef0747119e627944b2b5f400642b', x'f9249e82993d4eb08c22b18951cc372e', 'User', '2012-12-31 12:29:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f9249e82993d4eb08c22b18951cc372e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:21', x'400bc8d244d5490eace9cb9738de020a', NULL, NULL, NULL, '2012-12-31 12:29:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:21', `updated_at` = '2012-12-31 12:29:21', `subdomain` = 'account400bc8d2-44d5-490e-ace9-cb9738de020a' WHERE `accounts`.`id` = x'400bc8d244d5490eace9cb9738de020a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'400bc8d244d5490eace9cb9738de020a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'400bc8d244d5490eace9cb9738de020a', x'fe9255a87e424e35830b345c3da21f42', x'f9249e82993d4eb08c22b18951cc372e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fe9255a87e424e35830b345c3da21f42') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe9255a87e424e35830b345c3da21f42' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe9255a87e424e35830b345c3da21f42', x'9579859307a947daba09555b2cedf921', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fe9255a87e424e35830b345c3da21f42') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe9255a87e424e35830b345c3da21f42' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe9255a87e424e35830b345c3da21f42', x'c92a8bf6cf8040c9904da558f4c9ba20', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:29:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e185217ddf8_b6680435d481803b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:21', 'teste@teste.com', '$2a$04$XOVNyQtiqDHrzdZMZ/Jf.ugr0O8ewrD5d1X41hv6EzkCxhThBsCXe', NULL, x'cd1d4ac73d964801a8b625c5ca3cc630', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cd1d4ac73d964801a8b625c5ca3cc630' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:21', 'User', x'6a3ff360836d4560b3daefe1c7fb8385', '9c5db925d119229a750d5d431e44cdfd', x'cd1d4ac73d964801a8b625c5ca3cc630', 'User', '2012-12-31 12:29:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cd1d4ac73d964801a8b625c5ca3cc630' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:21', x'df7339177cc5443eb473a53051ecb650', NULL, NULL, NULL, '2012-12-31 12:29:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:21', `updated_at` = '2012-12-31 12:29:21', `subdomain` = 'accountdf733917-7cc5-443e-b473-a53051ecb650' WHERE `accounts`.`id` = x'df7339177cc5443eb473a53051ecb650' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'df7339177cc5443eb473a53051ecb650' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'df7339177cc5443eb473a53051ecb650', x'eb6329e65b224fbc8bf5233bab0cec9f', x'cd1d4ac73d964801a8b625c5ca3cc630') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eb6329e65b224fbc8bf5233bab0cec9f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb6329e65b224fbc8bf5233bab0cec9f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb6329e65b224fbc8bf5233bab0cec9f', x'dbf158d6bdf64e20bffe99fc38387872', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eb6329e65b224fbc8bf5233bab0cec9f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb6329e65b224fbc8bf5233bab0cec9f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb6329e65b224fbc8bf5233bab0cec9f', x'2e459f5ec5cf40799b0d19cdaf715b5b', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:29:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1852189d60_b6680435d48181ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:21', 'teste@teste.com', '$2a$04$1bjzpR8Lo47ShYafdC3HWupgBIYQkFGfO.UaBeRoNRquaLq1CKGmq', NULL, x'2938d25fd9e84669a5ffd21db390fba5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2938d25fd9e84669a5ffd21db390fba5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:21', 'User', x'efd0c47d5da448419669f9eaf20afd9a', 'a0a65d5e14dea3e09c860c94b25a601e', x'2938d25fd9e84669a5ffd21db390fba5', 'User', '2012-12-31 12:29:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2938d25fd9e84669a5ffd21db390fba5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:21', x'707d3a71bb774f6fb31c45fbccb5c05e', NULL, NULL, NULL, '2012-12-31 12:29:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:21', `updated_at` = '2012-12-31 12:29:21', `subdomain` = 'account707d3a71-bb77-4f6f-b31c-45fbccb5c05e' WHERE `accounts`.`id` = x'707d3a71bb774f6fb31c45fbccb5c05e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'707d3a71bb774f6fb31c45fbccb5c05e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'707d3a71bb774f6fb31c45fbccb5c05e', x'2403c5595c3e4d88b609612afcd0973f', x'2938d25fd9e84669a5ffd21db390fba5') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2403c5595c3e4d88b609612afcd0973f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2403c5595c3e4d88b609612afcd0973f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2403c5595c3e4d88b609612afcd0973f', x'f7fd9fea9d904f13a21974bba69edaea', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2403c5595c3e4d88b609612afcd0973f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2403c5595c3e4d88b609612afcd0973f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2403c5595c3e4d88b609612afcd0973f', x'30624c189eb849889e3800937aaae93b', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:29:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e185219624b_b6680435d4818252@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2938d25fd9e84669a5ffd21db390fba5'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:21', 'teste@teste.com', '$2a$04$ZWoPCK7VLPvniaMRM32YTe3JbGjq4H0fo3dX/Bx4yftqAtJNs8mnm', NULL, x'71bc59ac16e44eb99aa0717a1382cf86', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'71bc59ac16e44eb99aa0717a1382cf86' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:21', 'User', x'cda7fbd8ff6346a6afb013fa8fb32f0f', '901f12040aa55daf15d2d4e30d8584d7', x'71bc59ac16e44eb99aa0717a1382cf86', 'User', '2012-12-31 12:29:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'71bc59ac16e44eb99aa0717a1382cf86' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:21', x'278b5a11e4ef481c85e52e3814be0f48', NULL, NULL, NULL, '2012-12-31 12:29:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:21', `updated_at` = '2012-12-31 12:29:21', `subdomain` = 'account278b5a11-e4ef-481c-85e5-2e3814be0f48' WHERE `accounts`.`id` = x'278b5a11e4ef481c85e52e3814be0f48' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'278b5a11e4ef481c85e52e3814be0f48' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'278b5a11e4ef481c85e52e3814be0f48', x'a38ad0db8f124f199853830c25f43a25', x'71bc59ac16e44eb99aa0717a1382cf86') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a38ad0db8f124f199853830c25f43a25') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a38ad0db8f124f199853830c25f43a25' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a38ad0db8f124f199853830c25f43a25', x'9313a8c2edbb4227bd988c934d61891b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a38ad0db8f124f199853830c25f43a25') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a38ad0db8f124f199853830c25f43a25' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a38ad0db8f124f199853830c25f43a25', x'828f2ea5a63242e992c6a4982405e17f', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:29:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18521c118a_b6680435d48183ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:21', 'teste@teste.com', '$2a$04$NuR7B0GAPjLzIugKmssuq.ga.gr5cn5PEDAqEwUvjttDE3RaDFI9q', NULL, x'e91787126734483cb20681e01c7d3db6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:21') ApiToken Exists (1.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e91787126734483cb20681e01c7d3db6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:21', 'User', x'aad9d44ea38949b78460861960fbf000', '51036c29e3c4755964dbab81e084fe1f', x'e91787126734483cb20681e01c7d3db6', 'User', '2012-12-31 12:29:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e91787126734483cb20681e01c7d3db6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:21', x'8955991adf53492493a3ad5d56b59e03', NULL, NULL, NULL, '2012-12-31 12:29:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:21', `updated_at` = '2012-12-31 12:29:21', `subdomain` = 'account8955991a-df53-4924-93a3-ad5d56b59e03' WHERE `accounts`.`id` = x'8955991adf53492493a3ad5d56b59e03' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8955991adf53492493a3ad5d56b59e03' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8955991adf53492493a3ad5d56b59e03', x'a0d32c5c93294725a2b94cbb251f27db', x'e91787126734483cb20681e01c7d3db6') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a0d32c5c93294725a2b94cbb251f27db') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a0d32c5c93294725a2b94cbb251f27db' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a0d32c5c93294725a2b94cbb251f27db', x'e061c75c16214223bd611a682c551838', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a0d32c5c93294725a2b94cbb251f27db') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a0d32c5c93294725a2b94cbb251f27db' LIMIT 1 SQL (1.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a0d32c5c93294725a2b94cbb251f27db', x'70e4f019c720488582a345385a83e5c7', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.3ms) Sent mail to teste@teste.com (9ms) Date: Mon, 31 Dec 2012 10:29:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18521d427c_b6680435d48184d1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:21', 'account1@before.destroy', '$2a$04$JwoXuiwd4HX7/.BbiN5j6O5HFYmOPcFG1RNFLHJ5/cDVpNuOS2q6y', NULL, x'77fb0404f2a0495996b6882f7d29a535', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'77fb0404f2a0495996b6882f7d29a535' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:21', 'User', x'98081c0fe5074ebf963b69a836c90225', 'e6f7b707802f317f13ada455c6025d7f', x'77fb0404f2a0495996b6882f7d29a535', 'User', '2012-12-31 12:29:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'77fb0404f2a0495996b6882f7d29a535' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:21', x'f3309aca90204932a35875949998b001', NULL, NULL, NULL, '2012-12-31 12:29:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:21', `updated_at` = '2012-12-31 12:29:21', `subdomain` = 'accountf3309aca-9020-4932-a358-75949998b001' WHERE `accounts`.`id` = x'f3309aca90204932a35875949998b001' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f3309aca90204932a35875949998b001' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f3309aca90204932a35875949998b001', x'8f2e02ebf72f46039690c9afca11a11e', x'77fb0404f2a0495996b6882f7d29a535') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8f2e02ebf72f46039690c9afca11a11e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f2e02ebf72f46039690c9afca11a11e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f2e02ebf72f46039690c9afca11a11e', x'60468d1ed0914a0f9e48ec793bde9b46', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8f2e02ebf72f46039690c9afca11a11e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f2e02ebf72f46039690c9afca11a11e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f2e02ebf72f46039690c9afca11a11e', x'fec625b934ae45c8bbb227e4e7e35e68', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (8ms) Date: Mon, 31 Dec 2012 10:29:21 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e18521e16bd_b6680435d48185a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'77fb0404f2a0495996b6882f7d29a535' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyUserJob\nid: 77fb0404-f2a0-4959-96b6-882f7d29a535\n', NULL, NULL, NULL, 0, 'user_77fb0404-f2a0-4959-96b6-882f7d29a535_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_77fb0404-f2a0-4959-96b6-882f7d29a535_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'77fb0404f2a0495996b6882f7d29a535' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'77fb0404f2a0495996b6882f7d29a535' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 8f2e02eb-f72f-4603-9690-c9afca11a11e\n', NULL, NULL, NULL, 0, 'account_user_8f2e02eb-f72f-4603-9690-c9afca11a11e_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'77fb0404f2a0495996b6882f7d29a535' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'77fb0404f2a0495996b6882f7d29a535'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'f3309aca90204932a35875949998b001' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyAccountJob\nid: f3309aca-9020-4932-a358-75949998b001\n', NULL, NULL, NULL, 0, 'account_f3309aca-9020-4932-a358-75949998b001_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'77fb0404f2a0495996b6882f7d29a535'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f3309aca-9020-4932-a358-75949998b001_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:22', 'account1@before.destroy', '$2a$04$nLv.D4jj.MeDaLtVeGx40OMBCOeCdFgaPt6z2FamZThxUID20XdIG', NULL, x'7f8e67b1c80344168aa7f69495e74667', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:22') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7f8e67b1c80344168aa7f69495e74667' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:22', 'User', x'125685040d014bdcb23d70fe72273ea3', '7dc5b95310a6d699e84ecd112ca21f64', x'7f8e67b1c80344168aa7f69495e74667', 'User', '2012-12-31 12:29:22') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7f8e67b1c80344168aa7f69495e74667' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:22', x'f2042d12c6b940e89d58dfbd9f3729d4', NULL, NULL, NULL, '2012-12-31 12:29:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:22', `updated_at` = '2012-12-31 12:29:22', `subdomain` = 'accountf2042d12-c6b9-40e8-9d58-dfbd9f3729d4' WHERE `accounts`.`id` = x'f2042d12c6b940e89d58dfbd9f3729d4' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f2042d12c6b940e89d58dfbd9f3729d4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f2042d12c6b940e89d58dfbd9f3729d4', x'd89ce83df592450aac58b35164061aef', x'7f8e67b1c80344168aa7f69495e74667') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd89ce83df592450aac58b35164061aef') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd89ce83df592450aac58b35164061aef' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd89ce83df592450aac58b35164061aef', x'0e8fb189ca4b4565ba9a909f78b86081', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd89ce83df592450aac58b35164061aef') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd89ce83df592450aac58b35164061aef' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd89ce83df592450aac58b35164061aef', x'8666c2f1b7d3408b974ecf9ea79baf59', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:29:22 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e185221a9d0_b6680435d48186a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:22', x'bf9b2101aa1f41b6a1ec2b2629301bcf', 'jabanilson', NULL, 1, '2012-12-31 12:29:22')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:29:22', `updated_at` = '2012-12-31 12:29:22', `subdomain` = 'accountbf9b2101-aa1f-41b6-a1ec-2b2629301bcf' WHERE `accounts`.`id` = x'bf9b2101aa1f41b6a1ec2b2629301bcf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7f8e67b1c80344168aa7f69495e74667' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bf9b2101aa1f41b6a1ec2b2629301bcf', x'd66cab361ed9482e96969b2d55528513', x'7f8e67b1c80344168aa7f69495e74667') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd66cab361ed9482e96969b2d55528513') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd66cab361ed9482e96969b2d55528513' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd66cab361ed9482e96969b2d55528513', x'6815f97c3881448ebf59b33dee9ba0ba', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd66cab361ed9482e96969b2d55528513') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd66cab361ed9482e96969b2d55528513' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd66cab361ed9482e96969b2d55528513', x'981fbffed4fb4bcc8e2bdfda17208b40', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f8e67b1c80344168aa7f69495e74667' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyUserJob\nid: 7f8e67b1-c803-4416-8aa7-f69495e74667\n', NULL, NULL, NULL, 0, 'user_7f8e67b1-c803-4416-8aa7-f69495e74667_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7f8e67b1-c803-4416-8aa7-f69495e74667_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7f8e67b1c80344168aa7f69495e74667' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7f8e67b1c80344168aa7f69495e74667' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: d66cab36-1ed9-482e-9696-9b2d55528513\n', NULL, NULL, NULL, 0, 'account_user_d66cab36-1ed9-482e-9696-9b2d55528513_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: d89ce83d-f592-450a-ac58-b35164061aef\n', NULL, NULL, NULL, 0, 'account_user_d89ce83d-f592-450a-ac58-b35164061aef_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7f8e67b1c80344168aa7f69495e74667' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f8e67b1c80344168aa7f69495e74667'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'bf9b2101aa1f41b6a1ec2b2629301bcf' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyAccountJob\nid: bf9b2101-aa1f-41b6-a1ec-2b2629301bcf\n', NULL, NULL, NULL, 0, 'account_bf9b2101-aa1f-41b6-a1ec-2b2629301bcf_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'f2042d12c6b940e89d58dfbd9f3729d4' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyAccountJob\nid: f2042d12-c6b9-40e8-9d58-dfbd9f3729d4\n', NULL, NULL, NULL, 0, 'account_f2042d12-c6b9-40e8-9d58-dfbd9f3729d4_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'7f8e67b1c80344168aa7f69495e74667'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f2042d12-c6b9-40e8-9d58-dfbd9f3729d4_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:22', 'account1@before.destroy', '$2a$04$90v2wh7j3b0RV/ekQo1mx.KGsm6scms3j8yCWIWYzwqdWx8Z2QzCO', NULL, x'4a218fb83cb74f2a80ef0ac33e6a359c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4a218fb83cb74f2a80ef0ac33e6a359c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:22', 'User', x'f9d9e124b7bd40ce983426f47ed78bcb', 'd482ca9b8e13aa86cb83e8f100296c1d', x'4a218fb83cb74f2a80ef0ac33e6a359c', 'User', '2012-12-31 12:29:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4a218fb83cb74f2a80ef0ac33e6a359c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:22', x'4dc62d442fbb48f2afb880aed1964d9b', NULL, NULL, NULL, '2012-12-31 12:29:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:22', `updated_at` = '2012-12-31 12:29:22', `subdomain` = 'account4dc62d44-2fbb-48f2-afb8-80aed1964d9b' WHERE `accounts`.`id` = x'4dc62d442fbb48f2afb880aed1964d9b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4dc62d442fbb48f2afb880aed1964d9b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4dc62d442fbb48f2afb880aed1964d9b', x'14f9f8df7d41417ba35e6fcae9c2e7fb', x'4a218fb83cb74f2a80ef0ac33e6a359c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'14f9f8df7d41417ba35e6fcae9c2e7fb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'14f9f8df7d41417ba35e6fcae9c2e7fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'14f9f8df7d41417ba35e6fcae9c2e7fb', x'4b8a4e48d1d24be7b609b0947b16964d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'14f9f8df7d41417ba35e6fcae9c2e7fb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'14f9f8df7d41417ba35e6fcae9c2e7fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'14f9f8df7d41417ba35e6fcae9c2e7fb', x'48c773f8a01b4a138b3ee7242b0716c7', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:29:22 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1852232cb8_b6680435d4818770@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4a218fb83cb74f2a80ef0ac33e6a359c' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:20', '2012-12-31 12:29:22', 'account2@before.destroy', '$2a$04$oVWLVeNQ7FvAdHxafqsfGuZKIQdlzSe9uyyVvp4cUcP74cCHsCSZ.', NULL, x'6c31248054b1417b9b86d20f86f9e5e3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:29:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6c31248054b1417b9b86d20f86f9e5e3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:22', 'User', x'2e1dd5d60b964942a21a24568dfd1592', 'fe8269e08836479f46a9c7ed48ed3380', x'6c31248054b1417b9b86d20f86f9e5e3', 'User', '2012-12-31 12:29:22') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6c31248054b1417b9b86d20f86f9e5e3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:22', x'8ac86970058b43ddaa956102d4836ed9', NULL, NULL, NULL, '2012-12-31 12:29:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:22', `updated_at` = '2012-12-31 12:29:22', `subdomain` = 'account8ac86970-058b-43dd-aa95-6102d4836ed9' WHERE `accounts`.`id` = x'8ac86970058b43ddaa956102d4836ed9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8ac86970058b43ddaa956102d4836ed9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8ac86970058b43ddaa956102d4836ed9', x'0408eb2b7a334124b474ad931fa8bba5', x'6c31248054b1417b9b86d20f86f9e5e3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0408eb2b7a334124b474ad931fa8bba5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0408eb2b7a334124b474ad931fa8bba5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0408eb2b7a334124b474ad931fa8bba5', x'ba10a8d9e0e644a4990d7f5407b47675', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0408eb2b7a334124b474ad931fa8bba5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0408eb2b7a334124b474ad931fa8bba5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0408eb2b7a334124b474ad931fa8bba5', x'bc8e04b1b535422cbfb0417c66f1f469', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:29:22 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e185224d949_b6680435d48188c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4dc62d442fbb48f2afb880aed1964d9b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4dc62d442fbb48f2afb880aed1964d9b', x'7205515307df4d6fbc1772829a4f20a3', x'6c31248054b1417b9b86d20f86f9e5e3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7205515307df4d6fbc1772829a4f20a3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7205515307df4d6fbc1772829a4f20a3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7205515307df4d6fbc1772829a4f20a3', x'621a0278bcb24e8ebb7159f3f48169e0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7205515307df4d6fbc1772829a4f20a3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7205515307df4d6fbc1772829a4f20a3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7205515307df4d6fbc1772829a4f20a3', x'a3dc0cee07094845a566b3b16423e3ad', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyUserJob\nid: 4a218fb8-3cb7-4f2a-80ef-0ac33e6a359c\n', NULL, NULL, NULL, 0, 'user_4a218fb8-3cb7-4f2a-80ef-0ac33e6a359c_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4a218fb8-3cb7-4f2a-80ef-0ac33e6a359c_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4a218fb83cb74f2a80ef0ac33e6a359c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4a218fb83cb74f2a80ef0ac33e6a359c' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:29:22', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 14f9f8df-7d41-417b-a35e-6fcae9c2e7fb\n', NULL, NULL, NULL, 0, 'account_user_14f9f8df-7d41-417b-a35e-6fcae9c2e7fb_destroy', '2012-12-31 12:29:22', '2012-12-31 12:29:22') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'4a218fb83cb74f2a80ef0ac33e6a359c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4a218fb83cb74f2a80ef0ac33e6a359c'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'4dc62d442fbb48f2afb880aed1964d9b' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'4a218fb83cb74f2a80ef0ac33e6a359c'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4dc62d44-2fbb-48f2-afb8-80aed1964d9b_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:22', '2012-12-31 12:29:22', '', '', 1, x'8471f8f79d23464d8cd1ac09b821f604', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:29:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8471f8f79d23464d8cd1ac09b821f604' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:22', 'User', x'89f0572ad34f4097bb1a323f8a236bd3', 'f306e9427514e88b67e8979fc4246cf4', x'8471f8f79d23464d8cd1ac09b821f604', 'User', '2012-12-31 12:29:22') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8471f8f79d23464d8cd1ac09b821f604' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:22', x'c85157edce6443fba498ebe90185b4b1', NULL, NULL, NULL, '2012-12-31 12:29:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:22', `updated_at` = '2012-12-31 12:29:22', `subdomain` = 'accountc85157ed-ce64-43fb-a498-ebe90185b4b1' WHERE `accounts`.`id` = x'c85157edce6443fba498ebe90185b4b1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c85157edce6443fba498ebe90185b4b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c85157edce6443fba498ebe90185b4b1', x'8b2f15fe7fd6462dabe52b171d4a6762', x'8471f8f79d23464d8cd1ac09b821f604') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8b2f15fe7fd6462dabe52b171d4a6762') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b2f15fe7fd6462dabe52b171d4a6762' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b2f15fe7fd6462dabe52b171d4a6762', x'66a6277989ff48dfbc566c55a6b7c856', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8b2f15fe7fd6462dabe52b171d4a6762') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b2f15fe7fd6462dabe52b171d4a6762' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b2f15fe7fd6462dabe52b171d4a6762', x'0e07faf280544c8d9e9344c0e5eecc9a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8471f8f79d23464d8cd1ac09b821f604' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != x'8471f8f79d23464d8cd1ac09b821f604') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$S3ZKgClGWlgvOfp5975HNOvESGR4qz4RISywjR2yxDsIURVMn4mC6', `unconfirmed_email` = 'regular@user.now', `updated_at` = '2012-12-31 12:29:22' WHERE `users`.`id` = x'8471f8f79d23464d8cd1ac09b821f604' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '4vjVsc6gM4Mxy7GHQDiD' LIMIT 1  (0.2ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$S3ZKgClGWlgvOfp5975HNOvESGR4qz4RISywjR2yxDsIURVMn4mC6', `unconfirmed_email` = 'regular@user.now', `updated_at` = '2012-12-31 12:29:22', `confirmation_token` = '4vjVsc6gM4Mxy7GHQDiD', `confirmation_sent_at` = '2012-12-31 12:29:22' WHERE `users`.`id` = x'8471f8f79d23464d8cd1ac09b821f604' Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/confirmation_instructions.html.haml (2.6ms) Sent mail to regular@user.now (7ms) Date: Mon, 31 Dec 2012 10:29:22 -0200 From: Iugu Reply-To: Iugu To: regular@user.now Message-ID: <50e1852267452_b6680435d481896a@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_8471f8f7-9d23-464d-8cd1-ac09b821f604' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:22', '2012-12-31 12:29:22', '', '', 1, x'70d9d399306f4840bab91bb82372e776', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:29:22') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'70d9d399306f4840bab91bb82372e776' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:22', 'User', x'295755ed89464c869f5e08afa66090a3', '11b0b51d3571ff111a1237d522c3984f', x'70d9d399306f4840bab91bb82372e776', 'User', '2012-12-31 12:29:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'70d9d399306f4840bab91bb82372e776' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:22', x'5a362889d4834dc6a439906e70aa1e76', NULL, NULL, NULL, '2012-12-31 12:29:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:22', `updated_at` = '2012-12-31 12:29:22', `subdomain` = 'account5a362889-d483-4dc6-a439-906e70aa1e76' WHERE `accounts`.`id` = x'5a362889d4834dc6a439906e70aa1e76' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5a362889d4834dc6a439906e70aa1e76' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5a362889d4834dc6a439906e70aa1e76', x'e89edd0d91f94dc4ab998f91912afdcf', x'70d9d399306f4840bab91bb82372e776') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e89edd0d91f94dc4ab998f91912afdcf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e89edd0d91f94dc4ab998f91912afdcf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e89edd0d91f94dc4ab998f91912afdcf', x'd231e3007c9c4ceab208489c8db24b75', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e89edd0d91f94dc4ab998f91912afdcf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e89edd0d91f94dc4ab998f91912afdcf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e89edd0d91f94dc4ab998f91912afdcf', x'a35f7adb8818442bb4d990afd7fb3b20', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'70d9d399306f4840bab91bb82372e776' User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != x'70d9d399306f4840bab91bb82372e776') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:29:22', '2012-12-31 12:29:22', '', '', 1, x'cc1cd13938db4c66abb7b9f97e045e85', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:29:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cc1cd13938db4c66abb7b9f97e045e85' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:29:22', 'User', x'7b2e6cd1721b4af98112d509ab2df0e3', 'a8d765f724e0e24d644ab051da9ff008', x'cc1cd13938db4c66abb7b9f97e045e85', 'User', '2012-12-31 12:29:22') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cc1cd13938db4c66abb7b9f97e045e85' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:29:22', x'72b7e6714fa7424d96cca58c6e9f3a37', NULL, NULL, NULL, '2012-12-31 12:29:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:29:22', `updated_at` = '2012-12-31 12:29:22', `subdomain` = 'account72b7e671-4fa7-424d-96cc-a58c6e9f3a37' WHERE `accounts`.`id` = x'72b7e6714fa7424d96cca58c6e9f3a37' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72b7e6714fa7424d96cca58c6e9f3a37' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'72b7e6714fa7424d96cca58c6e9f3a37', x'7394b2ea66d4405087dc5e4c8d2465ff', x'cc1cd13938db4c66abb7b9f97e045e85') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7394b2ea66d4405087dc5e4c8d2465ff') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7394b2ea66d4405087dc5e4c8d2465ff' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7394b2ea66d4405087dc5e4c8d2465ff', x'c3200ca8f2c14f19b0811eac071f88b6', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7394b2ea66d4405087dc5e4c8d2465ff') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7394b2ea66d4405087dc5e4c8d2465ff' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7394b2ea66d4405087dc5e4c8d2465ff', x'9f278bfff387416384fbde2d5f47715f', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'cc1cd13938db4c66abb7b9f97e045e85'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (12.3ms) TRUNCATE TABLE `account_domains`;  (8.2ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:57', 'teste@teste.com', '$2a$04$TLVieI60V.EY3NEVqsuzv.DOuwpzZFTPP1RQXg2mS1bzMcrPR9Nly', NULL, x'b8b5fd95e8674a8a965de0155e3e1a3e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:57') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b8b5fd95e8674a8a965de0155e3e1a3e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:57', 'User', x'e010226343af4016bdd67b33f23af4dd', '9d01081c2f8d698a70c72102a2a741fa', x'b8b5fd95e8674a8a965de0155e3e1a3e', 'User', '2012-12-31 12:32:57') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b8b5fd95e8674a8a965de0155e3e1a3e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:57', x'fba6467448f348a39bad168bae568872', NULL, NULL, NULL, '2012-12-31 12:32:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:57', `updated_at` = '2012-12-31 12:32:57', `subdomain` = 'accountfba64674-48f3-48a3-9bad-168bae568872' WHERE `accounts`.`id` = x'fba6467448f348a39bad168bae568872' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fba6467448f348a39bad168bae568872' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fba6467448f348a39bad168bae568872', x'83d0f5f11ed84d8eaefbdf011d195f2c', x'b8b5fd95e8674a8a965de0155e3e1a3e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'83d0f5f11ed84d8eaefbdf011d195f2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83d0f5f11ed84d8eaefbdf011d195f2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83d0f5f11ed84d8eaefbdf011d195f2c', x'09ca25c32b914826b8e48bc0ae46bf53', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'83d0f5f11ed84d8eaefbdf011d195f2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83d0f5f11ed84d8eaefbdf011d195f2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83d0f5f11ed84d8eaefbdf011d195f2c', x'd12d416d3dc0444a85e68339e61e7a32', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.2ms) Sent mail to teste@teste.com (153ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e185f9efa4e_c4580435d485678b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'teste@teste.com', '$2a$04$zy52J25FLLthoH8oz0pItulO/85NiH5zlaMqjp4MMXuJG9ZCF0Gau', NULL, x'b608bc12a1804601a8af498634e72937', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b608bc12a1804601a8af498634e72937' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'9e7883e55c31450a93da291844196473', 'c5594e64ce329e5b093b349b44e87e7b', x'b608bc12a1804601a8af498634e72937', 'User', '2012-12-31 12:32:58') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b608bc12a1804601a8af498634e72937' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'4a044fcd8343432cb5eade65ca1a9654', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account4a044fcd-8343-432c-b5ea-de65ca1a9654' WHERE `accounts`.`id` = x'4a044fcd8343432cb5eade65ca1a9654' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4a044fcd8343432cb5eade65ca1a9654' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4a044fcd8343432cb5eade65ca1a9654', x'757542a4147b4705812a90ab8fb43c8a', x'b608bc12a1804601a8af498634e72937') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'757542a4147b4705812a90ab8fb43c8a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'757542a4147b4705812a90ab8fb43c8a' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'757542a4147b4705812a90ab8fb43c8a', x'1602aab0bc5747219abdd12e3bcc7b3c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'757542a4147b4705812a90ab8fb43c8a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'757542a4147b4705812a90ab8fb43c8a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'757542a4147b4705812a90ab8fb43c8a', x'd1a904c6e58d4f97b19063f1b7b2fbf4', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e185fa10ab4_c4580435d485682e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'teste@teste.com', '$2a$04$qoGBL0riIln39b5JRwqSpeCT5ga506tHKU/y8bf7Jt/EDPbBOM.Fq', NULL, x'27530145000e4862ba5bfa34530988d4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'27530145000e4862ba5bfa34530988d4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'a26bc7da3a5247c9972bc04857a3d982', '97442a079d76c6a830cca9201fcbff65', x'27530145000e4862ba5bfa34530988d4', 'User', '2012-12-31 12:32:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'27530145000e4862ba5bfa34530988d4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'9022c978826b45c3be141d79304e40bc', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account9022c978-826b-45c3-be14-1d79304e40bc' WHERE `accounts`.`id` = x'9022c978826b45c3be141d79304e40bc' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9022c978826b45c3be141d79304e40bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9022c978826b45c3be141d79304e40bc', x'd8d9ec687ed8435392a976e70548c7c1', x'27530145000e4862ba5bfa34530988d4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd8d9ec687ed8435392a976e70548c7c1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8d9ec687ed8435392a976e70548c7c1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8d9ec687ed8435392a976e70548c7c1', x'5cb16bfa4a1b41f8bc64a86f6c2559d9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd8d9ec687ed8435392a976e70548c7c1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8d9ec687ed8435392a976e70548c7c1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8d9ec687ed8435392a976e70548c7c1', x'2af560b1ee274c8699c37a9fcdd8000a', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e185fa1c9b0_c4580435d48569bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'teste@teste.com', '$2a$04$aN6kE/ckIkl1ehK80qww9.DYu02MzixQOOY/MjikRN82hE1j7uNOu', NULL, x'79e4554689d544fba8531fd5bdd97936', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'79e4554689d544fba8531fd5bdd97936' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'35e870cb00f749a89473cb01ebb080d8', '25f8c3e22ad1bcef20076ff391294ba1', x'79e4554689d544fba8531fd5bdd97936', 'User', '2012-12-31 12:32:58') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'79e4554689d544fba8531fd5bdd97936' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'ff1756fd15e74dd38e89e5077184111c', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'accountff1756fd-15e7-4dd3-8e89-e5077184111c' WHERE `accounts`.`id` = x'ff1756fd15e74dd38e89e5077184111c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ff1756fd15e74dd38e89e5077184111c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ff1756fd15e74dd38e89e5077184111c', x'2d05c63371ca434880b5dd3bcc33a8b3', x'79e4554689d544fba8531fd5bdd97936') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2d05c63371ca434880b5dd3bcc33a8b3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2d05c63371ca434880b5dd3bcc33a8b3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2d05c63371ca434880b5dd3bcc33a8b3', x'f98ce0c37ad442f7aaa847947dfa3a90', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2d05c63371ca434880b5dd3bcc33a8b3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2d05c63371ca434880b5dd3bcc33a8b3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2d05c63371ca434880b5dd3bcc33a8b3', x'54d2946bf71f4793a0052a98c03b99df', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e185fa29270_c4580435d48570fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'79e4554689d544fba8531fd5bdd97936'  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'teste@teste.com', '$2a$04$ShOFUuoYK/l93n0LAEQER.Ft9ziPgIKnKgcnmrY4g.jpBj7FlgY2m', NULL, x'272d2888eed8447bbbc7dd8a56bf33b6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'272d2888eed8447bbbc7dd8a56bf33b6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'e313cd3f030b450cb87fb617e946f8a7', 'f81adbfc9257515fd708dfbf721bd024', x'272d2888eed8447bbbc7dd8a56bf33b6', 'User', '2012-12-31 12:32:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'272d2888eed8447bbbc7dd8a56bf33b6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'413c10262720455f8f3db871c29e4a7c', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account413c1026-2720-455f-8f3d-b871c29e4a7c' WHERE `accounts`.`id` = x'413c10262720455f8f3db871c29e4a7c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'413c10262720455f8f3db871c29e4a7c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'413c10262720455f8f3db871c29e4a7c', x'bcf51f5e49ef4ef6aafb95de26933c39', x'272d2888eed8447bbbc7dd8a56bf33b6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bcf51f5e49ef4ef6aafb95de26933c39') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bcf51f5e49ef4ef6aafb95de26933c39' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bcf51f5e49ef4ef6aafb95de26933c39', x'3a9b1b35914f4aaab76cbc38e9243415', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bcf51f5e49ef4ef6aafb95de26933c39') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bcf51f5e49ef4ef6aafb95de26933c39' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bcf51f5e49ef4ef6aafb95de26933c39', x'e0b6ca521f784e87bff61ca1a3ef65bf', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e185fa53f4c_c4580435d48571ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'teste@teste.com', '$2a$04$6zPkwlFdoMP8vJ1i8ewJtejtWzfY0guF0bttDZKjVS4/S8gKnWxum', NULL, x'aa734cc7fd55421a863716cc0981fded', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'aa734cc7fd55421a863716cc0981fded' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'90900e5c9b0e4a879f9732a9a5076f9e', '0db52f2861f3b257f1cb7bb27c0ec69e', x'aa734cc7fd55421a863716cc0981fded', 'User', '2012-12-31 12:32:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'aa734cc7fd55421a863716cc0981fded' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'77bbda8bb08f436d992099e7239bfc89', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account77bbda8b-b08f-436d-9920-99e7239bfc89' WHERE `accounts`.`id` = x'77bbda8bb08f436d992099e7239bfc89' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'77bbda8bb08f436d992099e7239bfc89' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'77bbda8bb08f436d992099e7239bfc89', x'fc691c96d36146899e5acd259a910011', x'aa734cc7fd55421a863716cc0981fded') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fc691c96d36146899e5acd259a910011') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fc691c96d36146899e5acd259a910011' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fc691c96d36146899e5acd259a910011', x'b1e4678a97504c9091d6d8733e30ef63', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fc691c96d36146899e5acd259a910011') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fc691c96d36146899e5acd259a910011' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fc691c96d36146899e5acd259a910011', x'8723597eba73481d9a18275e15141bf2', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e185fa63ea0_c4580435d485724d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (9.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'account1@before.destroy', '$2a$04$yZONpbr1v5eltALhTbVT1.KIw4EJ7BaNlE46GrUA648V9sgML2.8.', NULL, x'a7e47fd277924c7694c25a186deadf66', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a7e47fd277924c7694c25a186deadf66' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'7cb29532a1824959b9f7f7f1e0917ea9', '061629a45b258b26d1cf6e9be5a2697f', x'a7e47fd277924c7694c25a186deadf66', 'User', '2012-12-31 12:32:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a7e47fd277924c7694c25a186deadf66' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'77ab501313b74ed5a713865341a537ad', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account77ab5013-13b7-4ed5-a713-865341a537ad' WHERE `accounts`.`id` = x'77ab501313b74ed5a713865341a537ad' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'77ab501313b74ed5a713865341a537ad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'77ab501313b74ed5a713865341a537ad', x'29e2278e52d94e09a1e025f47b466df2', x'a7e47fd277924c7694c25a186deadf66') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'29e2278e52d94e09a1e025f47b466df2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'29e2278e52d94e09a1e025f47b466df2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'29e2278e52d94e09a1e025f47b466df2', x'82f6eb7cf1dd4d5680653055bf110491', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'29e2278e52d94e09a1e025f47b466df2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'29e2278e52d94e09a1e025f47b466df2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'29e2278e52d94e09a1e025f47b466df2', x'1e8076417c8748058b7c510b3d49c841', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e185fa72219_c4580435d48573ed@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a7e47fd277924c7694c25a186deadf66' LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyUserJob\nid: a7e47fd2-7792-4c76-94c2-5a186deadf66\n', NULL, NULL, NULL, 0, 'user_a7e47fd2-7792-4c76-94c2-5a186deadf66_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a7e47fd2-7792-4c76-94c2-5a186deadf66_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a7e47fd277924c7694c25a186deadf66' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a7e47fd277924c7694c25a186deadf66' SQL (0.6ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 29e2278e-52d9-4e09-a1e0-25f47b466df2\n', NULL, NULL, NULL, 0, 'account_user_29e2278e-52d9-4e09-a1e0-25f47b466df2_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58') SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'a7e47fd277924c7694c25a186deadf66' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a7e47fd277924c7694c25a186deadf66'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'77ab501313b74ed5a713865341a537ad' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 77ab5013-13b7-4ed5-a713-865341a537ad\n', NULL, NULL, NULL, 0, 'account_77ab5013-13b7-4ed5-a713-865341a537ad_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = x'a7e47fd277924c7694c25a186deadf66'  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_77ab5013-13b7-4ed5-a713-865341a537ad_destroy' LIMIT 1  (16.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'account1@before.destroy', '$2a$04$JPbQEpA5x1fYc3c6FXWJ6urGe8BvAWkB0wm7vgfv27PInC68RCg1q', NULL, x'48585099cc844fabadc0feb67f01e057', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'48585099cc844fabadc0feb67f01e057' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'ee846894287044c894a49d3042131f32', 'c72e04749eeb24fc2f3548db0311b622', x'48585099cc844fabadc0feb67f01e057', 'User', '2012-12-31 12:32:58') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'48585099cc844fabadc0feb67f01e057' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'31f3cb6890f2436dbdda721b342b369b', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account31f3cb68-90f2-436d-bdda-721b342b369b' WHERE `accounts`.`id` = x'31f3cb6890f2436dbdda721b342b369b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31f3cb6890f2436dbdda721b342b369b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'31f3cb6890f2436dbdda721b342b369b', x'488b2ad549d245b094a723fe4b2adc02', x'48585099cc844fabadc0feb67f01e057') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'488b2ad549d245b094a723fe4b2adc02') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'488b2ad549d245b094a723fe4b2adc02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'488b2ad549d245b094a723fe4b2adc02', x'dae86660d2ef4888b762104ca7f75e7b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'488b2ad549d245b094a723fe4b2adc02') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'488b2ad549d245b094a723fe4b2adc02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'488b2ad549d245b094a723fe4b2adc02', x'cfec309d826941c0b10f14fdc62644f6', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e185faa2888_c4580435d485746c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'99b975067c554b89b5e694fb749133fe', 'jabanilson', NULL, 1, '2012-12-31 12:32:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account99b97506-7c55-4b89-b5e6-94fb749133fe' WHERE `accounts`.`id` = x'99b975067c554b89b5e694fb749133fe'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48585099cc844fabadc0feb67f01e057' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'99b975067c554b89b5e694fb749133fe', x'd9d79106a79a47039b7bbb13d3f7ffe8', x'48585099cc844fabadc0feb67f01e057') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd9d79106a79a47039b7bbb13d3f7ffe8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd9d79106a79a47039b7bbb13d3f7ffe8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd9d79106a79a47039b7bbb13d3f7ffe8', x'0c26c209552c4be0ac94b2b4f959cb7f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd9d79106a79a47039b7bbb13d3f7ffe8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd9d79106a79a47039b7bbb13d3f7ffe8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd9d79106a79a47039b7bbb13d3f7ffe8', x'3105f6bd7b004daaa0ba303521c5abf1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48585099cc844fabadc0feb67f01e057' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyUserJob\nid: 48585099-cc84-4fab-adc0-feb67f01e057\n', NULL, NULL, NULL, 0, 'user_48585099-cc84-4fab-adc0-feb67f01e057_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_48585099-cc84-4fab-adc0-feb67f01e057_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48585099cc844fabadc0feb67f01e057' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'48585099cc844fabadc0feb67f01e057' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 488b2ad5-49d2-45b0-94a7-23fe4b2adc02\n', NULL, NULL, NULL, 0, 'account_user_488b2ad5-49d2-45b0-94a7-23fe4b2adc02_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: d9d79106-a79a-4703-9b7b-bb13d3f7ffe8\n', NULL, NULL, NULL, 0, 'account_user_d9d79106-a79a-4703-9b7b-bb13d3f7ffe8_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'48585099cc844fabadc0feb67f01e057' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48585099cc844fabadc0feb67f01e057'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'31f3cb6890f2436dbdda721b342b369b' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 31f3cb68-90f2-436d-bdda-721b342b369b\n', NULL, NULL, NULL, 0, 'account_31f3cb68-90f2-436d-bdda-721b342b369b_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58')  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'99b975067c554b89b5e694fb749133fe' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 99b97506-7c55-4b89-b5e6-94fb749133fe\n', NULL, NULL, NULL, 0, 'account_99b97506-7c55-4b89-b5e6-94fb749133fe_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'48585099cc844fabadc0feb67f01e057'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_99b97506-7c55-4b89-b5e6-94fb749133fe_destroy' LIMIT 1  (10.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'account1@before.destroy', '$2a$04$rBIOeUPehwbixY/5mYmgS.ttyyrKSXOCnGSf/52.1BXvd22Q0meby', NULL, x'044149474e8a4278bacaf1d7d59d6ab7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'044149474e8a4278bacaf1d7d59d6ab7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'2ae5089fdd7b4dd1b2bc078206081558', '2b9b24e20ae93a6072460c7d46f8674b', x'044149474e8a4278bacaf1d7d59d6ab7', 'User', '2012-12-31 12:32:58') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'044149474e8a4278bacaf1d7d59d6ab7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'335a1bef05ac415bbbaf300f980c3005', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account335a1bef-05ac-415b-bbaf-300f980c3005' WHERE `accounts`.`id` = x'335a1bef05ac415bbbaf300f980c3005' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'335a1bef05ac415bbbaf300f980c3005' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'335a1bef05ac415bbbaf300f980c3005', x'aa5c96c5302d4f20a42bd416619fbe7d', x'044149474e8a4278bacaf1d7d59d6ab7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aa5c96c5302d4f20a42bd416619fbe7d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa5c96c5302d4f20a42bd416619fbe7d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa5c96c5302d4f20a42bd416619fbe7d', x'addf4a14fd0445418369fb0446270fd9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aa5c96c5302d4f20a42bd416619fbe7d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa5c96c5302d4f20a42bd416619fbe7d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa5c96c5302d4f20a42bd416619fbe7d', x'd5ad90428c0343f08c7c9d7ffa23cc8a', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e185fabd298_c4580435d4857563@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'044149474e8a4278bacaf1d7d59d6ab7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:57', '2012-12-31 12:32:58', 'account2@before.destroy', '$2a$04$d7aQ82VKH1o6M.jRwikM3OLTA/8Cjo1bZOkbES4LVziU6oQ4K.IKC', NULL, x'3bea34dca8104552bdedd7308206d31e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3bea34dca8104552bdedd7308206d31e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'513477ee87ff4f1bb4c80824d76661e5', 'fa1b104d515ae7fc6ddc5e783fa896b6', x'3bea34dca8104552bdedd7308206d31e', 'User', '2012-12-31 12:32:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3bea34dca8104552bdedd7308206d31e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'14b805a7136244e685701277984540be', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account14b805a7-1362-44e6-8570-1277984540be' WHERE `accounts`.`id` = x'14b805a7136244e685701277984540be' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'14b805a7136244e685701277984540be' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'14b805a7136244e685701277984540be', x'42165884f82e4692b2a9724fb1082074', x'3bea34dca8104552bdedd7308206d31e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'42165884f82e4692b2a9724fb1082074') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'42165884f82e4692b2a9724fb1082074' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'42165884f82e4692b2a9724fb1082074', x'964e89e3c9344ed49a9215e7c8e2c74b', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'42165884f82e4692b2a9724fb1082074') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'42165884f82e4692b2a9724fb1082074' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'42165884f82e4692b2a9724fb1082074', x'f39e91d25cba4d13911cd6e3d0f83783', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:32:58 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e185fad859c_c4580435d48576c7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'335a1bef05ac415bbbaf300f980c3005' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'335a1bef05ac415bbbaf300f980c3005', x'09bb20e2959f4aeb955658c355f75182', x'3bea34dca8104552bdedd7308206d31e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'09bb20e2959f4aeb955658c355f75182') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09bb20e2959f4aeb955658c355f75182' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09bb20e2959f4aeb955658c355f75182', x'263a2ea106b24b1db48db011b709fa66', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'09bb20e2959f4aeb955658c355f75182') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09bb20e2959f4aeb955658c355f75182' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09bb20e2959f4aeb955658c355f75182', x'64769f80b47441a4b4d578ad99696845', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyUserJob\nid: 04414947-4e8a-4278-baca-f1d7d59d6ab7\n', NULL, NULL, NULL, 0, 'user_04414947-4e8a-4278-baca-f1d7d59d6ab7_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_04414947-4e8a-4278-baca-f1d7d59d6ab7_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'044149474e8a4278bacaf1d7d59d6ab7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'044149474e8a4278bacaf1d7d59d6ab7' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:32:58', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: aa5c96c5-302d-4f20-a42b-d416619fbe7d\n', NULL, NULL, NULL, 0, 'account_user_aa5c96c5-302d-4f20-a42b-d416619fbe7d_destroy', '2012-12-31 12:32:58', '2012-12-31 12:32:58') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'044149474e8a4278bacaf1d7d59d6ab7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'044149474e8a4278bacaf1d7d59d6ab7'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'335a1bef05ac415bbbaf300f980c3005' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'044149474e8a4278bacaf1d7d59d6ab7'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_335a1bef-05ac-415b-bbaf-300f980c3005_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:58', '2012-12-31 12:32:58', '', '', 1, x'f258e70590a84fb28545ffef1c239332', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f258e70590a84fb28545ffef1c239332' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'3bfc557a2f094af2b9444c8debffb5e5', 'c0095e85ad187c1c0c21ba122abbda79', x'f258e70590a84fb28545ffef1c239332', 'User', '2012-12-31 12:32:58') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f258e70590a84fb28545ffef1c239332' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'6b7b448df86642438558724a707c15c7', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account6b7b448d-f866-4243-8558-724a707c15c7' WHERE `accounts`.`id` = x'6b7b448df86642438558724a707c15c7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6b7b448df86642438558724a707c15c7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6b7b448df86642438558724a707c15c7', x'5dd1f12ddeae462397162213a7afb9cd', x'f258e70590a84fb28545ffef1c239332') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5dd1f12ddeae462397162213a7afb9cd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5dd1f12ddeae462397162213a7afb9cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5dd1f12ddeae462397162213a7afb9cd', x'4065576a0c64421185103baf6b1d83bc', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5dd1f12ddeae462397162213a7afb9cd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5dd1f12ddeae462397162213a7afb9cd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5dd1f12ddeae462397162213a7afb9cd', x'82bb36accb03453d9e70dbbd98b5e5dc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:58', '2012-12-31 12:32:58', '', '', 1, x'b6c94f03b86748edb482f2055c18f183', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b6c94f03b86748edb482f2055c18f183' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'27130c34e92347d98785f859af4f2f25', 'e0d684229ff1afbca2c83664990a998d', x'b6c94f03b86748edb482f2055c18f183', 'User', '2012-12-31 12:32:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b6c94f03b86748edb482f2055c18f183' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'482f11bb563d4431aa707c60eb825e3b', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account482f11bb-563d-4431-aa70-7c60eb825e3b' WHERE `accounts`.`id` = x'482f11bb563d4431aa707c60eb825e3b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'482f11bb563d4431aa707c60eb825e3b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'482f11bb563d4431aa707c60eb825e3b', x'eba52b2bcf6a4d50b3d408c285700b0c', x'b6c94f03b86748edb482f2055c18f183') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eba52b2bcf6a4d50b3d408c285700b0c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eba52b2bcf6a4d50b3d408c285700b0c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eba52b2bcf6a4d50b3d408c285700b0c', x'b9a42816061041d99b632b30d01b82ea', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eba52b2bcf6a4d50b3d408c285700b0c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eba52b2bcf6a4d50b3d408c285700b0c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eba52b2bcf6a4d50b3d408c285700b0c', x'6c1f06f9a0274b768c61b11c0c4fe74b', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:32:58', '2012-12-31 12:32:58', '', '', 1, x'd111dcd3b0de4aad8f30d5d3e4db69fa', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:32:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd111dcd3b0de4aad8f30d5d3e4db69fa' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:32:58', 'User', x'094e742e2c8346e9a6339bb04de5129e', '1570c6b216277e16c1aefb748eed3321', x'd111dcd3b0de4aad8f30d5d3e4db69fa', 'User', '2012-12-31 12:32:58') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd111dcd3b0de4aad8f30d5d3e4db69fa' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:32:58', x'703d42358ee5481a8dfd6f047c50ee09', NULL, NULL, NULL, '2012-12-31 12:32:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:32:58', `updated_at` = '2012-12-31 12:32:58', `subdomain` = 'account703d4235-8ee5-481a-8dfd-6f047c50ee09' WHERE `accounts`.`id` = x'703d42358ee5481a8dfd6f047c50ee09' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'703d42358ee5481a8dfd6f047c50ee09' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'703d42358ee5481a8dfd6f047c50ee09', x'cfe8b423e1124d6aad9c5fd86f3efb1f', x'd111dcd3b0de4aad8f30d5d3e4db69fa') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cfe8b423e1124d6aad9c5fd86f3efb1f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfe8b423e1124d6aad9c5fd86f3efb1f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfe8b423e1124d6aad9c5fd86f3efb1f', x'73d2095e073d4bf283a553840476b7b2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cfe8b423e1124d6aad9c5fd86f3efb1f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfe8b423e1124d6aad9c5fd86f3efb1f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfe8b423e1124d6aad9c5fd86f3efb1f', x'7944933d02d943649d466bd458b34f1b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (1.1ms) TRUNCATE TABLE `account_users`;  (1.3ms) TRUNCATE TABLE `accounts`;  (1.1ms) TRUNCATE TABLE `api_tokens`;  (1.3ms) TRUNCATE TABLE `delayed_jobs`;  (26.8ms) TRUNCATE TABLE `social_accounts`;  (1.3ms) TRUNCATE TABLE `user_invitations`;  (1.3ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:38', 'teste@teste.com', '$2a$04$9WX7uIUJOYJPgGx4FYyO5OjsHMOsxcGaye1bR2iXdt1eKES.uEhdy', NULL, x'02838da7eb9942b7befcf19683352623', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:38') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'02838da7eb9942b7befcf19683352623' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:38', 'User', x'0e8c59ea5a8a4edeaf86af76c516661d', 'f4350ebc46b565d5fa80b4c3488977ae', x'02838da7eb9942b7befcf19683352623', 'User', '2012-12-31 12:33:38') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'02838da7eb9942b7befcf19683352623' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:38', x'cb035b2b81ec4a29be782cfb9913240c', NULL, NULL, NULL, '2012-12-31 12:33:38')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:38', `updated_at` = '2012-12-31 12:33:38', `subdomain` = 'accountcb035b2b-81ec-4a29-be78-2cfb9913240c' WHERE `accounts`.`id` = x'cb035b2b81ec4a29be782cfb9913240c' Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cb035b2b81ec4a29be782cfb9913240c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cb035b2b81ec4a29be782cfb9913240c', x'3f08783769224ca0add7df89be92d6b3', x'02838da7eb9942b7befcf19683352623') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3f08783769224ca0add7df89be92d6b3') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f08783769224ca0add7df89be92d6b3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3f08783769224ca0add7df89be92d6b3', x'2ce54186c5a84ea0b14d9106d82db3df', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3f08783769224ca0add7df89be92d6b3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f08783769224ca0add7df89be92d6b3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3f08783769224ca0add7df89be92d6b3', x'8262513d91c14461bb9ab860029a700a', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.2ms) Sent mail to teste@teste.com (138ms) Date: Mon, 31 Dec 2012 10:33:38 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18622dba64_c5080435d4888752@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:38', 'teste@teste.com', '$2a$04$dTwmgP4bZdUR0nvAbQVLsuV1HXJSYCWDBrlJAlFem.ZIO53n4hQRW', NULL, x'7a43807268f847bbaae97b5aaba31eb3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:38') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7a43807268f847bbaae97b5aaba31eb3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:38', 'User', x'ef0b3d943cb24e1d849de8ee312ce6f2', '4313d6a0b8e490fa291f70d5a3538bca', x'7a43807268f847bbaae97b5aaba31eb3', 'User', '2012-12-31 12:33:38') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7a43807268f847bbaae97b5aaba31eb3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:38', x'4b466929e5554a78b533dc0d0d19c9b1', NULL, NULL, NULL, '2012-12-31 12:33:38')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:38', `updated_at` = '2012-12-31 12:33:38', `subdomain` = 'account4b466929-e555-4a78-b533-dc0d0d19c9b1' WHERE `accounts`.`id` = x'4b466929e5554a78b533dc0d0d19c9b1' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4b466929e5554a78b533dc0d0d19c9b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4b466929e5554a78b533dc0d0d19c9b1', x'6187608429264a78bce9334063b51e74', x'7a43807268f847bbaae97b5aaba31eb3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6187608429264a78bce9334063b51e74') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6187608429264a78bce9334063b51e74' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6187608429264a78bce9334063b51e74', x'7901ea1c9a8d4992951a7a6af8544393', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6187608429264a78bce9334063b51e74') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6187608429264a78bce9334063b51e74' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6187608429264a78bce9334063b51e74', x'35e42ebb05bf44e687320671ae869e1e', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (10ms) Date: Mon, 31 Dec 2012 10:33:38 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18622f0d26_c5080435d4888811@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:39', 'teste@teste.com', '$2a$04$ol36sJj/Bz6pL6Qi9LAmLeQuRc6uXCkfzYXEQ/rXt5scx.DM6JqNW', NULL, x'0d3ed38f99434375b800fd2fa4e806b6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0d3ed38f99434375b800fd2fa4e806b6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'7d87667a0b564486b60271c2a96dc790', '3a00933e3b8ce54ac05b1f92fed9d8f0', x'0d3ed38f99434375b800fd2fa4e806b6', 'User', '2012-12-31 12:33:39') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0d3ed38f99434375b800fd2fa4e806b6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'a878ef6af36744a7bf601bceb9e93235', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'accounta878ef6a-f367-44a7-bf60-1bceb9e93235' WHERE `accounts`.`id` = x'a878ef6af36744a7bf601bceb9e93235' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a878ef6af36744a7bf601bceb9e93235' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a878ef6af36744a7bf601bceb9e93235', x'aa8b6fef95d8462d9f77e10bbda3da6c', x'0d3ed38f99434375b800fd2fa4e806b6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aa8b6fef95d8462d9f77e10bbda3da6c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa8b6fef95d8462d9f77e10bbda3da6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa8b6fef95d8462d9f77e10bbda3da6c', x'11b0fbefdccb482bb45e0b4c9965faec', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aa8b6fef95d8462d9f77e10bbda3da6c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa8b6fef95d8462d9f77e10bbda3da6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa8b6fef95d8462d9f77e10bbda3da6c', x'7cf7671fe88744d185d63956c2a21f11', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (10ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18623c452_c5080435d48889ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:39', 'teste@teste.com', '$2a$04$10E2VDzef0JQQaTsyDgvmuSgw.x9wWvj3vHjPjAF2cSiaa0kUg99O', NULL, x'35e76a11d492408f8abe26f00307ae47', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'35e76a11d492408f8abe26f00307ae47' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'4b7cee23184a492082b58809f332a984', 'cb796875b50ba84db696693beed461e7', x'35e76a11d492408f8abe26f00307ae47', 'User', '2012-12-31 12:33:39') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'35e76a11d492408f8abe26f00307ae47' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'26cff3ae5f234236a24ce2b1f40e3526', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'account26cff3ae-5f23-4236-a24c-e2b1f40e3526' WHERE `accounts`.`id` = x'26cff3ae5f234236a24ce2b1f40e3526' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'26cff3ae5f234236a24ce2b1f40e3526' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'26cff3ae5f234236a24ce2b1f40e3526', x'4789db03923546fe9fa49d7555fa551f', x'35e76a11d492408f8abe26f00307ae47') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4789db03923546fe9fa49d7555fa551f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4789db03923546fe9fa49d7555fa551f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4789db03923546fe9fa49d7555fa551f', x'3380eaecf2b745b1a8eeaf7877ad4c98', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4789db03923546fe9fa49d7555fa551f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4789db03923546fe9fa49d7555fa551f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4789db03923546fe9fa49d7555fa551f', x'482506ac9e0143ab81b4ef1828e2d511', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186231a76d_c5080435d48890cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'35e76a11d492408f8abe26f00307ae47'  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:39', 'teste@teste.com', '$2a$04$wSIIPjyBLel/3agl/9hgle/YSCW7XfLah4DFZHRg8jsEjuJllRFJ.', NULL, x'25379be98dcd4275af4f84b286e28c0a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'25379be98dcd4275af4f84b286e28c0a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'b18354d352044ad68e1acaff14054470', 'cd42639665fd8a6ff07a558e7fb37887', x'25379be98dcd4275af4f84b286e28c0a', 'User', '2012-12-31 12:33:39') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'25379be98dcd4275af4f84b286e28c0a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'c2ffdf9095f440e69477e2f8d094d35d', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'accountc2ffdf90-95f4-40e6-9477-e2f8d094d35d' WHERE `accounts`.`id` = x'c2ffdf9095f440e69477e2f8d094d35d' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c2ffdf9095f440e69477e2f8d094d35d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c2ffdf9095f440e69477e2f8d094d35d', x'f7c35688e0f84fdd80b34e281b88dfe1', x'25379be98dcd4275af4f84b286e28c0a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f7c35688e0f84fdd80b34e281b88dfe1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7c35688e0f84fdd80b34e281b88dfe1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7c35688e0f84fdd80b34e281b88dfe1', x'2bd5f43a8c9a47a3a1f7ee2b1f6ec284', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f7c35688e0f84fdd80b34e281b88dfe1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7c35688e0f84fdd80b34e281b88dfe1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7c35688e0f84fdd80b34e281b88dfe1', x'd025e3a7adfb4cc2bd0facef08890dc5', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1862345bad_c5080435d488917d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:39', 'teste@teste.com', '$2a$04$sK4ccEgTzjOIJtK71kfyieAYq5zHLehMCPqa5jFD4q1VbOcNtOjUm', NULL, x'322a0dda20174743b68cf6cb9926161a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'322a0dda20174743b68cf6cb9926161a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'135490a142e44302a5b543ede820ad78', 'd7e45c6231a82b3f6c03c5704d89a3f4', x'322a0dda20174743b68cf6cb9926161a', 'User', '2012-12-31 12:33:39') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'322a0dda20174743b68cf6cb9926161a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'f5a08784cfe7403c847beff556cbc64d', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'accountf5a08784-cfe7-403c-847b-eff556cbc64d' WHERE `accounts`.`id` = x'f5a08784cfe7403c847beff556cbc64d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f5a08784cfe7403c847beff556cbc64d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f5a08784cfe7403c847beff556cbc64d', x'758b3e0a23174601a025281709eb5f1c', x'322a0dda20174743b68cf6cb9926161a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'758b3e0a23174601a025281709eb5f1c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'758b3e0a23174601a025281709eb5f1c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'758b3e0a23174601a025281709eb5f1c', x'1a68391cc18b4a1b88e2ef437a9648a7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'758b3e0a23174601a025281709eb5f1c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'758b3e0a23174601a025281709eb5f1c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'758b3e0a23174601a025281709eb5f1c', x'8cf5f36cf9534e5587417a1926bf646c', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1862355eef_c5080435d48892c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:39', 'account1@before.destroy', '$2a$04$dNZdVSHnOArqSeUsD6YtH.hwFcEq0EP8iSfrrh8BrybgEBIi2wAXS', NULL, x'6150665c713a44d2b141af01d8e553c3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6150665c713a44d2b141af01d8e553c3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'0c018142ebc74c6c8437dcf0ca436464', 'a9e19073a977c0369daead5213529f65', x'6150665c713a44d2b141af01d8e553c3', 'User', '2012-12-31 12:33:39') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6150665c713a44d2b141af01d8e553c3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'b8e37c8946814e1fa3e43ae0ba2a6c2e', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'accountb8e37c89-4681-4e1f-a3e4-3ae0ba2a6c2e' WHERE `accounts`.`id` = x'b8e37c8946814e1fa3e43ae0ba2a6c2e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b8e37c8946814e1fa3e43ae0ba2a6c2e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b8e37c8946814e1fa3e43ae0ba2a6c2e', x'8575859ff2924e9b855b0712302f79e4', x'6150665c713a44d2b141af01d8e553c3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8575859ff2924e9b855b0712302f79e4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8575859ff2924e9b855b0712302f79e4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8575859ff2924e9b855b0712302f79e4', x'4e0c84c5b7a54c72a9bbe46015a099ea', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8575859ff2924e9b855b0712302f79e4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8575859ff2924e9b855b0712302f79e4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8575859ff2924e9b855b0712302f79e4', x'22d1f2cbb39a4de19fb2184c70506394', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1862362413_c5080435d4889378@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6150665c713a44d2b141af01d8e553c3' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyUserJob\nid: 6150665c-713a-44d2-b141-af01d8e553c3\n', NULL, NULL, NULL, 0, 'user_6150665c-713a-44d2-b141-af01d8e553c3_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_6150665c-713a-44d2-b141-af01d8e553c3_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6150665c713a44d2b141af01d8e553c3' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6150665c713a44d2b141af01d8e553c3' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 8575859f-f292-4e9b-855b-0712302f79e4\n', NULL, NULL, NULL, 0, 'account_user_8575859f-f292-4e9b-855b-0712302f79e4_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'6150665c713a44d2b141af01d8e553c3' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6150665c713a44d2b141af01d8e553c3'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'b8e37c8946814e1fa3e43ae0ba2a6c2e' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyAccountJob\nid: b8e37c89-4681-4e1f-a3e4-3ae0ba2a6c2e\n', NULL, NULL, NULL, 0, 'account_b8e37c89-4681-4e1f-a3e4-3ae0ba2a6c2e_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'6150665c713a44d2b141af01d8e553c3'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b8e37c89-4681-4e1f-a3e4-3ae0ba2a6c2e_destroy' LIMIT 1  (13.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:39', 'account1@before.destroy', '$2a$04$nHBJkiNgNquDCrDDfnSWruKOqJEFktZ4rbELOZ0rmFx6cvwcp.Vf2', NULL, x'3e8756756ed64824af883911dde2172c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3e8756756ed64824af883911dde2172c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'b76485e842674c7b9db7bdaeda93ef68', '98ff663d91c3dd1cb4129264a4aa4884', x'3e8756756ed64824af883911dde2172c', 'User', '2012-12-31 12:33:39') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3e8756756ed64824af883911dde2172c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'fe9054858b874b189dd6ecd100227720', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'accountfe905485-8b87-4b18-9dd6-ecd100227720' WHERE `accounts`.`id` = x'fe9054858b874b189dd6ecd100227720' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fe9054858b874b189dd6ecd100227720' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fe9054858b874b189dd6ecd100227720', x'aad50d11f1184618a18b8af14f31d3c2', x'3e8756756ed64824af883911dde2172c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aad50d11f1184618a18b8af14f31d3c2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aad50d11f1184618a18b8af14f31d3c2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aad50d11f1184618a18b8af14f31d3c2', x'40a0ab5c0c46478ca9221f5ddd902769', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aad50d11f1184618a18b8af14f31d3c2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aad50d11f1184618a18b8af14f31d3c2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aad50d11f1184618a18b8af14f31d3c2', x'f0237523ddcd46f187af43625423206a', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1862392026_c5080435d48894e0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'8e0f4c32735b46f6881cc89a8aeaddd3', 'jabanilson', NULL, 1, '2012-12-31 12:33:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'account8e0f4c32-735b-46f6-881c-c89a8aeaddd3' WHERE `accounts`.`id` = x'8e0f4c32735b46f6881cc89a8aeaddd3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3e8756756ed64824af883911dde2172c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8e0f4c32735b46f6881cc89a8aeaddd3', x'19f0c82c85f945f2ade9f74a6ad51298', x'3e8756756ed64824af883911dde2172c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'19f0c82c85f945f2ade9f74a6ad51298') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19f0c82c85f945f2ade9f74a6ad51298' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19f0c82c85f945f2ade9f74a6ad51298', x'db8d9c0426754995854ea6c8c75f290b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'19f0c82c85f945f2ade9f74a6ad51298') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19f0c82c85f945f2ade9f74a6ad51298' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19f0c82c85f945f2ade9f74a6ad51298', x'bdd3828dfd14440cb46bb5e685b470ef', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e8756756ed64824af883911dde2172c' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyUserJob\nid: 3e875675-6ed6-4824-af88-3911dde2172c\n', NULL, NULL, NULL, 0, 'user_3e875675-6ed6-4824-af88-3911dde2172c_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3e875675-6ed6-4824-af88-3911dde2172c_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3e8756756ed64824af883911dde2172c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3e8756756ed64824af883911dde2172c' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 19f0c82c-85f9-45f2-ade9-f74a6ad51298\n', NULL, NULL, NULL, 0, 'account_user_19f0c82c-85f9-45f2-ade9-f74a6ad51298_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39') SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: aad50d11-f118-4618-a18b-8af14f31d3c2\n', NULL, NULL, NULL, 0, 'account_user_aad50d11-f118-4618-a18b-8af14f31d3c2_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3e8756756ed64824af883911dde2172c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e8756756ed64824af883911dde2172c'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'8e0f4c32735b46f6881cc89a8aeaddd3' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 8e0f4c32-735b-46f6-881c-c89a8aeaddd3\n', NULL, NULL, NULL, 0, 'account_8e0f4c32-735b-46f6-881c-c89a8aeaddd3_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39')  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'fe9054858b874b189dd6ecd100227720' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyAccountJob\nid: fe905485-8b87-4b18-9dd6-ecd100227720\n', NULL, NULL, NULL, 0, 'account_fe905485-8b87-4b18-9dd6-ecd100227720_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39') SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'3e8756756ed64824af883911dde2172c'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_fe905485-8b87-4b18-9dd6-ecd100227720_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:39', 'account1@before.destroy', '$2a$04$kzmbXcRddZ5fEwgvLTsZUe0DYobmJHSMEjMbCC0saIZzxt3BOfavq', NULL, x'd7caee0ff1004ab886e99c04d0e0edcf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd7caee0ff1004ab886e99c04d0e0edcf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'e2d2993d0f8a40acb23faccdd612f70a', '9d104c426915492b9a79b3462d792fbf', x'd7caee0ff1004ab886e99c04d0e0edcf', 'User', '2012-12-31 12:33:39') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd7caee0ff1004ab886e99c04d0e0edcf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'b0e323659eda4264ad44652d00d623a6', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'accountb0e32365-9eda-4264-ad44-652d00d623a6' WHERE `accounts`.`id` = x'b0e323659eda4264ad44652d00d623a6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b0e323659eda4264ad44652d00d623a6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b0e323659eda4264ad44652d00d623a6', x'7d6aab8263464be9838b18a18336c23f', x'd7caee0ff1004ab886e99c04d0e0edcf') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7d6aab8263464be9838b18a18336c23f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d6aab8263464be9838b18a18336c23f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d6aab8263464be9838b18a18336c23f', x'ca54dde4b65f4600b278dd871336737e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7d6aab8263464be9838b18a18336c23f') LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d6aab8263464be9838b18a18336c23f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d6aab8263464be9838b18a18336c23f', x'444f5b8628ac49b685b6fa2aad9b2e4a', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account1@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e18623a9e6d_c5080435d48895d0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd7caee0ff1004ab886e99c04d0e0edcf' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:37', '2012-12-31 12:33:39', 'account2@before.destroy', '$2a$04$HroUkutjTXKnHoLtaV3ACuUV7JMq/s7cDoN3JoO3dlS1fENA.E4ZO', NULL, x'b3f13f2045f342e991142cc398aa2af6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b3f13f2045f342e991142cc398aa2af6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'6ed99a38701340cab3ee59dcd41853c7', 'c0862e92acf7539dc5a1aefa5775f2a3', x'b3f13f2045f342e991142cc398aa2af6', 'User', '2012-12-31 12:33:39') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b3f13f2045f342e991142cc398aa2af6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'30b8587f39e44e958222833ec7503f5c', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'account30b8587f-39e4-4e95-8222-833ec7503f5c' WHERE `accounts`.`id` = x'30b8587f39e44e958222833ec7503f5c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'30b8587f39e44e958222833ec7503f5c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'30b8587f39e44e958222833ec7503f5c', x'f81a5fb75ab949f4ae030f82dcf748fd', x'b3f13f2045f342e991142cc398aa2af6') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f81a5fb75ab949f4ae030f82dcf748fd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f81a5fb75ab949f4ae030f82dcf748fd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f81a5fb75ab949f4ae030f82dcf748fd', x'a7dc41fa59b74c178e7c5c47642d4d41', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f81a5fb75ab949f4ae030f82dcf748fd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f81a5fb75ab949f4ae030f82dcf748fd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f81a5fb75ab949f4ae030f82dcf748fd', x'e90ad3bd6bb14a3ab1b3d3f02e7a2cf5', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to account2@before.destroy (6ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e18623b5a73_c5080435d48896ee@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b0e323659eda4264ad44652d00d623a6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b0e323659eda4264ad44652d00d623a6', x'3a4c21b308224532a7dd09576b68c6ad', x'b3f13f2045f342e991142cc398aa2af6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3a4c21b308224532a7dd09576b68c6ad') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a4c21b308224532a7dd09576b68c6ad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a4c21b308224532a7dd09576b68c6ad', x'bac51a8b9d6f4c1ba06d93a1e6bd2907', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3a4c21b308224532a7dd09576b68c6ad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a4c21b308224532a7dd09576b68c6ad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a4c21b308224532a7dd09576b68c6ad', x'ef674b6b831c45a2a94531fe922a7d62', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyUserJob\nid: d7caee0f-f100-4ab8-86e9-9c04d0e0edcf\n', NULL, NULL, NULL, 0, 'user_d7caee0f-f100-4ab8-86e9-9c04d0e0edcf_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_d7caee0f-f100-4ab8-86e9-9c04d0e0edcf_destroy' LIMIT 1 User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd7caee0ff1004ab886e99c04d0e0edcf' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd7caee0ff1004ab886e99c04d0e0edcf' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 7d6aab82-6346-4be9-838b-18a18336c23f\n', NULL, NULL, NULL, 0, 'account_user_7d6aab82-6346-4be9-838b-18a18336c23f_destroy', '2012-12-31 12:33:39', '2012-12-31 12:33:39') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd7caee0ff1004ab886e99c04d0e0edcf' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd7caee0ff1004ab886e99c04d0e0edcf'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'b0e323659eda4264ad44652d00d623a6' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'd7caee0ff1004ab886e99c04d0e0edcf'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b0e32365-9eda-4264-ad44-652d00d623a6_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:39', '2012-12-31 12:33:39', '', '', 1, x'42a0dc518cd246a0b4f04616b1819e52', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'42a0dc518cd246a0b4f04616b1819e52' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'8c1e19654ab34f3681f7631c5c3b1ee1', 'e0f16750fd0a59ca0dd7059f8cda077d', x'42a0dc518cd246a0b4f04616b1819e52', 'User', '2012-12-31 12:33:39') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'42a0dc518cd246a0b4f04616b1819e52' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'1a85ded084e84848b4c00053252a25cb', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'account1a85ded0-84e8-4848-b4c0-0053252a25cb' WHERE `accounts`.`id` = x'1a85ded084e84848b4c00053252a25cb' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1a85ded084e84848b4c00053252a25cb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1a85ded084e84848b4c00053252a25cb', x'7c321fa7e9ba4c8d812cb29e71bb644b', x'42a0dc518cd246a0b4f04616b1819e52') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7c321fa7e9ba4c8d812cb29e71bb644b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c321fa7e9ba4c8d812cb29e71bb644b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c321fa7e9ba4c8d812cb29e71bb644b', x'0a436095f7fd432d86849077ab21ad94', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7c321fa7e9ba4c8d812cb29e71bb644b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c321fa7e9ba4c8d812cb29e71bb644b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c321fa7e9ba4c8d812cb29e71bb644b', x'461ab1e8e3fc461ba6325bc67ab53c95', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyUserJob\nid: 42a0dc51-8cd2-46a0-b4f0-4616b1819e52\n', NULL, NULL, NULL, 0, 'guest_42a0dc51-8cd2-46a0-b4f0-4616b1819e52_destroy', '2013-01-07 12:33:39', '2012-12-31 12:33:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'42a0dc518cd246a0b4f04616b1819e52' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != x'42a0dc518cd246a0b4f04616b1819e52') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$R/dVlm78HWZCmiQb2mCs7.mhPByyZR1qrZhBEgEmG2SuB9tNbYlNy', `unconfirmed_email` = 'regular@user.now', `updated_at` = '2012-12-31 12:33:39' WHERE `users`.`id` = x'42a0dc518cd246a0b4f04616b1819e52' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'tvkZ1U2qVXGwhLWxHfSy' LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$R/dVlm78HWZCmiQb2mCs7.mhPByyZR1qrZhBEgEmG2SuB9tNbYlNy', `unconfirmed_email` = 'regular@user.now', `updated_at` = '2012-12-31 12:33:39', `confirmation_token` = 'tvkZ1U2qVXGwhLWxHfSy', `confirmation_sent_at` = '2012-12-31 12:33:39' WHERE `users`.`id` = x'42a0dc518cd246a0b4f04616b1819e52' Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/confirmation_instructions.html.haml (2.4ms) Sent mail to regular@user.now (6ms) Date: Mon, 31 Dec 2012 10:33:39 -0200 From: Iugu Reply-To: Iugu To: regular@user.now Message-ID: <50e18623ddbe7_c5080435d48897d5@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_42a0dc51-8cd2-46a0-b4f0-4616b1819e52_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:39', '2012-12-31 12:33:39', '', '', 1, x'30ca98e77c4e46c0b870534ef1d213f2', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'30ca98e77c4e46c0b870534ef1d213f2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'6ef5a6ed0de94f92b0dd62720b5bd2c7', 'a36aa69860c9c4883e39bc81d8093d98', x'30ca98e77c4e46c0b870534ef1d213f2', 'User', '2012-12-31 12:33:39') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'30ca98e77c4e46c0b870534ef1d213f2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'3baf874de464487ebaa7b8e2cae1c061', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'account3baf874d-e464-487e-baa7-b8e2cae1c061' WHERE `accounts`.`id` = x'3baf874de464487ebaa7b8e2cae1c061' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3baf874de464487ebaa7b8e2cae1c061' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3baf874de464487ebaa7b8e2cae1c061', x'd72747656b2a4a378a069a8e0debd420', x'30ca98e77c4e46c0b870534ef1d213f2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd72747656b2a4a378a069a8e0debd420') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd72747656b2a4a378a069a8e0debd420' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd72747656b2a4a378a069a8e0debd420', x'34c37bcbf7fc4545ac68a7bc399b6764', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd72747656b2a4a378a069a8e0debd420') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd72747656b2a4a378a069a8e0debd420' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd72747656b2a4a378a069a8e0debd420', x'349dc32a93874cd3a317191f246db89f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyUserJob\nid: 30ca98e7-7c4e-46c0-b870-534ef1d213f2\n', NULL, NULL, NULL, 0, 'guest_30ca98e7-7c4e-46c0-b870-534ef1d213f2_destroy', '2013-01-07 12:33:39', '2012-12-31 12:33:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'30ca98e77c4e46c0b870534ef1d213f2' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != x'30ca98e77c4e46c0b870534ef1d213f2') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:33:39', '2012-12-31 12:33:39', '', '', 1, x'7c2d666ada16403c83d43bf544633774', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:33:39') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7c2d666ada16403c83d43bf544633774' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:33:39', 'User', x'c1c009a5e3df455b838043de5db077ef', 'cba5ca8e9d29a81c330ddf88384985c4', x'7c2d666ada16403c83d43bf544633774', 'User', '2012-12-31 12:33:39') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7c2d666ada16403c83d43bf544633774' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:33:39', x'f19cf27152b84631b0c2cbfe726f41df', NULL, NULL, NULL, '2012-12-31 12:33:39')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:33:39', `updated_at` = '2012-12-31 12:33:39', `subdomain` = 'accountf19cf271-52b8-4631-b0c2-cbfe726f41df' WHERE `accounts`.`id` = x'f19cf27152b84631b0c2cbfe726f41df' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f19cf27152b84631b0c2cbfe726f41df' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f19cf27152b84631b0c2cbfe726f41df', x'772111aaa2eb48e080fd665d61efbb9e', x'7c2d666ada16403c83d43bf544633774') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'772111aaa2eb48e080fd665d61efbb9e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'772111aaa2eb48e080fd665d61efbb9e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'772111aaa2eb48e080fd665d61efbb9e', x'5b613e10eafc4ada89a631cab170a2ff', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'772111aaa2eb48e080fd665d61efbb9e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'772111aaa2eb48e080fd665d61efbb9e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'772111aaa2eb48e080fd665d61efbb9e', x'cae11d5441fd4cd3aa27de585125e927', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:33:39', NULL, '--- !ruby/struct:DestroyUserJob\nid: 7c2d666a-da16-403c-83d4-3bf544633774\n', NULL, NULL, NULL, 0, 'guest_7c2d666a-da16-403c-83d4-3bf544633774_destroy', '2013-01-07 12:33:39', '2012-12-31 12:33:39')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7c2d666ada16403c83d43bf544633774'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.2ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (29.5ms) TRUNCATE TABLE `account_roles`;  (1.2ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.0ms) TRUNCATE TABLE `user_invitations`;  (1.1ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:01', 'teste@teste.com', '$2a$04$qXigWi7qAJkyzk1lIRB8tuII9p4qhau3ewo5UKfRM7uy7CQkAwS5y', NULL, x'a557fa1caa3e4400a94c70cbef2415bc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:01') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a557fa1caa3e4400a94c70cbef2415bc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:01', 'User', x'd5794ce8e5de480cb9eb62465f8f8b0f', 'd8bc9567e914f869e159942aafbc0577', x'a557fa1caa3e4400a94c70cbef2415bc', 'User', '2012-12-31 12:34:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a557fa1caa3e4400a94c70cbef2415bc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:01', x'9a603c75c5d543b8a718a15bc1360fd6', NULL, NULL, NULL, '2012-12-31 12:34:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:01', `updated_at` = '2012-12-31 12:34:01', `subdomain` = 'account9a603c75-c5d5-43b8-a718-a15bc1360fd6' WHERE `accounts`.`id` = x'9a603c75c5d543b8a718a15bc1360fd6' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9a603c75c5d543b8a718a15bc1360fd6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9a603c75c5d543b8a718a15bc1360fd6', x'a5ecac925cba4b8c942626ff4f6df162', x'a557fa1caa3e4400a94c70cbef2415bc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a5ecac925cba4b8c942626ff4f6df162') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5ecac925cba4b8c942626ff4f6df162' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5ecac925cba4b8c942626ff4f6df162', x'2b31ddb7f2864826937e8e56daa8380c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a5ecac925cba4b8c942626ff4f6df162') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5ecac925cba4b8c942626ff4f6df162' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5ecac925cba4b8c942626ff4f6df162', x'5892f0ccdbbc48cfaee17ec1bb323684', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (153ms) Date: Mon, 31 Dec 2012 10:34:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863a23253_c6080435d4862882@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'f37430914c2e4fea839a431cb4744387', 'jabanilson', NULL, 1, '2012-12-31 12:34:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'accountf3743091-4c2e-4fea-839a-431cb4744387' WHERE `accounts`.`id` = x'f37430914c2e4fea839a431cb4744387'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f37430914c2e4fea839a431cb4744387', x'4ea8a81bd0c24339a86d2c7cc17016e9', x'a557fa1caa3e4400a94c70cbef2415bc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4ea8a81bd0c24339a86d2c7cc17016e9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ea8a81bd0c24339a86d2c7cc17016e9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4ea8a81bd0c24339a86d2c7cc17016e9', x'efefc728bef640d6a3c7a19ef6fe4075', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4ea8a81bd0c24339a86d2c7cc17016e9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ea8a81bd0c24339a86d2c7cc17016e9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4ea8a81bd0c24339a86d2c7cc17016e9', x'fe60d91210594625ae3d0be4e85ad2d9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a557fa1caa3e4400a94c70cbef2415bc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a557fa1caa3e4400a94c70cbef2415bc' LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a557fa1caa3e4400a94c70cbef2415bc' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.8ms) Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.4ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:02', 'teste@teste.com', '$2a$04$Yl.35HXISgZ4JUfVwnbdXOOoI9RXCT6cLpoQLqNTQ13IqdImmfFlS', NULL, x'06cd4b2812b241319057a39c91b28ffa', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'06cd4b2812b241319057a39c91b28ffa' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:02', 'User', x'a2b9ee5e35114a37b127610de634b3a0', 'f6007313ff96498bd9eb01c8c52b9a9d', x'06cd4b2812b241319057a39c91b28ffa', 'User', '2012-12-31 12:34:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'06cd4b2812b241319057a39c91b28ffa' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'547e4e8ffb47427dba60693a9fc63bb7', NULL, NULL, NULL, '2012-12-31 12:34:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'account547e4e8f-fb47-427d-ba60-693a9fc63bb7' WHERE `accounts`.`id` = x'547e4e8ffb47427dba60693a9fc63bb7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'547e4e8ffb47427dba60693a9fc63bb7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'547e4e8ffb47427dba60693a9fc63bb7', x'e4ec4c97c43649b4b4dbb87cedcf8c0d', x'06cd4b2812b241319057a39c91b28ffa') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e4ec4c97c43649b4b4dbb87cedcf8c0d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e4ec4c97c43649b4b4dbb87cedcf8c0d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e4ec4c97c43649b4b4dbb87cedcf8c0d', x'13ab978986b14614927f8449ebf97b17', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e4ec4c97c43649b4b4dbb87cedcf8c0d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e4ec4c97c43649b4b4dbb87cedcf8c0d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e4ec4c97c43649b4b4dbb87cedcf8c0d', x'6550a43654c64040a1e0ecf45fa1f5f9', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863a6681b_c6080435d48629e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'c8239e1daeb943488bfe6d3991589e9f', 'jabanilson', NULL, 1, '2012-12-31 12:34:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'accountc8239e1d-aeb9-4348-8bfe-6d3991589e9f' WHERE `accounts`.`id` = x'c8239e1daeb943488bfe6d3991589e9f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c8239e1daeb943488bfe6d3991589e9f', x'2a1c5a8cbf0f46258b9c9e38e69ebcaf', x'06cd4b2812b241319057a39c91b28ffa') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2a1c5a8cbf0f46258b9c9e38e69ebcaf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a1c5a8cbf0f46258b9c9e38e69ebcaf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a1c5a8cbf0f46258b9c9e38e69ebcaf', x'eaa423a655a6423192755628eb5544eb', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2a1c5a8cbf0f46258b9c9e38e69ebcaf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a1c5a8cbf0f46258b9c9e38e69ebcaf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a1c5a8cbf0f46258b9c9e38e69ebcaf', x'8c5cbb23bcc94fe8b7b233b24d45b84f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06cd4b2812b241319057a39c91b28ffa' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06cd4b2812b241319057a39c91b28ffa' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06cd4b2812b241319057a39c91b28ffa' LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"547E4E8FFB47427DBA60693A9FC63BB7"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'06cd4b2812b241319057a39c91b28ffa' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06cd4b2812b241319057a39c91b28ffa' AND `accounts`.`id` = x'547e4e8ffb47427dba60693a9fc63bb7' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'547e4e8ffb47427dba60693a9fc63bb7' AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 13ms (Views: 2.5ms | ActiveRecord: 3.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:02', 'teste@teste.com', '$2a$04$/Uj5/tQJ6qBGfqyBAgN2zOWnXdEE3tThHqpswj9fVmIJPvpnYKYgu', NULL, x'fd176ebbcb72435db2b2cdae213a9758', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fd176ebbcb72435db2b2cdae213a9758' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:02', 'User', x'19177a3f130b42608b0862643ac6ec77', '315c46377a40a0e84c4c8a5d60b61bdb', x'fd176ebbcb72435db2b2cdae213a9758', 'User', '2012-12-31 12:34:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fd176ebbcb72435db2b2cdae213a9758' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'10e748e267bb474ebc4c5ccc3e28e23a', NULL, NULL, NULL, '2012-12-31 12:34:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'account10e748e2-67bb-474e-bc4c-5ccc3e28e23a' WHERE `accounts`.`id` = x'10e748e267bb474ebc4c5ccc3e28e23a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'10e748e267bb474ebc4c5ccc3e28e23a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'10e748e267bb474ebc4c5ccc3e28e23a', x'a309eb49121040c4a51303588b32bf4d', x'fd176ebbcb72435db2b2cdae213a9758') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a309eb49121040c4a51303588b32bf4d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a309eb49121040c4a51303588b32bf4d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a309eb49121040c4a51303588b32bf4d', x'ac97a36a5ac54386b711a7563b3095e4', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a309eb49121040c4a51303588b32bf4d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a309eb49121040c4a51303588b32bf4d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a309eb49121040c4a51303588b32bf4d', x'c9614157e8d243c7ab7833231300a692', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863a8bd73_c6080435d48630d5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'9ae8889f4dc84f1da3cd4aa7d721bd18', 'jabanilson', NULL, 1, '2012-12-31 12:34:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'account9ae8889f-4dc8-4f1d-a3cd-4aa7d721bd18' WHERE `accounts`.`id` = x'9ae8889f4dc84f1da3cd4aa7d721bd18'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9ae8889f4dc84f1da3cd4aa7d721bd18', x'ea290520d23a4e70ab7aa1bd205681ed', x'fd176ebbcb72435db2b2cdae213a9758') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ea290520d23a4e70ab7aa1bd205681ed') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ea290520d23a4e70ab7aa1bd205681ed' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ea290520d23a4e70ab7aa1bd205681ed', x'6eb9f9eb5528412f9454512a3ee43170', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ea290520d23a4e70ab7aa1bd205681ed') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ea290520d23a4e70ab7aa1bd205681ed' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ea290520d23a4e70ab7aa1bd205681ed', x'a795493029204ce1a2ca8127ae2858c7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fd176ebbcb72435db2b2cdae213a9758' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fd176ebbcb72435db2b2cdae213a9758' LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fd176ebbcb72435db2b2cdae213a9758' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'fd176ebbcb72435db2b2cdae213a9758' AND `account_users`.`account_id` = x'10e748e267bb474ebc4c5ccc3e28e23a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'10e748e267bb474ebc4c5ccc3e28e23a' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'10e748e267bb474ebc4c5ccc3e28e23a' AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 1.2ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:02', 'teste@teste.com', '$2a$04$2Y6UatpN75SaQkWMN7Ujbey8nXedRoI3mIyVsWBpK4UsVaFDVCiXO', NULL, x'34c2ef55d9ef41cd9bd526e02e69a108', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'34c2ef55d9ef41cd9bd526e02e69a108' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:02', 'User', x'e5aef9de5b92422b86ea1a33959f51e5', '0c1cf08ae6c440d7e5e5c28e4e02c662', x'34c2ef55d9ef41cd9bd526e02e69a108', 'User', '2012-12-31 12:34:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'34c2ef55d9ef41cd9bd526e02e69a108' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'4a63a7793c1242d0b94756790d29884b', NULL, NULL, NULL, '2012-12-31 12:34:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'account4a63a779-3c12-42d0-b947-56790d29884b' WHERE `accounts`.`id` = x'4a63a7793c1242d0b94756790d29884b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4a63a7793c1242d0b94756790d29884b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4a63a7793c1242d0b94756790d29884b', x'970636571477473a9c90781e7de0a93c', x'34c2ef55d9ef41cd9bd526e02e69a108') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'970636571477473a9c90781e7de0a93c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'970636571477473a9c90781e7de0a93c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'970636571477473a9c90781e7de0a93c', x'27a4a64555114a89baf5ade819bed405', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'970636571477473a9c90781e7de0a93c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'970636571477473a9c90781e7de0a93c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'970636571477473a9c90781e7de0a93c', x'cd0e8482c96f450da0e6c47a076cb062', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863a9fc0d_c6080435d486318d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'7dc5d530061a44f0b766309561a1b726', 'jabanilson', NULL, 1, '2012-12-31 12:34:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'account7dc5d530-061a-44f0-b766-309561a1b726' WHERE `accounts`.`id` = x'7dc5d530061a44f0b766309561a1b726'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7dc5d530061a44f0b766309561a1b726', x'2a079788080e44dd932c9c7f26c5b4b1', x'34c2ef55d9ef41cd9bd526e02e69a108') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2a079788080e44dd932c9c7f26c5b4b1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a079788080e44dd932c9c7f26c5b4b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a079788080e44dd932c9c7f26c5b4b1', x'e76063fdc4d5417eb6b1e2ae36a83bed', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2a079788080e44dd932c9c7f26c5b4b1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a079788080e44dd932c9c7f26c5b4b1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a079788080e44dd932c9c7f26c5b4b1', x'54b0144944af40d1955fe792a1894c07', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'34c2ef55d9ef41cd9bd526e02e69a108' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'34c2ef55d9ef41cd9bd526e02e69a108' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'34c2ef55d9ef41cd9bd526e02e69a108' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"7DC5D530061A44F0B766309561A1B726"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'34c2ef55d9ef41cd9bd526e02e69a108' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'34c2ef55d9ef41cd9bd526e02e69a108' AND `account_users`.`account_id` = x'7dc5d530061a44f0b766309561a1b726' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a079788080e44dd932c9c7f26c5b4b1' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'34c2ef55d9ef41cd9bd526e02e69a108' AND `accounts`.`id` = x'7dc5d530061a44f0b766309561a1b726' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:02', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 7dc5d530-061a-44f0-b766-309561a1b726\n', NULL, NULL, NULL, 0, 'account_7dc5d530-061a-44f0-b766-309561a1b726_destroy', '2012-12-31 12:34:02', '2012-12-31 12:34:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7dc5d530-061a-44f0-b766-309561a1b726_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 30ms (ActiveRecord: 4.6ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:02', 'teste@teste.com', '$2a$04$PXfvywEdw5bHC.C2.jLYkutW3hbZInFbcXsVLxQUo/Kdzk48HbHjK', NULL, x'60fcbb0e92364c81aea6663bcc89021f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'60fcbb0e92364c81aea6663bcc89021f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:02', 'User', x'705594bbe6f447638d0522c73230be49', '20e35d4ecc6dce150bfda7eccda85664', x'60fcbb0e92364c81aea6663bcc89021f', 'User', '2012-12-31 12:34:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'60fcbb0e92364c81aea6663bcc89021f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'112cb7c7eae44ab49dc5bf1ca1dfb3b8', NULL, NULL, NULL, '2012-12-31 12:34:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'account112cb7c7-eae4-4ab4-9dc5-bf1ca1dfb3b8' WHERE `accounts`.`id` = x'112cb7c7eae44ab49dc5bf1ca1dfb3b8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'112cb7c7eae44ab49dc5bf1ca1dfb3b8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'112cb7c7eae44ab49dc5bf1ca1dfb3b8', x'5380b31804c94bf294ab86f8c23e29f7', x'60fcbb0e92364c81aea6663bcc89021f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5380b31804c94bf294ab86f8c23e29f7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5380b31804c94bf294ab86f8c23e29f7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5380b31804c94bf294ab86f8c23e29f7', x'f9e838d54a434cba97063420dc82dc72', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5380b31804c94bf294ab86f8c23e29f7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5380b31804c94bf294ab86f8c23e29f7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5380b31804c94bf294ab86f8c23e29f7', x'b18c80b4ea124ec88064c7d30ab15778', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863ab9191_c6080435d48632b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'01dfee3b1d1e43cc96e49d89ad703bc0', 'jabanilson', NULL, 1, '2012-12-31 12:34:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'account01dfee3b-1d1e-43cc-96e4-9d89ad703bc0' WHERE `accounts`.`id` = x'01dfee3b1d1e43cc96e49d89ad703bc0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'01dfee3b1d1e43cc96e49d89ad703bc0', x'1ebc1866ea9e419e8d096da5878efcdf', x'60fcbb0e92364c81aea6663bcc89021f') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1ebc1866ea9e419e8d096da5878efcdf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1ebc1866ea9e419e8d096da5878efcdf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1ebc1866ea9e419e8d096da5878efcdf', x'e263afb8e230478fbcbb469dee1df1d0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1ebc1866ea9e419e8d096da5878efcdf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1ebc1866ea9e419e8d096da5878efcdf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1ebc1866ea9e419e8d096da5878efcdf', x'8f9a067f88b54891953cb726a2e2a29b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60fcbb0e92364c81aea6663bcc89021f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60fcbb0e92364c81aea6663bcc89021f' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60fcbb0e92364c81aea6663bcc89021f' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"01DFEE3B1D1E43CC96E49D89AD703BC0"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'60fcbb0e92364c81aea6663bcc89021f' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'60fcbb0e92364c81aea6663bcc89021f' AND `account_users`.`account_id` = x'01dfee3b1d1e43cc96e49d89ad703bc0' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1ebc1866ea9e419e8d096da5878efcdf' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60fcbb0e92364c81aea6663bcc89021f' AND `accounts`.`id` = x'01dfee3b1d1e43cc96e49d89ad703bc0' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:02', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 01dfee3b-1d1e-43cc-96e4-9d89ad703bc0\n', NULL, NULL, NULL, 0, 'account_01dfee3b-1d1e-43cc-96e4-9d89ad703bc0_destroy', '2012-12-31 12:34:02', '2012-12-31 12:34:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_01dfee3b-1d1e-43cc-96e4-9d89ad703bc0_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 15ms (ActiveRecord: 2.0ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60fcbb0e92364c81aea6663bcc89021f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_01dfee3b-1d1e-43cc-96e4-9d89ad703bc0_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:02', 'teste@teste.com', '$2a$04$wVY4Nn.GdR5HUj3ndci7/epi4aiL1Jsdbbf6Qj4Mz0XfWmzvER2Cu', NULL, x'ebdadc8d85374de0bf5cd4093619bf36', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ebdadc8d85374de0bf5cd4093619bf36' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:02', 'User', x'a7dca20a2dcd40b0a67827396a132d12', '134f66cba12c4a76c8fa719fa2dbc59c', x'ebdadc8d85374de0bf5cd4093619bf36', 'User', '2012-12-31 12:34:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ebdadc8d85374de0bf5cd4093619bf36' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'9617b02ca1d143efb1c2ed9b4f84b94e', NULL, NULL, NULL, '2012-12-31 12:34:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'account9617b02c-a1d1-43ef-b1c2-ed9b4f84b94e' WHERE `accounts`.`id` = x'9617b02ca1d143efb1c2ed9b4f84b94e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9617b02ca1d143efb1c2ed9b4f84b94e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9617b02ca1d143efb1c2ed9b4f84b94e', x'bb8e2ed385eb41f293a3cc446c355814', x'ebdadc8d85374de0bf5cd4093619bf36') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bb8e2ed385eb41f293a3cc446c355814') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb8e2ed385eb41f293a3cc446c355814' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb8e2ed385eb41f293a3cc446c355814', x'31f75a9419c5472ca1942601ed3d2f1b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bb8e2ed385eb41f293a3cc446c355814') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb8e2ed385eb41f293a3cc446c355814' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb8e2ed385eb41f293a3cc446c355814', x'a0f2a56e99e34900956fa9ac71093fd5', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863aee051_c6080435d486331a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:02', x'a86836c743994977a0d43b176268973b', 'jabanilson', NULL, 1, '2012-12-31 12:34:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:02', `updated_at` = '2012-12-31 12:34:02', `subdomain` = 'accounta86836c7-4399-4977-a0d4-3b176268973b' WHERE `accounts`.`id` = x'a86836c743994977a0d43b176268973b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a86836c743994977a0d43b176268973b', x'c4def93caef94a9792f003d315745cf0', x'ebdadc8d85374de0bf5cd4093619bf36') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c4def93caef94a9792f003d315745cf0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4def93caef94a9792f003d315745cf0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4def93caef94a9792f003d315745cf0', x'4d986987e19442519f894bc95f3d0cfc', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c4def93caef94a9792f003d315745cf0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4def93caef94a9792f003d315745cf0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4def93caef94a9792f003d315745cf0', x'85bb90fa6f84496cb3995d27f158aae5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebdadc8d85374de0bf5cd4093619bf36' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebdadc8d85374de0bf5cd4093619bf36' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebdadc8d85374de0bf5cd4093619bf36' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"9617B02CA1D143EFB1C2ED9B4F84B94E"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ebdadc8d85374de0bf5cd4093619bf36' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ebdadc8d85374de0bf5cd4093619bf36' AND `account_users`.`account_id` = x'9617b02ca1d143efb1c2ed9b4f84b94e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bb8e2ed385eb41f293a3cc446c355814' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$md1QLWzNHpoEE3BV8a7Xu.i.Lb8WzDQ.4tf1yhm.bFIS7QMwFnph6', NULL, x'0bcd99daf1814adb9cb64e95a19a6cd4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'9df805378bf540b8a21dd5ce5597b350', '23b320653878410160afd5270d67a0d0', x'0bcd99daf1814adb9cb64e95a19a6cd4', 'User', '2012-12-31 12:34:03') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'4e3ada9241ea4d3b9a2dda4c3d11a1bb', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account4e3ada92-41ea-4d3b-9a2d-da4c3d11a1bb' WHERE `accounts`.`id` = x'4e3ada9241ea4d3b9a2dda4c3d11a1bb' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4e3ada9241ea4d3b9a2dda4c3d11a1bb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4e3ada9241ea4d3b9a2dda4c3d11a1bb', x'dccf471d775d4185890a1f8602b3e2cf', x'0bcd99daf1814adb9cb64e95a19a6cd4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dccf471d775d4185890a1f8602b3e2cf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dccf471d775d4185890a1f8602b3e2cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dccf471d775d4185890a1f8602b3e2cf', x'9adf679697904950a7251a6a900cd7ca', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dccf471d775d4185890a1f8602b3e2cf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dccf471d775d4185890a1f8602b3e2cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dccf471d775d4185890a1f8602b3e2cf', x'64819b9804fa4b588665337ee627b47b', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:34:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863b107a3_c6080435d48634fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'15b3b774fd63423cb65a54f499407040', 'jabanilson', NULL, 1, '2012-12-31 12:34:03')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account15b3b774-fd63-423c-b65a-54f499407040' WHERE `accounts`.`id` = x'15b3b774fd63423cb65a54f499407040'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'15b3b774fd63423cb65a54f499407040', x'31ce6da9e8744825974ba7fd9297d58f', x'0bcd99daf1814adb9cb64e95a19a6cd4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'31ce6da9e8744825974ba7fd9297d58f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'31ce6da9e8744825974ba7fd9297d58f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'31ce6da9e8744825974ba7fd9297d58f', x'd1fcb6e068f24078ba605b7bc4745e12', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'31ce6da9e8744825974ba7fd9297d58f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'31ce6da9e8744825974ba7fd9297d58f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'31ce6da9e8744825974ba7fd9297d58f', x'88e36ad111224ece823f5aa87ac2ee14', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:03', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 15b3b774-fd63-423c-b65a-54f499407040\n', NULL, NULL, NULL, 0, 'account_15b3b774-fd63-423c-b65a-54f499407040_destroy', '2012-12-31 12:34:03', '2012-12-31 12:34:03')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"15B3B774FD63423CB65A54F499407040"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' AND `account_users`.`account_id` = x'15b3b774fd63423cb65a54f499407040' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'31ce6da9e8744825974ba7fd9297d58f' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0bcd99daf1814adb9cb64e95a19a6cd4' AND `accounts`.`id` = x'15b3b774fd63423cb65a54f499407040' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_15b3b774-fd63-423c-b65a-54f499407040_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_15b3b774-fd63-423c-b65a-54f499407040_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$Y0.986o/wYmBRoaAJk9Q.eebjuyFciyzIRw137GOmmcq5C4QX449W', NULL, x'a02b239aa82c4766afccee58aa7fb0e0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a02b239aa82c4766afccee58aa7fb0e0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'6557c1245924402fbf6fe2e9ce5a475c', 'a6b188e3b9eb6127662186cc6a4a2cd9', x'a02b239aa82c4766afccee58aa7fb0e0', 'User', '2012-12-31 12:34:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a02b239aa82c4766afccee58aa7fb0e0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'99041bfe5eac4b3f93a2737015762ef6', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account99041bfe-5eac-4b3f-93a2-737015762ef6' WHERE `accounts`.`id` = x'99041bfe5eac4b3f93a2737015762ef6' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'99041bfe5eac4b3f93a2737015762ef6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'99041bfe5eac4b3f93a2737015762ef6', x'cf92e6af7d314ab6b649680a0975d53d', x'a02b239aa82c4766afccee58aa7fb0e0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cf92e6af7d314ab6b649680a0975d53d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf92e6af7d314ab6b649680a0975d53d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf92e6af7d314ab6b649680a0975d53d', x'581ccdc97a7d4bf0a0fb44ae7719bc86', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cf92e6af7d314ab6b649680a0975d53d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf92e6af7d314ab6b649680a0975d53d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf92e6af7d314ab6b649680a0975d53d', x'f8832233e5a3412aa340d531379028c2', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863b38019_c6080435d48635a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'5abe6c1596694cb2a8071bc6f7149f3b', 'jabanilson', NULL, 1, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account5abe6c15-9669-4cb2-a807-1bc6f7149f3b' WHERE `accounts`.`id` = x'5abe6c1596694cb2a8071bc6f7149f3b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5abe6c1596694cb2a8071bc6f7149f3b', x'0fbe9b51e99647358e9557a2e7dff5ec', x'a02b239aa82c4766afccee58aa7fb0e0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0fbe9b51e99647358e9557a2e7dff5ec') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0fbe9b51e99647358e9557a2e7dff5ec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0fbe9b51e99647358e9557a2e7dff5ec', x'9c915ff5dcf64ee7bd206fcc9de77e2f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0fbe9b51e99647358e9557a2e7dff5ec') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0fbe9b51e99647358e9557a2e7dff5ec' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0fbe9b51e99647358e9557a2e7dff5ec', x'd0b8f370314e404aab8c8b30cd59aef3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a02b239aa82c4766afccee58aa7fb0e0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a02b239aa82c4766afccee58aa7fb0e0' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a02b239aa82c4766afccee58aa7fb0e0' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:03', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 5abe6c15-9669-4cb2-a807-1bc6f7149f3b\n', NULL, NULL, NULL, 0, 'account_5abe6c15-9669-4cb2-a807-1bc6f7149f3b_destroy', '2012-12-31 12:34:03', '2012-12-31 12:34:03')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a02b239aa82c4766afccee58aa7fb0e0' LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"5ABE6C1596694CB2A8071BC6F7149F3B"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a02b239aa82c4766afccee58aa7fb0e0' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a02b239aa82c4766afccee58aa7fb0e0' AND `account_users`.`account_id` = x'5abe6c1596694cb2a8071bc6f7149f3b' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0fbe9b51e99647358e9557a2e7dff5ec' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a02b239aa82c4766afccee58aa7fb0e0' AND `accounts`.`id` = x'5abe6c1596694cb2a8071bc6f7149f3b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5abe6c15-9669-4cb2-a807-1bc6f7149f3b_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5abe6c15-9669-4cb2-a807-1bc6f7149f3b_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a02b239aa82c4766afccee58aa7fb0e0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5abe6c15-9669-4cb2-a807-1bc6f7149f3b_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$fu5HkwG7n.irgSKFotr2u.r0BTRcQP.Kxh7WPdlOO1ShOqJVSuAL.', NULL, x'd3a79b3eed304eb4b1c10f4c81afcc3f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd3a79b3eed304eb4b1c10f4c81afcc3f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'46681ae872fc43d6acc6be047e3f5caf', '2191b60317ce3e00573ae072c4e50781', x'd3a79b3eed304eb4b1c10f4c81afcc3f', 'User', '2012-12-31 12:34:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd3a79b3eed304eb4b1c10f4c81afcc3f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'2760aa0aef3b411ea901599fde3fa117', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account2760aa0a-ef3b-411e-a901-599fde3fa117' WHERE `accounts`.`id` = x'2760aa0aef3b411ea901599fde3fa117' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2760aa0aef3b411ea901599fde3fa117' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2760aa0aef3b411ea901599fde3fa117', x'aee05193061a4ade820d6eaac2bde365', x'd3a79b3eed304eb4b1c10f4c81afcc3f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aee05193061a4ade820d6eaac2bde365') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aee05193061a4ade820d6eaac2bde365' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aee05193061a4ade820d6eaac2bde365', x'4f402cb550964a4fa6fa6ecae86ce27b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aee05193061a4ade820d6eaac2bde365') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aee05193061a4ade820d6eaac2bde365' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aee05193061a4ade820d6eaac2bde365', x'21c23c84da9f43df8ef4fcfa02dafece', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863b4e4ae_c6080435d48636fa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'516c273f5e494b4bbdb38d89571016df', 'jabanilson', NULL, 1, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account516c273f-5e49-4b4b-bdb3-8d89571016df' WHERE `accounts`.`id` = x'516c273f5e494b4bbdb38d89571016df'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'516c273f5e494b4bbdb38d89571016df', x'a44df958c8c54311aa490a15d5ca4957', x'd3a79b3eed304eb4b1c10f4c81afcc3f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a44df958c8c54311aa490a15d5ca4957') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a44df958c8c54311aa490a15d5ca4957' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a44df958c8c54311aa490a15d5ca4957', x'41df99e40b954e6fb34796b6f934cbc7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a44df958c8c54311aa490a15d5ca4957') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a44df958c8c54311aa490a15d5ca4957' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a44df958c8c54311aa490a15d5ca4957', x'4edff0becb564fef96b8576653fa3a5d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3a79b3eed304eb4b1c10f4c81afcc3f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3a79b3eed304eb4b1c10f4c81afcc3f' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3a79b3eed304eb4b1c10f4c81afcc3f' LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"516C273F5E494B4BBDB38D89571016DF"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd3a79b3eed304eb4b1c10f4c81afcc3f' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3a79b3eed304eb4b1c10f4c81afcc3f' AND (accounts.id = '516C273F5E494B4BBDB38D89571016DF') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3a79b3eed304eb4b1c10f4c81afcc3f' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$bKSEzhePJXb3GfW6YCuZf.NVR0puQLk9AD86ciFN2JazT7DcYbzfi', NULL, x'a1f64739bbad43efac471f135e769861', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a1f64739bbad43efac471f135e769861' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'99059f3dcd8141a8aa5a4582fb8eae0b', '22971e70bd5c2b0ae77389f816d949fe', x'a1f64739bbad43efac471f135e769861', 'User', '2012-12-31 12:34:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a1f64739bbad43efac471f135e769861' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'8a67b55d48764aadbe5be5f4a53dfb0f', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account8a67b55d-4876-4aad-be5b-e5f4a53dfb0f' WHERE `accounts`.`id` = x'8a67b55d48764aadbe5be5f4a53dfb0f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8a67b55d48764aadbe5be5f4a53dfb0f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a67b55d48764aadbe5be5f4a53dfb0f', x'f0083fbfa486434ebe9afe1052183fb9', x'a1f64739bbad43efac471f135e769861') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f0083fbfa486434ebe9afe1052183fb9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0083fbfa486434ebe9afe1052183fb9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0083fbfa486434ebe9afe1052183fb9', x'c20d3daf09fb4849badce487a0ebd955', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f0083fbfa486434ebe9afe1052183fb9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0083fbfa486434ebe9afe1052183fb9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0083fbfa486434ebe9afe1052183fb9', x'd614f80d44254a40b5f16244a0d6e39d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863b6170d_c6080435d4863778@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'e0c91361295641b39e0a719a56b338bc', 'jabanilson', NULL, 1, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'accounte0c91361-2956-41b3-9e0a-719a56b338bc' WHERE `accounts`.`id` = x'e0c91361295641b39e0a719a56b338bc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e0c91361295641b39e0a719a56b338bc', x'607595759d994b39a6121b67643fead7', x'a1f64739bbad43efac471f135e769861') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'607595759d994b39a6121b67643fead7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'607595759d994b39a6121b67643fead7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'607595759d994b39a6121b67643fead7', x'65a2ed16b8614273a6138658134a1c74', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'607595759d994b39a6121b67643fead7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'607595759d994b39a6121b67643fead7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'607595759d994b39a6121b67643fead7', x'64ef4619009846eca1713434a64815d1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1f64739bbad43efac471f135e769861' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1f64739bbad43efac471f135e769861' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1f64739bbad43efac471f135e769861' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"E0C91361295641B39E0A719A56B338BC"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a1f64739bbad43efac471f135e769861' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a1f64739bbad43efac471f135e769861' AND `account_users`.`account_id` = x'e0c91361295641b39e0a719a56b338bc' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'607595759d994b39a6121b67643fead7' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e0c91361295641b39e0a719a56b338bc' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'accounte0c91361-2956-41b3-9e0a-719a56b338bc' AND `accounts`.`id` != x'e0c91361295641b39e0a719a56b338bc') LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:34:03' WHERE `accounts`.`id` = x'e0c91361295641b39e0a719a56b338bc'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/E0C91361295641B39E0A719A56B338BC Completed 302 Found in 12ms (ActiveRecord: 2.2ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1f64739bbad43efac471f135e769861' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$od2ZTVyxFpQ7VZP.phatyeqhLmuVh3sBS.WSaKZ3ojExJ4Vw.bl1S', NULL, x'f34ea27512644f3f92ba2d5f6ce95447', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f34ea27512644f3f92ba2d5f6ce95447' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'4c76a99d35a04f4c8e210104bacf9c54', '2e85a7bc1cdfbe5c729ae40eaa24ba97', x'f34ea27512644f3f92ba2d5f6ce95447', 'User', '2012-12-31 12:34:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f34ea27512644f3f92ba2d5f6ce95447' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'ace9661e79c24d80b58bc598ed6c374c', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'accountace9661e-79c2-4d80-b58b-c598ed6c374c' WHERE `accounts`.`id` = x'ace9661e79c24d80b58bc598ed6c374c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ace9661e79c24d80b58bc598ed6c374c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ace9661e79c24d80b58bc598ed6c374c', x'f566b6be87524290bd520e5ddd4c55a1', x'f34ea27512644f3f92ba2d5f6ce95447') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f566b6be87524290bd520e5ddd4c55a1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f566b6be87524290bd520e5ddd4c55a1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f566b6be87524290bd520e5ddd4c55a1', x'45e368e5cd9a4d0187d4fa6b0458f2c3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f566b6be87524290bd520e5ddd4c55a1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f566b6be87524290bd520e5ddd4c55a1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f566b6be87524290bd520e5ddd4c55a1', x'd8954612630b4f5a812a2b1a571e3184', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863b88cd1_c6080435d48638fe@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'e27688452eaa4a229cc85311cf1d5c12', 'jabanilson', NULL, 1, '2012-12-31 12:34:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'accounte2768845-2eaa-4a22-9cc8-5311cf1d5c12' WHERE `accounts`.`id` = x'e27688452eaa4a229cc85311cf1d5c12'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e27688452eaa4a229cc85311cf1d5c12', x'95d656a9e2784c598f0ea7ea25f106be', x'f34ea27512644f3f92ba2d5f6ce95447') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'95d656a9e2784c598f0ea7ea25f106be') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95d656a9e2784c598f0ea7ea25f106be' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95d656a9e2784c598f0ea7ea25f106be', x'6de6ff3ef0a84d2a838449eac63a5c2c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'95d656a9e2784c598f0ea7ea25f106be') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95d656a9e2784c598f0ea7ea25f106be' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95d656a9e2784c598f0ea7ea25f106be', x'07fdda229d2f4177b12e2714cdb3332e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f34ea27512644f3f92ba2d5f6ce95447' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f34ea27512644f3f92ba2d5f6ce95447' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f34ea27512644f3f92ba2d5f6ce95447' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"ACE9661E79C24D80B58BC598ED6C374C"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f34ea27512644f3f92ba2d5f6ce95447' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f34ea27512644f3f92ba2d5f6ce95447' AND `account_users`.`account_id` = x'ace9661e79c24d80b58bc598ed6c374c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f566b6be87524290bd520e5ddd4c55a1' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ace9661e79c24d80b58bc598ed6c374c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'accountace9661e-79c2-4d80-b58b-c598ed6c374c' AND `accounts`.`id` != x'ace9661e79c24d80b58bc598ed6c374c') LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:34:03' WHERE `accounts`.`id` = x'ace9661e79c24d80b58bc598ed6c374c'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/ACE9661E79C24D80B58BC598ED6C374C Completed 302 Found in 9ms (ActiveRecord: 2.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$V4kn.ZqqZzmkhCichCfbTujbrMM0h7iSE57VB1/ltl0G5qfCwAmWK', NULL, x'98dab8fbe2d846af8565330fadac7178', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'98dab8fbe2d846af8565330fadac7178' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'ce36494dc1a44775a26df2a5bdb7760a', '1e5a0e3835e7b054ace3734223830dcf', x'98dab8fbe2d846af8565330fadac7178', 'User', '2012-12-31 12:34:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'98dab8fbe2d846af8565330fadac7178' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'8aac407abc174f87a4824e083d739e38', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account8aac407a-bc17-4f87-a482-4e083d739e38' WHERE `accounts`.`id` = x'8aac407abc174f87a4824e083d739e38' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8aac407abc174f87a4824e083d739e38' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8aac407abc174f87a4824e083d739e38', x'e367647a8eb04a628abf08fc597b8425', x'98dab8fbe2d846af8565330fadac7178') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e367647a8eb04a628abf08fc597b8425') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e367647a8eb04a628abf08fc597b8425' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e367647a8eb04a628abf08fc597b8425', x'fc979b8b815d4ddbadd4d6b8e282fc36', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e367647a8eb04a628abf08fc597b8425') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e367647a8eb04a628abf08fc597b8425' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e367647a8eb04a628abf08fc597b8425', x'35c85bc188674c96b7911ab650f7b5e1', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863b9cc8f_c6080435d48639fb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'31cf44f250a8485d9bc06fc9406d24ae', 'jabanilson', NULL, 1, '2012-12-31 12:34:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account31cf44f2-50a8-485d-9bc0-6fc9406d24ae' WHERE `accounts`.`id` = x'31cf44f250a8485d9bc06fc9406d24ae'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'31cf44f250a8485d9bc06fc9406d24ae', x'2fc8d14d78f04b249214f83a6a708488', x'98dab8fbe2d846af8565330fadac7178') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2fc8d14d78f04b249214f83a6a708488') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2fc8d14d78f04b249214f83a6a708488' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2fc8d14d78f04b249214f83a6a708488', x'a204d8c09b30471198e874964c0cf79a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2fc8d14d78f04b249214f83a6a708488') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2fc8d14d78f04b249214f83a6a708488' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2fc8d14d78f04b249214f83a6a708488', x'7096125ea46948a0bdfa06670386ef58', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'98dab8fbe2d846af8565330fadac7178' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'98dab8fbe2d846af8565330fadac7178' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'98dab8fbe2d846af8565330fadac7178' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"31CF44F250A8485D9BC06FC9406D24AE"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'98dab8fbe2d846af8565330fadac7178' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'98dab8fbe2d846af8565330fadac7178' AND `account_users`.`account_id` = x'31cf44f250a8485d9bc06fc9406d24ae' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2fc8d14d78f04b249214f83a6a708488' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31cf44f250a8485d9bc06fc9406d24ae' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account31cf44f2-50a8-485d-9bc0-6fc9406d24ae' AND `accounts`.`id` != x'31cf44f250a8485d9bc06fc9406d24ae') LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:34:03' WHERE `accounts`.`id` = x'31cf44f250a8485d9bc06fc9406d24ae'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/31CF44F250A8485D9BC06FC9406D24AE Completed 302 Found in 10ms (ActiveRecord: 2.2ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'98dab8fbe2d846af8565330fadac7178' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$kKxE8tE4i2.pbZQGJcxEku.Reo7erXUoOxtAJZPvgJlzKuTclvQ3.', NULL, x'f6c42241d5a94e52bdb8ebc3789583b8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f6c42241d5a94e52bdb8ebc3789583b8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'f94507f5962d4f15a2aababd1f373ff6', 'cd42960e3324d002c78ee079dfb16031', x'f6c42241d5a94e52bdb8ebc3789583b8', 'User', '2012-12-31 12:34:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f6c42241d5a94e52bdb8ebc3789583b8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'0b79fedffcf54add94db93ad17fa0dd7', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account0b79fedf-fcf5-4add-94db-93ad17fa0dd7' WHERE `accounts`.`id` = x'0b79fedffcf54add94db93ad17fa0dd7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0b79fedffcf54add94db93ad17fa0dd7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0b79fedffcf54add94db93ad17fa0dd7', x'22ac20c26e544894a5b6c2560b934a10', x'f6c42241d5a94e52bdb8ebc3789583b8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'22ac20c26e544894a5b6c2560b934a10') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'22ac20c26e544894a5b6c2560b934a10' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'22ac20c26e544894a5b6c2560b934a10', x'f89020403b5441dda5f99ec971657360', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'22ac20c26e544894a5b6c2560b934a10') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'22ac20c26e544894a5b6c2560b934a10' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'22ac20c26e544894a5b6c2560b934a10', x'ae21ae0b31a644b3bf3cf4ffd16266e9', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863bb1685_c6080435d486401b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'a66de7bac33b4e6da3accb4ce070d7fe', 'jabanilson', NULL, 1, '2012-12-31 12:34:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'accounta66de7ba-c33b-4e6d-a3ac-cb4ce070d7fe' WHERE `accounts`.`id` = x'a66de7bac33b4e6da3accb4ce070d7fe'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a66de7bac33b4e6da3accb4ce070d7fe', x'a0cc48de289649268949e6dd0c5d2b3f', x'f6c42241d5a94e52bdb8ebc3789583b8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a0cc48de289649268949e6dd0c5d2b3f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a0cc48de289649268949e6dd0c5d2b3f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a0cc48de289649268949e6dd0c5d2b3f', x'295f18cb0d3d4869a42625ed678da9b2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a0cc48de289649268949e6dd0c5d2b3f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a0cc48de289649268949e6dd0c5d2b3f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a0cc48de289649268949e6dd0c5d2b3f', x'3fdab7130c2048dfa22560bb21b91759', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f6c42241d5a94e52bdb8ebc3789583b8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f6c42241d5a94e52bdb8ebc3789583b8' LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f6c42241d5a94e52bdb8ebc3789583b8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'a299c9d230e64058add4c0c5f2dacdea', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'accounta299c9d2-30e6-4058-add4-c0c5f2dacdea' WHERE `accounts`.`id` = x'a299c9d230e64058add4c0c5f2dacdea'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f6c42241d5a94e52bdb8ebc3789583b8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a299c9d230e64058add4c0c5f2dacdea', x'2254f09373af4afbab2e4f38af4db504', x'f6c42241d5a94e52bdb8ebc3789583b8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2254f09373af4afbab2e4f38af4db504') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2254f09373af4afbab2e4f38af4db504' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2254f09373af4afbab2e4f38af4db504', x'2685f7e45b184427a066f3398407df76', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2254f09373af4afbab2e4f38af4db504') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2254f09373af4afbab2e4f38af4db504' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2254f09373af4afbab2e4f38af4db504', x'e12bb3b73f354f35bd3626c889c5ffb7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 18ms (ActiveRecord: 3.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$038JWMxvzyRqmYlBBGzwk.GU0JoiNhH70V0xwjbAtu.p0pSV6UHU2', NULL, x'a3174ca3191a4278a5cd2cffbbb20b93', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a3174ca3191a4278a5cd2cffbbb20b93' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'5b7ceedf107546febd8f27a16936f3fd', '2174d0270109cf777de7bd2f613f1eef', x'a3174ca3191a4278a5cd2cffbbb20b93', 'User', '2012-12-31 12:34:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a3174ca3191a4278a5cd2cffbbb20b93' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'45aba4aca52c4700b0d117188f7fedbd', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account45aba4ac-a52c-4700-b0d1-17188f7fedbd' WHERE `accounts`.`id` = x'45aba4aca52c4700b0d117188f7fedbd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45aba4aca52c4700b0d117188f7fedbd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'45aba4aca52c4700b0d117188f7fedbd', x'0874c18489fe4c7a86eef12713a58445', x'a3174ca3191a4278a5cd2cffbbb20b93') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0874c18489fe4c7a86eef12713a58445') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0874c18489fe4c7a86eef12713a58445' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0874c18489fe4c7a86eef12713a58445', x'db7af94a838e47ff9a157aa095111315', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0874c18489fe4c7a86eef12713a58445') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0874c18489fe4c7a86eef12713a58445' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0874c18489fe4c7a86eef12713a58445', x'7ca1e20b8d0342b9bb116aa656e73bd9', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863bd92ec_c6080435d486411c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'7d49e9021fad48b59cabc0dc4ee9eb73', 'jabanilson', NULL, 1, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account7d49e902-1fad-48b5-9cab-c0dc4ee9eb73' WHERE `accounts`.`id` = x'7d49e9021fad48b59cabc0dc4ee9eb73'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7d49e9021fad48b59cabc0dc4ee9eb73', x'010f3f64f48b4ef8b8faedc71f7679f2', x'a3174ca3191a4278a5cd2cffbbb20b93') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'010f3f64f48b4ef8b8faedc71f7679f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'010f3f64f48b4ef8b8faedc71f7679f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'010f3f64f48b4ef8b8faedc71f7679f2', x'2c03f0cc7ae54237a778abd3872a44ab', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'010f3f64f48b4ef8b8faedc71f7679f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'010f3f64f48b4ef8b8faedc71f7679f2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'010f3f64f48b4ef8b8faedc71f7679f2', x'009c59be959a402d98106be42057d066', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a3174ca3191a4278a5cd2cffbbb20b93' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a3174ca3191a4278a5cd2cffbbb20b93' LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a3174ca3191a4278a5cd2cffbbb20b93' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'3349d0aaf7bd499dab6f7f044b4823bc', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account3349d0aa-f7bd-499d-ab6f-7f044b4823bc' WHERE `accounts`.`id` = x'3349d0aaf7bd499dab6f7f044b4823bc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a3174ca3191a4278a5cd2cffbbb20b93' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3349d0aaf7bd499dab6f7f044b4823bc', x'0aeb17cb71354bb0a21dd98dec2b3a6e', x'a3174ca3191a4278a5cd2cffbbb20b93') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0aeb17cb71354bb0a21dd98dec2b3a6e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0aeb17cb71354bb0a21dd98dec2b3a6e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0aeb17cb71354bb0a21dd98dec2b3a6e', x'c7418ed0ad93469c840fdd328d1130c4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0aeb17cb71354bb0a21dd98dec2b3a6e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0aeb17cb71354bb0a21dd98dec2b3a6e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0aeb17cb71354bb0a21dd98dec2b3a6e', x'9dae5a2d568c46ea946ab252bd986d81', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 18ms (ActiveRecord: 3.1ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a3174ca3191a4278a5cd2cffbbb20b93' Processing by Iugu::AccountController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'03f18011cdaf4625bc4e8630616f5dc5', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account03f18011-cdaf-4625-bc4e-8630616f5dc5' WHERE `accounts`.`id` = x'03f18011cdaf4625bc4e8630616f5dc5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a3174ca3191a4278a5cd2cffbbb20b93' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'03f18011cdaf4625bc4e8630616f5dc5', x'3544803e0b244c569dd4c658bf6702ed', x'a3174ca3191a4278a5cd2cffbbb20b93') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3544803e0b244c569dd4c658bf6702ed') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3544803e0b244c569dd4c658bf6702ed' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3544803e0b244c569dd4c658bf6702ed', x'6beca2cbfec2403a920c78284ede8a29', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3544803e0b244c569dd4c658bf6702ed') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3544803e0b244c569dd4c658bf6702ed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3544803e0b244c569dd4c658bf6702ed', x'd565656d21704542a2c1b702d20dc005', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 17ms (ActiveRecord: 3.1ms)  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a3174ca3191a4278a5cd2cffbbb20b93'  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:03', 'teste@teste.com', '$2a$04$b2GIYV1yea4Hj1W2HpyYauRW5k5xgehrSYge.vza8ZvdgysV4Ak7W', NULL, x'80c68c8ad61840d482083708c9ad136c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:03') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'80c68c8ad61840d482083708c9ad136c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:03', 'User', x'43559836106543a88af72fc89f2a779f', '2899a49be2d4321449060d411d9dcfc7', x'80c68c8ad61840d482083708c9ad136c', 'User', '2012-12-31 12:34:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'80c68c8ad61840d482083708c9ad136c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:03', x'513b6cce19af4fe0919ca4493dcd3dd9', NULL, NULL, NULL, '2012-12-31 12:34:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:03', `updated_at` = '2012-12-31 12:34:03', `subdomain` = 'account513b6cce-19af-4fe0-919c-a4493dcd3dd9' WHERE `accounts`.`id` = x'513b6cce19af4fe0919ca4493dcd3dd9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'513b6cce19af4fe0919ca4493dcd3dd9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'513b6cce19af4fe0919ca4493dcd3dd9', x'1c7c464bf625485ebaaae06a70b0cfae', x'80c68c8ad61840d482083708c9ad136c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1c7c464bf625485ebaaae06a70b0cfae') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1c7c464bf625485ebaaae06a70b0cfae' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1c7c464bf625485ebaaae06a70b0cfae', x'e256884a5dea47478e779d270dcd1054', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1c7c464bf625485ebaaae06a70b0cfae') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1c7c464bf625485ebaaae06a70b0cfae' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1c7c464bf625485ebaaae06a70b0cfae', x'9faea2112a1e421aaf7ea8c39b3dd76a', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863c3dd8_c6080435d4864276@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'3fc6bd4d3a6c4966a30c07f0a3dc9852', 'jabanilson', NULL, 1, '2012-12-31 12:34:04')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account3fc6bd4d-3a6c-4966-a30c-07f0a3dc9852' WHERE `accounts`.`id` = x'3fc6bd4d3a6c4966a30c07f0a3dc9852'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3fc6bd4d3a6c4966a30c07f0a3dc9852', x'e45e985f56664bfaa36c1b2235ad4d4c', x'80c68c8ad61840d482083708c9ad136c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e45e985f56664bfaa36c1b2235ad4d4c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e45e985f56664bfaa36c1b2235ad4d4c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e45e985f56664bfaa36c1b2235ad4d4c', x'55a09b60246149eab3f968ab15f47aae', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e45e985f56664bfaa36c1b2235ad4d4c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e45e985f56664bfaa36c1b2235ad4d4c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e45e985f56664bfaa36c1b2235ad4d4c', x'7e81f1f80db54382967fb209ad405254', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'80c68c8ad61840d482083708c9ad136c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'80c68c8ad61840d482083708c9ad136c' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'80c68c8ad61840d482083708c9ad136c' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"513B6CCE19AF4FE0919CA4493DCD3DD9"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'80c68c8ad61840d482083708c9ad136c' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'513b6cce19af4fe0919ca4493dcd3dd9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_513b6cce-19af-4fe0-919c-a4493dcd3dd9_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'80c68c8ad61840d482083708c9ad136c' AND `account_users`.`account_id` = x'513b6cce19af4fe0919ca4493dcd3dd9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1c7c464bf625485ebaaae06a70b0cfae' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'80c68c8ad61840d482083708c9ad136c' AND `accounts`.`id` = x'513b6cce19af4fe0919ca4493dcd3dd9' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'513b6cce19af4fe0919ca4493dcd3dd9' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'513b6cce19af4fe0919ca4493dcd3dd9' LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:34:04', 'token x', x'283fea3a44c9483487028ac8f031e724', 'ba66c94d9613bc9b7e1eef70fc2e69ed', x'513b6cce19af4fe0919ca4493dcd3dd9', 'Account', '2012-12-31 12:34:04')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/513B6CCE19AF4FE0919CA4493DCD3DD9 Completed 302 Found in 17ms (ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:04', 'teste@teste.com', '$2a$04$zqHv.f8z5XM3pW6Efz/P9ucjU5W5/bwjFk.49CziGdKy8oZBaZDQG', NULL, x'e5816231060c4a2fb6621732f16664a0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:04') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e5816231060c4a2fb6621732f16664a0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:04', 'User', x'dfe2006996834a4dac84d0fc782f2077', '9ecf6de8fe2b731a0811feb09dc39b9e', x'e5816231060c4a2fb6621732f16664a0', 'User', '2012-12-31 12:34:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e5816231060c4a2fb6621732f16664a0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'06a21bdf58d149d58c2c4be16e05dcec', NULL, NULL, NULL, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account06a21bdf-58d1-49d5-8c2c-4be16e05dcec' WHERE `accounts`.`id` = x'06a21bdf58d149d58c2c4be16e05dcec' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'06a21bdf58d149d58c2c4be16e05dcec' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'06a21bdf58d149d58c2c4be16e05dcec', x'8631e9f959964d9780ba6cb2c408185e', x'e5816231060c4a2fb6621732f16664a0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8631e9f959964d9780ba6cb2c408185e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8631e9f959964d9780ba6cb2c408185e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8631e9f959964d9780ba6cb2c408185e', x'7b100f3232ad4d5094ec67c420d03176', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8631e9f959964d9780ba6cb2c408185e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8631e9f959964d9780ba6cb2c408185e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8631e9f959964d9780ba6cb2c408185e', x'74ee0b166519485aa1fdf9fdcc3d8ecb', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863c199cc_c6080435d4864385@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'1b0b9f0f7ff240dc86c95ff7254e592e', 'jabanilson', NULL, 1, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account1b0b9f0f-7ff2-40dc-86c9-5ff7254e592e' WHERE `accounts`.`id` = x'1b0b9f0f7ff240dc86c95ff7254e592e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1b0b9f0f7ff240dc86c95ff7254e592e', x'a9278ca809d4456eb0e15f066b3a7ef8', x'e5816231060c4a2fb6621732f16664a0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a9278ca809d4456eb0e15f066b3a7ef8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9278ca809d4456eb0e15f066b3a7ef8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9278ca809d4456eb0e15f066b3a7ef8', x'ac500946db034a86ba3985edddbdf01f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a9278ca809d4456eb0e15f066b3a7ef8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9278ca809d4456eb0e15f066b3a7ef8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9278ca809d4456eb0e15f066b3a7ef8', x'aac391d0757d46feb2db5adb826d7e88', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e5816231060c4a2fb6621732f16664a0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e5816231060c4a2fb6621732f16664a0' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e5816231060c4a2fb6621732f16664a0' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"1B0B9F0F7FF240DC86C95FF7254E592E"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e5816231060c4a2fb6621732f16664a0' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1b0b9f0f7ff240dc86c95ff7254e592e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1b0b9f0f-7ff2-40dc-86c9-5ff7254e592e_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e5816231060c4a2fb6621732f16664a0' AND `account_users`.`account_id` = x'1b0b9f0f7ff240dc86c95ff7254e592e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a9278ca809d4456eb0e15f066b3a7ef8' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e5816231060c4a2fb6621732f16664a0' AND `accounts`.`id` = x'1b0b9f0f7ff240dc86c95ff7254e592e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'1b0b9f0f7ff240dc86c95ff7254e592e' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1b0b9f0f7ff240dc86c95ff7254e592e' LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:34:04', 'token x', x'2421f7b336aa4e8a95e5c3f94a78f6fe', 'b140ef8b0d37975253d0f3a9e147c039', x'1b0b9f0f7ff240dc86c95ff7254e592e', 'Account', '2012-12-31 12:34:04')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/1B0B9F0F7FF240DC86C95FF7254E592E Completed 302 Found in 15ms (ActiveRecord: 2.5ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:04', 'teste@teste.com', '$2a$04$RaFOnLyumCMMrKrBObsR2eKHRw/IksGzTlaY.47k9zhl2M720WvGS', NULL, x'ce23677b49084ea7a18710a9cd68ee50', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ce23677b49084ea7a18710a9cd68ee50' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:04', 'User', x'6df3442b59664b9e942cfe0b81a2b921', '68641af0df14d76065662e60a0d7e6ba', x'ce23677b49084ea7a18710a9cd68ee50', 'User', '2012-12-31 12:34:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ce23677b49084ea7a18710a9cd68ee50' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'dc0bd9c13a7549be92aa4e1fa0bd8b1e', NULL, NULL, NULL, '2012-12-31 12:34:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'accountdc0bd9c1-3a75-49be-92aa-4e1fa0bd8b1e' WHERE `accounts`.`id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dc0bd9c13a7549be92aa4e1fa0bd8b1e', x'7028af60fd714a41932e01a3b56d21df', x'ce23677b49084ea7a18710a9cd68ee50') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7028af60fd714a41932e01a3b56d21df') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7028af60fd714a41932e01a3b56d21df' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7028af60fd714a41932e01a3b56d21df', x'dd2f593f9960404c85e7cb5f350488f2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7028af60fd714a41932e01a3b56d21df') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7028af60fd714a41932e01a3b56d21df' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7028af60fd714a41932e01a3b56d21df', x'8b43cb75a7b7403a8fbaa84588b70ee3', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:34:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863c412fe_c6080435d48644a1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'91ae26ebbb114003b058fb29fdae0e3c', 'jabanilson', NULL, 1, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account91ae26eb-bb11-4003-b058-fb29fdae0e3c' WHERE `accounts`.`id` = x'91ae26ebbb114003b058fb29fdae0e3c'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'91ae26ebbb114003b058fb29fdae0e3c', x'b2edf936fd3847b1bf4319a008e06066', x'ce23677b49084ea7a18710a9cd68ee50') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b2edf936fd3847b1bf4319a008e06066') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b2edf936fd3847b1bf4319a008e06066' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b2edf936fd3847b1bf4319a008e06066', x'55b3d68409a84139a3ddb5b44fe2abbf', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b2edf936fd3847b1bf4319a008e06066') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b2edf936fd3847b1bf4319a008e06066' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b2edf936fd3847b1bf4319a008e06066', x'99f7d42032084c3eb39726e2b2cdeacf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ce23677b49084ea7a18710a9cd68ee50' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ce23677b49084ea7a18710a9cd68ee50' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ce23677b49084ea7a18710a9cd68ee50' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"DC0BD9C13A7549BE92AA4E1FA0BD8B1E"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ce23677b49084ea7a18710a9cd68ee50' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_dc0bd9c1-3a75-49be-92aa-4e1fa0bd8b1e_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ce23677b49084ea7a18710a9cd68ee50' AND `account_users`.`account_id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7028af60fd714a41932e01a3b56d21df' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ce23677b49084ea7a18710a9cd68ee50' AND `accounts`.`id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:34:04', 'token x', x'5094dc9cf0ca469ba545efd441c94647', '17e0eb8a3f35858dc19902cd05ef33c0', x'dc0bd9c13a7549be92aa4e1fa0bd8b1e', 'Account', '2012-12-31 12:34:04')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/DC0BD9C13A7549BE92AA4E1FA0BD8B1E Completed 302 Found in 15ms (ActiveRecord: 2.6ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"DC0BD9C13A7549BE92AA4E1FA0BD8B1E"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_dc0bd9c1-3a75-49be-92aa-4e1fa0bd8b1e_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ce23677b49084ea7a18710a9cd68ee50' AND `account_users`.`account_id` = x'dc0bd9c13a7549be92aa4e1fa0bd8b1e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7028af60fd714a41932e01a3b56d21df' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:04', 'teste@teste.com', '$2a$04$O0UoKOQVdQ06BHr6nyG6O.zbLF69CB8CuS4JI.qLP3YZBGT8aiOHy', NULL, x'0de85ac10a174433aa0bf26439b57951', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:04') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0de85ac10a174433aa0bf26439b57951' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:04', 'User', x'01c66f583af64e7597d400e5221239d0', 'ef5134cdeddd13c5eaa5a962022b4a4d', x'0de85ac10a174433aa0bf26439b57951', 'User', '2012-12-31 12:34:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0de85ac10a174433aa0bf26439b57951' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'9a7e1dec1d934b4eb072a9eb3b597688', NULL, NULL, NULL, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account9a7e1dec-1d93-4b4e-b072-a9eb3b597688' WHERE `accounts`.`id` = x'9a7e1dec1d934b4eb072a9eb3b597688' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9a7e1dec1d934b4eb072a9eb3b597688' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9a7e1dec1d934b4eb072a9eb3b597688', x'71e6663703d54027b7aec0c464fb4156', x'0de85ac10a174433aa0bf26439b57951') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'71e6663703d54027b7aec0c464fb4156') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'71e6663703d54027b7aec0c464fb4156' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'71e6663703d54027b7aec0c464fb4156', x'81eb5ffccb9d4bde9d2dbc80b3403067', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'71e6663703d54027b7aec0c464fb4156') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'71e6663703d54027b7aec0c464fb4156' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'71e6663703d54027b7aec0c464fb4156', x'c2ee5b0dbfe146358cf70fb15e589247', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863c58223_c6080435d48645b8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'abf77ed797fe41c783fd42013e95ccdb', 'jabanilson', NULL, 1, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'accountabf77ed7-97fe-41c7-83fd-42013e95ccdb' WHERE `accounts`.`id` = x'abf77ed797fe41c783fd42013e95ccdb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'abf77ed797fe41c783fd42013e95ccdb', x'bc1d2f73344d40eb8b14d4fe7bdd68e0', x'0de85ac10a174433aa0bf26439b57951') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bc1d2f73344d40eb8b14d4fe7bdd68e0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc1d2f73344d40eb8b14d4fe7bdd68e0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc1d2f73344d40eb8b14d4fe7bdd68e0', x'07b2a842db4645399f4161304558205e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bc1d2f73344d40eb8b14d4fe7bdd68e0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc1d2f73344d40eb8b14d4fe7bdd68e0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc1d2f73344d40eb8b14d4fe7bdd68e0', x'4c74aed8fc274aa8ac0bfdac59cd1b27', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0de85ac10a174433aa0bf26439b57951' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0de85ac10a174433aa0bf26439b57951' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0de85ac10a174433aa0bf26439b57951' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9a7e1dec1d934b4eb072a9eb3b597688' AND `account_domains`.`url` = 'controller.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9a7e1dec1d934b4eb072a9eb3b597688', x'd6b47e7adc3c44bd8e568c48274ece04', NULL, 'controller.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"9A7E1DEC1D934B4EB072A9EB3B597688"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0de85ac10a174433aa0bf26439b57951' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9a7e1dec1d934b4eb072a9eb3b597688' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_9a7e1dec-1d93-4b4e-b072-a9eb3b597688_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0de85ac10a174433aa0bf26439b57951' AND `account_users`.`account_id` = x'9a7e1dec1d934b4eb072a9eb3b597688' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'71e6663703d54027b7aec0c464fb4156' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'71e6663703d54027b7aec0c464fb4156' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0de85ac10a174433aa0bf26439b57951' AND `accounts`.`id` = x'9a7e1dec1d934b4eb072a9eb3b597688' LIMIT 1 Completed 200 OK in 14ms (Views: 3.6ms | ActiveRecord: 1.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:04', 'teste@teste.com', '$2a$04$OT5GmX5Gu2jYLczlezCe.uOQbfTEmdup3Z/IsSdQbMA461oBZyeRW', NULL, x'72b6bcce924d49e187f4881cf1a4f6ff', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'72b6bcce924d49e187f4881cf1a4f6ff' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:04', 'User', x'484db8d295a948049e5262dffde0a2ec', 'ed0fffebb09f0788adc0166e427d1776', x'72b6bcce924d49e187f4881cf1a4f6ff', 'User', '2012-12-31 12:34:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'72b6bcce924d49e187f4881cf1a4f6ff' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'7ebd63296fcb4f9cafa2478de5a3a1d9', NULL, NULL, NULL, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account7ebd6329-6fcb-4f9c-afa2-478de5a3a1d9' WHERE `accounts`.`id` = x'7ebd63296fcb4f9cafa2478de5a3a1d9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7ebd63296fcb4f9cafa2478de5a3a1d9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7ebd63296fcb4f9cafa2478de5a3a1d9', x'b74f902ffdd746ddb1e41cf6342f848c', x'72b6bcce924d49e187f4881cf1a4f6ff') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b74f902ffdd746ddb1e41cf6342f848c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b74f902ffdd746ddb1e41cf6342f848c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b74f902ffdd746ddb1e41cf6342f848c', x'e74f0710937b495980cb8c2e04479f14', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b74f902ffdd746ddb1e41cf6342f848c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b74f902ffdd746ddb1e41cf6342f848c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b74f902ffdd746ddb1e41cf6342f848c', x'40ce46ba65924f788ca16081f4b914af', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863c707bd_c6080435d4864616@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'd2baba50175a4a609f2a3e1e99ef37f6', 'jabanilson', NULL, 1, '2012-12-31 12:34:04')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'accountd2baba50-175a-4a60-9f2a-3e1e99ef37f6' WHERE `accounts`.`id` = x'd2baba50175a4a609f2a3e1e99ef37f6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd2baba50175a4a609f2a3e1e99ef37f6', x'01f58403094f4857a3956e34e83bc073', x'72b6bcce924d49e187f4881cf1a4f6ff') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'01f58403094f4857a3956e34e83bc073') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01f58403094f4857a3956e34e83bc073' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01f58403094f4857a3956e34e83bc073', x'd11e3b25b3174e368a96d635fc46fa36', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'01f58403094f4857a3956e34e83bc073') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01f58403094f4857a3956e34e83bc073' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01f58403094f4857a3956e34e83bc073', x'523c1107706a4d499d85271908254f6b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'72b6bcce924d49e187f4881cf1a4f6ff' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'72b6bcce924d49e187f4881cf1a4f6ff' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'72b6bcce924d49e187f4881cf1a4f6ff' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"7EBD63296FCB4F9CAFA2478DE5A3A1D9"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'72b6bcce924d49e187f4881cf1a4f6ff' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7ebd63296fcb4f9cafa2478de5a3a1d9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7ebd6329-6fcb-4f9c-afa2-478de5a3a1d9_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'72b6bcce924d49e187f4881cf1a4f6ff' AND `account_users`.`account_id` = x'7ebd63296fcb4f9cafa2478de5a3a1d9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b74f902ffdd746ddb1e41cf6342f848c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b74f902ffdd746ddb1e41cf6342f848c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'72b6bcce924d49e187f4881cf1a4f6ff' AND `accounts`.`id` = x'7ebd63296fcb4f9cafa2478de5a3a1d9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7ebd63296fcb4f9cafa2478de5a3a1d9' AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7ebd63296fcb4f9cafa2478de5a3a1d9', x'c82e6df7732e4debb9ee2955dea6e83e', NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/7EBD63296FCB4F9CAFA2478DE5A3A1D9/domain/C82E6DF7732E4DEBB9EE2955DEA6E83E Completed 302 Found in 92ms (ActiveRecord: 3.1ms) AccountDomain Load (0.6ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:04', 'teste@teste.com', '$2a$04$cqoMOCr9x3NFbpDHbX/2XeJA1wbncwmobgReYdV7ggNS8o0PsHBzW', NULL, x'1338fc0ad4f94da4804ca8a986bc32cf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:04', 'User', x'6a17455f7d8d4913b32b367cfea46b9f', '5165bb4c7dc900bfd96b4b209e13f674', x'1338fc0ad4f94da4804ca8a986bc32cf', 'User', '2012-12-31 12:34:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'7f96237d69104ce7b2322f25cedfdb72', NULL, NULL, NULL, '2012-12-31 12:34:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account7f96237d-6910-4ce7-b232-2f25cedfdb72' WHERE `accounts`.`id` = x'7f96237d69104ce7b2322f25cedfdb72' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7f96237d69104ce7b2322f25cedfdb72' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7f96237d69104ce7b2322f25cedfdb72', x'0127329463c34e36b47ffa227718fc3d', x'1338fc0ad4f94da4804ca8a986bc32cf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0127329463c34e36b47ffa227718fc3d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0127329463c34e36b47ffa227718fc3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0127329463c34e36b47ffa227718fc3d', x'4b83f9a032ad4897b8fe47a585659398', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0127329463c34e36b47ffa227718fc3d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0127329463c34e36b47ffa227718fc3d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0127329463c34e36b47ffa227718fc3d', x'8c9fed0b1bcb46eeab41062365e68291', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863c99cd8_c6080435d486470@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'3d0a1c24b43e444c8dab781e525ba565', 'jabanilson', NULL, 1, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account3d0a1c24-b43e-444c-8dab-781e525ba565' WHERE `accounts`.`id` = x'3d0a1c24b43e444c8dab781e525ba565'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3d0a1c24b43e444c8dab781e525ba565', x'dc3324fedc0947799707255fddef0cf9', x'1338fc0ad4f94da4804ca8a986bc32cf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dc3324fedc0947799707255fddef0cf9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dc3324fedc0947799707255fddef0cf9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dc3324fedc0947799707255fddef0cf9', x'c1bcf4c6b6df4ac68fb8a6e014fce9ef', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dc3324fedc0947799707255fddef0cf9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dc3324fedc0947799707255fddef0cf9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dc3324fedc0947799707255fddef0cf9', x'54c2d2bb9a324d83aac6c58de83a7e91', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"7F96237D69104CE7B2322F25CEDFDB72"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1338fc0ad4f94da4804ca8a986bc32cf' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7f96237d69104ce7b2322f25cedfdb72' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7f96237d-6910-4ce7-b232-2f25cedfdb72_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' AND `account_users`.`account_id` = x'7f96237d69104ce7b2322f25cedfdb72' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0127329463c34e36b47ffa227718fc3d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0127329463c34e36b47ffa227718fc3d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' AND `accounts`.`id` = x'7f96237d69104ce7b2322f25cedfdb72' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7f96237d69104ce7b2322f25cedfdb72' AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7f96237d69104ce7b2322f25cedfdb72', x'9e4ee112063e440fbbc715ca99f3aa3a', NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/7F96237D69104CE7B2322F25CEDFDB72/domain/9E4EE112063E440FBBC715CA99F3AA3A Completed 302 Found in 15ms (ActiveRecord: 2.7ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"7F96237D69104CE7B2322F25CEDFDB72"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7f96237d69104ce7b2322f25cedfdb72' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7f96237d-6910-4ce7-b232-2f25cedfdb72_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' AND `account_users`.`account_id` = x'7f96237d69104ce7b2322f25cedfdb72' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0127329463c34e36b47ffa227718fc3d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0127329463c34e36b47ffa227718fc3d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1338fc0ad4f94da4804ca8a986bc32cf' AND `accounts`.`id` = x'7f96237d69104ce7b2322f25cedfdb72' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 1.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:04', 'teste@teste.com', '$2a$04$d8PLd0cUKVw4tMpU1gd.VOptJtdNJ1JgOQGfb80Qk972rCy3TFZ5C', NULL, x'3de5085935ad4364baef759c14022fa0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3de5085935ad4364baef759c14022fa0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:04', 'User', x'df8179894e614b23ab0eb63eef2eb79f', '098817a96070caa8f09f71833eaafb37', x'3de5085935ad4364baef759c14022fa0', 'User', '2012-12-31 12:34:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3de5085935ad4364baef759c14022fa0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'e27d6414b3d241afa8e46544288f59f6', NULL, NULL, NULL, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'accounte27d6414-b3d2-41af-a8e4-6544288f59f6' WHERE `accounts`.`id` = x'e27d6414b3d241afa8e46544288f59f6' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e27d6414b3d241afa8e46544288f59f6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e27d6414b3d241afa8e46544288f59f6', x'2a708cae6c1f44bea22bdca9301e0e56', x'3de5085935ad4364baef759c14022fa0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2a708cae6c1f44bea22bdca9301e0e56') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a708cae6c1f44bea22bdca9301e0e56' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a708cae6c1f44bea22bdca9301e0e56', x'0571b66d71cb4825a8b2795f66d1198b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2a708cae6c1f44bea22bdca9301e0e56') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a708cae6c1f44bea22bdca9301e0e56' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a708cae6c1f44bea22bdca9301e0e56', x'5c4a83e6715a4228ab37c56b52766c4f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863cb309a_c6080435d486482d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'3c3eb79846f540d99dcf632b913272be', 'jabanilson', NULL, 1, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account3c3eb798-46f5-40d9-9dcf-632b913272be' WHERE `accounts`.`id` = x'3c3eb79846f540d99dcf632b913272be'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3c3eb79846f540d99dcf632b913272be', x'507e976cfbd14198bf07aa8780204fc4', x'3de5085935ad4364baef759c14022fa0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'507e976cfbd14198bf07aa8780204fc4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'507e976cfbd14198bf07aa8780204fc4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'507e976cfbd14198bf07aa8780204fc4', x'ac79c5fd540c44e4b8abe17112ff65d7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'507e976cfbd14198bf07aa8780204fc4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'507e976cfbd14198bf07aa8780204fc4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'507e976cfbd14198bf07aa8780204fc4', x'1f2dcb65f43f4b6ea355db176f54d042', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3de5085935ad4364baef759c14022fa0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3de5085935ad4364baef759c14022fa0' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3de5085935ad4364baef759c14022fa0' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e27d6414b3d241afa8e46544288f59f6' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e27d6414b3d241afa8e46544288f59f6', x'eb2eff6791c34d07a21cd1e4a392fd8a', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'e27d6414b3d241afa8e46544288f59f6' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"E27D6414B3D241AFA8E46544288F59F6", "domain_id"=>"EB2EFF6791C34D07A21CD1E4A392FD8A"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3de5085935ad4364baef759c14022fa0' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e27d6414b3d241afa8e46544288f59f6' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e27d6414-b3d2-41af-a8e4-6544288f59f6_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3de5085935ad4364baef759c14022fa0' AND `account_users`.`account_id` = x'e27d6414b3d241afa8e46544288f59f6' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a708cae6c1f44bea22bdca9301e0e56' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a708cae6c1f44bea22bdca9301e0e56' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3de5085935ad4364baef759c14022fa0' AND `accounts`.`id` = x'e27d6414b3d241afa8e46544288f59f6' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'e27d6414b3d241afa8e46544288f59f6' AND `account_domains`.`id` = x'eb2eff6791c34d07a21cd1e4a392fd8a' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'eb2eff6791c34d07a21cd1e4a392fd8a'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e27d6414b3d241afa8e46544288f59f6' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'e27d6414b3d241afa8e46544288f59f6' AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'eb2eff6791c34d07a21cd1e4a392fd8a'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/E27D6414B3D241AFA8E46544288F59F6/domains Completed 302 Found in 16ms (ActiveRecord: 3.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:04', 'teste@teste.com', '$2a$04$yesqN2wWUnWP0LVVXTc6ZejzZPwl78QBR0T1LS6yfxQ2mo2bFPOku', NULL, x'b48e2b945fe94c47aa829d6f32e42b07', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:04') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b48e2b945fe94c47aa829d6f32e42b07' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:04', 'User', x'8a4e04a2ed824b0d9c78699aaf4f9434', 'a33a7834aa21f5f1e0d1157c5cef5b45', x'b48e2b945fe94c47aa829d6f32e42b07', 'User', '2012-12-31 12:34:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b48e2b945fe94c47aa829d6f32e42b07' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'f93f174f7bb54fdb9f92cdfbd7d5809d', NULL, NULL, NULL, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'accountf93f174f-7bb5-4fdb-9f92-cdfbd7d5809d' WHERE `accounts`.`id` = x'f93f174f7bb54fdb9f92cdfbd7d5809d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f93f174f7bb54fdb9f92cdfbd7d5809d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f93f174f7bb54fdb9f92cdfbd7d5809d', x'a175c56dfbe048df873909d723077303', x'b48e2b945fe94c47aa829d6f32e42b07') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a175c56dfbe048df873909d723077303') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a175c56dfbe048df873909d723077303' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a175c56dfbe048df873909d723077303', x'2bcf1be7d4614f77baa8c1305da74d9f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a175c56dfbe048df873909d723077303') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a175c56dfbe048df873909d723077303' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a175c56dfbe048df873909d723077303', x'965e56d19f7f4823beccaf4e5e9fecd7', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863cc98e7_c6080435d48649e3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'dac36ee72ad14161aae996e4f11d8c89', 'jabanilson', NULL, 1, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'accountdac36ee7-2ad1-4161-aae9-96e4f11d8c89' WHERE `accounts`.`id` = x'dac36ee72ad14161aae996e4f11d8c89'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dac36ee72ad14161aae996e4f11d8c89', x'0f1a237e3db24b4080b7902b19bf2306', x'b48e2b945fe94c47aa829d6f32e42b07') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0f1a237e3db24b4080b7902b19bf2306') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0f1a237e3db24b4080b7902b19bf2306' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0f1a237e3db24b4080b7902b19bf2306', x'cd6c8b98b6c549808117709b47829175', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0f1a237e3db24b4080b7902b19bf2306') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0f1a237e3db24b4080b7902b19bf2306' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0f1a237e3db24b4080b7902b19bf2306', x'52baccf5ba1742c6b5c9caa6be08c467', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b48e2b945fe94c47aa829d6f32e42b07' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b48e2b945fe94c47aa829d6f32e42b07' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b48e2b945fe94c47aa829d6f32e42b07' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'dac36ee72ad14161aae996e4f11d8c89' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'dac36ee72ad14161aae996e4f11d8c89', x'362ff67700994a999c0e593a19529552', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'dac36ee72ad14161aae996e4f11d8c89' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"DAC36EE72AD14161AAE996E4F11D8C89", "domain_id"=>"362FF67700994A999C0E593A19529552"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b48e2b945fe94c47aa829d6f32e42b07' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dac36ee72ad14161aae996e4f11d8c89' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_dac36ee7-2ad1-4161-aae9-96e4f11d8c89_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b48e2b945fe94c47aa829d6f32e42b07' AND `account_users`.`account_id` = x'dac36ee72ad14161aae996e4f11d8c89' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0f1a237e3db24b4080b7902b19bf2306' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0f1a237e3db24b4080b7902b19bf2306' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b48e2b945fe94c47aa829d6f32e42b07' AND `accounts`.`id` = x'dac36ee72ad14161aae996e4f11d8c89' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'dac36ee72ad14161aae996e4f11d8c89' AND `account_domains`.`id` = x'362ff67700994a999c0e593a19529552' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'362ff67700994a999c0e593a19529552'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'dac36ee72ad14161aae996e4f11d8c89' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'dac36ee72ad14161aae996e4f11d8c89' AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'362ff67700994a999c0e593a19529552'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/DAC36EE72AD14161AAE996E4F11D8C89/domains Completed 302 Found in 16ms (ActiveRecord: 3.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:04', 'teste@teste.com', '$2a$04$5P51RLkyDYjv46LB5UCoOuYEgfscfS0bZPyRPyGuOmQq9ZjRF9Bra', NULL, x'319d4f80179b4b38a125c2e3be6aa825', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'319d4f80179b4b38a125c2e3be6aa825' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:04', 'User', x'd631db86457849b4bd9a21acb91f1ea4', 'c3776ceae30df70989e2c5a115ff56db', x'319d4f80179b4b38a125c2e3be6aa825', 'User', '2012-12-31 12:34:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'319d4f80179b4b38a125c2e3be6aa825' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:04', x'6ec55cbcaaa34c03bc4b940c48e04280', NULL, NULL, NULL, '2012-12-31 12:34:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:04', `updated_at` = '2012-12-31 12:34:04', `subdomain` = 'account6ec55cbc-aaa3-4c03-bc4b-940c48e04280' WHERE `accounts`.`id` = x'6ec55cbcaaa34c03bc4b940c48e04280' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6ec55cbcaaa34c03bc4b940c48e04280' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6ec55cbcaaa34c03bc4b940c48e04280', x'218f617e34ef42db93e22d1233a9e0c1', x'319d4f80179b4b38a125c2e3be6aa825') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'218f617e34ef42db93e22d1233a9e0c1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'218f617e34ef42db93e22d1233a9e0c1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'218f617e34ef42db93e22d1233a9e0c1', x'0c3b6e53151b485f8106fb99ee44c498', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'218f617e34ef42db93e22d1233a9e0c1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'218f617e34ef42db93e22d1233a9e0c1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'218f617e34ef42db93e22d1233a9e0c1', x'd324c9c4395a4b1cadb568fe6d902bd3', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863d3ea_c6080435d4865074@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'3456d614a0194c139842540a3b157df7', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account3456d614-a019-4c13-9842-540a3b157df7' WHERE `accounts`.`id` = x'3456d614a0194c139842540a3b157df7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3456d614a0194c139842540a3b157df7', x'85ed632e10c4455a843a14fe5ad6e41d', x'319d4f80179b4b38a125c2e3be6aa825') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'85ed632e10c4455a843a14fe5ad6e41d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'85ed632e10c4455a843a14fe5ad6e41d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'85ed632e10c4455a843a14fe5ad6e41d', x'a5224424ad21443d99fb06409ae358b4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'85ed632e10c4455a843a14fe5ad6e41d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'85ed632e10c4455a843a14fe5ad6e41d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'85ed632e10c4455a843a14fe5ad6e41d', x'7fb394a032d14fc196ebd003c1210c94', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'319d4f80179b4b38a125c2e3be6aa825' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'319d4f80179b4b38a125c2e3be6aa825' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'319d4f80179b4b38a125c2e3be6aa825' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6ec55cbcaaa34c03bc4b940c48e04280' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'6ec55cbcaaa34c03bc4b940c48e04280', x'523b795f5834400da357027c2d4f4f71', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6ec55cbcaaa34c03bc4b940c48e04280' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"6EC55CBCAAA34C03BC4B940C48E04280", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'319d4f80179b4b38a125c2e3be6aa825' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6ec55cbcaaa34c03bc4b940c48e04280' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6ec55cbc-aaa3-4c03-bc4b-940c48e04280_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'319d4f80179b4b38a125c2e3be6aa825' AND `account_users`.`account_id` = x'6ec55cbcaaa34c03bc4b940c48e04280' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'218f617e34ef42db93e22d1233a9e0c1' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'218f617e34ef42db93e22d1233a9e0c1' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'319d4f80179b4b38a125c2e3be6aa825' AND `accounts`.`id` = x'6ec55cbcaaa34c03bc4b940c48e04280' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6ec55cbcaaa34c03bc4b940c48e04280' AND `account_domains`.`id` = x'33383136323833373631323338373136' LIMIT 1 Redirected to http://test.host/settings/account/6EC55CBCAAA34C03BC4B940C48E04280/domains Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$3nBV/xBGza5tn9UyoDi71.0MxfZ54Vfh/IW73BwCulB8EpgGYVJhS', NULL, x'42ddc0ee4f7146c2bfb1dacbc0ef001b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'42ddc0ee4f7146c2bfb1dacbc0ef001b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'1827e70cc0d4454fbf0d0a3fdacf8007', 'ee439d9ee02942b93e44b2768c80f667', x'42ddc0ee4f7146c2bfb1dacbc0ef001b', 'User', '2012-12-31 12:34:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'42ddc0ee4f7146c2bfb1dacbc0ef001b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'eca52b3d143e40bf9334d17276db7a03', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accounteca52b3d-143e-40bf-9334-d17276db7a03' WHERE `accounts`.`id` = x'eca52b3d143e40bf9334d17276db7a03' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eca52b3d143e40bf9334d17276db7a03' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eca52b3d143e40bf9334d17276db7a03', x'eedf71ef1cf3498eb5fe272af9435a5a', x'42ddc0ee4f7146c2bfb1dacbc0ef001b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eedf71ef1cf3498eb5fe272af9435a5a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eedf71ef1cf3498eb5fe272af9435a5a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eedf71ef1cf3498eb5fe272af9435a5a', x'617f32c2dd1b4047ad8b183757dc2489', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eedf71ef1cf3498eb5fe272af9435a5a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eedf71ef1cf3498eb5fe272af9435a5a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eedf71ef1cf3498eb5fe272af9435a5a', x'c0ca8c58b6d04240a78f45185805be80', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863d161d3_c6080435d4865179@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'46e0e2678255430fa5cf375ee8c27136', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account46e0e267-8255-430f-a5cf-375ee8c27136' WHERE `accounts`.`id` = x'46e0e2678255430fa5cf375ee8c27136'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'46e0e2678255430fa5cf375ee8c27136', x'a27afe1e1c1746dcb9b3d503af717530', x'42ddc0ee4f7146c2bfb1dacbc0ef001b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a27afe1e1c1746dcb9b3d503af717530') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a27afe1e1c1746dcb9b3d503af717530' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a27afe1e1c1746dcb9b3d503af717530', x'f34c4d23e53f46febc2977611b9a7ba7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a27afe1e1c1746dcb9b3d503af717530') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a27afe1e1c1746dcb9b3d503af717530' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a27afe1e1c1746dcb9b3d503af717530', x'6591b6acb3bf4659a11faa751efdcb69', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42ddc0ee4f7146c2bfb1dacbc0ef001b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42ddc0ee4f7146c2bfb1dacbc0ef001b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42ddc0ee4f7146c2bfb1dacbc0ef001b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'46e0e2678255430fa5cf375ee8c27136' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'46e0e2678255430fa5cf375ee8c27136', x'e1193dc1a58e4cb9b8f12363df2d433e', NULL, 'destroy.test.net', NULL)  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'46e0e2678255430fa5cf375ee8c27136' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"46E0E2678255430FA5CF375EE8C27136", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'42ddc0ee4f7146c2bfb1dacbc0ef001b' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'46e0e2678255430fa5cf375ee8c27136' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_46e0e267-8255-430f-a5cf-375ee8c27136_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'42ddc0ee4f7146c2bfb1dacbc0ef001b' AND `account_users`.`account_id` = x'46e0e2678255430fa5cf375ee8c27136' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a27afe1e1c1746dcb9b3d503af717530' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a27afe1e1c1746dcb9b3d503af717530' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42ddc0ee4f7146c2bfb1dacbc0ef001b' AND `accounts`.`id` = x'46e0e2678255430fa5cf375ee8c27136' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'46e0e2678255430fa5cf375ee8c27136' AND `account_domains`.`id` = x'33383136323833373631323338373136' LIMIT 1 Redirected to http://test.host/settings/account/46E0E2678255430FA5CF375EE8C27136/domains Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$EOzBLikZXYirfdH/A3qeXO8rY3sN58.xCvAgwYxY2e8kDqZJb4huq', NULL, x'c29b4c507865400fa1d77369eecd19c4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c29b4c507865400fa1d77369eecd19c4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'd7ad6165495a44019902f91f294ac4c2', 'bc8b8cde29f560d5839ae867544e2eb2', x'c29b4c507865400fa1d77369eecd19c4', 'User', '2012-12-31 12:34:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c29b4c507865400fa1d77369eecd19c4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'c135071ee6a3455587f79c1ac8cf7e9c', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accountc135071e-e6a3-4555-87f7-9c1ac8cf7e9c' WHERE `accounts`.`id` = x'c135071ee6a3455587f79c1ac8cf7e9c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c135071ee6a3455587f79c1ac8cf7e9c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c135071ee6a3455587f79c1ac8cf7e9c', x'09ec33919cd74c3b918be09b6bd2dc22', x'c29b4c507865400fa1d77369eecd19c4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'09ec33919cd74c3b918be09b6bd2dc22') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09ec33919cd74c3b918be09b6bd2dc22' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09ec33919cd74c3b918be09b6bd2dc22', x'a7fb80db094c439185835eb159ea5a85', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'09ec33919cd74c3b918be09b6bd2dc22') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09ec33919cd74c3b918be09b6bd2dc22' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09ec33919cd74c3b918be09b6bd2dc22', x'556523d1f04449629d800a9515d4ecf4', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863d2c6af_c6080435d48652d0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'6d87d83e78a04759bdd74ce8273cf387', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account6d87d83e-78a0-4759-bdd7-4ce8273cf387' WHERE `accounts`.`id` = x'6d87d83e78a04759bdd74ce8273cf387'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6d87d83e78a04759bdd74ce8273cf387', x'e8d0f406dcf046c68c5e2914f716e8c1', x'c29b4c507865400fa1d77369eecd19c4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e8d0f406dcf046c68c5e2914f716e8c1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e8d0f406dcf046c68c5e2914f716e8c1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e8d0f406dcf046c68c5e2914f716e8c1', x'71439b71d5924301939edccfdeb125ea', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e8d0f406dcf046c68c5e2914f716e8c1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e8d0f406dcf046c68c5e2914f716e8c1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e8d0f406dcf046c68c5e2914f716e8c1', x'24f2ea577d4f47be8884e125efcf8c76', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c29b4c507865400fa1d77369eecd19c4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c29b4c507865400fa1d77369eecd19c4' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c29b4c507865400fa1d77369eecd19c4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c135071ee6a3455587f79c1ac8cf7e9c' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c135071ee6a3455587f79c1ac8cf7e9c', x'cf9ff9409bd340379f21268c74719315', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c135071ee6a3455587f79c1ac8cf7e9c' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"C135071EE6A3455587F79C1AC8CF7E9C", "domain_id"=>"CF9FF9409BD340379F21268C74719315"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c29b4c507865400fa1d77369eecd19c4' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c135071ee6a3455587f79c1ac8cf7e9c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c135071e-e6a3-4555-87f7-9c1ac8cf7e9c_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c29b4c507865400fa1d77369eecd19c4' AND `accounts`.`id` = x'c135071ee6a3455587f79c1ac8cf7e9c' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c135071ee6a3455587f79c1ac8cf7e9c' AND `account_domains`.`id` = x'cf9ff9409bd340379f21268c74719315' LIMIT 1 Completed 200 OK in 10ms (Views: 2.6ms | ActiveRecord: 1.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$8B3Eb.79wRN/ZhgV1GLu7.cCOgwaNJtDuaVa1VueYndcMz.oou1aG', NULL, x'3cd00b5cb93c4e95a2e93e6d59033592', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3cd00b5cb93c4e95a2e93e6d59033592' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'0198624ee6d14be7af8010094ff7e7c0', '668c223718166bf835da3fda197a93ef', x'3cd00b5cb93c4e95a2e93e6d59033592', 'User', '2012-12-31 12:34:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3cd00b5cb93c4e95a2e93e6d59033592' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'231bf232a681452fb24ead58b40aae7f', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account231bf232-a681-452f-b24e-ad58b40aae7f' WHERE `accounts`.`id` = x'231bf232a681452fb24ead58b40aae7f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'231bf232a681452fb24ead58b40aae7f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'231bf232a681452fb24ead58b40aae7f', x'f56e2c663e4d4849a36f17fbd2010268', x'3cd00b5cb93c4e95a2e93e6d59033592') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f56e2c663e4d4849a36f17fbd2010268') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f56e2c663e4d4849a36f17fbd2010268' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f56e2c663e4d4849a36f17fbd2010268', x'9624c63775624e20836e89181f12c630', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f56e2c663e4d4849a36f17fbd2010268') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f56e2c663e4d4849a36f17fbd2010268' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f56e2c663e4d4849a36f17fbd2010268', x'40fc79835ffd4137917cc871772101f4', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863d55470_c6080435d4865392@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'4fcea135c1ec433d99ea667897ebfdfa', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account4fcea135-c1ec-433d-99ea-667897ebfdfa' WHERE `accounts`.`id` = x'4fcea135c1ec433d99ea667897ebfdfa'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4fcea135c1ec433d99ea667897ebfdfa', x'12c9929ed273449592848600175ca5d0', x'3cd00b5cb93c4e95a2e93e6d59033592') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'12c9929ed273449592848600175ca5d0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'12c9929ed273449592848600175ca5d0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'12c9929ed273449592848600175ca5d0', x'2c6ecf16f45f406c80eee9e621886853', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'12c9929ed273449592848600175ca5d0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'12c9929ed273449592848600175ca5d0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'12c9929ed273449592848600175ca5d0', x'f8bf238bc79e452dbe8f1bbeb7d08acf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3cd00b5cb93c4e95a2e93e6d59033592' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3cd00b5cb93c4e95a2e93e6d59033592' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3cd00b5cb93c4e95a2e93e6d59033592' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4fcea135c1ec433d99ea667897ebfdfa' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4fcea135c1ec433d99ea667897ebfdfa', x'4436751031b54571a91dd3fc3a0ed5f1', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4fcea135c1ec433d99ea667897ebfdfa' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"4FCEA135C1EC433D99EA667897EBFDFA", "domain_id"=>"1209371923812238"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3cd00b5cb93c4e95a2e93e6d59033592' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4fcea135c1ec433d99ea667897ebfdfa' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4fcea135-c1ec-433d-99ea-667897ebfdfa_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3cd00b5cb93c4e95a2e93e6d59033592' AND `accounts`.`id` = x'4fcea135c1ec433d99ea667897ebfdfa' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4fcea135c1ec433d99ea667897ebfdfa' AND `account_domains`.`id` = x'31323039333731393233383132323338' LIMIT 1 Redirected to http://test.host/settings/account/4FCEA135C1EC433D99EA667897EBFDFA/domains Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$KbjfFOiZ3bFWui3zERlA3u4EJ8O4hwRWhQJkAYGJI9HKBxKkWLZJW', NULL, x'56f257e650944d038a5365190599e7d1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'56f257e650944d038a5365190599e7d1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'fcf00310a13c46a89e90b7692a59700e', '8e1c6b75cea60605ae59b98bf44669f1', x'56f257e650944d038a5365190599e7d1', 'User', '2012-12-31 12:34:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'56f257e650944d038a5365190599e7d1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'a53538b11f5540f2b48dc6659ad1f831', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accounta53538b1-1f55-40f2-b48d-c6659ad1f831' WHERE `accounts`.`id` = x'a53538b11f5540f2b48dc6659ad1f831' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a53538b11f5540f2b48dc6659ad1f831' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a53538b11f5540f2b48dc6659ad1f831', x'40ec0c8c406b48f7a758d01e8cb9d7c4', x'56f257e650944d038a5365190599e7d1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'40ec0c8c406b48f7a758d01e8cb9d7c4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'40ec0c8c406b48f7a758d01e8cb9d7c4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'40ec0c8c406b48f7a758d01e8cb9d7c4', x'90380d1838174c5fb48a634e14ec7a31', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'40ec0c8c406b48f7a758d01e8cb9d7c4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'40ec0c8c406b48f7a758d01e8cb9d7c4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'40ec0c8c406b48f7a758d01e8cb9d7c4', x'52c3cc37dec9477faf890e97e4650dc3', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863d6a679_c6080435d4865410@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'6b303dbccc494c6cb9d833dee21f1795', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account6b303dbc-cc49-4c6c-b9d8-33dee21f1795' WHERE `accounts`.`id` = x'6b303dbccc494c6cb9d833dee21f1795'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6b303dbccc494c6cb9d833dee21f1795', x'237c36a4dd68417e893f7cf5593088e3', x'56f257e650944d038a5365190599e7d1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'237c36a4dd68417e893f7cf5593088e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'237c36a4dd68417e893f7cf5593088e3' LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'237c36a4dd68417e893f7cf5593088e3', x'b71cc0da7ac343dcb8a0696b813e772d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'237c36a4dd68417e893f7cf5593088e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'237c36a4dd68417e893f7cf5593088e3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'237c36a4dd68417e893f7cf5593088e3', x'508aaf3f6bf94557a64a46c3fd81c5d4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56f257e650944d038a5365190599e7d1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56f257e650944d038a5365190599e7d1' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56f257e650944d038a5365190599e7d1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6b303dbccc494c6cb9d833dee21f1795' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'6b303dbccc494c6cb9d833dee21f1795', x'9bb0405f1b5c4753952c4e0a23c8cf8a', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6b303dbccc494c6cb9d833dee21f1795' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"6B303DBCCC494C6CB9D833DEE21F1795", "domain_id"=>"1209371923812238"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'56f257e650944d038a5365190599e7d1' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6b303dbccc494c6cb9d833dee21f1795' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6b303dbc-cc49-4c6c-b9d8-33dee21f1795_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56f257e650944d038a5365190599e7d1' AND `accounts`.`id` = x'6b303dbccc494c6cb9d833dee21f1795' LIMIT 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6b303dbccc494c6cb9d833dee21f1795' AND `account_domains`.`id` = x'31323039333731393233383132323338' LIMIT 1 Redirected to http://test.host/settings/account/6B303DBCCC494C6CB9D833DEE21F1795/domains Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$XdXwdr0gs.w438GBY1IJXedSUBY09w869YkQ7jnRBghNcJE0vE66.', NULL, x'2a8f3d37a93449eba8a93543dd03fc48', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2a8f3d37a93449eba8a93543dd03fc48' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'c0748318eaea4f1687eca8c758d92125', '84dfbb302bd350a1c0ccd1712ebed22d', x'2a8f3d37a93449eba8a93543dd03fc48', 'User', '2012-12-31 12:34:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2a8f3d37a93449eba8a93543dd03fc48' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'1638840194bc4d2d8248e7613c39628b', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account16388401-94bc-4d2d-8248-e7613c39628b' WHERE `accounts`.`id` = x'1638840194bc4d2d8248e7613c39628b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1638840194bc4d2d8248e7613c39628b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1638840194bc4d2d8248e7613c39628b', x'add14931f6674c43a138d8706bbe34f7', x'2a8f3d37a93449eba8a93543dd03fc48') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'add14931f6674c43a138d8706bbe34f7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'add14931f6674c43a138d8706bbe34f7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'add14931f6674c43a138d8706bbe34f7', x'd550f783e5144758a5429ecfcc53cb4f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'add14931f6674c43a138d8706bbe34f7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'add14931f6674c43a138d8706bbe34f7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'add14931f6674c43a138d8706bbe34f7', x'0340f5c0a7544211962d0133ae50c579', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863d7f8ad_c6080435d48655d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'3e6d3aec40894c8e92faf1c90017ac1a', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account3e6d3aec-4089-4c8e-92fa-f1c90017ac1a' WHERE `accounts`.`id` = x'3e6d3aec40894c8e92faf1c90017ac1a'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3e6d3aec40894c8e92faf1c90017ac1a', x'908e5f6fbd894c8794addcb49cb437b5', x'2a8f3d37a93449eba8a93543dd03fc48') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'908e5f6fbd894c8794addcb49cb437b5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'908e5f6fbd894c8794addcb49cb437b5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'908e5f6fbd894c8794addcb49cb437b5', x'466745ba4cb3495e96a3482b52f8929c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'908e5f6fbd894c8794addcb49cb437b5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'908e5f6fbd894c8794addcb49cb437b5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'908e5f6fbd894c8794addcb49cb437b5', x'ecd634f7b8d54fdbada5034965182b55', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2a8f3d37a93449eba8a93543dd03fc48' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2a8f3d37a93449eba8a93543dd03fc48' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2a8f3d37a93449eba8a93543dd03fc48' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1638840194bc4d2d8248e7613c39628b' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1638840194bc4d2d8248e7613c39628b', x'4dd312db3ebb4ea086a4283e1fcd87ae', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'1638840194bc4d2d8248e7613c39628b' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"1638840194BC4D2D8248E7613C39628B", "domain_id"=>"4DD312DB3EBB4EA086A4283E1FCD87AE"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2a8f3d37a93449eba8a93543dd03fc48' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1638840194bc4d2d8248e7613c39628b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_16388401-94bc-4d2d-8248-e7613c39628b_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2a8f3d37a93449eba8a93543dd03fc48' AND `account_users`.`account_id` = x'1638840194bc4d2d8248e7613c39628b' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'add14931f6674c43a138d8706bbe34f7' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'add14931f6674c43a138d8706bbe34f7' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2a8f3d37a93449eba8a93543dd03fc48' AND `accounts`.`id` = x'1638840194bc4d2d8248e7613c39628b' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'1638840194bc4d2d8248e7613c39628b' AND `account_domains`.`id` = x'4dd312db3ebb4ea086a4283e1fcd87ae' LIMIT 1 Redirected to http://test.host/settings/account/1638840194BC4D2D8248E7613C39628B/domains Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$3kBXMkqZfdIdp.PK8gPqh.SftGob.My68pMLv3hrQj8IwQEN4Xxle', NULL, x'cf0eee3fba484e3f85a0984a510a1c8c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cf0eee3fba484e3f85a0984a510a1c8c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'72265157c117468ba2e534435533b476', 'b8f0df2702427ad1883057859f0b4627', x'cf0eee3fba484e3f85a0984a510a1c8c', 'User', '2012-12-31 12:34:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cf0eee3fba484e3f85a0984a510a1c8c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'8de550e29479445bb2db342a1e79cc98', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account8de550e2-9479-445b-b2db-342a1e79cc98' WHERE `accounts`.`id` = x'8de550e29479445bb2db342a1e79cc98' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8de550e29479445bb2db342a1e79cc98' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8de550e29479445bb2db342a1e79cc98', x'2a24a21522a04a23b91286f6dfceecf9', x'cf0eee3fba484e3f85a0984a510a1c8c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2a24a21522a04a23b91286f6dfceecf9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a24a21522a04a23b91286f6dfceecf9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a24a21522a04a23b91286f6dfceecf9', x'4182f18982f9411a9e37a3a82d5828ba', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2a24a21522a04a23b91286f6dfceecf9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a24a21522a04a23b91286f6dfceecf9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a24a21522a04a23b91286f6dfceecf9', x'ba969aac20174bd8a04312a0874d7b21', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863d95f8a_c6080435d4865679@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'bdb1a4010f974e7daff17bba3ef9ea97', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accountbdb1a401-0f97-4e7d-aff1-7bba3ef9ea97' WHERE `accounts`.`id` = x'bdb1a4010f974e7daff17bba3ef9ea97'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bdb1a4010f974e7daff17bba3ef9ea97', x'84b7b20b651447fab6c15b90dc3b9f0e', x'cf0eee3fba484e3f85a0984a510a1c8c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'84b7b20b651447fab6c15b90dc3b9f0e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84b7b20b651447fab6c15b90dc3b9f0e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84b7b20b651447fab6c15b90dc3b9f0e', x'744b104c742a41cab5e4cc6d60c287d3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'84b7b20b651447fab6c15b90dc3b9f0e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84b7b20b651447fab6c15b90dc3b9f0e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84b7b20b651447fab6c15b90dc3b9f0e', x'48f59b10b55e458ebe03d9971ae98535', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf0eee3fba484e3f85a0984a510a1c8c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf0eee3fba484e3f85a0984a510a1c8c' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf0eee3fba484e3f85a0984a510a1c8c' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8de550e29479445bb2db342a1e79cc98' AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8de550e29479445bb2db342a1e79cc98', x'67ced73f7c9b4c298db37571c09e3030', NULL, 'verify.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8de550e29479445bb2db342a1e79cc98' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"8DE550E29479445BB2DB342A1E79CC98", "domain_id"=>"67CED73F7C9B4C298DB37571C09E3030"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cf0eee3fba484e3f85a0984a510a1c8c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8de550e29479445bb2db342a1e79cc98' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8de550e2-9479-445b-b2db-342a1e79cc98_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cf0eee3fba484e3f85a0984a510a1c8c' AND `account_users`.`account_id` = x'8de550e29479445bb2db342a1e79cc98' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a24a21522a04a23b91286f6dfceecf9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a24a21522a04a23b91286f6dfceecf9' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf0eee3fba484e3f85a0984a510a1c8c' AND `accounts`.`id` = x'8de550e29479445bb2db342a1e79cc98' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8de550e29479445bb2db342a1e79cc98' AND `account_domains`.`id` = x'67ced73f7c9b4c298db37571c09e3030' LIMIT 1 Redirected to http://test.host/settings/account/8DE550E29479445BB2DB342A1E79CC98/domains Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$xDZmrHKvvy47QfUerqTgBu.Xfgy0KutbslQqu4OFfr1HzeJFll8.y', NULL, x'239952b7bdaa4c30a3e9144c43bc390d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'239952b7bdaa4c30a3e9144c43bc390d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'5845e2841a95402e957ea8091a9b403d', 'a433f5d95bcc328744313ce95a03a42d', x'239952b7bdaa4c30a3e9144c43bc390d', 'User', '2012-12-31 12:34:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'239952b7bdaa4c30a3e9144c43bc390d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'd7a798ce0e41423c83615ea53c5ea50c', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accountd7a798ce-0e41-423c-8361-5ea53c5ea50c' WHERE `accounts`.`id` = x'd7a798ce0e41423c83615ea53c5ea50c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd7a798ce0e41423c83615ea53c5ea50c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd7a798ce0e41423c83615ea53c5ea50c', x'a560c170360441f38ada67a91e0871e9', x'239952b7bdaa4c30a3e9144c43bc390d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a560c170360441f38ada67a91e0871e9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a560c170360441f38ada67a91e0871e9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a560c170360441f38ada67a91e0871e9', x'ff0ef2e5d2714734b22b663d85a56b82', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a560c170360441f38ada67a91e0871e9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a560c170360441f38ada67a91e0871e9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a560c170360441f38ada67a91e0871e9', x'1ce5a31a27a44a88a1ca308c5d940b7b', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863dc024c_c6080435d4865781@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'eb95a0a798a740a0ad7f957c71278c07', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accounteb95a0a7-98a7-40a0-ad7f-957c71278c07' WHERE `accounts`.`id` = x'eb95a0a798a740a0ad7f957c71278c07'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eb95a0a798a740a0ad7f957c71278c07', x'78ae7c079869431482255f0d446dfb6f', x'239952b7bdaa4c30a3e9144c43bc390d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'78ae7c079869431482255f0d446dfb6f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78ae7c079869431482255f0d446dfb6f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78ae7c079869431482255f0d446dfb6f', x'de26ad09e2fc40b79225f774ea6cfdbd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'78ae7c079869431482255f0d446dfb6f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78ae7c079869431482255f0d446dfb6f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78ae7c079869431482255f0d446dfb6f', x'f0a4dc28a7624a44b9e3ad4db8b30ddc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'239952b7bdaa4c30a3e9144c43bc390d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'239952b7bdaa4c30a3e9144c43bc390d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'239952b7bdaa4c30a3e9144c43bc390d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'eb95a0a798a740a0ad7f957c71278c07' AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'eb95a0a798a740a0ad7f957c71278c07', x'dbfd31323e6942da9ec472a64e4183f3', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'eb95a0a798a740a0ad7f957c71278c07' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"EB95A0A798A740A0AD7F957C71278C07", "domain_id"=>"DBFD31323E6942DA9EC472A64E4183F3"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'239952b7bdaa4c30a3e9144c43bc390d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eb95a0a798a740a0ad7f957c71278c07' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_eb95a0a7-98a7-40a0-ad7f-957c71278c07_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'239952b7bdaa4c30a3e9144c43bc390d' AND `account_users`.`account_id` = x'eb95a0a798a740a0ad7f957c71278c07' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'78ae7c079869431482255f0d446dfb6f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'78ae7c079869431482255f0d446dfb6f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'239952b7bdaa4c30a3e9144c43bc390d' AND `accounts`.`id` = x'eb95a0a798a740a0ad7f957c71278c07' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'eb95a0a798a740a0ad7f957c71278c07' AND `account_domains`.`id` = x'dbfd31323e6942da9ec472a64e4183f3' LIMIT 1 Redirected to http://test.host/settings/account/EB95A0A798A740A0AD7F957C71278C07/domain/DBFD31323E6942DA9EC472A64E4183F3 Completed 302 Found in 11ms (ActiveRecord: 1.7ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$3kf3OtPDgNJkH8JeuwjDn.a23mlx35iumk26SnHUFXWxgW4Cn7h8y', NULL, x'8599a1f0a01646a78a26496059545b43', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8599a1f0a01646a78a26496059545b43' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'6ab70d59f47541569dcfd25e6fa0407b', 'db4af38aae01c6d55251dfc4c4961a05', x'8599a1f0a01646a78a26496059545b43', 'User', '2012-12-31 12:34:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8599a1f0a01646a78a26496059545b43' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'ed1346793f2e40059ee9682e56500c8f', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accounted134679-3f2e-4005-9ee9-682e56500c8f' WHERE `accounts`.`id` = x'ed1346793f2e40059ee9682e56500c8f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ed1346793f2e40059ee9682e56500c8f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ed1346793f2e40059ee9682e56500c8f', x'e0f65a0ae23b40af80908ce99dc60807', x'8599a1f0a01646a78a26496059545b43') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e0f65a0ae23b40af80908ce99dc60807') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e0f65a0ae23b40af80908ce99dc60807' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e0f65a0ae23b40af80908ce99dc60807', x'7fe5cf7584ad4e3fb58cadd0441ba36b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e0f65a0ae23b40af80908ce99dc60807') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e0f65a0ae23b40af80908ce99dc60807' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e0f65a0ae23b40af80908ce99dc60807', x'c1c2256f4d3e4d53b94afcc081d366b4', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863dd69d0_c6080435d4865842@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'dfbac29c29884958840c802f0416050a', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accountdfbac29c-2988-4958-840c-802f0416050a' WHERE `accounts`.`id` = x'dfbac29c29884958840c802f0416050a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dfbac29c29884958840c802f0416050a', x'08c59d55a988431695fe1a2714ccd5f9', x'8599a1f0a01646a78a26496059545b43') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'08c59d55a988431695fe1a2714ccd5f9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08c59d55a988431695fe1a2714ccd5f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08c59d55a988431695fe1a2714ccd5f9', x'e317de2e526f4cd781e256ee13016122', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'08c59d55a988431695fe1a2714ccd5f9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08c59d55a988431695fe1a2714ccd5f9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08c59d55a988431695fe1a2714ccd5f9', x'4b03cd8eb2fb4719930b7284cbcbad4b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8599a1f0a01646a78a26496059545b43' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8599a1f0a01646a78a26496059545b43' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8599a1f0a01646a78a26496059545b43' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'dfbac29c29884958840c802f0416050a' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'dfbac29c29884958840c802f0416050a', x'ddb2a967a62c4e499f54e6522da96129', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'dfbac29c29884958840c802f0416050a' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"DFBAC29C29884958840C802F0416050A", "domain_id"=>"DDB2A967A62C4E499F54E6522DA96129"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8599a1f0a01646a78a26496059545b43' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dfbac29c29884958840c802f0416050a' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_dfbac29c-2988-4958-840c-802f0416050a_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8599a1f0a01646a78a26496059545b43' AND `account_users`.`account_id` = x'dfbac29c29884958840c802f0416050a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'08c59d55a988431695fe1a2714ccd5f9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'08c59d55a988431695fe1a2714ccd5f9' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8599a1f0a01646a78a26496059545b43' AND `accounts`.`id` = x'dfbac29c29884958840c802f0416050a' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'dfbac29c29884958840c802f0416050a' AND `account_domains`.`id` = x'ddb2a967a62c4e499f54e6522da96129' LIMIT 1 Redirected to http://test.host/settings/account/DFBAC29C29884958840C802F0416050A/domain/DDB2A967A62C4E499F54E6522DA96129 Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:05', 'teste@teste.com', '$2a$04$cqgcbrnq5W.uvdBPs4Zy8Ogi/tnBH2Sw7HFbNP2NzHvmbRvm2fNMq', NULL, x'ca8b1d4a84304089a34be5fb67afc285', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ca8b1d4a84304089a34be5fb67afc285' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:05', 'User', x'6664976d4e484c088f8da7b0469530b9', '346b9d0a3750a2dc1e7ffdfb480f67f0', x'ca8b1d4a84304089a34be5fb67afc285', 'User', '2012-12-31 12:34:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ca8b1d4a84304089a34be5fb67afc285' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'd023f1ad5b3943b285c50e82908de3c1', NULL, NULL, NULL, '2012-12-31 12:34:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'accountd023f1ad-5b39-43b2-85c5-0e82908de3c1' WHERE `accounts`.`id` = x'd023f1ad5b3943b285c50e82908de3c1' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd023f1ad5b3943b285c50e82908de3c1' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd023f1ad5b3943b285c50e82908de3c1', x'438c6310d0c443afbcfdd760d9147d72', x'ca8b1d4a84304089a34be5fb67afc285') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'438c6310d0c443afbcfdd760d9147d72') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'438c6310d0c443afbcfdd760d9147d72' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'438c6310d0c443afbcfdd760d9147d72', x'bd0401e1ec8047ccbc5e8e6eda804813', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'438c6310d0c443afbcfdd760d9147d72') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'438c6310d0c443afbcfdd760d9147d72' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'438c6310d0c443afbcfdd760d9147d72', x'4aad3913beb24bfd9aecabc6c87fd4b2', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863decc39_c6080435d486597a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:05', x'999b499658de4cb69880f0737d4158e7', 'jabanilson', NULL, 1, '2012-12-31 12:34:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:05', `updated_at` = '2012-12-31 12:34:05', `subdomain` = 'account999b4996-58de-4cb6-9880-f0737d4158e7' WHERE `accounts`.`id` = x'999b499658de4cb69880f0737d4158e7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'999b499658de4cb69880f0737d4158e7', x'dabea96e7d1147bcaa1a5e984443e322', x'ca8b1d4a84304089a34be5fb67afc285') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dabea96e7d1147bcaa1a5e984443e322') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dabea96e7d1147bcaa1a5e984443e322' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dabea96e7d1147bcaa1a5e984443e322', x'4bdf6830e9c74ebca742cc9bd75e5f1e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dabea96e7d1147bcaa1a5e984443e322') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dabea96e7d1147bcaa1a5e984443e322' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dabea96e7d1147bcaa1a5e984443e322', x'a69bb8fbfce34eddb818b62cb05c2a4e', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ca8b1d4a84304089a34be5fb67afc285' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ca8b1d4a84304089a34be5fb67afc285' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ca8b1d4a84304089a34be5fb67afc285' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd023f1ad5b3943b285c50e82908de3c1' AND `account_domains`.`url` = 'verify.test.net' SQL (0.4ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd023f1ad5b3943b285c50e82908de3c1', x'c84d14611dad4574a132c10a27c54ec2', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd023f1ad5b3943b285c50e82908de3c1' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"D023F1AD5B3943B285C50E82908DE3C1", "domain_id"=>"1231241241231241231234"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ca8b1d4a84304089a34be5fb67afc285' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd023f1ad5b3943b285c50e82908de3c1' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d023f1ad-5b39-43b2-85c5-0e82908de3c1_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ca8b1d4a84304089a34be5fb67afc285' AND `account_users`.`account_id` = x'd023f1ad5b3943b285c50e82908de3c1' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'438c6310d0c443afbcfdd760d9147d72' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'438c6310d0c443afbcfdd760d9147d72' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ca8b1d4a84304089a34be5fb67afc285' AND `accounts`.`id` = x'd023f1ad5b3943b285c50e82908de3c1' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd023f1ad5b3943b285c50e82908de3c1' AND `account_domains`.`id` = x'31323431323331323431323331323334' LIMIT 1 Redirected to http://test.host/settings/account/D023F1AD5B3943B285C50E82908DE3C1/domains Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$n8Fld0VP1azbXfpe1MaX7uP/XyH8Ulapg7idXjljoLXJ/1gMQCSde', NULL, x'86c9b95b132d48819bb208bc45c0cbd8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'86c9b95b132d48819bb208bc45c0cbd8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'e69c16a7db08429c9fd13d13548cda21', '92c250eef57a99b3ba51ea9c2979f2df', x'86c9b95b132d48819bb208bc45c0cbd8', 'User', '2012-12-31 12:34:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'86c9b95b132d48819bb208bc45c0cbd8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'c85f3e90ee0a439eb92cdad5ffad72b5', NULL, NULL, NULL, '2012-12-31 12:34:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'accountc85f3e90-ee0a-439e-b92c-dad5ffad72b5' WHERE `accounts`.`id` = x'c85f3e90ee0a439eb92cdad5ffad72b5' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c85f3e90ee0a439eb92cdad5ffad72b5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c85f3e90ee0a439eb92cdad5ffad72b5', x'cf51bd505910448c83b577e3e7199601', x'86c9b95b132d48819bb208bc45c0cbd8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cf51bd505910448c83b577e3e7199601') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf51bd505910448c83b577e3e7199601' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf51bd505910448c83b577e3e7199601', x'09f02d7b5ef24f8b9499bdfddacc77bd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cf51bd505910448c83b577e3e7199601') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf51bd505910448c83b577e3e7199601' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf51bd505910448c83b577e3e7199601', x'550e088d7d2b4025854b39acb097a05f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863e21e30_c6080435d48660b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'f4371dc0a65440a7a05b200f67c29d65', 'jabanilson', NULL, 1, '2012-12-31 12:34:06')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'accountf4371dc0-a654-40a7-a05b-200f67c29d65' WHERE `accounts`.`id` = x'f4371dc0a65440a7a05b200f67c29d65'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f4371dc0a65440a7a05b200f67c29d65', x'6517788cf68b48019dea08623a60b3de', x'86c9b95b132d48819bb208bc45c0cbd8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6517788cf68b48019dea08623a60b3de') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6517788cf68b48019dea08623a60b3de' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6517788cf68b48019dea08623a60b3de', x'1c2ad4593e6b452dabbd45b688588009', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6517788cf68b48019dea08623a60b3de') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6517788cf68b48019dea08623a60b3de' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6517788cf68b48019dea08623a60b3de', x'0119399334be402ca4a160f8ce03871d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86c9b95b132d48819bb208bc45c0cbd8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86c9b95b132d48819bb208bc45c0cbd8' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86c9b95b132d48819bb208bc45c0cbd8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f4371dc0a65440a7a05b200f67c29d65' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f4371dc0a65440a7a05b200f67c29d65', x'7e90e2cf744b460a8aa0f0f4801a6ad8', NULL, 'verify.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f4371dc0a65440a7a05b200f67c29d65' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"F4371DC0A65440A7A05B200F67C29D65", "domain_id"=>"1231241241231241231234"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'86c9b95b132d48819bb208bc45c0cbd8' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f4371dc0a65440a7a05b200f67c29d65' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f4371dc0-a654-40a7-a05b-200f67c29d65_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'86c9b95b132d48819bb208bc45c0cbd8' AND `account_users`.`account_id` = x'f4371dc0a65440a7a05b200f67c29d65' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6517788cf68b48019dea08623a60b3de' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6517788cf68b48019dea08623a60b3de' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86c9b95b132d48819bb208bc45c0cbd8' AND `accounts`.`id` = x'f4371dc0a65440a7a05b200f67c29d65' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f4371dc0a65440a7a05b200f67c29d65' AND `account_domains`.`id` = x'31323431323331323431323331323334' LIMIT 1 Redirected to http://test.host/settings/account/F4371DC0A65440A7A05B200F67C29D65/domains Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$azkO1se85XexQFiqbpEAQe0H8ZSqFVEicHRxCalHmLXIkRuRaIBfG', NULL, x'2764a530d2f94c47a387f5dcb633d1a1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2764a530d2f94c47a387f5dcb633d1a1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'880968bac62542a9ae031527cc10876e', '6d4c970d9b213c1c5f520183d2f3fc9e', x'2764a530d2f94c47a387f5dcb633d1a1', 'User', '2012-12-31 12:34:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2764a530d2f94c47a387f5dcb633d1a1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'ed386ed7e4254992bac8954713f902b9', NULL, NULL, NULL, '2012-12-31 12:34:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'accounted386ed7-e425-4992-bac8-954713f902b9' WHERE `accounts`.`id` = x'ed386ed7e4254992bac8954713f902b9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ed386ed7e4254992bac8954713f902b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ed386ed7e4254992bac8954713f902b9', x'c5d17e85e89f445a996b2fdc79b962e1', x'2764a530d2f94c47a387f5dcb633d1a1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c5d17e85e89f445a996b2fdc79b962e1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c5d17e85e89f445a996b2fdc79b962e1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c5d17e85e89f445a996b2fdc79b962e1', x'aeaf92fccf944397a61c706ab04391e7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c5d17e85e89f445a996b2fdc79b962e1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c5d17e85e89f445a996b2fdc79b962e1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c5d17e85e89f445a996b2fdc79b962e1', x'879e566d4b6640e6bfe611d4b240770b', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863e37e57_c6080435d4866190@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'34f1280f486d4c98b963b2d7c7db2d54', 'jabanilson', NULL, 1, '2012-12-31 12:34:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account34f1280f-486d-4c98-b963-b2d7c7db2d54' WHERE `accounts`.`id` = x'34f1280f486d4c98b963b2d7c7db2d54'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'34f1280f486d4c98b963b2d7c7db2d54', x'49065bd153f54dc9858be2ed761a3507', x'2764a530d2f94c47a387f5dcb633d1a1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'49065bd153f54dc9858be2ed761a3507') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'49065bd153f54dc9858be2ed761a3507' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'49065bd153f54dc9858be2ed761a3507', x'72787e6aa90841f98d1d7cf0b0edb0eb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'49065bd153f54dc9858be2ed761a3507') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'49065bd153f54dc9858be2ed761a3507' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'49065bd153f54dc9858be2ed761a3507', x'4a0fe4a738354105b86f8c76e349e451', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2764a530d2f94c47a387f5dcb633d1a1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2764a530d2f94c47a387f5dcb633d1a1' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2764a530d2f94c47a387f5dcb633d1a1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'34f1280f486d4c98b963b2d7c7db2d54' AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'34f1280f486d4c98b963b2d7c7db2d54', x'd403108afbd54e0b987f3e18853f6fc4', NULL, 'primary.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'34f1280f486d4c98b963b2d7c7db2d54' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"34F1280F486D4C98B963B2D7C7DB2D54", "domain_id"=>"D403108AFBD54E0B987F3E18853F6FC4"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2764a530d2f94c47a387f5dcb633d1a1' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'34f1280f486d4c98b963b2d7c7db2d54' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_34f1280f-486d-4c98-b963-b2d7c7db2d54_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2764a530d2f94c47a387f5dcb633d1a1' AND `account_users`.`account_id` = x'34f1280f486d4c98b963b2d7c7db2d54' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'49065bd153f54dc9858be2ed761a3507' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'49065bd153f54dc9858be2ed761a3507' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2764a530d2f94c47a387f5dcb633d1a1' AND `accounts`.`id` = x'34f1280f486d4c98b963b2d7c7db2d54' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'34f1280f486d4c98b963b2d7c7db2d54' AND `account_domains`.`id` = x'd403108afbd54e0b987f3e18853f6fc4' LIMIT 1 Redirected to http://test.host/settings/account/34F1280F486D4C98B963B2D7C7DB2D54/domains Completed 302 Found in 13ms (ActiveRecord: 2.1ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$OPqfU8UQGredJOUZeZX8hOHFG1W.WPr0fBqoNRb4CJgufznWoSwg2', NULL, x'7886d4d2384148668ea3f01bfc826fb1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7886d4d2384148668ea3f01bfc826fb1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'66f0dc5d9be2453b9576cab9ebe05efa', '7705fcd9bc2729693171f595d7d566ec', x'7886d4d2384148668ea3f01bfc826fb1', 'User', '2012-12-31 12:34:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7886d4d2384148668ea3f01bfc826fb1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'7eb8093bf4b4414db6fa7160d21bf46f', NULL, NULL, NULL, '2012-12-31 12:34:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account7eb8093b-f4b4-414d-b6fa-7160d21bf46f' WHERE `accounts`.`id` = x'7eb8093bf4b4414db6fa7160d21bf46f' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7eb8093bf4b4414db6fa7160d21bf46f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7eb8093bf4b4414db6fa7160d21bf46f', x'e5cc99beaf0742faae293d561838ad6c', x'7886d4d2384148668ea3f01bfc826fb1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e5cc99beaf0742faae293d561838ad6c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e5cc99beaf0742faae293d561838ad6c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e5cc99beaf0742faae293d561838ad6c', x'e63b8b111a874711a1c68f214ac37655', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e5cc99beaf0742faae293d561838ad6c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e5cc99beaf0742faae293d561838ad6c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e5cc99beaf0742faae293d561838ad6c', x'b9f2bf8298004d3cb1f0f7cc985ea83d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863e4de85_c6080435d4866293@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'1e44ba01929e4b68af08bae42672900f', 'jabanilson', NULL, 1, '2012-12-31 12:34:06')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account1e44ba01-929e-4b68-af08-bae42672900f' WHERE `accounts`.`id` = x'1e44ba01929e4b68af08bae42672900f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1e44ba01929e4b68af08bae42672900f', x'c578faed103948168417ca63c7ae175b', x'7886d4d2384148668ea3f01bfc826fb1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c578faed103948168417ca63c7ae175b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c578faed103948168417ca63c7ae175b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c578faed103948168417ca63c7ae175b', x'be41816118f5424bb3175595b6b25a24', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c578faed103948168417ca63c7ae175b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c578faed103948168417ca63c7ae175b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c578faed103948168417ca63c7ae175b', x'e0029e65e747423f896a29feece131ff', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7886d4d2384148668ea3f01bfc826fb1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7886d4d2384148668ea3f01bfc826fb1' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7886d4d2384148668ea3f01bfc826fb1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1e44ba01929e4b68af08bae42672900f' AND `account_domains`.`url` = 'primary.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1e44ba01929e4b68af08bae42672900f', x'41d52f487ea84326a1bce4e659caa277', NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'1e44ba01929e4b68af08bae42672900f' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"1E44BA01929E4B68AF08BAE42672900F", "domain_id"=>"41D52F487EA84326A1BCE4E659CAA277"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7886d4d2384148668ea3f01bfc826fb1' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1e44ba01929e4b68af08bae42672900f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1e44ba01-929e-4b68-af08-bae42672900f_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7886d4d2384148668ea3f01bfc826fb1' AND `account_users`.`account_id` = x'1e44ba01929e4b68af08bae42672900f' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c578faed103948168417ca63c7ae175b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c578faed103948168417ca63c7ae175b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7886d4d2384148668ea3f01bfc826fb1' AND `accounts`.`id` = x'1e44ba01929e4b68af08bae42672900f' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'1e44ba01929e4b68af08bae42672900f' AND `account_domains`.`id` = x'41d52f487ea84326a1bce4e659caa277' LIMIT 1 Redirected to http://test.host/settings/account/1E44BA01929E4B68AF08BAE42672900F/domains Completed 302 Found in 11ms (ActiveRecord: 1.9ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$QgEeRtvMxEbZzFQ/8qMGbu9i0u6Z3cshhO932v.yIxgjHG1dqc9eG', NULL, x'b04f8f546edf49138b181d297eaee23a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b04f8f546edf49138b181d297eaee23a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'15d8b6323e454af6a08957cfea9e14aa', '05614e1d8a5f32914d8e98f0488483c6', x'b04f8f546edf49138b181d297eaee23a', 'User', '2012-12-31 12:34:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b04f8f546edf49138b181d297eaee23a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'083c3259045c46328321bc2b3e7df0c6', NULL, NULL, NULL, '2012-12-31 12:34:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account083c3259-045c-4632-8321-bc2b3e7df0c6' WHERE `accounts`.`id` = x'083c3259045c46328321bc2b3e7df0c6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'083c3259045c46328321bc2b3e7df0c6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'083c3259045c46328321bc2b3e7df0c6', x'023776d4d9904594a74c9b587b19ac5a', x'b04f8f546edf49138b181d297eaee23a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'023776d4d9904594a74c9b587b19ac5a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'023776d4d9904594a74c9b587b19ac5a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'023776d4d9904594a74c9b587b19ac5a', x'feb3407b415749b7a281be0bcc2a75b5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'023776d4d9904594a74c9b587b19ac5a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'023776d4d9904594a74c9b587b19ac5a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'023776d4d9904594a74c9b587b19ac5a', x'd24dc72e1da84eae97c4aaff6dd85395', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863e77f24_c6080435d48663e7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'62809236797e411f909666952fc29507', 'jabanilson', NULL, 1, '2012-12-31 12:34:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account62809236-797e-411f-9096-66952fc29507' WHERE `accounts`.`id` = x'62809236797e411f909666952fc29507'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'62809236797e411f909666952fc29507', x'021093d8253241fc9eb2d8855a7a3ce5', x'b04f8f546edf49138b181d297eaee23a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'021093d8253241fc9eb2d8855a7a3ce5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'021093d8253241fc9eb2d8855a7a3ce5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'021093d8253241fc9eb2d8855a7a3ce5', x'9f6d19de521a4357ae0891e8c7b955a5', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'021093d8253241fc9eb2d8855a7a3ce5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'021093d8253241fc9eb2d8855a7a3ce5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'021093d8253241fc9eb2d8855a7a3ce5', x'a6aec3590ae94df8b1d44610daa0ff68', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b04f8f546edf49138b181d297eaee23a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b04f8f546edf49138b181d297eaee23a' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b04f8f546edf49138b181d297eaee23a' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'62809236797e411f909666952fc29507' AND `account_domains`.`url` = 'primary.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'62809236797e411f909666952fc29507', x'3affd1e4afc74505a8e2e2029edce367', NULL, 'primary.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'62809236797e411f909666952fc29507' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"62809236797E411F909666952FC29507", "domain_id"=>"1231241243141314"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b04f8f546edf49138b181d297eaee23a' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'62809236797e411f909666952fc29507' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_62809236-797e-411f-9096-66952fc29507_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b04f8f546edf49138b181d297eaee23a' AND `account_users`.`account_id` = x'62809236797e411f909666952fc29507' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'021093d8253241fc9eb2d8855a7a3ce5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'021093d8253241fc9eb2d8855a7a3ce5' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b04f8f546edf49138b181d297eaee23a' AND `accounts`.`id` = x'62809236797e411f909666952fc29507' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'62809236797e411f909666952fc29507' AND `account_domains`.`id` = x'31323331323431323433313431333134' LIMIT 1 Redirected to http://test.host/settings/account/62809236797E411F909666952FC29507/domains Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$iMgHjEt2i.EJtlDEHe02x.N0gGBBY8WU.EFS/f4rddyZe1UyQokM6', NULL, x'f9debaeb1d024eb48c28196f4f8d4448', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f9debaeb1d024eb48c28196f4f8d4448' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'5663825b84464d708faa850fab515a3a', '3e3bae3bd6fdeb5d41ee0aaf7ed4fea7', x'f9debaeb1d024eb48c28196f4f8d4448', 'User', '2012-12-31 12:34:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f9debaeb1d024eb48c28196f4f8d4448' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'f7929beb15d04cdc8d3c28aea5ddbfd7', NULL, NULL, NULL, '2012-12-31 12:34:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'accountf7929beb-15d0-4cdc-8d3c-28aea5ddbfd7' WHERE `accounts`.`id` = x'f7929beb15d04cdc8d3c28aea5ddbfd7' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f7929beb15d04cdc8d3c28aea5ddbfd7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f7929beb15d04cdc8d3c28aea5ddbfd7', x'55096d88fc364299a8b1f392acf3a11e', x'f9debaeb1d024eb48c28196f4f8d4448') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'55096d88fc364299a8b1f392acf3a11e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55096d88fc364299a8b1f392acf3a11e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55096d88fc364299a8b1f392acf3a11e', x'18e5a1f818cd4fc38e6559548f133b9e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'55096d88fc364299a8b1f392acf3a11e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55096d88fc364299a8b1f392acf3a11e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55096d88fc364299a8b1f392acf3a11e', x'ac22185134824792973e1fde348d0153', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863e8e02d_c6080435d48664e5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'e885ce15a3fc481ba09636ff4a62fb3e', 'jabanilson', NULL, 1, '2012-12-31 12:34:06')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'accounte885ce15-a3fc-481b-a096-36ff4a62fb3e' WHERE `accounts`.`id` = x'e885ce15a3fc481ba09636ff4a62fb3e'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e885ce15a3fc481ba09636ff4a62fb3e', x'dda631f75ec849b38b822bc455d4f54f', x'f9debaeb1d024eb48c28196f4f8d4448') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dda631f75ec849b38b822bc455d4f54f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dda631f75ec849b38b822bc455d4f54f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dda631f75ec849b38b822bc455d4f54f', x'05abbbd5f3b44685b3c4b48182a9e28a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dda631f75ec849b38b822bc455d4f54f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dda631f75ec849b38b822bc455d4f54f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dda631f75ec849b38b822bc455d4f54f', x'd83e2ad1730c47a18c4f1ea264cbc41a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f9debaeb1d024eb48c28196f4f8d4448' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f9debaeb1d024eb48c28196f4f8d4448' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f9debaeb1d024eb48c28196f4f8d4448' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f7929beb15d04cdc8d3c28aea5ddbfd7' AND `account_domains`.`url` = 'primary.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f7929beb15d04cdc8d3c28aea5ddbfd7', x'a873cc16a57846e6b8f28764bc185d84', NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f7929beb15d04cdc8d3c28aea5ddbfd7' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"F7929BEB15D04CDC8D3C28AEA5DDBFD7", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f9debaeb1d024eb48c28196f4f8d4448' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f7929beb15d04cdc8d3c28aea5ddbfd7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f7929beb-15d0-4cdc-8d3c-28aea5ddbfd7_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f9debaeb1d024eb48c28196f4f8d4448' AND `account_users`.`account_id` = x'f7929beb15d04cdc8d3c28aea5ddbfd7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'55096d88fc364299a8b1f392acf3a11e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'55096d88fc364299a8b1f392acf3a11e' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f9debaeb1d024eb48c28196f4f8d4448' AND `accounts`.`id` = x'f7929beb15d04cdc8d3c28aea5ddbfd7' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f7929beb15d04cdc8d3c28aea5ddbfd7' AND `account_domains`.`id` = x'31323331323431323433313431333134' LIMIT 1 Redirected to http://test.host/settings/account/F7929BEB15D04CDC8D3C28AEA5DDBFD7/domains Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$WturW7kN4OD5tZPsk8nxZOOfDpMxyiLuW3/fWtJN0IWAJ4V7ZNs6W', NULL, x'd0353c5c910b4b90b757ae3410fb640b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd0353c5c910b4b90b757ae3410fb640b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'4cf1db87855447d896a5fb7e039d3a93', 'f2aaeff049960dddd6767f34a467794d', x'd0353c5c910b4b90b757ae3410fb640b', 'User', '2012-12-31 12:34:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd0353c5c910b4b90b757ae3410fb640b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'6987cf59048e493c9d4c7a0f2c098e8b', NULL, NULL, NULL, '2012-12-31 12:34:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account6987cf59-048e-493c-9d4c-7a0f2c098e8b' WHERE `accounts`.`id` = x'6987cf59048e493c9d4c7a0f2c098e8b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6987cf59048e493c9d4c7a0f2c098e8b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6987cf59048e493c9d4c7a0f2c098e8b', x'db770de6cddf4f85886674aecb30e6b2', x'd0353c5c910b4b90b757ae3410fb640b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'db770de6cddf4f85886674aecb30e6b2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'db770de6cddf4f85886674aecb30e6b2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'db770de6cddf4f85886674aecb30e6b2', x'b9a346d86dd54de5a391abbb7323f277', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'db770de6cddf4f85886674aecb30e6b2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'db770de6cddf4f85886674aecb30e6b2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'db770de6cddf4f85886674aecb30e6b2', x'6254758334c1431e8c0f9b5e0c22e353', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863ea3ea1_c6080435d486659@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'21eaab9fd7c84edf94b63becdb7f8dce', 'jabanilson', NULL, 1, '2012-12-31 12:34:06')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account21eaab9f-d7c8-4edf-94b6-3becdb7f8dce' WHERE `accounts`.`id` = x'21eaab9fd7c84edf94b63becdb7f8dce'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'21eaab9fd7c84edf94b63becdb7f8dce', x'eede3e767ae34b46b16f16524166e5c8', x'd0353c5c910b4b90b757ae3410fb640b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eede3e767ae34b46b16f16524166e5c8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eede3e767ae34b46b16f16524166e5c8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eede3e767ae34b46b16f16524166e5c8', x'5507b6206b5d4902978fde256634d3b7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eede3e767ae34b46b16f16524166e5c8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eede3e767ae34b46b16f16524166e5c8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eede3e767ae34b46b16f16524166e5c8', x'08843d6ba7524757b108c5f01c3d4711', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0353c5c910b4b90b757ae3410fb640b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0353c5c910b4b90b757ae3410fb640b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0353c5c910b4b90b757ae3410fb640b' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"21EAAB9FD7C84EDF94B63BECDB7F8DCE"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd0353c5c910b4b90b757ae3410fb640b' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'21eaab9fd7c84edf94b63becdb7f8dce' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_21eaab9f-d7c8-4edf-94b6-3becdb7f8dce_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd0353c5c910b4b90b757ae3410fb640b' AND `account_users`.`account_id` = x'21eaab9fd7c84edf94b63becdb7f8dce' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eede3e767ae34b46b16f16524166e5c8' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eede3e767ae34b46b16f16524166e5c8' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0353c5c910b4b90b757ae3410fb640b' AND `accounts`.`id` = x'21eaab9fd7c84edf94b63becdb7f8dce' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'21eaab9fd7c84edf94b63becdb7f8dce') LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:34:06' WHERE `accounts`.`id` = x'21eaab9fd7c84edf94b63becdb7f8dce'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/21EAAB9FD7C84EDF94B63BECDB7F8DCE/domains Completed 302 Found in 14ms (ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$1T1Lvpe3vn0AJNDwy1PkSOtgPqvWgPy58SLOXhX.RlxJ6jPoYn2Du', NULL, x'97b8bf83d72a499bbe0d53f125b98d68', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'97b8bf83d72a499bbe0d53f125b98d68' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'd30abd6690114fe18ee6ac8d3dbc21d8', '1cb9f68afb393f3fd872061c4b72794e', x'97b8bf83d72a499bbe0d53f125b98d68', 'User', '2012-12-31 12:34:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'97b8bf83d72a499bbe0d53f125b98d68' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'cbd2d96899fa443d9424d3ae3eac09ec', NULL, NULL, NULL, '2012-12-31 12:34:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'accountcbd2d968-99fa-443d-9424-d3ae3eac09ec' WHERE `accounts`.`id` = x'cbd2d96899fa443d9424d3ae3eac09ec' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cbd2d96899fa443d9424d3ae3eac09ec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cbd2d96899fa443d9424d3ae3eac09ec', x'64829e1677f6468ab746e7670ea4595d', x'97b8bf83d72a499bbe0d53f125b98d68') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'64829e1677f6468ab746e7670ea4595d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'64829e1677f6468ab746e7670ea4595d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'64829e1677f6468ab746e7670ea4595d', x'ad56606ed7084ac29be6c1053a786952', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'64829e1677f6468ab746e7670ea4595d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'64829e1677f6468ab746e7670ea4595d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'64829e1677f6468ab746e7670ea4595d', x'e6d92463871a47fc9390b0386b474052', 'admin') Sent mail to teste@teste.com (87ms) Date: Mon, 31 Dec 2012 10:34:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863eb94c5_c6080435d48666a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'97e734e12f9747e29f0613fc79416c4a', 'jabanilson', NULL, 1, '2012-12-31 12:34:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account97e734e1-2f97-47e2-9f06-13fc79416c4a' WHERE `accounts`.`id` = x'97e734e12f9747e29f0613fc79416c4a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'97e734e12f9747e29f0613fc79416c4a', x'dbf841b195ca445c8106bd63f9ffa0dd', x'97b8bf83d72a499bbe0d53f125b98d68') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dbf841b195ca445c8106bd63f9ffa0dd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dbf841b195ca445c8106bd63f9ffa0dd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dbf841b195ca445c8106bd63f9ffa0dd', x'279a456374e44fa397a32c382c029cae', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dbf841b195ca445c8106bd63f9ffa0dd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dbf841b195ca445c8106bd63f9ffa0dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dbf841b195ca445c8106bd63f9ffa0dd', x'f488950d2a934925a9ba015d06a7d2b3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'97b8bf83d72a499bbe0d53f125b98d68' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'97b8bf83d72a499bbe0d53f125b98d68' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'97b8bf83d72a499bbe0d53f125b98d68' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"CBD2D96899FA443D9424D3AE3EAC09EC"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'97b8bf83d72a499bbe0d53f125b98d68' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cbd2d96899fa443d9424d3ae3eac09ec' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_cbd2d968-99fa-443d-9424-d3ae3eac09ec_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'97b8bf83d72a499bbe0d53f125b98d68' AND `account_users`.`account_id` = x'cbd2d96899fa443d9424d3ae3eac09ec' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'64829e1677f6468ab746e7670ea4595d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'64829e1677f6468ab746e7670ea4595d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'97b8bf83d72a499bbe0d53f125b98d68' AND `accounts`.`id` = x'cbd2d96899fa443d9424d3ae3eac09ec' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'cbd2d96899fa443d9424d3ae3eac09ec') LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:34:06' WHERE `accounts`.`id` = x'cbd2d96899fa443d9424d3ae3eac09ec'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/CBD2D96899FA443D9424D3AE3EAC09EC/domains Completed 302 Found in 13ms (ActiveRecord: 2.2ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$2nfaWPZWbjIpWvdjrVQV3OEu549jhTePNycxigOXK9HTo.lLd7Kvu', NULL, x'3c15589386544ed190b61fd7846dfc15', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3c15589386544ed190b61fd7846dfc15' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'fb4bb632d2594783bcd8081457dc491f', '06b5f04196329772a025464e88195977', x'3c15589386544ed190b61fd7846dfc15', 'User', '2012-12-31 12:34:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3c15589386544ed190b61fd7846dfc15' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'1e9c94f4cd9b4ce59dae0d5a6a863aed', NULL, NULL, NULL, '2012-12-31 12:34:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'account1e9c94f4-cd9b-4ce5-9dae-0d5a6a863aed' WHERE `accounts`.`id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1e9c94f4cd9b4ce59dae0d5a6a863aed', x'2aeb866336fc4dbf8b1aad6577801e41', x'3c15589386544ed190b61fd7846dfc15') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2aeb866336fc4dbf8b1aad6577801e41') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2aeb866336fc4dbf8b1aad6577801e41' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2aeb866336fc4dbf8b1aad6577801e41', x'92800a4b38764804bf3c9b5adc97bdd3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2aeb866336fc4dbf8b1aad6577801e41') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2aeb866336fc4dbf8b1aad6577801e41' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2aeb866336fc4dbf8b1aad6577801e41', x'513b0405ab444677a67c564476fe8c8a', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863ee23a3_c6080435d48667a0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:06', x'c3e402aad9604a019eea01b700760d07', 'jabanilson', NULL, 1, '2012-12-31 12:34:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:06', `updated_at` = '2012-12-31 12:34:06', `subdomain` = 'accountc3e402aa-d960-4a01-9eea-01b700760d07' WHERE `accounts`.`id` = x'c3e402aad9604a019eea01b700760d07'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c3e402aad9604a019eea01b700760d07', x'fd8e28ce7bfe45a8b79be87a99a82abd', x'3c15589386544ed190b61fd7846dfc15') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fd8e28ce7bfe45a8b79be87a99a82abd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd8e28ce7bfe45a8b79be87a99a82abd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd8e28ce7bfe45a8b79be87a99a82abd', x'375cc9ab6f8540b199f712d133ccbab3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fd8e28ce7bfe45a8b79be87a99a82abd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd8e28ce7bfe45a8b79be87a99a82abd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd8e28ce7bfe45a8b79be87a99a82abd', x'13bfaebdebf24223a5a8fd9cc09355c3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3c15589386544ed190b61fd7846dfc15' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3c15589386544ed190b61fd7846dfc15' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3c15589386544ed190b61fd7846dfc15' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"1E9C94F4CD9B4CE59DAE0D5A6A863AED"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3c15589386544ed190b61fd7846dfc15' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1e9c94f4-cd9b-4ce5-9dae-0d5a6a863aed_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3c15589386544ed190b61fd7846dfc15' AND `account_users`.`account_id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2aeb866336fc4dbf8b1aad6577801e41' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2aeb866336fc4dbf8b1aad6577801e41' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3c15589386544ed190b61fd7846dfc15' AND `accounts`.`id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'1e9c94f4cd9b4ce59dae0d5a6a863aed') LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:34:06' WHERE `accounts`.`id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/1E9C94F4CD9B4CE59DAE0D5A6A863AED/domains Completed 302 Found in 13ms (ActiveRecord: 2.9ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"1E9C94F4CD9B4CE59DAE0D5A6A863AED"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1e9c94f4-cd9b-4ce5-9dae-0d5a6a863aed_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3c15589386544ed190b61fd7846dfc15' AND `account_users`.`account_id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2aeb866336fc4dbf8b1aad6577801e41' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2aeb866336fc4dbf8b1aad6577801e41' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3c15589386544ed190b61fd7846dfc15' AND `accounts`.`id` = x'1e9c94f4cd9b4ce59dae0d5a6a863aed' LIMIT 1 Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:06', 'teste@teste.com', '$2a$04$gtjCKbtNnXjmzraU5LHZre/ahL8bjNHwdeE71xvh7BpXFOxscSwna', NULL, x'875470829162469d9bcdd5fd032276b9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'875470829162469d9bcdd5fd032276b9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:06', 'User', x'7e56ec1c80fe4b11ae84ce8e9a17a8c8', 'b287eb4cc9044ed3874c413e7444b038', x'875470829162469d9bcdd5fd032276b9', 'User', '2012-12-31 12:34:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'875470829162469d9bcdd5fd032276b9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'9e2c4eff654944398207c6ad4a00e62c', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account9e2c4eff-6549-4439-8207-c6ad4a00e62c' WHERE `accounts`.`id` = x'9e2c4eff654944398207c6ad4a00e62c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9e2c4eff654944398207c6ad4a00e62c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9e2c4eff654944398207c6ad4a00e62c', x'6384c5058c4e4750aa0e31a1b095752d', x'875470829162469d9bcdd5fd032276b9') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6384c5058c4e4750aa0e31a1b095752d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6384c5058c4e4750aa0e31a1b095752d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6384c5058c4e4750aa0e31a1b095752d', x'4c02beda30974dc8b90f07b609c445ec', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6384c5058c4e4750aa0e31a1b095752d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6384c5058c4e4750aa0e31a1b095752d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6384c5058c4e4750aa0e31a1b095752d', x'46edb2c7e169468bb4b16cd7e1d4156e', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863f6bb7_c6080435d4866859@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'e8cc3f14508b494ca2bf39e5ca70f0ca', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'accounte8cc3f14-508b-494c-a2bf-39e5ca70f0ca' WHERE `accounts`.`id` = x'e8cc3f14508b494ca2bf39e5ca70f0ca'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e8cc3f14508b494ca2bf39e5ca70f0ca', x'42760ffc90f644a393c5e134e55b6a49', x'875470829162469d9bcdd5fd032276b9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'42760ffc90f644a393c5e134e55b6a49') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'42760ffc90f644a393c5e134e55b6a49' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'42760ffc90f644a393c5e134e55b6a49', x'55a1419a606c427ebebf711337bfd272', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'42760ffc90f644a393c5e134e55b6a49') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'42760ffc90f644a393c5e134e55b6a49' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'42760ffc90f644a393c5e134e55b6a49', x'81d32977f37349d39073a2743403c27c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'875470829162469d9bcdd5fd032276b9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'875470829162469d9bcdd5fd032276b9' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'875470829162469d9bcdd5fd032276b9' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"E8CC3F14508B494CA2BF39E5CA70F0CA"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'875470829162469d9bcdd5fd032276b9' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e8cc3f14508b494ca2bf39e5ca70f0ca' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e8cc3f14-508b-494c-a2bf-39e5ca70f0ca_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'875470829162469d9bcdd5fd032276b9' AND `account_users`.`account_id` = x'e8cc3f14508b494ca2bf39e5ca70f0ca' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'42760ffc90f644a393c5e134e55b6a49' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'42760ffc90f644a393c5e134e55b6a49' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:07', 'teste@teste.com', '$2a$04$0PNvvWoD4UyQn.COAs3v5O/6O9bbDJ3vXMWsKt3XHoHZ5RTaoN9hq', NULL, x'd0c19c14415640d2a8419f2a799e6129', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd0c19c14415640d2a8419f2a799e6129' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:07', 'User', x'602b7c27316c4290bf1b6e3876148f57', '349360da515d0c16ebd4b8132cf05191', x'd0c19c14415640d2a8419f2a799e6129', 'User', '2012-12-31 12:34:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd0c19c14415640d2a8419f2a799e6129' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'32b41667f21b490c9b5b76eb13dbd933', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account32b41667-f21b-490c-9b5b-76eb13dbd933' WHERE `accounts`.`id` = x'32b41667f21b490c9b5b76eb13dbd933' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'32b41667f21b490c9b5b76eb13dbd933' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'32b41667f21b490c9b5b76eb13dbd933', x'd761671711dd442cb631b7861d995a79', x'd0c19c14415640d2a8419f2a799e6129') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd761671711dd442cb631b7861d995a79') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd761671711dd442cb631b7861d995a79' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd761671711dd442cb631b7861d995a79', x'8e12b8d5c1d746d198a04fb7585f6b02', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd761671711dd442cb631b7861d995a79') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd761671711dd442cb631b7861d995a79' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd761671711dd442cb631b7861d995a79', x'36d6d29d565d47d99513e531cc53e3d0', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863f1a283_c6080435d4866922@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'aa60c86f71cb4d3794d9dfad828173a1', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'accountaa60c86f-71cb-4d37-94d9-dfad828173a1' WHERE `accounts`.`id` = x'aa60c86f71cb4d3794d9dfad828173a1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aa60c86f71cb4d3794d9dfad828173a1', x'2ad559271c7f402c989b29210d6c9a25', x'd0c19c14415640d2a8419f2a799e6129') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2ad559271c7f402c989b29210d6c9a25') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ad559271c7f402c989b29210d6c9a25' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ad559271c7f402c989b29210d6c9a25', x'10f363df7cf2442191e1e01ce1be3a17', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2ad559271c7f402c989b29210d6c9a25') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ad559271c7f402c989b29210d6c9a25' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ad559271c7f402c989b29210d6c9a25', x'133792699bfb49bd8897b774c0c3a016', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c19c14415640d2a8419f2a799e6129' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c19c14415640d2a8419f2a799e6129' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c19c14415640d2a8419f2a799e6129' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"AA60C86F71CB4D3794D9DFAD828173A1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd0c19c14415640d2a8419f2a799e6129' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aa60c86f71cb4d3794d9dfad828173a1' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_aa60c86f-71cb-4d37-94d9-dfad828173a1_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:07', 'teste@teste.com', '$2a$04$9Rrgad58KtVC9/D0zxVnoemPIeiPStMutopYg3Lv4EIxZGui.9RZO', NULL, x'f273deff6328403899d28d9d0ea983e2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f273deff6328403899d28d9d0ea983e2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:07', 'User', x'af194424e96d4becb9e24c5a64f2f7be', '4647c1cc297020639c465a7c70cc7e71', x'f273deff6328403899d28d9d0ea983e2', 'User', '2012-12-31 12:34:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f273deff6328403899d28d9d0ea983e2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'79b24402ce784625baf5db91ba673de2', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account79b24402-ce78-4625-baf5-db91ba673de2' WHERE `accounts`.`id` = x'79b24402ce784625baf5db91ba673de2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'79b24402ce784625baf5db91ba673de2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'79b24402ce784625baf5db91ba673de2', x'd22c2756c29b419eae3f28973102a5b4', x'f273deff6328403899d28d9d0ea983e2') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd22c2756c29b419eae3f28973102a5b4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd22c2756c29b419eae3f28973102a5b4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd22c2756c29b419eae3f28973102a5b4', x'6b217e1546f74794a4f93d3b9c4ad2fb', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd22c2756c29b419eae3f28973102a5b4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd22c2756c29b419eae3f28973102a5b4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd22c2756c29b419eae3f28973102a5b4', x'bc6984aa74e0421e825516970becdd6e', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863f3fe3c_c6080435d4867090@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'2d978cac349a4e7bb7f96d21de1e0e09', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account2d978cac-349a-4e7b-b7f9-6d21de1e0e09' WHERE `accounts`.`id` = x'2d978cac349a4e7bb7f96d21de1e0e09'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2d978cac349a4e7bb7f96d21de1e0e09', x'483abfd2411947409252ce023c8e91b6', x'f273deff6328403899d28d9d0ea983e2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'483abfd2411947409252ce023c8e91b6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'483abfd2411947409252ce023c8e91b6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'483abfd2411947409252ce023c8e91b6', x'e775969a31354bb9b59747e64e7a606d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'483abfd2411947409252ce023c8e91b6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'483abfd2411947409252ce023c8e91b6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'483abfd2411947409252ce023c8e91b6', x'9a130bf491f8409e92568cf0e575ccaa', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f273deff6328403899d28d9d0ea983e2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f273deff6328403899d28d9d0ea983e2' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f273deff6328403899d28d9d0ea983e2' LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"2D978CAC349A4E7BB7F96D21DE1E0E09", "domain_id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f273deff6328403899d28d9d0ea983e2' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2d978cac349a4e7bb7f96d21de1e0e09' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2d978cac-349a-4e7b-b7f9-6d21de1e0e09_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:07', 'teste@teste.com', '$2a$04$CBAicUfNCwH60WPw.LELGuhX90g55f0ViQDagdtB0li.Yz0aDXQN6', NULL, x'a97928cb009b4ca396b6ae8b605ed245', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a97928cb009b4ca396b6ae8b605ed245' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:07', 'User', x'bad86b8af1d943f99b54c77012e7a67d', '762bae754a194f87e10658ed92c09582', x'a97928cb009b4ca396b6ae8b605ed245', 'User', '2012-12-31 12:34:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a97928cb009b4ca396b6ae8b605ed245' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'497e9a0441db4ea791645ba19478d2c5', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account497e9a04-41db-4ea7-9164-5ba19478d2c5' WHERE `accounts`.`id` = x'497e9a0441db4ea791645ba19478d2c5' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'497e9a0441db4ea791645ba19478d2c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'497e9a0441db4ea791645ba19478d2c5', x'e60ff8ff034644a48d1a1878d46bae8d', x'a97928cb009b4ca396b6ae8b605ed245') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e60ff8ff034644a48d1a1878d46bae8d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e60ff8ff034644a48d1a1878d46bae8d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e60ff8ff034644a48d1a1878d46bae8d', x'cfade2d668034f3a8ff3c701ae304f85', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e60ff8ff034644a48d1a1878d46bae8d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e60ff8ff034644a48d1a1878d46bae8d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e60ff8ff034644a48d1a1878d46bae8d', x'95270f4c530040e09cdeac6281c0e4a2', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863f51fb4_c6080435d486713c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'e59c88858d6f452abb741e86473b8456', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'accounte59c8885-8d6f-452a-bb74-1e86473b8456' WHERE `accounts`.`id` = x'e59c88858d6f452abb741e86473b8456'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e59c88858d6f452abb741e86473b8456', x'6e05876858a542e2bac61b721181614b', x'a97928cb009b4ca396b6ae8b605ed245') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6e05876858a542e2bac61b721181614b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e05876858a542e2bac61b721181614b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e05876858a542e2bac61b721181614b', x'4c49e86e8ea541a1af4077951863a11f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6e05876858a542e2bac61b721181614b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e05876858a542e2bac61b721181614b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e05876858a542e2bac61b721181614b', x'010cf564162e4abfb60e9bf1b2cbbbd7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a97928cb009b4ca396b6ae8b605ed245' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a97928cb009b4ca396b6ae8b605ed245' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a97928cb009b4ca396b6ae8b605ed245' LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"E59C88858D6F452ABB741E86473B8456"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a97928cb009b4ca396b6ae8b605ed245' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e59c88858d6f452abb741e86473b8456' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e59c8885-8d6f-452a-bb74-1e86473b8456_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a97928cb009b4ca396b6ae8b605ed245' AND `account_users`.`account_id` = x'e59c88858d6f452abb741e86473b8456' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6e05876858a542e2bac61b721181614b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6e05876858a542e2bac61b721181614b' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:07', 'teste@teste.com', '$2a$04$zJOC.1KYcCtMNCoIyifPiud9gEXJWZ5RmyYgn8iZ9/v4waA3wXKS2', NULL, x'a1eff50e4b8d4f9192e41d9bb4b809f3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:07') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:07', 'User', x'542b08fc09d44f7e837afa5a2f8d434e', '01bc12d17c3dcefefa6eb0826c972d5d', x'a1eff50e4b8d4f9192e41d9bb4b809f3', 'User', '2012-12-31 12:34:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'3a4f648434bd44149a6f89eb2ae12238', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account3a4f6484-34bd-4414-9a6f-89eb2ae12238' WHERE `accounts`.`id` = x'3a4f648434bd44149a6f89eb2ae12238' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a4f648434bd44149a6f89eb2ae12238' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3a4f648434bd44149a6f89eb2ae12238', x'437b4b5934514112ad863e46368965cc', x'a1eff50e4b8d4f9192e41d9bb4b809f3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'437b4b5934514112ad863e46368965cc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'437b4b5934514112ad863e46368965cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'437b4b5934514112ad863e46368965cc', x'b0e9d5b29be2460cb3f65d9cffe54406', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'437b4b5934514112ad863e46368965cc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'437b4b5934514112ad863e46368965cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'437b4b5934514112ad863e46368965cc', x'1a388ecc625440e1bbdfb3787e11c108', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863f64e14_c6080435d48672bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'90e217b4b908431ba670dddbdd33ec53', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account90e217b4-b908-431b-a670-dddbdd33ec53' WHERE `accounts`.`id` = x'90e217b4b908431ba670dddbdd33ec53'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'90e217b4b908431ba670dddbdd33ec53', x'194a7c54be834dc68d1665a709d0a032', x'a1eff50e4b8d4f9192e41d9bb4b809f3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'194a7c54be834dc68d1665a709d0a032') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'194a7c54be834dc68d1665a709d0a032' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'194a7c54be834dc68d1665a709d0a032', x'86735495d6c14afe840f1093f7396014', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'194a7c54be834dc68d1665a709d0a032') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'194a7c54be834dc68d1665a709d0a032' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'194a7c54be834dc68d1665a709d0a032', x'4c56a112e9a14d86b4658d2a5fc385b5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'194a7c54be834dc68d1665a709d0a032'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4c56a112e9a14d86b4658d2a5fc385b5' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'194a7c54be834dc68d1665a709d0a032' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'â´¹C¦pÝÛÝ3ìS' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'194a7c54be834dc68d1665a709d0a032') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'194a7c54be834dc68d1665a709d0a032' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'90e217b4b908431ba670dddbdd33ec53' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' LIMIT 1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"90e217b4-b908-431b-a670-dddbdd33ec53", "user_id"=>"a1eff50e-4b8d-4f91-92e4-1d9bb4b809f3"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' AND `account_users`.`account_id` = x'90e217b4b908431ba670dddbdd33ec53' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'194a7c54be834dc68d1665a709d0a032' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'194a7c54be834dc68d1665a709d0a032' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' AND `accounts`.`id` = x'90e217b4b908431ba670dddbdd33ec53' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'90e217b4b908431ba670dddbdd33ec53' AND `account_users`.`user_id` = x'a1eff50e4b8d4f9192e41d9bb4b809f3' LIMIT 1 Completed 200 OK in 15ms (Views: 4.2ms | ActiveRecord: 1.9ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:07', 'teste@teste.com', '$2a$04$nGEgbun5x8z/pg6yzhlW8eUXxx4/QMRyabUuehzowbEllZFhJk42W', NULL, x'1df04aff27924199a87bc38fa005b506', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:07') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1df04aff27924199a87bc38fa005b506' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:07', 'User', x'6dd086b78c554d0dbd471b3266e07535', 'c6e5f7e48ee6461d77744a27db373db3', x'1df04aff27924199a87bc38fa005b506', 'User', '2012-12-31 12:34:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1df04aff27924199a87bc38fa005b506' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'd75176985f9d4f97ad833c39d4cb44da', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'accountd7517698-5f9d-4f97-ad83-3c39d4cb44da' WHERE `accounts`.`id` = x'd75176985f9d4f97ad833c39d4cb44da' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd75176985f9d4f97ad833c39d4cb44da' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd75176985f9d4f97ad833c39d4cb44da', x'e2c7c511a3cf4e70b7ef1afeec9bfa6c', x'1df04aff27924199a87bc38fa005b506') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e2c7c511a3cf4e70b7ef1afeec9bfa6c', x'0f78c1fd733049808193c5a79618c60c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e2c7c511a3cf4e70b7ef1afeec9bfa6c', x'06faed0d26cf43ab95ce13f4130553ad', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863f90df4_c6080435d48673cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'7e54f949df0e449e8dee3b4695faf447', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account7e54f949-df0e-449e-8dee-3b4695faf447' WHERE `accounts`.`id` = x'7e54f949df0e449e8dee3b4695faf447'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7e54f949df0e449e8dee3b4695faf447', x'f5cec7cba08b473a8ae8eb859a8ac2e5', x'1df04aff27924199a87bc38fa005b506') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f5cec7cba08b473a8ae8eb859a8ac2e5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5cec7cba08b473a8ae8eb859a8ac2e5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5cec7cba08b473a8ae8eb859a8ac2e5', x'55ffb4ffdbb049dbad8f00868813eb45', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f5cec7cba08b473a8ae8eb859a8ac2e5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5cec7cba08b473a8ae8eb859a8ac2e5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5cec7cba08b473a8ae8eb859a8ac2e5', x'fef7ccff0eb449c7a58d618f4a081bc0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1df04aff27924199a87bc38fa005b506' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1df04aff27924199a87bc38fa005b506' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1df04aff27924199a87bc38fa005b506' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'06faed0d26cf43ab95ce13f4130553ad' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '×Qv˜_O—­ƒ<9ÔËDÚ' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd75176985f9d4f97ad833c39d4cb44da' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1df04aff27924199a87bc38fa005b506' LIMIT 1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"d7517698-5f9d-4f97-ad83-3c39d4cb44da", "user_id"=>"1df04aff-2792-4199-a87b-c38fa005b506"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1df04aff27924199a87bc38fa005b506' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1df04aff27924199a87bc38fa005b506' AND `account_users`.`account_id` = x'd75176985f9d4f97ad833c39d4cb44da' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e2c7c511a3cf4e70b7ef1afeec9bfa6c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1df04aff27924199a87bc38fa005b506' AND `accounts`.`id` = x'd75176985f9d4f97ad833c39d4cb44da' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd75176985f9d4f97ad833c39d4cb44da' AND `account_users`.`user_id` = x'1df04aff27924199a87bc38fa005b506' LIMIT 1 Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 1.8ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:07', 'teste@teste.com', '$2a$04$lKrtVf4WuVGyQZMe3GVSO.z9BRjYAuYvMmayrQ6gvqW1d28izlVne', NULL, x'256bd5073ed44e67b11037c7ef40b9d8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'256bd5073ed44e67b11037c7ef40b9d8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:07', 'User', x'3c7afe04ce7c4d5a824b693414c653bf', '7fa717f8e63f2ec1f24cc4512936f041', x'256bd5073ed44e67b11037c7ef40b9d8', 'User', '2012-12-31 12:34:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'256bd5073ed44e67b11037c7ef40b9d8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'fa4fac10cb8c449c92ccb65c749ce69b', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'accountfa4fac10-cb8c-449c-92cc-b65c749ce69b' WHERE `accounts`.`id` = x'fa4fac10cb8c449c92ccb65c749ce69b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fa4fac10cb8c449c92ccb65c749ce69b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fa4fac10cb8c449c92ccb65c749ce69b', x'0a2520fc53f64f77adbeb9c89d97dbad', x'256bd5073ed44e67b11037c7ef40b9d8') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0a2520fc53f64f77adbeb9c89d97dbad') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a2520fc53f64f77adbeb9c89d97dbad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a2520fc53f64f77adbeb9c89d97dbad', x'9d1c66ce4cbc44089c5940eac6acf31e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0a2520fc53f64f77adbeb9c89d97dbad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a2520fc53f64f77adbeb9c89d97dbad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a2520fc53f64f77adbeb9c89d97dbad', x'fd50c25818d14ee9b9f21ef3c9dacf37', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863fa8398_c6080435d486745b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'28d254c90b6641c19a1ee01a64b9e17d', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account28d254c9-0b66-41c1-9a1e-e01a64b9e17d' WHERE `accounts`.`id` = x'28d254c90b6641c19a1ee01a64b9e17d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'28d254c90b6641c19a1ee01a64b9e17d', x'6f1b6bdc33ce42ccb731fe874e568198', x'256bd5073ed44e67b11037c7ef40b9d8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6f1b6bdc33ce42ccb731fe874e568198') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f1b6bdc33ce42ccb731fe874e568198' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f1b6bdc33ce42ccb731fe874e568198', x'338067a17845426d97129b8b69e9b389', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6f1b6bdc33ce42ccb731fe874e568198') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f1b6bdc33ce42ccb731fe874e568198' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f1b6bdc33ce42ccb731fe874e568198', x'09b236c3c1e641f4bd6ae9bf0a4d78c7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'256bd5073ed44e67b11037c7ef40b9d8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'256bd5073ed44e67b11037c7ef40b9d8' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'256bd5073ed44e67b11037c7ef40b9d8' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fa4fac10cb8c449c92ccb65c749ce69b' LIMIT 1 Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"fa4fac10-cb8c-449c-92cc-b65c749ce69b", "user_id"=>"256bd507-3ed4-4e67-b110-37c7ef40b9d8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'256bd5073ed44e67b11037c7ef40b9d8' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'256bd5073ed44e67b11037c7ef40b9d8' AND `account_users`.`account_id` = x'fa4fac10cb8c449c92ccb65c749ce69b' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0a2520fc53f64f77adbeb9c89d97dbad' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0a2520fc53f64f77adbeb9c89d97dbad' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'256bd5073ed44e67b11037c7ef40b9d8' AND `accounts`.`id` = x'fa4fac10cb8c449c92ccb65c749ce69b' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fa4fac10cb8c449c92ccb65c749ce69b' AND `account_users`.`user_id` = x'256bd5073ed44e67b11037c7ef40b9d8' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0a2520fc53f64f77adbeb9c89d97dbad'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a2520fc53f64f77adbeb9c89d97dbad' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fd50c25818d14ee9b9f21ef3c9dacf37'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/fa4fac10-cb8c-449c-92cc-b65c749ce69b/users Completed 302 Found in 16ms (ActiveRecord: 2.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'0bd7e64c74814148899f1f9ebd252cb5', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account0bd7e64c-7481-4148-899f-1f9ebd252cb5' WHERE `accounts`.`id` = x'0bd7e64c74814148899f1f9ebd252cb5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:07', 'teste@teste.com', '$2a$04$k/GJGCc0KYJFXuB0hEF8IOEWGK07a07rBIXW6/qNBnonzkO31MgeC', NULL, x'1f4f8e7f33a94a7daa7ca262e59cb721', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:07') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1f4f8e7f33a94a7daa7ca262e59cb721' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:07', 'User', x'f976009b74b541abab1ef503b0f8eb21', '0c1e61e433e6ad60fd0e403e6ba3c57c', x'1f4f8e7f33a94a7daa7ca262e59cb721', 'User', '2012-12-31 12:34:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1f4f8e7f33a94a7daa7ca262e59cb721' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'6b1c5cd57df9487b8696409ff91adcf7', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account6b1c5cd5-7df9-487b-8696-409ff91adcf7' WHERE `accounts`.`id` = x'6b1c5cd57df9487b8696409ff91adcf7' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6b1c5cd57df9487b8696409ff91adcf7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6b1c5cd57df9487b8696409ff91adcf7', x'654f4a28165843d0a50893349ad55bfd', x'1f4f8e7f33a94a7daa7ca262e59cb721') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'654f4a28165843d0a50893349ad55bfd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'654f4a28165843d0a50893349ad55bfd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'654f4a28165843d0a50893349ad55bfd', x'fd2c46965ba64cc78f5f791f4f77b088', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'654f4a28165843d0a50893349ad55bfd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'654f4a28165843d0a50893349ad55bfd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'654f4a28165843d0a50893349ad55bfd', x'4d81f6ae5b484df1b738189bc1b9c9ee', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863fbf4c7_c6080435d4867550@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'43cac17c95ec484d94bdd66737edf54e', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account43cac17c-95ec-484d-94bd-d66737edf54e' WHERE `accounts`.`id` = x'43cac17c95ec484d94bdd66737edf54e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'43cac17c95ec484d94bdd66737edf54e', x'c633d607753c43eba0bb7df8e3034b98', x'1f4f8e7f33a94a7daa7ca262e59cb721') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c633d607753c43eba0bb7df8e3034b98') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c633d607753c43eba0bb7df8e3034b98' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c633d607753c43eba0bb7df8e3034b98', x'1cb6144eee484cf187177eedc35de12e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c633d607753c43eba0bb7df8e3034b98') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c633d607753c43eba0bb7df8e3034b98' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c633d607753c43eba0bb7df8e3034b98', x'dcdff64aff254a3ab4ee24fe7ca29a2c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1f4f8e7f33a94a7daa7ca262e59cb721' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1f4f8e7f33a94a7daa7ca262e59cb721' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:07', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 0bd7e64c-7481-4148-899f-1f9ebd252cb5\n', NULL, NULL, NULL, 0, 'account_0bd7e64c-7481-4148-899f-1f9ebd252cb5_destroy', '2012-12-31 12:34:07', '2012-12-31 12:34:07')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"0BD7E64C74814148899F1F9EBD252CB5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1f4f8e7f33a94a7daa7ca262e59cb721' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0bd7e64c74814148899f1f9ebd252cb5' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_0bd7e64c-7481-4148-899f-1f9ebd252cb5_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 16ms (Views: 10.1ms | ActiveRecord: 0.9ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'a8b6a355084440f2a8845288a035d8c6', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'accounta8b6a355-0844-40f2-a884-5288a035d8c6' WHERE `accounts`.`id` = x'a8b6a355084440f2a8845288a035d8c6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:07', 'teste@teste.com', '$2a$04$fAJxwB8zarb1rD71QtPe2ueo.ZWiSjaUQPa7odITmAik9T.UPqjpu', NULL, x'c3de0d002af14f5ebd71985ea45b8540', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:07') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c3de0d002af14f5ebd71985ea45b8540' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:07', 'User', x'5680b2fe36e94b259235b033ddf80c9a', '5955793e1974f40613b6051455f3ee20', x'c3de0d002af14f5ebd71985ea45b8540', 'User', '2012-12-31 12:34:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c3de0d002af14f5ebd71985ea45b8540' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'e45c06cc159548a792658fbc2b35ab6c', NULL, NULL, NULL, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'accounte45c06cc-1595-48a7-9265-8fbc2b35ab6c' WHERE `accounts`.`id` = x'e45c06cc159548a792658fbc2b35ab6c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e45c06cc159548a792658fbc2b35ab6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e45c06cc159548a792658fbc2b35ab6c', x'ef1adf88ea54477196acd9780d6fa759', x'c3de0d002af14f5ebd71985ea45b8540') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ef1adf88ea54477196acd9780d6fa759') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ef1adf88ea54477196acd9780d6fa759' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ef1adf88ea54477196acd9780d6fa759', x'59a82ff1a745418281b16869fd9c20bf', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ef1adf88ea54477196acd9780d6fa759') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ef1adf88ea54477196acd9780d6fa759' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ef1adf88ea54477196acd9780d6fa759', x'6e79ad0a0b5a4ef2afb64164896836f6', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:07 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1863fef29e_c6080435d48676ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:07', x'45f740e80fb7439783b95ccd7340a401', 'jabanilson', NULL, 1, '2012-12-31 12:34:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:07', `updated_at` = '2012-12-31 12:34:07', `subdomain` = 'account45f740e8-0fb7-4397-83b9-5ccd7340a401' WHERE `accounts`.`id` = x'45f740e80fb7439783b95ccd7340a401'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'45f740e80fb7439783b95ccd7340a401', x'c3df6a66c4a5406cb6c11d4c2d50b824', x'c3de0d002af14f5ebd71985ea45b8540') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c3df6a66c4a5406cb6c11d4c2d50b824') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3df6a66c4a5406cb6c11d4c2d50b824' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3df6a66c4a5406cb6c11d4c2d50b824', x'2fce2c1cb1aa4617a75995b6604525d3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c3df6a66c4a5406cb6c11d4c2d50b824') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3df6a66c4a5406cb6c11d4c2d50b824' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3df6a66c4a5406cb6c11d4c2d50b824', x'115a76db15884d2fb0ea878582c3e139', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c3de0d002af14f5ebd71985ea45b8540' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c3de0d002af14f5ebd71985ea45b8540' LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"A8B6A355084440F2A8845288A035D8C6"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c3de0d002af14f5ebd71985ea45b8540' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a8b6a355084440f2a8845288a035d8c6' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a8b6a355-0844-40f2-a884-5288a035d8c6_destroy' LIMIT 1 Completed 200 OK in 21ms (Views: 16.9ms | ActiveRecord: 1.0ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'teste@teste.com', '$2a$04$weJ95fu.aMrXwYWEKa.DIe4nZVhZu1fCJSB5PxA0cPtNFGgl2Rnt.', NULL, x'536cf9306b0c46c48b28321b6ab54a1a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'536cf9306b0c46c48b28321b6ab54a1a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'88ea381017ba4164955c50342cc0d953', '9162168deae66f5f01c7fc8e3ee3374a', x'536cf9306b0c46c48b28321b6ab54a1a', 'User', '2012-12-31 12:34:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'536cf9306b0c46c48b28321b6ab54a1a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'f783f6fbe46a4a7ea619a8f7a280251e', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'accountf783f6fb-e46a-4a7e-a619-a8f7a280251e' WHERE `accounts`.`id` = x'f783f6fbe46a4a7ea619a8f7a280251e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f783f6fbe46a4a7ea619a8f7a280251e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f783f6fbe46a4a7ea619a8f7a280251e', x'08fdef0228aa4d798cc99bb17804354b', x'536cf9306b0c46c48b28321b6ab54a1a') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'08fdef0228aa4d798cc99bb17804354b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08fdef0228aa4d798cc99bb17804354b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08fdef0228aa4d798cc99bb17804354b', x'293f4a40ee5f447683eb1ba7548f7165', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'08fdef0228aa4d798cc99bb17804354b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08fdef0228aa4d798cc99bb17804354b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08fdef0228aa4d798cc99bb17804354b', x'484748bc66764dcab74187a83e34a8f7', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864013533_c6080435d486772b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'f996b34333714ebeaaeffdd467345966', 'jabanilson', NULL, 1, '2012-12-31 12:34:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'accountf996b343-3371-4ebe-aaef-fdd467345966' WHERE `accounts`.`id` = x'f996b34333714ebeaaeffdd467345966'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f996b34333714ebeaaeffdd467345966', x'0e0ec8fed56a4a86b41276000089212a', x'536cf9306b0c46c48b28321b6ab54a1a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0e0ec8fed56a4a86b41276000089212a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e0ec8fed56a4a86b41276000089212a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e0ec8fed56a4a86b41276000089212a', x'288ad23970b94fe2bceb83407a507500', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e0ec8fed56a4a86b41276000089212a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e0ec8fed56a4a86b41276000089212a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e0ec8fed56a4a86b41276000089212a', x'd3d544b342a843dd963870cc07773993', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'536cf9306b0c46c48b28321b6ab54a1a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'536cf9306b0c46c48b28321b6ab54a1a' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'536cf9306b0c46c48b28321b6ab54a1a' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"F783F6FBE46A4A7EA619A8F7A280251E"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'536cf9306b0c46c48b28321b6ab54a1a' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f783f6fbe46a4a7ea619a8f7a280251e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f783f6fb-e46a-4a7e-a619-a8f7a280251e_destroy' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f783f6fbe46a4a7ea619a8f7a280251e' LIMIT 1 Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'teste@teste.com', '$2a$04$dMuEovbbsZM.FL5OXQZngezdHNMLm75B/7COVWG9.MKXkbVk6XHBq', NULL, x'2954a512c6d3435cb7c7df7f6b8f1d30', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2954a512c6d3435cb7c7df7f6b8f1d30' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'1cf0d291fa5b4823ba849e651a59426c', 'bef78ad031f3eea4f59a0a044d238e05', x'2954a512c6d3435cb7c7df7f6b8f1d30', 'User', '2012-12-31 12:34:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2954a512c6d3435cb7c7df7f6b8f1d30' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'686391bcdbed40c7a333608b7fc6451f', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account686391bc-dbed-40c7-a333-608b7fc6451f' WHERE `accounts`.`id` = x'686391bcdbed40c7a333608b7fc6451f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'686391bcdbed40c7a333608b7fc6451f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'686391bcdbed40c7a333608b7fc6451f', x'03a9462b7fc34c4d91beea6cc82a20f2', x'2954a512c6d3435cb7c7df7f6b8f1d30') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'03a9462b7fc34c4d91beea6cc82a20f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03a9462b7fc34c4d91beea6cc82a20f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03a9462b7fc34c4d91beea6cc82a20f2', x'054c6d6d768b4abc93d61ee44807ef1c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'03a9462b7fc34c4d91beea6cc82a20f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03a9462b7fc34c4d91beea6cc82a20f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03a9462b7fc34c4d91beea6cc82a20f2', x'c822569d69ed406f988ea7989a54669e', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186402739c_c6080435d486788d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'7bbb7125a6b249a288f8d4c9138d4a88', 'jabanilson', NULL, 1, '2012-12-31 12:34:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account7bbb7125-a6b2-49a2-88f8-d4c9138d4a88' WHERE `accounts`.`id` = x'7bbb7125a6b249a288f8d4c9138d4a88'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7bbb7125a6b249a288f8d4c9138d4a88', x'5a3bff96d88844b0ba4e96b403451cd5', x'2954a512c6d3435cb7c7df7f6b8f1d30') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5a3bff96d88844b0ba4e96b403451cd5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5a3bff96d88844b0ba4e96b403451cd5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5a3bff96d88844b0ba4e96b403451cd5', x'68b5ebb11fab4f05b4d261440c0b7920', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5a3bff96d88844b0ba4e96b403451cd5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5a3bff96d88844b0ba4e96b403451cd5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5a3bff96d88844b0ba4e96b403451cd5', x'27438333502743f5a456e50841259d01', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2954a512c6d3435cb7c7df7f6b8f1d30' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2954a512c6d3435cb7c7df7f6b8f1d30' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2954a512c6d3435cb7c7df7f6b8f1d30' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"686391BCDBED40C7A333608B7FC6451F"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2954a512c6d3435cb7c7df7f6b8f1d30' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'686391bcdbed40c7a333608b7fc6451f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_686391bc-dbed-40c7-a333-608b7fc6451f_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'686391bcdbed40c7a333608b7fc6451f' LIMIT 1 Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 1.1ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2954a512c6d3435cb7c7df7f6b8f1d30' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"686391BCDBED40C7A333608B7FC6451F"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'686391bcdbed40c7a333608b7fc6451f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_686391bc-dbed-40c7-a333-608b7fc6451f_destroy' LIMIT 1 Completed 404 Not Found in 2ms  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'teste@teste.com', '$2a$04$9x/HQ/SiXpRUf98x8gSZTO3oJdXxKplLKucb0WUjjeNvBhfxKwQFi', NULL, x'ead05fc05f994075845d90fde9f6bbdd', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ead05fc05f994075845d90fde9f6bbdd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'd16f5b2c415f43e5871a297c0f20f016', '40105705b4d8decb4fa6b98ed1305160', x'ead05fc05f994075845d90fde9f6bbdd', 'User', '2012-12-31 12:34:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ead05fc05f994075845d90fde9f6bbdd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'4ee4f41ceaf34b2c8dc1ed8278649629', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account4ee4f41c-eaf3-4b2c-8dc1-ed8278649629' WHERE `accounts`.`id` = x'4ee4f41ceaf34b2c8dc1ed8278649629' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4ee4f41ceaf34b2c8dc1ed8278649629' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4ee4f41ceaf34b2c8dc1ed8278649629', x'005fb84ab3f74e7eba1825e93edb8587', x'ead05fc05f994075845d90fde9f6bbdd') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'005fb84ab3f74e7eba1825e93edb8587') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'005fb84ab3f74e7eba1825e93edb8587' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'005fb84ab3f74e7eba1825e93edb8587', x'2534d896d355492988b6a9644d7ee759', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'005fb84ab3f74e7eba1825e93edb8587') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'005fb84ab3f74e7eba1825e93edb8587' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'005fb84ab3f74e7eba1825e93edb8587', x'fd43e7e5d87d466198f51101b384a713', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186404f6ad_c6080435d4867993@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'10078040d4e549c99da6aa9baa1be1bd', 'jabanilson', NULL, 1, '2012-12-31 12:34:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account10078040-d4e5-49c9-9da6-aa9baa1be1bd' WHERE `accounts`.`id` = x'10078040d4e549c99da6aa9baa1be1bd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'10078040d4e549c99da6aa9baa1be1bd', x'1f0738d6330e43f9b376e691df895e51', x'ead05fc05f994075845d90fde9f6bbdd') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1f0738d6330e43f9b376e691df895e51') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1f0738d6330e43f9b376e691df895e51' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1f0738d6330e43f9b376e691df895e51', x'3418992c48114f679c1362af71fe5fb2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1f0738d6330e43f9b376e691df895e51') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1f0738d6330e43f9b376e691df895e51' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1f0738d6330e43f9b376e691df895e51', x'2478e24e62ea4a87a2145d13342e9497', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ead05fc05f994075845d90fde9f6bbdd' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ead05fc05f994075845d90fde9f6bbdd' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ead05fc05f994075845d90fde9f6bbdd' LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"4EE4F41CEAF34B2C8DC1ED8278649629", "user_id"=>"EAD05FC05F994075845D90FDE9F6BBDD"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ead05fc05f994075845d90fde9f6bbdd' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4ee4f41ceaf34b2c8dc1ed8278649629' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4ee4f41c-eaf3-4b2c-8dc1-ed8278649629_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4ee4f41ceaf34b2c8dc1ed8278649629' AND `account_users`.`user_id` = x'ead05fc05f994075845d90fde9f6bbdd' LIMIT 1 Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 1.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'teste@teste.com', '$2a$04$niYRKBW/2vk4E0Bc9ezI9OOQ7pq7X/PkQ0luQG2zlP2eWlydI86FS', NULL, x'02d1c5e127814077af9cb1e69b944648', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'02d1c5e127814077af9cb1e69b944648' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'a2bfb83c36414018ac4c6d1adb4afe21', '648524d10763cee81a91f0144a3a256a', x'02d1c5e127814077af9cb1e69b944648', 'User', '2012-12-31 12:34:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'02d1c5e127814077af9cb1e69b944648' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'5984a32f75eb4b62be0088dbbeb20864', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account5984a32f-75eb-4b62-be00-88dbbeb20864' WHERE `accounts`.`id` = x'5984a32f75eb4b62be0088dbbeb20864' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5984a32f75eb4b62be0088dbbeb20864' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5984a32f75eb4b62be0088dbbeb20864', x'c3db119d483f41a48ab7db5d7a7fc58d', x'02d1c5e127814077af9cb1e69b944648') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c3db119d483f41a48ab7db5d7a7fc58d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3db119d483f41a48ab7db5d7a7fc58d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3db119d483f41a48ab7db5d7a7fc58d', x'7b7b14b860d74179ba12efe64ec2c5a9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c3db119d483f41a48ab7db5d7a7fc58d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3db119d483f41a48ab7db5d7a7fc58d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3db119d483f41a48ab7db5d7a7fc58d', x'7459231f3c424366a083b60a97b41585', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18640636c4_c6080435d486806f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'0569aa082b234fd683598e58175789f6', 'jabanilson', NULL, 1, '2012-12-31 12:34:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account0569aa08-2b23-4fd6-8359-8e58175789f6' WHERE `accounts`.`id` = x'0569aa082b234fd683598e58175789f6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0569aa082b234fd683598e58175789f6', x'e9c328370e994b959c3463d8bb5ce341', x'02d1c5e127814077af9cb1e69b944648') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e9c328370e994b959c3463d8bb5ce341') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9c328370e994b959c3463d8bb5ce341' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9c328370e994b959c3463d8bb5ce341', x'bf9c1ad917a44aeeb7b1bff2985323a5', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e9c328370e994b959c3463d8bb5ce341') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9c328370e994b959c3463d8bb5ce341' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9c328370e994b959c3463d8bb5ce341', x'a0ee182379da4d6b973b1a8d1501af55', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'02d1c5e127814077af9cb1e69b944648' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'02d1c5e127814077af9cb1e69b944648' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'02d1c5e127814077af9cb1e69b944648' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'targetdestroy@teste.teste', '$2a$04$EuEhAm6kQafm7zHf8og6meah.RjLzvTHcdEUSx01EnATCwyDXGYlK', NULL, x'1ce5fd1ccdcd488f80cd234c85c43006', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1ce5fd1ccdcd488f80cd234c85c43006' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'a5e7800dbdcf484892ca5884a150ff65', 'd5223d5c109b131ef283f59eb8a5afa9', x'1ce5fd1ccdcd488f80cd234c85c43006', 'User', '2012-12-31 12:34:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1ce5fd1ccdcd488f80cd234c85c43006' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'337b2003e4d84a538dd390048ff37de6', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account337b2003-e4d8-4a53-8dd3-90048ff37de6' WHERE `accounts`.`id` = x'337b2003e4d84a538dd390048ff37de6' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'337b2003e4d84a538dd390048ff37de6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'337b2003e4d84a538dd390048ff37de6', x'767d0ff443164dce9639bfc88241754e', x'1ce5fd1ccdcd488f80cd234c85c43006') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'767d0ff443164dce9639bfc88241754e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'767d0ff443164dce9639bfc88241754e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'767d0ff443164dce9639bfc88241754e', x'249bd4ca10b845abb399001ab6e5d366', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'767d0ff443164dce9639bfc88241754e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'767d0ff443164dce9639bfc88241754e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'767d0ff443164dce9639bfc88241754e', x'78d03eaa843e4c859c02e0cee22c6e21', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e1864073e4d_c6080435d4868156@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5984a32f75eb4b62be0088dbbeb20864' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5984a32f75eb4b62be0088dbbeb20864', x'c8a2a7ac8ecd4bc4b53fc59dc672e6d4', x'1ce5fd1ccdcd488f80cd234c85c43006') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c8a2a7ac8ecd4bc4b53fc59dc672e6d4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c8a2a7ac8ecd4bc4b53fc59dc672e6d4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c8a2a7ac8ecd4bc4b53fc59dc672e6d4', x'4e0f6ad1c62a454280d85768c87feaf4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c8a2a7ac8ecd4bc4b53fc59dc672e6d4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c8a2a7ac8ecd4bc4b53fc59dc672e6d4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c8a2a7ac8ecd4bc4b53fc59dc672e6d4', x'd604d9ebe393456c9b01559d2ef10738', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"1CE5FD1CCDCD488F80CD234C85C43006"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'02d1c5e127814077af9cb1e69b944648' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31383932373331383932333731323733' LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'teste@teste.com', '$2a$04$lIHtGfr6NUs4bCUlgI/CoeD8CaMZGPOWLO23Kj0TWMMRQs21NQCwm', NULL, x'2e48e29d6d8a40a68e77f9e24f4bceb1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2e48e29d6d8a40a68e77f9e24f4bceb1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'cd8616c1f81b4e33ad7d69458daa923d', '2c788b8b5baebacf6c412b49ef8054b1', x'2e48e29d6d8a40a68e77f9e24f4bceb1', 'User', '2012-12-31 12:34:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2e48e29d6d8a40a68e77f9e24f4bceb1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'a3115b45c49941b9a0c246d4728ca20b', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'accounta3115b45-c499-41b9-a0c2-46d4728ca20b' WHERE `accounts`.`id` = x'a3115b45c49941b9a0c246d4728ca20b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a3115b45c49941b9a0c246d4728ca20b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a3115b45c49941b9a0c246d4728ca20b', x'4eb1b469ca1341b5ac5f159c1eaee2ac', x'2e48e29d6d8a40a68e77f9e24f4bceb1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4eb1b469ca1341b5ac5f159c1eaee2ac') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4eb1b469ca1341b5ac5f159c1eaee2ac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4eb1b469ca1341b5ac5f159c1eaee2ac', x'e05947f68beb4e02a40dda5d6abd3444', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4eb1b469ca1341b5ac5f159c1eaee2ac') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4eb1b469ca1341b5ac5f159c1eaee2ac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4eb1b469ca1341b5ac5f159c1eaee2ac', x'9e1343d613c04469b50482e15fce10f7', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864084f8d_c6080435d48682d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'77243395991d448cbefd55301ede11d4', 'jabanilson', NULL, 1, '2012-12-31 12:34:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account77243395-991d-448c-befd-55301ede11d4' WHERE `accounts`.`id` = x'77243395991d448cbefd55301ede11d4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'77243395991d448cbefd55301ede11d4', x'3a9a531660594bee9a790fd13c7c3b1d', x'2e48e29d6d8a40a68e77f9e24f4bceb1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3a9a531660594bee9a790fd13c7c3b1d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a9a531660594bee9a790fd13c7c3b1d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a9a531660594bee9a790fd13c7c3b1d', x'1c8453a697aa426489493fb3a96c19fe', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3a9a531660594bee9a790fd13c7c3b1d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a9a531660594bee9a790fd13c7c3b1d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a9a531660594bee9a790fd13c7c3b1d', x'66e9ee9eba8541bc81bbea3875ee8178', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e48e29d6d8a40a68e77f9e24f4bceb1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e48e29d6d8a40a68e77f9e24f4bceb1' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e48e29d6d8a40a68e77f9e24f4bceb1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'targetdestroy@teste.teste', '$2a$04$2HEX7CqggZ9TVwTR4gHhg.Bh9i884xqosZAiLjHND6QSm8Ww8woAC', NULL, x'6b03c18b819f4d619570d453a492484c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6b03c18b819f4d619570d453a492484c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'ffa1c4d8b1be4c789c40811afefd12b5', '925b23f729a9111f86df073e34592464', x'6b03c18b819f4d619570d453a492484c', 'User', '2012-12-31 12:34:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6b03c18b819f4d619570d453a492484c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'02ad4695d00346ab890f7cba85d7d86d', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account02ad4695-d003-46ab-890f-7cba85d7d86d' WHERE `accounts`.`id` = x'02ad4695d00346ab890f7cba85d7d86d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'02ad4695d00346ab890f7cba85d7d86d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'02ad4695d00346ab890f7cba85d7d86d', x'37b12d10702f4a928c3c4dae4ada34f4', x'6b03c18b819f4d619570d453a492484c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'37b12d10702f4a928c3c4dae4ada34f4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37b12d10702f4a928c3c4dae4ada34f4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37b12d10702f4a928c3c4dae4ada34f4', x'2b005550887e486b99ee755bd744a456', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'37b12d10702f4a928c3c4dae4ada34f4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37b12d10702f4a928c3c4dae4ada34f4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37b12d10702f4a928c3c4dae4ada34f4', x'ad37a019f8774afca3b7fe6cc660f0ba', 'admin') Sent mail to targetdestroy@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e18640a9cc3_c6080435d4868352@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'77243395991d448cbefd55301ede11d4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'77243395991d448cbefd55301ede11d4', x'6fd9e284b77e47c4ad222dba6ccfe962', x'6b03c18b819f4d619570d453a492484c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6fd9e284b77e47c4ad222dba6ccfe962') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6fd9e284b77e47c4ad222dba6ccfe962' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6fd9e284b77e47c4ad222dba6ccfe962', x'7ab132fefa0a4d9a8b286054052d1ab3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6fd9e284b77e47c4ad222dba6ccfe962') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6fd9e284b77e47c4ad222dba6ccfe962' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6fd9e284b77e47c4ad222dba6ccfe962', x'802633c206384e3eb39d8b8e90e00b3e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"77243395991D448CBEFD55301EDE11D4", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2e48e29d6d8a40a68e77f9e24f4bceb1' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'77243395991d448cbefd55301ede11d4' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_77243395-991d-448c-befd-55301ede11d4_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2e48e29d6d8a40a68e77f9e24f4bceb1' AND `account_users`.`account_id` = x'77243395991d448cbefd55301ede11d4' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3a9a531660594bee9a790fd13c7c3b1d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3a9a531660594bee9a790fd13c7c3b1d' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'77243395991d448cbefd55301ede11d4' AND `account_users`.`user_id` = x'38323337313938323337313932383337' LIMIT 1 Completed 404 Not Found in 9ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'teste@teste.com', '$2a$04$jA6/RDXDnI/BSIIaYZCxueakwG.w4BB4QEVGBXtFL5VAUXNtCs9hK', NULL, x'e2e9899cbbfc432f820392c3facdc45d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e2e9899cbbfc432f820392c3facdc45d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'f24de49f16a14b0a811ac44101a26896', '131c65067961946c0192e5c052d6b05b', x'e2e9899cbbfc432f820392c3facdc45d', 'User', '2012-12-31 12:34:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e2e9899cbbfc432f820392c3facdc45d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'a38550404f9e4b43b2812f9d08ce9260', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'accounta3855040-4f9e-4b43-b281-2f9d08ce9260' WHERE `accounts`.`id` = x'a38550404f9e4b43b2812f9d08ce9260' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a38550404f9e4b43b2812f9d08ce9260' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a38550404f9e4b43b2812f9d08ce9260', x'9eac60065b294118844fb6646d357476', x'e2e9899cbbfc432f820392c3facdc45d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9eac60065b294118844fb6646d357476') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9eac60065b294118844fb6646d357476' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9eac60065b294118844fb6646d357476', x'aa6e88deb79247558571990c74d79138', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9eac60065b294118844fb6646d357476') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9eac60065b294118844fb6646d357476' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9eac60065b294118844fb6646d357476', x'544e338c88014ecb99aed3f3a39efda6', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18640bc38a_c6080435d4868485@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'a810ef0f961b464fa98e02d1f3700d23', 'jabanilson', NULL, 1, '2012-12-31 12:34:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'accounta810ef0f-961b-464f-a98e-02d1f3700d23' WHERE `accounts`.`id` = x'a810ef0f961b464fa98e02d1f3700d23'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a810ef0f961b464fa98e02d1f3700d23', x'5581eed53bbd449282bed965f4832af3', x'e2e9899cbbfc432f820392c3facdc45d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5581eed53bbd449282bed965f4832af3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5581eed53bbd449282bed965f4832af3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5581eed53bbd449282bed965f4832af3', x'580660dac09f49a89ad3991d72f42e8a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5581eed53bbd449282bed965f4832af3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5581eed53bbd449282bed965f4832af3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5581eed53bbd449282bed965f4832af3', x'f5c8058ccc9242ba9af708daf0370642', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2e9899cbbfc432f820392c3facdc45d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2e9899cbbfc432f820392c3facdc45d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2e9899cbbfc432f820392c3facdc45d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'targetdestroy@teste.teste', '$2a$04$kkzLVHWphadnCF0Yfu4tHuhhMIv7baZ64Qze.T2x0NHUwy0JXXgUu', NULL, x'3e7f656fcca54252bfbee0b24c68d348', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3e7f656fcca54252bfbee0b24c68d348' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'c6c662c3040d426a8de82bf304b206fe', '289f277ea5914bcc58891bb86f7e9058', x'3e7f656fcca54252bfbee0b24c68d348', 'User', '2012-12-31 12:34:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3e7f656fcca54252bfbee0b24c68d348' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'3f6110264be14db6be396cef5cc095a4', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account3f611026-4be1-4db6-be39-6cef5cc095a4' WHERE `accounts`.`id` = x'3f6110264be14db6be396cef5cc095a4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3f6110264be14db6be396cef5cc095a4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3f6110264be14db6be396cef5cc095a4', x'5d896abd42594d1b990e5ce5735c30e3', x'3e7f656fcca54252bfbee0b24c68d348') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5d896abd42594d1b990e5ce5735c30e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d896abd42594d1b990e5ce5735c30e3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d896abd42594d1b990e5ce5735c30e3', x'32e54b07a7194a1e867bafded203bfbf', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5d896abd42594d1b990e5ce5735c30e3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d896abd42594d1b990e5ce5735c30e3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d896abd42594d1b990e5ce5735c30e3', x'52b91ac728664bf8b25bf410c2dcd49a', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e18640cc4e3_c6080435d4868538@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a38550404f9e4b43b2812f9d08ce9260' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a38550404f9e4b43b2812f9d08ce9260', x'eaa0bda8585442778f1f56ed3a70d6e2', x'3e7f656fcca54252bfbee0b24c68d348') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eaa0bda8585442778f1f56ed3a70d6e2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaa0bda8585442778f1f56ed3a70d6e2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaa0bda8585442778f1f56ed3a70d6e2', x'076784995363465c9938d03abc19e92f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eaa0bda8585442778f1f56ed3a70d6e2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaa0bda8585442778f1f56ed3a70d6e2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaa0bda8585442778f1f56ed3a70d6e2', x'11f7dfef2375488484069c7d64216b1c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eaa0bda8585442778f1f56ed3a70d6e2'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaa0bda8585442778f1f56ed3a70d6e2' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '£…P@OžKC²/Î’`' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'076784995363465c9938d03abc19e92f' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'11f7dfef2375488484069c7d64216b1c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'eaa0bda8585442778f1f56ed3a70d6e2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaa0bda8585442778f1f56ed3a70d6e2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaa0bda8585442778f1f56ed3a70d6e2', x'5a51b6ac6cad4887b2aca3ce56281643', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"A38550404F9E4B43B2812F9D08CE9260", "user_id"=>"3E7F656FCCA54252BFBEE0B24C68D348"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e2e9899cbbfc432f820392c3facdc45d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a38550404f9e4b43b2812f9d08ce9260' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a3855040-4f9e-4b43-b281-2f9d08ce9260_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e2e9899cbbfc432f820392c3facdc45d' AND `account_users`.`account_id` = x'a38550404f9e4b43b2812f9d08ce9260' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9eac60065b294118844fb6646d357476' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9eac60065b294118844fb6646d357476' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a38550404f9e4b43b2812f9d08ce9260' AND `account_users`.`user_id` = x'3e7f656fcca54252bfbee0b24c68d348' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a38550404f9e4b43b2812f9d08ce9260' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3e7f656fcca54252bfbee0b24c68d348' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eaa0bda8585442778f1f56ed3a70d6e2' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:08', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: eaa0bda8-5854-4277-8f1f-56ed3a70d6e2\n', NULL, NULL, NULL, 0, 'account_user_eaa0bda8-5854-4277-8f1f-56ed3a70d6e2_destroy', '2012-12-31 12:34:08', '2012-12-31 12:34:08')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_eaa0bda8-5854-4277-8f1f-56ed3a70d6e2_destroy' LIMIT 1 Redirected to http://test.host/settings/account/A38550404F9E4B43B2812F9D08CE9260/users Completed 302 Found in 20ms (ActiveRecord: 3.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'teste@teste.com', '$2a$04$05NpX6A.Bfl9C9mXNpxJV.33WBdU06Esapwq08tRf2GdjGR7/GmO6', NULL, x'5d626be0d3cf4f8380b71aa757854868', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5d626be0d3cf4f8380b71aa757854868' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'3ee0b0caa8634e93a459fea2e8c4d083', 'b92d977a2bc1c691731906af71cd2d1f', x'5d626be0d3cf4f8380b71aa757854868', 'User', '2012-12-31 12:34:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5d626be0d3cf4f8380b71aa757854868' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'38b99e1a60b946aa87a0c45c4e02c65e', NULL, NULL, NULL, '2012-12-31 12:34:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account38b99e1a-60b9-46aa-87a0-c45c4e02c65e' WHERE `accounts`.`id` = x'38b99e1a60b946aa87a0c45c4e02c65e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'38b99e1a60b946aa87a0c45c4e02c65e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'38b99e1a60b946aa87a0c45c4e02c65e', x'cfe3fe10138a4403bf664db845e3c42d', x'5d626be0d3cf4f8380b71aa757854868') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cfe3fe10138a4403bf664db845e3c42d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfe3fe10138a4403bf664db845e3c42d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfe3fe10138a4403bf664db845e3c42d', x'2fd50f34dc3644f482ed660ee57f3a41', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cfe3fe10138a4403bf664db845e3c42d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfe3fe10138a4403bf664db845e3c42d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfe3fe10138a4403bf664db845e3c42d', x'250746681e024484ab77c953980e772f', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:08 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18640e3b76_c6080435d4868654@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:08', x'86873cf398b043cdb65535d7bd14efa7', 'jabanilson', NULL, 1, '2012-12-31 12:34:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:08', `updated_at` = '2012-12-31 12:34:08', `subdomain` = 'account86873cf3-98b0-43cd-b655-35d7bd14efa7' WHERE `accounts`.`id` = x'86873cf398b043cdb65535d7bd14efa7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'86873cf398b043cdb65535d7bd14efa7', x'feae82902c4b42988fb4ef7bc103ab32', x'5d626be0d3cf4f8380b71aa757854868') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'feae82902c4b42988fb4ef7bc103ab32') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'feae82902c4b42988fb4ef7bc103ab32' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'feae82902c4b42988fb4ef7bc103ab32', x'b09ac6f98eca4c67974d7b5de21203b7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'feae82902c4b42988fb4ef7bc103ab32') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'feae82902c4b42988fb4ef7bc103ab32' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'feae82902c4b42988fb4ef7bc103ab32', x'1ab7d6e224fb4b4f80197339a2d47a5b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5d626be0d3cf4f8380b71aa757854868' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5d626be0d3cf4f8380b71aa757854868' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5d626be0d3cf4f8380b71aa757854868' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:08', 'targetdestroy@teste.teste', '$2a$04$HXQfwnBPODVoBJhCduGoBefSWWtVIZ/oYJXyAG1lr/LjYH29UIbsC', NULL, x'bb5424cd59584ee79bf106a3433a2939', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bb5424cd59584ee79bf106a3433a2939' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:08', 'User', x'2c29cb7087d144909cf5e1220397ce34', '2c891f4ff747d0c003f7c477c1dd582a', x'bb5424cd59584ee79bf106a3433a2939', 'User', '2012-12-31 12:34:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bb5424cd59584ee79bf106a3433a2939' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'49073ac7e16248a3bb10725856b2e709', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'account49073ac7-e162-48a3-bb10-725856b2e709' WHERE `accounts`.`id` = x'49073ac7e16248a3bb10725856b2e709' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'49073ac7e16248a3bb10725856b2e709' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'49073ac7e16248a3bb10725856b2e709', x'25741cfabc3c4b23bc04bd393bb915dd', x'bb5424cd59584ee79bf106a3433a2939') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'25741cfabc3c4b23bc04bd393bb915dd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25741cfabc3c4b23bc04bd393bb915dd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25741cfabc3c4b23bc04bd393bb915dd', x'44b8d773c8614003924c9f70cdfa86fb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'25741cfabc3c4b23bc04bd393bb915dd') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25741cfabc3c4b23bc04bd393bb915dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25741cfabc3c4b23bc04bd393bb915dd', x'9c41644553c6441983e1f9f2d2b79eb1', 'admin') Sent mail to targetdestroy@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e186411556b_c6080435d48687a2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'38b99e1a60b946aa87a0c45c4e02c65e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'38b99e1a60b946aa87a0c45c4e02c65e', x'beda259ed715464c8b34e411d9a5c95a', x'bb5424cd59584ee79bf106a3433a2939') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'beda259ed715464c8b34e411d9a5c95a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'beda259ed715464c8b34e411d9a5c95a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'beda259ed715464c8b34e411d9a5c95a', x'f4b29ead157c4ae297a14f4367ee2e68', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'beda259ed715464c8b34e411d9a5c95a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'beda259ed715464c8b34e411d9a5c95a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'beda259ed715464c8b34e411d9a5c95a', x'2ccd070cbc26464c8ceaea5cfa149fa0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'beda259ed715464c8b34e411d9a5c95a'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2ccd070cbc26464c8ceaea5cfa149fa0' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'beda259ed715464c8b34e411d9a5c95a' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f4b29ead157c4ae297a14f4367ee2e68'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'beda259ed715464c8b34e411d9a5c95a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'beda259ed715464c8b34e411d9a5c95a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'beda259ed715464c8b34e411d9a5c95a', x'018a05eb537341a892018b374f8ca1b0', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"38B99E1A60B946AA87A0C45C4E02C65E", "user_id"=>"BB5424CD59584EE79BF106A3433A2939"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5d626be0d3cf4f8380b71aa757854868' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'38b99e1a60b946aa87a0c45c4e02c65e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_38b99e1a-60b9-46aa-87a0-c45c4e02c65e_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5d626be0d3cf4f8380b71aa757854868' AND `account_users`.`account_id` = x'38b99e1a60b946aa87a0c45c4e02c65e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cfe3fe10138a4403bf664db845e3c42d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cfe3fe10138a4403bf664db845e3c42d' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'38b99e1a60b946aa87a0c45c4e02c65e' AND `account_users`.`user_id` = x'bb5424cd59584ee79bf106a3433a2939' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'38b99e1a60b946aa87a0c45c4e02c65e' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bb5424cd59584ee79bf106a3433a2939' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'beda259ed715464c8b34e411d9a5c95a' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 13ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'teste@teste.com', '$2a$04$FV1loshTbTqmVXWaWkCnP.073kmnMAAQrvWuHWQrOeJk7zYTim9G.', NULL, x'd835926439844e6fb4943f69b45f9e36', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd835926439844e6fb4943f69b45f9e36' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'11dbfcc120144bdcb715918855a0c88f', '97394557f852c22f8fe98a18badc07e2', x'd835926439844e6fb4943f69b45f9e36', 'User', '2012-12-31 12:34:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd835926439844e6fb4943f69b45f9e36' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'fe5bafe5b8c949349af9a1e7d8adbfbf', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'accountfe5bafe5-b8c9-4934-9af9-a1e7d8adbfbf' WHERE `accounts`.`id` = x'fe5bafe5b8c949349af9a1e7d8adbfbf' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fe5bafe5b8c949349af9a1e7d8adbfbf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fe5bafe5b8c949349af9a1e7d8adbfbf', x'41383b73ed2547e68f3570c8bbdc66eb', x'd835926439844e6fb4943f69b45f9e36') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'41383b73ed2547e68f3570c8bbdc66eb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41383b73ed2547e68f3570c8bbdc66eb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41383b73ed2547e68f3570c8bbdc66eb', x'fb77e0f0f5aa473ca66c8173d16551ce', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'41383b73ed2547e68f3570c8bbdc66eb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41383b73ed2547e68f3570c8bbdc66eb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41383b73ed2547e68f3570c8bbdc66eb', x'7c42f860748044f28f5dec8096fa38e7', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186412ad71_c6080435d48688fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'6400d9875cf4414b8609c61e33ecd0eb', 'jabanilson', NULL, 1, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'account6400d987-5cf4-414b-8609-c61e33ecd0eb' WHERE `accounts`.`id` = x'6400d9875cf4414b8609c61e33ecd0eb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6400d9875cf4414b8609c61e33ecd0eb', x'b3dfb92280bf44e29c7390c0e81a6caf', x'd835926439844e6fb4943f69b45f9e36') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b3dfb92280bf44e29c7390c0e81a6caf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3dfb92280bf44e29c7390c0e81a6caf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3dfb92280bf44e29c7390c0e81a6caf', x'8d9a7d5bc3ff4f139818c2e0c2e3a732', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b3dfb92280bf44e29c7390c0e81a6caf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3dfb92280bf44e29c7390c0e81a6caf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3dfb92280bf44e29c7390c0e81a6caf', x'c95f3ec36bf2412ca69838e8fa61b5bc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd835926439844e6fb4943f69b45f9e36' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd835926439844e6fb4943f69b45f9e36' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd835926439844e6fb4943f69b45f9e36' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'targetdestroy@teste.teste', '$2a$04$o63wK2KQw6ljrjNAoB3NK.bt1oNgtnb1XGwmLZeFC3Csu4o6SneMS', NULL, x'e6661b1c6a384f84b40fe3b61ea656fc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e6661b1c6a384f84b40fe3b61ea656fc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'67e19f8f0cce43d6963b97578e1ff76d', '7352d9b77424181b8269dbcff80d45c0', x'e6661b1c6a384f84b40fe3b61ea656fc', 'User', '2012-12-31 12:34:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e6661b1c6a384f84b40fe3b61ea656fc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'facd9d70571d49afbf86884813134a42', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'accountfacd9d70-571d-49af-bf86-884813134a42' WHERE `accounts`.`id` = x'facd9d70571d49afbf86884813134a42' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'facd9d70571d49afbf86884813134a42' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'facd9d70571d49afbf86884813134a42', x'5612da87b04d4916afb288651dabd8b1', x'e6661b1c6a384f84b40fe3b61ea656fc') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5612da87b04d4916afb288651dabd8b1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5612da87b04d4916afb288651dabd8b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5612da87b04d4916afb288651dabd8b1', x'9ccbe275bb03412584ee386a008985af', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5612da87b04d4916afb288651dabd8b1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5612da87b04d4916afb288651dabd8b1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5612da87b04d4916afb288651dabd8b1', x'90ccad764ab7473095ef3d33f2f96f5c', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e186413ab75_c6080435d48689e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fe5bafe5b8c949349af9a1e7d8adbfbf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fe5bafe5b8c949349af9a1e7d8adbfbf', x'7f37a6c242984741bc7efd876dff9a2c', x'e6661b1c6a384f84b40fe3b61ea656fc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7f37a6c242984741bc7efd876dff9a2c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f37a6c242984741bc7efd876dff9a2c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f37a6c242984741bc7efd876dff9a2c', x'0f7e46f173e74e84986d4fcbc555d731', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7f37a6c242984741bc7efd876dff9a2c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f37a6c242984741bc7efd876dff9a2c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f37a6c242984741bc7efd876dff9a2c', x'80807fa8fd4043c4801ad4c46a987fd8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fe5bafe5b8c949349af9a1e7d8adbfbf' AND `account_users`.`user_id` = x'd835926439844e6fb4943f69b45f9e36' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'41383b73ed2547e68f3570c8bbdc66eb'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7c42f860748044f28f5dec8096fa38e7' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41383b73ed2547e68f3570c8bbdc66eb' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'þ[¯å¸ÉI4šù¡çØ­¿¿' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fb77e0f0f5aa473ca66c8173d16551ce'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'41383b73ed2547e68f3570c8bbdc66eb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41383b73ed2547e68f3570c8bbdc66eb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41383b73ed2547e68f3570c8bbdc66eb', x'82afa0085bdc4926a976ced93358dec9', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"fe5bafe5-b8c9-4934-9af9-a1e7d8adbfbf", "user_id"=>"d8359264-3984-4e6f-b494-3f69b45f9e36"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd835926439844e6fb4943f69b45f9e36' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fe5bafe5b8c949349af9a1e7d8adbfbf' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_fe5bafe5-b8c9-4934-9af9-a1e7d8adbfbf_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd835926439844e6fb4943f69b45f9e36' AND `account_users`.`account_id` = x'fe5bafe5b8c949349af9a1e7d8adbfbf' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'41383b73ed2547e68f3570c8bbdc66eb' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'41383b73ed2547e68f3570c8bbdc66eb' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fe5bafe5b8c949349af9a1e7d8adbfbf' AND `account_users`.`user_id` = x'd835926439844e6fb4943f69b45f9e36' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fe5bafe5b8c949349af9a1e7d8adbfbf' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd835926439844e6fb4943f69b45f9e36' LIMIT 1 Completed 404 Not Found in 11ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'teste@teste.com', '$2a$04$x4ppP.IL5Ein7JUWq28jFeG8E8Nzx9Hf0jcJXFVji4XZEvRYTlOMW', NULL, x'230abc3d1a744b9dbc9c3026556a73c6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'230abc3d1a744b9dbc9c3026556a73c6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'e02a072844574afaa0c57a9f9a28f3cf', 'f03367af05c08e57cb90149d59112b19', x'230abc3d1a744b9dbc9c3026556a73c6', 'User', '2012-12-31 12:34:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'230abc3d1a744b9dbc9c3026556a73c6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'0ccfa080cf744026b23a1aae7935fde7', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'account0ccfa080-cf74-4026-b23a-1aae7935fde7' WHERE `accounts`.`id` = x'0ccfa080cf744026b23a1aae7935fde7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0ccfa080cf744026b23a1aae7935fde7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0ccfa080cf744026b23a1aae7935fde7', x'8f8555f010374f93a7f009e1ce19b4eb', x'230abc3d1a744b9dbc9c3026556a73c6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8f8555f010374f93a7f009e1ce19b4eb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f8555f010374f93a7f009e1ce19b4eb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f8555f010374f93a7f009e1ce19b4eb', x'9ec9c5d1fe114a0aba7f92250e055318', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8f8555f010374f93a7f009e1ce19b4eb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f8555f010374f93a7f009e1ce19b4eb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f8555f010374f93a7f009e1ce19b4eb', x'691bc7a2261740bd9dee9a4a7dad238d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186414fb06_c6080435d486902@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'a6295e8fa8d94936b81071eb54c896f0', 'jabanilson', NULL, 1, '2012-12-31 12:34:09')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'accounta6295e8f-a8d9-4936-b810-71eb54c896f0' WHERE `accounts`.`id` = x'a6295e8fa8d94936b81071eb54c896f0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a6295e8fa8d94936b81071eb54c896f0', x'5ca01a3d7a5041d1837de0183e70c86e', x'230abc3d1a744b9dbc9c3026556a73c6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5ca01a3d7a5041d1837de0183e70c86e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5ca01a3d7a5041d1837de0183e70c86e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5ca01a3d7a5041d1837de0183e70c86e', x'f77a50cd81764085a87cd256cec97a33', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5ca01a3d7a5041d1837de0183e70c86e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5ca01a3d7a5041d1837de0183e70c86e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5ca01a3d7a5041d1837de0183e70c86e', x'3c2dd174acad4e7a9d43bfd2025ac996', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'230abc3d1a744b9dbc9c3026556a73c6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'230abc3d1a744b9dbc9c3026556a73c6' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'230abc3d1a744b9dbc9c3026556a73c6' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'target@test.test', '$2a$04$xtg0uwPqoD2lT.Kk2enukeGaId6dCykUnuvSVxk7csNrmq97CxYnu', NULL, x'9e2ecbb4aca94fbc8465cd556256daad', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9e2ecbb4aca94fbc8465cd556256daad' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'662dba47891b4f9c84b2775075fb4dca', '9a8fe832d9f8a9f38e263d474831f005', x'9e2ecbb4aca94fbc8465cd556256daad', 'User', '2012-12-31 12:34:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9e2ecbb4aca94fbc8465cd556256daad' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'87e427ece3e3444182fe172a0972ce4e', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'account87e427ec-e3e3-4441-82fe-172a0972ce4e' WHERE `accounts`.`id` = x'87e427ece3e3444182fe172a0972ce4e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'87e427ece3e3444182fe172a0972ce4e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'87e427ece3e3444182fe172a0972ce4e', x'50f4054691e94993b25d4e99f2bfb102', x'9e2ecbb4aca94fbc8465cd556256daad') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'50f4054691e94993b25d4e99f2bfb102') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50f4054691e94993b25d4e99f2bfb102' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50f4054691e94993b25d4e99f2bfb102', x'75ce25c909e14d36b29233081da11ba1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'50f4054691e94993b25d4e99f2bfb102') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50f4054691e94993b25d4e99f2bfb102' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50f4054691e94993b25d4e99f2bfb102', x'c69d32694e48448786443d6c8e66a7ba', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e186417513f_c6080435d486918c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a6295e8fa8d94936b81071eb54c896f0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a6295e8fa8d94936b81071eb54c896f0', x'a5ea1b057a92457cb8d772a764f9b0f3', x'9e2ecbb4aca94fbc8465cd556256daad') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a5ea1b057a92457cb8d772a764f9b0f3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5ea1b057a92457cb8d772a764f9b0f3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5ea1b057a92457cb8d772a764f9b0f3', x'aa757b3f2963496b828e31cd1af7b62b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a5ea1b057a92457cb8d772a764f9b0f3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5ea1b057a92457cb8d772a764f9b0f3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5ea1b057a92457cb8d772a764f9b0f3', x'f0331106cc9443cb9a9b13af56b684f7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a5ea1b057a92457cb8d772a764f9b0f3'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5ea1b057a92457cb8d772a764f9b0f3' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¦)^¨ÙI6¸qëTÈ–ð' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'aa757b3f2963496b828e31cd1af7b62b' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f0331106cc9443cb9a9b13af56b684f7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'a5ea1b057a92457cb8d772a764f9b0f3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5ea1b057a92457cb8d772a764f9b0f3' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5ea1b057a92457cb8d772a764f9b0f3', x'7fba81ccb8104f7885d197647009344a', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:09', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: a5ea1b05-7a92-457c-b8d7-72a764f9b0f3\n', NULL, NULL, NULL, 0, 'account_user_a5ea1b05-7a92-457c-b8d7-72a764f9b0f3_destroy', '2012-12-31 12:34:09', '2012-12-31 12:34:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"9E2ECBB4ACA94FBC8465CD556256DAAD"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'230abc3d1a744b9dbc9c3026556a73c6' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31383932373331383932333731323733' LIMIT 1 Completed 404 Not Found in 4ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'teste@teste.com', '$2a$04$UcG.1.skVwhO/Pbaq2pwHuKY0mRzqEBM.edMFzeFtU6LW9NsC9uwS', NULL, x'359296f9d6704ed7a5b23d2bd6cdea68', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'359296f9d6704ed7a5b23d2bd6cdea68' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'02016bdf4fd74996964be8a09bb85c93', 'a9d5921b59922635877d37961c987cc9', x'359296f9d6704ed7a5b23d2bd6cdea68', 'User', '2012-12-31 12:34:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'359296f9d6704ed7a5b23d2bd6cdea68' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'5a0f9171f8a9432ea7e0d50ac19692c6', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'account5a0f9171-f8a9-432e-a7e0-d50ac19692c6' WHERE `accounts`.`id` = x'5a0f9171f8a9432ea7e0d50ac19692c6' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5a0f9171f8a9432ea7e0d50ac19692c6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5a0f9171f8a9432ea7e0d50ac19692c6', x'8c763ed169e44f2bbfc37b7c8695a5fd', x'359296f9d6704ed7a5b23d2bd6cdea68') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8c763ed169e44f2bbfc37b7c8695a5fd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c763ed169e44f2bbfc37b7c8695a5fd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8c763ed169e44f2bbfc37b7c8695a5fd', x'b98020d80a3b478d86440277073f3199', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8c763ed169e44f2bbfc37b7c8695a5fd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c763ed169e44f2bbfc37b7c8695a5fd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8c763ed169e44f2bbfc37b7c8695a5fd', x'40e3a077fd5841fd9d60f811e62822ca', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18641892d5_c6080435d4869279@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'b011a838fcec4f379ae00a1e47e4eef8', 'jabanilson', NULL, 1, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'accountb011a838-fcec-4f37-9ae0-0a1e47e4eef8' WHERE `accounts`.`id` = x'b011a838fcec4f379ae00a1e47e4eef8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b011a838fcec4f379ae00a1e47e4eef8', x'7f2a4baeeda345419850358efeb0b113', x'359296f9d6704ed7a5b23d2bd6cdea68') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7f2a4baeeda345419850358efeb0b113') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f2a4baeeda345419850358efeb0b113' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f2a4baeeda345419850358efeb0b113', x'f1d318698fe342a390543df179095f25', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7f2a4baeeda345419850358efeb0b113') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f2a4baeeda345419850358efeb0b113' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f2a4baeeda345419850358efeb0b113', x'693f725fecf94351a2c1e0c47764dcad', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'359296f9d6704ed7a5b23d2bd6cdea68' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'359296f9d6704ed7a5b23d2bd6cdea68' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'359296f9d6704ed7a5b23d2bd6cdea68' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'target@test.test', '$2a$04$vz3sMWYeWkEoX0/JyxWdRus1DsGtWJqKtLNK9wUctnIjfaMGq3/Tu', NULL, x'4dba208ae88141e6b5f35042b0693593', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4dba208ae88141e6b5f35042b0693593' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'481647305f184933b4fc7c6c03a0f398', '1c1a3571b4da266693c5a4f2ba40f2e5', x'4dba208ae88141e6b5f35042b0693593', 'User', '2012-12-31 12:34:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4dba208ae88141e6b5f35042b0693593' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'acc8aafc213d4fe0af7225cb135d201a', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'accountacc8aafc-213d-4fe0-af72-25cb135d201a' WHERE `accounts`.`id` = x'acc8aafc213d4fe0af7225cb135d201a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'acc8aafc213d4fe0af7225cb135d201a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'acc8aafc213d4fe0af7225cb135d201a', x'f39db692174d4aa19bb86c3d62fe4b58', x'4dba208ae88141e6b5f35042b0693593') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f39db692174d4aa19bb86c3d62fe4b58') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f39db692174d4aa19bb86c3d62fe4b58' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f39db692174d4aa19bb86c3d62fe4b58', x'62a5dd8cad5340bd9ff9e962acfc2b14', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f39db692174d4aa19bb86c3d62fe4b58') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f39db692174d4aa19bb86c3d62fe4b58' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f39db692174d4aa19bb86c3d62fe4b58', x'c47bd611635043049db896a7e7eafaff', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e18641992d4_c6080435d4869364@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b011a838fcec4f379ae00a1e47e4eef8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b011a838fcec4f379ae00a1e47e4eef8', x'499fe73454fa4cda9cf3e12adcb81cfa', x'4dba208ae88141e6b5f35042b0693593') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'499fe73454fa4cda9cf3e12adcb81cfa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'499fe73454fa4cda9cf3e12adcb81cfa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'499fe73454fa4cda9cf3e12adcb81cfa', x'016ec8a70d7448878bd46c2f3a072021', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'499fe73454fa4cda9cf3e12adcb81cfa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'499fe73454fa4cda9cf3e12adcb81cfa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'499fe73454fa4cda9cf3e12adcb81cfa', x'613298b0e9e54a578a761fa9ad6675cf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'499fe73454fa4cda9cf3e12adcb81cfa'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'499fe73454fa4cda9cf3e12adcb81cfa' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'016ec8a70d7448878bd46c2f3a072021' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'613298b0e9e54a578a761fa9ad6675cf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'499fe73454fa4cda9cf3e12adcb81cfa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'499fe73454fa4cda9cf3e12adcb81cfa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'499fe73454fa4cda9cf3e12adcb81cfa', x'ccc0b5635998451e9420b055a199c7be', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:09', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 499fe734-54fa-4cda-9cf3-e12adcb81cfa\n', NULL, NULL, NULL, 0, 'account_user_499fe734-54fa-4cda-9cf3-e12adcb81cfa_destroy', '2012-12-31 12:34:09', '2012-12-31 12:34:09')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"B011A838FCEC4F379AE00A1E47E4EEF8", "user_id"=>"18237198237192837"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'359296f9d6704ed7a5b23d2bd6cdea68' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b011a838fcec4f379ae00a1e47e4eef8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b011a838-fcec-4f37-9ae0-0a1e47e4eef8_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'359296f9d6704ed7a5b23d2bd6cdea68' AND `account_users`.`account_id` = x'b011a838fcec4f379ae00a1e47e4eef8' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7f2a4baeeda345419850358efeb0b113' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7f2a4baeeda345419850358efeb0b113' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b011a838fcec4f379ae00a1e47e4eef8' AND `account_users`.`user_id` = x'38323337313938323337313932383337' LIMIT 1 Completed 404 Not Found in 9ms  (1.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'teste@teste.com', '$2a$04$Oxdtn6Qx0yVTaRIZMgeDUe5dHemUYDb9r/powXu86Bwn5eY8yieWe', NULL, x'7c025cbf37934346933899e36aff1363', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7c025cbf37934346933899e36aff1363' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'6824871ef0864a0aa7712afc0ff87f25', 'accd757d13d2cb52c2a3e5572e4ad8a8', x'7c025cbf37934346933899e36aff1363', 'User', '2012-12-31 12:34:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7c025cbf37934346933899e36aff1363' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'cf6f60849bcc4761989b5bc814eef0a6', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'accountcf6f6084-9bcc-4761-989b-5bc814eef0a6' WHERE `accounts`.`id` = x'cf6f60849bcc4761989b5bc814eef0a6' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cf6f60849bcc4761989b5bc814eef0a6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cf6f60849bcc4761989b5bc814eef0a6', x'165679d18b4d4714b5ec2f15cd461b35', x'7c025cbf37934346933899e36aff1363') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'165679d18b4d4714b5ec2f15cd461b35') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'165679d18b4d4714b5ec2f15cd461b35' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'165679d18b4d4714b5ec2f15cd461b35', x'6aa7434a0d6e428f89cea1362f3ab63f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'165679d18b4d4714b5ec2f15cd461b35') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'165679d18b4d4714b5ec2f15cd461b35' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'165679d18b4d4714b5ec2f15cd461b35', x'3b1cc9b2f6514d6685eee6113365d759', 'admin') Sent mail to teste@teste.com (90ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18641aedb5_c6080435d486943b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'0cbd58b8db274953a6d5e13d1cd5e817', 'jabanilson', NULL, 1, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'account0cbd58b8-db27-4953-a6d5-e13d1cd5e817' WHERE `accounts`.`id` = x'0cbd58b8db274953a6d5e13d1cd5e817'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0cbd58b8db274953a6d5e13d1cd5e817', x'9fe00464448340f4a938a00a1edfb1c4', x'7c025cbf37934346933899e36aff1363') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9fe00464448340f4a938a00a1edfb1c4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9fe00464448340f4a938a00a1edfb1c4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9fe00464448340f4a938a00a1edfb1c4', x'55ad02076ce444a5932b519bd310da70', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9fe00464448340f4a938a00a1edfb1c4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9fe00464448340f4a938a00a1edfb1c4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9fe00464448340f4a938a00a1edfb1c4', x'd72521abb8f14cbf978f1ee8953e0068', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7c025cbf37934346933899e36aff1363' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7c025cbf37934346933899e36aff1363' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7c025cbf37934346933899e36aff1363' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'target@test.test', '$2a$04$GS8lME6IiTiJwWckRlTtNO2XiLnc.99owan93/ZNYLlCWZA6xcGsq', NULL, x'8f8d3a1a1e304419adf143dc4abc4b8f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8f8d3a1a1e304419adf143dc4abc4b8f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'db1720b90f184a38a2f7caf5baf1cdff', '8a46c11cc42217148bf14a1fa58fae9c', x'8f8d3a1a1e304419adf143dc4abc4b8f', 'User', '2012-12-31 12:34:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8f8d3a1a1e304419adf143dc4abc4b8f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'ff07fc2724db4214b2f69d892109b28a', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'accountff07fc27-24db-4214-b2f6-9d892109b28a' WHERE `accounts`.`id` = x'ff07fc2724db4214b2f69d892109b28a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ff07fc2724db4214b2f69d892109b28a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ff07fc2724db4214b2f69d892109b28a', x'1a483911fd634161ae3976b3492a11a5', x'8f8d3a1a1e304419adf143dc4abc4b8f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1a483911fd634161ae3976b3492a11a5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a483911fd634161ae3976b3492a11a5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a483911fd634161ae3976b3492a11a5', x'6a56c6e7ca8a484faea46ba704cb7703', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1a483911fd634161ae3976b3492a11a5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a483911fd634161ae3976b3492a11a5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a483911fd634161ae3976b3492a11a5', x'8922da2f7a00480a89ac71cce5c19b49', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e18641d31a8_c6080435d48695a2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cf6f60849bcc4761989b5bc814eef0a6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cf6f60849bcc4761989b5bc814eef0a6', x'a3de1e9509ea4cb98d4977efd2293503', x'8f8d3a1a1e304419adf143dc4abc4b8f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a3de1e9509ea4cb98d4977efd2293503') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3de1e9509ea4cb98d4977efd2293503' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a3de1e9509ea4cb98d4977efd2293503', x'c80e59f995344c36a60b47e5c4e0e563', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a3de1e9509ea4cb98d4977efd2293503') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3de1e9509ea4cb98d4977efd2293503' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a3de1e9509ea4cb98d4977efd2293503', x'40337dbcb37749d58a4ae8edd4205049', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a3de1e9509ea4cb98d4977efd2293503'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'40337dbcb37749d58a4ae8edd4205049' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3de1e9509ea4cb98d4977efd2293503' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Ïo`„›ÌGa˜›[Èîð¦' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c80e59f995344c36a60b47e5c4e0e563'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'a3de1e9509ea4cb98d4977efd2293503') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3de1e9509ea4cb98d4977efd2293503' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a3de1e9509ea4cb98d4977efd2293503', x'd118ccdcafb640d0879a744a470d7455', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:09', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: a3de1e95-09ea-4cb9-8d49-77efd2293503\n', NULL, NULL, NULL, 0, 'account_user_a3de1e95-09ea-4cb9-8d49-77efd2293503_destroy', '2012-12-31 12:34:09', '2012-12-31 12:34:09')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7c025cbf37934346933899e36aff1363' AND `account_users`.`account_id` = x'cf6f60849bcc4761989b5bc814eef0a6' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'165679d18b4d4714b5ec2f15cd461b35'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'3b1cc9b2f6514d6685eee6113365d759' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'165679d18b4d4714b5ec2f15cd461b35' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Ïo`„›ÌGa˜›[Èîð¦' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'165679d18b4d4714b5ec2f15cd461b35') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'165679d18b4d4714b5ec2f15cd461b35' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"CF6F60849BCC4761989B5BC814EEF0A6", "user_id"=>"8F8D3A1A1E304419ADF143DC4ABC4B8F"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7c025cbf37934346933899e36aff1363' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cf6f60849bcc4761989b5bc814eef0a6' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_cf6f6084-9bcc-4761-989b-5bc814eef0a6_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7c025cbf37934346933899e36aff1363' AND `account_users`.`account_id` = x'cf6f60849bcc4761989b5bc814eef0a6' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'165679d18b4d4714b5ec2f15cd461b35' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'165679d18b4d4714b5ec2f15cd461b35' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'cf6f60849bcc4761989b5bc814eef0a6' AND `account_users`.`user_id` = x'8f8d3a1a1e304419adf143dc4abc4b8f' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cf6f60849bcc4761989b5bc814eef0a6' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_a3de1e95-09ea-4cb9-8d49-77efd2293503_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_a3de1e95-09ea-4cb9-8d49-77efd2293503_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/CF6F60849BCC4761989B5BC814EEF0A6/users Completed 302 Found in 12ms (ActiveRecord: 2.1ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_a3de1e95-09ea-4cb9-8d49-77efd2293503_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'teste@teste.com', '$2a$04$XYtcQG/3sTIMD6RZfzI90etlJ/31th39K5BzLI4P9OIjaBFZWYpM6', NULL, x'a3bf11fcb1464985a972ab1c3046b5be', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a3bf11fcb1464985a972ab1c3046b5be' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:09', 'User', x'60d67c085398464a9fd71c742c41bdf9', '7d88400a5b5ecbc8cf0cef03528e827c', x'a3bf11fcb1464985a972ab1c3046b5be', 'User', '2012-12-31 12:34:09') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a3bf11fcb1464985a972ab1c3046b5be' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'e443541c88c24749aa8fea3890f848e2', NULL, NULL, NULL, '2012-12-31 12:34:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'accounte443541c-88c2-4749-aa8f-ea3890f848e2' WHERE `accounts`.`id` = x'e443541c88c24749aa8fea3890f848e2' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e443541c88c24749aa8fea3890f848e2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e443541c88c24749aa8fea3890f848e2', x'e886573e2a8d44f5aa32466ab583abd3', x'a3bf11fcb1464985a972ab1c3046b5be') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e886573e2a8d44f5aa32466ab583abd3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e886573e2a8d44f5aa32466ab583abd3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e886573e2a8d44f5aa32466ab583abd3', x'ba4a9766d42c499cb6c6145b5d0b18de', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e886573e2a8d44f5aa32466ab583abd3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e886573e2a8d44f5aa32466ab583abd3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e886573e2a8d44f5aa32466ab583abd3', x'7dcac2ab02904254ac1d055013b885af', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:09 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18641eb980_c6080435d486963a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:09', x'5548eaf6844146968c798504d2850724', 'jabanilson', NULL, 1, '2012-12-31 12:34:09')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:09', `updated_at` = '2012-12-31 12:34:09', `subdomain` = 'account5548eaf6-8441-4696-8c79-8504d2850724' WHERE `accounts`.`id` = x'5548eaf6844146968c798504d2850724'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5548eaf6844146968c798504d2850724', x'dec17eeb4b344896b1cb2dc29b2a641b', x'a3bf11fcb1464985a972ab1c3046b5be') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dec17eeb4b344896b1cb2dc29b2a641b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dec17eeb4b344896b1cb2dc29b2a641b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dec17eeb4b344896b1cb2dc29b2a641b', x'20b83c00838746c794611b8988105a81', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dec17eeb4b344896b1cb2dc29b2a641b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dec17eeb4b344896b1cb2dc29b2a641b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dec17eeb4b344896b1cb2dc29b2a641b', x'007585f01f274c669bd5269739213dc4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a3bf11fcb1464985a972ab1c3046b5be' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a3bf11fcb1464985a972ab1c3046b5be' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a3bf11fcb1464985a972ab1c3046b5be' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:09', 'target@test.test', '$2a$04$i021JHCC/KkXjlcyew2ImO5D34L//N9U4kMEmLTxlrvoHOvy9YiIe', NULL, x'b914541bb0184390b37c109ae4139b67', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b914541bb0184390b37c109ae4139b67' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:10', 'User', x'fe952d2570934ee78e2e9ca3e1023486', 'b63d780d00cfbf8d94818ce8dce21214', x'b914541bb0184390b37c109ae4139b67', 'User', '2012-12-31 12:34:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b914541bb0184390b37c109ae4139b67' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'34cb2785f64c465ca67c569149f9176f', NULL, NULL, NULL, '2012-12-31 12:34:10')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'account34cb2785-f64c-465c-a67c-569149f9176f' WHERE `accounts`.`id` = x'34cb2785f64c465ca67c569149f9176f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'34cb2785f64c465ca67c569149f9176f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'34cb2785f64c465ca67c569149f9176f', x'7ad6b7f67dbd43d0802f668d51b25bc3', x'b914541bb0184390b37c109ae4139b67') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7ad6b7f67dbd43d0802f668d51b25bc3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7ad6b7f67dbd43d0802f668d51b25bc3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7ad6b7f67dbd43d0802f668d51b25bc3', x'01e10872f0f54bd5b6e0af345abc5912', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7ad6b7f67dbd43d0802f668d51b25bc3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7ad6b7f67dbd43d0802f668d51b25bc3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7ad6b7f67dbd43d0802f668d51b25bc3', x'c48e7b71366745d089b8636a1371772a', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e1864279cf_c6080435d486972e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5548eaf6844146968c798504d2850724' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5548eaf6844146968c798504d2850724', x'9ad9b027cd254689adfd2a3f6dd891ec', x'b914541bb0184390b37c109ae4139b67') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9ad9b027cd254689adfd2a3f6dd891ec') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9ad9b027cd254689adfd2a3f6dd891ec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9ad9b027cd254689adfd2a3f6dd891ec', x'baa61e3643ad4b0fb52fa63b4b969748', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9ad9b027cd254689adfd2a3f6dd891ec') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9ad9b027cd254689adfd2a3f6dd891ec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9ad9b027cd254689adfd2a3f6dd891ec', x'eed3c51193db45fdb32c10537a5ab727', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9ad9b027cd254689adfd2a3f6dd891ec'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9ad9b027cd254689adfd2a3f6dd891ec' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'UHêö„AF–Œy…Ò…$' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'baa61e3643ad4b0fb52fa63b4b969748' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'eed3c51193db45fdb32c10537a5ab727'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'9ad9b027cd254689adfd2a3f6dd891ec') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9ad9b027cd254689adfd2a3f6dd891ec' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9ad9b027cd254689adfd2a3f6dd891ec', x'3e0fa774cbdc41e693e1c94b5024cfa4', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:10', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 9ad9b027-cd25-4689-adfd-2a3f6dd891ec\n', NULL, NULL, NULL, 0, 'account_user_9ad9b027-cd25-4689-adfd-2a3f6dd891ec_destroy', '2012-12-31 12:34:10', '2012-12-31 12:34:10')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a3bf11fcb1464985a972ab1c3046b5be' AND `account_users`.`account_id` = x'5548eaf6844146968c798504d2850724' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'dec17eeb4b344896b1cb2dc29b2a641b'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'007585f01f274c669bd5269739213dc4' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dec17eeb4b344896b1cb2dc29b2a641b' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'UHêö„AF–Œy…Ò…$' AND name = 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dec17eeb4b344896b1cb2dc29b2a641b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dec17eeb4b344896b1cb2dc29b2a641b' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"5548EAF6844146968C798504D2850724", "user_id"=>"B914541BB0184390B37C109AE4139B67"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a3bf11fcb1464985a972ab1c3046b5be' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5548eaf6844146968c798504d2850724' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5548eaf6-8441-4696-8c79-8504d2850724_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a3bf11fcb1464985a972ab1c3046b5be' AND `account_users`.`account_id` = x'5548eaf6844146968c798504d2850724' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'dec17eeb4b344896b1cb2dc29b2a641b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'dec17eeb4b344896b1cb2dc29b2a641b' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5548eaf6844146968c798504d2850724' AND `account_users`.`user_id` = x'b914541bb0184390b37c109ae4139b67' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5548eaf6844146968c798504d2850724' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_9ad9b027-cd25-4689-adfd-2a3f6dd891ec_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_9ad9b027-cd25-4689-adfd-2a3f6dd891ec_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/5548EAF6844146968C798504D2850724/users Completed 302 Found in 12ms (ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:10', 'teste@teste.com', '$2a$04$CWftYShUNZ7HtB9rB69JMuebNR5QBh6sJZVFgY6TgaGGYy4EG7pQ6', NULL, x'0282abc7e7d04f9fbaec402f3697c278', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0282abc7e7d04f9fbaec402f3697c278' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:10', 'User', x'00f1d5c273134024ab50a59fc180ef11', '26ced187f029726703dfd37bebb8f5aa', x'0282abc7e7d04f9fbaec402f3697c278', 'User', '2012-12-31 12:34:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0282abc7e7d04f9fbaec402f3697c278' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'ce97c795876c4f7e9b7cf40aadec2201', NULL, NULL, NULL, '2012-12-31 12:34:10')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'accountce97c795-876c-4f7e-9b7c-f40aadec2201' WHERE `accounts`.`id` = x'ce97c795876c4f7e9b7cf40aadec2201' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ce97c795876c4f7e9b7cf40aadec2201' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ce97c795876c4f7e9b7cf40aadec2201', x'f9044b631edc472a996d48a484f478d5', x'0282abc7e7d04f9fbaec402f3697c278') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f9044b631edc472a996d48a484f478d5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f9044b631edc472a996d48a484f478d5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f9044b631edc472a996d48a484f478d5', x'6da1e50457e94203834d6686cdfaedd0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f9044b631edc472a996d48a484f478d5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f9044b631edc472a996d48a484f478d5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f9044b631edc472a996d48a484f478d5', x'f4f9fa7ebbee401bbff83e73ee5ef837', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864235d73_c6080435d486985c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'8e5d30e58c904b3db6a3d640b01ab2e9', 'jabanilson', NULL, 1, '2012-12-31 12:34:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'account8e5d30e5-8c90-4b3d-b6a3-d640b01ab2e9' WHERE `accounts`.`id` = x'8e5d30e58c904b3db6a3d640b01ab2e9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8e5d30e58c904b3db6a3d640b01ab2e9', x'962094a092e24ae2bce3951f445565e4', x'0282abc7e7d04f9fbaec402f3697c278') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'962094a092e24ae2bce3951f445565e4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'962094a092e24ae2bce3951f445565e4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'962094a092e24ae2bce3951f445565e4', x'6cf196022e9543c08849b95b59bfdf11', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'962094a092e24ae2bce3951f445565e4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'962094a092e24ae2bce3951f445565e4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'962094a092e24ae2bce3951f445565e4', x'c77714e39fb141749ff74a0001467756', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0282abc7e7d04f9fbaec402f3697c278' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0282abc7e7d04f9fbaec402f3697c278' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0282abc7e7d04f9fbaec402f3697c278' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:10', 'target@test.test', '$2a$04$juzL6YijeIlEIIlRWPauSeD0KHhH1t3MQfDaNfypIntA5nL2DQoAu', NULL, x'4c06beef5df7440db23b1f9ca1d61185', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4c06beef5df7440db23b1f9ca1d61185' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:10', 'User', x'b2375d4254d941b28c566b30c880799f', '6fab595b3f31061b2529e7198246cfca', x'4c06beef5df7440db23b1f9ca1d61185', 'User', '2012-12-31 12:34:10') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4c06beef5df7440db23b1f9ca1d61185' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'e15cf714dace4556a1996b7d58752681', NULL, NULL, NULL, '2012-12-31 12:34:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'accounte15cf714-dace-4556-a199-6b7d58752681' WHERE `accounts`.`id` = x'e15cf714dace4556a1996b7d58752681' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e15cf714dace4556a1996b7d58752681' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e15cf714dace4556a1996b7d58752681', x'9360443f071f45a1853c64b87073343a', x'4c06beef5df7440db23b1f9ca1d61185') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9360443f071f45a1853c64b87073343a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9360443f071f45a1853c64b87073343a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9360443f071f45a1853c64b87073343a', x'304e4c0f121b4e619781fd6af433683c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9360443f071f45a1853c64b87073343a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9360443f071f45a1853c64b87073343a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9360443f071f45a1853c64b87073343a', x'a05637e99e7847579ca6263f06aa6476', 'admin') Sent mail to target@test.test (6ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e18642477c6_c6080435d48699d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8e5d30e58c904b3db6a3d640b01ab2e9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8e5d30e58c904b3db6a3d640b01ab2e9', x'3a5c45a1bdbb40da84edea472b45fe7e', x'4c06beef5df7440db23b1f9ca1d61185') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3a5c45a1bdbb40da84edea472b45fe7e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a5c45a1bdbb40da84edea472b45fe7e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a5c45a1bdbb40da84edea472b45fe7e', x'6ef857e4af2646aeb6ff4272c2f566f1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3a5c45a1bdbb40da84edea472b45fe7e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a5c45a1bdbb40da84edea472b45fe7e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a5c45a1bdbb40da84edea472b45fe7e', x'b7ba261f199b4c56a950e3dc09ee5f22', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3a5c45a1bdbb40da84edea472b45fe7e'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a5c45a1bdbb40da84edea472b45fe7e' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'6ef857e4af2646aeb6ff4272c2f566f1' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b7ba261f199b4c56a950e3dc09ee5f22'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'3a5c45a1bdbb40da84edea472b45fe7e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a5c45a1bdbb40da84edea472b45fe7e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a5c45a1bdbb40da84edea472b45fe7e', x'c136496d44e94d9c9eecdcbf8209d173', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:10', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 3a5c45a1-bdbb-40da-84ed-ea472b45fe7e\n', NULL, NULL, NULL, 0, 'account_user_3a5c45a1-bdbb-40da-84ed-ea472b45fe7e_destroy', '2012-12-31 12:34:10', '2012-12-31 12:34:10')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:10', 'notowner@account.test', '$2a$04$hHIf4.CGdaAVTTwEvWr0EeGAN89KEHxYzhrHpSQXjmd9rx4GwcMv6', NULL, x'1202d0803b944de985961705c511d96f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1202d0803b944de985961705c511d96f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:10', 'User', x'3b068f51c57c43e39d14eb453a0b56f4', 'f3acde83422b76fe60707c0e641318f5', x'1202d0803b944de985961705c511d96f', 'User', '2012-12-31 12:34:10') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1202d0803b944de985961705c511d96f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'd029048aa9d34692b8287a3eaa54e79d', NULL, NULL, NULL, '2012-12-31 12:34:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'accountd029048a-a9d3-4692-b828-7a3eaa54e79d' WHERE `accounts`.`id` = x'd029048aa9d34692b8287a3eaa54e79d' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd029048aa9d34692b8287a3eaa54e79d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd029048aa9d34692b8287a3eaa54e79d', x'a367053b4cd94af69648ebcfd8c08883', x'1202d0803b944de985961705c511d96f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a367053b4cd94af69648ebcfd8c08883') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a367053b4cd94af69648ebcfd8c08883' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a367053b4cd94af69648ebcfd8c08883', x'36ecc680870441b7927254fb6e62c41d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a367053b4cd94af69648ebcfd8c08883') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a367053b4cd94af69648ebcfd8c08883' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a367053b4cd94af69648ebcfd8c08883', x'254be2fc7b2b44ac8e7a779ec8c08846', 'admin') Sent mail to notowner@account.test (7ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e18642594e8_c6080435d48700f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'32ec8ab781dd476987941e7f7df7d557', 'jabanilson', NULL, 1, '2012-12-31 12:34:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'account32ec8ab7-81dd-4769-8794-1e7f7df7d557' WHERE `accounts`.`id` = x'32ec8ab781dd476987941e7f7df7d557'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'32ec8ab781dd476987941e7f7df7d557', x'c6719a250e164648b9a5e114bf966eb9', x'1202d0803b944de985961705c511d96f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c6719a250e164648b9a5e114bf966eb9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c6719a250e164648b9a5e114bf966eb9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c6719a250e164648b9a5e114bf966eb9', x'083954e9b68944b0a43002370c3739eb', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c6719a250e164648b9a5e114bf966eb9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c6719a250e164648b9a5e114bf966eb9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c6719a250e164648b9a5e114bf966eb9', x'f278157428814574ab111dfde69dc90f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8e5d30e58c904b3db6a3d640b01ab2e9' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'8e5d30e58c904b3db6a3d640b01ab2e9' WHERE `account_users`.`id` = x'c6719a250e164648b9a5e114bf966eb9'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0282abc7e7d04f9fbaec402f3697c278' AND `account_users`.`account_id` = x'8e5d30e58c904b3db6a3d640b01ab2e9' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'962094a092e24ae2bce3951f445565e4'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'962094a092e24ae2bce3951f445565e4' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'6cf196022e9543c08849b95b59bfdf11' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c77714e39fb141749ff74a0001467756'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'962094a092e24ae2bce3951f445565e4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'962094a092e24ae2bce3951f445565e4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'962094a092e24ae2bce3951f445565e4', x'd15a6a8cdbb04de0ae9203fc11ba93fa', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"8E5D30E58C904B3DB6A3D640B01AB2E9", "user_id"=>"4C06BEEF5DF7440DB23B1F9CA1D61185"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0282abc7e7d04f9fbaec402f3697c278' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8e5d30e58c904b3db6a3d640b01ab2e9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8e5d30e5-8c90-4b3d-b6a3-d640b01ab2e9_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0282abc7e7d04f9fbaec402f3697c278' AND `account_users`.`account_id` = x'8e5d30e58c904b3db6a3d640b01ab2e9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'962094a092e24ae2bce3951f445565e4' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'962094a092e24ae2bce3951f445565e4' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 19ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:10', 'teste@teste.com', '$2a$04$GX4Sm1xyCbi.kRHBk7nq0Oc01X6iACj.ckonD3M4xZ7Gnc1WFAjn.', NULL, x'f63eb8f1eb704d24869c441ff473b00a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f63eb8f1eb704d24869c441ff473b00a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:10', 'User', x'3f3d12afeb0f41aa81f37a49eb029935', '834fd6ba4031e2d9c93ecd382285a57c', x'f63eb8f1eb704d24869c441ff473b00a', 'User', '2012-12-31 12:34:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f63eb8f1eb704d24869c441ff473b00a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'3899b332bd7841f1949c5a4ed932c2df', NULL, NULL, NULL, '2012-12-31 12:34:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'account3899b332-bd78-41f1-949c-5a4ed932c2df' WHERE `accounts`.`id` = x'3899b332bd7841f1949c5a4ed932c2df' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3899b332bd7841f1949c5a4ed932c2df' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3899b332bd7841f1949c5a4ed932c2df', x'ff3c5033abac40f1b8fcd59a0c4d2233', x'f63eb8f1eb704d24869c441ff473b00a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ff3c5033abac40f1b8fcd59a0c4d2233') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff3c5033abac40f1b8fcd59a0c4d2233' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff3c5033abac40f1b8fcd59a0c4d2233', x'2a55626bd1114517964b845911c8ddb7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ff3c5033abac40f1b8fcd59a0c4d2233') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff3c5033abac40f1b8fcd59a0c4d2233' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff3c5033abac40f1b8fcd59a0c4d2233', x'95006832a4c64090bac11339d3ab6ce1', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186428ac1a_c6080435d4870186@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'4b7cd049844e4709b1279e520652c759', 'jabanilson', NULL, 1, '2012-12-31 12:34:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'account4b7cd049-844e-4709-b127-9e520652c759' WHERE `accounts`.`id` = x'4b7cd049844e4709b1279e520652c759'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4b7cd049844e4709b1279e520652c759', x'a33756bf8e4f4000bc6755a94df5888e', x'f63eb8f1eb704d24869c441ff473b00a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a33756bf8e4f4000bc6755a94df5888e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a33756bf8e4f4000bc6755a94df5888e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a33756bf8e4f4000bc6755a94df5888e', x'3f62b120f90c45b18916594fd2cf14e0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a33756bf8e4f4000bc6755a94df5888e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a33756bf8e4f4000bc6755a94df5888e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a33756bf8e4f4000bc6755a94df5888e', x'0cfc048786454566b1447953c7c95fa5', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f63eb8f1eb704d24869c441ff473b00a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f63eb8f1eb704d24869c441ff473b00a' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'1ee2de9ff86e4525a7f29414d301818b', 'jabanilson', NULL, 1, '2012-12-31 12:34:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'account1ee2de9f-f86e-4525-a7f2-9414d301818b' WHERE `accounts`.`id` = x'1ee2de9ff86e4525a7f29414d301818b'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"1ee2de9f-f86e-4525-a7f2-9414d301818b"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f63eb8f1eb704d24869c441ff473b00a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f63eb8f1eb704d24869c441ff473b00a' AND `account_users`.`account_id` = x'1ee2de9ff86e4525a7f29414d301818b' LIMIT 1 Completed 404 Not Found in 4ms  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:10', 'teste@teste.com', '$2a$04$8em5n/kG8FeJjHtAHOwKt.GDQUHqrEPFW4RAxeGihRXIdU72kiDXa', NULL, x'8ae2ca06fa67489fbcd88d2dc39cce3f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8ae2ca06fa67489fbcd88d2dc39cce3f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:10', 'User', x'1ee29c5f49d848f5bc78302572ed41d1', '47004b3571e64757d7cb2c74678526c2', x'8ae2ca06fa67489fbcd88d2dc39cce3f', 'User', '2012-12-31 12:34:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8ae2ca06fa67489fbcd88d2dc39cce3f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'e9015e512cca4750b651396d94d88c8d', NULL, NULL, NULL, '2012-12-31 12:34:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'accounte9015e51-2cca-4750-b651-396d94d88c8d' WHERE `accounts`.`id` = x'e9015e512cca4750b651396d94d88c8d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9015e512cca4750b651396d94d88c8d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e9015e512cca4750b651396d94d88c8d', x'5dc50cabf9d64b358cda11b8ad17a63c', x'8ae2ca06fa67489fbcd88d2dc39cce3f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5dc50cabf9d64b358cda11b8ad17a63c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5dc50cabf9d64b358cda11b8ad17a63c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5dc50cabf9d64b358cda11b8ad17a63c', x'cfa2af6cbcfb430ba83e84da21053c1d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5dc50cabf9d64b358cda11b8ad17a63c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5dc50cabf9d64b358cda11b8ad17a63c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5dc50cabf9d64b358cda11b8ad17a63c', x'30d3ac8082724d2888beb7f04da3303e', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186429e232_c6080435d4870285@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'f877d7691b2b42aead3545616dfdf2df', 'jabanilson', NULL, 1, '2012-12-31 12:34:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'accountf877d769-1b2b-42ae-ad35-45616dfdf2df' WHERE `accounts`.`id` = x'f877d7691b2b42aead3545616dfdf2df'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f877d7691b2b42aead3545616dfdf2df', x'bd3ff2968c9e490b88a54c96624a48ed', x'8ae2ca06fa67489fbcd88d2dc39cce3f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bd3ff2968c9e490b88a54c96624a48ed') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd3ff2968c9e490b88a54c96624a48ed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd3ff2968c9e490b88a54c96624a48ed', x'7bc939b7e0d246fd8c420f020b8d7921', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bd3ff2968c9e490b88a54c96624a48ed') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd3ff2968c9e490b88a54c96624a48ed' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd3ff2968c9e490b88a54c96624a48ed', x'991f8ac125d148189c85977bf6b05012', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ae2ca06fa67489fbcd88d2dc39cce3f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ae2ca06fa67489fbcd88d2dc39cce3f' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ae2ca06fa67489fbcd88d2dc39cce3f' LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"E9015E512CCA4750B651396D94D88C8D"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8ae2ca06fa67489fbcd88d2dc39cce3f' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8ae2ca06fa67489fbcd88d2dc39cce3f' AND `account_users`.`account_id` = x'e9015e512cca4750b651396d94d88c8d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5dc50cabf9d64b358cda11b8ad17a63c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5dc50cabf9d64b358cda11b8ad17a63c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9015e512cca4750b651396d94d88c8d' LIMIT 1 Completed 200 OK in 21ms (Views: 3.8ms | ActiveRecord: 3.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:10', 'teste@teste.com', '$2a$04$8Jp1qGnpGHpkmlrfs/tiUuzSsY3m7SColLXMjt7RyS3sbm9ab8oI6', NULL, x'844491146c424393bc84e3b097eb67e9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'844491146c424393bc84e3b097eb67e9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:10', 'User', x'fad26c3bbb5b48fd8023028e1948d009', 'd1f29b7da17678350e88d15fdfe7e22f', x'844491146c424393bc84e3b097eb67e9', 'User', '2012-12-31 12:34:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'844491146c424393bc84e3b097eb67e9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'76d0c5596dd141eb99d92c81c19fe461', NULL, NULL, NULL, '2012-12-31 12:34:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'account76d0c559-6dd1-41eb-99d9-2c81c19fe461' WHERE `accounts`.`id` = x'76d0c5596dd141eb99d92c81c19fe461' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'76d0c5596dd141eb99d92c81c19fe461' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'76d0c5596dd141eb99d92c81c19fe461', x'2591100e1d8f4c65944d5930fe904055', x'844491146c424393bc84e3b097eb67e9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2591100e1d8f4c65944d5930fe904055') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2591100e1d8f4c65944d5930fe904055' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2591100e1d8f4c65944d5930fe904055', x'532670b460c549fca15b6b32e3a3020e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2591100e1d8f4c65944d5930fe904055') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2591100e1d8f4c65944d5930fe904055' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2591100e1d8f4c65944d5930fe904055', x'd27ab7c2ac944f88bc66fb8b1f77636d', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18642b5a48_c6080435d487033f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'3e83ae3b8c154645b29e41921c047e88', 'jabanilson', NULL, 1, '2012-12-31 12:34:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'account3e83ae3b-8c15-4645-b29e-41921c047e88' WHERE `accounts`.`id` = x'3e83ae3b8c154645b29e41921c047e88'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3e83ae3b8c154645b29e41921c047e88', x'd1f91658087747928dc15cb06fdc5538', x'844491146c424393bc84e3b097eb67e9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd1f91658087747928dc15cb06fdc5538') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd1f91658087747928dc15cb06fdc5538' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd1f91658087747928dc15cb06fdc5538', x'6d08178d18ee4ca0a5ac291270f3acaf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd1f91658087747928dc15cb06fdc5538') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd1f91658087747928dc15cb06fdc5538' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd1f91658087747928dc15cb06fdc5538', x'e67e1a9f832f4e61ab36fa341b08aac3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'844491146c424393bc84e3b097eb67e9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'844491146c424393bc84e3b097eb67e9' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'844491146c424393bc84e3b097eb67e9' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"76D0C5596DD141EB99D92C81C19FE461"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'844491146c424393bc84e3b097eb67e9' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'844491146c424393bc84e3b097eb67e9' AND `account_users`.`account_id` = x'76d0c5596dd141eb99d92c81c19fe461' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2591100e1d8f4c65944d5930fe904055' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2591100e1d8f4c65944d5930fe904055' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'76d0c5596dd141eb99d92c81c19fe461' AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'76d0c5596dd141eb99d92c81c19fe461', 'create@controller.teste', x'790fe1d0c64d4e7a8582540b81df5dfe', x'844491146c424393bc84e3b097eb67e9', NULL, '2012-12-31 12:34:10', 'Meq_hnt4xzTmq_YUJ0M4p2pnI8E') Sent mail to create@controller.teste (7ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e18642d8ace_c6080435d48704f7@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/790fe1d0-c64d-4e7a-8582-540b81df5dfeMeq_hnt4xzTmq_YUJ0M4p2pnI8E  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/76D0C5596DD141EB99D92C81C19FE461/users Completed 302 Found in 121ms (ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:10', 'teste@teste.com', '$2a$04$ELNcljCh3pNHT.OOTEty0.PCiZhn8XMDJg9k8bTM2uLAPV0OOjHmu', NULL, x'0783e2dad5874e12b22d77a66ec6e8c4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0783e2dad5874e12b22d77a66ec6e8c4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:10', 'User', x'9ef005ea2c664b638b4f065e499f92ae', 'c1cbe7161df07b24625872fa433066c9', x'0783e2dad5874e12b22d77a66ec6e8c4', 'User', '2012-12-31 12:34:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0783e2dad5874e12b22d77a66ec6e8c4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'b3b5b19fca7a4de587caa31a1f4bb8b4', NULL, NULL, NULL, '2012-12-31 12:34:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'accountb3b5b19f-ca7a-4de5-87ca-a31a1f4bb8b4' WHERE `accounts`.`id` = x'b3b5b19fca7a4de587caa31a1f4bb8b4' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b3b5b19fca7a4de587caa31a1f4bb8b4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b3b5b19fca7a4de587caa31a1f4bb8b4', x'de05de0dc9e3407ebb03841405ac9a10', x'0783e2dad5874e12b22d77a66ec6e8c4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'de05de0dc9e3407ebb03841405ac9a10') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de05de0dc9e3407ebb03841405ac9a10' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de05de0dc9e3407ebb03841405ac9a10', x'a8ca19c04692404e98b03ef5898b698e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'de05de0dc9e3407ebb03841405ac9a10') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de05de0dc9e3407ebb03841405ac9a10' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de05de0dc9e3407ebb03841405ac9a10', x'8a700b62b30d4bdc897a0b3319442cde', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18642e5648_c6080435d4870564@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:10', x'f778fe7c51384894bcf76f01925b229e', 'jabanilson', NULL, 1, '2012-12-31 12:34:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:10', `updated_at` = '2012-12-31 12:34:10', `subdomain` = 'accountf778fe7c-5138-4894-bcf7-6f01925b229e' WHERE `accounts`.`id` = x'f778fe7c51384894bcf76f01925b229e'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f778fe7c51384894bcf76f01925b229e', x'375422cd85c94683a48246239f7f410c', x'0783e2dad5874e12b22d77a66ec6e8c4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'375422cd85c94683a48246239f7f410c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'375422cd85c94683a48246239f7f410c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'375422cd85c94683a48246239f7f410c', x'c227c9cd1dda4cf6895f0869b1429903', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'375422cd85c94683a48246239f7f410c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'375422cd85c94683a48246239f7f410c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'375422cd85c94683a48246239f7f410c', x'38d234508d734d33a72dc4d2b2095bcc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0783e2dad5874e12b22d77a66ec6e8c4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0783e2dad5874e12b22d77a66ec6e8c4' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0783e2dad5874e12b22d77a66ec6e8c4' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"F778FE7C51384894BCF76F01925B229E"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0783e2dad5874e12b22d77a66ec6e8c4' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0783e2dad5874e12b22d77a66ec6e8c4' AND `account_users`.`account_id` = x'f778fe7c51384894bcf76f01925b229e' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'375422cd85c94683a48246239f7f410c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'375422cd85c94683a48246239f7f410c' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'f778fe7c51384894bcf76f01925b229e' AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'f778fe7c51384894bcf76f01925b229e', 'create@controller.teste', x'03e35b84bf7a46e0a027e8bbd34f53dc', x'0783e2dad5874e12b22d77a66ec6e8c4', NULL, '2012-12-31 12:34:10', '8i7d64OQNzlt6QFEwANDgbF7Vhg') Sent mail to create@controller.teste (7ms) Date: Mon, 31 Dec 2012 10:34:10 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e18642f30ce_c6080435d48706aa@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/03e35b84-bf7a-46e0-a027-e8bbd34f53dc8i7d64OQNzlt6QFEwANDgbF7Vhg  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/F778FE7C51384894BCF76F01925B229E/users Completed 302 Found in 34ms (ActiveRecord: 2.1ms) UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (14.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:11', 'teste@teste.com', '$2a$04$D85cYZ8TH7c7q45dm0KvT.aKHmSANiFmizlmVfJFg9Jcv5OFouSZG', NULL, x'cfd8fdb6ffca44aebc42a7b814a62a6e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cfd8fdb6ffca44aebc42a7b814a62a6e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:11', 'User', x'2f901da3f34f45afb218a1ecd137bccc', 'e3d664d7badd464419f4d2d808af3627', x'cfd8fdb6ffca44aebc42a7b814a62a6e', 'User', '2012-12-31 12:34:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cfd8fdb6ffca44aebc42a7b814a62a6e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'6e3509bbab074fa28e04581409c49437', NULL, NULL, NULL, '2012-12-31 12:34:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account6e3509bb-ab07-4fa2-8e04-581409c49437' WHERE `accounts`.`id` = x'6e3509bbab074fa28e04581409c49437' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6e3509bbab074fa28e04581409c49437' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6e3509bbab074fa28e04581409c49437', x'4f4b6c9d0c844145892198e36fa67fc1', x'cfd8fdb6ffca44aebc42a7b814a62a6e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4f4b6c9d0c844145892198e36fa67fc1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f4b6c9d0c844145892198e36fa67fc1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f4b6c9d0c844145892198e36fa67fc1', x'7cdfccde65e44d8badab6ed43b9517ae', 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4f4b6c9d0c844145892198e36fa67fc1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f4b6c9d0c844145892198e36fa67fc1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f4b6c9d0c844145892198e36fa67fc1', x'5036d4c316504547a26ce44f135ee7d0', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864310119_c6080435d487078b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'0028cc3f88434a2fa32b62995fd828c7', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account0028cc3f-8843-4a2f-a32b-62995fd828c7' WHERE `accounts`.`id` = x'0028cc3f88434a2fa32b62995fd828c7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0028cc3f88434a2fa32b62995fd828c7', x'2db61c269d9f4496ae24f42ea54ea356', x'cfd8fdb6ffca44aebc42a7b814a62a6e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2db61c269d9f4496ae24f42ea54ea356') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2db61c269d9f4496ae24f42ea54ea356' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2db61c269d9f4496ae24f42ea54ea356', x'389d6c322b3b49a3bae70d0696770066', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2db61c269d9f4496ae24f42ea54ea356') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2db61c269d9f4496ae24f42ea54ea356' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2db61c269d9f4496ae24f42ea54ea356', x'b565f1d66b9346938988a4315cc3ce43', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cfd8fdb6ffca44aebc42a7b814a62a6e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cfd8fdb6ffca44aebc42a7b814a62a6e' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cfd8fdb6ffca44aebc42a7b814a62a6e' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"0028CC3F88434A2FA32B62995FD828C7"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cfd8fdb6ffca44aebc42a7b814a62a6e' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cfd8fdb6ffca44aebc42a7b814a62a6e' AND `account_users`.`account_id` = x'0028cc3f88434a2fa32b62995fd828c7' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2db61c269d9f4496ae24f42ea54ea356' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2db61c269d9f4496ae24f42ea54ea356' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0028cc3f88434a2fa32b62995fd828c7' AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'0028cc3f88434a2fa32b62995fd828c7', 'create@controller.teste', x'4741023c750446b89c34e3f2ec526d20', x'cfd8fdb6ffca44aebc42a7b814a62a6e', NULL, '2012-12-31 12:34:11', 'D2qJNr4c2x-9Ax6PXR0KCuXfxYg') Sent mail to create@controller.teste (7ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e186431d388_c6080435d487086d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4741023c-7504-46b8-9c34-e3f2ec526d20D2qJNr4c2x-9Ax6PXR0KCuXfxYg  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/0028CC3F88434A2FA32B62995FD828C7/users Completed 302 Found in 32ms (ActiveRecord: 2.0ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"0028CC3F88434A2FA32B62995FD828C7"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cfd8fdb6ffca44aebc42a7b814a62a6e' AND `account_users`.`account_id` = x'0028cc3f88434a2fa32b62995fd828c7' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2db61c269d9f4496ae24f42ea54ea356' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2db61c269d9f4496ae24f42ea54ea356' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0028cc3f88434a2fa32b62995fd828c7' LIMIT 1 Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 1.0ms)  (4.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:11', 'teste@teste.com', '$2a$04$w0z0i/aky8eIPUvZfHmnP.Cc9fhEyE5Q.hJVhboYYb26vlq3I4OSa', NULL, x'7721b53c3319425dabd7f759d89dde23', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7721b53c3319425dabd7f759d89dde23' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:11', 'User', x'ecdb14dd03b74b7baf6f9e2a439149d9', '087d52bd1d2d78952a9393f34131a4c8', x'7721b53c3319425dabd7f759d89dde23', 'User', '2012-12-31 12:34:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7721b53c3319425dabd7f759d89dde23' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'453a4017d3fc44148f02a44c66d1447b', NULL, NULL, NULL, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account453a4017-d3fc-4414-8f02-a44c66d1447b' WHERE `accounts`.`id` = x'453a4017d3fc44148f02a44c66d1447b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'453a4017d3fc44148f02a44c66d1447b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'453a4017d3fc44148f02a44c66d1447b', x'7b31b41d2b5a438aa4f5e353ede9656e', x'7721b53c3319425dabd7f759d89dde23') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7b31b41d2b5a438aa4f5e353ede9656e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b31b41d2b5a438aa4f5e353ede9656e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b31b41d2b5a438aa4f5e353ede9656e', x'fbc3d0e0503d48c68904c7b66e610213', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7b31b41d2b5a438aa4f5e353ede9656e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b31b41d2b5a438aa4f5e353ede9656e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b31b41d2b5a438aa4f5e353ede9656e', x'a18357d2d36c4c0db686e26d3630cfb9', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186432d1fa_c6080435d4870915@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'd7343aa56cc4489f9a25621dc5e09309', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'accountd7343aa5-6cc4-489f-9a25-621dc5e09309' WHERE `accounts`.`id` = x'd7343aa56cc4489f9a25621dc5e09309'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd7343aa56cc4489f9a25621dc5e09309', x'6edc4c605dc04958a90b1f9acab9c506', x'7721b53c3319425dabd7f759d89dde23') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6edc4c605dc04958a90b1f9acab9c506') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6edc4c605dc04958a90b1f9acab9c506' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6edc4c605dc04958a90b1f9acab9c506', x'b1de42b44b864d71a172e553d83554c0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6edc4c605dc04958a90b1f9acab9c506') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6edc4c605dc04958a90b1f9acab9c506' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6edc4c605dc04958a90b1f9acab9c506', x'b58afc965ae047a3bdd0ce105688fa66', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7721b53c3319425dabd7f759d89dde23' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7721b53c3319425dabd7f759d89dde23' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'6fb3b1c7450441be82a4e370962f4fc5', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account6fb3b1c7-4504-41be-82a4-e370962f4fc5' WHERE `accounts`.`id` = x'6fb3b1c7450441be82a4e370962f4fc5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'6fb3b1c7450441be82a4e370962f4fc5' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'6fb3b1c7450441be82a4e370962f4fc5', 'teste@teste.teste', x'e8016820465e48bda1e7d17499eed8dc', NULL, NULL, '2012-12-31 12:34:11', 'iN4DJZMVJLWANNyq4jYjW98bK9Q') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e186434f618_c6080435d487102e@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/e8016820-465e-48bd-a1e7-d17499eed8dciN4DJZMVJLWANNyq4jYjW98bK9Q  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = x'7721b53c3319425dabd7f759d89dde23' WHERE `user_invitations`.`id` = x'e8016820465e48bda1e7d17499eed8dc'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7721b53c3319425dabd7f759d89dde23' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'61626262626261616161616363636363' LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:11', 'teste@teste.com', '$2a$04$8vXB2dn/AQfy2WjzfGMLSexUVm8apcp3i/3EvxHSndmbgLxEiYCYq', NULL, x'32734266401f4ef89eed84df0c0d2f5a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'32734266401f4ef89eed84df0c0d2f5a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:11', 'User', x'b35091c43e1f4cffa429af691c639817', '8e53838f48219712b40a6c294d51701a', x'32734266401f4ef89eed84df0c0d2f5a', 'User', '2012-12-31 12:34:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'32734266401f4ef89eed84df0c0d2f5a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'52a3ba3119ee446286670fbdd52ec514', NULL, NULL, NULL, '2012-12-31 12:34:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account52a3ba31-19ee-4462-8667-0fbdd52ec514' WHERE `accounts`.`id` = x'52a3ba3119ee446286670fbdd52ec514' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'52a3ba3119ee446286670fbdd52ec514' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'52a3ba3119ee446286670fbdd52ec514', x'5e7f5bef40dd4e7eadae848d3eeafda2', x'32734266401f4ef89eed84df0c0d2f5a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5e7f5bef40dd4e7eadae848d3eeafda2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5e7f5bef40dd4e7eadae848d3eeafda2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5e7f5bef40dd4e7eadae848d3eeafda2', x'3bb732419d914580b57c65adde2526f8', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5e7f5bef40dd4e7eadae848d3eeafda2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5e7f5bef40dd4e7eadae848d3eeafda2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5e7f5bef40dd4e7eadae848d3eeafda2', x'05076c70c15b47bb9181541db75a586c', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186435d86e_c6080435d487110@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'f820ad9a2f3a456080b69a34e26bc047', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'accountf820ad9a-2f3a-4560-80b6-9a34e26bc047' WHERE `accounts`.`id` = x'f820ad9a2f3a456080b69a34e26bc047'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f820ad9a2f3a456080b69a34e26bc047', x'f989d55d2e5249adac03e35358eff80c', x'32734266401f4ef89eed84df0c0d2f5a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f989d55d2e5249adac03e35358eff80c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f989d55d2e5249adac03e35358eff80c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f989d55d2e5249adac03e35358eff80c', x'ac63ef5f477d41d8b2682650a12c830f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f989d55d2e5249adac03e35358eff80c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f989d55d2e5249adac03e35358eff80c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f989d55d2e5249adac03e35358eff80c', x'96ebad4f72964709824fe6c449bf2a77', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'32734266401f4ef89eed84df0c0d2f5a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'32734266401f4ef89eed84df0c0d2f5a' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'ee1dae3654c941ba91fe5df5a0711f51', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'accountee1dae36-54c9-41ba-91fe-5df5a0711f51' WHERE `accounts`.`id` = x'ee1dae3654c941ba91fe5df5a0711f51'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'ee1dae3654c941ba91fe5df5a0711f51' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'ee1dae3654c941ba91fe5df5a0711f51', 'teste@teste.teste', x'1ff0e3ea71134484892321c9c5a085b3', NULL, NULL, '2012-12-31 12:34:11', 'j45lIMXCbx5DVFR89NV9a36oRp8') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1864368f6d_c6080435d48712c7@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1ff0e3ea-7113-4484-8923-21c9c5a085b3j45lIMXCbx5DVFR89NV9a36oRp8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = x'32734266401f4ef89eed84df0c0d2f5a' WHERE `user_invitations`.`id` = x'1ff0e3ea71134484892321c9c5a085b3'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"1ff0e3ea-7113-4484-8923-21c9c5a085b3j45lIMXCbx5DVFR89NV9a36oRp8"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'32734266401f4ef89eed84df0c0d2f5a' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'1ff0e3ea71134484892321c9c5a085b3' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'32734266401f4ef89eed84df0c0d2f5a' LIMIT 1 Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:11', 'teste@teste.com', '$2a$04$9Cflo7K18EJ.Xxh7H6T2AefAuJ2MlA9O2hnDaK8/nRtCxkn02KfUu', NULL, x'a2fb918668cb4baca3738397e2b74ac9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a2fb918668cb4baca3738397e2b74ac9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:11', 'User', x'39c3ff96141a4d0faec0ddffdd42dd02', 'bc776577f745e0eaeda762b8e21e589a', x'a2fb918668cb4baca3738397e2b74ac9', 'User', '2012-12-31 12:34:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a2fb918668cb4baca3738397e2b74ac9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'281935622f6f417cab3d6ad3a1d17a4d', NULL, NULL, NULL, '2012-12-31 12:34:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account28193562-2f6f-417c-ab3d-6ad3a1d17a4d' WHERE `accounts`.`id` = x'281935622f6f417cab3d6ad3a1d17a4d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'281935622f6f417cab3d6ad3a1d17a4d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'281935622f6f417cab3d6ad3a1d17a4d', x'4198a39df8f24a9cb11e6cc06eb82f6a', x'a2fb918668cb4baca3738397e2b74ac9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4198a39df8f24a9cb11e6cc06eb82f6a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4198a39df8f24a9cb11e6cc06eb82f6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4198a39df8f24a9cb11e6cc06eb82f6a', x'81b303bf558c46128e8b732d14841e73', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4198a39df8f24a9cb11e6cc06eb82f6a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4198a39df8f24a9cb11e6cc06eb82f6a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4198a39df8f24a9cb11e6cc06eb82f6a', x'7bb83f0571d142d98ea3505639a5df05', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864378434_c6080435d48713f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'0e0ce4b655fd4f9f8c64346e02329cc6', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account0e0ce4b6-55fd-4f9f-8c64-346e02329cc6' WHERE `accounts`.`id` = x'0e0ce4b655fd4f9f8c64346e02329cc6'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0e0ce4b655fd4f9f8c64346e02329cc6', x'2ad542fadafe43bea693e1a201152036', x'a2fb918668cb4baca3738397e2b74ac9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2ad542fadafe43bea693e1a201152036') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ad542fadafe43bea693e1a201152036' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ad542fadafe43bea693e1a201152036', x'26a05358322641b48beb70a65786e275', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2ad542fadafe43bea693e1a201152036') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ad542fadafe43bea693e1a201152036' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ad542fadafe43bea693e1a201152036', x'93ad5b75c2014a62aeb3e4df97c10c7c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a2fb918668cb4baca3738397e2b74ac9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a2fb918668cb4baca3738397e2b74ac9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'9561061f8ace4efcaf693456d91033f4', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account9561061f-8ace-4efc-af69-3456d91033f4' WHERE `accounts`.`id` = x'9561061f8ace4efcaf693456d91033f4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'cdcc3bb1a497468ba40e2d58b2dbf1c8', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'accountcdcc3bb1-a497-468b-a40e-2d58b2dbf1c8' WHERE `accounts`.`id` = x'cdcc3bb1a497468ba40e2d58b2dbf1c8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'cdcc3bb1a497468ba40e2d58b2dbf1c8' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'cdcc3bb1a497468ba40e2d58b2dbf1c8', 'teste@teste.teste', x'c0afecd362c74292b83ada6968138f69', NULL, NULL, '2012-12-31 12:34:11', 'pwiyjoYSrn-1ngrTHEZ6nLWGf04') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1864384d65_c6080435d48714c7@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/c0afecd3-62c7-4292-b83a-da6968138f69pwiyjoYSrn-1ngrTHEZ6nLWGf04  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'9561061f8ace4efcaf693456d91033f4' AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = x'9561061f8ace4efcaf693456d91033f4' WHERE `user_invitations`.`id` = x'c0afecd362c74292b83ada6968138f69'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a2fb918668cb4baca3738397e2b74ac9' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'61626262626261616161616363636363' LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:11', 'teste@teste.com', '$2a$04$97RnldHDayTxyT6Jqf7Cc.9nygOKSNvB1cqe7NLyq6JqKx0yKosKi', NULL, x'52c6af7c4d6b4de6966f8170fd5800d6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:11') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'52c6af7c4d6b4de6966f8170fd5800d6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:11', 'User', x'1336b971b3824820b9b53b26440ce783', '8714cec61257bd115d324a0af1792f48', x'52c6af7c4d6b4de6966f8170fd5800d6', 'User', '2012-12-31 12:34:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'52c6af7c4d6b4de6966f8170fd5800d6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'3ece58e589a945fc9f3df2032dcda5fe', NULL, NULL, NULL, '2012-12-31 12:34:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account3ece58e5-89a9-45fc-9f3d-f2032dcda5fe' WHERE `accounts`.`id` = x'3ece58e589a945fc9f3df2032dcda5fe' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3ece58e589a945fc9f3df2032dcda5fe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3ece58e589a945fc9f3df2032dcda5fe', x'189278039563465a83724f8d0764cb64', x'52c6af7c4d6b4de6966f8170fd5800d6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'189278039563465a83724f8d0764cb64') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'189278039563465a83724f8d0764cb64' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'189278039563465a83724f8d0764cb64', x'7d866dbcad414156a61b5e271fafde34', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'189278039563465a83724f8d0764cb64') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'189278039563465a83724f8d0764cb64' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'189278039563465a83724f8d0764cb64', x'e6176f17fc9b438998e5a7cc995fe6bd', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18643a987e_c6080435d4871556@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'c7e829e7fba645f095fbc4cbdff1e5ec', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'accountc7e829e7-fba6-45f0-95fb-c4cbdff1e5ec' WHERE `accounts`.`id` = x'c7e829e7fba645f095fbc4cbdff1e5ec'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c7e829e7fba645f095fbc4cbdff1e5ec', x'e76a1e09ec3b4c1eade89a00e7bf73f9', x'52c6af7c4d6b4de6966f8170fd5800d6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e76a1e09ec3b4c1eade89a00e7bf73f9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e76a1e09ec3b4c1eade89a00e7bf73f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e76a1e09ec3b4c1eade89a00e7bf73f9', x'b1cc33a09d52428cb4d7f231402fb22c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e76a1e09ec3b4c1eade89a00e7bf73f9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e76a1e09ec3b4c1eade89a00e7bf73f9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e76a1e09ec3b4c1eade89a00e7bf73f9', x'000fdb26f9644230be14acb7b552af19', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'52c6af7c4d6b4de6966f8170fd5800d6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'52c6af7c4d6b4de6966f8170fd5800d6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'b4785e0aea72475d844bc8128cad303d', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'accountb4785e0a-ea72-475d-844b-c8128cad303d' WHERE `accounts`.`id` = x'b4785e0aea72475d844bc8128cad303d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'b84acaed03eb49578c9e94fa362192d2', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'accountb84acaed-03eb-4957-8c9e-94fa362192d2' WHERE `accounts`.`id` = x'b84acaed03eb49578c9e94fa362192d2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'b84acaed03eb49578c9e94fa362192d2' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'b84acaed03eb49578c9e94fa362192d2', 'teste@teste.teste', x'4fdd066163844bd08bcc23b197343b2e', NULL, NULL, '2012-12-31 12:34:11', 'MM1SItgC0pRHGUcpkzeyAeq6Dj8') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18643b5b2d_c6080435d48716d9@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4fdd0661-6384-4bd0-8bcc-23b197343b2eMM1SItgC0pRHGUcpkzeyAeq6Dj8  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'b4785e0aea72475d844bc8128cad303d' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'b4785e0aea72475d844bc8128cad303d' WHERE `user_invitations`.`id` = x'4fdd066163844bd08bcc23b197343b2e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"4fdd0661-6384-4bd0-8bcc-23b197343b2eMM1SItgC0pRHGUcpkzeyAeq6Dj8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'52c6af7c4d6b4de6966f8170fd5800d6' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'4fdd066163844bd08bcc23b197343b2e' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b4785e0aea72475d844bc8128cad303d' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'b4785e0aea72475d844bc8128cad303d' AND `account_users`.`user_id` = x'52c6af7c4d6b4de6966f8170fd5800d6'  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b4785e0aea72475d844bc8128cad303d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b4785e0aea72475d844bc8128cad303d', x'1bf4b2759b9541fc84aaa272668f084e', x'52c6af7c4d6b4de6966f8170fd5800d6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1bf4b2759b9541fc84aaa272668f084e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1bf4b2759b9541fc84aaa272668f084e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1bf4b2759b9541fc84aaa272668f084e', x'b3f6cfbe806b4b1bb1fdfd2c0abaa541', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1bf4b2759b9541fc84aaa272668f084e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1bf4b2759b9541fc84aaa272668f084e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1bf4b2759b9541fc84aaa272668f084e', x'2cc52f627439457a93ad4203920ba979', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 3.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:11', 'teste@teste.com', '$2a$04$xQWjnjmgNh/pbELmJajdG.EdyyX5mtZiNT75XI.HxHmydNxzy2lvm', NULL, x'08c7a30f8b92493b8aeac913bb7a2a9d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'08c7a30f8b92493b8aeac913bb7a2a9d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:11', 'User', x'6f3d3f7e6abe4ed29ba605b13945649b', '01970f9db90180c7522787a5a2ed600b', x'08c7a30f8b92493b8aeac913bb7a2a9d', 'User', '2012-12-31 12:34:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'08c7a30f8b92493b8aeac913bb7a2a9d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'65956b7e3ffe4e33ba82e830efb3313e', NULL, NULL, NULL, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account65956b7e-3ffe-4e33-ba82-e830efb3313e' WHERE `accounts`.`id` = x'65956b7e3ffe4e33ba82e830efb3313e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'65956b7e3ffe4e33ba82e830efb3313e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'65956b7e3ffe4e33ba82e830efb3313e', x'c590c6816e4f4049a62505053b349e02', x'08c7a30f8b92493b8aeac913bb7a2a9d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c590c6816e4f4049a62505053b349e02') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c590c6816e4f4049a62505053b349e02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c590c6816e4f4049a62505053b349e02', x'6cf243175d324cd1941b884f9f3819ec', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c590c6816e4f4049a62505053b349e02') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c590c6816e4f4049a62505053b349e02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c590c6816e4f4049a62505053b349e02', x'1846ce3061b742edaa35bbc20cb59b4b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18643c8992_c6080435d4871715@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'5833cf6e3da748bc9088fcab35dc257d', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account5833cf6e-3da7-48bc-9088-fcab35dc257d' WHERE `accounts`.`id` = x'5833cf6e3da748bc9088fcab35dc257d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5833cf6e3da748bc9088fcab35dc257d', x'4df9a33d661c416eabc3f5022c72d488', x'08c7a30f8b92493b8aeac913bb7a2a9d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4df9a33d661c416eabc3f5022c72d488') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4df9a33d661c416eabc3f5022c72d488' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4df9a33d661c416eabc3f5022c72d488', x'd2364cedde8b40278caa3efef701a387', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4df9a33d661c416eabc3f5022c72d488') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4df9a33d661c416eabc3f5022c72d488' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4df9a33d661c416eabc3f5022c72d488', x'b4237cb3397049bbb1aa3113e0b43802', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'08c7a30f8b92493b8aeac913bb7a2a9d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'08c7a30f8b92493b8aeac913bb7a2a9d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'4f54415db6434d7ba297f8a5092c89e1', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account4f54415d-b643-4d7b-a297-f8a5092c89e1' WHERE `accounts`.`id` = x'4f54415db6434d7ba297f8a5092c89e1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'7469d000a8944c46bc202f0b5b38b1f8', 'jabanilson', NULL, 1, '2012-12-31 12:34:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'account7469d000-a894-4c46-bc20-2f0b5b38b1f8' WHERE `accounts`.`id` = x'7469d000a8944c46bc202f0b5b38b1f8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'7469d000a8944c46bc202f0b5b38b1f8' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'7469d000a8944c46bc202f0b5b38b1f8', 'teste@teste.teste', x'd32adf305def40f982c9f94acd8c8ebe', NULL, NULL, '2012-12-31 12:34:11', 'i6918FAuMnYVYVbkgp4yXnCGcUs') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:34:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18643d52fd_c6080435d48718f0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/d32adf30-5def-40f9-82c9-f94acd8c8ebei6918FAuMnYVYVbkgp4yXnCGcUs  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'4f54415db6434d7ba297f8a5092c89e1' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'4f54415db6434d7ba297f8a5092c89e1' WHERE `user_invitations`.`id` = x'd32adf305def40f982c9f94acd8c8ebe'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f54415db6434d7ba297f8a5092c89e1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4f54415db6434d7ba297f8a5092c89e1', x'cacefb85725245c0ad730719d895d0c9', x'08c7a30f8b92493b8aeac913bb7a2a9d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cacefb85725245c0ad730719d895d0c9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cacefb85725245c0ad730719d895d0c9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cacefb85725245c0ad730719d895d0c9', x'1a26db513920471e91d34cbf74dd9075', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cacefb85725245c0ad730719d895d0c9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cacefb85725245c0ad730719d895d0c9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cacefb85725245c0ad730719d895d0c9', x'b867523f0195422bb9212847b26488c7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"d32adf30-5def-40f9-82c9-f94acd8c8ebei6918FAuMnYVYVbkgp4yXnCGcUs"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'08c7a30f8b92493b8aeac913bb7a2a9d' LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'd32adf305def40f982c9f94acd8c8ebe' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f54415db6434d7ba297f8a5092c89e1' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'4f54415db6434d7ba297f8a5092c89e1' AND `account_users`.`user_id` = x'08c7a30f8b92493b8aeac913bb7a2a9d' Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:11', 'teste@teste.com', '$2a$04$.Yjc8aDyC0olkfmnhOUjQOA5Bffpq0G/H0roQxErTfZ/3Td6wfBA.', NULL, x'477a928faef84e38955b30c72982bf35', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'477a928faef84e38955b30c72982bf35' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:11', 'User', x'053fff7583f043179eb15aaadf55f5ee', 'b0a2742fa22ebca7bd77c8480bc3203f', x'477a928faef84e38955b30c72982bf35', 'User', '2012-12-31 12:34:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'477a928faef84e38955b30c72982bf35' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:11', x'fefe08ba1ac74807b4dae94cb1c083e6', NULL, NULL, NULL, '2012-12-31 12:34:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:11', `updated_at` = '2012-12-31 12:34:11', `subdomain` = 'accountfefe08ba-1ac7-4807-b4da-e94cb1c083e6' WHERE `accounts`.`id` = x'fefe08ba1ac74807b4dae94cb1c083e6' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fefe08ba1ac74807b4dae94cb1c083e6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fefe08ba1ac74807b4dae94cb1c083e6', x'8dc4af598e394e61ba8cbf32ee5250e0', x'477a928faef84e38955b30c72982bf35') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8dc4af598e394e61ba8cbf32ee5250e0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8dc4af598e394e61ba8cbf32ee5250e0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8dc4af598e394e61ba8cbf32ee5250e0', x'c28ac112052a4807a0517f9f53d77060', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8dc4af598e394e61ba8cbf32ee5250e0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8dc4af598e394e61ba8cbf32ee5250e0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8dc4af598e394e61ba8cbf32ee5250e0', x'cd7001f7bcb54adb9f876a16f0b8c74f', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18644a8cd_c6080435d4871960@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'c7726bb34cef4842ba99e04a8a2eefe4', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'accountc7726bb3-4cef-4842-ba99-e04a8a2eefe4' WHERE `accounts`.`id` = x'c7726bb34cef4842ba99e04a8a2eefe4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c7726bb34cef4842ba99e04a8a2eefe4', x'8250cf702d284b3a8377e2337b4294ff', x'477a928faef84e38955b30c72982bf35') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8250cf702d284b3a8377e2337b4294ff') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8250cf702d284b3a8377e2337b4294ff' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8250cf702d284b3a8377e2337b4294ff', x'cbec06acc6dd4f43925e45446ae01b41', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8250cf702d284b3a8377e2337b4294ff') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8250cf702d284b3a8377e2337b4294ff' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8250cf702d284b3a8377e2337b4294ff', x'ceff1d89211d4a62b96a7bb2c0b66387', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'477a928faef84e38955b30c72982bf35' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'477a928faef84e38955b30c72982bf35' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'0578db01f16f4c93bd53ba425736b75d', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account0578db01-f16f-4c93-bd53-ba425736b75d' WHERE `accounts`.`id` = x'0578db01f16f4c93bd53ba425736b75d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'8dd0882a36ce4596b6c11cf38daeb92a', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account8dd0882a-36ce-4596-b6c1-1cf38daeb92a' WHERE `accounts`.`id` = x'8dd0882a36ce4596b6c11cf38daeb92a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'8dd0882a36ce4596b6c11cf38daeb92a' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'8dd0882a36ce4596b6c11cf38daeb92a', 'teste@teste.teste', x'f28a9121e3f14115813146558d22950a', NULL, NULL, '2012-12-31 12:34:12', 'SazmIt2HkoxRFV-7eGf2SGbbkjw') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1864416cf7_c6080435d4872053@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/f28a9121-e3f1-4115-8131-46558d22950aSazmIt2HkoxRFV-7eGf2SGbbkjw  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0578db01f16f4c93bd53ba425736b75d' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'0578db01f16f4c93bd53ba425736b75d' WHERE `user_invitations`.`id` = x'f28a9121e3f14115813146558d22950a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0578db01f16f4c93bd53ba425736b75d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0578db01f16f4c93bd53ba425736b75d', x'5602b965d75c4f8cbdf28055d6dabc24', x'477a928faef84e38955b30c72982bf35') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5602b965d75c4f8cbdf28055d6dabc24') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5602b965d75c4f8cbdf28055d6dabc24' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5602b965d75c4f8cbdf28055d6dabc24', x'1995011a3f7d470fb4bdf5d5a67e1701', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5602b965d75c4f8cbdf28055d6dabc24') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5602b965d75c4f8cbdf28055d6dabc24' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5602b965d75c4f8cbdf28055d6dabc24', x'a57ee2bb94e84209b7e300cc46db4323', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"f28a9121-e3f1-4115-8131-46558d22950aSazmIt2HkoxRFV-7eGf2SGbbkjw"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'477a928faef84e38955b30c72982bf35' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'f28a9121e3f14115813146558d22950a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0578db01f16f4c93bd53ba425736b75d' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'0578db01f16f4c93bd53ba425736b75d' AND `account_users`.`user_id` = x'477a928faef84e38955b30c72982bf35' Redirected to http://test.host/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (9.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:12', 'teste@teste.com', '$2a$04$vnnZ0IOqy30ao65RpA2Gg.ttUSJrdiqxrtfSoxgr6fh4qZWWtDJOO', NULL, x'6e183f928bbd4f9a9f96e851fa8e3a0e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6e183f928bbd4f9a9f96e851fa8e3a0e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:12', 'User', x'234f65b0f0ea42d1aafc39eb569bb372', 'beb09a128d77a842b4e8eeaade311cf0', x'6e183f928bbd4f9a9f96e851fa8e3a0e', 'User', '2012-12-31 12:34:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6e183f928bbd4f9a9f96e851fa8e3a0e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'254a7f30da404505af68bdb545e4991e', NULL, NULL, NULL, '2012-12-31 12:34:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account254a7f30-da40-4505-af68-bdb545e4991e' WHERE `accounts`.`id` = x'254a7f30da404505af68bdb545e4991e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'254a7f30da404505af68bdb545e4991e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'254a7f30da404505af68bdb545e4991e', x'7f05755751ab494dab135bc94bdab6d5', x'6e183f928bbd4f9a9f96e851fa8e3a0e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7f05755751ab494dab135bc94bdab6d5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f05755751ab494dab135bc94bdab6d5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f05755751ab494dab135bc94bdab6d5', x'9ad126625ce54befba4beddf04d2173d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7f05755751ab494dab135bc94bdab6d5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f05755751ab494dab135bc94bdab6d5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f05755751ab494dab135bc94bdab6d5', x'969c146a804e4c7e852e47c8d096254b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186442b375_c6080435d4872193@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'bee63e9ae4f64dbfbf52fbcf7c33912d', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'accountbee63e9a-e4f6-4dbf-bf52-fbcf7c33912d' WHERE `accounts`.`id` = x'bee63e9ae4f64dbfbf52fbcf7c33912d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bee63e9ae4f64dbfbf52fbcf7c33912d', x'66496807a578429283f191a32f866927', x'6e183f928bbd4f9a9f96e851fa8e3a0e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'66496807a578429283f191a32f866927') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66496807a578429283f191a32f866927' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66496807a578429283f191a32f866927', x'c9351f18fbcf45a3872837dad14ddba2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'66496807a578429283f191a32f866927') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66496807a578429283f191a32f866927' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66496807a578429283f191a32f866927', x'db65947ac3b84fa79c289ca65d9d66f5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6e183f928bbd4f9a9f96e851fa8e3a0e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6e183f928bbd4f9a9f96e851fa8e3a0e' LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6e183f928bbd4f9a9f96e851fa8e3a0e' LIMIT 1 Completed 404 Not Found in 2ms  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:12', 'teste@teste.com', '$2a$04$9ogp8eTtjBLQWjMvnAlQyeT.g3kvlb1Dcz9aneQBvBwvHVyl/aKxe', NULL, x'6816ed467af2490089a00356962e466e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6816ed467af2490089a00356962e466e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:12', 'User', x'13c4f56b53aa4a16a4c5dd48c88b57c0', 'ccbb54f4ca3dfd4d8d03ebbc92995e97', x'6816ed467af2490089a00356962e466e', 'User', '2012-12-31 12:34:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6816ed467af2490089a00356962e466e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'3553e7e0bc54419f9e483aea243c5af2', NULL, NULL, NULL, '2012-12-31 12:34:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account3553e7e0-bc54-419f-9e48-3aea243c5af2' WHERE `accounts`.`id` = x'3553e7e0bc54419f9e483aea243c5af2' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3553e7e0bc54419f9e483aea243c5af2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3553e7e0bc54419f9e483aea243c5af2', x'8449f0d32eb446a78139a8ffda4058f3', x'6816ed467af2490089a00356962e466e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8449f0d32eb446a78139a8ffda4058f3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8449f0d32eb446a78139a8ffda4058f3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8449f0d32eb446a78139a8ffda4058f3', x'3ea70c8fd35b413d960cf07d60f373da', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8449f0d32eb446a78139a8ffda4058f3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8449f0d32eb446a78139a8ffda4058f3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8449f0d32eb446a78139a8ffda4058f3', x'6d13033d1811475585888cc0b962a082', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186443ef74_c6080435d487222f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'a0f5faa40c9c4f289e8601cfca79f027', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'accounta0f5faa4-0c9c-4f28-9e86-01cfca79f027' WHERE `accounts`.`id` = x'a0f5faa40c9c4f289e8601cfca79f027'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a0f5faa40c9c4f289e8601cfca79f027', x'015b38d8c769487aac794cd219357b44', x'6816ed467af2490089a00356962e466e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'015b38d8c769487aac794cd219357b44') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'015b38d8c769487aac794cd219357b44' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'015b38d8c769487aac794cd219357b44', x'ecf37b2cdadf48f08518fb50713dccdb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'015b38d8c769487aac794cd219357b44') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'015b38d8c769487aac794cd219357b44' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'015b38d8c769487aac794cd219357b44', x'642f48aa66a249c0b1578d676f1ed3e6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6816ed467af2490089a00356962e466e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6816ed467af2490089a00356962e466e' LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6816ed467af2490089a00356962e466e' LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:12', 'teste@teste.com', '$2a$04$hzmAzJNDi1i0QdnxfOUhVuIt4QhJHwMdV65GQWv2u8zxM2Ho1ZMx2', NULL, x'5d1349f55bf240abb804c806ab7b78d8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5d1349f55bf240abb804c806ab7b78d8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:12', 'User', x'e53ccdaca48e49aa802a99ef99a07f09', '41eefb9006a971a51dc3351e60545e40', x'5d1349f55bf240abb804c806ab7b78d8', 'User', '2012-12-31 12:34:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5d1349f55bf240abb804c806ab7b78d8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'f1fb0ac1ef3b4b25a09279bb3bba858a', NULL, NULL, NULL, '2012-12-31 12:34:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'accountf1fb0ac1-ef3b-4b25-a092-79bb3bba858a' WHERE `accounts`.`id` = x'f1fb0ac1ef3b4b25a09279bb3bba858a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f1fb0ac1ef3b4b25a09279bb3bba858a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f1fb0ac1ef3b4b25a09279bb3bba858a', x'2cd224d59ea7483aa0769f7ddb123395', x'5d1349f55bf240abb804c806ab7b78d8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2cd224d59ea7483aa0769f7ddb123395') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2cd224d59ea7483aa0769f7ddb123395' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2cd224d59ea7483aa0769f7ddb123395', x'49c409ed3ed849f596bfa0c50c673980', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2cd224d59ea7483aa0769f7ddb123395') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2cd224d59ea7483aa0769f7ddb123395' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2cd224d59ea7483aa0769f7ddb123395', x'6035f90eff3f4d9097fc516bd10cd7a2', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864468770_c6080435d487239b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'41715a92f172401ea02608212460ed00', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account41715a92-f172-401e-a026-08212460ed00' WHERE `accounts`.`id` = x'41715a92f172401ea02608212460ed00'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'41715a92f172401ea02608212460ed00', x'8d3a013587024bdba6f09160b200d45d', x'5d1349f55bf240abb804c806ab7b78d8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8d3a013587024bdba6f09160b200d45d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d3a013587024bdba6f09160b200d45d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d3a013587024bdba6f09160b200d45d', x'80e1c89da74442a78a73f81b21d3325e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8d3a013587024bdba6f09160b200d45d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d3a013587024bdba6f09160b200d45d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d3a013587024bdba6f09160b200d45d', x'bfb5e596124c402e81a5ce27a3b10f72', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5d1349f55bf240abb804c806ab7b78d8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5d1349f55bf240abb804c806ab7b78d8' LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5d1349f55bf240abb804c806ab7b78d8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5d1349f55bf240abb804c806ab7b78d8'  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-12-31 12:34:12' WHERE `users`.`id` = x'5d1349f55bf240abb804c806ab7b78d8'  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 2.9ms)  (30.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:12', 'teste@teste.com', '$2a$04$YRXw1d4sunnrFDZPXaua2O6pH8BA7FcQydmtSMtXYr2oZzD/Xkp1.', NULL, x'77ab0abbac4e432f8498962bfdc7ba59', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:12') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'77ab0abbac4e432f8498962bfdc7ba59' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:12', 'User', x'2eaeac709081417590c247dffd210f71', '54908d3dcb42b573f51816732c2fd43a', x'77ab0abbac4e432f8498962bfdc7ba59', 'User', '2012-12-31 12:34:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'77ab0abbac4e432f8498962bfdc7ba59' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'203459082a714da2aa51b5137507b72d', NULL, NULL, NULL, '2012-12-31 12:34:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account20345908-2a71-4da2-aa51-b5137507b72d' WHERE `accounts`.`id` = x'203459082a714da2aa51b5137507b72d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'203459082a714da2aa51b5137507b72d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'203459082a714da2aa51b5137507b72d', x'fff8e8be087a48f6b85d3279e43b2179', x'77ab0abbac4e432f8498962bfdc7ba59') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fff8e8be087a48f6b85d3279e43b2179') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fff8e8be087a48f6b85d3279e43b2179' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fff8e8be087a48f6b85d3279e43b2179', x'c64c296379cf43aaa34bf8db94fae2f8', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fff8e8be087a48f6b85d3279e43b2179') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fff8e8be087a48f6b85d3279e43b2179' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fff8e8be087a48f6b85d3279e43b2179', x'd6db188544de4ca3be91fcf6c94ba6e4', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864484c0a_c6080435d48724c6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'4cc8ee9a30eb41febd2199599a017c71', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account4cc8ee9a-30eb-41fe-bd21-99599a017c71' WHERE `accounts`.`id` = x'4cc8ee9a30eb41febd2199599a017c71'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4cc8ee9a30eb41febd2199599a017c71', x'6549ccbb04a44d4f8bb435568e416e1b', x'77ab0abbac4e432f8498962bfdc7ba59') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6549ccbb04a44d4f8bb435568e416e1b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6549ccbb04a44d4f8bb435568e416e1b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6549ccbb04a44d4f8bb435568e416e1b', x'befc0a7c9d7840949d00680ff70d63da', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6549ccbb04a44d4f8bb435568e416e1b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6549ccbb04a44d4f8bb435568e416e1b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6549ccbb04a44d4f8bb435568e416e1b', x'b4c4f7d75a9e4c908e0f8ff74b058c73', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'77ab0abbac4e432f8498962bfdc7ba59' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'77ab0abbac4e432f8498962bfdc7ba59' LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'77ab0abbac4e432f8498962bfdc7ba59' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'77ab0abbac4e432f8498962bfdc7ba59'  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-12-31 12:34:12' WHERE `users`.`id` = x'77ab0abbac4e432f8498962bfdc7ba59'  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.2ms)  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'7e2adef216734e68a4963c45f1c77a46', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account7e2adef2-1673-4e68-a496-3c45f1c77a46' WHERE `accounts`.`id` = x'7e2adef216734e68a4963c45f1c77a46'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7e2adef216734e68a4963c45f1c77a46', x'f08c30ae222044f59c3b4110f8c1e05c', x'77ab0abbac4e432f8498962bfdc7ba59') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f08c30ae222044f59c3b4110f8c1e05c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f08c30ae222044f59c3b4110f8c1e05c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f08c30ae222044f59c3b4110f8c1e05c', x'd13a50f1712d405fad5e66c4ffb3009e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f08c30ae222044f59c3b4110f8c1e05c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f08c30ae222044f59c3b4110f8c1e05c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f08c30ae222044f59c3b4110f8c1e05c', x'5f6a1eef7a8f4d858aafc14208a1b810', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'77ab0abbac4e432f8498962bfdc7ba59' AND (accounts.id = x'4cc8ee9a30eb41febd2199599a017c71') LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.7ms | ActiveRecord: 0.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:12', 'teste@teste.com', '$2a$04$SlpsrCoMNgDjFb26vU3sNu1Rlj0zXaoLQxHdX6OX0on6/Fy7VJ4Z2', NULL, x'38f2d255cace48c49ffbdd04d5b1089a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'38f2d255cace48c49ffbdd04d5b1089a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:12', 'User', x'866e463615074d759ca50185a338f117', 'ce70049194cd2aff4cb53bb403004d4a', x'38f2d255cace48c49ffbdd04d5b1089a', 'User', '2012-12-31 12:34:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'38f2d255cace48c49ffbdd04d5b1089a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'db7f5828ec16450e8be2f7d2ecae4908', NULL, NULL, NULL, '2012-12-31 12:34:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'accountdb7f5828-ec16-450e-8be2-f7d2ecae4908' WHERE `accounts`.`id` = x'db7f5828ec16450e8be2f7d2ecae4908' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'db7f5828ec16450e8be2f7d2ecae4908' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'db7f5828ec16450e8be2f7d2ecae4908', x'8d365138bfca4d51afa591694894de17', x'38f2d255cace48c49ffbdd04d5b1089a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8d365138bfca4d51afa591694894de17') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d365138bfca4d51afa591694894de17' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d365138bfca4d51afa591694894de17', x'e9926c46ff2c447598146117e1c0bd04', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8d365138bfca4d51afa591694894de17') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d365138bfca4d51afa591694894de17' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d365138bfca4d51afa591694894de17', x'b5b32158203d41c4981116e34fb98b51', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186449fa97_c6080435d48725df@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'93f2862840c6456a8bbeaeb0169ab752', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account93f28628-40c6-456a-8bbe-aeb0169ab752' WHERE `accounts`.`id` = x'93f2862840c6456a8bbeaeb0169ab752'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'93f2862840c6456a8bbeaeb0169ab752', x'b2f451ba9bf44949835c678299624571', x'38f2d255cace48c49ffbdd04d5b1089a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b2f451ba9bf44949835c678299624571') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b2f451ba9bf44949835c678299624571' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b2f451ba9bf44949835c678299624571', x'5da868f679c94672bc0e9f862f43ebc7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b2f451ba9bf44949835c678299624571') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b2f451ba9bf44949835c678299624571' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b2f451ba9bf44949835c678299624571', x'271b6b69297148db9374e49186e1fb76', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'38f2d255cace48c49ffbdd04d5b1089a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'38f2d255cace48c49ffbdd04d5b1089a' LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'38f2d255cace48c49ffbdd04d5b1089a' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:12', NULL, '--- !ruby/struct:DestroyUserJob\nid: 38f2d255-cace-48c4-9ffb-dd04d5b1089a\n', NULL, NULL, NULL, 0, 'user_38f2d255-cace-48c4-9ffb-dd04d5b1089a_destroy', '2012-12-31 12:34:12', '2012-12-31 12:34:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_38f2d255-cace-48c4-9ffb-dd04d5b1089a_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 1.2ms) Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_38f2d255-cace-48c4-9ffb-dd04d5b1089a_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:12', 'teste@teste.com', '$2a$04$ixkkUiGct8QyO9SgbWTmgu7n5c.AcEcejWvhyv6E0rRqrF1alv9Cu', NULL, x'a501d6fe5559426d8c423810cf060652', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a501d6fe5559426d8c423810cf060652' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:12', 'User', x'57549e595c6d4fb39e36e8e0d03de240', '6a6b711dabfc024ae419f5d8c38eb59d', x'a501d6fe5559426d8c423810cf060652', 'User', '2012-12-31 12:34:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a501d6fe5559426d8c423810cf060652' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'29dcbfd646934e148c91ed536692644b', NULL, NULL, NULL, '2012-12-31 12:34:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account29dcbfd6-4693-4e14-8c91-ed536692644b' WHERE `accounts`.`id` = x'29dcbfd646934e148c91ed536692644b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'29dcbfd646934e148c91ed536692644b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'29dcbfd646934e148c91ed536692644b', x'262e0d4989ff4d16a324d6c76c8c3255', x'a501d6fe5559426d8c423810cf060652') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'262e0d4989ff4d16a324d6c76c8c3255') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'262e0d4989ff4d16a324d6c76c8c3255' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'262e0d4989ff4d16a324d6c76c8c3255', x'9949edb52bcb4dc982cc156d37264039', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'262e0d4989ff4d16a324d6c76c8c3255') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'262e0d4989ff4d16a324d6c76c8c3255' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'262e0d4989ff4d16a324d6c76c8c3255', x'57a7ad753d284011883e793871d51b01', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18644c9e63_c6080435d48726e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'017888c08c0544078238d4d03c266c58', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account017888c0-8c05-4407-8238-d4d03c266c58' WHERE `accounts`.`id` = x'017888c08c0544078238d4d03c266c58'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'017888c08c0544078238d4d03c266c58', x'ba6ec2610c7c486fbd07931f76ec81b1', x'a501d6fe5559426d8c423810cf060652') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ba6ec2610c7c486fbd07931f76ec81b1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ba6ec2610c7c486fbd07931f76ec81b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ba6ec2610c7c486fbd07931f76ec81b1', x'0fa209a262934987bd9c96531a37723d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ba6ec2610c7c486fbd07931f76ec81b1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ba6ec2610c7c486fbd07931f76ec81b1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ba6ec2610c7c486fbd07931f76ec81b1', x'2514c8012021455b950749cc82e58b25', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a501d6fe5559426d8c423810cf060652' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a501d6fe5559426d8c423810cf060652' LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a501d6fe5559426d8c423810cf060652' LIMIT 1 Completed 404 Not Found in 2ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:12', 'teste@teste.com', '$2a$04$mS23gEJra6JkoQlpCDETOufzBC3lStPkeVVHg4XanyOomKdrAr6B2', NULL, x'73d4baf07ff145ebbbb2273d9f35b453', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:12') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'73d4baf07ff145ebbbb2273d9f35b453' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:12', 'User', x'a757f2c7b7594f1a83e400168aadec76', '8f9c5603917078878c0c8cdb9c258d2b', x'73d4baf07ff145ebbbb2273d9f35b453', 'User', '2012-12-31 12:34:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'73d4baf07ff145ebbbb2273d9f35b453' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'1a125d0ac27e4034a0a599378aad8e02', NULL, NULL, NULL, '2012-12-31 12:34:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account1a125d0a-c27e-4034-a0a5-99378aad8e02' WHERE `accounts`.`id` = x'1a125d0ac27e4034a0a599378aad8e02' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1a125d0ac27e4034a0a599378aad8e02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1a125d0ac27e4034a0a599378aad8e02', x'138ef0783d8d4526b587737092a59550', x'73d4baf07ff145ebbbb2273d9f35b453') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'138ef0783d8d4526b587737092a59550') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'138ef0783d8d4526b587737092a59550' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'138ef0783d8d4526b587737092a59550', x'd1f89711b5a14b0bbc2c248fdbabae00', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'138ef0783d8d4526b587737092a59550') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'138ef0783d8d4526b587737092a59550' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'138ef0783d8d4526b587737092a59550', x'7b81b8d06ce74bf4b1f4148dd1feacd5', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18644dc1c2_c6080435d48727d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'e78ad4481ac942a8a9fa3d278c23bebc', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'accounte78ad448-1ac9-42a8-a9fa-3d278c23bebc' WHERE `accounts`.`id` = x'e78ad4481ac942a8a9fa3d278c23bebc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e78ad4481ac942a8a9fa3d278c23bebc', x'9c3d4dce0dfe447197fa4077457cd032', x'73d4baf07ff145ebbbb2273d9f35b453') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9c3d4dce0dfe447197fa4077457cd032') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9c3d4dce0dfe447197fa4077457cd032' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9c3d4dce0dfe447197fa4077457cd032', x'5f0d54cb66274be1b282ccadc7ceb504', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9c3d4dce0dfe447197fa4077457cd032') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9c3d4dce0dfe447197fa4077457cd032' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9c3d4dce0dfe447197fa4077457cd032', x'f55051f89a7c482282e4323c34ba491a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'73d4baf07ff145ebbbb2273d9f35b453' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'73d4baf07ff145ebbbb2273d9f35b453' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:12', NULL, '--- !ruby/struct:DestroyUserJob\nid: 73d4baf0-7ff1-45eb-bbb2-273d9f35b453\n', NULL, NULL, NULL, 0, 'user_73d4baf0-7ff1-45eb-bbb2-273d9f35b453_destroy', '2012-12-31 12:34:12', '2012-12-31 12:34:12')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'73d4baf07ff145ebbbb2273d9f35b453' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_73d4baf0-7ff1-45eb-bbb2-273d9f35b453_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_73d4baf0-7ff1-45eb-bbb2-273d9f35b453_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_73d4baf0-7ff1-45eb-bbb2-273d9f35b453_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:12', 'teste@teste.com', '$2a$04$.wYfIrFdLQAVFsMHLukt4eIpFYsIA/aFx2WmyGlDz/p.6cxHsjrZC', NULL, x'3af7d92ee7bb449c9160578be80e394a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3af7d92ee7bb449c9160578be80e394a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:12', 'User', x'e223c5077ec744aab311b5e2c81f8357', '62b827976551ce67f251fa249600de31', x'3af7d92ee7bb449c9160578be80e394a', 'User', '2012-12-31 12:34:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3af7d92ee7bb449c9160578be80e394a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'c1f72dec024c452e8e1ef024d35d08f9', NULL, NULL, NULL, '2012-12-31 12:34:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'accountc1f72dec-024c-452e-8e1e-f024d35d08f9' WHERE `accounts`.`id` = x'c1f72dec024c452e8e1ef024d35d08f9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c1f72dec024c452e8e1ef024d35d08f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c1f72dec024c452e8e1ef024d35d08f9', x'addfb074380048e997a6b7a0a0991337', x'3af7d92ee7bb449c9160578be80e394a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'addfb074380048e997a6b7a0a0991337') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'addfb074380048e997a6b7a0a0991337' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'addfb074380048e997a6b7a0a0991337', x'cb05b60255bc41fda4d89237b40b7838', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'addfb074380048e997a6b7a0a0991337') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'addfb074380048e997a6b7a0a0991337' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'addfb074380048e997a6b7a0a0991337', x'78ae469024de4d5f817658b4b3d03ce4', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18644f06b7_c6080435d48728bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:12', x'613a18cf394c4339b85845adb9aaa35b', 'jabanilson', NULL, 1, '2012-12-31 12:34:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:12', `updated_at` = '2012-12-31 12:34:12', `subdomain` = 'account613a18cf-394c-4339-b858-45adb9aaa35b' WHERE `accounts`.`id` = x'613a18cf394c4339b85845adb9aaa35b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'613a18cf394c4339b85845adb9aaa35b', x'098ec35e84ef4d42b8d15f14614ba426', x'3af7d92ee7bb449c9160578be80e394a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'098ec35e84ef4d42b8d15f14614ba426') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'098ec35e84ef4d42b8d15f14614ba426' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'098ec35e84ef4d42b8d15f14614ba426', x'b836904ebb064f42afb418e96bcaf8d6', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'098ec35e84ef4d42b8d15f14614ba426') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'098ec35e84ef4d42b8d15f14614ba426' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'098ec35e84ef4d42b8d15f14614ba426', x'a3de3fbd023646708de71adea55cc4f3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3af7d92ee7bb449c9160578be80e394a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3af7d92ee7bb449c9160578be80e394a' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'1d612a6a78c647979e6c03235b749f23', 'twitter', NULL, '123123123', NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'3af7d92ee7bb449c9160578be80e394a' WHERE `social_accounts`.`id` = x'1d612a6a78c647979e6c03235b749f23'  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3af7d92ee7bb449c9160578be80e394a' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"1D612A6A78C647979E6C03235B749F23"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3af7d92ee7bb449c9160578be80e394a' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3af7d92ee7bb449c9160578be80e394a' AND `social_accounts`.`id` = x'1d612a6a78c647979e6c03235b749f23' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3af7d92ee7bb449c9160578be80e394a' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3af7d92ee7bb449c9160578be80e394a'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'1d612a6a78c647979e6c03235b749f23'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 1.8ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:13', 'teste@teste.com', '$2a$04$xMGxfsF1vTNRQtS3Z3OHJe0ZfVQygNOAK.CIoLM/KkTnXJO41wjiC', NULL, x'c5708914ca7c4db591125dccc846527c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c5708914ca7c4db591125dccc846527c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'034b8cfc89744c33854f4f0e97d0d6b7', '1ef27b65c035eb8182c46604a40084ba', x'c5708914ca7c4db591125dccc846527c', 'User', '2012-12-31 12:34:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c5708914ca7c4db591125dccc846527c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'5cd49bd056b242d9b92553f0ded2d3db', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account5cd49bd0-56b2-42d9-b925-53f0ded2d3db' WHERE `accounts`.`id` = x'5cd49bd056b242d9b92553f0ded2d3db' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5cd49bd056b242d9b92553f0ded2d3db' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5cd49bd056b242d9b92553f0ded2d3db', x'4041e7e235e54533a78fc1b6477abf6a', x'c5708914ca7c4db591125dccc846527c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4041e7e235e54533a78fc1b6477abf6a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4041e7e235e54533a78fc1b6477abf6a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4041e7e235e54533a78fc1b6477abf6a', x'dd7b5d024a50496daa477f65dde1d7c3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4041e7e235e54533a78fc1b6477abf6a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4041e7e235e54533a78fc1b6477abf6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4041e7e235e54533a78fc1b6477abf6a', x'c6e3460c32c34eb383ed547c76254b54', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:34:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186451349d_c6080435d487294@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'67d568270fa24909916d69daba42e054', 'jabanilson', NULL, 1, '2012-12-31 12:34:13')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account67d56827-0fa2-4909-916d-69daba42e054' WHERE `accounts`.`id` = x'67d568270fa24909916d69daba42e054'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'67d568270fa24909916d69daba42e054', x'd7ba600319c644b19f2bf7c04257f766', x'c5708914ca7c4db591125dccc846527c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd7ba600319c644b19f2bf7c04257f766') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd7ba600319c644b19f2bf7c04257f766' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd7ba600319c644b19f2bf7c04257f766', x'f4a168ab835a45e09975e0f98c5ca16e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd7ba600319c644b19f2bf7c04257f766') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd7ba600319c644b19f2bf7c04257f766' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd7ba600319c644b19f2bf7c04257f766', x'1db1a712ced74fa1832b12cf8e6d31c5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5708914ca7c4db591125dccc846527c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5708914ca7c4db591125dccc846527c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'7b74c70ea6f642e59478b45b7f2537ac', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'c5708914ca7c4db591125dccc846527c' WHERE `social_accounts`.`id` = x'7b74c70ea6f642e59478b45b7f2537ac'  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c5708914ca7c4db591125dccc846527c' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"7B74C70EA6F642E59478B45B7F2537AC"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c5708914ca7c4db591125dccc846527c' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c5708914ca7c4db591125dccc846527c' AND `social_accounts`.`id` = x'7b74c70ea6f642e59478b45b7f2537ac' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c5708914ca7c4db591125dccc846527c' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c5708914ca7c4db591125dccc846527c'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'7b74c70ea6f642e59478b45b7f2537ac'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:13', 'teste@teste.com', '$2a$04$jMdfgvF16VH3XgaBOCMBJOjE72eGuYfzLtVYld4CuZTyf1mXAb8u6', NULL, x'31efe3bb9161480b953269fddd0f6fe1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'31efe3bb9161480b953269fddd0f6fe1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'e640c706e6c6444ba98fea0d1547ba68', '92ee3cb69b53563f9b3b25f3693a77bb', x'31efe3bb9161480b953269fddd0f6fe1', 'User', '2012-12-31 12:34:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'31efe3bb9161480b953269fddd0f6fe1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'2f87f8822ddb4ca7b1d8f22ea2a0ae6c', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account2f87f882-2ddb-4ca7-b1d8-f22ea2a0ae6c' WHERE `accounts`.`id` = x'2f87f8822ddb4ca7b1d8f22ea2a0ae6c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2f87f8822ddb4ca7b1d8f22ea2a0ae6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2f87f8822ddb4ca7b1d8f22ea2a0ae6c', x'ffc334ea6c004067b4a6c898306ac124', x'31efe3bb9161480b953269fddd0f6fe1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ffc334ea6c004067b4a6c898306ac124') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ffc334ea6c004067b4a6c898306ac124' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ffc334ea6c004067b4a6c898306ac124', x'a12e0a391471480f84d9335f4073fac4', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ffc334ea6c004067b4a6c898306ac124') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ffc334ea6c004067b4a6c898306ac124' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ffc334ea6c004067b4a6c898306ac124', x'6dd8a3a1d7d14ecd96ab27894f48cf53', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864542518_c6080435d4873095@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'9f1d0c7d3cd34cfcab1d79e06d29b82b', 'jabanilson', NULL, 1, '2012-12-31 12:34:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account9f1d0c7d-3cd3-4cfc-ab1d-79e06d29b82b' WHERE `accounts`.`id` = x'9f1d0c7d3cd34cfcab1d79e06d29b82b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9f1d0c7d3cd34cfcab1d79e06d29b82b', x'32bf8779b21d4e7aaf6d45e91bc6794d', x'31efe3bb9161480b953269fddd0f6fe1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'32bf8779b21d4e7aaf6d45e91bc6794d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'32bf8779b21d4e7aaf6d45e91bc6794d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'32bf8779b21d4e7aaf6d45e91bc6794d', x'233884a76349473eb342da007480df84', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'32bf8779b21d4e7aaf6d45e91bc6794d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'32bf8779b21d4e7aaf6d45e91bc6794d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'32bf8779b21d4e7aaf6d45e91bc6794d', x'e5fa6778ece346988c2a167e2b5ba430', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31efe3bb9161480b953269fddd0f6fe1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31efe3bb9161480b953269fddd0f6fe1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8e4aecb78f1145cb929468ca83033588', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = x'31efe3bb9161480b953269fddd0f6fe1' WHERE `social_accounts`.`id` = x'8e4aecb78f1145cb929468ca83033588'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'41e99051ea514407a9bdb1e6fd7127ba', 'twitter', NULL, '123123123', NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:13', '2012-12-31 12:34:13', '', '$2a$04$7mxnhWu4yQLzEZqxCqyfcuIiVNia97ELse9WOeprU8aLPqChX7EZO', NULL, x'7852690bc2424d76a8ca7ae996fd33ef', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'7852690bc2424d76a8ca7ae996fd33ef' WHERE `social_accounts`.`id` = x'41e99051ea514407a9bdb1e6fd7127ba' ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7852690bc2424d76a8ca7ae996fd33ef' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'f70c667b563746c1bec1b1d99530431a', '9ede0a660bdf8ccdc7c0d6ed19a2e41f', x'7852690bc2424d76a8ca7ae996fd33ef', 'User', '2012-12-31 12:34:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7852690bc2424d76a8ca7ae996fd33ef' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'c1673cbcea2c44459e80e0ff2facd138', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'accountc1673cbc-ea2c-4445-9e80-e0ff2facd138' WHERE `accounts`.`id` = x'c1673cbcea2c44459e80e0ff2facd138' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c1673cbcea2c44459e80e0ff2facd138' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c1673cbcea2c44459e80e0ff2facd138', x'61c77e6a72414dff9510ffb2c2cb9095', x'7852690bc2424d76a8ca7ae996fd33ef') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'61c77e6a72414dff9510ffb2c2cb9095') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61c77e6a72414dff9510ffb2c2cb9095' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61c77e6a72414dff9510ffb2c2cb9095', x'90a6272eb0014d218e0970de06ee322d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'61c77e6a72414dff9510ffb2c2cb9095') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61c77e6a72414dff9510ffb2c2cb9095' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61c77e6a72414dff9510ffb2c2cb9095', x'09b003ec17cd4091b561e105bb178ddb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7852690bc2424d76a8ca7ae996fd33ef' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7852690bc2424d76a8ca7ae996fd33ef' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"41E99051EA514407A9BDB1E6FD7127BA"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7852690bc2424d76a8ca7ae996fd33ef' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7852690bc2424d76a8ca7ae996fd33ef' AND `social_accounts`.`id` = x'41e99051ea514407a9bdb1e6fd7127ba' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7852690bc2424d76a8ca7ae996fd33ef' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7852690bc2424d76a8ca7ae996fd33ef' Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:13', 'teste@teste.com', '$2a$04$OALTK8KfwbamPLF..bUeOubWFw/oLm2r.dfu4JeQ0QDpPCh/EkPbq', NULL, x'7a8067ebef34425098be9a7ed15e92ff', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7a8067ebef34425098be9a7ed15e92ff' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'76160d8a3e944750bd6d0d26fafdb323', '3b98dd4e64052c32267a75ac5f1873a4', x'7a8067ebef34425098be9a7ed15e92ff', 'User', '2012-12-31 12:34:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7a8067ebef34425098be9a7ed15e92ff' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'5e5108fb69754faf87ea6a1b3db77c0a', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account5e5108fb-6975-4faf-87ea-6a1b3db77c0a' WHERE `accounts`.`id` = x'5e5108fb69754faf87ea6a1b3db77c0a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5e5108fb69754faf87ea6a1b3db77c0a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e5108fb69754faf87ea6a1b3db77c0a', x'1823c81278e2444794cb2d25d236f0d0', x'7a8067ebef34425098be9a7ed15e92ff') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1823c81278e2444794cb2d25d236f0d0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1823c81278e2444794cb2d25d236f0d0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1823c81278e2444794cb2d25d236f0d0', x'3bc9d093458549aeb383c41b750149e8', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1823c81278e2444794cb2d25d236f0d0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1823c81278e2444794cb2d25d236f0d0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1823c81278e2444794cb2d25d236f0d0', x'a0bee3959deb44cc8920e162c7b70bf7', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186455d69c_c6080435d4873180@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'b2ef6a71fee449ada7deaf8a335411cb', 'jabanilson', NULL, 1, '2012-12-31 12:34:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'accountb2ef6a71-fee4-49ad-a7de-af8a335411cb' WHERE `accounts`.`id` = x'b2ef6a71fee449ada7deaf8a335411cb'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b2ef6a71fee449ada7deaf8a335411cb', x'7f51ddc6aeb14a23867a2306d22e7c4b', x'7a8067ebef34425098be9a7ed15e92ff') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7f51ddc6aeb14a23867a2306d22e7c4b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f51ddc6aeb14a23867a2306d22e7c4b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f51ddc6aeb14a23867a2306d22e7c4b', x'887df355fcd04a7086184baa1793645f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7f51ddc6aeb14a23867a2306d22e7c4b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f51ddc6aeb14a23867a2306d22e7c4b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f51ddc6aeb14a23867a2306d22e7c4b', x'344cdfbe563a47ec9c3a2477eb615f6e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7a8067ebef34425098be9a7ed15e92ff' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7a8067ebef34425098be9a7ed15e92ff' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'5263072e1b9e4dfc8d4defd90b452b8f', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'7a8067ebef34425098be9a7ed15e92ff' WHERE `social_accounts`.`id` = x'5263072e1b9e4dfc8d4defd90b452b8f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'c8608882309b424ca51c9c9c4e22e56f', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:13', '2012-12-31 12:34:13', '', '$2a$04$PVSaddCGYLhjw1OnibWhbeXh93uqfs13w5glTGzWg254Z6DKRxy4m', NULL, x'f7d9201e62364a269c274e64cdb820b5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.3ms) UPDATE `social_accounts` SET `user_id` = x'f7d9201e62364a269c274e64cdb820b5' WHERE `social_accounts`.`id` = x'c8608882309b424ca51c9c9c4e22e56f' ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f7d9201e62364a269c274e64cdb820b5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'a7b02739d51043f9bb70a3a8da635d9d', 'bc29b50025671c8635a0d75ca7e55203', x'f7d9201e62364a269c274e64cdb820b5', 'User', '2012-12-31 12:34:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f7d9201e62364a269c274e64cdb820b5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'e3bdd21fac8b47b0addbf7447968cb37', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'accounte3bdd21f-ac8b-47b0-addb-f7447968cb37' WHERE `accounts`.`id` = x'e3bdd21fac8b47b0addbf7447968cb37' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e3bdd21fac8b47b0addbf7447968cb37' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e3bdd21fac8b47b0addbf7447968cb37', x'ad837e793b6d4f3f96db89d17f05f668', x'f7d9201e62364a269c274e64cdb820b5') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ad837e793b6d4f3f96db89d17f05f668') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad837e793b6d4f3f96db89d17f05f668' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad837e793b6d4f3f96db89d17f05f668', x'fd10b88392c3499cab8941eb6da65158', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ad837e793b6d4f3f96db89d17f05f668') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad837e793b6d4f3f96db89d17f05f668' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad837e793b6d4f3f96db89d17f05f668', x'3c223ef6815f4a2ea6bfb107298db2ab', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f7d9201e62364a269c274e64cdb820b5' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7d9201e62364a269c274e64cdb820b5' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"C8608882309B424CA51C9C9C4E22E56F"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f7d9201e62364a269c274e64cdb820b5' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7d9201e62364a269c274e64cdb820b5' AND `social_accounts`.`id` = x'c8608882309b424ca51c9c9c4e22e56f' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f7d9201e62364a269c274e64cdb820b5' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7d9201e62364a269c274e64cdb820b5' Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (8.7ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:13', 'teste@teste.com', '$2a$04$w78xvJrW/.h1XDmzzrxEc..8k8Zn0GjgMkkRMLNIjBwrmQpgp.7Fu', NULL, x'057781883ae94844b58877e1432e3c27', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'057781883ae94844b58877e1432e3c27' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'0215b5d37a6c40b4a5db89421ba54a00', '05391b6abacdf350b19423d75b97e3e9', x'057781883ae94844b58877e1432e3c27', 'User', '2012-12-31 12:34:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'057781883ae94844b58877e1432e3c27' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'741394f77fc04c4d90ff621162e1fb5f', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account741394f7-7fc0-4c4d-90ff-621162e1fb5f' WHERE `accounts`.`id` = x'741394f77fc04c4d90ff621162e1fb5f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'741394f77fc04c4d90ff621162e1fb5f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'741394f77fc04c4d90ff621162e1fb5f', x'22313c53d9d94712b051721d5517ca2a', x'057781883ae94844b58877e1432e3c27') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'22313c53d9d94712b051721d5517ca2a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'22313c53d9d94712b051721d5517ca2a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'22313c53d9d94712b051721d5517ca2a', x'05699c6a14a2459a9c9e573a62ebe110', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'22313c53d9d94712b051721d5517ca2a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'22313c53d9d94712b051721d5517ca2a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'22313c53d9d94712b051721d5517ca2a', x'6e2b4ff85d75465d9baac7c47e993c62', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1864590efb_c6080435d48732a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'79bb4c28be894c7985b5442a64f9030e', 'jabanilson', NULL, 1, '2012-12-31 12:34:13')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account79bb4c28-be89-4c79-85b5-442a64f9030e' WHERE `accounts`.`id` = x'79bb4c28be894c7985b5442a64f9030e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'79bb4c28be894c7985b5442a64f9030e', x'6eba7cad65834716a02357259fa126b4', x'057781883ae94844b58877e1432e3c27') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6eba7cad65834716a02357259fa126b4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6eba7cad65834716a02357259fa126b4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6eba7cad65834716a02357259fa126b4', x'dc7e22901016401194d76e9a71b6c9e1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6eba7cad65834716a02357259fa126b4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6eba7cad65834716a02357259fa126b4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6eba7cad65834716a02357259fa126b4', x'814a1ea47eac4f9589ad9c0cde5c1c26', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'057781883ae94844b58877e1432e3c27' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'057781883ae94844b58877e1432e3c27' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'99d27458e88443a297fbf4fbb4687b0e', 'twitter', NULL, '123123123', NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'057781883ae94844b58877e1432e3c27' WHERE `social_accounts`.`id` = x'99d27458e88443a297fbf4fbb4687b0e'  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'057781883ae94844b58877e1432e3c27' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'057781883ae94844b58877e1432e3c27' AND `social_accounts`.`id` = x'00000000000039313238373339313237' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (11.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:13', 'teste@teste.com', '$2a$04$pwbK5FHWuiK/x8ZdRwgXAO8Qe5MHvc8rw6VF72qFw72xajc0bvDf2', NULL, x'5cce347d76da4861a7bdd50c906caf34', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5cce347d76da4861a7bdd50c906caf34' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'3b451e38717d4fd4b68b6a71c752b2fd', '48cac9796212b40a37b8f79149878c8d', x'5cce347d76da4861a7bdd50c906caf34', 'User', '2012-12-31 12:34:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5cce347d76da4861a7bdd50c906caf34' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'e40319dd0c2c4548a19fd3103bb3feb6', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'accounte40319dd-0c2c-4548-a19f-d3103bb3feb6' WHERE `accounts`.`id` = x'e40319dd0c2c4548a19fd3103bb3feb6' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e40319dd0c2c4548a19fd3103bb3feb6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e40319dd0c2c4548a19fd3103bb3feb6', x'1987d400be364faf880cfce7d9a20e92', x'5cce347d76da4861a7bdd50c906caf34') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1987d400be364faf880cfce7d9a20e92') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1987d400be364faf880cfce7d9a20e92' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1987d400be364faf880cfce7d9a20e92', x'53d10b0b26b6402895cabf9e04116e16', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1987d400be364faf880cfce7d9a20e92') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1987d400be364faf880cfce7d9a20e92' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1987d400be364faf880cfce7d9a20e92', x'a417257fcb5f43d89a2ecd636356a659', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18645a70cb_c6080435d48733ef@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'0761b019e3d14cdca8a6881b68b2bd91', 'jabanilson', NULL, 1, '2012-12-31 12:34:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account0761b019-e3d1-4cdc-a8a6-881b68b2bd91' WHERE `accounts`.`id` = x'0761b019e3d14cdca8a6881b68b2bd91'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0761b019e3d14cdca8a6881b68b2bd91', x'6a680a1177ca428997edcbd1d19dc405', x'5cce347d76da4861a7bdd50c906caf34') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6a680a1177ca428997edcbd1d19dc405') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6a680a1177ca428997edcbd1d19dc405' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6a680a1177ca428997edcbd1d19dc405', x'89b4d3654b214f44a68cb9789c9a7ea3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6a680a1177ca428997edcbd1d19dc405') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6a680a1177ca428997edcbd1d19dc405' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6a680a1177ca428997edcbd1d19dc405', x'42c9836d9d304b8c81960deacd09a715', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5cce347d76da4861a7bdd50c906caf34' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5cce347d76da4861a7bdd50c906caf34' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'1816597519c4419185982701450448b2', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'5cce347d76da4861a7bdd50c906caf34' WHERE `social_accounts`.`id` = x'1816597519c4419185982701450448b2'  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5cce347d76da4861a7bdd50c906caf34' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5cce347d76da4861a7bdd50c906caf34' AND `social_accounts`.`id` = x'00000000000039313238373339313237' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:13', 'teste@teste.com', '$2a$04$kpjHo/5DrEu74Lpv03Do5OcHC2PTNfuIW9T5K4YF2TEAUSy89pxRG', NULL, x'1ae0c2b05503489283fa57bc983abfcb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1ae0c2b05503489283fa57bc983abfcb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'234a8b1b9e2446d49f63bfc1810dbca7', '240a34a9033c57f9bad996f7f0512fd4', x'1ae0c2b05503489283fa57bc983abfcb', 'User', '2012-12-31 12:34:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1ae0c2b05503489283fa57bc983abfcb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'06d67f7c273744df85197b45458d887a', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account06d67f7c-2737-44df-8519-7b45458d887a' WHERE `accounts`.`id` = x'06d67f7c273744df85197b45458d887a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'06d67f7c273744df85197b45458d887a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'06d67f7c273744df85197b45458d887a', x'591f84d16f094046b9a4297a6a178727', x'1ae0c2b05503489283fa57bc983abfcb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'591f84d16f094046b9a4297a6a178727') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'591f84d16f094046b9a4297a6a178727' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'591f84d16f094046b9a4297a6a178727', x'171d54d60e93471e88487355f482ea5f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'591f84d16f094046b9a4297a6a178727') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'591f84d16f094046b9a4297a6a178727' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'591f84d16f094046b9a4297a6a178727', x'9c0e310753cc4f7997960c3d4a723fdf', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:34:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18645ba2b7_c6080435d4873497@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'fcd71377f8484ed5be573b07c1e017e5', 'jabanilson', NULL, 1, '2012-12-31 12:34:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'accountfcd71377-f848-4ed5-be57-3b07c1e017e5' WHERE `accounts`.`id` = x'fcd71377f8484ed5be573b07c1e017e5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fcd71377f8484ed5be573b07c1e017e5', x'bc8ee37fd3af41e9a8ad2fea78bb87a3', x'1ae0c2b05503489283fa57bc983abfcb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bc8ee37fd3af41e9a8ad2fea78bb87a3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc8ee37fd3af41e9a8ad2fea78bb87a3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc8ee37fd3af41e9a8ad2fea78bb87a3', x'0b829cf0268f4c879cc0f6fe58345896', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bc8ee37fd3af41e9a8ad2fea78bb87a3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc8ee37fd3af41e9a8ad2fea78bb87a3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc8ee37fd3af41e9a8ad2fea78bb87a3', x'29d5d29e718c43659b47acdcf7fc2077', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1ae0c2b05503489283fa57bc983abfcb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1ae0c2b05503489283fa57bc983abfcb' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'f72a745cae65486da7e74c4bb807fc71', 'twitter', NULL, '123123123', NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'1ae0c2b05503489283fa57bc983abfcb' WHERE `social_accounts`.`id` = x'f72a745cae65486da7e74c4bb807fc71'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:13', '2012-12-31 12:34:13', '', '', 1, x'ecc0b5354b8044f2aeb12cf15dbb7ddc', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:34:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ecc0b5354b8044f2aeb12cf15dbb7ddc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'63207fca05d7445da40184140feee0b4', '435b00e255c41ff3852acb90522e1289', x'ecc0b5354b8044f2aeb12cf15dbb7ddc', 'User', '2012-12-31 12:34:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ecc0b5354b8044f2aeb12cf15dbb7ddc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'0586757448e143239125afeffafcfc6e', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'account05867574-48e1-4323-9125-afeffafcfc6e' WHERE `accounts`.`id` = x'0586757448e143239125afeffafcfc6e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0586757448e143239125afeffafcfc6e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0586757448e143239125afeffafcfc6e', x'f242f09bba9d4af5a7aa41b15b07736f', x'ecc0b5354b8044f2aeb12cf15dbb7ddc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f242f09bba9d4af5a7aa41b15b07736f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f242f09bba9d4af5a7aa41b15b07736f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f242f09bba9d4af5a7aa41b15b07736f', x'dccc8d00c0c84ac79a30cfdb6600a04a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f242f09bba9d4af5a7aa41b15b07736f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f242f09bba9d4af5a7aa41b15b07736f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f242f09bba9d4af5a7aa41b15b07736f', x'c4902c2fe6d24eb483aa0383b293ef21', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:13', NULL, '--- !ruby/struct:DestroyUserJob\nid: ecc0b535-4b80-44f2-aeb1-2cf15dbb7ddc\n', NULL, NULL, NULL, 0, 'guest_ecc0b535-4b80-44f2-aeb1-2cf15dbb7ddc_destroy', '2013-01-07 12:34:13', '2012-12-31 12:34:13')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ecc0b5354b8044f2aeb12cf15dbb7ddc' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ecc0b5354b8044f2aeb12cf15dbb7ddc' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'ecc0b5354b8044f2aeb12cf15dbb7ddc') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$UAaSZxby/StQ9oUYd/beh.DjWVVEDtZxRrjnoRXHVMBlqZk3OUtmy', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:34:13' WHERE `users`.`id` = x'ecc0b5354b8044f2aeb12cf15dbb7ddc' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '4oiwDv1xu4jNV9g6qrWv' LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$UAaSZxby/StQ9oUYd/beh.DjWVVEDtZxRrjnoRXHVMBlqZk3OUtmy', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:34:13', `confirmation_token` = '4oiwDv1xu4jNV9g6qrWv', `confirmation_sent_at` = '2012-12-31 12:34:13' WHERE `users`.`id` = x'ecc0b5354b8044f2aeb12cf15dbb7ddc' Sent mail to regular@user.email (7ms) Date: Mon, 31 Dec 2012 10:34:13 -0200 From: Iugu Reply-To: Iugu To: regular@user.email Message-ID: <50e18645d052b_c6080435d487353e@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_ecc0b535-4b80-44f2-aeb1-2cf15dbb7ddc_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ecc0b5354b8044f2aeb12cf15dbb7ddc' AND (accounts.id = x'06d67f7c273744df85197b45458d887a') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ecc0b5354b8044f2aeb12cf15dbb7ddc' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 46ms (ActiveRecord: 3.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:13', 'teste@teste.com', '$2a$04$AiC84X8SdrLO29RQ4m1.Q.BvgGEoDBnkWSaR7DA4VZDqdcjPzTLCy', NULL, x'3bcbff541b084cce94e144ed5fca3cd9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:13') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3bcbff541b084cce94e144ed5fca3cd9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:13', 'User', x'18000c0fb8e5416bbe96dd94fb45cd31', 'e42e7065382bf81c7de30583b2f98bb4', x'3bcbff541b084cce94e144ed5fca3cd9', 'User', '2012-12-31 12:34:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3bcbff541b084cce94e144ed5fca3cd9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:13', x'eea43869d8f74304acbb14392ddafb70', NULL, NULL, NULL, '2012-12-31 12:34:13')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:13', `updated_at` = '2012-12-31 12:34:13', `subdomain` = 'accounteea43869-d8f7-4304-acbb-14392ddafb70' WHERE `accounts`.`id` = x'eea43869d8f74304acbb14392ddafb70' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eea43869d8f74304acbb14392ddafb70' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eea43869d8f74304acbb14392ddafb70', x'3cd962efac9044b9b25918c091493fad', x'3bcbff541b084cce94e144ed5fca3cd9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3cd962efac9044b9b25918c091493fad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3cd962efac9044b9b25918c091493fad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3cd962efac9044b9b25918c091493fad', x'7da697e6dd004e18befa49cde87d1404', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3cd962efac9044b9b25918c091493fad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3cd962efac9044b9b25918c091493fad' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3cd962efac9044b9b25918c091493fad', x'1926e30d5ec346ddb2ef3ea8e21528ba', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186461cee_c6080435d48736e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'c35dff565c5343519f5202af93f04014', 'jabanilson', NULL, 1, '2012-12-31 12:34:14')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'accountc35dff56-5c53-4351-9f52-02af93f04014' WHERE `accounts`.`id` = x'c35dff565c5343519f5202af93f04014'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c35dff565c5343519f5202af93f04014', x'69bb9b47c3444eb28aa0978bcb5a62f1', x'3bcbff541b084cce94e144ed5fca3cd9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'69bb9b47c3444eb28aa0978bcb5a62f1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'69bb9b47c3444eb28aa0978bcb5a62f1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'69bb9b47c3444eb28aa0978bcb5a62f1', x'dd8d778e45984117b990581af662b00e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'69bb9b47c3444eb28aa0978bcb5a62f1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'69bb9b47c3444eb28aa0978bcb5a62f1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'69bb9b47c3444eb28aa0978bcb5a62f1', x'e8bc6d28608a40d0a9f86cd666c079ad', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3bcbff541b084cce94e144ed5fca3cd9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3bcbff541b084cce94e144ed5fca3cd9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'f670bd82840c4b438a1126f98028b4e0', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'3bcbff541b084cce94e144ed5fca3cd9' WHERE `social_accounts`.`id` = x'f670bd82840c4b438a1126f98028b4e0'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:14', '2012-12-31 12:34:14', '', '', 1, x'2fd17489feb540e288b743d99a280a02', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:34:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2fd17489feb540e288b743d99a280a02' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:14', 'User', x'4f16d9f655034ad6b8ac2d48d4913ba1', 'c56c011104af4a81c3fbe5fee6019d13', x'2fd17489feb540e288b743d99a280a02', 'User', '2012-12-31 12:34:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2fd17489feb540e288b743d99a280a02' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'cd01886fc8424347a34a32ba926ac8e0', NULL, NULL, NULL, '2012-12-31 12:34:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'accountcd01886f-c842-4347-a34a-32ba926ac8e0' WHERE `accounts`.`id` = x'cd01886fc8424347a34a32ba926ac8e0' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cd01886fc8424347a34a32ba926ac8e0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cd01886fc8424347a34a32ba926ac8e0', x'efa916cdfc22495fa319e332d6195bfb', x'2fd17489feb540e288b743d99a280a02') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'efa916cdfc22495fa319e332d6195bfb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efa916cdfc22495fa319e332d6195bfb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efa916cdfc22495fa319e332d6195bfb', x'9892b4a67a7f40838371099cda1c4e2d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'efa916cdfc22495fa319e332d6195bfb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efa916cdfc22495fa319e332d6195bfb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efa916cdfc22495fa319e332d6195bfb', x'4d3a1efb5229448f8086ff9dda9684d4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:14', NULL, '--- !ruby/struct:DestroyUserJob\nid: 2fd17489-feb5-40e2-88b7-43d99a280a02\n', NULL, NULL, NULL, 0, 'guest_2fd17489-feb5-40e2-88b7-43d99a280a02_destroy', '2013-01-07 12:34:14', '2012-12-31 12:34:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2fd17489feb540e288b743d99a280a02' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2fd17489feb540e288b743d99a280a02' User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'2fd17489feb540e288b743d99a280a02') LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$42uWOa4ChYOPdF1zoOPPO.GmXdCzyTC2vTl7i/tL2ayRec8AFgsaq', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:34:14' WHERE `users`.`id` = x'2fd17489feb540e288b743d99a280a02' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'CJe3TsLYJy3sDAaq2x4D' LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$42uWOa4ChYOPdF1zoOPPO.GmXdCzyTC2vTl7i/tL2ayRec8AFgsaq', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:34:14', `confirmation_token` = 'CJe3TsLYJy3sDAaq2x4D', `confirmation_sent_at` = '2012-12-31 12:34:14' WHERE `users`.`id` = x'2fd17489feb540e288b743d99a280a02' Sent mail to regular@user.email (7ms) Date: Mon, 31 Dec 2012 10:34:14 -0200 From: Iugu Reply-To: Iugu To: regular@user.email Message-ID: <50e1864616a64_c6080435d487372b@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2fd17489-feb5-40e2-88b7-43d99a280a02_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2fd17489feb540e288b743d99a280a02' AND (accounts.id = x'eea43869d8f74304acbb14392ddafb70') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2fd17489feb540e288b743d99a280a02' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 40ms (ActiveRecord: 3.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:14', 'teste@teste.com', '$2a$04$EFTzUJap7/D6tVaRodA/ou8zb8qPapw65asiIMBLGcLSqcjV5FA9G', NULL, x'56ac5dca9cbc47ef92d3245ed0f3e7fe', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'56ac5dca9cbc47ef92d3245ed0f3e7fe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:14', 'User', x'33a1ae59a04246239050b20ea5dc1fde', 'e9216f669ca456d407aa45d04f396bd7', x'56ac5dca9cbc47ef92d3245ed0f3e7fe', 'User', '2012-12-31 12:34:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'56ac5dca9cbc47ef92d3245ed0f3e7fe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'496bd828001f4986bf4dbaf09ef05904', NULL, NULL, NULL, '2012-12-31 12:34:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'account496bd828-001f-4986-bf4d-baf09ef05904' WHERE `accounts`.`id` = x'496bd828001f4986bf4dbaf09ef05904' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'496bd828001f4986bf4dbaf09ef05904' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'496bd828001f4986bf4dbaf09ef05904', x'1b5c84b6b721469488d536058c305b55', x'56ac5dca9cbc47ef92d3245ed0f3e7fe') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1b5c84b6b721469488d536058c305b55') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b5c84b6b721469488d536058c305b55' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b5c84b6b721469488d536058c305b55', x'376e73d0e74d4a11a4efc836b3a67db5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1b5c84b6b721469488d536058c305b55') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b5c84b6b721469488d536058c305b55' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b5c84b6b721469488d536058c305b55', x'484d03fecabd48a6b0419e6c4462c3f0', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18646265e9_c6080435d48738eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'cdabf2be0683459bbd86f08d788de9a5', 'jabanilson', NULL, 1, '2012-12-31 12:34:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'accountcdabf2be-0683-459b-bd86-f08d788de9a5' WHERE `accounts`.`id` = x'cdabf2be0683459bbd86f08d788de9a5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cdabf2be0683459bbd86f08d788de9a5', x'868c78f3f55546659e3422042b1a937b', x'56ac5dca9cbc47ef92d3245ed0f3e7fe') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'868c78f3f55546659e3422042b1a937b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'868c78f3f55546659e3422042b1a937b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'868c78f3f55546659e3422042b1a937b', x'd86bf71cad3745e9a213f6df0f935a1b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'868c78f3f55546659e3422042b1a937b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'868c78f3f55546659e3422042b1a937b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'868c78f3f55546659e3422042b1a937b', x'a219afcc6a064b68bdf1fbbb012357a3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56ac5dca9cbc47ef92d3245ed0f3e7fe' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56ac5dca9cbc47ef92d3245ed0f3e7fe' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'f172f0dd75c34898a87dc58a599d23e9', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'56ac5dca9cbc47ef92d3245ed0f3e7fe' WHERE `social_accounts`.`id` = x'f172f0dd75c34898a87dc58a599d23e9'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:14', '2012-12-31 12:34:14', '', '', 1, x'f0a2f54d65584bc9ac0e2cc860a6740d', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:34:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f0a2f54d65584bc9ac0e2cc860a6740d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:14', 'User', x'b82b63a27b0b4664a9f7911e738ee443', 'ad2ae0216c75f15156d80a016f176d53', x'f0a2f54d65584bc9ac0e2cc860a6740d', 'User', '2012-12-31 12:34:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f0a2f54d65584bc9ac0e2cc860a6740d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'a1ec31da31d54c789b3622d5660afb07', NULL, NULL, NULL, '2012-12-31 12:34:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'accounta1ec31da-31d5-4c78-9b36-22d5660afb07' WHERE `accounts`.`id` = x'a1ec31da31d54c789b3622d5660afb07' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a1ec31da31d54c789b3622d5660afb07' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a1ec31da31d54c789b3622d5660afb07', x'046cfadee97c4a19916d256da0d79c8f', x'f0a2f54d65584bc9ac0e2cc860a6740d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'046cfadee97c4a19916d256da0d79c8f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'046cfadee97c4a19916d256da0d79c8f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'046cfadee97c4a19916d256da0d79c8f', x'd78cb232343c4ad1904bad846a30b1ac', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'046cfadee97c4a19916d256da0d79c8f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'046cfadee97c4a19916d256da0d79c8f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'046cfadee97c4a19916d256da0d79c8f', x'6019cea477a24aa3a5d5530430e3bb35', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:14', NULL, '--- !ruby/struct:DestroyUserJob\nid: f0a2f54d-6558-4bc9-ac0e-2cc860a6740d\n', NULL, NULL, NULL, 0, 'guest_f0a2f54d-6558-4bc9-ac0e-2cc860a6740d_destroy', '2013-01-07 12:34:14', '2012-12-31 12:34:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f0a2f54d65584bc9ac0e2cc860a6740d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f0a2f54d65584bc9ac0e2cc860a6740d' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'f0a2f54d65584bc9ac0e2cc860a6740d') LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$g0R8oBX6iAopGLQK8rS8suqdDIUSvfTw.h8h8OmhGpPR8hTQSgivu', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:34:14' WHERE `users`.`id` = x'f0a2f54d65584bc9ac0e2cc860a6740d' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'zzX9RXYNvDzp17BKLxHn' LIMIT 1  (0.2ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$g0R8oBX6iAopGLQK8rS8suqdDIUSvfTw.h8h8OmhGpPR8hTQSgivu', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:34:14', `confirmation_token` = 'zzX9RXYNvDzp17BKLxHn', `confirmation_sent_at` = '2012-12-31 12:34:14' WHERE `users`.`id` = x'f0a2f54d65584bc9ac0e2cc860a6740d' Sent mail to regular@user.email (7ms) Date: Mon, 31 Dec 2012 10:34:14 -0200 From: Iugu Reply-To: Iugu To: regular@user.email Message-ID: <50e186463ad52_c6080435d48739c3@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_f0a2f54d-6558-4bc9-ac0e-2cc860a6740d_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f0a2f54d65584bc9ac0e2cc860a6740d' AND (accounts.id = x'496bd828001f4986bf4dbaf09ef05904') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f0a2f54d65584bc9ac0e2cc860a6740d' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 39ms (ActiveRecord: 4.1ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:14', 'teste@teste.com', '$2a$04$Q7sSQ5pzlCgpmVYdYy7OCO8VBcmehFL0WOcpBZc9/e/gUFmQfwsqu', NULL, x'109d48884b87410cb8b64222ef32139e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'109d48884b87410cb8b64222ef32139e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:14', 'User', x'5e496911561040bfa37ef57c869f30b7', '352f8dfae331e46ab62bd4c6454e6a5c', x'109d48884b87410cb8b64222ef32139e', 'User', '2012-12-31 12:34:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'109d48884b87410cb8b64222ef32139e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'9eda57f1ab6e434e87be06e262a8f2ae', NULL, NULL, NULL, '2012-12-31 12:34:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'account9eda57f1-ab6e-434e-87be-06e262a8f2ae' WHERE `accounts`.`id` = x'9eda57f1ab6e434e87be06e262a8f2ae' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9eda57f1ab6e434e87be06e262a8f2ae' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9eda57f1ab6e434e87be06e262a8f2ae', x'fef1d9a44fa4448780e3adaa8726777c', x'109d48884b87410cb8b64222ef32139e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fef1d9a44fa4448780e3adaa8726777c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fef1d9a44fa4448780e3adaa8726777c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fef1d9a44fa4448780e3adaa8726777c', x'c4f929f677824c53a6756bbaecbf2219', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fef1d9a44fa4448780e3adaa8726777c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fef1d9a44fa4448780e3adaa8726777c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fef1d9a44fa4448780e3adaa8726777c', x'9db930bb90b74798a0cf4347db0661e2', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18646619f4_c6080435d4874046@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'227250ea69454b279f72ce64caa939f7', 'jabanilson', NULL, 1, '2012-12-31 12:34:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'account227250ea-6945-4b27-9f72-ce64caa939f7' WHERE `accounts`.`id` = x'227250ea69454b279f72ce64caa939f7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'227250ea69454b279f72ce64caa939f7', x'00a2a74d4f444a1f8724e6f89b90d24f', x'109d48884b87410cb8b64222ef32139e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'00a2a74d4f444a1f8724e6f89b90d24f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'00a2a74d4f444a1f8724e6f89b90d24f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'00a2a74d4f444a1f8724e6f89b90d24f', x'9a69ba9cab4748e295486686be6ba126', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'00a2a74d4f444a1f8724e6f89b90d24f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'00a2a74d4f444a1f8724e6f89b90d24f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'00a2a74d4f444a1f8724e6f89b90d24f', x'18e1f53b26ca4bedaa83193358bc1e14', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'109d48884b87410cb8b64222ef32139e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'109d48884b87410cb8b64222ef32139e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'753b8dec905047089999d3c160462cfd', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'109d48884b87410cb8b64222ef32139e' WHERE `social_accounts`.`id` = x'753b8dec905047089999d3c160462cfd'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:14', '2012-12-31 12:34:14', '', '', 1, x'5132d67ff24847719925d0b2d490be5d', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:34:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5132d67ff24847719925d0b2d490be5d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:14', 'User', x'344b004f171b463c9b2a10004568cdf9', 'c47d7586aaa36240e42e51a48cae2b22', x'5132d67ff24847719925d0b2d490be5d', 'User', '2012-12-31 12:34:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5132d67ff24847719925d0b2d490be5d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'8af7e2c26d93439cbb9a00714bd41152', NULL, NULL, NULL, '2012-12-31 12:34:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'account8af7e2c2-6d93-439c-bb9a-00714bd41152' WHERE `accounts`.`id` = x'8af7e2c26d93439cbb9a00714bd41152' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8af7e2c26d93439cbb9a00714bd41152' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8af7e2c26d93439cbb9a00714bd41152', x'38c97f4c61c7404489fbfeb098ac8ac4', x'5132d67ff24847719925d0b2d490be5d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'38c97f4c61c7404489fbfeb098ac8ac4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'38c97f4c61c7404489fbfeb098ac8ac4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'38c97f4c61c7404489fbfeb098ac8ac4', x'0d7a490b125c4312b4d0215bd91561be', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'38c97f4c61c7404489fbfeb098ac8ac4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'38c97f4c61c7404489fbfeb098ac8ac4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'38c97f4c61c7404489fbfeb098ac8ac4', x'd882d513598b4f9abb05b077093808a5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:14', NULL, '--- !ruby/struct:DestroyUserJob\nid: 5132d67f-f248-4771-9925-d0b2d490be5d\n', NULL, NULL, NULL, 0, 'guest_5132d67f-f248-4771-9925-d0b2d490be5d_destroy', '2013-01-07 12:34:14', '2012-12-31 12:34:14')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5132d67ff24847719925d0b2d490be5d' LIMIT 1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:14', '2012-12-31 12:34:14', '', '', 1, x'91018f8e55cb4e34a238dab5ce6d15df', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:34:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'91018f8e55cb4e34a238dab5ce6d15df' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:14', 'User', x'1c376be021a2462897119bc09219b981', '21c2cf7147fefc796b55e9cc2f17a91b', x'91018f8e55cb4e34a238dab5ce6d15df', 'User', '2012-12-31 12:34:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'91018f8e55cb4e34a238dab5ce6d15df' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:14', x'fedb8a6f2251466b8c09ca0bf16e5142', NULL, NULL, NULL, '2012-12-31 12:34:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14', `subdomain` = 'accountfedb8a6f-2251-466b-8c09-ca0bf16e5142' WHERE `accounts`.`id` = x'fedb8a6f2251466b8c09ca0bf16e5142' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fedb8a6f2251466b8c09ca0bf16e5142' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fedb8a6f2251466b8c09ca0bf16e5142', x'7067343c03564399b59b0156ef93156b', x'91018f8e55cb4e34a238dab5ce6d15df') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7067343c03564399b59b0156ef93156b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7067343c03564399b59b0156ef93156b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7067343c03564399b59b0156ef93156b', x'667038e12cc143229899d779433ee3c8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7067343c03564399b59b0156ef93156b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7067343c03564399b59b0156ef93156b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7067343c03564399b59b0156ef93156b', x'a1802b9e7e5b45b586436e914f6d17f3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:34:14', NULL, '--- !ruby/struct:DestroyUserJob\nid: 91018f8e-55cb-4e34-a238-dab5ce6d15df\n', NULL, NULL, NULL, 0, 'guest_91018f8e-55cb-4e34-a238-dab5ce6d15df_destroy', '2013-01-07 12:34:14', '2012-12-31 12:34:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-12-31 12:34:14', `updated_at` = '2012-12-31 12:34:14' WHERE `users`.`id` = x'91018f8e55cb4e34a238dab5ce6d15df'  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'91018f8e55cb4e34a238dab5ce6d15df' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'91018f8e55cb4e34a238dab5ce6d15df' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 68ms (ActiveRecord: 5.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 29369ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:43', 'teste@teste.com', '$2a$04$90eI4tGwCF3ASf1HFj383O8fa3oYCYZtbuON8jxndZyG17AlawO9e', NULL, x'4917ac32de6d417eac5752da338b599e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4917ac32de6d417eac5752da338b599e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:43', 'User', x'165ab9f0e3ca44cea58ef76d54bb84a9', '4ad81202889dc0092bdbd4f14235d81e', x'4917ac32de6d417eac5752da338b599e', 'User', '2012-12-31 12:34:43') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4917ac32de6d417eac5752da338b599e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:43', x'ad273079b90a429381d88486bb543d26', NULL, NULL, NULL, '2012-12-31 12:34:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:43', `updated_at` = '2012-12-31 12:34:43', `subdomain` = 'accountad273079-b90a-4293-81d8-8486bb543d26' WHERE `accounts`.`id` = x'ad273079b90a429381d88486bb543d26' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ad273079b90a429381d88486bb543d26' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ad273079b90a429381d88486bb543d26', x'63f8c6d7b52a4399a3c0678c522574c5', x'4917ac32de6d417eac5752da338b599e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'63f8c6d7b52a4399a3c0678c522574c5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'63f8c6d7b52a4399a3c0678c522574c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'63f8c6d7b52a4399a3c0678c522574c5', x'0e1a909c1cb94a9d919c96e54867b51d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'63f8c6d7b52a4399a3c0678c522574c5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'63f8c6d7b52a4399a3c0678c522574c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'63f8c6d7b52a4399a3c0678c522574c5', x'393be18364544497aa0ab202b5f7cf84', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18663ec4a9_c6080435d487412b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:43', x'4873d0126d534ef2941a64906eac4c97', 'jabanilson', NULL, 1, '2012-12-31 12:34:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:43', `updated_at` = '2012-12-31 12:34:43', `subdomain` = 'account4873d012-6d53-4ef2-941a-64906eac4c97' WHERE `accounts`.`id` = x'4873d0126d534ef2941a64906eac4c97'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4873d0126d534ef2941a64906eac4c97', x'15b1617d13ff4b85991d2ba820d74987', x'4917ac32de6d417eac5752da338b599e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'15b1617d13ff4b85991d2ba820d74987') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'15b1617d13ff4b85991d2ba820d74987' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'15b1617d13ff4b85991d2ba820d74987', x'9c9b4e0a1de44f3ab33a98ca51f16dc9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'15b1617d13ff4b85991d2ba820d74987') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'15b1617d13ff4b85991d2ba820d74987' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'15b1617d13ff4b85991d2ba820d74987', x'a06994cd2fca4275890f062fc1058927', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4917ac32de6d417eac5752da338b599e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4917ac32de6d417eac5752da338b599e' LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4917ac32de6d417eac5752da338b599e' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (17.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'teste@teste.com', '$2a$04$.acktiEaoj1ZFEf8YtUxOOlouYiB7RK2JHNLtz0ewdjx3NQoeoc1u', NULL, x'ab90ee37367d4aaf8944c80f239dfbd4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ab90ee37367d4aaf8944c80f239dfbd4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'b3e21fe05de74f5b9feb5e851058d98d', 'e1f8d5f5eaee801456b8286369a10a99', x'ab90ee37367d4aaf8944c80f239dfbd4', 'User', '2012-12-31 12:34:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ab90ee37367d4aaf8944c80f239dfbd4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'640b74193ecc474c85544c2f327db9ea', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'account640b7419-3ecc-474c-8554-4c2f327db9ea' WHERE `accounts`.`id` = x'640b74193ecc474c85544c2f327db9ea' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'640b74193ecc474c85544c2f327db9ea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'640b74193ecc474c85544c2f327db9ea', x'9f1ab69b073748b6912d6442fe9374b2', x'ab90ee37367d4aaf8944c80f239dfbd4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9f1ab69b073748b6912d6442fe9374b2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f1ab69b073748b6912d6442fe9374b2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f1ab69b073748b6912d6442fe9374b2', x'5c0d976b951e494fa19c580acc26bcbb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9f1ab69b073748b6912d6442fe9374b2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f1ab69b073748b6912d6442fe9374b2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f1ab69b073748b6912d6442fe9374b2', x'e566d1546d8d4c4a811dd3ed53794410', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18664250b3_c6080435d4874265@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'c947320c9f6248458b1dba0906c757a2', 'jabanilson', NULL, 1, '2012-12-31 12:34:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'accountc947320c-9f62-4845-8b1d-ba0906c757a2' WHERE `accounts`.`id` = x'c947320c9f6248458b1dba0906c757a2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c947320c9f6248458b1dba0906c757a2', x'c945e858ef74429e83e1787ec1973372', x'ab90ee37367d4aaf8944c80f239dfbd4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c945e858ef74429e83e1787ec1973372') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c945e858ef74429e83e1787ec1973372' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c945e858ef74429e83e1787ec1973372', x'f9eacbcd5f7144c488dc58e0f25a330c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c945e858ef74429e83e1787ec1973372') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c945e858ef74429e83e1787ec1973372' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c945e858ef74429e83e1787ec1973372', x'e2d2bc89ebe244b4b0f08aa77ce605e0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ab90ee37367d4aaf8944c80f239dfbd4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ab90ee37367d4aaf8944c80f239dfbd4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'user2@email.email', '$2a$04$M0jL0SSBV89HdSSiKRliWevjD2aCkk5qnwf5qekgYOlAXIFaVf3xm', NULL, x'69d02dab96f249e6aa85849844589df9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'69d02dab96f249e6aa85849844589df9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'e145dffdb0114b369a184dbac7050695', 'c4569a44d4d6b8cb131cf96aa5d4815c', x'69d02dab96f249e6aa85849844589df9', 'User', '2012-12-31 12:34:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'69d02dab96f249e6aa85849844589df9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'669d5524ea544f41932672f6a4bb4780', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'account669d5524-ea54-4f41-9326-72f6a4bb4780' WHERE `accounts`.`id` = x'669d5524ea544f41932672f6a4bb4780' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'669d5524ea544f41932672f6a4bb4780' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'669d5524ea544f41932672f6a4bb4780', x'531a6484a11d4dc980e638314d75aeb7', x'69d02dab96f249e6aa85849844589df9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'531a6484a11d4dc980e638314d75aeb7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'531a6484a11d4dc980e638314d75aeb7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'531a6484a11d4dc980e638314d75aeb7', x'68f6de59ace448319961c7f0d70ea8a1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'531a6484a11d4dc980e638314d75aeb7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'531a6484a11d4dc980e638314d75aeb7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'531a6484a11d4dc980e638314d75aeb7', x'5d10f6d7daa04851918fc9c5666c0b80', 'admin') Sent mail to user2@email.email (8ms) Date: Mon, 31 Dec 2012 10:34:44 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e186643531b_c6080435d4874337@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ab90ee37367d4aaf8944c80f239dfbd4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'640b74193ecc474c85544c2f327db9ea' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'640b74193ecc474c85544c2f327db9ea', x'fa0e19570bd34214a677848347f7b56f', x'69d02dab96f249e6aa85849844589df9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fa0e19570bd34214a677848347f7b56f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fa0e19570bd34214a677848347f7b56f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fa0e19570bd34214a677848347f7b56f', x'deaf431691654f2ab167e1b2a4cbb481', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fa0e19570bd34214a677848347f7b56f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fa0e19570bd34214a677848347f7b56f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fa0e19570bd34214a677848347f7b56f', x'36db47c80dd24dfc8fece75a7ec113b4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ab90ee37367d4aaf8944c80f239dfbd4' AND `account_users`.`account_id` = x'640b74193ecc474c85544c2f327db9ea' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f1ab69b073748b6912d6442fe9374b2'  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f1ab69b073748b6912d6442fe9374b2' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'd t>ÌGL…TL/2}¹ê' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'5c0d976b951e494fa19c580acc26bcbb' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e566d1546d8d4c4a811dd3ed53794410'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9f1ab69b073748b6912d6442fe9374b2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f1ab69b073748b6912d6442fe9374b2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f1ab69b073748b6912d6442fe9374b2', x'5510ba379d0f4643927cba5486546e8a', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"640B74193ECC474C85544C2F327DB9EA"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ab90ee37367d4aaf8944c80f239dfbd4' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ab90ee37367d4aaf8944c80f239dfbd4' AND `account_users`.`account_id` = x'640b74193ecc474c85544c2f327db9ea' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f1ab69b073748b6912d6442fe9374b2' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f1ab69b073748b6912d6442fe9374b2' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.1ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"640B74193ECC474C85544C2F327DB9EA"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ab90ee37367d4aaf8944c80f239dfbd4' AND `account_users`.`account_id` = x'640b74193ecc474c85544c2f327db9ea' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f1ab69b073748b6912d6442fe9374b2' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f1ab69b073748b6912d6442fe9374b2' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'teste@teste.com', '$2a$04$bCKy6Wj2G1Jm.b0fCwOkpON5Lwe0vTqKdjxZ.GrtwmghEdwibNKUO', NULL, x'cacc443f8ca3475cbe1ca59ecfa52a77', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'2283b31eb9284db4b5b21e5a576b88fe', '2b00a7cd3883a7db1710b5a0de84fc16', x'cacc443f8ca3475cbe1ca59ecfa52a77', 'User', '2012-12-31 12:34:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'ed387a7d499e4224b83c6574daa22887', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'accounted387a7d-499e-4224-b83c-6574daa22887' WHERE `accounts`.`id` = x'ed387a7d499e4224b83c6574daa22887' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ed387a7d499e4224b83c6574daa22887' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ed387a7d499e4224b83c6574daa22887', x'f7ff8467aaa34151a56bc893f5a201dd', x'cacc443f8ca3475cbe1ca59ecfa52a77') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f7ff8467aaa34151a56bc893f5a201dd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7ff8467aaa34151a56bc893f5a201dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7ff8467aaa34151a56bc893f5a201dd', x'e2c110b923444b7f9b0592e89059bf3e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f7ff8467aaa34151a56bc893f5a201dd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7ff8467aaa34151a56bc893f5a201dd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7ff8467aaa34151a56bc893f5a201dd', x'140367a394034fbb962dc9561168ca1e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e186644f5fd_c6080435d48744cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'62baff92fbaf41e49f7ac87db5ae26b9', 'jabanilson', NULL, 1, '2012-12-31 12:34:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'account62baff92-fbaf-41e4-9f7a-c87db5ae26b9' WHERE `accounts`.`id` = x'62baff92fbaf41e49f7ac87db5ae26b9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'62baff92fbaf41e49f7ac87db5ae26b9', x'177f3f06effc4ddb8537972deb745f1e', x'cacc443f8ca3475cbe1ca59ecfa52a77') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'177f3f06effc4ddb8537972deb745f1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'177f3f06effc4ddb8537972deb745f1e', x'19e56ef8006047d5bcc1014cd1e7edbd', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'177f3f06effc4ddb8537972deb745f1e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'177f3f06effc4ddb8537972deb745f1e', x'2106117b186041208159b6740ef648c0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'user2@email.email', '$2a$04$.9twkpLiCFgW5FGgR5Pdb.l.SxKTFll2UBgyXxBZAukDO/1SMfH5S', NULL, x'966231df9ef0407e8076aa68e0d1ea1f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'966231df9ef0407e8076aa68e0d1ea1f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'931a4a33472547678eb77e77c5153efc', '927deabc6814c552ffb7c4d6f93d5755', x'966231df9ef0407e8076aa68e0d1ea1f', 'User', '2012-12-31 12:34:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'966231df9ef0407e8076aa68e0d1ea1f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'24a463b81bb14729ba272752159f4966', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'account24a463b8-1bb1-4729-ba27-2752159f4966' WHERE `accounts`.`id` = x'24a463b81bb14729ba272752159f4966' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'24a463b81bb14729ba272752159f4966' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'24a463b81bb14729ba272752159f4966', x'b10c6ef02ab049b2a88a849b8053cbfa', x'966231df9ef0407e8076aa68e0d1ea1f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b10c6ef02ab049b2a88a849b8053cbfa') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b10c6ef02ab049b2a88a849b8053cbfa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b10c6ef02ab049b2a88a849b8053cbfa', x'853f4855bf37447286930eb0fbf2ded9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b10c6ef02ab049b2a88a849b8053cbfa') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b10c6ef02ab049b2a88a849b8053cbfa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b10c6ef02ab049b2a88a849b8053cbfa', x'9071e4481cb749d6aa3830cdce570fe1', 'admin') Sent mail to user2@email.email (6ms) Date: Mon, 31 Dec 2012 10:34:44 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e1866476cee_c6080435d4874539@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'62baff92fbaf41e49f7ac87db5ae26b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'62baff92fbaf41e49f7ac87db5ae26b9', x'58a38d438ab9418bbff4da2c1e0216d0', x'966231df9ef0407e8076aa68e0d1ea1f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'58a38d438ab9418bbff4da2c1e0216d0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'58a38d438ab9418bbff4da2c1e0216d0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'58a38d438ab9418bbff4da2c1e0216d0', x'629a3d0adb954522b1125cabc9148cdd', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'58a38d438ab9418bbff4da2c1e0216d0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'58a38d438ab9418bbff4da2c1e0216d0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'58a38d438ab9418bbff4da2c1e0216d0', x'e22101be868d40b99274c45164617236', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' AND `account_users`.`account_id` = x'62baff92fbaf41e49f7ac87db5ae26b9' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'177f3f06effc4ddb8537972deb745f1e' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'bºÿ’û¯AäŸzÈ}µ®&¹' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'19e56ef8006047d5bcc1014cd1e7edbd' SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2106117b186041208159b6740ef648c0'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'177f3f06effc4ddb8537972deb745f1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'177f3f06effc4ddb8537972deb745f1e', x'ce5fc913350945338db0c5fff55a086f', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"62BAFF92FBAF41E49F7AC87DB5AE26B9"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' AND `account_users`.`account_id` = x'62baff92fbaf41e49f7ac87db5ae26b9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.1ms)  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'bºÿ’û¯AäŸzÈ}µ®&¹' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ce5fc913350945338db0c5fff55a086f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'177f3f06effc4ddb8537972deb745f1e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'177f3f06effc4ddb8537972deb745f1e', x'345a97b215b04fe1bb061a1d5b00b4b5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"62BAFF92FBAF41E49F7AC87DB5AE26B9"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cacc443f8ca3475cbe1ca59ecfa52a77' AND `account_users`.`account_id` = x'62baff92fbaf41e49f7ac87db5ae26b9' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'177f3f06effc4ddb8537972deb745f1e' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'teste@teste.com', '$2a$04$Y6Ll0.zCWMBAM5hjLvQC3uECuQPSLx28GBqfNgCYXngela0dUMi2C', NULL, x'0abef7d67ec947a9bca9f79381a50b27', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0abef7d67ec947a9bca9f79381a50b27' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'c43b12f429004b0e9e25565bb56d6f5f', '1b81a508c1b7bd11baafae33fb567755', x'0abef7d67ec947a9bca9f79381a50b27', 'User', '2012-12-31 12:34:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0abef7d67ec947a9bca9f79381a50b27' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'd7948c7a37944eb283a56b0e328ad60c', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'accountd7948c7a-3794-4eb2-83a5-6b0e328ad60c' WHERE `accounts`.`id` = x'd7948c7a37944eb283a56b0e328ad60c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd7948c7a37944eb283a56b0e328ad60c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd7948c7a37944eb283a56b0e328ad60c', x'875cb21cdd434dd59a96ca759387cd4e', x'0abef7d67ec947a9bca9f79381a50b27') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'875cb21cdd434dd59a96ca759387cd4e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'875cb21cdd434dd59a96ca759387cd4e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'875cb21cdd434dd59a96ca759387cd4e', x'16aac6cd38da4a15aa941bf694f8e02e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'875cb21cdd434dd59a96ca759387cd4e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'875cb21cdd434dd59a96ca759387cd4e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'875cb21cdd434dd59a96ca759387cd4e', x'79e7f7aa739448f59771fc67fb6950af', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18664911e9_c6080435d487468e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'f171a92f5eec44a2a70b425d8ae30936', 'jabanilson', NULL, 1, '2012-12-31 12:34:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'accountf171a92f-5eec-44a2-a70b-425d8ae30936' WHERE `accounts`.`id` = x'f171a92f5eec44a2a70b425d8ae30936'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f171a92f5eec44a2a70b425d8ae30936', x'5417b30ffc62430187aab670d4d538b9', x'0abef7d67ec947a9bca9f79381a50b27') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5417b30ffc62430187aab670d4d538b9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5417b30ffc62430187aab670d4d538b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5417b30ffc62430187aab670d4d538b9', x'bcaf83c07a214279bdb36ad63206f603', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5417b30ffc62430187aab670d4d538b9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5417b30ffc62430187aab670d4d538b9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5417b30ffc62430187aab670d4d538b9', x'c6156a9f080f40799173f78998dfc87f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0abef7d67ec947a9bca9f79381a50b27' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0abef7d67ec947a9bca9f79381a50b27' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'user2@email.email', '$2a$04$USUag7S25WZWFoO0H7tC3Ov/EcN1ZThft/AauTECVmguy13vvmEyu', NULL, x'35e86e9200f245de946db746491c47e3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'35e86e9200f245de946db746491c47e3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'7cad5e254e89440081ed399311343a04', '36ec022f13a53daf0ded238bc02692f3', x'35e86e9200f245de946db746491c47e3', 'User', '2012-12-31 12:34:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'35e86e9200f245de946db746491c47e3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'70425f51d7bd47c5b392bf150dbe8f14', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'account70425f51-d7bd-47c5-b392-bf150dbe8f14' WHERE `accounts`.`id` = x'70425f51d7bd47c5b392bf150dbe8f14' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'70425f51d7bd47c5b392bf150dbe8f14' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'70425f51d7bd47c5b392bf150dbe8f14', x'9e40f9e27b374fed930e17ae7bdb2265', x'35e86e9200f245de946db746491c47e3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9e40f9e27b374fed930e17ae7bdb2265') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e40f9e27b374fed930e17ae7bdb2265' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e40f9e27b374fed930e17ae7bdb2265', x'f60284f42d8f4612b379ac6eabfee295', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9e40f9e27b374fed930e17ae7bdb2265') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e40f9e27b374fed930e17ae7bdb2265' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e40f9e27b374fed930e17ae7bdb2265', x'1726e3c957d64c65ad5641b16070840c', 'admin') Sent mail to user2@email.email (7ms) Date: Mon, 31 Dec 2012 10:34:44 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e18664a16b9_c6080435d48747d6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0abef7d67ec947a9bca9f79381a50b27' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f171a92f5eec44a2a70b425d8ae30936' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f171a92f5eec44a2a70b425d8ae30936', x'e5d8904777fd4669b8fc666a7040ecb3', x'35e86e9200f245de946db746491c47e3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e5d8904777fd4669b8fc666a7040ecb3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e5d8904777fd4669b8fc666a7040ecb3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e5d8904777fd4669b8fc666a7040ecb3', x'00c0710b206241949464716351455580', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e5d8904777fd4669b8fc666a7040ecb3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e5d8904777fd4669b8fc666a7040ecb3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e5d8904777fd4669b8fc666a7040ecb3', x'f6d78cd5f241432fb14bbdc2b70a2ae1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0abef7d67ec947a9bca9f79381a50b27' AND `account_users`.`account_id` = x'f171a92f5eec44a2a70b425d8ae30936' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5417b30ffc62430187aab670d4d538b9'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5417b30ffc62430187aab670d4d538b9' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ñq©/^ìD¢§ B]Šã 6' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'bcaf83c07a214279bdb36ad63206f603' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c6156a9f080f40799173f78998dfc87f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5417b30ffc62430187aab670d4d538b9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5417b30ffc62430187aab670d4d538b9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5417b30ffc62430187aab670d4d538b9', x'd33a9399ca2f444c9be8c646f9495312', 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"F171A92F5EEC44A2A70B425D8AE30936"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0abef7d67ec947a9bca9f79381a50b27' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0abef7d67ec947a9bca9f79381a50b27' AND `account_users`.`account_id` = x'f171a92f5eec44a2a70b425d8ae30936' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5417b30ffc62430187aab670d4d538b9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5417b30ffc62430187aab670d4d538b9' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.2ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"F171A92F5EEC44A2A70B425D8AE30936"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0abef7d67ec947a9bca9f79381a50b27' AND `account_users`.`account_id` = x'f171a92f5eec44a2a70b425d8ae30936' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5417b30ffc62430187aab670d4d538b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 0.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'teste@teste.com', '$2a$04$FL.ZrxVz2nu7yzlWclJOmeWqr19c9/lv5qt3/9sr5wKK.TULqYfi2', NULL, x'f3bc81a697344665b33cdfc564d6e9d7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f3bc81a697344665b33cdfc564d6e9d7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'125089d6a09140eaa09755c12a8f1070', 'e3f276da28502afb8d85dc74fc82fd0a', x'f3bc81a697344665b33cdfc564d6e9d7', 'User', '2012-12-31 12:34:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f3bc81a697344665b33cdfc564d6e9d7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'a5d7bc022cf94b75a5acb0ff63abff2e', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'accounta5d7bc02-2cf9-4b75-a5ac-b0ff63abff2e' WHERE `accounts`.`id` = x'a5d7bc022cf94b75a5acb0ff63abff2e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a5d7bc022cf94b75a5acb0ff63abff2e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a5d7bc022cf94b75a5acb0ff63abff2e', x'83a21a693f14421785fd46b030691713', x'f3bc81a697344665b33cdfc564d6e9d7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'83a21a693f14421785fd46b030691713') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83a21a693f14421785fd46b030691713' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83a21a693f14421785fd46b030691713', x'3b9e4b187f9649d9913e80ae203f1527', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'83a21a693f14421785fd46b030691713') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83a21a693f14421785fd46b030691713' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83a21a693f14421785fd46b030691713', x'82bed9e3899f466385edeb584cefcbde', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:34:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18664d22ae_c6080435d487489f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'37c7c10f0210421b9c8b71bd7cb92e61', 'jabanilson', NULL, 1, '2012-12-31 12:34:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'account37c7c10f-0210-421b-9c8b-71bd7cb92e61' WHERE `accounts`.`id` = x'37c7c10f0210421b9c8b71bd7cb92e61'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'37c7c10f0210421b9c8b71bd7cb92e61', x'918dfd31c2e546a3b282a1686b2a1593', x'f3bc81a697344665b33cdfc564d6e9d7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'918dfd31c2e546a3b282a1686b2a1593') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'918dfd31c2e546a3b282a1686b2a1593' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'918dfd31c2e546a3b282a1686b2a1593', x'fd613b6c90254088b928529ea3066bef', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'918dfd31c2e546a3b282a1686b2a1593') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'918dfd31c2e546a3b282a1686b2a1593' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'918dfd31c2e546a3b282a1686b2a1593', x'dab19b0896454df88fb0d12f9f09e76c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3bc81a697344665b33cdfc564d6e9d7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3bc81a697344665b33cdfc564d6e9d7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'user2@email.email', '$2a$04$IhLBx7TQ74yI4rjXI/CGLOD8xjmDOV4nar/6s0RJH9hH5xFCSZHje', NULL, x'8da98459c4dc49ecabdef1f8af8de3c2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8da98459c4dc49ecabdef1f8af8de3c2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'6b980fb7796e4160930329326bd22d23', '6dee73c587f4e6feeeb9e1eead3a842f', x'8da98459c4dc49ecabdef1f8af8de3c2', 'User', '2012-12-31 12:34:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8da98459c4dc49ecabdef1f8af8de3c2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'9654af915db643a6b4936c1d75e6c619', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'account9654af91-5db6-43a6-b493-6c1d75e6c619' WHERE `accounts`.`id` = x'9654af915db643a6b4936c1d75e6c619' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9654af915db643a6b4936c1d75e6c619' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9654af915db643a6b4936c1d75e6c619', x'b0b8d14b40ea41ffb0365155b86cf1de', x'8da98459c4dc49ecabdef1f8af8de3c2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b0b8d14b40ea41ffb0365155b86cf1de') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0b8d14b40ea41ffb0365155b86cf1de' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0b8d14b40ea41ffb0365155b86cf1de', x'8a2c4e351b124d88a933038dcd248398', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b0b8d14b40ea41ffb0365155b86cf1de') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0b8d14b40ea41ffb0365155b86cf1de' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0b8d14b40ea41ffb0365155b86cf1de', x'fd901b58952e44dca8aded9547c534df', 'admin') Sent mail to user2@email.email (6ms) Date: Mon, 31 Dec 2012 10:34:44 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e18664e1e89_c6080435d48749fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3bc81a697344665b33cdfc564d6e9d7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a5d7bc022cf94b75a5acb0ff63abff2e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a5d7bc022cf94b75a5acb0ff63abff2e', x'd0b52f46d87042da85d8d5d4d621a5c0', x'8da98459c4dc49ecabdef1f8af8de3c2') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd0b52f46d87042da85d8d5d4d621a5c0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0b52f46d87042da85d8d5d4d621a5c0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0b52f46d87042da85d8d5d4d621a5c0', x'47507e56189145739800d3955b934e47', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd0b52f46d87042da85d8d5d4d621a5c0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0b52f46d87042da85d8d5d4d621a5c0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0b52f46d87042da85d8d5d4d621a5c0', x'1ae3ef956b6345e880845a8f9c83a170', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f3bc81a697344665b33cdfc564d6e9d7' AND `account_users`.`account_id` = x'a5d7bc022cf94b75a5acb0ff63abff2e' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'83a21a693f14421785fd46b030691713'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83a21a693f14421785fd46b030691713' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¥×¼,ùKu¥¬°ÿc«ÿ.' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'3b9e4b187f9649d9913e80ae203f1527' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'82bed9e3899f466385edeb584cefcbde'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'83a21a693f14421785fd46b030691713') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83a21a693f14421785fd46b030691713' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83a21a693f14421785fd46b030691713', x'8f2e6dc8a6ea4a51ad3d3305f7120b0c', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"A5D7BC022CF94B75A5ACB0FF63ABFF2E"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3bc81a697344665b33cdfc564d6e9d7' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f3bc81a697344665b33cdfc564d6e9d7' AND `account_users`.`account_id` = x'a5d7bc022cf94b75a5acb0ff63abff2e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'83a21a693f14421785fd46b030691713' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'83a21a693f14421785fd46b030691713' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 6ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:44', 'teste@teste.com', '$2a$04$mx7MacH/jOdP0ToI/NfOHeJP4mcTW7qulITCZYtrZPOB9nr4jtRQG', NULL, x'e97224c666c049f2b2b9955467a53ce7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e97224c666c049f2b2b9955467a53ce7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:44', 'User', x'592ff4bef086447b936f11ac08574fe4', '4f225cfb09e51ff46318d239272e3647', x'e97224c666c049f2b2b9955467a53ce7', 'User', '2012-12-31 12:34:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e97224c666c049f2b2b9955467a53ce7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:44', x'ba2bad6ed6ed4d8d8927864ca41aecc4', NULL, NULL, NULL, '2012-12-31 12:34:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:44', `updated_at` = '2012-12-31 12:34:44', `subdomain` = 'accountba2bad6e-d6ed-4d8d-8927-864ca41aecc4' WHERE `accounts`.`id` = x'ba2bad6ed6ed4d8d8927864ca41aecc4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ba2bad6ed6ed4d8d8927864ca41aecc4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ba2bad6ed6ed4d8d8927864ca41aecc4', x'f4f06ba808ec47849d712c72d8da7bdc', x'e97224c666c049f2b2b9955467a53ce7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f4f06ba808ec47849d712c72d8da7bdc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4f06ba808ec47849d712c72d8da7bdc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f4f06ba808ec47849d712c72d8da7bdc', x'38f8dbb1a5c7413bbc1187841a3e9c45', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f4f06ba808ec47849d712c72d8da7bdc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4f06ba808ec47849d712c72d8da7bdc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f4f06ba808ec47849d712c72d8da7bdc', x'253e41055c1b48e2a33c95ffea1b5a3c', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18665348c_c6080435d487501c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'c3aa629b1de843ee865705ba2f057ae2', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountc3aa629b-1de8-43ee-8657-05ba2f057ae2' WHERE `accounts`.`id` = x'c3aa629b1de843ee865705ba2f057ae2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c3aa629b1de843ee865705ba2f057ae2', x'b064a181dcdc4c16ba46a9843f7fda3c', x'e97224c666c049f2b2b9955467a53ce7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b064a181dcdc4c16ba46a9843f7fda3c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b064a181dcdc4c16ba46a9843f7fda3c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b064a181dcdc4c16ba46a9843f7fda3c', x'c2960548b193406182aca7a19c73860f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b064a181dcdc4c16ba46a9843f7fda3c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b064a181dcdc4c16ba46a9843f7fda3c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b064a181dcdc4c16ba46a9843f7fda3c', x'87586b838cdf424bbd7cd137ffcee69b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e97224c666c049f2b2b9955467a53ce7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e97224c666c049f2b2b9955467a53ce7' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:45', 'user2@email.email', '$2a$04$gk.l3IgLlrr0Bt/LGqL/yu78iQsdzu5oD6obQGk8Mb130VNAIIriW', NULL, x'6e2b300cde8a4322b31d0f062f70f90b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6e2b300cde8a4322b31d0f062f70f90b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:45', 'User', x'a4761e0b122a4703913355e5e7bbcb9e', 'a01ebf1f75a0e7343bef248f9e0899d3', x'6e2b300cde8a4322b31d0f062f70f90b', 'User', '2012-12-31 12:34:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6e2b300cde8a4322b31d0f062f70f90b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'a5ff5679a12c4c8d9a71bf8d666e2f3e', NULL, NULL, NULL, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accounta5ff5679-a12c-4c8d-9a71-bf8d666e2f3e' WHERE `accounts`.`id` = x'a5ff5679a12c4c8d9a71bf8d666e2f3e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a5ff5679a12c4c8d9a71bf8d666e2f3e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a5ff5679a12c4c8d9a71bf8d666e2f3e', x'033a3d556b1d4b40a74c597dad9d4683', x'6e2b300cde8a4322b31d0f062f70f90b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'033a3d556b1d4b40a74c597dad9d4683') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'033a3d556b1d4b40a74c597dad9d4683' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'033a3d556b1d4b40a74c597dad9d4683', x'ac54863a87b546e38926a70e54a5c75b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'033a3d556b1d4b40a74c597dad9d4683') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'033a3d556b1d4b40a74c597dad9d4683' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'033a3d556b1d4b40a74c597dad9d4683', x'652bcbe5876c49ff8bb97151d8d43d94', 'admin') Sent mail to user2@email.email (6ms) Date: Mon, 31 Dec 2012 10:34:45 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e18665138f0_c6080435d48751e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e97224c666c049f2b2b9955467a53ce7' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ba2bad6ed6ed4d8d8927864ca41aecc4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ba2bad6ed6ed4d8d8927864ca41aecc4', x'd3c9d6d70c904a4cbba2e0616dbe59a5', x'6e2b300cde8a4322b31d0f062f70f90b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd3c9d6d70c904a4cbba2e0616dbe59a5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3c9d6d70c904a4cbba2e0616dbe59a5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3c9d6d70c904a4cbba2e0616dbe59a5', x'82a12643c10d400083a55457a764b2c7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd3c9d6d70c904a4cbba2e0616dbe59a5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3c9d6d70c904a4cbba2e0616dbe59a5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3c9d6d70c904a4cbba2e0616dbe59a5', x'f2d49f8b898c44d7848502622775458a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e97224c666c049f2b2b9955467a53ce7' AND `account_users`.`account_id` = x'ba2bad6ed6ed4d8d8927864ca41aecc4' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4f06ba808ec47849d712c72d8da7bdc'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'253e41055c1b48e2a33c95ffea1b5a3c' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4f06ba808ec47849d712c72d8da7bdc' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'38f8dbb1a5c7413bbc1187841a3e9c45'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'f4f06ba808ec47849d712c72d8da7bdc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4f06ba808ec47849d712c72d8da7bdc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f4f06ba808ec47849d712c72d8da7bdc', x'25e64630a685474c92cce3bff702f116', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'25e64630a685474c92cce3bff702f116'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f4f06ba808ec47849d712c72d8da7bdc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4f06ba808ec47849d712c72d8da7bdc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f4f06ba808ec47849d712c72d8da7bdc', x'a9e782d6fcc849b098fd03561ca089df', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"BA2BAD6ED6ED4D8D8927864CA41AECC4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e97224c666c049f2b2b9955467a53ce7' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e97224c666c049f2b2b9955467a53ce7' AND `account_users`.`account_id` = x'ba2bad6ed6ed4d8d8927864ca41aecc4' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4f06ba808ec47849d712c72d8da7bdc' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:45', 'teste@teste.com', '$2a$04$ObGJLa5lWKTWUUNn2Lznh.4x8zDEbQQVP4QB5BxYmtDGFHuKaPiPq', NULL, x'36579c358a0d47e8a9e24d0234eb70e4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'36579c358a0d47e8a9e24d0234eb70e4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:45', 'User', x'fcd3f5ea20994e7daf9d1cc383f055b0', '30d119a77df44bdb1ee50d3a8b49843d', x'36579c358a0d47e8a9e24d0234eb70e4', 'User', '2012-12-31 12:34:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'36579c358a0d47e8a9e24d0234eb70e4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'a1b3f2acb3e94c7d9c216d0804a3db3d', NULL, NULL, NULL, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accounta1b3f2ac-b3e9-4c7d-9c21-6d0804a3db3d' WHERE `accounts`.`id` = x'a1b3f2acb3e94c7d9c216d0804a3db3d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a1b3f2acb3e94c7d9c216d0804a3db3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a1b3f2acb3e94c7d9c216d0804a3db3d', x'6ff0b520a4a843c2afab8910b035dda1', x'36579c358a0d47e8a9e24d0234eb70e4') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6ff0b520a4a843c2afab8910b035dda1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ff0b520a4a843c2afab8910b035dda1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ff0b520a4a843c2afab8910b035dda1', x'7bca45a015e4433b8658844bb4e534a3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6ff0b520a4a843c2afab8910b035dda1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ff0b520a4a843c2afab8910b035dda1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ff0b520a4a843c2afab8910b035dda1', x'91ecd210420e4696ba947027f3456c95', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:34:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18665415fb_c6080435d4875295@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'79ad6ac986c84783bfa6d5adcd0a4e52', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account79ad6ac9-86c8-4783-bfa6-d5adcd0a4e52' WHERE `accounts`.`id` = x'79ad6ac986c84783bfa6d5adcd0a4e52'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'79ad6ac986c84783bfa6d5adcd0a4e52', x'cc965bd546ce45d3a238452bbc1c097e', x'36579c358a0d47e8a9e24d0234eb70e4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cc965bd546ce45d3a238452bbc1c097e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc965bd546ce45d3a238452bbc1c097e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc965bd546ce45d3a238452bbc1c097e', x'4f3ba1690cd04dc2a0a377a17d3b7155', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cc965bd546ce45d3a238452bbc1c097e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc965bd546ce45d3a238452bbc1c097e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc965bd546ce45d3a238452bbc1c097e', x'd1849733938c472295519c30db601f38', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'36579c358a0d47e8a9e24d0234eb70e4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'36579c358a0d47e8a9e24d0234eb70e4' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:34:01', '2012-12-31 12:34:45', 'user2@email.email', '$2a$04$h5iK5tmW/QfiO9NNPfxxq.GhuhI/zVr7D.h8FeGn4uQDE/MKiNqZ2', NULL, x'159d66aa259d4e5ab6d698d840ac16dd', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:34:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'159d66aa259d4e5ab6d698d840ac16dd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:34:45', 'User', x'e6e7b79f22b74aca8bd608c54c387e89', 'f10da551102dea75d18a7c00229bc5b9', x'159d66aa259d4e5ab6d698d840ac16dd', 'User', '2012-12-31 12:34:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'159d66aa259d4e5ab6d698d840ac16dd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'80eefb9dbf8540698a210189518c918d', NULL, NULL, NULL, '2012-12-31 12:34:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account80eefb9d-bf85-4069-8a21-0189518c918d' WHERE `accounts`.`id` = x'80eefb9dbf8540698a210189518c918d' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'80eefb9dbf8540698a210189518c918d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'80eefb9dbf8540698a210189518c918d', x'4cc7827e362942d298f81fcf07cbbcc2', x'159d66aa259d4e5ab6d698d840ac16dd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4cc7827e362942d298f81fcf07cbbcc2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4cc7827e362942d298f81fcf07cbbcc2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4cc7827e362942d298f81fcf07cbbcc2', x'24d08535322e471c83a60a46f5c1a743', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4cc7827e362942d298f81fcf07cbbcc2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4cc7827e362942d298f81fcf07cbbcc2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4cc7827e362942d298f81fcf07cbbcc2', x'81169dea3bcb4e9ebef1d271f89a51b4', 'admin') Sent mail to user2@email.email (7ms) Date: Mon, 31 Dec 2012 10:34:45 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e1866551725_c6080435d4875318@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'36579c358a0d47e8a9e24d0234eb70e4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a1b3f2acb3e94c7d9c216d0804a3db3d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a1b3f2acb3e94c7d9c216d0804a3db3d', x'a08931de6ee74ba399e727e98776e375', x'159d66aa259d4e5ab6d698d840ac16dd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a08931de6ee74ba399e727e98776e375') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a08931de6ee74ba399e727e98776e375' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a08931de6ee74ba399e727e98776e375', x'dac03955b9a64076a8f0c93cb7296051', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a08931de6ee74ba399e727e98776e375') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a08931de6ee74ba399e727e98776e375' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a08931de6ee74ba399e727e98776e375', x'197081d6a5f542c5a2fb89707681f50a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'36579c358a0d47e8a9e24d0234eb70e4' AND `account_users`.`account_id` = x'a1b3f2acb3e94c7d9c216d0804a3db3d' LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'36579c358a0d47e8a9e24d0234eb70e4' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'36579c358a0d47e8a9e24d0234eb70e4' AND `account_users`.`account_id` = x'33323331323331333132333132333431' LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'072247c9c1d04af29cd6fc7e69673fc3', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account072247c9-c1d0-4af2-9cd6-fc7e69673fc3' WHERE `accounts`.`id` = x'072247c9c1d04af29cd6fc7e69673fc3'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'072247c9c1d04af29cd6fc7e69673fc3' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'072247c9c1d04af29cd6fc7e69673fc3', 'teste@teste.teste', x'f2f9a0a0a38c4805970abdc46a6de42a', NULL, NULL, '2012-12-31 12:34:45', 'o_WLZK1BYN9xlpAg7wEqH1HTbzE') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:34:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e186655fc12_c6080435d48754a3@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/f2f9a0a0-a38c-4805-970a-bdc46a6de42ao_WLZK1BYN9xlpAg7wEqH1HTbzE  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'54e1e4ab6995466dbb27c39c8dfad856', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account54e1e4ab-6995-466d-bb27-c39c8dfad856' WHERE `accounts`.`id` = x'54e1e4ab6995466dbb27c39c8dfad856'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'54e1e4ab6995466dbb27c39c8dfad856' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'54e1e4ab6995466dbb27c39c8dfad856', 'teste@teste.teste', x'1b6dad790f0c44d39e385b467a499dfa', NULL, NULL, '2012-12-31 12:34:45', 'Q0YpXDPAIZzRd4U9rvK9HQgNqJA') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:34:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e186656a88d_c6080435d487556b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1b6dad79-0f0c-44d3-9e38-5b467a499dfaQ0YpXDPAIZzRd4U9rvK9HQgNqJA  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'efeb3a35067d4b508c443d86e876eed4', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountefeb3a35-067d-4b50-8c44-3d86e876eed4' WHERE `accounts`.`id` = x'efeb3a35067d4b508c443d86e876eed4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'efeb3a35067d4b508c443d86e876eed4' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'efeb3a35067d4b508c443d86e876eed4', x'b63613e840f84111a2ab152b67516d87', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'0777c0dbd10a4d24a4e632379f3dface', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account0777c0db-d10a-4d24-a4e6-32379f3dface' WHERE `accounts`.`id` = x'0777c0dbd10a4d24a4e632379f3dface'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0777c0dbd10a4d24a4e632379f3dface' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0777c0dbd10a4d24a4e632379f3dface', x'e6108b54fffe4fe08bb1f608d9fcf318', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'da992c78e88b4448bd55f911e9d173e9', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountda992c78-e88b-4448-bd55-f911e9d173e9' WHERE `accounts`.`id` = x'da992c78e88b4448bd55f911e9d173e9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'da992c78e88b4448bd55f911e9d173e9' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'da992c78e88b4448bd55f911e9d173e9', x'5e9dc3a32ccd44f2b7f3ce28decbc993', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'f9047ba85b784a5a96b764c9d77939f6', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountf9047ba8-5b78-4a5a-96b7-64c9d77939f6' WHERE `accounts`.`id` = x'f9047ba85b784a5a96b764c9d77939f6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f9047ba85b784a5a96b764c9d77939f6' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f9047ba85b784a5a96b764c9d77939f6', x'ba7791af88bc45d7aca80eca318f6933', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'6d718b5eccda45f4bb257ba19d832ce0', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account6d718b5e-ccda-45f4-bb25-7ba19d832ce0' WHERE `accounts`.`id` = x'6d718b5eccda45f4bb257ba19d832ce0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6d718b5eccda45f4bb257ba19d832ce0' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'6d718b5eccda45f4bb257ba19d832ce0', x'da45fab86f6849fbb8eb1bdf7d02177a', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'c637544c6ad94b48a7f62fd7a788697d', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountc637544c-6ad9-4b48-a7f6-2fd7a788697d' WHERE `accounts`.`id` = x'c637544c6ad94b48a7f62fd7a788697d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c637544c6ad94b48a7f62fd7a788697d' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c637544c6ad94b48a7f62fd7a788697d', x'54fd3e1a096a4baca8b6a4ed1d199712', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'794334a94d5f4ecd88b3e9c0d3d241d7', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account794334a9-4d5f-4ecd-88b3-e9c0d3d241d7' WHERE `accounts`.`id` = x'794334a94d5f4ecd88b3e9c0d3d241d7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'd13db8c6dd27498a9e9d2eff9510f889', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountd13db8c6-dd27-498a-9e9d-2eff9510f889' WHERE `accounts`.`id` = x'd13db8c6dd27498a9e9d2eff9510f889'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd13db8c6dd27498a9e9d2eff9510f889' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd13db8c6dd27498a9e9d2eff9510f889', x'3e5c9d8f55464a9ebb778d27d4d028ec', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'5c75e24eb26a43668961f0f8a9ee2418', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account5c75e24e-b26a-4366-8961-f0f8a9ee2418' WHERE `accounts`.`id` = x'5c75e24eb26a43668961f0f8a9ee2418'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5c75e24eb26a43668961f0f8a9ee2418' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5c75e24eb26a43668961f0f8a9ee2418', x'6f9d3fb92c004561974cb9dedf8586e0', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5c75e24eb26a43668961f0f8a9ee2418' AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'd2cfa13c2bfa4a69b8e41868225a3a1b', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountd2cfa13c-2bfa-4a69-b8e4-1868225a3a1b' WHERE `accounts`.`id` = x'd2cfa13c2bfa4a69b8e41868225a3a1b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd2cfa13c2bfa4a69b8e41868225a3a1b' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd2cfa13c2bfa4a69b8e41868225a3a1b', x'86a0cec04b8f4dbeadf4824d4ebe51d0', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'c0356fc8498d4e1481a3500e317acf58', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountc0356fc8-498d-4e14-81a3-500e317acf58' WHERE `accounts`.`id` = x'c0356fc8498d4e1481a3500e317acf58'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c0356fc8498d4e1481a3500e317acf58' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c0356fc8498d4e1481a3500e317acf58', x'253f5331a23f467ab0f54c2e7e58b4b3', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'642c4ed73cd4483aa329b0f7e0e23f1b', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account642c4ed7-3cd4-483a-a329-b0f7e0e23f1b' WHERE `accounts`.`id` = x'642c4ed73cd4483aa329b0f7e0e23f1b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'642c4ed73cd4483aa329b0f7e0e23f1b' AND `account_domains`.`url` = 'url1.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'642c4ed73cd4483aa329b0f7e0e23f1b', x'9a1e08417e92407eac4b81551e49a64e', NULL, 'url1.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'642c4ed73cd4483aa329b0f7e0e23f1b' AND `account_domains`.`url` = 'url2.test.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'642c4ed73cd4483aa329b0f7e0e23f1b', x'79cf91e194114935bfbd639ddf48c2b0', NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'9a1e08417e92407eac4b81551e49a64e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'79cf91e194114935bfbd639ddf48c2b0'  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'642c4ed73cd4483aa329b0f7e0e23f1b'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'9a1e08417e92407eac4b81551e49a64e'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'9a1e08417e92407eac4b81551e49a64e'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'642c4ed73cd4483aa329b0f7e0e23f1b' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'642c4ed73cd4483aa329b0f7e0e23f1b' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'79cf91e194114935bfbd639ddf48c2b0' SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'9a1e08417e92407eac4b81551e49a64e'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'79cf91e194114935bfbd639ddf48c2b0' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'275ce0e4c8b74c1c9f3e0965618656eb', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account275ce0e4-c8b7-4c1c-9f3e-0965618656eb' WHERE `accounts`.`id` = x'275ce0e4c8b74c1c9f3e0965618656eb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'275ce0e4c8b74c1c9f3e0965618656eb' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'275ce0e4c8b74c1c9f3e0965618656eb', x'444924518fce44f598f76ee4d9eb54b8', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'd828611b63cd4f63bfc53d440203a507', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountd828611b-63cd-4f63-bfc5-3d440203a507' WHERE `accounts`.`id` = x'd828611b63cd4f63bfc53d440203a507'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd828611b63cd4f63bfc53d440203a507' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd828611b63cd4f63bfc53d440203a507', x'6ac1d188478d4c6d9ca4a7ec3bbae218', NULL, 'www.normal.host', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'b446d852c4854c2eaaea25a68559966b', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'accountb446d852-c485-4c2e-aaea-25a68559966b' WHERE `accounts`.`id` = x'b446d852c4854c2eaaea25a68559966b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b446d852c4854c2eaaea25a68559966b' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b446d852c4854c2eaaea25a68559966b', x'44e2b9efb8ae4677aa32271c046b8e4b', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:45', x'98ae9e232fbd4e6280ebb8c96787f661', 'jabanilson', NULL, 1, '2012-12-31 12:34:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:45', `updated_at` = '2012-12-31 12:34:45', `subdomain` = 'account98ae9e23-2fbd-4e62-80eb-b8c96787f661' WHERE `accounts`.`id` = x'98ae9e232fbd4e6280ebb8c96787f661'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'98ae9e232fbd4e6280ebb8c96787f661' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'98ae9e232fbd4e6280ebb8c96787f661', x'0afbc51bf65e4dcaa0970bd4263a80ae', NULL, 'www.normal.host', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (5.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:46', x'7a29fe68024947eb959d16ccdc33e075', 'jabanilson', NULL, 1, '2012-12-31 12:34:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:46', `updated_at` = '2012-12-31 12:34:46', `subdomain` = 'account7a29fe68-0249-47eb-959d-16ccdc33e075' WHERE `accounts`.`id` = x'7a29fe68024947eb959d16ccdc33e075'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7a29fe68024947eb959d16ccdc33e075' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7a29fe68024947eb959d16ccdc33e075', x'2381eec7f8da47b485d57db507b5e5cc', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:34:46', x'8b880d1e39a14b2fb3961e39d5d10820', 'jabanilson', NULL, 1, '2012-12-31 12:34:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:34:46', `updated_at` = '2012-12-31 12:34:46', `subdomain` = 'account8b880d1e-39a1-4b2f-b396-1e39d5d10820' WHERE `accounts`.`id` = x'8b880d1e39a14b2fb3961e39d5d10820'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8b880d1e39a14b2fb3961e39d5d10820' AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8b880d1e39a14b2fb3961e39d5d10820', x'd3048be2ba824c80a7d375cf68fa0b23', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'd3048be2ba824c80a7d375cf68fa0b23'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8b880d1e39a14b2fb3961e39d5d10820' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8b880d1e39a14b2fb3961e39d5d10820' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'd3048be2ba824c80a7d375cf68fa0b23'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:35:47', x'1606182932c04900a7a02a8610f53bdb', 'jabanilson', NULL, 1, '2012-12-31 12:35:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:35:47', `updated_at` = '2012-12-31 12:35:47', `subdomain` = 'account16061829-32c0-4900-a7a0-2a8610f53bdb' WHERE `accounts`.`id` = x'1606182932c04900a7a02a8610f53bdb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1606182932c04900a7a02a8610f53bdb' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1606182932c04900a7a02a8610f53bdb', x'619394d724b64a92bda018f89fb637bc', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:35:47', x'c1614f2ccfff4e77b86c2295c796ddd8', 'jabanilson', NULL, 1, '2012-12-31 12:35:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:35:47', `updated_at` = '2012-12-31 12:35:47', `subdomain` = 'accountc1614f2c-cfff-4e77-b86c-2295c796ddd8' WHERE `accounts`.`id` = x'c1614f2ccfff4e77b86c2295c796ddd8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c1614f2ccfff4e77b86c2295c796ddd8' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c1614f2ccfff4e77b86c2295c796ddd8', x'18c35a80c5e54434a65eda8c78ff6e46', NULL, 'invalid.url.false', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'18c35a80c5e54434a65eda8c78ff6e46'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c1614f2ccfff4e77b86c2295c796ddd8' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c1614f2ccfff4e77b86c2295c796ddd8' AND `account_domains`.`verified` = 1 LIMIT 1  (9.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:35:47', x'5c6a57de5fa6487788d18cc53fd34c52', 'jabanilson', NULL, 1, '2012-12-31 12:35:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:35:47', `updated_at` = '2012-12-31 12:35:47', `subdomain` = 'account5c6a57de-5fa6-4877-88d1-8cc53fd34c52' WHERE `accounts`.`id` = x'5c6a57de5fa6487788d18cc53fd34c52'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5c6a57de5fa6487788d18cc53fd34c52' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5c6a57de5fa6487788d18cc53fd34c52', x'1feac749d79b4772be4b93989a17b4bb', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:35:47', x'595daee082e54a72b15e2134f7a296b8', 'jabanilson', NULL, 1, '2012-12-31 12:35:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:35:47', `updated_at` = '2012-12-31 12:35:47', `subdomain` = 'account595daee0-82e5-4a72-b15e-2134f7a296b8' WHERE `accounts`.`id` = x'595daee082e54a72b15e2134f7a296b8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'595daee082e54a72b15e2134f7a296b8' AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'595daee082e54a72b15e2134f7a296b8', x'e80dd446e57847698fb47cf7b8aff498', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'e80dd446e57847698fb47cf7b8aff498'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:35:47', x'c9722088b75f488eb2c68d14fb38d8d5', 'jabanilson', NULL, 1, '2012-12-31 12:35:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:35:47', `updated_at` = '2012-12-31 12:35:47', `subdomain` = 'accountc9722088-b75f-488e-b2c6-8d14fb38d8d5' WHERE `accounts`.`id` = x'c9722088b75f488eb2c68d14fb38d8d5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c9722088b75f488eb2c68d14fb38d8d5' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c9722088b75f488eb2c68d14fb38d8d5', x'4e5f3990ea494b969a360d32305ec409', NULL, 'www.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'4e5f3990ea494b969a360d32305ec409'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c9722088b75f488eb2c68d14fb38d8d5' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c9722088b75f488eb2c68d14fb38d8d5' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'4e5f3990ea494b969a360d32305ec409'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'e80dd446e57847698fb47cf7b8aff498' LIMIT 1  (13.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:36:47', x'8dc8020a9bb24d1b8a9081cccbb10aef', 'jabanilson', NULL, 1, '2012-12-31 12:36:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:36:47', `updated_at` = '2012-12-31 12:36:47', `subdomain` = 'account8dc8020a-9bb2-4d1b-8a90-81cccbb10aef' WHERE `accounts`.`id` = x'8dc8020a9bb24d1b8a9081cccbb10aef'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8dc8020a9bb24d1b8a9081cccbb10aef' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8dc8020a9bb24d1b8a9081cccbb10aef', x'ad277c9e151c4f07a457be8409f0e6d6', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:36:47', x'4938f5bc9e9248dc930cafac02a4f96f', 'jabanilson', NULL, 1, '2012-12-31 12:36:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:36:47', `updated_at` = '2012-12-31 12:36:47', `subdomain` = 'account4938f5bc-9e92-48dc-930c-afac02a4f96f' WHERE `accounts`.`id` = x'4938f5bc9e9248dc930cafac02a4f96f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:36:47', x'2ec06993c70142f98911c7d94d838b37', 'jabanilson', NULL, 1, '2012-12-31 12:36:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:36:47', `updated_at` = '2012-12-31 12:36:47', `subdomain` = 'account2ec06993-c701-42f9-8911-c7d94d838b37' WHERE `accounts`.`id` = x'2ec06993c70142f98911c7d94d838b37'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2ec06993c70142f98911c7d94d838b37' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2ec06993c70142f98911c7d94d838b37', x'97e38e8a558642a7a65ab40a1c692b6b', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (0.9ms) TRUNCATE TABLE `account_domains`;  (14.2ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (0.8ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (1.2ms) TRUNCATE TABLE `user_invitations`;  (10.0ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:38:13', '2012-12-31 12:38:13', 'teste@teste.com', '$2a$04$GWbJIfjnXfH3XLX5tUZ7SedvXU8vQJNlTvOG/4JPszctWiUGOC1Yu', NULL, x'30d13d05f9ec40c0804f7d2df463e7cf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:38:13') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'30d13d05f9ec40c0804f7d2df463e7cf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:38:13', 'User', x'419aebbe350b417d943ca60ac2138e41', 'd5b60cca7c84e81aa936cfc3028730b4', x'30d13d05f9ec40c0804f7d2df463e7cf', 'User', '2012-12-31 12:38:13') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'30d13d05f9ec40c0804f7d2df463e7cf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:13', x'09ff7f63b3d34ae9ae127aaf5cc77515', NULL, NULL, NULL, '2012-12-31 12:38:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:38:13', `updated_at` = '2012-12-31 12:38:13', `subdomain` = 'account09ff7f63-b3d3-4ae9-ae12-7aaf5cc77515' WHERE `accounts`.`id` = x'09ff7f63b3d34ae9ae127aaf5cc77515' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'09ff7f63b3d34ae9ae127aaf5cc77515' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'09ff7f63b3d34ae9ae127aaf5cc77515', x'c76d2bffa42741d6a36ea8e52cf25b79', x'30d13d05f9ec40c0804f7d2df463e7cf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c76d2bffa42741d6a36ea8e52cf25b79') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c76d2bffa42741d6a36ea8e52cf25b79' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c76d2bffa42741d6a36ea8e52cf25b79', x'bfc5950a986841b28c11ad2bacea4b15', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c76d2bffa42741d6a36ea8e52cf25b79') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c76d2bffa42741d6a36ea8e52cf25b79' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c76d2bffa42741d6a36ea8e52cf25b79', x'9b10baf3ef054319a605c2cb7fcd27ce', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (136ms) Date: Mon, 31 Dec 2012 10:38:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e187365db24_ea480435d48697aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'30d13d05f9ec40c0804f7d2df463e7cf' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c76d2bffa42741d6a36ea8e52cf25b79'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9b10baf3ef054319a605c2cb7fcd27ce' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c76d2bffa42741d6a36ea8e52cf25b79' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'30d13d05f9ec40c0804f7d2df463e7cf' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'c76d2bffa42741d6a36ea8e52cf25b79') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c76d2bffa42741d6a36ea8e52cf25b79', x'ada9e2e6208b45248a424d3b2285b6bf', 'guest')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:38:13', '2012-12-31 12:38:14', 'teste@teste.com', '$2a$04$9H.4gV6Vw.4Epl9jFR/SR.HUhMhbUasabsp0EZPXF9xJm5C5DBNx6', NULL, x'144ec52ea1d844129b64096b3fbe522f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:38:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'144ec52ea1d844129b64096b3fbe522f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:38:14', 'User', x'ddaa1946293c47b692e86d4a8bcd120d', '06784e6bc9e401551b7d11d1e8c7a6dc', x'144ec52ea1d844129b64096b3fbe522f', 'User', '2012-12-31 12:38:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'144ec52ea1d844129b64096b3fbe522f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:14', x'513f1c4d6d004d41892dcdc8d39310a2', NULL, NULL, NULL, '2012-12-31 12:38:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:38:14', `updated_at` = '2012-12-31 12:38:14', `subdomain` = 'account513f1c4d-6d00-4d41-892d-cdc8d39310a2' WHERE `accounts`.`id` = x'513f1c4d6d004d41892dcdc8d39310a2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'513f1c4d6d004d41892dcdc8d39310a2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'513f1c4d6d004d41892dcdc8d39310a2', x'ad178cb1560c4153bcfff0e16d51c61d', x'144ec52ea1d844129b64096b3fbe522f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ad178cb1560c4153bcfff0e16d51c61d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad178cb1560c4153bcfff0e16d51c61d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad178cb1560c4153bcfff0e16d51c61d', x'f273caec330d4ace81cba5ffd47b9eb2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ad178cb1560c4153bcfff0e16d51c61d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad178cb1560c4153bcfff0e16d51c61d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad178cb1560c4153bcfff0e16d51c61d', x'48c69f75a14348229c86e9893cfd9850', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:38:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18736782a8_ea480435d4869877@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'144ec52ea1d844129b64096b3fbe522f' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ad178cb1560c4153bcfff0e16d51c61d'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'48c69f75a14348229c86e9893cfd9850' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad178cb1560c4153bcfff0e16d51c61d' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'144ec52ea1d844129b64096b3fbe522f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'ad178cb1560c4153bcfff0e16d51c61d') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad178cb1560c4153bcfff0e16d51c61d', x'b537a35b70f1465d97c063f7a33dea67', 'guest')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'ad178cb1560c4153bcfff0e16d51c61d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad178cb1560c4153bcfff0e16d51c61d' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'ad178cb1560c4153bcfff0e16d51c61d') LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'ad178cb1560c4153bcfff0e16d52c61d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad178cb1560c4153bcfff0e16d52c61d' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'ad178cb1560c4153bcfff0e16d52c61d') LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:38:13', '2012-12-31 12:38:14', 'teste@teste.com', '$2a$04$fbw8GjwBKkxAgBObjTTK5u94HkJglWtoIdtyRRTGZDxFj.8chv9KK', NULL, x'70b0906221804e7ea01d26b905f755fb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:38:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'70b0906221804e7ea01d26b905f755fb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:38:14', 'User', x'8cd4e8da7e1745a79a4ecc665c5bab9a', '80f708f55a96358a5c3671ed2296b6e3', x'70b0906221804e7ea01d26b905f755fb', 'User', '2012-12-31 12:38:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'70b0906221804e7ea01d26b905f755fb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:14', x'15392a90a2e54b658fa1ed20da4a4e65', NULL, NULL, NULL, '2012-12-31 12:38:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:38:14', `updated_at` = '2012-12-31 12:38:14', `subdomain` = 'account15392a90-a2e5-4b65-8fa1-ed20da4a4e65' WHERE `accounts`.`id` = x'15392a90a2e54b658fa1ed20da4a4e65' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'15392a90a2e54b658fa1ed20da4a4e65' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'15392a90a2e54b658fa1ed20da4a4e65', x'50e677a9636e496bac3195dd6243b8e6', x'70b0906221804e7ea01d26b905f755fb') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'50e677a9636e496bac3195dd6243b8e6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50e677a9636e496bac3195dd6243b8e6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50e677a9636e496bac3195dd6243b8e6', x'd318ece2c0d54cd98a817ba312f345a2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'50e677a9636e496bac3195dd6243b8e6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50e677a9636e496bac3195dd6243b8e6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50e677a9636e496bac3195dd6243b8e6', x'76e745fa91e94418a6e10c5218a65077', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:38:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18736891ae_ea480435d4869987@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'70b0906221804e7ea01d26b905f755fb' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'50e677a9636e496bac3195dd6243b8e6'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'76e745fa91e94418a6e10c5218a65077' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50e677a9636e496bac3195dd6243b8e6' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '9*¢åKe¡í ÚJNe' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'70b0906221804e7ea01d26b905f755fb' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'50e677a9636e496bac3195dd6243b8e6') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50e677a9636e496bac3195dd6243b8e6', x'854c42f641ef4ea7b0d7a86f1c40713a', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != x'854c42f641ef4ea7b0d7a86f1c40713a' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != x'854c42f641ef4ea7b0d7a86f1c40713a' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:38:13', '2012-12-31 12:38:14', 'teste@teste.com', '$2a$04$5BMoJ4syUeKL7fSb3ojcBOTt8w/VkRDOpifCpWQgRJVbZNwtT2aCG', NULL, x'568c934dea484c879db19f5f7cbb8245', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:38:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'568c934dea484c879db19f5f7cbb8245' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:38:14', 'User', x'1dc0385c89284f2b92f1f9365d6f7872', 'b437bba83561239b3fdabc5adcf1b906', x'568c934dea484c879db19f5f7cbb8245', 'User', '2012-12-31 12:38:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'568c934dea484c879db19f5f7cbb8245' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:14', x'aada3c96a8e6468e9a9f083e3030b92e', NULL, NULL, NULL, '2012-12-31 12:38:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:38:14', `updated_at` = '2012-12-31 12:38:14', `subdomain` = 'accountaada3c96-a8e6-468e-9a9f-083e3030b92e' WHERE `accounts`.`id` = x'aada3c96a8e6468e9a9f083e3030b92e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aada3c96a8e6468e9a9f083e3030b92e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aada3c96a8e6468e9a9f083e3030b92e', x'53bf7d70bc454fa482d9a5cdc9f56e15', x'568c934dea484c879db19f5f7cbb8245') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'53bf7d70bc454fa482d9a5cdc9f56e15') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'53bf7d70bc454fa482d9a5cdc9f56e15' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'53bf7d70bc454fa482d9a5cdc9f56e15', x'579aca3aa08b4489a59590a9d74d4241', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'53bf7d70bc454fa482d9a5cdc9f56e15') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'53bf7d70bc454fa482d9a5cdc9f56e15' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'53bf7d70bc454fa482d9a5cdc9f56e15', x'4719a961ae0e4bec99865bfc08fde2c2', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (0.2ms) Sent mail to teste@teste.com (9ms) Date: Mon, 31 Dec 2012 10:38:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18736aa21d_ea480435d4870015@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'568c934dea484c879db19f5f7cbb8245' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'53bf7d70bc454fa482d9a5cdc9f56e15'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4719a961ae0e4bec99865bfc08fde2c2' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'53bf7d70bc454fa482d9a5cdc9f56e15' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ªÚ<–¨æFŽšŸ>00¹.' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'568c934dea484c879db19f5f7cbb8245' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'53bf7d70bc454fa482d9a5cdc9f56e15') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'53bf7d70bc454fa482d9a5cdc9f56e15', x'188b9c9cb224491e984351df6c5aba8b', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != x'188b9c9cb224491e984351df6c5aba8b' AND `account_roles`.`account_user_id` = x'53bf7d70bc454fa482d9a5cdc9f56e15') LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (0.8ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.2ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.5ms) TRUNCATE TABLE `user_invitations`;  (28.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'a8f14e68af8747f588133a48a4ad89f4', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accounta8f14e68-af87-47f5-8813-3a48a4ad89f4' WHERE `accounts`.`id` = x'a8f14e68af8747f588133a48a4ad89f4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a8f14e68af8747f588133a48a4ad89f4' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a8f14e68af8747f588133a48a4ad89f4', x'837dc09550ac4d2dab19e8c1fddf891c', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'd315f38d0ddd4c72b5c258fe322839c6', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accountd315f38d-0ddd-4c72-b5c2-58fe322839c6' WHERE `accounts`.`id` = x'd315f38d0ddd4c72b5c258fe322839c6'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd315f38d0ddd4c72b5c258fe322839c6' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd315f38d0ddd4c72b5c258fe322839c6', x'c68c4beae3df4a97b6a4e01bc243f1f4', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'e10200a155a0490ea17724fd18dec9cb', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accounte10200a1-55a0-490e-a177-24fd18dec9cb' WHERE `accounts`.`id` = x'e10200a155a0490ea17724fd18dec9cb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e10200a155a0490ea17724fd18dec9cb' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e10200a155a0490ea17724fd18dec9cb', x'f3127d252dff425384f086e7be8a7808', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'8df862d0d9ab4218b86ff25807bdbd7e', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'account8df862d0-d9ab-4218-b86f-f25807bdbd7e' WHERE `accounts`.`id` = x'8df862d0d9ab4218b86ff25807bdbd7e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8df862d0d9ab4218b86ff25807bdbd7e' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8df862d0d9ab4218b86ff25807bdbd7e', x'5426e0c9e00d467c940aee3ae37d3788', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'53c0282f2f124fd9b24e703cb83dc8a6', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'account53c0282f-2f12-4fd9-b24e-703cb83dc8a6' WHERE `accounts`.`id` = x'53c0282f2f124fd9b24e703cb83dc8a6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'53c0282f2f124fd9b24e703cb83dc8a6' AND `account_domains`.`url` = 'valid.url.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'53c0282f2f124fd9b24e703cb83dc8a6', x'17ec7eac0f164721a572edd31115d3ff', NULL, 'valid.url.test', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'f69a930b1b1e4f7e86799fdc1235e68b', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accountf69a930b-1b1e-4f7e-8679-9fdc1235e68b' WHERE `accounts`.`id` = x'f69a930b1b1e4f7e86799fdc1235e68b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f69a930b1b1e4f7e86799fdc1235e68b' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f69a930b1b1e4f7e86799fdc1235e68b', x'c4d85aea2ccb46cd98116506f201ac58', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'50daf1d0a1e544c3b244d788f457d253', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'account50daf1d0-a1e5-44c3-b244-d788f457d253' WHERE `accounts`.`id` = x'50daf1d0a1e544c3b244d788f457d253'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'669dae3536ec431c8da600046d25f993', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'account669dae35-36ec-431c-8da6-00046d25f993' WHERE `accounts`.`id` = x'669dae3536ec431c8da600046d25f993'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'669dae3536ec431c8da600046d25f993' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'669dae3536ec431c8da600046d25f993', x'374bb7b4db8842979af3360b9f87a903', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'0843c42b64e14d419cc4bc2a8627ef11', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'account0843c42b-64e1-4d41-9cc4-bc2a8627ef11' WHERE `accounts`.`id` = x'0843c42b64e14d419cc4bc2a8627ef11'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0843c42b64e14d419cc4bc2a8627ef11' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0843c42b64e14d419cc4bc2a8627ef11', x'b5322a29035b49a697340251bfe23fc7', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0843c42b64e14d419cc4bc2a8627ef11' AND `account_domains`.`url` = 'valid.url.test'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'392987fffa774f59946611b909027367', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'account392987ff-fa77-4f59-9466-11b909027367' WHERE `accounts`.`id` = x'392987fffa774f59946611b909027367'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'392987fffa774f59946611b909027367' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'392987fffa774f59946611b909027367', x'6ce5874c18d14c6bb6e964da124db1f8', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'b5ab06f90b9d436b9a51fb4722e2e5b8', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accountb5ab06f9-0b9d-436b-9a51-fb4722e2e5b8' WHERE `accounts`.`id` = x'b5ab06f90b9d436b9a51fb4722e2e5b8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b5ab06f90b9d436b9a51fb4722e2e5b8' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b5ab06f90b9d436b9a51fb4722e2e5b8', x'7941848e746941e38b7aa4e151b8d3ae', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'b2319425c74a40c4817f3eadc2e2718a', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accountb2319425-c74a-40c4-817f-3eadc2e2718a' WHERE `accounts`.`id` = x'b2319425c74a40c4817f3eadc2e2718a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b2319425c74a40c4817f3eadc2e2718a' AND `account_domains`.`url` = 'url1.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b2319425c74a40c4817f3eadc2e2718a', x'ecd06b50666f4270a7699cb5211c8979', NULL, 'url1.test.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b2319425c74a40c4817f3eadc2e2718a' AND `account_domains`.`url` = 'url2.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b2319425c74a40c4817f3eadc2e2718a', x'edbfe94d0bce41788fbbb5bca505f509', NULL, 'url2.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'ecd06b50666f4270a7699cb5211c8979'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'edbfe94d0bce41788fbbb5bca505f509'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'b2319425c74a40c4817f3eadc2e2718a'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'ecd06b50666f4270a7699cb5211c8979'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'ecd06b50666f4270a7699cb5211c8979'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b2319425c74a40c4817f3eadc2e2718a' AND `account_domains`.`primary` = 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b2319425c74a40c4817f3eadc2e2718a' AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'edbfe94d0bce41788fbbb5bca505f509' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'ecd06b50666f4270a7699cb5211c8979'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'edbfe94d0bce41788fbbb5bca505f509' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'117f871e24cb4b57b39f20e0cad69c2c', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'account117f871e-24cb-4b57-b39f-20e0cad69c2c' WHERE `accounts`.`id` = x'117f871e24cb4b57b39f20e0cad69c2c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'117f871e24cb4b57b39f20e0cad69c2c' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'117f871e24cb4b57b39f20e0cad69c2c', x'a5da10e069f849e1afa1900f84295266', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'e00cb6f9f138486d85d78cabe02b5bb4', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accounte00cb6f9-f138-486d-85d7-8cabe02b5bb4' WHERE `accounts`.`id` = x'e00cb6f9f138486d85d78cabe02b5bb4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e00cb6f9f138486d85d78cabe02b5bb4' AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e00cb6f9f138486d85d78cabe02b5bb4', x'1d9f3a7bb9e449fc895481ffb9d5fdb6', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'd4836fd32b84458aa729056cc2d23a48', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accountd4836fd3-2b84-458a-a729-056cc2d23a48' WHERE `accounts`.`id` = x'd4836fd32b84458aa729056cc2d23a48'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd4836fd32b84458aa729056cc2d23a48' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd4836fd32b84458aa729056cc2d23a48', x'd5baab3b67c24509a30e8aa01e024a87', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'bb0169498c4c4289bbb48130d19516d1', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accountbb016949-8c4c-4289-bbb4-8130d19516d1' WHERE `accounts`.`id` = x'bb0169498c4c4289bbb48130d19516d1'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bb0169498c4c4289bbb48130d19516d1' AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bb0169498c4c4289bbb48130d19516d1', x'45f56e6f15d74d5ba321e29318e528f4', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'a2fbd32118734ddda5baacbf3947498d', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'accounta2fbd321-1873-4ddd-a5ba-acbf3947498d' WHERE `accounts`.`id` = x'a2fbd32118734ddda5baacbf3947498d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a2fbd32118734ddda5baacbf3947498d' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a2fbd32118734ddda5baacbf3947498d', x'9a6a0de634ce40aba4dd099039165f85', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:38:33', x'3dfbb542da744cf0adea62ebf6e9d44f', 'jabanilson', NULL, 1, '2012-12-31 12:38:33')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:38:33', `updated_at` = '2012-12-31 12:38:33', `subdomain` = 'account3dfbb542-da74-4cf0-adea-62ebf6e9d44f' WHERE `accounts`.`id` = x'3dfbb542da744cf0adea62ebf6e9d44f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3dfbb542da744cf0adea62ebf6e9d44f' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3dfbb542da744cf0adea62ebf6e9d44f', x'8a9abc7111e749adba21328023cfae30', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.net'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'8a9abc7111e749adba21328023cfae30'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3dfbb542da744cf0adea62ebf6e9d44f' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'3dfbb542da744cf0adea62ebf6e9d44f' AND `account_domains`.`verified` = 1 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'8a9abc7111e749adba21328023cfae30'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:39:34', x'df373022926f45ef9725cc36ee4b49dc', 'jabanilson', NULL, 1, '2012-12-31 12:39:34')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:39:34', `updated_at` = '2012-12-31 12:39:34', `subdomain` = 'accountdf373022-926f-45ef-9725-cc36ee4b49dc' WHERE `accounts`.`id` = x'df373022926f45ef9725cc36ee4b49dc'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'df373022926f45ef9725cc36ee4b49dc' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'df373022926f45ef9725cc36ee4b49dc', x'20c11c7a240b4097a593b618e54ac92e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:39:34', x'1b9fda105bb3456ba69dba1663ad27d4', 'jabanilson', NULL, 1, '2012-12-31 12:39:34')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:39:34', `updated_at` = '2012-12-31 12:39:34', `subdomain` = 'account1b9fda10-5bb3-456b-a69d-ba1663ad27d4' WHERE `accounts`.`id` = x'1b9fda105bb3456ba69dba1663ad27d4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1b9fda105bb3456ba69dba1663ad27d4' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1b9fda105bb3456ba69dba1663ad27d4', x'48a4ca1ca63749dcb55880d1a84d2197', NULL, 'invalid.url.false', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'48a4ca1ca63749dcb55880d1a84d2197'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1b9fda105bb3456ba69dba1663ad27d4' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'1b9fda105bb3456ba69dba1663ad27d4' AND `account_domains`.`verified` = 1 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:39:34', x'5b6700552eb04a1ea50776b2ca62d886', 'jabanilson', NULL, 1, '2012-12-31 12:39:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:39:34', `updated_at` = '2012-12-31 12:39:34', `subdomain` = 'account5b670055-2eb0-4a1e-a507-76b2ca62d886' WHERE `accounts`.`id` = x'5b6700552eb04a1ea50776b2ca62d886'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5b6700552eb04a1ea50776b2ca62d886' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5b6700552eb04a1ea50776b2ca62d886', x'ee574c46572a4fb9a6607d410952fb53', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:39:34', x'7c6d29353a9e4eceac6ab18ae91dde4d', 'jabanilson', NULL, 1, '2012-12-31 12:39:34')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:39:34', `updated_at` = '2012-12-31 12:39:34', `subdomain` = 'account7c6d2935-3a9e-4ece-ac6a-b18ae91dde4d' WHERE `accounts`.`id` = x'7c6d29353a9e4eceac6ab18ae91dde4d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7c6d29353a9e4eceac6ab18ae91dde4d' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7c6d29353a9e4eceac6ab18ae91dde4d', x'3d2bea59dca64af4b52878fbd0b83b29', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'3d2bea59dca64af4b52878fbd0b83b29'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:39:34', x'f8fd6b9ca7334734b8c46f599d62b31e', 'jabanilson', NULL, 1, '2012-12-31 12:39:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:39:34', `updated_at` = '2012-12-31 12:39:34', `subdomain` = 'accountf8fd6b9c-a733-4734-b8c4-6f599d62b31e' WHERE `accounts`.`id` = x'f8fd6b9ca7334734b8c46f599d62b31e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f8fd6b9ca7334734b8c46f599d62b31e' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f8fd6b9ca7334734b8c46f599d62b31e', x'c02d95b5ed7c4242affca6c047ca2072', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.4ms) TRUNCATE TABLE `account_domains`;  (0.9ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.8ms) TRUNCATE TABLE `social_accounts`;  (27.2ms) TRUNCATE TABLE `user_invitations`;  (8.0ms) TRUNCATE TABLE `users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:17', x'3b4dbea1ff54467387568c5c56963cb1', 'jabanilson', NULL, 1, '2012-12-31 12:40:17')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:17', `updated_at` = '2012-12-31 12:40:17', `subdomain` = 'account3b4dbea1-ff54-4673-8756-8c5c56963cb1' WHERE `accounts`.`id` = x'3b4dbea1ff54467387568c5c56963cb1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3b4dbea1ff54467387568c5c56963cb1' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3b4dbea1ff54467387568c5c56963cb1', x'577fc4831ef94a6a9a77113c1917d399', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:17', x'dcac29bd2fb146989c9ecdefff429697', 'jabanilson', NULL, 1, '2012-12-31 12:40:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:17', `updated_at` = '2012-12-31 12:40:17', `subdomain` = 'accountdcac29bd-2fb1-4698-9c9e-cdefff429697' WHERE `accounts`.`id` = x'dcac29bd2fb146989c9ecdefff429697'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'dcac29bd2fb146989c9ecdefff429697' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'dcac29bd2fb146989c9ecdefff429697', x'bbccf9d90af44af58f83bdf2dfe70b5c', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'9a5ca7aaf6384129bfae3169081abfd7', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account9a5ca7aa-f638-4129-bfae-3169081abfd7' WHERE `accounts`.`id` = x'9a5ca7aaf6384129bfae3169081abfd7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9a5ca7aaf6384129bfae3169081abfd7' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9a5ca7aaf6384129bfae3169081abfd7', x'ec2698464be6453b9102de3c28e6433f', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'559096febffa4a4bbeb3229e9e843745', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account559096fe-bffa-4a4b-beb3-229e9e843745' WHERE `accounts`.`id` = x'559096febffa4a4bbeb3229e9e843745'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'559096febffa4a4bbeb3229e9e843745' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'559096febffa4a4bbeb3229e9e843745', x'583150e0f23a45ebb69389dae44a8e25', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'f8f88165bff440d692cdbdd56354855c', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'accountf8f88165-bff4-40d6-92cd-bdd56354855c' WHERE `accounts`.`id` = x'f8f88165bff440d692cdbdd56354855c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f8f88165bff440d692cdbdd56354855c' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f8f88165bff440d692cdbdd56354855c', x'eb266c587491429a86241e1d989d16d3', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'29c215b4974446978a8543d9ea99bcb1', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account29c215b4-9744-4697-8a85-43d9ea99bcb1' WHERE `accounts`.`id` = x'29c215b4974446978a8543d9ea99bcb1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'29c215b4974446978a8543d9ea99bcb1' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'29c215b4974446978a8543d9ea99bcb1', x'768bc022e27741c196e0500cc1a180ae', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'e23a5cd9d74242729fb7adea5b575c99', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'accounte23a5cd9-d742-4272-9fb7-adea5b575c99' WHERE `accounts`.`id` = x'e23a5cd9d74242729fb7adea5b575c99'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'f3f092c68fe74555a3a0b30eb5089d5b', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'accountf3f092c6-8fe7-4555-a3a0-b30eb5089d5b' WHERE `accounts`.`id` = x'f3f092c68fe74555a3a0b30eb5089d5b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f3f092c68fe74555a3a0b30eb5089d5b' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f3f092c68fe74555a3a0b30eb5089d5b', x'bd11b38504b04b95b6e8c8d3a62cd604', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'66e06f5aa9d843228441e8241e16ed5d', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account66e06f5a-a9d8-4322-8441-e8241e16ed5d' WHERE `accounts`.`id` = x'66e06f5aa9d843228441e8241e16ed5d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'66e06f5aa9d843228441e8241e16ed5d' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'66e06f5aa9d843228441e8241e16ed5d', x'dfc4c7c818e24ab085c31bb0ec519b26', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'66e06f5aa9d843228441e8241e16ed5d' AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'd68de0d05d0140069048108badc00423', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'accountd68de0d0-5d01-4006-9048-108badc00423' WHERE `accounts`.`id` = x'd68de0d05d0140069048108badc00423'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd68de0d05d0140069048108badc00423' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd68de0d05d0140069048108badc00423', x'9b7122283f9243d2ba2237d1180e03b2', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'9b95bf01aece4c30abfa07f769d7de87', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account9b95bf01-aece-4c30-abfa-07f769d7de87' WHERE `accounts`.`id` = x'9b95bf01aece4c30abfa07f769d7de87'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9b95bf01aece4c30abfa07f769d7de87' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9b95bf01aece4c30abfa07f769d7de87', x'f4a33b9a4ddf40b48f1eee34fad59c78', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'7c7feb29e89e4aeeaf3ee4a21b120b4e', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account7c7feb29-e89e-4aee-af3e-e4a21b120b4e' WHERE `accounts`.`id` = x'7c7feb29e89e4aeeaf3ee4a21b120b4e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7c7feb29e89e4aeeaf3ee4a21b120b4e' AND `account_domains`.`url` = 'url1.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7c7feb29e89e4aeeaf3ee4a21b120b4e', x'af65029935344269a23153d3599c5b1e', NULL, 'url1.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7c7feb29e89e4aeeaf3ee4a21b120b4e' AND `account_domains`.`url` = 'url2.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7c7feb29e89e4aeeaf3ee4a21b120b4e', x'4cd785bac5c544b580142d7e5b810b7c', NULL, 'url2.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'af65029935344269a23153d3599c5b1e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'4cd785bac5c544b580142d7e5b810b7c'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'7c7feb29e89e4aeeaf3ee4a21b120b4e'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'af65029935344269a23153d3599c5b1e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'af65029935344269a23153d3599c5b1e'  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7c7feb29e89e4aeeaf3ee4a21b120b4e' AND `account_domains`.`primary` = 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'7c7feb29e89e4aeeaf3ee4a21b120b4e' AND `account_domains`.`verified` = 1 LIMIT 1  (0.3ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'4cd785bac5c544b580142d7e5b810b7c' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'af65029935344269a23153d3599c5b1e'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'4cd785bac5c544b580142d7e5b810b7c' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'9f053197a74547678132114eee795b7d', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account9f053197-a745-4767-8132-114eee795b7d' WHERE `accounts`.`id` = x'9f053197a74547678132114eee795b7d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9f053197a74547678132114eee795b7d' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9f053197a74547678132114eee795b7d', x'2ff39c71b4a74b7eb570a907db8c4fed', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'4f8fc33724284094bcfac06fd450dd2e', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account4f8fc337-2428-4094-bcfa-c06fd450dd2e' WHERE `accounts`.`id` = x'4f8fc33724284094bcfac06fd450dd2e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4f8fc33724284094bcfac06fd450dd2e' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4f8fc33724284094bcfac06fd450dd2e', x'e5bdf3faa736449e951d422321917d81', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'ed7a27c9ca674e39a508ec3906e2e74c', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'accounted7a27c9-ca67-4e39-a508-ec3906e2e74c' WHERE `accounts`.`id` = x'ed7a27c9ca674e39a508ec3906e2e74c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ed7a27c9ca674e39a508ec3906e2e74c' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ed7a27c9ca674e39a508ec3906e2e74c', x'379838bc9cab4bd692849377e51151ba', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'77ebddf83fc942ecb9c16dc411e1b262', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account77ebddf8-3fc9-42ec-b9c1-6dc411e1b262' WHERE `accounts`.`id` = x'77ebddf83fc942ecb9c16dc411e1b262'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'77ebddf83fc942ecb9c16dc411e1b262' AND `account_domains`.`url` = 'www.normal.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'77ebddf83fc942ecb9c16dc411e1b262', x'1a8d3d1831974887a97d35c07a9fbd4e', NULL, 'www.normal.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'f5f55d9447f649209db60386e3dd04d5', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'accountf5f55d94-47f6-4920-9db6-0386e3dd04d5' WHERE `accounts`.`id` = x'f5f55d9447f649209db60386e3dd04d5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f5f55d9447f649209db60386e3dd04d5' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f5f55d9447f649209db60386e3dd04d5', x'dc178bffa9dd4938a1d12b040f50ad8f', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:40:18', x'83be121220184b0880d4183c7ec07397', 'jabanilson', NULL, 1, '2012-12-31 12:40:18')  (1.1ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:40:18', `updated_at` = '2012-12-31 12:40:18', `subdomain` = 'account83be1212-2018-4b08-80d4-183c7ec07397' WHERE `accounts`.`id` = x'83be121220184b0880d4183c7ec07397'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'83be121220184b0880d4183c7ec07397' AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'83be121220184b0880d4183c7ec07397', x'5966591b4f66474f8737a3fe5cf2ad75', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (12.5ms) TRUNCATE TABLE `account_roles`;  (1.1ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (0.9ms) TRUNCATE TABLE `delayed_jobs`;  (1.0ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'95f36ffdec474e29ade66a607b924e87', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'account95f36ffd-ec47-4e29-ade6-6a607b924e87' WHERE `accounts`.`id` = x'95f36ffdec474e29ade66a607b924e87'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'95f36ffdec474e29ade66a607b924e87' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'95f36ffdec474e29ade66a607b924e87', x'152c05129bec4dd78410f05f6910587d', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'e24b59f6b1f64f95a6bc2b6e653b08c1', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accounte24b59f6-b1f6-4f95-a6bc-2b6e653b08c1' WHERE `accounts`.`id` = x'e24b59f6b1f64f95a6bc2b6e653b08c1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e24b59f6b1f64f95a6bc2b6e653b08c1' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e24b59f6b1f64f95a6bc2b6e653b08c1', x'ccd76e2906b94742945184d5a794e0ff', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'ac64129065f742cb9b9606f094624243', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountac641290-65f7-42cb-9b96-06f094624243' WHERE `accounts`.`id` = x'ac64129065f742cb9b9606f094624243'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ac64129065f742cb9b9606f094624243' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ac64129065f742cb9b9606f094624243', x'50363c573f374623ad1261e8bc80ff96', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'de3aca081641402f8c43ddda3ae782b8', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountde3aca08-1641-402f-8c43-ddda3ae782b8' WHERE `accounts`.`id` = x'de3aca081641402f8c43ddda3ae782b8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'de3aca081641402f8c43ddda3ae782b8' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'de3aca081641402f8c43ddda3ae782b8', x'ea9676bdfd6241878912e1ed6911023b', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'bae551dace5948a29e384adcbc66b4b9', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountbae551da-ce59-48a2-9e38-4adcbc66b4b9' WHERE `accounts`.`id` = x'bae551dace5948a29e384adcbc66b4b9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bae551dace5948a29e384adcbc66b4b9' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bae551dace5948a29e384adcbc66b4b9', x'a4fbb740fd80471c83b1c96126c904ac', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'd0d2022138124c1ab55fa495bdd43bc0', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountd0d20221-3812-4c1a-b55f-a495bdd43bc0' WHERE `accounts`.`id` = x'd0d2022138124c1ab55fa495bdd43bc0'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd0d2022138124c1ab55fa495bdd43bc0' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd0d2022138124c1ab55fa495bdd43bc0', x'ace70df42dfb4520a8554c83d4745e3c', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'1de62b67cf6343aea563f347ced98579', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'account1de62b67-cf63-43ae-a563-f347ced98579' WHERE `accounts`.`id` = x'1de62b67cf6343aea563f347ced98579'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'e58d5087357c460c8f1573ede1293939', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accounte58d5087-357c-460c-8f15-73ede1293939' WHERE `accounts`.`id` = x'e58d5087357c460c8f1573ede1293939'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e58d5087357c460c8f1573ede1293939' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e58d5087357c460c8f1573ede1293939', x'46833cbdf53b4653a197f0c2e4e64ab1', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'cba9b7bcc84b41acbf608fc2fa580c42', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountcba9b7bc-c84b-41ac-bf60-8fc2fa580c42' WHERE `accounts`.`id` = x'cba9b7bcc84b41acbf608fc2fa580c42'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'cba9b7bcc84b41acbf608fc2fa580c42' AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'cba9b7bcc84b41acbf608fc2fa580c42', x'5580cf5bb51b42a59b7a0a8a09436152', NULL, 'valid.url.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'cba9b7bcc84b41acbf608fc2fa580c42' AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'b36f40d972ed4551a35064f97584db30', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountb36f40d9-72ed-4551-a350-64f97584db30' WHERE `accounts`.`id` = x'b36f40d972ed4551a35064f97584db30'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b36f40d972ed4551a35064f97584db30' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b36f40d972ed4551a35064f97584db30', x'0ccb4438fc0e47d8bd0e1a382c23db0c', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'e18c2eb373544095976124e2e785d551', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accounte18c2eb3-7354-4095-9761-24e2e785d551' WHERE `accounts`.`id` = x'e18c2eb373544095976124e2e785d551'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e18c2eb373544095976124e2e785d551' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e18c2eb373544095976124e2e785d551', x'e3583b9b72f74c2f810f9d4be5347aa2', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'ec19db2221bd41abb243ebea5207d7d6', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountec19db22-21bd-41ab-b243-ebea5207d7d6' WHERE `accounts`.`id` = x'ec19db2221bd41abb243ebea5207d7d6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ec19db2221bd41abb243ebea5207d7d6' AND `account_domains`.`url` = 'url1.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ec19db2221bd41abb243ebea5207d7d6', x'085db9bfe7c649839be4ef5fb13ee720', NULL, 'url1.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ec19db2221bd41abb243ebea5207d7d6' AND `account_domains`.`url` = 'url2.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ec19db2221bd41abb243ebea5207d7d6', x'499c1bf6631e46b9a97fa4a36c316dbb', NULL, 'url2.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'085db9bfe7c649839be4ef5fb13ee720'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'499c1bf6631e46b9a97fa4a36c316dbb'  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'ec19db2221bd41abb243ebea5207d7d6'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'085db9bfe7c649839be4ef5fb13ee720'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'085db9bfe7c649839be4ef5fb13ee720'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ec19db2221bd41abb243ebea5207d7d6' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'ec19db2221bd41abb243ebea5207d7d6' AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'499c1bf6631e46b9a97fa4a36c316dbb' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'085db9bfe7c649839be4ef5fb13ee720'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'499c1bf6631e46b9a97fa4a36c316dbb' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'ca6a84da811d41d094541081d9d277dc', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountca6a84da-811d-41d0-9454-1081d9d277dc' WHERE `accounts`.`id` = x'ca6a84da811d41d094541081d9d277dc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ca6a84da811d41d094541081d9d277dc' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ca6a84da811d41d094541081d9d277dc', x'3f7b83c1b8cb4bc3b44d61bfcdb395e2', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'd877827e70554b02b5856304981a30dc', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountd877827e-7055-4b02-b585-6304981a30dc' WHERE `accounts`.`id` = x'd877827e70554b02b5856304981a30dc'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd877827e70554b02b5856304981a30dc' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd877827e70554b02b5856304981a30dc', x'128be49099ac4c9ea7d4940eedafd74f', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'1cfec61bc7804591862088844ad1da12', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'account1cfec61b-c780-4591-8620-88844ad1da12' WHERE `accounts`.`id` = x'1cfec61bc7804591862088844ad1da12'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1cfec61bc7804591862088844ad1da12' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1cfec61bc7804591862088844ad1da12', x'e8998f490bfb45b894c4f0de87fcf83e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'2638a0a4595149a489669509bf29908b', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'account2638a0a4-5951-49a4-8966-9509bf29908b' WHERE `accounts`.`id` = x'2638a0a4595149a489669509bf29908b'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2638a0a4595149a489669509bf29908b' AND `account_domains`.`url` = 'www.normal.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2638a0a4595149a489669509bf29908b', x'fa72f296a7b64ef79164266d4fbc12d1', NULL, 'www.normal.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'd1656dcfb9fd46baa0e807d3025e2a34', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'accountd1656dcf-b9fd-46ba-a0e8-07d3025e2a34' WHERE `accounts`.`id` = x'd1656dcfb9fd46baa0e807d3025e2a34'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd1656dcfb9fd46baa0e807d3025e2a34' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd1656dcfb9fd46baa0e807d3025e2a34', x'8f01c48670a0429ca78e214102a46ddb', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:41:44', x'06e36c4c9eaf47c7b02be7bee5876978', 'jabanilson', NULL, 1, '2012-12-31 12:41:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:41:44', `updated_at` = '2012-12-31 12:41:44', `subdomain` = 'account06e36c4c-9eaf-47c7-b02b-e7bee5876978' WHERE `accounts`.`id` = x'06e36c4c9eaf47c7b02be7bee5876978'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'06e36c4c9eaf47c7b02be7bee5876978' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'06e36c4c9eaf47c7b02be7bee5876978', x'5f1f2e460c6541669a98429c85c94dfe', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.7ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (12.8ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (1.0ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'c386b55ea1c14544b3dc2acdf6578a37', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'accountc386b55e-a1c1-4544-b3dc-2acdf6578a37' WHERE `accounts`.`id` = x'c386b55ea1c14544b3dc2acdf6578a37'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c386b55ea1c14544b3dc2acdf6578a37' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c386b55ea1c14544b3dc2acdf6578a37', x'1cddd0b7d8b44380a32d5e3b0ab6e12b', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'4c6eb88b92cd41b0979baeaa2d012d4e', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account4c6eb88b-92cd-41b0-979b-aeaa2d012d4e' WHERE `accounts`.`id` = x'4c6eb88b92cd41b0979baeaa2d012d4e'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c6eb88b92cd41b0979baeaa2d012d4e' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4c6eb88b92cd41b0979baeaa2d012d4e', x'db509d77c06b4ab995daf5f8f511a584', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'0b02548e92fd4661a251f1a6e38c4149', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account0b02548e-92fd-4661-a251-f1a6e38c4149' WHERE `accounts`.`id` = x'0b02548e92fd4661a251f1a6e38c4149'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0b02548e92fd4661a251f1a6e38c4149' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0b02548e92fd4661a251f1a6e38c4149', x'f8678755bae641baa37aed555487c484', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'e5a48cb70a1f4c85aca4f1b099ec1356', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'accounte5a48cb7-0a1f-4c85-aca4-f1b099ec1356' WHERE `accounts`.`id` = x'e5a48cb70a1f4c85aca4f1b099ec1356'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e5a48cb70a1f4c85aca4f1b099ec1356' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e5a48cb70a1f4c85aca4f1b099ec1356', x'2ae398eb2b334a38b178e50badb27ae1', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'486ff64dcb604c27b6d9fbcfd6a132c6', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account486ff64d-cb60-4c27-b6d9-fbcfd6a132c6' WHERE `accounts`.`id` = x'486ff64dcb604c27b6d9fbcfd6a132c6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'486ff64dcb604c27b6d9fbcfd6a132c6' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'486ff64dcb604c27b6d9fbcfd6a132c6', x'74e2912089dc41498966f720fe7df646', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'e5eb404f0ab54a6d8fb6520b848da532', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'accounte5eb404f-0ab5-4a6d-8fb6-520b848da532' WHERE `accounts`.`id` = x'e5eb404f0ab54a6d8fb6520b848da532'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e5eb404f0ab54a6d8fb6520b848da532' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e5eb404f0ab54a6d8fb6520b848da532', x'91480ddc09aa45aabf8819322dbc09e7', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'38283f6f73bd4e16ba4fbcc6492eabb5', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account38283f6f-73bd-4e16-ba4f-bcc6492eabb5' WHERE `accounts`.`id` = x'38283f6f73bd4e16ba4fbcc6492eabb5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'22ad6945199e442f88eb1d0448fae32a', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account22ad6945-199e-442f-88eb-1d0448fae32a' WHERE `accounts`.`id` = x'22ad6945199e442f88eb1d0448fae32a'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'22ad6945199e442f88eb1d0448fae32a' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'22ad6945199e442f88eb1d0448fae32a', x'8d26269910a6431aa9751b5c4a4ea788', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'b7abb0f8ef174750b66114e8cd5d4a4c', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'accountb7abb0f8-ef17-4750-b661-14e8cd5d4a4c' WHERE `accounts`.`id` = x'b7abb0f8ef174750b66114e8cd5d4a4c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b7abb0f8ef174750b66114e8cd5d4a4c' AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b7abb0f8ef174750b66114e8cd5d4a4c', x'356fc45e1f3b42279cba9f859fd2e839', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b7abb0f8ef174750b66114e8cd5d4a4c' AND `account_domains`.`url` = 'valid.url.test'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'c5b974df02d642fb8e1927076564fa4b', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'accountc5b974df-02d6-42fb-8e19-27076564fa4b' WHERE `accounts`.`id` = x'c5b974df02d642fb8e1927076564fa4b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c5b974df02d642fb8e1927076564fa4b' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c5b974df02d642fb8e1927076564fa4b', x'33b321eee8c549f2bed81928a236d466', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'9953f5ec0b3c4c339f2cc446cdf56bea', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account9953f5ec-0b3c-4c33-9f2c-c446cdf56bea' WHERE `accounts`.`id` = x'9953f5ec0b3c4c339f2cc446cdf56bea'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9953f5ec0b3c4c339f2cc446cdf56bea' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9953f5ec0b3c4c339f2cc446cdf56bea', x'7cc6f22f9d9147c4b8730615e47a83ce', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'04264885c2594fbea50c46c340b12634', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account04264885-c259-4fbe-a50c-46c340b12634' WHERE `accounts`.`id` = x'04264885c2594fbea50c46c340b12634'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'04264885c2594fbea50c46c340b12634' AND `account_domains`.`url` = 'url1.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'04264885c2594fbea50c46c340b12634', x'97926bc2703f42e48d68586704e74925', NULL, 'url1.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'04264885c2594fbea50c46c340b12634' AND `account_domains`.`url` = 'url2.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'04264885c2594fbea50c46c340b12634', x'362c7ad7eb5d4f2b84976318a8e618b8', NULL, 'url2.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'97926bc2703f42e48d68586704e74925'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'362c7ad7eb5d4f2b84976318a8e618b8'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'04264885c2594fbea50c46c340b12634'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'97926bc2703f42e48d68586704e74925'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'97926bc2703f42e48d68586704e74925'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'04264885c2594fbea50c46c340b12634' AND `account_domains`.`primary` = 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'04264885c2594fbea50c46c340b12634' AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'362c7ad7eb5d4f2b84976318a8e618b8' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'97926bc2703f42e48d68586704e74925'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'362c7ad7eb5d4f2b84976318a8e618b8' LIMIT 1  (16.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'c2c8b1664b654ef187c62a1decbdc081', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'accountc2c8b166-4b65-4ef1-87c6-2a1decbdc081' WHERE `accounts`.`id` = x'c2c8b1664b654ef187c62a1decbdc081'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c2c8b1664b654ef187c62a1decbdc081' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c2c8b1664b654ef187c62a1decbdc081', x'76eebc13f6d8420ca2275861cfa03577', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'34f188d46ed448a5b6b9f2245347d9ff', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account34f188d4-6ed4-48a5-b6b9-f2245347d9ff' WHERE `accounts`.`id` = x'34f188d46ed448a5b6b9f2245347d9ff'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'34f188d46ed448a5b6b9f2245347d9ff' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'34f188d46ed448a5b6b9f2245347d9ff', x'8f208b6d7523460dab51d513de39fbc3', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'89a3a4e790af48d199c0984a6ce92067', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account89a3a4e7-90af-48d1-99c0-984a6ce92067' WHERE `accounts`.`id` = x'89a3a4e790af48d199c0984a6ce92067'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'89a3a4e790af48d199c0984a6ce92067' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'89a3a4e790af48d199c0984a6ce92067', x'ae6e7ab5834c42c3bba73abe7fb4b60f', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'301fd7e9e13f4a0496f6e5c85c18e0bd', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account301fd7e9-e13f-4a04-96f6-e5c85c18e0bd' WHERE `accounts`.`id` = x'301fd7e9e13f4a0496f6e5c85c18e0bd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'301fd7e9e13f4a0496f6e5c85c18e0bd' AND `account_domains`.`url` = 'www.normal.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'301fd7e9e13f4a0496f6e5c85c18e0bd', x'0f233a52b6854544875f4d9a6d3fe796', NULL, 'www.normal.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'6c3f00df2fd94130b1f16fadacf04180', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account6c3f00df-2fd9-4130-b1f1-6fadacf04180' WHERE `accounts`.`id` = x'6c3f00df2fd94130b1f16fadacf04180'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6c3f00df2fd94130b1f16fadacf04180' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'6c3f00df2fd94130b1f16fadacf04180', x'a3e60ff3e6e64f68a0ca245f30611c02', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:31', x'7fa5d0f29e50499690ed44c20e53dddf', 'jabanilson', NULL, 1, '2012-12-31 12:42:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:31', `updated_at` = '2012-12-31 12:42:31', `subdomain` = 'account7fa5d0f2-9e50-4996-90ed-44c20e53dddf' WHERE `accounts`.`id` = x'7fa5d0f29e50499690ed44c20e53dddf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7fa5d0f29e50499690ed44c20e53dddf' AND `account_domains`.`url` = 'iugu.com' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7fa5d0f29e50499690ed44c20e53dddf', x'5fdc6a68665b4c62bda04bf11c73aa68', NULL, 'iugu.com', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'5fdc6a68665b4c62bda04bf11c73aa68'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7fa5d0f29e50499690ed44c20e53dddf' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'7fa5d0f29e50499690ed44c20e53dddf' AND `account_domains`.`verified` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:32', x'ed474accf7fb4d669e11a5c0239afec4', 'jabanilson', NULL, 1, '2012-12-31 12:42:32')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:32', `updated_at` = '2012-12-31 12:42:32', `subdomain` = 'accounted474acc-f7fb-4d66-9e11-a5c0239afec4' WHERE `accounts`.`id` = x'ed474accf7fb4d669e11a5c0239afec4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ed474accf7fb4d669e11a5c0239afec4' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ed474accf7fb4d669e11a5c0239afec4', x'30cee8c2c76644588e6b21255a870abb', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:32', x'1b31a5d0022e4156ace4982ef81176ff', 'jabanilson', NULL, 1, '2012-12-31 12:42:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:32', `updated_at` = '2012-12-31 12:42:32', `subdomain` = 'account1b31a5d0-022e-4156-ace4-982ef81176ff' WHERE `accounts`.`id` = x'1b31a5d0022e4156ace4982ef81176ff'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1b31a5d0022e4156ace4982ef81176ff' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1b31a5d0022e4156ace4982ef81176ff', x'0bff463990e5415492c77bfc8100bcf3', NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'0bff463990e5415492c77bfc8100bcf3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1b31a5d0022e4156ace4982ef81176ff' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'1b31a5d0022e4156ace4982ef81176ff' AND `account_domains`.`verified` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:32', x'3ca69140741a4ba6a0d80541588fc92c', 'jabanilson', NULL, 1, '2012-12-31 12:42:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:32', `updated_at` = '2012-12-31 12:42:32', `subdomain` = 'account3ca69140-741a-4ba6-a0d8-0541588fc92c' WHERE `accounts`.`id` = x'3ca69140741a4ba6a0d80541588fc92c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3ca69140741a4ba6a0d80541588fc92c' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3ca69140741a4ba6a0d80541588fc92c', x'8a3f7bf6b1a840de8347deb229a0a361', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:32', x'94fc17f30ea24710a88bfebe503c33e8', 'jabanilson', NULL, 1, '2012-12-31 12:42:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:32', `updated_at` = '2012-12-31 12:42:32', `subdomain` = 'account94fc17f3-0ea2-4710-a88b-febe503c33e8' WHERE `accounts`.`id` = x'94fc17f30ea24710a88bfebe503c33e8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'94fc17f30ea24710a88bfebe503c33e8' AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'94fc17f30ea24710a88bfebe503c33e8', x'af111184946d40d9b81e91675dd0bae6', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'af111184946d40d9b81e91675dd0bae6'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:42:32', x'f9f504ec3eb64e1bafee26f644113483', 'jabanilson', NULL, 1, '2012-12-31 12:42:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:42:32', `updated_at` = '2012-12-31 12:42:32', `subdomain` = 'accountf9f504ec-3eb6-4e1b-afee-26f644113483' WHERE `accounts`.`id` = x'f9f504ec3eb64e1bafee26f644113483'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f9f504ec3eb64e1bafee26f644113483' AND `account_domains`.`url` = 'www.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f9f504ec3eb64e1bafee26f644113483', x'bcc9b5fe2d144ef3b8a56a66ec92c098', NULL, 'www.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (13.7ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.7ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (0.9ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:36', x'c5a47404f56e4eb892afadb713d2f176', 'jabanilson', NULL, 1, '2012-12-31 12:43:36')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:36', `updated_at` = '2012-12-31 12:43:36', `subdomain` = 'accountc5a47404-f56e-4eb8-92af-adb713d2f176' WHERE `accounts`.`id` = x'c5a47404f56e4eb892afadb713d2f176'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c5a47404f56e4eb892afadb713d2f176' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c5a47404f56e4eb892afadb713d2f176', x'552f2d55cf244448aa42a356ee428080', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:36', x'5c8e2d89f759437ba26615007cf69849', 'jabanilson', NULL, 1, '2012-12-31 12:43:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:36', `updated_at` = '2012-12-31 12:43:36', `subdomain` = 'account5c8e2d89-f759-437b-a266-15007cf69849' WHERE `accounts`.`id` = x'5c8e2d89f759437ba26615007cf69849'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5c8e2d89f759437ba26615007cf69849' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5c8e2d89f759437ba26615007cf69849', x'08228f386e2a4f19bcffefcd7618a3af', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:36', x'030ee32c85f84b489b02488e461fd515', 'jabanilson', NULL, 1, '2012-12-31 12:43:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:36', `updated_at` = '2012-12-31 12:43:36', `subdomain` = 'account030ee32c-85f8-4b48-9b02-488e461fd515' WHERE `accounts`.`id` = x'030ee32c85f84b489b02488e461fd515'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'030ee32c85f84b489b02488e461fd515' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'030ee32c85f84b489b02488e461fd515', x'641e3ff7564d4637b8c82a32e8af94c1', NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:36', x'beef19db4ceb41f9b60faf9bd2e08a4f', 'jabanilson', NULL, 1, '2012-12-31 12:43:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:36', `updated_at` = '2012-12-31 12:43:36', `subdomain` = 'accountbeef19db-4ceb-41f9-b60f-af9bd2e08a4f' WHERE `accounts`.`id` = x'beef19db4ceb41f9b60faf9bd2e08a4f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'beef19db4ceb41f9b60faf9bd2e08a4f' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'beef19db4ceb41f9b60faf9bd2e08a4f', x'948ff2711ece4385b9cb07a4f2028708', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:36', x'b9f17c46f68d40f08e1d99bd388eb532', 'jabanilson', NULL, 1, '2012-12-31 12:43:36')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:36', `updated_at` = '2012-12-31 12:43:36', `subdomain` = 'accountb9f17c46-f68d-40f0-8e1d-99bd388eb532' WHERE `accounts`.`id` = x'b9f17c46f68d40f08e1d99bd388eb532'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b9f17c46f68d40f08e1d99bd388eb532' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b9f17c46f68d40f08e1d99bd388eb532', x'c0efeb9537d3426c9b0d49292bc28959', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'4821504b645f46ac9698c47c8bc4923b', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account4821504b-645f-46ac-9698-c47c8bc4923b' WHERE `accounts`.`id` = x'4821504b645f46ac9698c47c8bc4923b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4821504b645f46ac9698c47c8bc4923b' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4821504b645f46ac9698c47c8bc4923b', x'1b02b15703b04508b6f640566de23d96', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'1fd8877b875c4215ab9fcabec4731504', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account1fd8877b-875c-4215-ab9f-cabec4731504' WHERE `accounts`.`id` = x'1fd8877b875c4215ab9fcabec4731504'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'476f2be57aa242b2b536dfd85ffbe961', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account476f2be5-7aa2-42b2-b536-dfd85ffbe961' WHERE `accounts`.`id` = x'476f2be57aa242b2b536dfd85ffbe961'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'476f2be57aa242b2b536dfd85ffbe961' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'476f2be57aa242b2b536dfd85ffbe961', x'818bd98857524b75b0f0a9584b890a42', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'e8babfcd46804ef2ad263470c4e04731', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'accounte8babfcd-4680-4ef2-ad26-3470c4e04731' WHERE `accounts`.`id` = x'e8babfcd46804ef2ad263470c4e04731'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e8babfcd46804ef2ad263470c4e04731' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e8babfcd46804ef2ad263470c4e04731', x'bb41de2cb329420a9da582d956a4cb76', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e8babfcd46804ef2ad263470c4e04731' AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'b855e2d2512a4129846545f8bfa3d217', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'accountb855e2d2-512a-4129-8465-45f8bfa3d217' WHERE `accounts`.`id` = x'b855e2d2512a4129846545f8bfa3d217'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b855e2d2512a4129846545f8bfa3d217' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b855e2d2512a4129846545f8bfa3d217', x'251ce753173445868f73595bf201ba02', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'055b3ca40aa947b7ab0c65b63723d27c', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account055b3ca4-0aa9-47b7-ab0c-65b63723d27c' WHERE `accounts`.`id` = x'055b3ca40aa947b7ab0c65b63723d27c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'055b3ca40aa947b7ab0c65b63723d27c' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'055b3ca40aa947b7ab0c65b63723d27c', x'b4356df9439242ec8ef267678bea161c', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'a2b82d0a192147608e170125063e41b3', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'accounta2b82d0a-1921-4760-8e17-0125063e41b3' WHERE `accounts`.`id` = x'a2b82d0a192147608e170125063e41b3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a2b82d0a192147608e170125063e41b3' AND `account_domains`.`url` = 'url1.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a2b82d0a192147608e170125063e41b3', x'f0d7236cd94e4447bf49a61edb546cdf', NULL, 'url1.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a2b82d0a192147608e170125063e41b3' AND `account_domains`.`url` = 'url2.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a2b82d0a192147608e170125063e41b3', x'5235c46c45334705b44b8c02c8e2b2bd', NULL, 'url2.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'f0d7236cd94e4447bf49a61edb546cdf'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'5235c46c45334705b44b8c02c8e2b2bd'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'a2b82d0a192147608e170125063e41b3'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'f0d7236cd94e4447bf49a61edb546cdf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'f0d7236cd94e4447bf49a61edb546cdf'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a2b82d0a192147608e170125063e41b3' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'a2b82d0a192147608e170125063e41b3' AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'5235c46c45334705b44b8c02c8e2b2bd' SQL (0.1ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'f0d7236cd94e4447bf49a61edb546cdf'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'5235c46c45334705b44b8c02c8e2b2bd' LIMIT 1  (8.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'd22a11745a0a4692a4337be568038e62', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'accountd22a1174-5a0a-4692-a433-7be568038e62' WHERE `accounts`.`id` = x'd22a11745a0a4692a4337be568038e62'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd22a11745a0a4692a4337be568038e62' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd22a11745a0a4692a4337be568038e62', x'eeb180ed62654aa29919bbd344422ecf', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'2e4a6b6a4df54f6a932482e7e819c183', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account2e4a6b6a-4df5-4f6a-9324-82e7e819c183' WHERE `accounts`.`id` = x'2e4a6b6a4df54f6a932482e7e819c183'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2e4a6b6a4df54f6a932482e7e819c183' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2e4a6b6a4df54f6a932482e7e819c183', x'075b6a99db3d4df8baad5e98541e3cc4', NULL, 'www.normal.host', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'8f1a039dfdc7492da19af885f8b56529', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account8f1a039d-fdc7-492d-a19a-f885f8b56529' WHERE `accounts`.`id` = x'8f1a039dfdc7492da19af885f8b56529'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8f1a039dfdc7492da19af885f8b56529' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8f1a039dfdc7492da19af885f8b56529', x'f843704475a540b183de49f7fd00572e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'6339303a5f8843fdbda8fd515301a41d', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account6339303a-5f88-43fd-bda8-fd515301a41d' WHERE `accounts`.`id` = x'6339303a5f8843fdbda8fd515301a41d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6339303a5f8843fdbda8fd515301a41d' AND `account_domains`.`url` = 'www.normal.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'6339303a5f8843fdbda8fd515301a41d', x'468706868d05403c9a9d08116184bb81', NULL, 'www.normal.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'29693e87e03f4a59bfb6798627e8b761', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account29693e87-e03f-4a59-bfb6-798627e8b761' WHERE `accounts`.`id` = x'29693e87e03f4a59bfb6798627e8b761'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'29693e87e03f4a59bfb6798627e8b761' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'29693e87e03f4a59bfb6798627e8b761', x'ba51e3da6433494581bc4b011b6e4f10', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'99e0218c4acf4c0da2d21bd9ae44f551', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account99e0218c-4acf-4c0d-a2d2-1bd9ae44f551' WHERE `accounts`.`id` = x'99e0218c4acf4c0da2d21bd9ae44f551'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'99e0218c4acf4c0da2d21bd9ae44f551' AND `account_domains`.`url` = 'iugu.com' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'99e0218c4acf4c0da2d21bd9ae44f551', x'20b10f061a5740dea38a68a4d25083dc', NULL, 'iugu.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'20b10f061a5740dea38a68a4d25083dc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'99e0218c4acf4c0da2d21bd9ae44f551' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'99e0218c4acf4c0da2d21bd9ae44f551' AND `account_domains`.`verified` = 1 LIMIT 1  (6.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'cdb469a8da8c475da8d69bfab26855af', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'accountcdb469a8-da8c-475d-a8d6-9bfab26855af' WHERE `accounts`.`id` = x'cdb469a8da8c475da8d69bfab26855af'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'cdb469a8da8c475da8d69bfab26855af' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'cdb469a8da8c475da8d69bfab26855af', x'146784aa8ab54bc0971849b99e33705d', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'43f25545b2f7494c917e99d2a05b762a', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account43f25545-b2f7-494c-917e-99d2a05b762a' WHERE `accounts`.`id` = x'43f25545b2f7494c917e99d2a05b762a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'43f25545b2f7494c917e99d2a05b762a' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'43f25545b2f7494c917e99d2a05b762a', x'b9d69afc84cd44839790493cd2354a26', NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'b9d69afc84cd44839790493cd2354a26'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'43f25545b2f7494c917e99d2a05b762a' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'43f25545b2f7494c917e99d2a05b762a' AND `account_domains`.`verified` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'ddd80162a8384672a78225fdfc54f8be', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'accountddd80162-a838-4672-a782-25fdfc54f8be' WHERE `accounts`.`id` = x'ddd80162a8384672a78225fdfc54f8be'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ddd80162a8384672a78225fdfc54f8be' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ddd80162a8384672a78225fdfc54f8be', x'0a6aa8b0046d4640bea5d672aaf92759', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'5e633b07f4684f23b407cc546899d249', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account5e633b07-f468-4f23-b407-cc546899d249' WHERE `accounts`.`id` = x'5e633b07f4684f23b407cc546899d249'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5e633b07f4684f23b407cc546899d249' AND `account_domains`.`url` = 'www.iugu.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5e633b07f4684f23b407cc546899d249', x'6576d1bbf5794bf3a02aa6052fd75e3b', NULL, 'www.iugu.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'6576d1bbf5794bf3a02aa6052fd75e3b'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'fd4c3bc52aa149deb18a971ec8a1c3d3', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'accountfd4c3bc5-2aa1-49de-b18a-971ec8a1c3d3' WHERE `accounts`.`id` = x'fd4c3bc52aa149deb18a971ec8a1c3d3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'fd4c3bc52aa149deb18a971ec8a1c3d3' AND `account_domains`.`url` = 'www.iugu.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'fd4c3bc52aa149deb18a971ec8a1c3d3', x'4aee65957b11454ba3344f07ea7a22b6', NULL, 'www.iugu.com', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'4aee65957b11454ba3344f07ea7a22b6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'fd4c3bc52aa149deb18a971ec8a1c3d3' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'fd4c3bc52aa149deb18a971ec8a1c3d3' AND `account_domains`.`verified` = 1 LIMIT 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'6576d1bbf5794bf3a02aa6052fd75e3b' LIMIT 1  (8.3ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'355eff0ca41848aa8c377ff2e7287930', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account355eff0c-a418-48aa-8c37-7ff2e7287930' WHERE `accounts`.`id` = x'355eff0ca41848aa8c377ff2e7287930'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'355eff0ca41848aa8c377ff2e7287930' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'355eff0ca41848aa8c377ff2e7287930', x'ca45a8e126bc49699f75b671347d2722', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'123dd99ea0da433bb8f838b0eeba2518', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account123dd99e-a0da-433b-b8f8-38b0eeba2518' WHERE `accounts`.`id` = x'123dd99ea0da433bb8f838b0eeba2518'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:43:37', x'06f52ffb99314b669cb6b6a1f12e1046', 'jabanilson', NULL, 1, '2012-12-31 12:43:37')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:43:37', `updated_at` = '2012-12-31 12:43:37', `subdomain` = 'account06f52ffb-9931-4b66-9cb6-b6a1f12e1046' WHERE `accounts`.`id` = x'06f52ffb99314b669cb6b6a1f12e1046'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'06f52ffb99314b669cb6b6a1f12e1046' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'06f52ffb99314b669cb6b6a1f12e1046', x'3041f3fb876245d0854b7b8785764676', NULL, 'www.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.1ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (0.9ms) TRUNCATE TABLE `api_tokens`;  (0.9ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.7ms) TRUNCATE TABLE `user_invitations`;  (21.8ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:37', x'd9292da392964a00b8ca1dbfdf1dadcf', 'jabanilson', NULL, 1, '2012-12-31 12:44:37')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:37', `updated_at` = '2012-12-31 12:44:37', `subdomain` = 'accountd9292da3-9296-4a00-b8ca-1dbfdf1dadcf' WHERE `accounts`.`id` = x'd9292da392964a00b8ca1dbfdf1dadcf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd9292da392964a00b8ca1dbfdf1dadcf' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd9292da392964a00b8ca1dbfdf1dadcf', x'e2946c35fc3f4913a15ddf249c95adab', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'e495d1f2a5fc4bc5b7170d4a1dd55bfc', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'accounte495d1f2-a5fc-4bc5-b717-0d4a1dd55bfc' WHERE `accounts`.`id` = x'e495d1f2a5fc4bc5b7170d4a1dd55bfc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e495d1f2a5fc4bc5b7170d4a1dd55bfc' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e495d1f2a5fc4bc5b7170d4a1dd55bfc', x'ff7f6a421690496098b2f150070153a2', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'154581da3a9243168ec3c9cca83415b9', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account154581da-3a92-4316-8ec3-c9cca83415b9' WHERE `accounts`.`id` = x'154581da3a9243168ec3c9cca83415b9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'154581da3a9243168ec3c9cca83415b9' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'154581da3a9243168ec3c9cca83415b9', x'18a7b263c64b46fe876c2269c815b5c8', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'5a4ce814d0434bcabbd355b6417c57ca', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account5a4ce814-d043-4bca-bbd3-55b6417c57ca' WHERE `accounts`.`id` = x'5a4ce814d0434bcabbd355b6417c57ca'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5a4ce814d0434bcabbd355b6417c57ca' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5a4ce814d0434bcabbd355b6417c57ca', x'42b83ac4faa74d86a366bcaa9cf63137', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'5e7eb1d8e01549caa01504d1b6a9bc66', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account5e7eb1d8-e015-49ca-a015-04d1b6a9bc66' WHERE `accounts`.`id` = x'5e7eb1d8e01549caa01504d1b6a9bc66'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5e7eb1d8e01549caa01504d1b6a9bc66' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5e7eb1d8e01549caa01504d1b6a9bc66', x'5e9b22b136f74237bdb56944311c3bbb', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'690bddafeaa0406fae5f7fadcc68eb54', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account690bddaf-eaa0-406f-ae5f-7fadcc68eb54' WHERE `accounts`.`id` = x'690bddafeaa0406fae5f7fadcc68eb54'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'690bddafeaa0406fae5f7fadcc68eb54' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'690bddafeaa0406fae5f7fadcc68eb54', x'67ff781b5aaf4b2fa26c5886c95b06cf', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'1a027389c10f4a26b8da5a326564d7a2', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account1a027389-c10f-4a26-b8da-5a326564d7a2' WHERE `accounts`.`id` = x'1a027389c10f4a26b8da5a326564d7a2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'ebe942f3a5914cb38f125d276d249bfd', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'accountebe942f3-a591-4cb3-8f12-5d276d249bfd' WHERE `accounts`.`id` = x'ebe942f3a5914cb38f125d276d249bfd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ebe942f3a5914cb38f125d276d249bfd' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ebe942f3a5914cb38f125d276d249bfd', x'9854f2095bc647fa9799d515d35e8986', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'968ffd0ee93d47fd86e8dc38f2facc4d', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account968ffd0e-e93d-47fd-86e8-dc38f2facc4d' WHERE `accounts`.`id` = x'968ffd0ee93d47fd86e8dc38f2facc4d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'968ffd0ee93d47fd86e8dc38f2facc4d' AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'968ffd0ee93d47fd86e8dc38f2facc4d', x'c737826ec48b47d395bfded57df4b785', NULL, 'valid.url.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'968ffd0ee93d47fd86e8dc38f2facc4d' AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'bfdf655776164c3e872cbc88a0d1f352', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'accountbfdf6557-7616-4c3e-872c-bc88a0d1f352' WHERE `accounts`.`id` = x'bfdf655776164c3e872cbc88a0d1f352'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bfdf655776164c3e872cbc88a0d1f352' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bfdf655776164c3e872cbc88a0d1f352', x'5b39fd3f975e49dc8a912caa30eb1233', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'50315bb502744b3aa914b40dedaf94f4', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account50315bb5-0274-4b3a-a914-b40dedaf94f4' WHERE `accounts`.`id` = x'50315bb502744b3aa914b40dedaf94f4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'50315bb502744b3aa914b40dedaf94f4' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'50315bb502744b3aa914b40dedaf94f4', x'f1850365fd8c445ebbbdd0c3eac8105a', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'1769768486b24b29a67dd6c14eb3ad19', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account17697684-86b2-4b29-a67d-d6c14eb3ad19' WHERE `accounts`.`id` = x'1769768486b24b29a67dd6c14eb3ad19'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1769768486b24b29a67dd6c14eb3ad19' AND `account_domains`.`url` = 'url1.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1769768486b24b29a67dd6c14eb3ad19', x'0009d9d5071c4022bf13a04f97b42437', NULL, 'url1.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1769768486b24b29a67dd6c14eb3ad19' AND `account_domains`.`url` = 'url2.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1769768486b24b29a67dd6c14eb3ad19', x'39552a1b5bf34b31a4a296cdb058c538', NULL, 'url2.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'0009d9d5071c4022bf13a04f97b42437'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'39552a1b5bf34b31a4a296cdb058c538'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'1769768486b24b29a67dd6c14eb3ad19'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'0009d9d5071c4022bf13a04f97b42437'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'0009d9d5071c4022bf13a04f97b42437'  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1769768486b24b29a67dd6c14eb3ad19' AND `account_domains`.`primary` = 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'1769768486b24b29a67dd6c14eb3ad19' AND `account_domains`.`verified` = 1 LIMIT 1  (0.3ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'39552a1b5bf34b31a4a296cdb058c538' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'0009d9d5071c4022bf13a04f97b42437'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'39552a1b5bf34b31a4a296cdb058c538' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'17a2b193ce0846028319dcc9f1bd9263', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account17a2b193-ce08-4602-8319-dcc9f1bd9263' WHERE `accounts`.`id` = x'17a2b193ce0846028319dcc9f1bd9263'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'17a2b193ce0846028319dcc9f1bd9263' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'17a2b193ce0846028319dcc9f1bd9263', x'0ee28f839b024c1d8ed42b47711b33a3', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'8192a0c6b987411f844362e4080e6fd8', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account8192a0c6-b987-411f-8443-62e4080e6fd8' WHERE `accounts`.`id` = x'8192a0c6b987411f844362e4080e6fd8'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8192a0c6b987411f844362e4080e6fd8' AND `account_domains`.`url` = 'www.normal.host' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8192a0c6b987411f844362e4080e6fd8', x'e161776132b94eb8af2c47c32eeec42c', NULL, 'www.normal.host', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'e287748f855a4521869c4a6f31a52469', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'accounte287748f-855a-4521-869c-4a6f31a52469' WHERE `accounts`.`id` = x'e287748f855a4521869c4a6f31a52469'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e287748f855a4521869c4a6f31a52469' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e287748f855a4521869c4a6f31a52469', x'ed9ed2a110474c74995821d090e9f31e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'941aec1007ca40b0835d57b94d7ea944', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account941aec10-07ca-40b0-835d-57b94d7ea944' WHERE `accounts`.`id` = x'941aec1007ca40b0835d57b94d7ea944'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'941aec1007ca40b0835d57b94d7ea944' AND `account_domains`.`url` = 'www.normal.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'941aec1007ca40b0835d57b94d7ea944', x'87800197c9694674885afb458e1439c1', NULL, 'www.normal.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'7535a0b12fec42428d88ca509845a03c', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account7535a0b1-2fec-4242-8d88-ca509845a03c' WHERE `accounts`.`id` = x'7535a0b12fec42428d88ca509845a03c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7535a0b12fec42428d88ca509845a03c' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7535a0b12fec42428d88ca509845a03c', x'79b170e502734c199e665b3c3f1c3aee', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:38', x'662374e268fd496fbd9953bfc347a6dd', 'jabanilson', NULL, 1, '2012-12-31 12:44:38')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:38', `updated_at` = '2012-12-31 12:44:38', `subdomain` = 'account662374e2-68fd-496f-bd99-53bfc347a6dd' WHERE `accounts`.`id` = x'662374e268fd496fbd9953bfc347a6dd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'662374e268fd496fbd9953bfc347a6dd' AND `account_domains`.`url` = 'test.com' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'662374e268fd496fbd9953bfc347a6dd', x'd4663594f26549a0b4f7f3c6c0f03f54', NULL, 'test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'test.com'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'd4663594f26549a0b4f7f3c6c0f03f54'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'662374e268fd496fbd9953bfc347a6dd' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'662374e268fd496fbd9953bfc347a6dd' AND `account_domains`.`verified` = 1 LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'd4663594f26549a0b4f7f3c6c0f03f54'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:39', x'bb991dc865d9449282dbefb4c8941e94', 'jabanilson', NULL, 1, '2012-12-31 12:44:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:39', `updated_at` = '2012-12-31 12:44:39', `subdomain` = 'accountbb991dc8-65d9-4492-82db-efb4c8941e94' WHERE `accounts`.`id` = x'bb991dc865d9449282dbefb4c8941e94'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bb991dc865d9449282dbefb4c8941e94' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bb991dc865d9449282dbefb4c8941e94', x'12ee22eaedd84f09bf406da6cf78631f', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:39', x'f366f5f28d6843ad986c66f0d7b4b449', 'jabanilson', NULL, 1, '2012-12-31 12:44:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:39', `updated_at` = '2012-12-31 12:44:39', `subdomain` = 'accountf366f5f2-8d68-43ad-986c-66f0d7b4b449' WHERE `accounts`.`id` = x'f366f5f28d6843ad986c66f0d7b4b449'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f366f5f28d6843ad986c66f0d7b4b449' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f366f5f28d6843ad986c66f0d7b4b449', x'763b3b04447f4af7ad42ad3326ffd518', NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'763b3b04447f4af7ad42ad3326ffd518'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f366f5f28d6843ad986c66f0d7b4b449' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f366f5f28d6843ad986c66f0d7b4b449' AND `account_domains`.`verified` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:39', x'7451b7b68ecf4319b193cad62e2ed7ff', 'jabanilson', NULL, 1, '2012-12-31 12:44:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:39', `updated_at` = '2012-12-31 12:44:39', `subdomain` = 'account7451b7b6-8ecf-4319-b193-cad62e2ed7ff' WHERE `accounts`.`id` = x'7451b7b68ecf4319b193cad62e2ed7ff'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7451b7b68ecf4319b193cad62e2ed7ff' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7451b7b68ecf4319b193cad62e2ed7ff', x'5667404e993b40e49f49b863bedb6965', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:39', x'80fc13d210054cc59b90265733e8fffb', 'jabanilson', NULL, 1, '2012-12-31 12:44:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:39', `updated_at` = '2012-12-31 12:44:39', `subdomain` = 'account80fc13d2-1005-4cc5-9b90-265733e8fffb' WHERE `accounts`.`id` = x'80fc13d210054cc59b90265733e8fffb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'80fc13d210054cc59b90265733e8fffb' AND `account_domains`.`url` = 'www.test.com' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'80fc13d210054cc59b90265733e8fffb', x'a10b16f2305e4acf8b0b96e8cceb6b8a', NULL, 'www.test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'a10b16f2305e4acf8b0b96e8cceb6b8a'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:39', x'28395e9c428e4588a00239b322f27b55', 'jabanilson', NULL, 1, '2012-12-31 12:44:39')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:39', `updated_at` = '2012-12-31 12:44:39', `subdomain` = 'account28395e9c-428e-4588-a002-39b322f27b55' WHERE `accounts`.`id` = x'28395e9c428e4588a00239b322f27b55'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'28395e9c428e4588a00239b322f27b55' AND `account_domains`.`url` = 'www.test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'28395e9c428e4588a00239b322f27b55', x'3c0dd659e81b4746b5e24b434467d071', NULL, 'www.test.com', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.com'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'3c0dd659e81b4746b5e24b434467d071'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'28395e9c428e4588a00239b322f27b55' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'28395e9c428e4588a00239b322f27b55' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'3c0dd659e81b4746b5e24b434467d071'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'a10b16f2305e4acf8b0b96e8cceb6b8a' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:40', x'c89e7ec403064335a7b53709840ea720', 'jabanilson', NULL, 1, '2012-12-31 12:44:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:40', `updated_at` = '2012-12-31 12:44:40', `subdomain` = 'accountc89e7ec4-0306-4335-a7b5-3709840ea720' WHERE `accounts`.`id` = x'c89e7ec403064335a7b53709840ea720'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c89e7ec403064335a7b53709840ea720' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c89e7ec403064335a7b53709840ea720', x'96b92813ebbf4a19a462f05b8c628688', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:40', x'ea3e000b0de94de9ae1431f03ac4849b', 'jabanilson', NULL, 1, '2012-12-31 12:44:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:40', `updated_at` = '2012-12-31 12:44:40', `subdomain` = 'accountea3e000b-0de9-4de9-ae14-31f03ac4849b' WHERE `accounts`.`id` = x'ea3e000b0de94de9ae1431f03ac4849b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:44:40', x'904234c247524f38b988cc8472b56d54', 'jabanilson', NULL, 1, '2012-12-31 12:44:40')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:44:40', `updated_at` = '2012-12-31 12:44:40', `subdomain` = 'account904234c2-4752-4f38-b988-cc8472b56d54' WHERE `accounts`.`id` = x'904234c247524f38b988cc8472b56d54'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'904234c247524f38b988cc8472b56d54' AND `account_domains`.`url` = 'www.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'904234c247524f38b988cc8472b56d54', x'84a7dc48d1ea48cd8e57b48781a56b57', NULL, 'www.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.0ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (1.0ms) TRUNCATE TABLE `account_roles`;  (0.8ms) TRUNCATE TABLE `account_users`;  (1.0ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (1.1ms) TRUNCATE TABLE `delayed_jobs`;  (0.9ms) TRUNCATE TABLE `social_accounts`;  (1.7ms) TRUNCATE TABLE `user_invitations`;  (1.6ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'b1b1b6b3d86f428f8211a19e55d4b176', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountb1b1b6b3-d86f-428f-8211-a19e55d4b176' WHERE `accounts`.`id` = x'b1b1b6b3d86f428f8211a19e55d4b176'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b1b1b6b3d86f428f8211a19e55d4b176' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b1b1b6b3d86f428f8211a19e55d4b176', x'a429ea88f58d4146b8fee6f0cead0a2d', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'062100c7093341eb94e8639a3d1e2711', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'account062100c7-0933-41eb-94e8-639a3d1e2711' WHERE `accounts`.`id` = x'062100c7093341eb94e8639a3d1e2711'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'062100c7093341eb94e8639a3d1e2711' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'062100c7093341eb94e8639a3d1e2711', x'ab52307a5af74d30bac18d39f910a56d', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'da8d5de9d84248db89b847b4083490c1', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountda8d5de9-d842-48db-89b8-47b4083490c1' WHERE `accounts`.`id` = x'da8d5de9d84248db89b847b4083490c1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'da8d5de9d84248db89b847b4083490c1' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'da8d5de9d84248db89b847b4083490c1', x'382cb47c4f5d4925a6bfac22c908a1bf', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (12.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'ecc2378378fc4aa8b0290fea9bfd38fe', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountecc23783-78fc-4aa8-b029-0fea9bfd38fe' WHERE `accounts`.`id` = x'ecc2378378fc4aa8b0290fea9bfd38fe'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ecc2378378fc4aa8b0290fea9bfd38fe' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ecc2378378fc4aa8b0290fea9bfd38fe', x'40c25d5059da4616944ef8726dd2db2b', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'3c5ff02fc413425c91ba2344edd034cc', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'account3c5ff02f-c413-425c-91ba-2344edd034cc' WHERE `accounts`.`id` = x'3c5ff02fc413425c91ba2344edd034cc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3c5ff02fc413425c91ba2344edd034cc' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3c5ff02fc413425c91ba2344edd034cc', x'0a96367b6b4a41238019d2722e906b3f', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'aca9d8b809904cbf829a96107c83f6aa', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountaca9d8b8-0990-4cbf-829a-96107c83f6aa' WHERE `accounts`.`id` = x'aca9d8b809904cbf829a96107c83f6aa'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'aca9d8b809904cbf829a96107c83f6aa' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'aca9d8b809904cbf829a96107c83f6aa', x'75f6227824794597af224d690b262464', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'3253bfad15474a57a849169069dc63ca', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'account3253bfad-1547-4a57-a849-169069dc63ca' WHERE `accounts`.`id` = x'3253bfad15474a57a849169069dc63ca'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'ccd7a1c9b8ee4db9814e0c5aba87b6cf', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountccd7a1c9-b8ee-4db9-814e-0c5aba87b6cf' WHERE `accounts`.`id` = x'ccd7a1c9b8ee4db9814e0c5aba87b6cf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ccd7a1c9b8ee4db9814e0c5aba87b6cf' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ccd7a1c9b8ee4db9814e0c5aba87b6cf', x'cc4a82a10a55451bbb092e851cc8717f', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'ea4bb07950cc45cda9e13bee588e0f3b', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountea4bb079-50cc-45cd-a9e1-3bee588e0f3b' WHERE `accounts`.`id` = x'ea4bb07950cc45cda9e13bee588e0f3b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ea4bb07950cc45cda9e13bee588e0f3b' AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ea4bb07950cc45cda9e13bee588e0f3b', x'3b0c0bc419e74f61bbfa6f965c26f574', NULL, 'valid.url.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ea4bb07950cc45cda9e13bee588e0f3b' AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'a59429ee51454837b7592e9ed731dcb0', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accounta59429ee-5145-4837-b759-2e9ed731dcb0' WHERE `accounts`.`id` = x'a59429ee51454837b7592e9ed731dcb0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a59429ee51454837b7592e9ed731dcb0' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a59429ee51454837b7592e9ed731dcb0', x'e903766065b94a90afcd9210c2ef4463', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'bb5f2139c6f1412e9005929fdc4b341a', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountbb5f2139-c6f1-412e-9005-929fdc4b341a' WHERE `accounts`.`id` = x'bb5f2139c6f1412e9005929fdc4b341a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bb5f2139c6f1412e9005929fdc4b341a' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bb5f2139c6f1412e9005929fdc4b341a', x'94f81cf0da174325826d94af7343509e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'0f675d2c4aa1414d97c1aeb6f8ff69a5', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'account0f675d2c-4aa1-414d-97c1-aeb6f8ff69a5' WHERE `accounts`.`id` = x'0f675d2c4aa1414d97c1aeb6f8ff69a5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f675d2c4aa1414d97c1aeb6f8ff69a5' AND `account_domains`.`url` = 'url1.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0f675d2c4aa1414d97c1aeb6f8ff69a5', x'ba257262c5e442febbe2b71cf9ee5fe4', NULL, 'url1.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f675d2c4aa1414d97c1aeb6f8ff69a5' AND `account_domains`.`url` = 'url2.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0f675d2c4aa1414d97c1aeb6f8ff69a5', x'4d61605cefb245e68b1a79dd67ed80f2', NULL, 'url2.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'ba257262c5e442febbe2b71cf9ee5fe4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'4d61605cefb245e68b1a79dd67ed80f2'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'0f675d2c4aa1414d97c1aeb6f8ff69a5'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'ba257262c5e442febbe2b71cf9ee5fe4'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'ba257262c5e442febbe2b71cf9ee5fe4'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f675d2c4aa1414d97c1aeb6f8ff69a5' AND `account_domains`.`primary` = 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f675d2c4aa1414d97c1aeb6f8ff69a5' AND `account_domains`.`verified` = 1 LIMIT 1  (0.3ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'4d61605cefb245e68b1a79dd67ed80f2' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'ba257262c5e442febbe2b71cf9ee5fe4'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'4d61605cefb245e68b1a79dd67ed80f2' LIMIT 1  (9.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'b77c3393baa1470188b158ebe377e29c', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountb77c3393-baa1-4701-88b1-58ebe377e29c' WHERE `accounts`.`id` = x'b77c3393baa1470188b158ebe377e29c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b77c3393baa1470188b158ebe377e29c' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b77c3393baa1470188b158ebe377e29c', x'ba1a5808e4244f2b99538b149dcb0644', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'92a4ad35533c476187769d473f4c85b1', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'account92a4ad35-533c-4761-8776-9d473f4c85b1' WHERE `accounts`.`id` = x'92a4ad35533c476187769d473f4c85b1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'92a4ad35533c476187769d473f4c85b1' AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'92a4ad35533c476187769d473f4c85b1', x'9a0f498efe394c9791d3ad41246e9016', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'b605a7833ff140ecbaaf86861cec8fcf', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountb605a783-3ff1-40ec-baaf-86861cec8fcf' WHERE `accounts`.`id` = x'b605a7833ff140ecbaaf86861cec8fcf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b605a7833ff140ecbaaf86861cec8fcf' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b605a7833ff140ecbaaf86861cec8fcf', x'd20ec5f4ab064dfa9b47d1df3311d80b', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'eeb04535b16d4ba08de6e2f3b28d3513', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accounteeb04535-b16d-4ba0-8de6-e2f3b28d3513' WHERE `accounts`.`id` = x'eeb04535b16d4ba08de6e2f3b28d3513'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'eeb04535b16d4ba08de6e2f3b28d3513' AND `account_domains`.`url` = 'www.normal.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'eeb04535b16d4ba08de6e2f3b28d3513', x'61ae58cf6d8942b8a3b9f0673e61e47c', NULL, 'www.normal.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'd4ac31828506418289782f48be9b710f', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountd4ac3182-8506-4182-8978-2f48be9b710f' WHERE `accounts`.`id` = x'd4ac31828506418289782f48be9b710f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd4ac31828506418289782f48be9b710f' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd4ac31828506418289782f48be9b710f', x'ff112ae7c23c48ef82fa8f6ca6560b74', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:15', x'dcebcec914ab48518a6d0cc48509b908', 'jabanilson', NULL, 1, '2012-12-31 12:45:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:15', `updated_at` = '2012-12-31 12:45:15', `subdomain` = 'accountdcebcec9-14ab-4851-8a6d-0cc48509b908' WHERE `accounts`.`id` = x'dcebcec914ab48518a6d0cc48509b908'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'dcebcec914ab48518a6d0cc48509b908' AND `account_domains`.`url` = 'test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'dcebcec914ab48518a6d0cc48509b908', x'79a3f5b3f85b427fbb114d801af19c75', NULL, 'test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'test.com'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'79a3f5b3f85b427fbb114d801af19c75'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'dcebcec914ab48518a6d0cc48509b908' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'dcebcec914ab48518a6d0cc48509b908' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'79a3f5b3f85b427fbb114d801af19c75'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:16', x'7df87ca577ec4ad98596a4354b40e01d', 'jabanilson', NULL, 1, '2012-12-31 12:45:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:16', `updated_at` = '2012-12-31 12:45:16', `subdomain` = 'account7df87ca5-77ec-4ad9-8596-a4354b40e01d' WHERE `accounts`.`id` = x'7df87ca577ec4ad98596a4354b40e01d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7df87ca577ec4ad98596a4354b40e01d' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7df87ca577ec4ad98596a4354b40e01d', x'7851bfcc53d242c9b6fb8b842edda849', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:16', x'007927d7d3c64e37a6b0fcbe78031b4d', 'jabanilson', NULL, 1, '2012-12-31 12:45:16')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:16', `updated_at` = '2012-12-31 12:45:16', `subdomain` = 'account007927d7-d3c6-4e37-a6b0-fcbe78031b4d' WHERE `accounts`.`id` = x'007927d7d3c64e37a6b0fcbe78031b4d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'007927d7d3c64e37a6b0fcbe78031b4d' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'007927d7d3c64e37a6b0fcbe78031b4d', x'00cc76a844c6485db9adbf8d2385f3e5', NULL, 'invalid.url.false', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'00cc76a844c6485db9adbf8d2385f3e5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'007927d7d3c64e37a6b0fcbe78031b4d' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'007927d7d3c64e37a6b0fcbe78031b4d' AND `account_domains`.`verified` = 1 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:16', x'bdfbfc7802a0450ea4c1ea7b30545f6a', 'jabanilson', NULL, 1, '2012-12-31 12:45:16')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:16', `updated_at` = '2012-12-31 12:45:16', `subdomain` = 'accountbdfbfc78-02a0-450e-a4c1-ea7b30545f6a' WHERE `accounts`.`id` = x'bdfbfc7802a0450ea4c1ea7b30545f6a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bdfbfc7802a0450ea4c1ea7b30545f6a' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bdfbfc7802a0450ea4c1ea7b30545f6a', x'd75d990344894ad59ad7bd2e86193e4b', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:16', x'dc0bf546227d413fb24fc501a362ec08', 'jabanilson', NULL, 1, '2012-12-31 12:45:16')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:16', `updated_at` = '2012-12-31 12:45:16', `subdomain` = 'accountdc0bf546-227d-413f-b24f-c501a362ec08' WHERE `accounts`.`id` = x'dc0bf546227d413fb24fc501a362ec08'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'dc0bf546227d413fb24fc501a362ec08' AND `account_domains`.`url` = 'www.test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'dc0bf546227d413fb24fc501a362ec08', x'aafcd35e91e441aca5bd925b36da43b1', NULL, 'www.test.com', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'aafcd35e91e441aca5bd925b36da43b1'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:16', x'801d4b70b23f42a4b4aa543407064586', 'jabanilson', NULL, 1, '2012-12-31 12:45:16')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:16', `updated_at` = '2012-12-31 12:45:16', `subdomain` = 'account801d4b70-b23f-42a4-b4aa-543407064586' WHERE `accounts`.`id` = x'801d4b70b23f42a4b4aa543407064586'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'801d4b70b23f42a4b4aa543407064586' AND `account_domains`.`url` = 'www.test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'801d4b70b23f42a4b4aa543407064586', x'4f5008ba3edb43c0a363330a50541a5b', NULL, 'www.test.com', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.com'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'4f5008ba3edb43c0a363330a50541a5b'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'801d4b70b23f42a4b4aa543407064586' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'801d4b70b23f42a4b4aa543407064586' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'4f5008ba3edb43c0a363330a50541a5b'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'aafcd35e91e441aca5bd925b36da43b1' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:16', x'228557fe36ea410a8a1eba78f0724625', 'jabanilson', NULL, 1, '2012-12-31 12:45:16')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:16', `updated_at` = '2012-12-31 12:45:16', `subdomain` = 'account228557fe-36ea-410a-8a1e-ba78f0724625' WHERE `accounts`.`id` = x'228557fe36ea410a8a1eba78f0724625'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'228557fe36ea410a8a1eba78f0724625' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'228557fe36ea410a8a1eba78f0724625', x'12e712c62beb4273821c105764be0b7a', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:16', x'f77f6795bcf1473a88cd4f1df1bbee46', 'jabanilson', NULL, 1, '2012-12-31 12:45:16')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:16', `updated_at` = '2012-12-31 12:45:16', `subdomain` = 'accountf77f6795-bcf1-473a-88cd-4f1df1bbee46' WHERE `accounts`.`id` = x'f77f6795bcf1473a88cd4f1df1bbee46'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:16', x'adc29620bb4e43909f99be65105811ea', 'jabanilson', NULL, 1, '2012-12-31 12:45:16')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:16', `updated_at` = '2012-12-31 12:45:16', `subdomain` = 'accountadc29620-bb4e-4390-9f99-be65105811ea' WHERE `accounts`.`id` = x'adc29620bb4e43909f99be65105811ea'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'adc29620bb4e43909f99be65105811ea' AND `account_domains`.`url` = 'www.test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'adc29620bb4e43909f99be65105811ea', x'19988343985d4dbdbfb061169f20bb51', NULL, 'www.test.com', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.com'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'19988343985d4dbdbfb061169f20bb51'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'adc29620bb4e43909f99be65105811ea' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'adc29620bb4e43909f99be65105811ea' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'19988343985d4dbdbfb061169f20bb51'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'19988343985d4dbdbfb061169f20bb51' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'fbe22b1fecfb4092a86535a37bea9788', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'accountfbe22b1f-ecfb-4092-a865-35a37bea9788' WHERE `accounts`.`id` = x'fbe22b1fecfb4092a86535a37bea9788'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'fbe22b1fecfb4092a86535a37bea9788' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'fbe22b1fecfb4092a86535a37bea9788', x'cd76e29c039944c0a69d4b73e9092b2a', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'28f1ff87f40a470fbe36c74bbb0de667', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'account28f1ff87-f40a-470f-be36-c74bbb0de667' WHERE `accounts`.`id` = x'28f1ff87f40a470fbe36c74bbb0de667'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'5acf74fe3f8245ba8e89a3bcf3d8b144', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'account5acf74fe-3f82-45ba-8e89-a3bcf3d8b144' WHERE `accounts`.`id` = x'5acf74fe3f8245ba8e89a3bcf3d8b144'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5acf74fe3f8245ba8e89a3bcf3d8b144' AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5acf74fe3f8245ba8e89a3bcf3d8b144', x'25e2e17006614ff2813d031a999646ac', 1, 'www.url1.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'6ad6a2877442455491efec4f09e99b75', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'account6ad6a287-7442-4554-91ef-ec4f09e99b75' WHERE `accounts`.`id` = x'6ad6a2877442455491efec4f09e99b75'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6ad6a2877442455491efec4f09e99b75' AND `account_domains`.`url` = 'www.url2.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'6ad6a2877442455491efec4f09e99b75', x'59aa3930d43a4ac19f52e8fa909a342d', 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = x'28f1ff87f40a470fbe36c74bbb0de667' WHERE `account_domains`.`id` = x'25e2e17006614ff2813d031a999646ac'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'28f1ff87f40a470fbe36c74bbb0de667' WHERE `account_domains`.`id` = x'59aa3930d43a4ac19f52e8fa909a342d'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'28f1ff87f40a470fbe36c74bbb0de667'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'59aa3930d43a4ac19f52e8fa909a342d'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'00eb8239492f47099f5bac248b5d9f5e', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'account00eb8239-492f-4709-9f5b-ac248b5d9f5e' WHERE `accounts`.`id` = x'00eb8239492f47099f5bac248b5d9f5e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'00eb8239492f47099f5bac248b5d9f5e' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'00eb8239492f47099f5bac248b5d9f5e', x'cb0a6898f7f94fb08e973af1e197e9c1', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'3882193390b048fdb2cefa0bfd272429', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'account38821933-90b0-48fd-b2ce-fa0bfd272429' WHERE `accounts`.`id` = x'3882193390b048fdb2cefa0bfd272429'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'34ceaecb14604568881c5349749518b8', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'account34ceaecb-1460-4568-881c-5349749518b8' WHERE `accounts`.`id` = x'34ceaecb14604568881c5349749518b8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'34ceaecb14604568881c5349749518b8' AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'34ceaecb14604568881c5349749518b8', x'5802a8d748e041cb9db120de76dfd5bd', 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'109309a48ec34008800f1568b10bce79', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'account109309a4-8ec3-4008-800f-1568b10bce79' WHERE `accounts`.`id` = x'109309a48ec34008800f1568b10bce79'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'109309a48ec34008800f1568b10bce79' AND `account_domains`.`url` = 'www.url2.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'109309a48ec34008800f1568b10bce79', x'30a8976b0b234c40a03474a6b4379b2c', 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = x'3882193390b048fdb2cefa0bfd272429' WHERE `account_domains`.`id` = x'5802a8d748e041cb9db120de76dfd5bd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'3882193390b048fdb2cefa0bfd272429' WHERE `account_domains`.`id` = x'30a8976b0b234c40a03474a6b4379b2c'  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'3882193390b048fdb2cefa0bfd272429'  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'30a8976b0b234c40a03474a6b4379b2c'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'5802a8d748e041cb9db120de76dfd5bd' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'c09474c906814b17a8e9b96a08959ea8', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'accountc09474c9-0681-4b17-a8e9-b96a08959ea8' WHERE `accounts`.`id` = x'c09474c906814b17a8e9b96a08959ea8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c09474c906814b17a8e9b96a08959ea8' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c09474c906814b17a8e9b96a08959ea8', x'e919feaaa2da4dbd89b5ab94c3c29196', NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'f3a1ea04b67240ff9c73f4964db27fda', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'accountf3a1ea04-b672-40ff-9c73-f4964db27fda' WHERE `accounts`.`id` = x'f3a1ea04b67240ff9c73f4964db27fda'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'893cafcd0ee04df38db038a4b048b82b', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'account893cafcd-0ee0-4df3-8db0-38a4b048b82b' WHERE `accounts`.`id` = x'893cafcd0ee04df38db038a4b048b82b'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'893cafcd0ee04df38db038a4b048b82b' AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'893cafcd0ee04df38db038a4b048b82b', x'f27513df22124295909b592aba8ee20f', 1, 'www.url1.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:17', x'f244e88b24344108b168d599039afd65', 'jabanilson', NULL, 1, '2012-12-31 12:45:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:17', `updated_at` = '2012-12-31 12:45:17', `subdomain` = 'accountf244e88b-2434-4108-b168-d599039afd65' WHERE `accounts`.`id` = x'f244e88b24344108b168d599039afd65'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f244e88b24344108b168d599039afd65' AND `account_domains`.`url` = 'www.url2.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f244e88b24344108b168d599039afd65', x'3e99cfa6f928408983490802ce3fa1c2', 0, 'www.url2.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = x'f3a1ea04b67240ff9c73f4964db27fda' WHERE `account_domains`.`id` = x'f27513df22124295909b592aba8ee20f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'f3a1ea04b67240ff9c73f4964db27fda' WHERE `account_domains`.`id` = x'3e99cfa6f928408983490802ce3fa1c2'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'3e99cfa6f928408983490802ce3fa1c2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.1ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (1.2ms) TRUNCATE TABLE `account_domains`;  (1.1ms) TRUNCATE TABLE `account_roles`;  (24.3ms) TRUNCATE TABLE `account_users`;  (1.2ms) TRUNCATE TABLE `accounts`;  (1.0ms) TRUNCATE TABLE `api_tokens`;  (6.6ms) TRUNCATE TABLE `delayed_jobs`;  (1.1ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:41', 'teste@teste.com', '$2a$04$kKV21aS.Xr1dOxj2BDYWx.9bpMddpFWShV3YaCQgCj6Jf27fcFoP2', NULL, x'd0c1cf00791f4759a5f201001d3db4e6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd0c1cf00791f4759a5f201001d3db4e6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:41', 'User', x'40e25989d7294614be96de22e5ec6670', '148505977adb6eae1741e77480ddf157', x'd0c1cf00791f4759a5f201001d3db4e6', 'User', '2012-12-31 12:45:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd0c1cf00791f4759a5f201001d3db4e6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:41', x'fcfe978d53e44dcaa51f2d6293f324a7', NULL, NULL, NULL, '2012-12-31 12:45:41')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:41', `updated_at` = '2012-12-31 12:45:41', `subdomain` = 'accountfcfe978d-53e4-4dca-a51f-2d6293f324a7' WHERE `accounts`.`id` = x'fcfe978d53e44dcaa51f2d6293f324a7' Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fcfe978d53e44dcaa51f2d6293f324a7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fcfe978d53e44dcaa51f2d6293f324a7', x'e387104928584dfc9dafc0c1ba198d04', x'd0c1cf00791f4759a5f201001d3db4e6') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e387104928584dfc9dafc0c1ba198d04') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e387104928584dfc9dafc0c1ba198d04' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e387104928584dfc9dafc0c1ba198d04', x'355d375bebb14333b6aa97f6d4b4551b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e387104928584dfc9dafc0c1ba198d04') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e387104928584dfc9dafc0c1ba198d04' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e387104928584dfc9dafc0c1ba198d04', x'06dd9260842f40ce9d49dd3cf0c291fa', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.1ms) Sent mail to teste@teste.com (145ms) Date: Mon, 31 Dec 2012 10:45:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f65e22a_f6180435d484794@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'1b25e0145f6145a7bb03d42e3b8449ae', 'jabanilson', NULL, 1, '2012-12-31 12:45:42')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'account1b25e014-5f61-45a7-bb03-d42e3b8449ae' WHERE `accounts`.`id` = x'1b25e0145f6145a7bb03d42e3b8449ae'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1b25e0145f6145a7bb03d42e3b8449ae', x'45fd73d802ef4b8fab934f41c320b40e', x'd0c1cf00791f4759a5f201001d3db4e6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'45fd73d802ef4b8fab934f41c320b40e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45fd73d802ef4b8fab934f41c320b40e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45fd73d802ef4b8fab934f41c320b40e', x'239d8e8fc792444185d3afb0a9a67fa0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'45fd73d802ef4b8fab934f41c320b40e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45fd73d802ef4b8fab934f41c320b40e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45fd73d802ef4b8fab934f41c320b40e', x'1b1ef03449c04972bac39c03dc796b17', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c1cf00791f4759a5f201001d3db4e6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0c1cf00791f4759a5f201001d3db4e6' LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd0c1cf00791f4759a5f201001d3db4e6' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.6ms) Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:42', 'teste@teste.com', '$2a$04$5aEchQIipyQGPhimuwGCYuSipSUdBoNwSDeUO7PxVBX5PG0wJORSK', NULL, x'bc70ed5daf90489f937e152aee386bdf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:42') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bc70ed5daf90489f937e152aee386bdf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:42', 'User', x'a51f3e9894bb4a12a024a33c5631ba8b', '3717c67b4309a35ab570d4fe9e07b999', x'bc70ed5daf90489f937e152aee386bdf', 'User', '2012-12-31 12:45:42') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bc70ed5daf90489f937e152aee386bdf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'249daf1adf2040059c11b18d7173e0e2', NULL, NULL, NULL, '2012-12-31 12:45:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'account249daf1a-df20-4005-9c11-b18d7173e0e2' WHERE `accounts`.`id` = x'249daf1adf2040059c11b18d7173e0e2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'249daf1adf2040059c11b18d7173e0e2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'249daf1adf2040059c11b18d7173e0e2', x'782c51142f8b43d1a290c780d9bd0b00', x'bc70ed5daf90489f937e152aee386bdf') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'782c51142f8b43d1a290c780d9bd0b00') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'782c51142f8b43d1a290c780d9bd0b00' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'782c51142f8b43d1a290c780d9bd0b00', x'3bf5272310dd4d419a879560ba3745f0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'782c51142f8b43d1a290c780d9bd0b00') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'782c51142f8b43d1a290c780d9bd0b00' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'782c51142f8b43d1a290c780d9bd0b00', x'a53ee2baa0854c35852a62da72ad81ef', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f698c38_f6180435d484825@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'56ae03944681456b95d31e4167176026', 'jabanilson', NULL, 1, '2012-12-31 12:45:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'account56ae0394-4681-456b-95d3-1e4167176026' WHERE `accounts`.`id` = x'56ae03944681456b95d31e4167176026'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'56ae03944681456b95d31e4167176026', x'758e97f078514516a196f6be1bcba590', x'bc70ed5daf90489f937e152aee386bdf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'758e97f078514516a196f6be1bcba590') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'758e97f078514516a196f6be1bcba590' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'758e97f078514516a196f6be1bcba590', x'0f78dda7333a41f681ce3db40466f96d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'758e97f078514516a196f6be1bcba590') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'758e97f078514516a196f6be1bcba590' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'758e97f078514516a196f6be1bcba590', x'4408b80d6a554928831c379ab786388f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bc70ed5daf90489f937e152aee386bdf' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bc70ed5daf90489f937e152aee386bdf' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bc70ed5daf90489f937e152aee386bdf' LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"249DAF1ADF2040059C11B18D7173E0E2"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bc70ed5daf90489f937e152aee386bdf' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bc70ed5daf90489f937e152aee386bdf' AND `accounts`.`id` = x'249daf1adf2040059c11b18d7173e0e2' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'249daf1adf2040059c11b18d7173e0e2' AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 13ms (Views: 2.6ms | ActiveRecord: 3.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:42', 'teste@teste.com', '$2a$04$KcvhijZZmL0ppMSm8rVUK.l0e7ByY.EvEaqimmlFxAPieEWQZ.T.K', NULL, x'4b479e5a69c34537a414c2d8af795d68', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:42') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4b479e5a69c34537a414c2d8af795d68' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:42', 'User', x'cf2be5371cb54eb0b50daceaf9b255ae', '05730a2303b0ec79d932b9fb99a6b4ab', x'4b479e5a69c34537a414c2d8af795d68', 'User', '2012-12-31 12:45:42') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4b479e5a69c34537a414c2d8af795d68' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'96db203fded14b67bc0637b43150d516', NULL, NULL, NULL, '2012-12-31 12:45:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'account96db203f-ded1-4b67-bc06-37b43150d516' WHERE `accounts`.`id` = x'96db203fded14b67bc0637b43150d516' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'96db203fded14b67bc0637b43150d516' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'96db203fded14b67bc0637b43150d516', x'8f8ab6d200bf4fcabe8ffcc8e6547388', x'4b479e5a69c34537a414c2d8af795d68') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8f8ab6d200bf4fcabe8ffcc8e6547388') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f8ab6d200bf4fcabe8ffcc8e6547388' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f8ab6d200bf4fcabe8ffcc8e6547388', x'52e8d13f96994e0d82416c1a8c408a9c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8f8ab6d200bf4fcabe8ffcc8e6547388') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f8ab6d200bf4fcabe8ffcc8e6547388' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f8ab6d200bf4fcabe8ffcc8e6547388', x'fa27f86e9bca465e94531b72557b4c8b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f6bedeb_f6180435d4849fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'ed89c898501443eeb180a152be824fa8', 'jabanilson', NULL, 1, '2012-12-31 12:45:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'accounted89c898-5014-43ee-b180-a152be824fa8' WHERE `accounts`.`id` = x'ed89c898501443eeb180a152be824fa8'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ed89c898501443eeb180a152be824fa8', x'a23462a3a24d4681bbd5f88914018a6c', x'4b479e5a69c34537a414c2d8af795d68') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a23462a3a24d4681bbd5f88914018a6c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a23462a3a24d4681bbd5f88914018a6c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a23462a3a24d4681bbd5f88914018a6c', x'736a17646d8e464c8f204b929725bbc1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a23462a3a24d4681bbd5f88914018a6c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a23462a3a24d4681bbd5f88914018a6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a23462a3a24d4681bbd5f88914018a6c', x'e4c6ff7b2e364fa79b27b3d96ac6813e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4b479e5a69c34537a414c2d8af795d68' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4b479e5a69c34537a414c2d8af795d68' LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4b479e5a69c34537a414c2d8af795d68' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4b479e5a69c34537a414c2d8af795d68' AND `account_users`.`account_id` = x'96db203fded14b67bc0637b43150d516' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'96db203fded14b67bc0637b43150d516' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'96db203fded14b67bc0637b43150d516' AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 1.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:42', 'teste@teste.com', '$2a$04$ICYGZ2By7cza9zMValfNCeh.J1F42RezwQs0ASp/hX8Ellu7gzWBa', NULL, x'c092cbba8d084feabe820bcaebbc55cc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:42') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c092cbba8d084feabe820bcaebbc55cc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:42', 'User', x'f835a40ad4a9405d82ecd3cabf7f8d17', '3fa3950c6ec6a6b663a78d8d79e05253', x'c092cbba8d084feabe820bcaebbc55cc', 'User', '2012-12-31 12:45:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c092cbba8d084feabe820bcaebbc55cc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'e09376af9e3642f2a80d1aa3c7beb25c', NULL, NULL, NULL, '2012-12-31 12:45:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'accounte09376af-9e36-42f2-a80d-1aa3c7beb25c' WHERE `accounts`.`id` = x'e09376af9e3642f2a80d1aa3c7beb25c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e09376af9e3642f2a80d1aa3c7beb25c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e09376af9e3642f2a80d1aa3c7beb25c', x'51214407dbc54589bfb38f8722535459', x'c092cbba8d084feabe820bcaebbc55cc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'51214407dbc54589bfb38f8722535459') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'51214407dbc54589bfb38f8722535459' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'51214407dbc54589bfb38f8722535459', x'70214acf0dea485a8f9973f4669cc6e5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'51214407dbc54589bfb38f8722535459') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'51214407dbc54589bfb38f8722535459' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'51214407dbc54589bfb38f8722535459', x'8bb7572d55f747ec895a4813cc4448ae', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f6d4a32_f6180435d4850fa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'836d303b737a4a2ba90db9e7cc924bfa', 'jabanilson', NULL, 1, '2012-12-31 12:45:42')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'account836d303b-737a-4a2b-a90d-b9e7cc924bfa' WHERE `accounts`.`id` = x'836d303b737a4a2ba90db9e7cc924bfa'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'836d303b737a4a2ba90db9e7cc924bfa', x'bebe63cd39334507b72218a8ac38a9cd', x'c092cbba8d084feabe820bcaebbc55cc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bebe63cd39334507b72218a8ac38a9cd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bebe63cd39334507b72218a8ac38a9cd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bebe63cd39334507b72218a8ac38a9cd', x'2720f02d7b6a4015b45ed4e0ebbf4e53', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bebe63cd39334507b72218a8ac38a9cd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bebe63cd39334507b72218a8ac38a9cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bebe63cd39334507b72218a8ac38a9cd', x'3234209cdd4e4a6c9983b023fbe40e42', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c092cbba8d084feabe820bcaebbc55cc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c092cbba8d084feabe820bcaebbc55cc' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c092cbba8d084feabe820bcaebbc55cc' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"E09376AF9E3642F2A80D1AA3C7BEB25C"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c092cbba8d084feabe820bcaebbc55cc' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c092cbba8d084feabe820bcaebbc55cc' AND `account_users`.`account_id` = x'e09376af9e3642f2a80d1aa3c7beb25c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'51214407dbc54589bfb38f8722535459' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c092cbba8d084feabe820bcaebbc55cc' AND `accounts`.`id` = x'e09376af9e3642f2a80d1aa3c7beb25c' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:42', NULL, '--- !ruby/struct:DestroyAccountJob\nid: e09376af-9e36-42f2-a80d-1aa3c7beb25c\n', NULL, NULL, NULL, 0, 'account_e09376af-9e36-42f2-a80d-1aa3c7beb25c_destroy', '2012-12-31 12:45:42', '2012-12-31 12:45:42')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e09376af-9e36-42f2-a80d-1aa3c7beb25c_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 28ms (ActiveRecord: 4.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:42', 'teste@teste.com', '$2a$04$YH6qy0IqBnNVAF9fqy/ZSu71dUqqp9p98vMqOvpePAZh7DOpV4U3q', NULL, x'af114e7c145e4613a27db14353a0d796', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:42') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'af114e7c145e4613a27db14353a0d796' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:42', 'User', x'cda2164c1d2647ac83d821d7ff563df1', '9aa2a97ff588e13ca134b84b13f4b60c', x'af114e7c145e4613a27db14353a0d796', 'User', '2012-12-31 12:45:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'af114e7c145e4613a27db14353a0d796' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'b0f4d8ada12b415497511d785f0e09bc', NULL, NULL, NULL, '2012-12-31 12:45:42')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'accountb0f4d8ad-a12b-4154-9751-1d785f0e09bc' WHERE `accounts`.`id` = x'b0f4d8ada12b415497511d785f0e09bc' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b0f4d8ada12b415497511d785f0e09bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b0f4d8ada12b415497511d785f0e09bc', x'50fe0ca436054011be49396efd712211', x'af114e7c145e4613a27db14353a0d796') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'50fe0ca436054011be49396efd712211') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50fe0ca436054011be49396efd712211' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50fe0ca436054011be49396efd712211', x'56921f89a4ce4b4696e2c5995dc8f13f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'50fe0ca436054011be49396efd712211') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50fe0ca436054011be49396efd712211' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50fe0ca436054011be49396efd712211', x'2615d704eb0841a9818051454b329913', 'admin') Sent mail to teste@teste.com (9ms) Date: Mon, 31 Dec 2012 10:45:42 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f6ee673_f6180435d48516f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:42', x'11f8a64a08c845d1be4fd51cd14acd00', 'jabanilson', NULL, 1, '2012-12-31 12:45:42')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:42', `updated_at` = '2012-12-31 12:45:42', `subdomain` = 'account11f8a64a-08c8-45d1-be4f-d51cd14acd00' WHERE `accounts`.`id` = x'11f8a64a08c845d1be4fd51cd14acd00'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'11f8a64a08c845d1be4fd51cd14acd00', x'913e88f38b9a4e4d89ae5db9c5da2523', x'af114e7c145e4613a27db14353a0d796') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'913e88f38b9a4e4d89ae5db9c5da2523') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'913e88f38b9a4e4d89ae5db9c5da2523' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'913e88f38b9a4e4d89ae5db9c5da2523', x'7b8cd0ae34e640218ddada3f1a4c0e0b', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'913e88f38b9a4e4d89ae5db9c5da2523') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'913e88f38b9a4e4d89ae5db9c5da2523' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'913e88f38b9a4e4d89ae5db9c5da2523', x'e92401a243604a5ca113c928ce51374b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'af114e7c145e4613a27db14353a0d796' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'af114e7c145e4613a27db14353a0d796' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'af114e7c145e4613a27db14353a0d796' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"B0F4D8ADA12B415497511D785F0E09BC"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'af114e7c145e4613a27db14353a0d796' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'af114e7c145e4613a27db14353a0d796' AND `account_users`.`account_id` = x'b0f4d8ada12b415497511d785f0e09bc' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'50fe0ca436054011be49396efd712211' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'af114e7c145e4613a27db14353a0d796' AND `accounts`.`id` = x'b0f4d8ada12b415497511d785f0e09bc' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:43', NULL, '--- !ruby/struct:DestroyAccountJob\nid: b0f4d8ad-a12b-4154-9751-1d785f0e09bc\n', NULL, NULL, NULL, 0, 'account_b0f4d8ad-a12b-4154-9751-1d785f0e09bc_destroy', '2012-12-31 12:45:43', '2012-12-31 12:45:43')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b0f4d8ad-a12b-4154-9751-1d785f0e09bc_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 15ms (ActiveRecord: 2.7ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'af114e7c145e4613a27db14353a0d796' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b0f4d8ad-a12b-4154-9751-1d785f0e09bc_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:43', 'teste@teste.com', '$2a$04$oL6I21ADNndlHjkxKJ4PS.tkFMZOenq.da5Y2L7I6eDjWBwLu2uee', NULL, x'e1d2ebd99e254260bede5550941e1592', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e1d2ebd99e254260bede5550941e1592' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:43', 'User', x'bbb0034f32274560b4b5be2afff1faf2', '63a6268318f09f7b6babeb4bb997053e', x'e1d2ebd99e254260bede5550941e1592', 'User', '2012-12-31 12:45:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e1d2ebd99e254260bede5550941e1592' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'dbb69a3210eb46d2913fbbcb0a99e8d7', NULL, NULL, NULL, '2012-12-31 12:45:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'accountdbb69a32-10eb-46d2-913f-bbcb0a99e8d7' WHERE `accounts`.`id` = x'dbb69a3210eb46d2913fbbcb0a99e8d7' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dbb69a3210eb46d2913fbbcb0a99e8d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dbb69a3210eb46d2913fbbcb0a99e8d7', x'83b5fd98b73c41299e128a9504b1c97e', x'e1d2ebd99e254260bede5550941e1592') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'83b5fd98b73c41299e128a9504b1c97e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83b5fd98b73c41299e128a9504b1c97e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83b5fd98b73c41299e128a9504b1c97e', x'1bf8d2f2c96048b6b305aac7b581580a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'83b5fd98b73c41299e128a9504b1c97e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83b5fd98b73c41299e128a9504b1c97e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83b5fd98b73c41299e128a9504b1c97e', x'29cfd86f56db4059b692a7faf2e16f33', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f731742_f6180435d4852ee@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'be652819ab0d42fea6bfe42ce9d86368', 'jabanilson', NULL, 1, '2012-12-31 12:45:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'accountbe652819-ab0d-42fe-a6bf-e42ce9d86368' WHERE `accounts`.`id` = x'be652819ab0d42fea6bfe42ce9d86368'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'be652819ab0d42fea6bfe42ce9d86368', x'7db3de7c6c02461ca08f6cbb9d4303bc', x'e1d2ebd99e254260bede5550941e1592') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7db3de7c6c02461ca08f6cbb9d4303bc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7db3de7c6c02461ca08f6cbb9d4303bc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7db3de7c6c02461ca08f6cbb9d4303bc', x'2d58af4fe30f4756bd61c1d2f878f7f8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7db3de7c6c02461ca08f6cbb9d4303bc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7db3de7c6c02461ca08f6cbb9d4303bc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7db3de7c6c02461ca08f6cbb9d4303bc', x'057cd3ab404141e7a30f95cd5cecfed1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e1d2ebd99e254260bede5550941e1592' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e1d2ebd99e254260bede5550941e1592' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e1d2ebd99e254260bede5550941e1592' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"BE652819AB0D42FEA6BFE42CE9D86368"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e1d2ebd99e254260bede5550941e1592' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e1d2ebd99e254260bede5550941e1592' AND `account_users`.`account_id` = x'be652819ab0d42fea6bfe42ce9d86368' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7db3de7c6c02461ca08f6cbb9d4303bc' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:43', 'teste@teste.com', '$2a$04$UUoT6Yt17OPh.C12pDppvOOTjWT8dzG687F.i8XRVde9ARX8/HYKm', NULL, x'689a6c661fa84094834deab960a890b4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'689a6c661fa84094834deab960a890b4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:43', 'User', x'908021e3551f4958837c39f6bf77ebd2', '0f4a57beb9e26ba6a4b87b760b0a6ea6', x'689a6c661fa84094834deab960a890b4', 'User', '2012-12-31 12:45:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'689a6c661fa84094834deab960a890b4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'4c7d46bc1ce24a1d96b024c12bd77d8c', NULL, NULL, NULL, '2012-12-31 12:45:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account4c7d46bc-1ce2-4a1d-96b0-24c12bd77d8c' WHERE `accounts`.`id` = x'4c7d46bc1ce24a1d96b024c12bd77d8c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c7d46bc1ce24a1d96b024c12bd77d8c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4c7d46bc1ce24a1d96b024c12bd77d8c', x'01bfd097bba5440989e4b3c4e5b12e51', x'689a6c661fa84094834deab960a890b4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'01bfd097bba5440989e4b3c4e5b12e51') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01bfd097bba5440989e4b3c4e5b12e51' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01bfd097bba5440989e4b3c4e5b12e51', x'5d846dd248104cae99c4cfc3e9e0398c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'01bfd097bba5440989e4b3c4e5b12e51') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01bfd097bba5440989e4b3c4e5b12e51' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01bfd097bba5440989e4b3c4e5b12e51', x'fba348dbb74c4695b0412912c4e5525c', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f74840b_f6180435d48532a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'8244a73d8a6e409a99881a7005e25861', 'jabanilson', NULL, 1, '2012-12-31 12:45:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account8244a73d-8a6e-409a-9988-1a7005e25861' WHERE `accounts`.`id` = x'8244a73d8a6e409a99881a7005e25861'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8244a73d8a6e409a99881a7005e25861', x'45b965bde30d4364ba22988318b8e512', x'689a6c661fa84094834deab960a890b4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'45b965bde30d4364ba22988318b8e512') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45b965bde30d4364ba22988318b8e512' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45b965bde30d4364ba22988318b8e512', x'77a97bb6274144bdbccb2d0cec11a719', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'45b965bde30d4364ba22988318b8e512') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45b965bde30d4364ba22988318b8e512' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45b965bde30d4364ba22988318b8e512', x'83b6098a50f0400197e90899902b7f2c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'689a6c661fa84094834deab960a890b4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'689a6c661fa84094834deab960a890b4' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'689a6c661fa84094834deab960a890b4' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:43', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 4c7d46bc-1ce2-4a1d-96b0-24c12bd77d8c\n', NULL, NULL, NULL, 0, 'account_4c7d46bc-1ce2-4a1d-96b0-24c12bd77d8c_destroy', '2012-12-31 12:45:43', '2012-12-31 12:45:43')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'689a6c661fa84094834deab960a890b4' LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"4C7D46BC1CE24A1D96B024C12BD77D8C"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'689a6c661fa84094834deab960a890b4' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'689a6c661fa84094834deab960a890b4' AND `account_users`.`account_id` = x'4c7d46bc1ce24a1d96b024c12bd77d8c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'01bfd097bba5440989e4b3c4e5b12e51' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'689a6c661fa84094834deab960a890b4' AND `accounts`.`id` = x'4c7d46bc1ce24a1d96b024c12bd77d8c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4c7d46bc-1ce2-4a1d-96b0-24c12bd77d8c_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4c7d46bc-1ce2-4a1d-96b0-24c12bd77d8c_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 1.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:43', 'teste@teste.com', '$2a$04$s3T19gharHD9vxXtTaqIYeShTcTXt72KF/F.LSAzirGFdLw9ylUvK', NULL, x'9083d36cf829421399499e8f176bd1b4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9083d36cf829421399499e8f176bd1b4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:43', 'User', x'6e2a03999a804b6aa19be00e191c5ba7', '78d77d73a5570302cf1d2a97365e9b3d', x'9083d36cf829421399499e8f176bd1b4', 'User', '2012-12-31 12:45:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9083d36cf829421399499e8f176bd1b4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'3384863c65d64e80978df78d9b8c32d8', NULL, NULL, NULL, '2012-12-31 12:45:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account3384863c-65d6-4e80-978d-f78d9b8c32d8' WHERE `accounts`.`id` = x'3384863c65d64e80978df78d9b8c32d8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3384863c65d64e80978df78d9b8c32d8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3384863c65d64e80978df78d9b8c32d8', x'f727acf46e224eee8055c639991242b1', x'9083d36cf829421399499e8f176bd1b4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f727acf46e224eee8055c639991242b1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f727acf46e224eee8055c639991242b1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f727acf46e224eee8055c639991242b1', x'184ee079b3e74c6b817382bd215f08a2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f727acf46e224eee8055c639991242b1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f727acf46e224eee8055c639991242b1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f727acf46e224eee8055c639991242b1', x'98be704acce04f64a7eebfa456d9be36', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f76fad6_f6180435d4854b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'5bade1986ca84ba2b30b9d5f6005a5e5', 'jabanilson', NULL, 1, '2012-12-31 12:45:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account5bade198-6ca8-4ba2-b30b-9d5f6005a5e5' WHERE `accounts`.`id` = x'5bade1986ca84ba2b30b9d5f6005a5e5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5bade1986ca84ba2b30b9d5f6005a5e5', x'0147616651c441c8b4747e97fa9ea7dc', x'9083d36cf829421399499e8f176bd1b4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0147616651c441c8b4747e97fa9ea7dc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0147616651c441c8b4747e97fa9ea7dc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0147616651c441c8b4747e97fa9ea7dc', x'797a32877e2d4b7581c34733e0db0744', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0147616651c441c8b4747e97fa9ea7dc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0147616651c441c8b4747e97fa9ea7dc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0147616651c441c8b4747e97fa9ea7dc', x'cb942356b5a14596a615c5c91cbcf3de', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9083d36cf829421399499e8f176bd1b4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9083d36cf829421399499e8f176bd1b4' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9083d36cf829421399499e8f176bd1b4' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:43', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 5bade198-6ca8-4ba2-b30b-9d5f6005a5e5\n', NULL, NULL, NULL, 0, 'account_5bade198-6ca8-4ba2-b30b-9d5f6005a5e5_destroy', '2012-12-31 12:45:43', '2012-12-31 12:45:43')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9083d36cf829421399499e8f176bd1b4' LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"5BADE1986CA84BA2B30B9D5F6005A5E5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9083d36cf829421399499e8f176bd1b4' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9083d36cf829421399499e8f176bd1b4' AND `account_users`.`account_id` = x'5bade1986ca84ba2b30b9d5f6005a5e5' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0147616651c441c8b4747e97fa9ea7dc' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9083d36cf829421399499e8f176bd1b4' AND `accounts`.`id` = x'5bade1986ca84ba2b30b9d5f6005a5e5' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5bade198-6ca8-4ba2-b30b-9d5f6005a5e5_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5bade198-6ca8-4ba2-b30b-9d5f6005a5e5_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 1.9ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9083d36cf829421399499e8f176bd1b4' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5bade198-6ca8-4ba2-b30b-9d5f6005a5e5_destroy' LIMIT 1  (10.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:43', 'teste@teste.com', '$2a$04$y9AR0EpNc.y0GpPhoS5xj.aCL1kh/bUvJYbys7o3sgjjGTZHRadTK', NULL, x'7dcd15859a254543b28a8010d1726606', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7dcd15859a254543b28a8010d1726606' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:43', 'User', x'825a504490cb461b898ce62f2ed79002', '94222e37a1fda329861e54da23f14a12', x'7dcd15859a254543b28a8010d1726606', 'User', '2012-12-31 12:45:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7dcd15859a254543b28a8010d1726606' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'73f7359f8f204b36b87b82197b14f89f', NULL, NULL, NULL, '2012-12-31 12:45:43')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account73f7359f-8f20-4b36-b87b-82197b14f89f' WHERE `accounts`.`id` = x'73f7359f8f204b36b87b82197b14f89f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'73f7359f8f204b36b87b82197b14f89f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'73f7359f8f204b36b87b82197b14f89f', x'e916a54e0f8049249c96463d5498fd0e', x'7dcd15859a254543b28a8010d1726606') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e916a54e0f8049249c96463d5498fd0e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e916a54e0f8049249c96463d5498fd0e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e916a54e0f8049249c96463d5498fd0e', x'280740ac277a44c4939a6b72481c2d9d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e916a54e0f8049249c96463d5498fd0e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e916a54e0f8049249c96463d5498fd0e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e916a54e0f8049249c96463d5498fd0e', x'f967395edbc24c5f9bdccd0f00bf3833', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f789dcd_f6180435d4855d6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'335fadcb9f65447fa53ee8c4dabf2070', 'jabanilson', NULL, 1, '2012-12-31 12:45:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account335fadcb-9f65-447f-a53e-e8c4dabf2070' WHERE `accounts`.`id` = x'335fadcb9f65447fa53ee8c4dabf2070'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'335fadcb9f65447fa53ee8c4dabf2070', x'81581295596b4130936d448a9fb36807', x'7dcd15859a254543b28a8010d1726606') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'81581295596b4130936d448a9fb36807') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'81581295596b4130936d448a9fb36807' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'81581295596b4130936d448a9fb36807', x'e7a412ae0a914d60b681377d04de5175', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'81581295596b4130936d448a9fb36807') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'81581295596b4130936d448a9fb36807' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'81581295596b4130936d448a9fb36807', x'd7fdb8f9280c4d9681c4f79a5333fc4f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7dcd15859a254543b28a8010d1726606' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7dcd15859a254543b28a8010d1726606' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7dcd15859a254543b28a8010d1726606' LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"335FADCB9F65447FA53EE8C4DABF2070"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7dcd15859a254543b28a8010d1726606' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7dcd15859a254543b28a8010d1726606' AND (accounts.id = '335FADCB9F65447FA53EE8C4DABF2070') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7dcd15859a254543b28a8010d1726606' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:43', 'teste@teste.com', '$2a$04$s15BIQbLI6BBCQhaBNhKjeH4LkjOOy3A750IfPV4/1Ef9ykeM1Dsa', NULL, x'd1b4203deaa3455e8843959f201e718e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd1b4203deaa3455e8843959f201e718e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:43', 'User', x'4b2fefe97f5d4e739bbba5d02efa463d', '886478dfe918990e9cfbf3cad4125696', x'd1b4203deaa3455e8843959f201e718e', 'User', '2012-12-31 12:45:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd1b4203deaa3455e8843959f201e718e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'5fb3a1abf119456cae3a98543cbfb418', NULL, NULL, NULL, '2012-12-31 12:45:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account5fb3a1ab-f119-456c-ae3a-98543cbfb418' WHERE `accounts`.`id` = x'5fb3a1abf119456cae3a98543cbfb418' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5fb3a1abf119456cae3a98543cbfb418' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5fb3a1abf119456cae3a98543cbfb418', x'4098d776354a43b1a113606893b4d988', x'd1b4203deaa3455e8843959f201e718e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4098d776354a43b1a113606893b4d988') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4098d776354a43b1a113606893b4d988' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4098d776354a43b1a113606893b4d988', x'4d857d58e5e4403a8b12c14a4a1e9b30', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4098d776354a43b1a113606893b4d988') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4098d776354a43b1a113606893b4d988' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4098d776354a43b1a113606893b4d988', x'2b48903d16de4a1cbb4f456369dddeb0', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f79e2fc_f6180435d485692@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'124b4e8ee81e4fa1aa16e6804516758f', 'jabanilson', NULL, 1, '2012-12-31 12:45:43')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account124b4e8e-e81e-4fa1-aa16-e6804516758f' WHERE `accounts`.`id` = x'124b4e8ee81e4fa1aa16e6804516758f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'124b4e8ee81e4fa1aa16e6804516758f', x'3a434387cb274025a53fa580ad744d34', x'd1b4203deaa3455e8843959f201e718e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3a434387cb274025a53fa580ad744d34') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a434387cb274025a53fa580ad744d34' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a434387cb274025a53fa580ad744d34', x'4e964b18b3db489e9c8a03f495179d88', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3a434387cb274025a53fa580ad744d34') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3a434387cb274025a53fa580ad744d34' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3a434387cb274025a53fa580ad744d34', x'67ef5cacfad042999476309b927a3cbb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd1b4203deaa3455e8843959f201e718e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd1b4203deaa3455e8843959f201e718e' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd1b4203deaa3455e8843959f201e718e' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"124B4E8EE81E4FA1AA16E6804516758F"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd1b4203deaa3455e8843959f201e718e' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd1b4203deaa3455e8843959f201e718e' AND `account_users`.`account_id` = x'124b4e8ee81e4fa1aa16e6804516758f' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3a434387cb274025a53fa580ad744d34' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'124b4e8ee81e4fa1aa16e6804516758f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account124b4e8e-e81e-4fa1-aa16-e6804516758f' AND `accounts`.`id` != x'124b4e8ee81e4fa1aa16e6804516758f') LIMIT 1  (0.5ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:45:43' WHERE `accounts`.`id` = x'124b4e8ee81e4fa1aa16e6804516758f'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/124B4E8EE81E4FA1AA16E6804516758F Completed 302 Found in 12ms (ActiveRecord: 2.2ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd1b4203deaa3455e8843959f201e718e' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:43', 'teste@teste.com', '$2a$04$oTM.NxkIhIinYE1An7GOBOer7uPDfvzwoaSjXrp4KtSekCKq4j9C2', NULL, x'ba1dc9caf00145e68e896df552cbbb5b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ba1dc9caf00145e68e896df552cbbb5b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:43', 'User', x'687633b512e74220a6683cb3b6443076', '17880aa00c861e2ba6da07448b22e81b', x'ba1dc9caf00145e68e896df552cbbb5b', 'User', '2012-12-31 12:45:43') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ba1dc9caf00145e68e896df552cbbb5b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'db9dc86e7894461c9d1a8c457ee7a5d6', NULL, NULL, NULL, '2012-12-31 12:45:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'accountdb9dc86e-7894-461c-9d1a-8c457ee7a5d6' WHERE `accounts`.`id` = x'db9dc86e7894461c9d1a8c457ee7a5d6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'db9dc86e7894461c9d1a8c457ee7a5d6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'db9dc86e7894461c9d1a8c457ee7a5d6', x'c7aa43fb4ab0423c9e8014565eb1489e', x'ba1dc9caf00145e68e896df552cbbb5b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c7aa43fb4ab0423c9e8014565eb1489e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c7aa43fb4ab0423c9e8014565eb1489e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c7aa43fb4ab0423c9e8014565eb1489e', x'e5b3908330634a29a9d72b80a956fe12', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c7aa43fb4ab0423c9e8014565eb1489e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c7aa43fb4ab0423c9e8014565eb1489e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c7aa43fb4ab0423c9e8014565eb1489e', x'b6cbac46be1a4386b21b215715a73890', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f7c6b45_f6180435d4857b7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'e7babc15980148b4832d45a84dbc5283', 'jabanilson', NULL, 1, '2012-12-31 12:45:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'accounte7babc15-9801-48b4-832d-45a84dbc5283' WHERE `accounts`.`id` = x'e7babc15980148b4832d45a84dbc5283'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e7babc15980148b4832d45a84dbc5283', x'53b42e104f6b43aba2d785ef3e4f19ac', x'ba1dc9caf00145e68e896df552cbbb5b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'53b42e104f6b43aba2d785ef3e4f19ac') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'53b42e104f6b43aba2d785ef3e4f19ac' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'53b42e104f6b43aba2d785ef3e4f19ac', x'f14b8d45ec2342fc9e1e668280eed260', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'53b42e104f6b43aba2d785ef3e4f19ac') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'53b42e104f6b43aba2d785ef3e4f19ac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'53b42e104f6b43aba2d785ef3e4f19ac', x'19a20fb6810a4ce39352ed98e4c2d9fe', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ba1dc9caf00145e68e896df552cbbb5b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ba1dc9caf00145e68e896df552cbbb5b' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ba1dc9caf00145e68e896df552cbbb5b' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"DB9DC86E7894461C9D1A8C457EE7A5D6"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ba1dc9caf00145e68e896df552cbbb5b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ba1dc9caf00145e68e896df552cbbb5b' AND `account_users`.`account_id` = x'db9dc86e7894461c9d1a8c457ee7a5d6' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c7aa43fb4ab0423c9e8014565eb1489e' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'db9dc86e7894461c9d1a8c457ee7a5d6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'accountdb9dc86e-7894-461c-9d1a-8c457ee7a5d6' AND `accounts`.`id` != x'db9dc86e7894461c9d1a8c457ee7a5d6') LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:45:43' WHERE `accounts`.`id` = x'db9dc86e7894461c9d1a8c457ee7a5d6'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/DB9DC86E7894461C9D1A8C457EE7A5D6 Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:43', 'teste@teste.com', '$2a$04$5gYxaQjtS3/dXY1y84rAi.Ea3UeBBklRQAYc31xVvk6QD0SSujOnu', NULL, x'9292e4c4d8024c2aa18728c9bc2862bc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9292e4c4d8024c2aa18728c9bc2862bc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:43', 'User', x'd23268011aa9481886393f2badaed8ce', 'a480585a6542a63b96f18f6681d872d5', x'9292e4c4d8024c2aa18728c9bc2862bc', 'User', '2012-12-31 12:45:43') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9292e4c4d8024c2aa18728c9bc2862bc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'7540e506d7484bcd9641ee76754c2a38', NULL, NULL, NULL, '2012-12-31 12:45:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account7540e506-d748-4bcd-9641-ee76754c2a38' WHERE `accounts`.`id` = x'7540e506d7484bcd9641ee76754c2a38' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7540e506d7484bcd9641ee76754c2a38' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7540e506d7484bcd9641ee76754c2a38', x'fa9d26f7e1844625b6ce09729e7bc4dc', x'9292e4c4d8024c2aa18728c9bc2862bc') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fa9d26f7e1844625b6ce09729e7bc4dc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fa9d26f7e1844625b6ce09729e7bc4dc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fa9d26f7e1844625b6ce09729e7bc4dc', x'eba18a82cdea42a8a282d1f9300eb601', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fa9d26f7e1844625b6ce09729e7bc4dc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fa9d26f7e1844625b6ce09729e7bc4dc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fa9d26f7e1844625b6ce09729e7bc4dc', x'396a00274bc2458e963bddf16afd1510', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f7dae57_f6180435d485813@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'1a45bff0520d4af28736fbcb079cd0cd', 'jabanilson', NULL, 1, '2012-12-31 12:45:43')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account1a45bff0-520d-4af2-8736-fbcb079cd0cd' WHERE `accounts`.`id` = x'1a45bff0520d4af28736fbcb079cd0cd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1a45bff0520d4af28736fbcb079cd0cd', x'9fce850eacd64dada3ef0434d4f7dc55', x'9292e4c4d8024c2aa18728c9bc2862bc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9fce850eacd64dada3ef0434d4f7dc55') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9fce850eacd64dada3ef0434d4f7dc55' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9fce850eacd64dada3ef0434d4f7dc55', x'31715913f5d64f7c968f2a87a3f0c299', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9fce850eacd64dada3ef0434d4f7dc55') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9fce850eacd64dada3ef0434d4f7dc55' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9fce850eacd64dada3ef0434d4f7dc55', x'9cf9702d3a424d629574363c1cebf44a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9292e4c4d8024c2aa18728c9bc2862bc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9292e4c4d8024c2aa18728c9bc2862bc' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9292e4c4d8024c2aa18728c9bc2862bc' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"1A45BFF0520D4AF28736FBCB079CD0CD"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9292e4c4d8024c2aa18728c9bc2862bc' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9292e4c4d8024c2aa18728c9bc2862bc' AND `account_users`.`account_id` = x'1a45bff0520d4af28736fbcb079cd0cd' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9fce850eacd64dada3ef0434d4f7dc55' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1a45bff0520d4af28736fbcb079cd0cd' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account1a45bff0-520d-4af2-8736-fbcb079cd0cd' AND `accounts`.`id` != x'1a45bff0520d4af28736fbcb079cd0cd') LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2012-12-31 12:45:43' WHERE `accounts`.`id` = x'1a45bff0520d4af28736fbcb079cd0cd'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/1A45BFF0520D4AF28736FBCB079CD0CD Completed 302 Found in 10ms (ActiveRecord: 1.6ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9292e4c4d8024c2aa18728c9bc2862bc' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:43', 'teste@teste.com', '$2a$04$k8vV1D9aUs.oglqNrh.aE.7vEpnfQmP1wore8qxwe7ZqOei9QHW1W', NULL, x'ef8f8c2ed3fa4f99bdee33b3f58991f4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:43') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ef8f8c2ed3fa4f99bdee33b3f58991f4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:43', 'User', x'ec941487eef641d7a6c5e4370fcd58d1', '5527a7df88aea1fb4e078829930e9621', x'ef8f8c2ed3fa4f99bdee33b3f58991f4', 'User', '2012-12-31 12:45:43') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ef8f8c2ed3fa4f99bdee33b3f58991f4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'dd9567bc77b24bdba794dceec086f788', NULL, NULL, NULL, '2012-12-31 12:45:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'accountdd9567bc-77b2-4bdb-a794-dceec086f788' WHERE `accounts`.`id` = x'dd9567bc77b24bdba794dceec086f788' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dd9567bc77b24bdba794dceec086f788' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dd9567bc77b24bdba794dceec086f788', x'b7575217ed374ef0a79071d01a08d39b', x'ef8f8c2ed3fa4f99bdee33b3f58991f4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b7575217ed374ef0a79071d01a08d39b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b7575217ed374ef0a79071d01a08d39b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b7575217ed374ef0a79071d01a08d39b', x'2d27b702c177413a89a45538155070cc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b7575217ed374ef0a79071d01a08d39b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b7575217ed374ef0a79071d01a08d39b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b7575217ed374ef0a79071d01a08d39b', x'4a1b1d4f4a7846018133b6d232f2e13a', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:43 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f7f0cc3_f6180435d485935@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:43', x'84a8138d374344da9c7c8f044570d683', 'jabanilson', NULL, 1, '2012-12-31 12:45:43')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:43', `updated_at` = '2012-12-31 12:45:43', `subdomain` = 'account84a8138d-3743-44da-9c7c-8f044570d683' WHERE `accounts`.`id` = x'84a8138d374344da9c7c8f044570d683'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'84a8138d374344da9c7c8f044570d683', x'7aac9636704f443f843b07babf843d64', x'ef8f8c2ed3fa4f99bdee33b3f58991f4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7aac9636704f443f843b07babf843d64') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7aac9636704f443f843b07babf843d64' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7aac9636704f443f843b07babf843d64', x'33fb85fe8a9743afbccafd53c79d9426', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7aac9636704f443f843b07babf843d64') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7aac9636704f443f843b07babf843d64' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7aac9636704f443f843b07babf843d64', x'9b7d9c918af24153aceb657a73cb4d4c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ef8f8c2ed3fa4f99bdee33b3f58991f4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ef8f8c2ed3fa4f99bdee33b3f58991f4' LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ef8f8c2ed3fa4f99bdee33b3f58991f4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'eab1a0ae8bf84c749d409395bd66310b', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'accounteab1a0ae-8bf8-4c74-9d40-9395bd66310b' WHERE `accounts`.`id` = x'eab1a0ae8bf84c749d409395bd66310b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ef8f8c2ed3fa4f99bdee33b3f58991f4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eab1a0ae8bf84c749d409395bd66310b', x'c467b742a7064b79a09e2dd0f5597c58', x'ef8f8c2ed3fa4f99bdee33b3f58991f4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c467b742a7064b79a09e2dd0f5597c58') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c467b742a7064b79a09e2dd0f5597c58' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c467b742a7064b79a09e2dd0f5597c58', x'fe569e9743314e3c84c2f28ec41cbdf5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c467b742a7064b79a09e2dd0f5597c58') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c467b742a7064b79a09e2dd0f5597c58' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c467b742a7064b79a09e2dd0f5597c58', x'33108abc007a40fc92662a64630fc0d8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 19ms (ActiveRecord: 3.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:44', 'teste@teste.com', '$2a$04$LGyhaJXAS9LuaQvSSHQfiumbK9JkpvtLUql202hFJAAm/D3RFdMMu', NULL, x'6e9c94073cea4c73839a72dae34d333d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6e9c94073cea4c73839a72dae34d333d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:44', 'User', x'8bc90a2f9b9148df95e1691325fb3947', 'cc5d3d05a8c47e3f0db16cca7f567460', x'6e9c94073cea4c73839a72dae34d333d', 'User', '2012-12-31 12:45:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6e9c94073cea4c73839a72dae34d333d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'8386ee8f7c3c4da88856446f77d459ff', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account8386ee8f-7c3c-4da8-8856-446f77d459ff' WHERE `accounts`.`id` = x'8386ee8f7c3c4da88856446f77d459ff' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8386ee8f7c3c4da88856446f77d459ff' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8386ee8f7c3c4da88856446f77d459ff', x'74d24ba8d641499eace0fcb67912eec8', x'6e9c94073cea4c73839a72dae34d333d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'74d24ba8d641499eace0fcb67912eec8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74d24ba8d641499eace0fcb67912eec8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74d24ba8d641499eace0fcb67912eec8', x'734c402cd4584940a6f3850705163943', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'74d24ba8d641499eace0fcb67912eec8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74d24ba8d641499eace0fcb67912eec8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74d24ba8d641499eace0fcb67912eec8', x'ec3d1dba134641068ca8550a97773282', 'admin') Sent mail to teste@teste.com (78ms) Date: Mon, 31 Dec 2012 10:45:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f8246de_f6180435d486036@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'623e9eaad0224a409b6e62a8598247c2', 'jabanilson', NULL, 1, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account623e9eaa-d022-4a40-9b6e-62a8598247c2' WHERE `accounts`.`id` = x'623e9eaad0224a409b6e62a8598247c2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'623e9eaad0224a409b6e62a8598247c2', x'd054277fb59d4f9bb4b9be42ff136da1', x'6e9c94073cea4c73839a72dae34d333d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd054277fb59d4f9bb4b9be42ff136da1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd054277fb59d4f9bb4b9be42ff136da1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd054277fb59d4f9bb4b9be42ff136da1', x'c16d03d540d2499cb8cec8ef78af593f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd054277fb59d4f9bb4b9be42ff136da1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd054277fb59d4f9bb4b9be42ff136da1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd054277fb59d4f9bb4b9be42ff136da1', x'26da04680e2040f9b8d0d2b08d433ff0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6e9c94073cea4c73839a72dae34d333d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6e9c94073cea4c73839a72dae34d333d' LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6e9c94073cea4c73839a72dae34d333d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'af32bfe730dc42e4931545c45f69dfb5', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'accountaf32bfe7-30dc-42e4-9315-45c45f69dfb5' WHERE `accounts`.`id` = x'af32bfe730dc42e4931545c45f69dfb5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6e9c94073cea4c73839a72dae34d333d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'af32bfe730dc42e4931545c45f69dfb5', x'9d991eba77d84133b99337e82a0495c0', x'6e9c94073cea4c73839a72dae34d333d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9d991eba77d84133b99337e82a0495c0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d991eba77d84133b99337e82a0495c0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d991eba77d84133b99337e82a0495c0', x'595dafda1eda484bbab009b2ba30e8d4', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9d991eba77d84133b99337e82a0495c0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d991eba77d84133b99337e82a0495c0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d991eba77d84133b99337e82a0495c0', x'0d059e0b0169402eb298d816aef6fadd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 18ms (ActiveRecord: 3.1ms)  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6e9c94073cea4c73839a72dae34d333d' Processing by Iugu::AccountController#create as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'ef3b6af429794ef68b25d502b4247b2a', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'accountef3b6af4-2979-4ef6-8b25-d502b4247b2a' WHERE `accounts`.`id` = x'ef3b6af429794ef68b25d502b4247b2a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6e9c94073cea4c73839a72dae34d333d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ef3b6af429794ef68b25d502b4247b2a', x'd8f1a2c4339a4020b81dcdf8bd59c553', x'6e9c94073cea4c73839a72dae34d333d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd8f1a2c4339a4020b81dcdf8bd59c553') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8f1a2c4339a4020b81dcdf8bd59c553' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8f1a2c4339a4020b81dcdf8bd59c553', x'46c2824f34584ca1bcd2d39d5d33f317', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd8f1a2c4339a4020b81dcdf8bd59c553') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8f1a2c4339a4020b81dcdf8bd59c553' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8f1a2c4339a4020b81dcdf8bd59c553', x'51f99c6e45d643a89863ee1eda55f03c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 17ms (ActiveRecord: 2.9ms)  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6e9c94073cea4c73839a72dae34d333d'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:44', 'teste@teste.com', '$2a$04$UCifxlar4MbWQrQ0q0PgqeJD3eX85SmaEPvEmlszOkT6LNllTmENa', NULL, x'd3af158d6e864a52b4630c603130fd90', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd3af158d6e864a52b4630c603130fd90' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:44', 'User', x'e96005da0e6543259569d57768b97f2a', 'aead7e53b0bfa5c3408135dc0b282074', x'd3af158d6e864a52b4630c603130fd90', 'User', '2012-12-31 12:45:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd3af158d6e864a52b4630c603130fd90' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'caeb010a463e4319a41b25ea0e8ae9fa', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'accountcaeb010a-463e-4319-a41b-25ea0e8ae9fa' WHERE `accounts`.`id` = x'caeb010a463e4319a41b25ea0e8ae9fa' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'caeb010a463e4319a41b25ea0e8ae9fa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'caeb010a463e4319a41b25ea0e8ae9fa', x'de1e0840d6f9405f85fc6c3dae0ef8bd', x'd3af158d6e864a52b4630c603130fd90') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'de1e0840d6f9405f85fc6c3dae0ef8bd') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de1e0840d6f9405f85fc6c3dae0ef8bd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de1e0840d6f9405f85fc6c3dae0ef8bd', x'9b0c7d2fce1d435a9bc0d9288a391443', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'de1e0840d6f9405f85fc6c3dae0ef8bd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de1e0840d6f9405f85fc6c3dae0ef8bd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de1e0840d6f9405f85fc6c3dae0ef8bd', x'bc9b9f7d5e794ab196f4652fa0abc755', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f84449d_f6180435d4861c1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'417cf5e780e9415593041310b1d0a106', 'jabanilson', NULL, 1, '2012-12-31 12:45:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account417cf5e7-80e9-4155-9304-1310b1d0a106' WHERE `accounts`.`id` = x'417cf5e780e9415593041310b1d0a106'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'417cf5e780e9415593041310b1d0a106', x'01688d86987e4469b8190f907814935a', x'd3af158d6e864a52b4630c603130fd90') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'01688d86987e4469b8190f907814935a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01688d86987e4469b8190f907814935a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01688d86987e4469b8190f907814935a', x'c149beddecdb42128c5d9d995c700df2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'01688d86987e4469b8190f907814935a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01688d86987e4469b8190f907814935a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01688d86987e4469b8190f907814935a', x'215cc907db574954a7102bc068359aba', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3af158d6e864a52b4630c603130fd90' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3af158d6e864a52b4630c603130fd90' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3af158d6e864a52b4630c603130fd90' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"CAEB010A463E4319A41B25EA0E8AE9FA"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd3af158d6e864a52b4630c603130fd90' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'caeb010a463e4319a41b25ea0e8ae9fa' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_caeb010a-463e-4319-a41b-25ea0e8ae9fa_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd3af158d6e864a52b4630c603130fd90' AND `account_users`.`account_id` = x'caeb010a463e4319a41b25ea0e8ae9fa' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'de1e0840d6f9405f85fc6c3dae0ef8bd' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd3af158d6e864a52b4630c603130fd90' AND `accounts`.`id` = x'caeb010a463e4319a41b25ea0e8ae9fa' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'caeb010a463e4319a41b25ea0e8ae9fa' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'caeb010a463e4319a41b25ea0e8ae9fa' LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:45:44', 'token x', x'4e8833e982d14fd9a3289cd33dec6012', '57c659ba1fbab759d7674c600430f1ee', x'caeb010a463e4319a41b25ea0e8ae9fa', 'Account', '2012-12-31 12:45:44')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/CAEB010A463E4319A41B25EA0E8AE9FA Completed 302 Found in 18ms (ActiveRecord: 2.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:44', 'teste@teste.com', '$2a$04$EGAkp4H6ZdftNiGgKWk64.FHx4iTAsb6uIspcJjohSphEvR/sZN2O', NULL, x'0853bfb1f13540118b76430070646cac', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0853bfb1f13540118b76430070646cac' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:44', 'User', x'09fddd07720c41daa04b769f76f078d4', 'cd56365123e975d3910a60b913edc8ba', x'0853bfb1f13540118b76430070646cac', 'User', '2012-12-31 12:45:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0853bfb1f13540118b76430070646cac' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'eeabc9d1b24d47e9bea3304ec15b7ee6', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'accounteeabc9d1-b24d-47e9-bea3-304ec15b7ee6' WHERE `accounts`.`id` = x'eeabc9d1b24d47e9bea3304ec15b7ee6' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eeabc9d1b24d47e9bea3304ec15b7ee6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eeabc9d1b24d47e9bea3304ec15b7ee6', x'c3f905c3c3a3471ea60b0bc7496bb6c5', x'0853bfb1f13540118b76430070646cac') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c3f905c3c3a3471ea60b0bc7496bb6c5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3f905c3c3a3471ea60b0bc7496bb6c5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3f905c3c3a3471ea60b0bc7496bb6c5', x'feb4ed000cab46ff9eb42329dcab60ed', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c3f905c3c3a3471ea60b0bc7496bb6c5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3f905c3c3a3471ea60b0bc7496bb6c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3f905c3c3a3471ea60b0bc7496bb6c5', x'08a4c44d80944f4088eb65cb753f3f9d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f85aa1c_f6180435d486252@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'3c6cdc80def54c5aa96b9f8b4a7e79a2', 'jabanilson', NULL, 1, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account3c6cdc80-def5-4c5a-a96b-9f8b4a7e79a2' WHERE `accounts`.`id` = x'3c6cdc80def54c5aa96b9f8b4a7e79a2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3c6cdc80def54c5aa96b9f8b4a7e79a2', x'ca013958c7eb45078421f61e95a38fc2', x'0853bfb1f13540118b76430070646cac') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ca013958c7eb45078421f61e95a38fc2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca013958c7eb45078421f61e95a38fc2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca013958c7eb45078421f61e95a38fc2', x'305c760ad9c24145b09789c78041e7bf', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ca013958c7eb45078421f61e95a38fc2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca013958c7eb45078421f61e95a38fc2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca013958c7eb45078421f61e95a38fc2', x'b4a8b92c4c604bf695d0f7980b067b44', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0853bfb1f13540118b76430070646cac' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0853bfb1f13540118b76430070646cac' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0853bfb1f13540118b76430070646cac' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"EEABC9D1B24D47E9BEA3304EC15B7EE6"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0853bfb1f13540118b76430070646cac' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eeabc9d1b24d47e9bea3304ec15b7ee6' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_eeabc9d1-b24d-47e9-bea3-304ec15b7ee6_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0853bfb1f13540118b76430070646cac' AND `account_users`.`account_id` = x'eeabc9d1b24d47e9bea3304ec15b7ee6' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c3f905c3c3a3471ea60b0bc7496bb6c5' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0853bfb1f13540118b76430070646cac' AND `accounts`.`id` = x'eeabc9d1b24d47e9bea3304ec15b7ee6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'eeabc9d1b24d47e9bea3304ec15b7ee6' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eeabc9d1b24d47e9bea3304ec15b7ee6' LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:45:44', 'token x', x'522ea84e64aa4c6d9b65ec16a2346d6a', '72e8ace4627d2249c7c12d503b2b2dbf', x'eeabc9d1b24d47e9bea3304ec15b7ee6', 'Account', '2012-12-31 12:45:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/EEABC9D1B24D47E9BEA3304EC15B7EE6 Completed 302 Found in 15ms (ActiveRecord: 2.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:44', 'teste@teste.com', '$2a$04$/ozHIHLAdX5VBE8M5DaDJe6GwjrmBWlmLjQvGJKr/CRQK8Sr9OEZe', NULL, x'1d2356ed5e754b4aa0f7dda3abff9746', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1d2356ed5e754b4aa0f7dda3abff9746' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.5ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:44', 'User', x'67ad9d883a2d42cba7f54085807df836', '4963b8df048766d93dc683d82a5e6901', x'1d2356ed5e754b4aa0f7dda3abff9746', 'User', '2012-12-31 12:45:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1d2356ed5e754b4aa0f7dda3abff9746' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'8f0d2360345140d4bc2cfd0055148d48', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account8f0d2360-3451-40d4-bc2c-fd0055148d48' WHERE `accounts`.`id` = x'8f0d2360345140d4bc2cfd0055148d48' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f0d2360345140d4bc2cfd0055148d48' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8f0d2360345140d4bc2cfd0055148d48', x'77eb1a470926491883ea5e5d502b446c', x'1d2356ed5e754b4aa0f7dda3abff9746') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'77eb1a470926491883ea5e5d502b446c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'77eb1a470926491883ea5e5d502b446c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'77eb1a470926491883ea5e5d502b446c', x'8e395019dd6e45e1b8e0528a37e3b52b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'77eb1a470926491883ea5e5d502b446c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'77eb1a470926491883ea5e5d502b446c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'77eb1a470926491883ea5e5d502b446c', x'7162e63221b84f8db8d51168cbab5906', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f8836b4_f6180435d48633@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'12a0e1d59ab1475ba54fa3b062325a83', 'jabanilson', NULL, 1, '2012-12-31 12:45:44')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account12a0e1d5-9ab1-475b-a54f-a3b062325a83' WHERE `accounts`.`id` = x'12a0e1d59ab1475ba54fa3b062325a83'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'12a0e1d59ab1475ba54fa3b062325a83', x'619061f5e5e74016aa51bec43bdb4de9', x'1d2356ed5e754b4aa0f7dda3abff9746') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'619061f5e5e74016aa51bec43bdb4de9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'619061f5e5e74016aa51bec43bdb4de9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'619061f5e5e74016aa51bec43bdb4de9', x'14a529e6b1b54d2f92108927fb09a43a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'619061f5e5e74016aa51bec43bdb4de9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'619061f5e5e74016aa51bec43bdb4de9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'619061f5e5e74016aa51bec43bdb4de9', x'96c20893e2c54863a333822ac2d4d5bd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1d2356ed5e754b4aa0f7dda3abff9746' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1d2356ed5e754b4aa0f7dda3abff9746' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1d2356ed5e754b4aa0f7dda3abff9746' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"8F0D2360345140D4BC2CFD0055148D48"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1d2356ed5e754b4aa0f7dda3abff9746' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f0d2360345140d4bc2cfd0055148d48' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8f0d2360-3451-40d4-bc2c-fd0055148d48_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1d2356ed5e754b4aa0f7dda3abff9746' AND `account_users`.`account_id` = x'8f0d2360345140d4bc2cfd0055148d48' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'77eb1a470926491883ea5e5d502b446c' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1d2356ed5e754b4aa0f7dda3abff9746' AND `accounts`.`id` = x'8f0d2360345140d4bc2cfd0055148d48' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'8f0d2360345140d4bc2cfd0055148d48' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f0d2360345140d4bc2cfd0055148d48' LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:45:44', 'token x', x'0a0f715496694da6b4b11d376308a5a3', 'd3eda10f3b4e6266aedcd5bc917f8331', x'8f0d2360345140d4bc2cfd0055148d48', 'Account', '2012-12-31 12:45:44')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/8F0D2360345140D4BC2CFD0055148D48 Completed 302 Found in 15ms (ActiveRecord: 2.7ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"8F0D2360345140D4BC2CFD0055148D48"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f0d2360345140d4bc2cfd0055148d48' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8f0d2360-3451-40d4-bc2c-fd0055148d48_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1d2356ed5e754b4aa0f7dda3abff9746' AND `account_users`.`account_id` = x'8f0d2360345140d4bc2cfd0055148d48' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'77eb1a470926491883ea5e5d502b446c' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:44', 'teste@teste.com', '$2a$04$NzTotpftd1jtDVHuxoG7M.HvUK3G95tZ5Zt/1RGVChUVfU8SYrPyi', NULL, x'0edc1eb4f2df4c0698ea4123a1b8771c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0edc1eb4f2df4c0698ea4123a1b8771c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:44', 'User', x'2eb27a4142dd453ca4bbe42baaa71df4', '9348e3e0fb0fe5a9e252b069574b7ca4', x'0edc1eb4f2df4c0698ea4123a1b8771c', 'User', '2012-12-31 12:45:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0edc1eb4f2df4c0698ea4123a1b8771c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'8f69906c14ab4c958f0f7284198ff1e8', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account8f69906c-14ab-4c95-8f0f-7284198ff1e8' WHERE `accounts`.`id` = x'8f69906c14ab4c958f0f7284198ff1e8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f69906c14ab4c958f0f7284198ff1e8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8f69906c14ab4c958f0f7284198ff1e8', x'8f1326b4389842e98cba9eb2596a8c22', x'0edc1eb4f2df4c0698ea4123a1b8771c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8f1326b4389842e98cba9eb2596a8c22') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f1326b4389842e98cba9eb2596a8c22' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f1326b4389842e98cba9eb2596a8c22', x'646deaca5235418d83837204f86eb9f8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8f1326b4389842e98cba9eb2596a8c22') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f1326b4389842e98cba9eb2596a8c22' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f1326b4389842e98cba9eb2596a8c22', x'b49887358c7d4f36b324f524108d5f1a', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f89aefd_f6180435d486424@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'327af086ed0640648b19e105268c44ec', 'jabanilson', NULL, 1, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account327af086-ed06-4064-8b19-e105268c44ec' WHERE `accounts`.`id` = x'327af086ed0640648b19e105268c44ec'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'327af086ed0640648b19e105268c44ec', x'7509b143507448eda166c824fc9d3629', x'0edc1eb4f2df4c0698ea4123a1b8771c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7509b143507448eda166c824fc9d3629') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7509b143507448eda166c824fc9d3629' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7509b143507448eda166c824fc9d3629', x'ff133427fa804dbe967574ea5906aba4', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7509b143507448eda166c824fc9d3629') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7509b143507448eda166c824fc9d3629' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7509b143507448eda166c824fc9d3629', x'e84aec025dea4b18b47d10993d633e63', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0edc1eb4f2df4c0698ea4123a1b8771c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0edc1eb4f2df4c0698ea4123a1b8771c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0edc1eb4f2df4c0698ea4123a1b8771c' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'327af086ed0640648b19e105268c44ec' AND `account_domains`.`url` = 'controller.test.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'327af086ed0640648b19e105268c44ec', x'4cb6368c4e9640728074167f535747a0', NULL, 'controller.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"327AF086ED0640648B19E105268C44EC"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0edc1eb4f2df4c0698ea4123a1b8771c' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'327af086ed0640648b19e105268c44ec' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_327af086-ed06-4064-8b19-e105268c44ec_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0edc1eb4f2df4c0698ea4123a1b8771c' AND `account_users`.`account_id` = x'327af086ed0640648b19e105268c44ec' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7509b143507448eda166c824fc9d3629' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7509b143507448eda166c824fc9d3629' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0edc1eb4f2df4c0698ea4123a1b8771c' AND `accounts`.`id` = x'327af086ed0640648b19e105268c44ec' LIMIT 1 Completed 200 OK in 15ms (Views: 3.5ms | ActiveRecord: 2.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:44', 'teste@teste.com', '$2a$04$XkOQM9Thepnit2XKPpkrbeKBMfz5PPdXHMO4YximzcCGclHzabmIy', NULL, x'5cb4ee25ff4a4033b47dd49fbaabe6e6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5cb4ee25ff4a4033b47dd49fbaabe6e6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:44', 'User', x'debf4400afff4ab1888e7b38d33d748e', '1ba136bbbe5ba1bff4fdf706f047f8c5', x'5cb4ee25ff4a4033b47dd49fbaabe6e6', 'User', '2012-12-31 12:45:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5cb4ee25ff4a4033b47dd49fbaabe6e6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'901d4037ac6146ecb3c9f28dea0df4ff', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account901d4037-ac61-46ec-b3c9-f28dea0df4ff' WHERE `accounts`.`id` = x'901d4037ac6146ecb3c9f28dea0df4ff' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'901d4037ac6146ecb3c9f28dea0df4ff' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'901d4037ac6146ecb3c9f28dea0df4ff', x'ad29f03572224f6e8ed77ddb6527fb70', x'5cb4ee25ff4a4033b47dd49fbaabe6e6') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ad29f03572224f6e8ed77ddb6527fb70') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad29f03572224f6e8ed77ddb6527fb70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad29f03572224f6e8ed77ddb6527fb70', x'6483fb0a84ec4ff696fa588f964f7a7c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ad29f03572224f6e8ed77ddb6527fb70') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad29f03572224f6e8ed77ddb6527fb70' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad29f03572224f6e8ed77ddb6527fb70', x'664adb54274f4ce7857342446d982647', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f8b4843_f6180435d486550@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'f83cecce108c4fdab99a9844fe85a280', 'jabanilson', NULL, 1, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'accountf83cecce-108c-4fda-b99a-9844fe85a280' WHERE `accounts`.`id` = x'f83cecce108c4fdab99a9844fe85a280'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f83cecce108c4fdab99a9844fe85a280', x'058008085f0845348a098690a7a2e2c2', x'5cb4ee25ff4a4033b47dd49fbaabe6e6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'058008085f0845348a098690a7a2e2c2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'058008085f0845348a098690a7a2e2c2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'058008085f0845348a098690a7a2e2c2', x'f1f958192e244f40bf3d220543c8f136', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'058008085f0845348a098690a7a2e2c2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'058008085f0845348a098690a7a2e2c2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'058008085f0845348a098690a7a2e2c2', x'08917628b7974d2890674f18a5fa2add', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5cb4ee25ff4a4033b47dd49fbaabe6e6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5cb4ee25ff4a4033b47dd49fbaabe6e6' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5cb4ee25ff4a4033b47dd49fbaabe6e6' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"901D4037AC6146ECB3C9F28DEA0DF4FF"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5cb4ee25ff4a4033b47dd49fbaabe6e6' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'901d4037ac6146ecb3c9f28dea0df4ff' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_901d4037-ac61-46ec-b3c9-f28dea0df4ff_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5cb4ee25ff4a4033b47dd49fbaabe6e6' AND `account_users`.`account_id` = x'901d4037ac6146ecb3c9f28dea0df4ff' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ad29f03572224f6e8ed77ddb6527fb70' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ad29f03572224f6e8ed77ddb6527fb70' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5cb4ee25ff4a4033b47dd49fbaabe6e6' AND `accounts`.`id` = x'901d4037ac6146ecb3c9f28dea0df4ff' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'901d4037ac6146ecb3c9f28dea0df4ff' AND `account_domains`.`url` = 'new.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'901d4037ac6146ecb3c9f28dea0df4ff', x'e9b905f42f8340aaafc50c8a2bd599bc', NULL, 'new.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/901D4037AC6146ECB3C9F28DEA0DF4FF/domain/E9B905F42F8340AAAFC50C8A2BD599BC Completed 302 Found in 16ms (ActiveRecord: 2.8ms) AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:44', 'teste@teste.com', '$2a$04$06RS/tAqD08C.ld03pTfM.CQ77/VA.eqlPDs/a/ko4aJy6AMp3k06', NULL, x'39672814ad7245438a8e7b503a343525', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:44') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'39672814ad7245438a8e7b503a343525' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:44', 'User', x'3c50ad026f9345f1aeb3ff017337622e', 'a4eef22020380d5eda828636a2a305a1', x'39672814ad7245438a8e7b503a343525', 'User', '2012-12-31 12:45:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'39672814ad7245438a8e7b503a343525' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'3b9f5ade82ef47a1bdbb91895c9c9861', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account3b9f5ade-82ef-47a1-bdbb-91895c9c9861' WHERE `accounts`.`id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3b9f5ade82ef47a1bdbb91895c9c9861', x'52251346f57d42b7b27976c8e3d7d37b', x'39672814ad7245438a8e7b503a343525') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'52251346f57d42b7b27976c8e3d7d37b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52251346f57d42b7b27976c8e3d7d37b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52251346f57d42b7b27976c8e3d7d37b', x'778a1c73e1324a918b57ddeafdb1db95', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'52251346f57d42b7b27976c8e3d7d37b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52251346f57d42b7b27976c8e3d7d37b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52251346f57d42b7b27976c8e3d7d37b', x'd0acb1fc8cb34ad69dff3e6ed67f6306', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:44 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f8de7f5_f6180435d48661b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'68c15a5a73144126b9860a6a91f0fb13', 'jabanilson', NULL, 1, '2012-12-31 12:45:44')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'account68c15a5a-7314-4126-b986-0a6a91f0fb13' WHERE `accounts`.`id` = x'68c15a5a73144126b9860a6a91f0fb13'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'68c15a5a73144126b9860a6a91f0fb13', x'98cd7763334f47e7a380c701cf7e6836', x'39672814ad7245438a8e7b503a343525') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'98cd7763334f47e7a380c701cf7e6836') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'98cd7763334f47e7a380c701cf7e6836' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'98cd7763334f47e7a380c701cf7e6836', x'17b94c31e6bc4ae49bc144ce2082ef8f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'98cd7763334f47e7a380c701cf7e6836') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'98cd7763334f47e7a380c701cf7e6836' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'98cd7763334f47e7a380c701cf7e6836', x'c9d70deb51f448118fb40f10c33c9aee', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'39672814ad7245438a8e7b503a343525' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'39672814ad7245438a8e7b503a343525' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'39672814ad7245438a8e7b503a343525' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"3B9F5ADE82EF47A1BDBB91895C9C9861"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'39672814ad7245438a8e7b503a343525' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3b9f5ade-82ef-47a1-bdbb-91895c9c9861_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'39672814ad7245438a8e7b503a343525' AND `account_users`.`account_id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'52251346f57d42b7b27976c8e3d7d37b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'52251346f57d42b7b27976c8e3d7d37b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'39672814ad7245438a8e7b503a343525' AND `accounts`.`id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' AND `account_domains`.`url` = 'new.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3b9f5ade82ef47a1bdbb91895c9c9861', x'7ec7c7f2ab674cd4a55712e15eff9010', NULL, 'new.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/3B9F5ADE82EF47A1BDBB91895C9C9861/domain/7EC7C7F2AB674CD4A55712E15EFF9010 Completed 302 Found in 15ms (ActiveRecord: 2.4ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"3B9F5ADE82EF47A1BDBB91895C9C9861"} Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3b9f5ade-82ef-47a1-bdbb-91895c9c9861_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'39672814ad7245438a8e7b503a343525' AND `account_users`.`account_id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'52251346f57d42b7b27976c8e3d7d37b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'52251346f57d42b7b27976c8e3d7d37b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'39672814ad7245438a8e7b503a343525' AND `accounts`.`id` = x'3b9f5ade82ef47a1bdbb91895c9c9861' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.8ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:44', 'teste@teste.com', '$2a$04$/hlmMT1dycrVAaDPOR7spO0.w7nJFNNJz0Cym1j0hVR53ksoDCBv2', NULL, x'f1d0665c216e4eeb80acc7c78d5d9d70', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:44') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f1d0665c216e4eeb80acc7c78d5d9d70' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:44', 'User', x'b6b7d4d246b14d22a644c21682e8f21d', 'adce511c5b0262129912da3ce2867b68', x'f1d0665c216e4eeb80acc7c78d5d9d70', 'User', '2012-12-31 12:45:44') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f1d0665c216e4eeb80acc7c78d5d9d70' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:44', x'da655be55475496aa873de4aa7c2d08b', NULL, NULL, NULL, '2012-12-31 12:45:44')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:44', `updated_at` = '2012-12-31 12:45:44', `subdomain` = 'accountda655be5-5475-496a-a873-de4aa7c2d08b' WHERE `accounts`.`id` = x'da655be55475496aa873de4aa7c2d08b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da655be55475496aa873de4aa7c2d08b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'da655be55475496aa873de4aa7c2d08b', x'171bdd5503304103890c9e8463266ff8', x'f1d0665c216e4eeb80acc7c78d5d9d70') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'171bdd5503304103890c9e8463266ff8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'171bdd5503304103890c9e8463266ff8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'171bdd5503304103890c9e8463266ff8', x'3fbd7e6746534c90ad7d72f43706fa76', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'171bdd5503304103890c9e8463266ff8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'171bdd5503304103890c9e8463266ff8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'171bdd5503304103890c9e8463266ff8', x'c588e4be7e0f485296d10884692ada85', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f93f07_f6180435d48672f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'01b67d89c37a4168870d8508c48b6125', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account01b67d89-c37a-4168-870d-8508c48b6125' WHERE `accounts`.`id` = x'01b67d89c37a4168870d8508c48b6125'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'01b67d89c37a4168870d8508c48b6125', x'79aebea4b16b44d0896fcafa5d775056', x'f1d0665c216e4eeb80acc7c78d5d9d70') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'79aebea4b16b44d0896fcafa5d775056') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'79aebea4b16b44d0896fcafa5d775056' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'79aebea4b16b44d0896fcafa5d775056', x'5cc1eaee6bf34f168b54d5364f3feae5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'79aebea4b16b44d0896fcafa5d775056') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'79aebea4b16b44d0896fcafa5d775056' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'79aebea4b16b44d0896fcafa5d775056', x'8da2666160ac4d30abc18d15d9ffd188', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1d0665c216e4eeb80acc7c78d5d9d70' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1d0665c216e4eeb80acc7c78d5d9d70' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1d0665c216e4eeb80acc7c78d5d9d70' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'da655be55475496aa873de4aa7c2d08b' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'da655be55475496aa873de4aa7c2d08b', x'1e5ec175daaa434b81dbe2cf42bae607', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'da655be55475496aa873de4aa7c2d08b' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"DA655BE55475496AA873DE4AA7C2D08B", "domain_id"=>"1E5EC175DAAA434B81DBE2CF42BAE607"} User Load (1.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f1d0665c216e4eeb80acc7c78d5d9d70' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da655be55475496aa873de4aa7c2d08b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_da655be5-5475-496a-a873-de4aa7c2d08b_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f1d0665c216e4eeb80acc7c78d5d9d70' AND `account_users`.`account_id` = x'da655be55475496aa873de4aa7c2d08b' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'171bdd5503304103890c9e8463266ff8' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'171bdd5503304103890c9e8463266ff8' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1d0665c216e4eeb80acc7c78d5d9d70' AND `accounts`.`id` = x'da655be55475496aa873de4aa7c2d08b' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'da655be55475496aa873de4aa7c2d08b' AND `account_domains`.`id` = x'1e5ec175daaa434b81dbe2cf42bae607' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'1e5ec175daaa434b81dbe2cf42bae607'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'da655be55475496aa873de4aa7c2d08b' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'da655be55475496aa873de4aa7c2d08b' AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'1e5ec175daaa434b81dbe2cf42bae607'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/DA655BE55475496AA873DE4AA7C2D08B/domains Completed 302 Found in 24ms (ActiveRecord: 4.5ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:45', 'teste@teste.com', '$2a$04$qwmiI75GTQdc8/N57U4tTexypGFjXneMu502OoQOS0EIkG2lHbH1q', NULL, x'174fab45fad1482cbde806cffc709f61', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'174fab45fad1482cbde806cffc709f61' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:45', 'User', x'fa4ddd5d38a24944b1075d809c2418d4', 'f7afe9763f66f9e86ad1c95741637f3c', x'174fab45fad1482cbde806cffc709f61', 'User', '2012-12-31 12:45:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'174fab45fad1482cbde806cffc709f61' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'28b31d9a53ec412e8917ab95fd52437a', NULL, NULL, NULL, '2012-12-31 12:45:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account28b31d9a-53ec-412e-8917-ab95fd52437a' WHERE `accounts`.`id` = x'28b31d9a53ec412e8917ab95fd52437a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'28b31d9a53ec412e8917ab95fd52437a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'28b31d9a53ec412e8917ab95fd52437a', x'33d6fbe7e7064282ae8b6348bafd97d0', x'174fab45fad1482cbde806cffc709f61') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'33d6fbe7e7064282ae8b6348bafd97d0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'33d6fbe7e7064282ae8b6348bafd97d0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'33d6fbe7e7064282ae8b6348bafd97d0', x'58a7e091d6114e3e9a219b7a2dea0007', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'33d6fbe7e7064282ae8b6348bafd97d0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'33d6fbe7e7064282ae8b6348bafd97d0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'33d6fbe7e7064282ae8b6348bafd97d0', x'3b29ae500a5e4bfb9ae2626ca90ab5cd', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f91e8c5_f6180435d486881@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'09229e895a574938a8fb02e965b34440', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account09229e89-5a57-4938-a8fb-02e965b34440' WHERE `accounts`.`id` = x'09229e895a574938a8fb02e965b34440'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'09229e895a574938a8fb02e965b34440', x'b0e16a126bcb4a1b9286158b77659b90', x'174fab45fad1482cbde806cffc709f61') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b0e16a126bcb4a1b9286158b77659b90') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0e16a126bcb4a1b9286158b77659b90' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0e16a126bcb4a1b9286158b77659b90', x'ca32d1e0cbff45f9bec35e67bf2e0cce', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b0e16a126bcb4a1b9286158b77659b90') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0e16a126bcb4a1b9286158b77659b90' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0e16a126bcb4a1b9286158b77659b90', x'65ad8ef304be437eb369a62917b88817', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'174fab45fad1482cbde806cffc709f61' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'174fab45fad1482cbde806cffc709f61' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'174fab45fad1482cbde806cffc709f61' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'28b31d9a53ec412e8917ab95fd52437a' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'28b31d9a53ec412e8917ab95fd52437a', x'b0ca276897a64161b069b0198d5ff896', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'28b31d9a53ec412e8917ab95fd52437a' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"28B31D9A53EC412E8917AB95FD52437A", "domain_id"=>"B0CA276897A64161B069B0198D5FF896"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'174fab45fad1482cbde806cffc709f61' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'28b31d9a53ec412e8917ab95fd52437a' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_28b31d9a-53ec-412e-8917-ab95fd52437a_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'174fab45fad1482cbde806cffc709f61' AND `account_users`.`account_id` = x'28b31d9a53ec412e8917ab95fd52437a' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'33d6fbe7e7064282ae8b6348bafd97d0' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'33d6fbe7e7064282ae8b6348bafd97d0' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'174fab45fad1482cbde806cffc709f61' AND `accounts`.`id` = x'28b31d9a53ec412e8917ab95fd52437a' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'28b31d9a53ec412e8917ab95fd52437a' AND `account_domains`.`id` = x'b0ca276897a64161b069b0198d5ff896' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'b0ca276897a64161b069b0198d5ff896'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'28b31d9a53ec412e8917ab95fd52437a' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'28b31d9a53ec412e8917ab95fd52437a' AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'b0ca276897a64161b069b0198d5ff896'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/28B31D9A53EC412E8917AB95FD52437A/domains Completed 302 Found in 15ms (ActiveRecord: 2.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:45', 'teste@teste.com', '$2a$04$AWjLoHEMZFQEumbeyDefB.yxE5r9Gtb8U/zQCLLT4OmopBSnOy2q2', NULL, x'b77208e806974f828426aa27e689b288', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b77208e806974f828426aa27e689b288' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:45', 'User', x'66dda939b59b41bf9083dd03ea352c07', '150d8e1d041e1b85dea6d4c62e51bd88', x'b77208e806974f828426aa27e689b288', 'User', '2012-12-31 12:45:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b77208e806974f828426aa27e689b288' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'94e698716d0744a893b22d297e408316', NULL, NULL, NULL, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account94e69871-6d07-44a8-93b2-2d297e408316' WHERE `accounts`.`id` = x'94e698716d0744a893b22d297e408316' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'94e698716d0744a893b22d297e408316' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'94e698716d0744a893b22d297e408316', x'61abe423dc2e4bc892909503cffd69c5', x'b77208e806974f828426aa27e689b288') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'61abe423dc2e4bc892909503cffd69c5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61abe423dc2e4bc892909503cffd69c5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61abe423dc2e4bc892909503cffd69c5', x'5321c4a70a06487a932f2d01f6f56c31', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'61abe423dc2e4bc892909503cffd69c5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61abe423dc2e4bc892909503cffd69c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61abe423dc2e4bc892909503cffd69c5', x'2ec5d1ed1903421491d5e61c48650782', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f949a3c_f6180435d48694d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'66d647720fe1481f9d3f3200edd85e04', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account66d64772-0fe1-481f-9d3f-3200edd85e04' WHERE `accounts`.`id` = x'66d647720fe1481f9d3f3200edd85e04'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'66d647720fe1481f9d3f3200edd85e04', x'848bd97bf9a84064b66161b9b5581653', x'b77208e806974f828426aa27e689b288') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'848bd97bf9a84064b66161b9b5581653') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'848bd97bf9a84064b66161b9b5581653' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'848bd97bf9a84064b66161b9b5581653', x'276b713f94b047e988aa9d1ecfacb440', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'848bd97bf9a84064b66161b9b5581653') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'848bd97bf9a84064b66161b9b5581653' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'848bd97bf9a84064b66161b9b5581653', x'48082443f5df4cce84c5f962f691ac6f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b77208e806974f828426aa27e689b288' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b77208e806974f828426aa27e689b288' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b77208e806974f828426aa27e689b288' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'94e698716d0744a893b22d297e408316' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'94e698716d0744a893b22d297e408316', x'47e46eca900b482daab90f4bf76784da', NULL, 'destroy.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'94e698716d0744a893b22d297e408316' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"94E698716D0744A893B22D297E408316", "domain_id"=>"1273816283761238716"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b77208e806974f828426aa27e689b288' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'94e698716d0744a893b22d297e408316' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94e69871-6d07-44a8-93b2-2d297e408316_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b77208e806974f828426aa27e689b288' AND `account_users`.`account_id` = x'94e698716d0744a893b22d297e408316' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'61abe423dc2e4bc892909503cffd69c5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'61abe423dc2e4bc892909503cffd69c5' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b77208e806974f828426aa27e689b288' AND `accounts`.`id` = x'94e698716d0744a893b22d297e408316' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'94e698716d0744a893b22d297e408316' AND `account_domains`.`id` = x'33383136323833373631323338373136' LIMIT 1 Redirected to http://test.host/settings/account/94E698716D0744A893B22D297E408316/domains Completed 302 Found in 11ms (ActiveRecord: 1.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:45', 'teste@teste.com', '$2a$04$6LKy4IJ4GxX86n2bJy.SteXhpP7zC4/NVEeBeNSYEmX1qiAlh/ooO', NULL, x'237a286d186e47f5aa74e68aa0f2c45c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'237a286d186e47f5aa74e68aa0f2c45c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:45', 'User', x'c3fb7784b8b044468daa0a7c129566a7', 'df72d14ec9a8a563143a14bf3d377467', x'237a286d186e47f5aa74e68aa0f2c45c', 'User', '2012-12-31 12:45:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'237a286d186e47f5aa74e68aa0f2c45c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'9628e660fc8f4474aa7ba62c5db523c0', NULL, NULL, NULL, '2012-12-31 12:45:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account9628e660-fc8f-4474-aa7b-a62c5db523c0' WHERE `accounts`.`id` = x'9628e660fc8f4474aa7ba62c5db523c0' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9628e660fc8f4474aa7ba62c5db523c0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9628e660fc8f4474aa7ba62c5db523c0', x'ce878c01af9f4a528c0f0c59c983aa56', x'237a286d186e47f5aa74e68aa0f2c45c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ce878c01af9f4a528c0f0c59c983aa56') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce878c01af9f4a528c0f0c59c983aa56' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce878c01af9f4a528c0f0c59c983aa56', x'e4713a488a014969ae30ba700e381744', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ce878c01af9f4a528c0f0c59c983aa56') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce878c01af9f4a528c0f0c59c983aa56' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce878c01af9f4a528c0f0c59c983aa56', x'91f941c607b14fad90aa27ef77434499', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f95febf_f6180435d4870a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'7bbf410e279e45feaa69103c2d94a4d9', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account7bbf410e-279e-45fe-aa69-103c2d94a4d9' WHERE `accounts`.`id` = x'7bbf410e279e45feaa69103c2d94a4d9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7bbf410e279e45feaa69103c2d94a4d9', x'c312cf89916f4a759c6f62658e879e1a', x'237a286d186e47f5aa74e68aa0f2c45c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c312cf89916f4a759c6f62658e879e1a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c312cf89916f4a759c6f62658e879e1a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c312cf89916f4a759c6f62658e879e1a', x'4e5080e7d61442ab84d1b237dc7aeb61', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c312cf89916f4a759c6f62658e879e1a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c312cf89916f4a759c6f62658e879e1a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c312cf89916f4a759c6f62658e879e1a', x'6a294f75de8f475ba8cffdb760824f96', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'237a286d186e47f5aa74e68aa0f2c45c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'237a286d186e47f5aa74e68aa0f2c45c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'237a286d186e47f5aa74e68aa0f2c45c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7bbf410e279e45feaa69103c2d94a4d9' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7bbf410e279e45feaa69103c2d94a4d9', x'55eac58005d74ede9234e406d05ecf4e', NULL, 'destroy.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'7bbf410e279e45feaa69103c2d94a4d9' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"7BBF410E279E45FEAA69103C2D94A4D9", "domain_id"=>"1273816283761238716"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'237a286d186e47f5aa74e68aa0f2c45c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7bbf410e279e45feaa69103c2d94a4d9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7bbf410e-279e-45fe-aa69-103c2d94a4d9_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'237a286d186e47f5aa74e68aa0f2c45c' AND `account_users`.`account_id` = x'7bbf410e279e45feaa69103c2d94a4d9' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c312cf89916f4a759c6f62658e879e1a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c312cf89916f4a759c6f62658e879e1a' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'237a286d186e47f5aa74e68aa0f2c45c' AND `accounts`.`id` = x'7bbf410e279e45feaa69103c2d94a4d9' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'7bbf410e279e45feaa69103c2d94a4d9' AND `account_domains`.`id` = x'33383136323833373631323338373136' LIMIT 1 Redirected to http://test.host/settings/account/7BBF410E279E45FEAA69103C2D94A4D9/domains Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:45', 'teste@teste.com', '$2a$04$bCPTfOk3h1zFTpxCbH48l.UP6R8CkPBS2tr9QTtlDWoCpm.QNlXiq', NULL, x'99bfcdfc544a41f19fde09d7b57e8780', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'99bfcdfc544a41f19fde09d7b57e8780' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:45', 'User', x'248d00861bad447ea7849775447fe2d6', '530b28fd566f4fb9d1285759c4595c13', x'99bfcdfc544a41f19fde09d7b57e8780', 'User', '2012-12-31 12:45:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'99bfcdfc544a41f19fde09d7b57e8780' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'08a84f0834e04ac98bbb2151c57a17fe', NULL, NULL, NULL, '2012-12-31 12:45:45')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account08a84f08-34e0-4ac9-8bbb-2151c57a17fe' WHERE `accounts`.`id` = x'08a84f0834e04ac98bbb2151c57a17fe' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'08a84f0834e04ac98bbb2151c57a17fe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'08a84f0834e04ac98bbb2151c57a17fe', x'a57f881f6c0c4d95a985fa4364cd0002', x'99bfcdfc544a41f19fde09d7b57e8780') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a57f881f6c0c4d95a985fa4364cd0002') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a57f881f6c0c4d95a985fa4364cd0002' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a57f881f6c0c4d95a985fa4364cd0002', x'35705dcc13a44970a74a77bf621ab82b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a57f881f6c0c4d95a985fa4364cd0002') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a57f881f6c0c4d95a985fa4364cd0002' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a57f881f6c0c4d95a985fa4364cd0002', x'131559c5089340068df2fca9b189ca9d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f975f32_f6180435d4871ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'727a364bb13d4b1c85aa2bb5e4723b87', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account727a364b-b13d-4b1c-85aa-2bb5e4723b87' WHERE `accounts`.`id` = x'727a364bb13d4b1c85aa2bb5e4723b87'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'727a364bb13d4b1c85aa2bb5e4723b87', x'055f5f3ec3224b3e809ef53cf8c5ec2c', x'99bfcdfc544a41f19fde09d7b57e8780') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'055f5f3ec3224b3e809ef53cf8c5ec2c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'055f5f3ec3224b3e809ef53cf8c5ec2c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'055f5f3ec3224b3e809ef53cf8c5ec2c', x'ab89aa72b88046e088e8b87c86310794', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'055f5f3ec3224b3e809ef53cf8c5ec2c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'055f5f3ec3224b3e809ef53cf8c5ec2c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'055f5f3ec3224b3e809ef53cf8c5ec2c', x'8beffdfe44a7479bb8e04d369fe3408d', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99bfcdfc544a41f19fde09d7b57e8780' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99bfcdfc544a41f19fde09d7b57e8780' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99bfcdfc544a41f19fde09d7b57e8780' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'727a364bb13d4b1c85aa2bb5e4723b87' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'727a364bb13d4b1c85aa2bb5e4723b87', x'd0b3a0dad151449591a0db1b51355f99', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'727a364bb13d4b1c85aa2bb5e4723b87' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"727A364BB13D4B1C85AA2BB5E4723B87", "domain_id"=>"D0B3A0DAD151449591A0DB1B51355F99"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'99bfcdfc544a41f19fde09d7b57e8780' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'727a364bb13d4b1c85aa2bb5e4723b87' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_727a364b-b13d-4b1c-85aa-2bb5e4723b87_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99bfcdfc544a41f19fde09d7b57e8780' AND `accounts`.`id` = x'727a364bb13d4b1c85aa2bb5e4723b87' LIMIT 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'727a364bb13d4b1c85aa2bb5e4723b87' AND `account_domains`.`id` = x'd0b3a0dad151449591a0db1b51355f99' LIMIT 1 Completed 200 OK in 9ms (Views: 2.6ms | ActiveRecord: 1.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:45', 'teste@teste.com', '$2a$04$5c0YLY84wVV5bjQHfMJr7etSEA4tvt.TuWgIYiQ3ZENbJyKq2Kct2', NULL, x'd0ae6775cfc848a281aef2822c408d7e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd0ae6775cfc848a281aef2822c408d7e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:45', 'User', x'383c14f7dd684ef296ab795ad0aa9ee1', '654537863c0ac4f1c66a47d34f4113ab', x'd0ae6775cfc848a281aef2822c408d7e', 'User', '2012-12-31 12:45:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd0ae6775cfc848a281aef2822c408d7e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'75a898ee6be54e2cad68d8b9779bd968', NULL, NULL, NULL, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account75a898ee-6be5-4e2c-ad68-d8b9779bd968' WHERE `accounts`.`id` = x'75a898ee6be54e2cad68d8b9779bd968' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'75a898ee6be54e2cad68d8b9779bd968' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'75a898ee6be54e2cad68d8b9779bd968', x'cbe74cc827cf4a63bf098667d62b0d01', x'd0ae6775cfc848a281aef2822c408d7e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cbe74cc827cf4a63bf098667d62b0d01') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cbe74cc827cf4a63bf098667d62b0d01' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cbe74cc827cf4a63bf098667d62b0d01', x'0e971fad847e41d2ac6da04655d85ff9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cbe74cc827cf4a63bf098667d62b0d01') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cbe74cc827cf4a63bf098667d62b0d01' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cbe74cc827cf4a63bf098667d62b0d01', x'94eaa7911bec4e428d8428cab33b39b8', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f99f35e_f6180435d48727e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'02bc03d9bdeb4db3bdea80bfb83ae3b8', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account02bc03d9-bdeb-4db3-bdea-80bfb83ae3b8' WHERE `accounts`.`id` = x'02bc03d9bdeb4db3bdea80bfb83ae3b8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'02bc03d9bdeb4db3bdea80bfb83ae3b8', x'eb556f927a63466b89f5d73a0f31882c', x'd0ae6775cfc848a281aef2822c408d7e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eb556f927a63466b89f5d73a0f31882c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb556f927a63466b89f5d73a0f31882c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb556f927a63466b89f5d73a0f31882c', x'003cc312f96849e4b0765bf28a06ab00', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eb556f927a63466b89f5d73a0f31882c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb556f927a63466b89f5d73a0f31882c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb556f927a63466b89f5d73a0f31882c', x'3b66af0a0aee49e0a71f23285f251dfa', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0ae6775cfc848a281aef2822c408d7e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0ae6775cfc848a281aef2822c408d7e' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0ae6775cfc848a281aef2822c408d7e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'75a898ee6be54e2cad68d8b9779bd968' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'75a898ee6be54e2cad68d8b9779bd968', x'c8be7c8c6c974a2387b620115d421aa0', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'75a898ee6be54e2cad68d8b9779bd968' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"75A898EE6BE54E2CAD68D8B9779BD968", "domain_id"=>"1209371923812238"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd0ae6775cfc848a281aef2822c408d7e' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'75a898ee6be54e2cad68d8b9779bd968' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_75a898ee-6be5-4e2c-ad68-d8b9779bd968_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd0ae6775cfc848a281aef2822c408d7e' AND `accounts`.`id` = x'75a898ee6be54e2cad68d8b9779bd968' LIMIT 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'75a898ee6be54e2cad68d8b9779bd968' AND `account_domains`.`id` = x'31323039333731393233383132323338' LIMIT 1 Redirected to http://test.host/settings/account/75A898EE6BE54E2CAD68D8B9779BD968/domains Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:45', 'teste@teste.com', '$2a$04$a3QgQXeDL6VDfha/X3nBM.8fCgJfGdKhpZ68JnCULMqoPaVNysHAm', NULL, x'cfa74885ede349f98ccca97dea103c33', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cfa74885ede349f98ccca97dea103c33' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:45', 'User', x'48d78d0bf96f489fbec1c4a9254f7041', '8cda9e2df7eafc6b716175bff930b5ab', x'cfa74885ede349f98ccca97dea103c33', 'User', '2012-12-31 12:45:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cfa74885ede349f98ccca97dea103c33' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'0f901da56acb4a77a2e2b2e1932f72f4', NULL, NULL, NULL, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account0f901da5-6acb-4a77-a2e2-b2e1932f72f4' WHERE `accounts`.`id` = x'0f901da56acb4a77a2e2b2e1932f72f4' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0f901da56acb4a77a2e2b2e1932f72f4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0f901da56acb4a77a2e2b2e1932f72f4', x'3e14d31ac6cd4fc0a16c0c0c8162d51b', x'cfa74885ede349f98ccca97dea103c33') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3e14d31ac6cd4fc0a16c0c0c8162d51b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3e14d31ac6cd4fc0a16c0c0c8162d51b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3e14d31ac6cd4fc0a16c0c0c8162d51b', x'62b3ded2d0bc4746bf1e3d4414596a2f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3e14d31ac6cd4fc0a16c0c0c8162d51b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3e14d31ac6cd4fc0a16c0c0c8162d51b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3e14d31ac6cd4fc0a16c0c0c8162d51b', x'8e9b5843b7f741e0ab558beb7c3928e4', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f9b4fd4_f6180435d487382@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'ae104b879b0c436d96d4e64637d98841', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'accountae104b87-9b0c-436d-96d4-e64637d98841' WHERE `accounts`.`id` = x'ae104b879b0c436d96d4e64637d98841'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ae104b879b0c436d96d4e64637d98841', x'66d26ab2069342aebd41a71e370488c1', x'cfa74885ede349f98ccca97dea103c33') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'66d26ab2069342aebd41a71e370488c1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66d26ab2069342aebd41a71e370488c1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66d26ab2069342aebd41a71e370488c1', x'4e8d5cbbf5b740ffa883156fee8f8cdb', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'66d26ab2069342aebd41a71e370488c1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66d26ab2069342aebd41a71e370488c1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66d26ab2069342aebd41a71e370488c1', x'c3aa944a1a5e44099c30f9aed0e429d7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cfa74885ede349f98ccca97dea103c33' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cfa74885ede349f98ccca97dea103c33' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cfa74885ede349f98ccca97dea103c33' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f901da56acb4a77a2e2b2e1932f72f4' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0f901da56acb4a77a2e2b2e1932f72f4', x'ccbe70e36ac14505ae752ac17ef5309a', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f901da56acb4a77a2e2b2e1932f72f4' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"0F901DA56ACB4A77A2E2B2E1932F72F4", "domain_id"=>"1209371923812238"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cfa74885ede349f98ccca97dea103c33' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0f901da56acb4a77a2e2b2e1932f72f4' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_0f901da5-6acb-4a77-a2e2-b2e1932f72f4_destroy' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cfa74885ede349f98ccca97dea103c33' AND `accounts`.`id` = x'0f901da56acb4a77a2e2b2e1932f72f4' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f901da56acb4a77a2e2b2e1932f72f4' AND `account_domains`.`id` = x'31323039333731393233383132323338' LIMIT 1 Redirected to http://test.host/settings/account/0F901DA56ACB4A77A2E2B2E1932F72F4/domains Completed 302 Found in 7ms (ActiveRecord: 1.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:45', 'teste@teste.com', '$2a$04$hnB.eGOvFrQtP4nXHcllZ.DCDUn1ihPuvGwXonQ1ciKuXDPIGkAYC', NULL, x'a1a4eb796f8a45f19d5bfaeb33c83d80', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:45') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a1a4eb796f8a45f19d5bfaeb33c83d80' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:45', 'User', x'063bf944032a4bbb98595c9e235e5df7', '1e8add8c5b4f370f5df3fdd1af915e88', x'a1a4eb796f8a45f19d5bfaeb33c83d80', 'User', '2012-12-31 12:45:45') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a1a4eb796f8a45f19d5bfaeb33c83d80' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'e2df3bc2360145d8b739b520ca2e5da7', NULL, NULL, NULL, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'accounte2df3bc2-3601-45d8-b739-b520ca2e5da7' WHERE `accounts`.`id` = x'e2df3bc2360145d8b739b520ca2e5da7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e2df3bc2360145d8b739b520ca2e5da7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e2df3bc2360145d8b739b520ca2e5da7', x'b57e5ae084e24acf890f2f837fcea29d', x'a1a4eb796f8a45f19d5bfaeb33c83d80') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b57e5ae084e24acf890f2f837fcea29d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b57e5ae084e24acf890f2f837fcea29d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b57e5ae084e24acf890f2f837fcea29d', x'8f8cb9a422cc44318b553b792a6b6416', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b57e5ae084e24acf890f2f837fcea29d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b57e5ae084e24acf890f2f837fcea29d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b57e5ae084e24acf890f2f837fcea29d', x'0d6ea2af41ce43f3a0b1348f9980ea3c', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f9c9ecb_f6180435d48741d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'61a6ce8e5f864829bf51182e360ca003', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'account61a6ce8e-5f86-4829-bf51-182e360ca003' WHERE `accounts`.`id` = x'61a6ce8e5f864829bf51182e360ca003'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'61a6ce8e5f864829bf51182e360ca003', x'8d7a53567d1b4f54a82ff4f07974e0e3', x'a1a4eb796f8a45f19d5bfaeb33c83d80') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8d7a53567d1b4f54a82ff4f07974e0e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d7a53567d1b4f54a82ff4f07974e0e3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d7a53567d1b4f54a82ff4f07974e0e3', x'ff45a7dfbba44b1685951911dce5202f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8d7a53567d1b4f54a82ff4f07974e0e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8d7a53567d1b4f54a82ff4f07974e0e3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8d7a53567d1b4f54a82ff4f07974e0e3', x'620c631d3a874e0ebe58a0215633e21c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1a4eb796f8a45f19d5bfaeb33c83d80' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1a4eb796f8a45f19d5bfaeb33c83d80' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1a4eb796f8a45f19d5bfaeb33c83d80' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'61a6ce8e5f864829bf51182e360ca003' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'61a6ce8e5f864829bf51182e360ca003', x'7885f8cafbcf4f95b2bcb1e40119c7dd', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'61a6ce8e5f864829bf51182e360ca003' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"61A6CE8E5F864829BF51182E360CA003", "domain_id"=>"7885F8CAFBCF4F95B2BCB1E40119C7DD"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a1a4eb796f8a45f19d5bfaeb33c83d80' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'61a6ce8e5f864829bf51182e360ca003' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61a6ce8e-5f86-4829-bf51-182e360ca003_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a1a4eb796f8a45f19d5bfaeb33c83d80' AND `account_users`.`account_id` = x'61a6ce8e5f864829bf51182e360ca003' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8d7a53567d1b4f54a82ff4f07974e0e3' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8d7a53567d1b4f54a82ff4f07974e0e3' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1a4eb796f8a45f19d5bfaeb33c83d80' AND `accounts`.`id` = x'61a6ce8e5f864829bf51182e360ca003' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'61a6ce8e5f864829bf51182e360ca003' AND `account_domains`.`id` = x'7885f8cafbcf4f95b2bcb1e40119c7dd' LIMIT 1 Redirected to http://test.host/settings/account/61A6CE8E5F864829BF51182E360CA003/domains Completed 302 Found in 12ms (ActiveRecord: 2.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:45', 'teste@teste.com', '$2a$04$7saBUP/VyVAdTEMAanHmF.x0NYWRdFBepoOWFdKFsN1Kwnssvan.W', NULL, x'662b7a8e081d4da582499a4ff5c54412', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'662b7a8e081d4da582499a4ff5c54412' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:45', 'User', x'1cc3a8c71d754b509bd5843f497e4ad7', '7808e50e54446ac0cfaab63fefac5b9e', x'662b7a8e081d4da582499a4ff5c54412', 'User', '2012-12-31 12:45:45') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'662b7a8e081d4da582499a4ff5c54412' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'a1c15661cd614d2ab71220da6c835c00', NULL, NULL, NULL, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'accounta1c15661-cd61-4d2a-b712-20da6c835c00' WHERE `accounts`.`id` = x'a1c15661cd614d2ab71220da6c835c00' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a1c15661cd614d2ab71220da6c835c00' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a1c15661cd614d2ab71220da6c835c00', x'135faabb8cf64c49b1a5a73179397969', x'662b7a8e081d4da582499a4ff5c54412') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'135faabb8cf64c49b1a5a73179397969') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'135faabb8cf64c49b1a5a73179397969' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'135faabb8cf64c49b1a5a73179397969', x'f9959a2b6a184d1cb35b852fef9abbb3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'135faabb8cf64c49b1a5a73179397969') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'135faabb8cf64c49b1a5a73179397969' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'135faabb8cf64c49b1a5a73179397969', x'c3290182eae54b23870fa8d4d10dcbec', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:45 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188f9e1646_f6180435d48751c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:45', x'b6553df3a2fa41f8a8d89fb14ea6cd66', 'jabanilson', NULL, 1, '2012-12-31 12:45:45')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:45', `updated_at` = '2012-12-31 12:45:45', `subdomain` = 'accountb6553df3-a2fa-41f8-a8d8-9fb14ea6cd66' WHERE `accounts`.`id` = x'b6553df3a2fa41f8a8d89fb14ea6cd66'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b6553df3a2fa41f8a8d89fb14ea6cd66', x'927444f1e72b4f088f58892b2a39cc97', x'662b7a8e081d4da582499a4ff5c54412') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'927444f1e72b4f088f58892b2a39cc97') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'927444f1e72b4f088f58892b2a39cc97' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'927444f1e72b4f088f58892b2a39cc97', x'e55c019d6f7e43298600a88122b8bf58', 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'927444f1e72b4f088f58892b2a39cc97') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'927444f1e72b4f088f58892b2a39cc97' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'927444f1e72b4f088f58892b2a39cc97', x'74fabe63011d417eaa08bdfcc59f3881', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'662b7a8e081d4da582499a4ff5c54412' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'662b7a8e081d4da582499a4ff5c54412' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'662b7a8e081d4da582499a4ff5c54412' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a1c15661cd614d2ab71220da6c835c00' AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a1c15661cd614d2ab71220da6c835c00', x'356232d48f5d41029cc9f9a633c3e8e4', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'a1c15661cd614d2ab71220da6c835c00' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"A1C15661CD614D2AB71220DA6C835C00", "domain_id"=>"356232D48F5D41029CC9F9A633C3E8E4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'662b7a8e081d4da582499a4ff5c54412' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a1c15661cd614d2ab71220da6c835c00' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a1c15661-cd61-4d2a-b712-20da6c835c00_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'662b7a8e081d4da582499a4ff5c54412' AND `account_users`.`account_id` = x'a1c15661cd614d2ab71220da6c835c00' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'135faabb8cf64c49b1a5a73179397969' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'135faabb8cf64c49b1a5a73179397969' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'662b7a8e081d4da582499a4ff5c54412' AND `accounts`.`id` = x'a1c15661cd614d2ab71220da6c835c00' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'a1c15661cd614d2ab71220da6c835c00' AND `account_domains`.`id` = x'356232d48f5d41029cc9f9a633c3e8e4' LIMIT 1 Redirected to http://test.host/settings/account/A1C15661CD614D2AB71220DA6C835C00/domains Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$rPtV6DDffoKMSUAxrnXBmer/KK8mYs/nLGOLBa6wB4wIh9qN7M2Yy', NULL, x'c5dc4d9202ba46f78a9a04fff972a660', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c5dc4d9202ba46f78a9a04fff972a660' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'1fd1be4d902d4d91bf7c362ebc8d7dac', '66bf8de75f6ff11cfde60dce422a1079', x'c5dc4d9202ba46f78a9a04fff972a660', 'User', '2012-12-31 12:45:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c5dc4d9202ba46f78a9a04fff972a660' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'a944f7abd3ef4908a9c97868b4ba509b', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'accounta944f7ab-d3ef-4908-a9c9-7868b4ba509b' WHERE `accounts`.`id` = x'a944f7abd3ef4908a9c97868b4ba509b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a944f7abd3ef4908a9c97868b4ba509b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a944f7abd3ef4908a9c97868b4ba509b', x'4f5d8146b23d4daaa3b1342cc22d08db', x'c5dc4d9202ba46f78a9a04fff972a660') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4f5d8146b23d4daaa3b1342cc22d08db') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f5d8146b23d4daaa3b1342cc22d08db' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f5d8146b23d4daaa3b1342cc22d08db', x'1e221a18bd5749e397b706e8d7846a25', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4f5d8146b23d4daaa3b1342cc22d08db') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f5d8146b23d4daaa3b1342cc22d08db' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f5d8146b23d4daaa3b1342cc22d08db', x'a832635f46834ed892201f9f9bd1f77b', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fa18775_f6180435d4876b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'feeceb1e23864c9ba3d16004163a9f3f', 'jabanilson', NULL, 1, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'accountfeeceb1e-2386-4c9b-a3d1-6004163a9f3f' WHERE `accounts`.`id` = x'feeceb1e23864c9ba3d16004163a9f3f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'feeceb1e23864c9ba3d16004163a9f3f', x'0e3f1e1c8469415892400f96950c6e62', x'c5dc4d9202ba46f78a9a04fff972a660') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0e3f1e1c8469415892400f96950c6e62') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e3f1e1c8469415892400f96950c6e62' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e3f1e1c8469415892400f96950c6e62', x'e79047d317504378af537dfb82382568', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e3f1e1c8469415892400f96950c6e62') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e3f1e1c8469415892400f96950c6e62' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e3f1e1c8469415892400f96950c6e62', x'8ea2b42784c2403bbf1071b63023beca', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5dc4d9202ba46f78a9a04fff972a660' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5dc4d9202ba46f78a9a04fff972a660' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5dc4d9202ba46f78a9a04fff972a660' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'feeceb1e23864c9ba3d16004163a9f3f' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'feeceb1e23864c9ba3d16004163a9f3f', x'bea9a5a44f2e4f358523cf0ca15c37dd', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'feeceb1e23864c9ba3d16004163a9f3f' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"FEECEB1E23864C9BA3D16004163A9F3F", "domain_id"=>"BEA9A5A44F2E4F358523CF0CA15C37DD"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c5dc4d9202ba46f78a9a04fff972a660' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'feeceb1e23864c9ba3d16004163a9f3f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_feeceb1e-2386-4c9b-a3d1-6004163a9f3f_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c5dc4d9202ba46f78a9a04fff972a660' AND `account_users`.`account_id` = x'feeceb1e23864c9ba3d16004163a9f3f' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e3f1e1c8469415892400f96950c6e62' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e3f1e1c8469415892400f96950c6e62' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5dc4d9202ba46f78a9a04fff972a660' AND `accounts`.`id` = x'feeceb1e23864c9ba3d16004163a9f3f' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'feeceb1e23864c9ba3d16004163a9f3f' AND `account_domains`.`id` = x'bea9a5a44f2e4f358523cf0ca15c37dd' LIMIT 1 Redirected to http://test.host/settings/account/FEECEB1E23864C9BA3D16004163A9F3F/domain/BEA9A5A44F2E4F358523CF0CA15C37DD Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$vo9gfbWomDQPmQdbR0hgJeqyTlY7BN39yOzP58SLdmLhCi3ozSNB2', NULL, x'904bb692b26a487286dbba89a414756e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'904bb692b26a487286dbba89a414756e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'c4d4cc773eda4124bd90ec292f9033ef', 'f5c6d31d1976a6d4ec9bbccbe650c719', x'904bb692b26a487286dbba89a414756e', 'User', '2012-12-31 12:45:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'904bb692b26a487286dbba89a414756e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'8c4a88af8c83462cb6573c1b6fe2a5f9', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account8c4a88af-8c83-462c-b657-3c1b6fe2a5f9' WHERE `accounts`.`id` = x'8c4a88af8c83462cb6573c1b6fe2a5f9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8c4a88af8c83462cb6573c1b6fe2a5f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8c4a88af8c83462cb6573c1b6fe2a5f9', x'4a311c350bd147569fd9e1795ad1e325', x'904bb692b26a487286dbba89a414756e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4a311c350bd147569fd9e1795ad1e325') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4a311c350bd147569fd9e1795ad1e325' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4a311c350bd147569fd9e1795ad1e325', x'9094e97e75ef44deb16b5335012ccab1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4a311c350bd147569fd9e1795ad1e325') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4a311c350bd147569fd9e1795ad1e325' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4a311c350bd147569fd9e1795ad1e325', x'22610091ab0445769da1efa6026c90ec', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fa2f3f0_f6180435d4877c6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'33a60cb073c14c889b827b70345d1f28', 'jabanilson', NULL, 1, '2012-12-31 12:45:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account33a60cb0-73c1-4c88-9b82-7b70345d1f28' WHERE `accounts`.`id` = x'33a60cb073c14c889b827b70345d1f28'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'33a60cb073c14c889b827b70345d1f28', x'f838c6d643fb40f5ab09f7b933c1bd29', x'904bb692b26a487286dbba89a414756e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f838c6d643fb40f5ab09f7b933c1bd29') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f838c6d643fb40f5ab09f7b933c1bd29' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f838c6d643fb40f5ab09f7b933c1bd29', x'd67db3e0d4514dd38b6078070dc54252', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f838c6d643fb40f5ab09f7b933c1bd29') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f838c6d643fb40f5ab09f7b933c1bd29' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f838c6d643fb40f5ab09f7b933c1bd29', x'3fa23872079747b2a4a82c5a53a36078', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'904bb692b26a487286dbba89a414756e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'904bb692b26a487286dbba89a414756e' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'904bb692b26a487286dbba89a414756e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8c4a88af8c83462cb6573c1b6fe2a5f9' AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8c4a88af8c83462cb6573c1b6fe2a5f9', x'b5c7fc7aa536445bb2440ec60fd00cf1', NULL, 'verify.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8c4a88af8c83462cb6573c1b6fe2a5f9' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"8C4A88AF8C83462CB6573C1B6FE2A5F9", "domain_id"=>"B5C7FC7AA536445BB2440EC60FD00CF1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'904bb692b26a487286dbba89a414756e' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8c4a88af8c83462cb6573c1b6fe2a5f9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8c4a88af-8c83-462c-b657-3c1b6fe2a5f9_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'904bb692b26a487286dbba89a414756e' AND `account_users`.`account_id` = x'8c4a88af8c83462cb6573c1b6fe2a5f9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a311c350bd147569fd9e1795ad1e325' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a311c350bd147569fd9e1795ad1e325' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'904bb692b26a487286dbba89a414756e' AND `accounts`.`id` = x'8c4a88af8c83462cb6573c1b6fe2a5f9' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8c4a88af8c83462cb6573c1b6fe2a5f9' AND `account_domains`.`id` = x'b5c7fc7aa536445bb2440ec60fd00cf1' LIMIT 1 Redirected to http://test.host/settings/account/8C4A88AF8C83462CB6573C1B6FE2A5F9/domain/B5C7FC7AA536445BB2440EC60FD00CF1 Completed 302 Found in 12ms (ActiveRecord: 2.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$8E9c039Pz6LaiscTXvrxBOyKPUtd1xA5RQh1wz3cbT5QhqIl/3K3e', NULL, x'a9cb930412364dc9809d70ce5c20ffd5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a9cb930412364dc9809d70ce5c20ffd5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'321664a84a2c4cb0a04059b13dfe8fd7', '4afaccb1447a5d9aa3ec062eb313481d', x'a9cb930412364dc9809d70ce5c20ffd5', 'User', '2012-12-31 12:45:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a9cb930412364dc9809d70ce5c20ffd5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'7d009df558ed4045a528cbbb991a8677', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account7d009df5-58ed-4045-a528-cbbb991a8677' WHERE `accounts`.`id` = x'7d009df558ed4045a528cbbb991a8677' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7d009df558ed4045a528cbbb991a8677' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7d009df558ed4045a528cbbb991a8677', x'0c5360cb2da445a49352ed7f17c3b9c7', x'a9cb930412364dc9809d70ce5c20ffd5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0c5360cb2da445a49352ed7f17c3b9c7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0c5360cb2da445a49352ed7f17c3b9c7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0c5360cb2da445a49352ed7f17c3b9c7', x'5ff38fb39ce34053a1fb668b6bf8503a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0c5360cb2da445a49352ed7f17c3b9c7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0c5360cb2da445a49352ed7f17c3b9c7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0c5360cb2da445a49352ed7f17c3b9c7', x'0124bfe74bd74f7d8c05bd23327ac333', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fa46c0c_f6180435d487823@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'05f3eadf521c42e88296b1a5c6592a56', 'jabanilson', NULL, 1, '2012-12-31 12:45:46')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account05f3eadf-521c-42e8-8296-b1a5c6592a56' WHERE `accounts`.`id` = x'05f3eadf521c42e88296b1a5c6592a56'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'05f3eadf521c42e88296b1a5c6592a56', x'ca94884d66ae49739a26b3c311112723', x'a9cb930412364dc9809d70ce5c20ffd5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ca94884d66ae49739a26b3c311112723') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca94884d66ae49739a26b3c311112723' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca94884d66ae49739a26b3c311112723', x'd1cc2e761a834356bcae82fc15f76bfa', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ca94884d66ae49739a26b3c311112723') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca94884d66ae49739a26b3c311112723' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca94884d66ae49739a26b3c311112723', x'b2d7a905a5b44453b85293cb583ace94', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a9cb930412364dc9809d70ce5c20ffd5' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a9cb930412364dc9809d70ce5c20ffd5' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a9cb930412364dc9809d70ce5c20ffd5' LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7d009df558ed4045a528cbbb991a8677' AND `account_domains`.`url` = 'verify.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7d009df558ed4045a528cbbb991a8677', x'51b47e4277d64cc39204906deb313128', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'7d009df558ed4045a528cbbb991a8677' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"7D009DF558ED4045A528CBBB991A8677", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a9cb930412364dc9809d70ce5c20ffd5' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7d009df558ed4045a528cbbb991a8677' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7d009df5-58ed-4045-a528-cbbb991a8677_destroy' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a9cb930412364dc9809d70ce5c20ffd5' AND `account_users`.`account_id` = x'7d009df558ed4045a528cbbb991a8677' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0c5360cb2da445a49352ed7f17c3b9c7' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0c5360cb2da445a49352ed7f17c3b9c7' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a9cb930412364dc9809d70ce5c20ffd5' AND `accounts`.`id` = x'7d009df558ed4045a528cbbb991a8677' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'7d009df558ed4045a528cbbb991a8677' AND `account_domains`.`id` = x'31323431323331323431323331323334' LIMIT 1 Redirected to http://test.host/settings/account/7D009DF558ED4045A528CBBB991A8677/domains Completed 302 Found in 90ms (ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$iKXAnaDC6TOMmye8bA4CHO5YDEjPZfvZvRBIenbbsJW.9BgILLi0C', NULL, x'fc2d5dd95740479bab2538184fc88f81', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fc2d5dd95740479bab2538184fc88f81' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'62c173e1af9046ab8695b7a9a83cd235', '099cb6ec6cbc396fa37f921088570ad1', x'fc2d5dd95740479bab2538184fc88f81', 'User', '2012-12-31 12:45:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fc2d5dd95740479bab2538184fc88f81' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'89cdc7d944e44dfe9dbf0d661b965d92', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account89cdc7d9-44e4-4dfe-9dbf-0d661b965d92' WHERE `accounts`.`id` = x'89cdc7d944e44dfe9dbf0d661b965d92' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'89cdc7d944e44dfe9dbf0d661b965d92' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'89cdc7d944e44dfe9dbf0d661b965d92', x'5113564707d740b1b54da7eb94390b1d', x'fc2d5dd95740479bab2538184fc88f81') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5113564707d740b1b54da7eb94390b1d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5113564707d740b1b54da7eb94390b1d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5113564707d740b1b54da7eb94390b1d', x'fb7f8cab8847460ab40940f995ea0b70', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5113564707d740b1b54da7eb94390b1d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5113564707d740b1b54da7eb94390b1d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5113564707d740b1b54da7eb94390b1d', x'53bbedaf2ed742d7a04657ba80a27743', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fa706d0_f6180435d4879a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'65f81bb3715d43d88667afc6b4b74617', 'jabanilson', NULL, 1, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account65f81bb3-715d-43d8-8667-afc6b4b74617' WHERE `accounts`.`id` = x'65f81bb3715d43d88667afc6b4b74617'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'65f81bb3715d43d88667afc6b4b74617', x'3b93b925de174dcc9e345ed41af63ed8', x'fc2d5dd95740479bab2538184fc88f81') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3b93b925de174dcc9e345ed41af63ed8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b93b925de174dcc9e345ed41af63ed8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b93b925de174dcc9e345ed41af63ed8', x'ae24b6912cb14ee8ac678af76d668b70', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3b93b925de174dcc9e345ed41af63ed8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b93b925de174dcc9e345ed41af63ed8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b93b925de174dcc9e345ed41af63ed8', x'15a56bee552f4e4ba747d534311cac62', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fc2d5dd95740479bab2538184fc88f81' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fc2d5dd95740479bab2538184fc88f81' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fc2d5dd95740479bab2538184fc88f81' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'65f81bb3715d43d88667afc6b4b74617' AND `account_domains`.`url` = 'verify.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'65f81bb3715d43d88667afc6b4b74617', x'11d80551a1184eddbe1cd685209f70f6', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'65f81bb3715d43d88667afc6b4b74617' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"65F81BB3715D43D88667AFC6B4B74617", "domain_id"=>"1231241241231241231234"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fc2d5dd95740479bab2538184fc88f81' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'65f81bb3715d43d88667afc6b4b74617' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_65f81bb3-715d-43d8-8667-afc6b4b74617_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'fc2d5dd95740479bab2538184fc88f81' AND `account_users`.`account_id` = x'65f81bb3715d43d88667afc6b4b74617' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3b93b925de174dcc9e345ed41af63ed8' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3b93b925de174dcc9e345ed41af63ed8' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fc2d5dd95740479bab2538184fc88f81' AND `accounts`.`id` = x'65f81bb3715d43d88667afc6b4b74617' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'65f81bb3715d43d88667afc6b4b74617' AND `account_domains`.`id` = x'31323431323331323431323331323334' LIMIT 1 Redirected to http://test.host/settings/account/65F81BB3715D43D88667AFC6B4B74617/domains Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$80gJP2Gyyz1vJjRu1KvulufWGDvpaS1MKaHVn0x6MTiE8jctrIyzm', NULL, x'e8c7f5a0e33747c7ab0147e5f0ebaa7d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e8c7f5a0e33747c7ab0147e5f0ebaa7d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'a567b142942142e496fdbafbc660f1cd', '96dbb6d2ccb3feff279bfb08a4a063a9', x'e8c7f5a0e33747c7ab0147e5f0ebaa7d', 'User', '2012-12-31 12:45:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e8c7f5a0e33747c7ab0147e5f0ebaa7d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'07f97278f6e34446b7312681cb59134a', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account07f97278-f6e3-4446-b731-2681cb59134a' WHERE `accounts`.`id` = x'07f97278f6e34446b7312681cb59134a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07f97278f6e34446b7312681cb59134a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'07f97278f6e34446b7312681cb59134a', x'e69f82506bfc4a859606c5d51d5364d2', x'e8c7f5a0e33747c7ab0147e5f0ebaa7d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e69f82506bfc4a859606c5d51d5364d2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e69f82506bfc4a859606c5d51d5364d2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e69f82506bfc4a859606c5d51d5364d2', x'd6a5e91d623a4a96b7918c8dff258412', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e69f82506bfc4a859606c5d51d5364d2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e69f82506bfc4a859606c5d51d5364d2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e69f82506bfc4a859606c5d51d5364d2', x'b622a80cffaa489f9332e5e1096ddfbf', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fa866cd_f6180435d488098@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'26207d8b22dd47ab86ddc137305a9210', 'jabanilson', NULL, 1, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account26207d8b-22dd-47ab-86dd-c137305a9210' WHERE `accounts`.`id` = x'26207d8b22dd47ab86ddc137305a9210'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'26207d8b22dd47ab86ddc137305a9210', x'd6b6342445704212a95a6907abe36c69', x'e8c7f5a0e33747c7ab0147e5f0ebaa7d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd6b6342445704212a95a6907abe36c69') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd6b6342445704212a95a6907abe36c69' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd6b6342445704212a95a6907abe36c69', x'7ebf31d98d0c42e3a72133c5f0fc3796', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd6b6342445704212a95a6907abe36c69') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd6b6342445704212a95a6907abe36c69' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd6b6342445704212a95a6907abe36c69', x'7f6be95243a043da8d9f10e796315c0f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e8c7f5a0e33747c7ab0147e5f0ebaa7d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e8c7f5a0e33747c7ab0147e5f0ebaa7d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e8c7f5a0e33747c7ab0147e5f0ebaa7d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'26207d8b22dd47ab86ddc137305a9210' AND `account_domains`.`url` = 'primary.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'26207d8b22dd47ab86ddc137305a9210', x'41cf72dacdae4b4e8da4d49538bd2a08', NULL, 'primary.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'26207d8b22dd47ab86ddc137305a9210' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"26207D8B22DD47AB86DDC137305A9210", "domain_id"=>"41CF72DACDAE4B4E8DA4D49538BD2A08"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e8c7f5a0e33747c7ab0147e5f0ebaa7d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'26207d8b22dd47ab86ddc137305a9210' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_26207d8b-22dd-47ab-86dd-c137305a9210_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e8c7f5a0e33747c7ab0147e5f0ebaa7d' AND `account_users`.`account_id` = x'26207d8b22dd47ab86ddc137305a9210' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd6b6342445704212a95a6907abe36c69' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd6b6342445704212a95a6907abe36c69' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e8c7f5a0e33747c7ab0147e5f0ebaa7d' AND `accounts`.`id` = x'26207d8b22dd47ab86ddc137305a9210' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'26207d8b22dd47ab86ddc137305a9210' AND `account_domains`.`id` = x'41cf72dacdae4b4e8da4d49538bd2a08' LIMIT 1 Redirected to http://test.host/settings/account/26207D8B22DD47AB86DDC137305A9210/domains Completed 302 Found in 12ms (ActiveRecord: 2.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$GxwEr3rCP1.YWBG6knxnIONUVAyvWaE.L5nAhpg.IZS7B5CDWghKa', NULL, x'297993e340c54f73adc62400bdda00ad', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'297993e340c54f73adc62400bdda00ad' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'a358890e596a47f0a9cd1a41dbbd219d', '10fc98c983d837817b27c42c688435bb', x'297993e340c54f73adc62400bdda00ad', 'User', '2012-12-31 12:45:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'297993e340c54f73adc62400bdda00ad' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'16b5eb229ce946aa932696c861fc21a5', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account16b5eb22-9ce9-46aa-9326-96c861fc21a5' WHERE `accounts`.`id` = x'16b5eb229ce946aa932696c861fc21a5' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'16b5eb229ce946aa932696c861fc21a5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'16b5eb229ce946aa932696c861fc21a5', x'9162ba06bb284e3ca8517cc6e185ffbb', x'297993e340c54f73adc62400bdda00ad') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9162ba06bb284e3ca8517cc6e185ffbb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9162ba06bb284e3ca8517cc6e185ffbb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9162ba06bb284e3ca8517cc6e185ffbb', x'3198b9f81de3426695eded2baa0feab9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9162ba06bb284e3ca8517cc6e185ffbb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9162ba06bb284e3ca8517cc6e185ffbb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9162ba06bb284e3ca8517cc6e185ffbb', x'ceb141680f2747719e938d84c65ecd0b', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fa9d77c_f6180435d4881fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'bb3afaa15e36433f82dd0e11939952b6', 'jabanilson', NULL, 1, '2012-12-31 12:45:46')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'accountbb3afaa1-5e36-433f-82dd-0e11939952b6' WHERE `accounts`.`id` = x'bb3afaa15e36433f82dd0e11939952b6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bb3afaa15e36433f82dd0e11939952b6', x'5efcd67c213d4868b875670173137d03', x'297993e340c54f73adc62400bdda00ad') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5efcd67c213d4868b875670173137d03') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5efcd67c213d4868b875670173137d03' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5efcd67c213d4868b875670173137d03', x'bdc7fd3e2e024f8c94d85012d96afc6f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5efcd67c213d4868b875670173137d03') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5efcd67c213d4868b875670173137d03' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5efcd67c213d4868b875670173137d03', x'797c45779a0c4a848c4775400880ef26', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'297993e340c54f73adc62400bdda00ad' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'297993e340c54f73adc62400bdda00ad' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'297993e340c54f73adc62400bdda00ad' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bb3afaa15e36433f82dd0e11939952b6' AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bb3afaa15e36433f82dd0e11939952b6', x'60a0abce081f4c5eb46f65e89e4adba4', NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'bb3afaa15e36433f82dd0e11939952b6' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"BB3AFAA15E36433F82DD0E11939952B6", "domain_id"=>"60A0ABCE081F4C5EB46F65E89E4ADBA4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'297993e340c54f73adc62400bdda00ad' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bb3afaa15e36433f82dd0e11939952b6' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bb3afaa1-5e36-433f-82dd-0e11939952b6_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'297993e340c54f73adc62400bdda00ad' AND `account_users`.`account_id` = x'bb3afaa15e36433f82dd0e11939952b6' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5efcd67c213d4868b875670173137d03' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5efcd67c213d4868b875670173137d03' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'297993e340c54f73adc62400bdda00ad' AND `accounts`.`id` = x'bb3afaa15e36433f82dd0e11939952b6' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'bb3afaa15e36433f82dd0e11939952b6' AND `account_domains`.`id` = x'60a0abce081f4c5eb46f65e89e4adba4' LIMIT 1 Redirected to http://test.host/settings/account/BB3AFAA15E36433F82DD0E11939952B6/domains Completed 302 Found in 12ms (ActiveRecord: 2.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$gIagr.Vi6eR02IYAAJIQ/ewYSEpZbN0TcMF/OdYXU27vY4xqdh4tW', NULL, x'e7fe33b624de4d5ebed0e31a52fb4781', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e7fe33b624de4d5ebed0e31a52fb4781' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'8e915f6249d3443d8b7cbd9598ebce82', 'a045fd0f279ebb5559559350014a5667', x'e7fe33b624de4d5ebed0e31a52fb4781', 'User', '2012-12-31 12:45:46') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e7fe33b624de4d5ebed0e31a52fb4781' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'55dd40420b1548ec8e92fc5851d0fc0e', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account55dd4042-0b15-48ec-8e92-fc5851d0fc0e' WHERE `accounts`.`id` = x'55dd40420b1548ec8e92fc5851d0fc0e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'55dd40420b1548ec8e92fc5851d0fc0e' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'55dd40420b1548ec8e92fc5851d0fc0e', x'd99f0acfbbd64778b624cac0e198b410', x'e7fe33b624de4d5ebed0e31a52fb4781') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd99f0acfbbd64778b624cac0e198b410') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd99f0acfbbd64778b624cac0e198b410' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd99f0acfbbd64778b624cac0e198b410', x'030504323e6f4a5794ce0514333b0c73', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd99f0acfbbd64778b624cac0e198b410') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd99f0acfbbd64778b624cac0e198b410' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd99f0acfbbd64778b624cac0e198b410', x'031e9dae566649a19bda1bcf38c2c865', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fac7ec2_f6180435d4882cc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'd9c69a4a80fe4d169febb8183617dbae', 'jabanilson', NULL, 1, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'accountd9c69a4a-80fe-4d16-9feb-b8183617dbae' WHERE `accounts`.`id` = x'd9c69a4a80fe4d169febb8183617dbae'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd9c69a4a80fe4d169febb8183617dbae', x'96c0398d09e54e6cbcc26d082e0a8d70', x'e7fe33b624de4d5ebed0e31a52fb4781') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'96c0398d09e54e6cbcc26d082e0a8d70') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'96c0398d09e54e6cbcc26d082e0a8d70' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'96c0398d09e54e6cbcc26d082e0a8d70', x'2fb2b6a9d3684bafb038e9f14c8d461a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'96c0398d09e54e6cbcc26d082e0a8d70') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'96c0398d09e54e6cbcc26d082e0a8d70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'96c0398d09e54e6cbcc26d082e0a8d70', x'bc0254664450498ea61d72627fefd628', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e7fe33b624de4d5ebed0e31a52fb4781' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e7fe33b624de4d5ebed0e31a52fb4781' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e7fe33b624de4d5ebed0e31a52fb4781' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd9c69a4a80fe4d169febb8183617dbae' AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd9c69a4a80fe4d169febb8183617dbae', x'5163c98a91c949f0ac0fbf764cf3005d', NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd9c69a4a80fe4d169febb8183617dbae' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"D9C69A4A80FE4D169FEBB8183617DBAE", "domain_id"=>"1231241243141314"} User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e7fe33b624de4d5ebed0e31a52fb4781' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd9c69a4a80fe4d169febb8183617dbae' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d9c69a4a-80fe-4d16-9feb-b8183617dbae_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e7fe33b624de4d5ebed0e31a52fb4781' AND `account_users`.`account_id` = x'd9c69a4a80fe4d169febb8183617dbae' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'96c0398d09e54e6cbcc26d082e0a8d70' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'96c0398d09e54e6cbcc26d082e0a8d70' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e7fe33b624de4d5ebed0e31a52fb4781' AND `accounts`.`id` = x'd9c69a4a80fe4d169febb8183617dbae' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd9c69a4a80fe4d169febb8183617dbae' AND `account_domains`.`id` = x'31323331323431323433313431333134' LIMIT 1 Redirected to http://test.host/settings/account/D9C69A4A80FE4D169FEBB8183617DBAE/domains Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$6pd1fE6OndFiupjhwxyuqeWzRZRHj.w2/YpTlhaVX45yxd9uerdL.', NULL, x'ee25045cd2594a2fbd154a683b07592f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ee25045cd2594a2fbd154a683b07592f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'e80199b9d47f489dbfc43f5743859ac3', '33f95efb0fb315d912221c57e539982d', x'ee25045cd2594a2fbd154a683b07592f', 'User', '2012-12-31 12:45:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ee25045cd2594a2fbd154a683b07592f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'cef6661fb1c94a20a0832cc82d48dd60', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'accountcef6661f-b1c9-4a20-a083-2cc82d48dd60' WHERE `accounts`.`id` = x'cef6661fb1c94a20a0832cc82d48dd60' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cef6661fb1c94a20a0832cc82d48dd60' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cef6661fb1c94a20a0832cc82d48dd60', x'882d3b2219a04020b997be5962b47db7', x'ee25045cd2594a2fbd154a683b07592f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'882d3b2219a04020b997be5962b47db7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'882d3b2219a04020b997be5962b47db7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'882d3b2219a04020b997be5962b47db7', x'74a457d9263a44099dbffd7bf3a65cb0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'882d3b2219a04020b997be5962b47db7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'882d3b2219a04020b997be5962b47db7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'882d3b2219a04020b997be5962b47db7', x'65bbc7816ff4415ab0bee5557c2d8591', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:46 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fade112_f6180435d4883d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'6b1e20f8f4d74097976164d205f86cb8', 'jabanilson', NULL, 1, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'account6b1e20f8-f4d7-4097-9761-64d205f86cb8' WHERE `accounts`.`id` = x'6b1e20f8f4d74097976164d205f86cb8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6b1e20f8f4d74097976164d205f86cb8', x'64e85a2c1fc14dde9c8fd5f3f5ad6d31', x'ee25045cd2594a2fbd154a683b07592f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'64e85a2c1fc14dde9c8fd5f3f5ad6d31') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'64e85a2c1fc14dde9c8fd5f3f5ad6d31' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'64e85a2c1fc14dde9c8fd5f3f5ad6d31', x'11da831289e641acad1e260815901b5f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'64e85a2c1fc14dde9c8fd5f3f5ad6d31') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'64e85a2c1fc14dde9c8fd5f3f5ad6d31' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'64e85a2c1fc14dde9c8fd5f3f5ad6d31', x'47852256838a4ac797ba8ca1a8cc789b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ee25045cd2594a2fbd154a683b07592f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ee25045cd2594a2fbd154a683b07592f' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ee25045cd2594a2fbd154a683b07592f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'6b1e20f8f4d74097976164d205f86cb8' AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'6b1e20f8f4d74097976164d205f86cb8', x'c6e1e9272290409d81e583a4498eaa3d', NULL, 'primary.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6b1e20f8f4d74097976164d205f86cb8' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"6B1E20F8F4D74097976164D205F86CB8", "domain_id"=>"1231241243141314"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ee25045cd2594a2fbd154a683b07592f' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6b1e20f8f4d74097976164d205f86cb8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6b1e20f8-f4d7-4097-9761-64d205f86cb8_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ee25045cd2594a2fbd154a683b07592f' AND `account_users`.`account_id` = x'6b1e20f8f4d74097976164d205f86cb8' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'64e85a2c1fc14dde9c8fd5f3f5ad6d31' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'64e85a2c1fc14dde9c8fd5f3f5ad6d31' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ee25045cd2594a2fbd154a683b07592f' AND `accounts`.`id` = x'6b1e20f8f4d74097976164d205f86cb8' LIMIT 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6b1e20f8f4d74097976164d205f86cb8' AND `account_domains`.`id` = x'31323331323431323433313431333134' LIMIT 1 Redirected to http://test.host/settings/account/6B1E20F8F4D74097976164D205F86CB8/domains Completed 302 Found in 11ms (ActiveRecord: 1.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:46', 'teste@teste.com', '$2a$04$VIojm8D20FI.nftBfK0lvuXHUxbGb0tN9r/98HEN4RN6QZv1Smv8m', NULL, x'4f72ccfab30f44b495635e138256ccce', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:46') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4f72ccfab30f44b495635e138256ccce' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:46', 'User', x'9c2458f6e98946d8a643317b58507ed2', 'e619656ab99535fe0a1269fb12bc2590', x'4f72ccfab30f44b495635e138256ccce', 'User', '2012-12-31 12:45:46') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4f72ccfab30f44b495635e138256ccce' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:46', x'd6aafff3af3848809683ab108445c293', NULL, NULL, NULL, '2012-12-31 12:45:46')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:46', `updated_at` = '2012-12-31 12:45:46', `subdomain` = 'accountd6aafff3-af38-4880-9683-ab108445c293' WHERE `accounts`.`id` = x'd6aafff3af3848809683ab108445c293' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd6aafff3af3848809683ab108445c293' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd6aafff3af3848809683ab108445c293', x'1826fabae13d42d0a1fd46703f88d62f', x'4f72ccfab30f44b495635e138256ccce') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1826fabae13d42d0a1fd46703f88d62f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1826fabae13d42d0a1fd46703f88d62f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1826fabae13d42d0a1fd46703f88d62f', x'd883168ca2154d629ad4dfc14c102733', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1826fabae13d42d0a1fd46703f88d62f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1826fabae13d42d0a1fd46703f88d62f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1826fabae13d42d0a1fd46703f88d62f', x'5680b20cf98d4eef9496aee13fe82cbf', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fbc83_f6180435d48841a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'a5a1a753b10442c19ed03f4cc1361ac8', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'accounta5a1a753-b104-42c1-9ed0-3f4cc1361ac8' WHERE `accounts`.`id` = x'a5a1a753b10442c19ed03f4cc1361ac8'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a5a1a753b10442c19ed03f4cc1361ac8', x'eb311236dc9c46d9ac1e1012540db881', x'4f72ccfab30f44b495635e138256ccce') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eb311236dc9c46d9ac1e1012540db881') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb311236dc9c46d9ac1e1012540db881' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb311236dc9c46d9ac1e1012540db881', x'd0148eaee03743e0b8483545c422d930', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eb311236dc9c46d9ac1e1012540db881') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb311236dc9c46d9ac1e1012540db881' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb311236dc9c46d9ac1e1012540db881', x'ad8a5d4d3d49418d840675e21c746abe', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f72ccfab30f44b495635e138256ccce' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f72ccfab30f44b495635e138256ccce' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f72ccfab30f44b495635e138256ccce' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"A5A1A753B10442C19ED03F4CC1361AC8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4f72ccfab30f44b495635e138256ccce' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a5a1a753b10442c19ed03f4cc1361ac8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a5a1a753-b104-42c1-9ed0-3f4cc1361ac8_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4f72ccfab30f44b495635e138256ccce' AND `account_users`.`account_id` = x'a5a1a753b10442c19ed03f4cc1361ac8' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eb311236dc9c46d9ac1e1012540db881' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eb311236dc9c46d9ac1e1012540db881' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f72ccfab30f44b495635e138256ccce' AND `accounts`.`id` = x'a5a1a753b10442c19ed03f4cc1361ac8' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'a5a1a753b10442c19ed03f4cc1361ac8') LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:45:47' WHERE `accounts`.`id` = x'a5a1a753b10442c19ed03f4cc1361ac8'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/A5A1A753B10442C19ED03F4CC1361AC8/domains Completed 302 Found in 14ms (ActiveRecord: 2.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:47', 'teste@teste.com', '$2a$04$f4S/KT9yfgjWdiMpMiQfpucG2kXsTBfW1XG/evdq39VJuAsx1HJ4q', NULL, x'da832174587041adb2d7145af71dcb34', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'da832174587041adb2d7145af71dcb34' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:47', 'User', x'78c564aa13464f0695eb7e7211f5e5d6', 'c4c4b69dff7d6e14a10945d295738772', x'da832174587041adb2d7145af71dcb34', 'User', '2012-12-31 12:45:47') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'da832174587041adb2d7145af71dcb34' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'934079629c454266bd254ba79c0763c8', NULL, NULL, NULL, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account93407962-9c45-4266-bd25-4ba79c0763c8' WHERE `accounts`.`id` = x'934079629c454266bd254ba79c0763c8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'934079629c454266bd254ba79c0763c8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'934079629c454266bd254ba79c0763c8', x'3c278523fe714dd2814b5ab787517663', x'da832174587041adb2d7145af71dcb34') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c278523fe714dd2814b5ab787517663') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c278523fe714dd2814b5ab787517663' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c278523fe714dd2814b5ab787517663', x'087d5e15299b4f2db800cf19c581c9a9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c278523fe714dd2814b5ab787517663') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c278523fe714dd2814b5ab787517663' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c278523fe714dd2814b5ab787517663', x'93dd3031c6c4409e9f755c8cac01c8ae', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fb16d37_f6180435d4885e7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'f97a1cb783f64f5aa9c9a54284dbf3ba', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'accountf97a1cb7-83f6-4f5a-a9c9-a54284dbf3ba' WHERE `accounts`.`id` = x'f97a1cb783f64f5aa9c9a54284dbf3ba'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f97a1cb783f64f5aa9c9a54284dbf3ba', x'4c00280fd26f41adaf0f0412587bfc96', x'da832174587041adb2d7145af71dcb34') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4c00280fd26f41adaf0f0412587bfc96') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c00280fd26f41adaf0f0412587bfc96' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c00280fd26f41adaf0f0412587bfc96', x'123d4f9a735747f08e57886d992b2603', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4c00280fd26f41adaf0f0412587bfc96') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c00280fd26f41adaf0f0412587bfc96' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c00280fd26f41adaf0f0412587bfc96', x'1c89da0b19a04bb6ab05ad20da89ebeb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da832174587041adb2d7145af71dcb34' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da832174587041adb2d7145af71dcb34' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da832174587041adb2d7145af71dcb34' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"934079629C454266BD254BA79C0763C8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'da832174587041adb2d7145af71dcb34' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'934079629c454266bd254ba79c0763c8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_93407962-9c45-4266-bd25-4ba79c0763c8_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'da832174587041adb2d7145af71dcb34' AND `account_users`.`account_id` = x'934079629c454266bd254ba79c0763c8' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c278523fe714dd2814b5ab787517663' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c278523fe714dd2814b5ab787517663' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da832174587041adb2d7145af71dcb34' AND `accounts`.`id` = x'934079629c454266bd254ba79c0763c8' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'934079629c454266bd254ba79c0763c8') LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:45:47' WHERE `accounts`.`id` = x'934079629c454266bd254ba79c0763c8'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/934079629C454266BD254BA79C0763C8/domains Completed 302 Found in 14ms (ActiveRecord: 3.2ms)  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:47', 'teste@teste.com', '$2a$04$PwifkYGjWkBvcvFZIYY42Of7VZmrpgMp89RFofAXu0kWuew8FoEr6', NULL, x'eac78ff1930f4afb89e04497b564a4da', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'eac78ff1930f4afb89e04497b564a4da' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:47', 'User', x'447af80bd39840fbb27e720c3a6e247b', '46fd63a25fb5c05257ce50db20e2f90f', x'eac78ff1930f4afb89e04497b564a4da', 'User', '2012-12-31 12:45:47') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'eac78ff1930f4afb89e04497b564a4da' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'b2271c23bfcc48028c346566f3001d6a', NULL, NULL, NULL, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'accountb2271c23-bfcc-4802-8c34-6566f3001d6a' WHERE `accounts`.`id` = x'b2271c23bfcc48028c346566f3001d6a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b2271c23bfcc48028c346566f3001d6a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b2271c23bfcc48028c346566f3001d6a', x'8c3c5a98d0984465b86632de47adb062', x'eac78ff1930f4afb89e04497b564a4da') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8c3c5a98d0984465b86632de47adb062') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c3c5a98d0984465b86632de47adb062' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8c3c5a98d0984465b86632de47adb062', x'aaa46364115048339054bce74d06642d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8c3c5a98d0984465b86632de47adb062') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c3c5a98d0984465b86632de47adb062' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8c3c5a98d0984465b86632de47adb062', x'd26516221f0843e29401883c2bb0a090', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fb41247_f6180435d48863f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'81e810c7f6004a1d8d3c88355141fb94', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account81e810c7-f600-4a1d-8d3c-88355141fb94' WHERE `accounts`.`id` = x'81e810c7f6004a1d8d3c88355141fb94'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'81e810c7f6004a1d8d3c88355141fb94', x'75015ada80564a89ad247e73b76f0812', x'eac78ff1930f4afb89e04497b564a4da') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'75015ada80564a89ad247e73b76f0812') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'75015ada80564a89ad247e73b76f0812' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'75015ada80564a89ad247e73b76f0812', x'092b73305bb14ee89f30d7a5d55268e3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'75015ada80564a89ad247e73b76f0812') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'75015ada80564a89ad247e73b76f0812' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'75015ada80564a89ad247e73b76f0812', x'1c66f9ad8eaf471a8e68fe9f41d778f4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eac78ff1930f4afb89e04497b564a4da' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eac78ff1930f4afb89e04497b564a4da' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eac78ff1930f4afb89e04497b564a4da' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"81E810C7F6004A1D8D3C88355141FB94"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'eac78ff1930f4afb89e04497b564a4da' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'81e810c7f6004a1d8d3c88355141fb94' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_81e810c7-f600-4a1d-8d3c-88355141fb94_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'eac78ff1930f4afb89e04497b564a4da' AND `account_users`.`account_id` = x'81e810c7f6004a1d8d3c88355141fb94' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'75015ada80564a89ad247e73b76f0812' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'75015ada80564a89ad247e73b76f0812' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eac78ff1930f4afb89e04497b564a4da' AND `accounts`.`id` = x'81e810c7f6004a1d8d3c88355141fb94' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'81e810c7f6004a1d8d3c88355141fb94') LIMIT 1  (0.2ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2012-12-31 12:45:47' WHERE `accounts`.`id` = x'81e810c7f6004a1d8d3c88355141fb94'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/81E810C7F6004A1D8D3C88355141FB94/domains Completed 302 Found in 13ms (ActiveRecord: 2.6ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"81E810C7F6004A1D8D3C88355141FB94"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'81e810c7f6004a1d8d3c88355141fb94' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_81e810c7-f600-4a1d-8d3c-88355141fb94_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'eac78ff1930f4afb89e04497b564a4da' AND `account_users`.`account_id` = x'81e810c7f6004a1d8d3c88355141fb94' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'75015ada80564a89ad247e73b76f0812' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'75015ada80564a89ad247e73b76f0812' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eac78ff1930f4afb89e04497b564a4da' AND `accounts`.`id` = x'81e810c7f6004a1d8d3c88355141fb94' LIMIT 1 Completed 200 OK in 11ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:47', 'teste@teste.com', '$2a$04$DS2Fcr6i4tYBQihIA68pxeIP/cdiAZ8dBeNcsu0ZvPXj8t35dJU0W', NULL, x'45b83be8392e443fa2ada6998eecb09d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'45b83be8392e443fa2ada6998eecb09d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:47', 'User', x'f790439d2b4a4c98a341177cb3a2e545', '07ca170aca996c35753f1cd9a13abdaa', x'45b83be8392e443fa2ada6998eecb09d', 'User', '2012-12-31 12:45:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'45b83be8392e443fa2ada6998eecb09d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'5ab556f1fc6641f190a393eebdc2a239', NULL, NULL, NULL, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account5ab556f1-fc66-41f1-90a3-93eebdc2a239' WHERE `accounts`.`id` = x'5ab556f1fc6641f190a393eebdc2a239' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5ab556f1fc6641f190a393eebdc2a239' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5ab556f1fc6641f190a393eebdc2a239', x'6e1e08b75f56490c99034c342f86845a', x'45b83be8392e443fa2ada6998eecb09d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6e1e08b75f56490c99034c342f86845a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e1e08b75f56490c99034c342f86845a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e1e08b75f56490c99034c342f86845a', x'a709d9b6b0bd41c294e929af17653e30', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6e1e08b75f56490c99034c342f86845a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e1e08b75f56490c99034c342f86845a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e1e08b75f56490c99034c342f86845a', x'b7e17cff8e644a0a9bf3ab76e6cd1c53', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fb5ab5a_f6180435d4887a0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'322e2dd30b7444faba1514f495fc8a57', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account322e2dd3-0b74-44fa-ba15-14f495fc8a57' WHERE `accounts`.`id` = x'322e2dd30b7444faba1514f495fc8a57'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'322e2dd30b7444faba1514f495fc8a57', x'4779cba6ab504f4f9cda3adc9d095854', x'45b83be8392e443fa2ada6998eecb09d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4779cba6ab504f4f9cda3adc9d095854') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4779cba6ab504f4f9cda3adc9d095854' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4779cba6ab504f4f9cda3adc9d095854', x'4071025385fe4e80aec3588a257380d9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4779cba6ab504f4f9cda3adc9d095854') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4779cba6ab504f4f9cda3adc9d095854' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4779cba6ab504f4f9cda3adc9d095854', x'a7fa712b45e94e15984413799683329a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45b83be8392e443fa2ada6998eecb09d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45b83be8392e443fa2ada6998eecb09d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45b83be8392e443fa2ada6998eecb09d' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"322E2DD30B7444FABA1514F495FC8A57"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'45b83be8392e443fa2ada6998eecb09d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'322e2dd30b7444faba1514f495fc8a57' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_322e2dd3-0b74-44fa-ba15-14f495fc8a57_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'45b83be8392e443fa2ada6998eecb09d' AND `account_users`.`account_id` = x'322e2dd30b7444faba1514f495fc8a57' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4779cba6ab504f4f9cda3adc9d095854' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4779cba6ab504f4f9cda3adc9d095854' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:47', 'teste@teste.com', '$2a$04$tH2WIcVqzDakDLgG.WS4SeBL58u18zkFI49Fde48HX8e.7hYu3zPe', NULL, x'3e730d8a5ff04d14984ea664b0cfa00f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:47') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3e730d8a5ff04d14984ea664b0cfa00f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:47', 'User', x'46e48f750905446fb0ca0d3fb45175d3', 'f68a28c8cf983e3e5233ed2fea1ef097', x'3e730d8a5ff04d14984ea664b0cfa00f', 'User', '2012-12-31 12:45:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3e730d8a5ff04d14984ea664b0cfa00f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'92c816d1dee14ab092c443b94f07c71b', NULL, NULL, NULL, '2012-12-31 12:45:47')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account92c816d1-dee1-4ab0-92c4-43b94f07c71b' WHERE `accounts`.`id` = x'92c816d1dee14ab092c443b94f07c71b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'92c816d1dee14ab092c443b94f07c71b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'92c816d1dee14ab092c443b94f07c71b', x'dc9b1997435147b08baec9d0f66e8067', x'3e730d8a5ff04d14984ea664b0cfa00f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dc9b1997435147b08baec9d0f66e8067') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dc9b1997435147b08baec9d0f66e8067' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dc9b1997435147b08baec9d0f66e8067', x'1cddbfc691bd40908c9d9534d85a9df1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dc9b1997435147b08baec9d0f66e8067') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dc9b1997435147b08baec9d0f66e8067' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dc9b1997435147b08baec9d0f66e8067', x'a4ef192df5bf44f588af1b802391e88d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fb6e6c6_f6180435d48887e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'22b55980797b4ea3be7e55613ff1f864', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account22b55980-797b-4ea3-be7e-55613ff1f864' WHERE `accounts`.`id` = x'22b55980797b4ea3be7e55613ff1f864'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'22b55980797b4ea3be7e55613ff1f864', x'86178d505fc84069919da4207b2913d7', x'3e730d8a5ff04d14984ea664b0cfa00f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'86178d505fc84069919da4207b2913d7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86178d505fc84069919da4207b2913d7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86178d505fc84069919da4207b2913d7', x'e7029b9766e94f6282a76527f38a4cd6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'86178d505fc84069919da4207b2913d7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86178d505fc84069919da4207b2913d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86178d505fc84069919da4207b2913d7', x'29b4331c292349e68dc8ecb17c10873d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e730d8a5ff04d14984ea664b0cfa00f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e730d8a5ff04d14984ea664b0cfa00f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e730d8a5ff04d14984ea664b0cfa00f' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"22B55980797B4EA3BE7E55613FF1F864"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3e730d8a5ff04d14984ea664b0cfa00f' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'22b55980797b4ea3be7e55613ff1f864' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22b55980-797b-4ea3-be7e-55613ff1f864_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:47', 'teste@teste.com', '$2a$04$2XpekBUQiBsr3TfpUkC3d.Xvzxq1UP9D3wOcJSPC2mfRPlnWbZeXe', NULL, x'4071efbb27f74305aff91d5b68f4fed7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4071efbb27f74305aff91d5b68f4fed7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:47', 'User', x'07fdbaf7bd584b7b83fd8a34eaba590c', '10881148506e8dea0ebe2a7ea8733678', x'4071efbb27f74305aff91d5b68f4fed7', 'User', '2012-12-31 12:45:47') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4071efbb27f74305aff91d5b68f4fed7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'bad1fd153b084869bb5f717006d51b9e', NULL, NULL, NULL, '2012-12-31 12:45:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'accountbad1fd15-3b08-4869-bb5f-717006d51b9e' WHERE `accounts`.`id` = x'bad1fd153b084869bb5f717006d51b9e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bad1fd153b084869bb5f717006d51b9e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bad1fd153b084869bb5f717006d51b9e', x'7c9df027d28e4cb59bce1fe4f4c09dd6', x'4071efbb27f74305aff91d5b68f4fed7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7c9df027d28e4cb59bce1fe4f4c09dd6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c9df027d28e4cb59bce1fe4f4c09dd6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c9df027d28e4cb59bce1fe4f4c09dd6', x'f3526558a0ee4e11992e4cbfad92f638', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7c9df027d28e4cb59bce1fe4f4c09dd6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c9df027d28e4cb59bce1fe4f4c09dd6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c9df027d28e4cb59bce1fe4f4c09dd6', x'aea9b67d93ea4ed38c4050f311d2e8b5', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fb96585_f6180435d4889d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'bb9fbe14ff1b46e6b4db6c6b1817ad1d', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'accountbb9fbe14-ff1b-46e6-b4db-6c6b1817ad1d' WHERE `accounts`.`id` = x'bb9fbe14ff1b46e6b4db6c6b1817ad1d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bb9fbe14ff1b46e6b4db6c6b1817ad1d', x'bb2b6eb0c32d4ae0ad7a87ce5feaf17b', x'4071efbb27f74305aff91d5b68f4fed7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bb2b6eb0c32d4ae0ad7a87ce5feaf17b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb2b6eb0c32d4ae0ad7a87ce5feaf17b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb2b6eb0c32d4ae0ad7a87ce5feaf17b', x'b2875ece3f244993bc487f74f8fd39d7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bb2b6eb0c32d4ae0ad7a87ce5feaf17b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb2b6eb0c32d4ae0ad7a87ce5feaf17b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb2b6eb0c32d4ae0ad7a87ce5feaf17b', x'b2cfadce54cb4bc1b1ebfe760c036259', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4071efbb27f74305aff91d5b68f4fed7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4071efbb27f74305aff91d5b68f4fed7' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4071efbb27f74305aff91d5b68f4fed7' LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"BAD1FD153B084869BB5F717006D51B9E", "domain_id"=>"1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4071efbb27f74305aff91d5b68f4fed7' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bad1fd153b084869bb5f717006d51b9e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bad1fd15-3b08-4869-bb5f-717006d51b9e_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:47', 'teste@teste.com', '$2a$04$g83RLWt0n3ncY7aaJ/sRe.kpqy2KEsumUycGnwVDslb6OYHxFmriC', NULL, x'2d2efe7fdaba41d988a98d5e7610e434', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2d2efe7fdaba41d988a98d5e7610e434' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:47', 'User', x'21705195c3d4497c858e84b44f3dad9f', '9a03bf2a59a776be6d288d86e7f0f169', x'2d2efe7fdaba41d988a98d5e7610e434', 'User', '2012-12-31 12:45:47') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2d2efe7fdaba41d988a98d5e7610e434' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'd356f32e318745128ba8af80cacad888', NULL, NULL, NULL, '2012-12-31 12:45:47')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'accountd356f32e-3187-4512-8ba8-af80cacad888' WHERE `accounts`.`id` = x'd356f32e318745128ba8af80cacad888' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd356f32e318745128ba8af80cacad888' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd356f32e318745128ba8af80cacad888', x'aa58b061c0e84b9fa432633d6a347d3a', x'2d2efe7fdaba41d988a98d5e7610e434') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aa58b061c0e84b9fa432633d6a347d3a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa58b061c0e84b9fa432633d6a347d3a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa58b061c0e84b9fa432633d6a347d3a', x'07c82f5d4f9a488a94e6aabdb282a3af', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aa58b061c0e84b9fa432633d6a347d3a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa58b061c0e84b9fa432633d6a347d3a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa58b061c0e84b9fa432633d6a347d3a', x'aef0bf7c25834b5b91990f2167c541a8', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fba8ad0_f6180435d48906d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'96752996ab954cae8f3a02c8b5415ff9', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account96752996-ab95-4cae-8f3a-02c8b5415ff9' WHERE `accounts`.`id` = x'96752996ab954cae8f3a02c8b5415ff9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'96752996ab954cae8f3a02c8b5415ff9', x'1ed5c998bf304c40bc039d5e32c65211', x'2d2efe7fdaba41d988a98d5e7610e434') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1ed5c998bf304c40bc039d5e32c65211') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1ed5c998bf304c40bc039d5e32c65211' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1ed5c998bf304c40bc039d5e32c65211', x'50471a09ce4d48ce9449e6b99ed7d2f1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1ed5c998bf304c40bc039d5e32c65211') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1ed5c998bf304c40bc039d5e32c65211' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1ed5c998bf304c40bc039d5e32c65211', x'84b9b82944d6482a8354b3913ea35aea', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2d2efe7fdaba41d988a98d5e7610e434' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2d2efe7fdaba41d988a98d5e7610e434' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2d2efe7fdaba41d988a98d5e7610e434' LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"96752996AB954CAE8F3A02C8B5415FF9"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2d2efe7fdaba41d988a98d5e7610e434' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'96752996ab954cae8f3a02c8b5415ff9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_96752996-ab95-4cae-8f3a-02c8b5415ff9_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2d2efe7fdaba41d988a98d5e7610e434' AND `account_users`.`account_id` = x'96752996ab954cae8f3a02c8b5415ff9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1ed5c998bf304c40bc039d5e32c65211' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1ed5c998bf304c40bc039d5e32c65211' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:47', 'teste@teste.com', '$2a$04$XnoX5UUxDaONGma6yi9/FeBfVnLo.4v8vz5pxuY6Y1T/4D7A9vpXS', NULL, x'a8cfb52306234b1fac2d618042890ba0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:47') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a8cfb52306234b1fac2d618042890ba0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:47', 'User', x'c17ef492bdd04a938cb998a7277cfddd', '7c96d7ab8e3ffc1e583b98b25b688345', x'a8cfb52306234b1fac2d618042890ba0', 'User', '2012-12-31 12:45:47') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a8cfb52306234b1fac2d618042890ba0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'684e0a42130b48a3b07b1db32f0838a0', NULL, NULL, NULL, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account684e0a42-130b-48a3-b07b-1db32f0838a0' WHERE `accounts`.`id` = x'684e0a42130b48a3b07b1db32f0838a0' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'684e0a42130b48a3b07b1db32f0838a0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'684e0a42130b48a3b07b1db32f0838a0', x'732a4e2833004b429aa32f9b1081c20d', x'a8cfb52306234b1fac2d618042890ba0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'732a4e2833004b429aa32f9b1081c20d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'732a4e2833004b429aa32f9b1081c20d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'732a4e2833004b429aa32f9b1081c20d', x'42801f7ebdae450db8134e8c9b4d9465', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'732a4e2833004b429aa32f9b1081c20d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'732a4e2833004b429aa32f9b1081c20d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'732a4e2833004b429aa32f9b1081c20d', x'0658fe1b414c40998150f4e26fdcaae4', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fbbcd9c_f6180435d4891b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'de3ddfc43e19451d9bbec1b5edba623d', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'accountde3ddfc4-3e19-451d-9bbe-c1b5edba623d' WHERE `accounts`.`id` = x'de3ddfc43e19451d9bbec1b5edba623d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'de3ddfc43e19451d9bbec1b5edba623d', x'5aac7fb6eef244628ca3a9005baba55c', x'a8cfb52306234b1fac2d618042890ba0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5aac7fb6eef244628ca3a9005baba55c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5aac7fb6eef244628ca3a9005baba55c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5aac7fb6eef244628ca3a9005baba55c', x'873152633dc5460da2d6a21237615687', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5aac7fb6eef244628ca3a9005baba55c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5aac7fb6eef244628ca3a9005baba55c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5aac7fb6eef244628ca3a9005baba55c', x'0dc758602553448aa1ac90572727124d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8cfb52306234b1fac2d618042890ba0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8cfb52306234b1fac2d618042890ba0' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a8cfb52306234b1fac2d618042890ba0' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5aac7fb6eef244628ca3a9005baba55c'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0dc758602553448aa1ac90572727124d' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5aac7fb6eef244628ca3a9005baba55c' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Þ=ßÄ>E›¾Áµíºb=' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5aac7fb6eef244628ca3a9005baba55c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5aac7fb6eef244628ca3a9005baba55c' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'de3ddfc43e19451d9bbec1b5edba623d' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a8cfb52306234b1fac2d618042890ba0' LIMIT 1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"de3ddfc4-3e19-451d-9bbe-c1b5edba623d", "user_id"=>"a8cfb523-0623-4b1f-ac2d-618042890ba0"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a8cfb52306234b1fac2d618042890ba0' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a8cfb52306234b1fac2d618042890ba0' AND `account_users`.`account_id` = x'de3ddfc43e19451d9bbec1b5edba623d' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5aac7fb6eef244628ca3a9005baba55c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5aac7fb6eef244628ca3a9005baba55c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8cfb52306234b1fac2d618042890ba0' AND `accounts`.`id` = x'de3ddfc43e19451d9bbec1b5edba623d' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'de3ddfc43e19451d9bbec1b5edba623d' AND `account_users`.`user_id` = x'a8cfb52306234b1fac2d618042890ba0' LIMIT 1 Completed 200 OK in 14ms (Views: 3.5ms | ActiveRecord: 1.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:47', 'teste@teste.com', '$2a$04$n1E3o6Uwnqfdr2K0QgxgtepktYlaiM2D7jSYciy5wQRHOVfvN5ZN6', NULL, x'ec3bf33bd5be473084dd0ab59773f480', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:47') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ec3bf33bd5be473084dd0ab59773f480' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:47', 'User', x'2605b05959bf4757bf207e1fb386fea8', '85d73f0cd35db9eceff814a755002f83', x'ec3bf33bd5be473084dd0ab59773f480', 'User', '2012-12-31 12:45:47') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ec3bf33bd5be473084dd0ab59773f480' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'8aa0002172e049b8b34c8e5eefb3eefb', NULL, NULL, NULL, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account8aa00021-72e0-49b8-b34c-8e5eefb3eefb' WHERE `accounts`.`id` = x'8aa0002172e049b8b34c8e5eefb3eefb' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8aa0002172e049b8b34c8e5eefb3eefb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8aa0002172e049b8b34c8e5eefb3eefb', x'58a070a3a81b4968abd31b7d8095d0cc', x'ec3bf33bd5be473084dd0ab59773f480') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'58a070a3a81b4968abd31b7d8095d0cc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'58a070a3a81b4968abd31b7d8095d0cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'58a070a3a81b4968abd31b7d8095d0cc', x'424358ca4aaa425ba4f00b3f32beb96a', 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'58a070a3a81b4968abd31b7d8095d0cc') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'58a070a3a81b4968abd31b7d8095d0cc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'58a070a3a81b4968abd31b7d8095d0cc', x'0eea909696ea4d47a4ab5a0c15d525f6', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:47 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fbea182_f6180435d489270@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:47', x'059ccc5227a642f594464bc155763d7e', 'jabanilson', NULL, 1, '2012-12-31 12:45:47')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:47', `updated_at` = '2012-12-31 12:45:47', `subdomain` = 'account059ccc52-27a6-42f5-9446-4bc155763d7e' WHERE `accounts`.`id` = x'059ccc5227a642f594464bc155763d7e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'059ccc5227a642f594464bc155763d7e', x'8cfb776b04ea4b28af596a9de1f69c35', x'ec3bf33bd5be473084dd0ab59773f480') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8cfb776b04ea4b28af596a9de1f69c35') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cfb776b04ea4b28af596a9de1f69c35' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cfb776b04ea4b28af596a9de1f69c35', x'544c300d0729463f81f145e9ab5c2d61', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8cfb776b04ea4b28af596a9de1f69c35') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cfb776b04ea4b28af596a9de1f69c35' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cfb776b04ea4b28af596a9de1f69c35', x'81d13a9507c64d11a5985c797005933a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec3bf33bd5be473084dd0ab59773f480' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec3bf33bd5be473084dd0ab59773f480' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ec3bf33bd5be473084dd0ab59773f480' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'58a070a3a81b4968abd31b7d8095d0cc'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0eea909696ea4d47a4ab5a0c15d525f6' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'58a070a3a81b4968abd31b7d8095d0cc' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'58a070a3a81b4968abd31b7d8095d0cc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'58a070a3a81b4968abd31b7d8095d0cc' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8aa0002172e049b8b34c8e5eefb3eefb' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ec3bf33bd5be473084dd0ab59773f480' LIMIT 1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"8aa00021-72e0-49b8-b34c-8e5eefb3eefb", "user_id"=>"ec3bf33b-d5be-4730-84dd-0ab59773f480"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ec3bf33bd5be473084dd0ab59773f480' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ec3bf33bd5be473084dd0ab59773f480' AND `account_users`.`account_id` = x'8aa0002172e049b8b34c8e5eefb3eefb' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'58a070a3a81b4968abd31b7d8095d0cc' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'58a070a3a81b4968abd31b7d8095d0cc' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec3bf33bd5be473084dd0ab59773f480' AND `accounts`.`id` = x'8aa0002172e049b8b34c8e5eefb3eefb' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8aa0002172e049b8b34c8e5eefb3eefb' AND `account_users`.`user_id` = x'ec3bf33bd5be473084dd0ab59773f480' LIMIT 1 Completed 200 OK in 11ms (Views: 1.8ms | ActiveRecord: 2.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'teste@teste.com', '$2a$04$KiH3ME9tz8LCEYTa4pWUseKC/xWjSkh01W1w9D2hgI7s4VsmrJZP2', NULL, x'82dab7bf9be1478b965fc4262b13f89e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'82dab7bf9be1478b965fc4262b13f89e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'dbc8a9ec97444b6ca8791ce90ed6a664', '2cbb431112a5b8e4cbe9da23753ccc4a', x'82dab7bf9be1478b965fc4262b13f89e', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'82dab7bf9be1478b965fc4262b13f89e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'03caf891eac94979b5379a0752ef25f8', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account03caf891-eac9-4979-b537-9a0752ef25f8' WHERE `accounts`.`id` = x'03caf891eac94979b5379a0752ef25f8' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'03caf891eac94979b5379a0752ef25f8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'03caf891eac94979b5379a0752ef25f8', x'4fa71ddc85ee439394339f46f6366238', x'82dab7bf9be1478b965fc4262b13f89e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4fa71ddc85ee439394339f46f6366238') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4fa71ddc85ee439394339f46f6366238' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4fa71ddc85ee439394339f46f6366238', x'7da313118ca247a697347a15bcf70284', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4fa71ddc85ee439394339f46f6366238') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4fa71ddc85ee439394339f46f6366238' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4fa71ddc85ee439394339f46f6366238', x'054e5eabbb9b48129ccc8c180684dbe2', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fcd837_f6180435d48938b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'07f0e5eb0c01422c97c7a8fe32b501e1', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account07f0e5eb-0c01-422c-97c7-a8fe32b501e1' WHERE `accounts`.`id` = x'07f0e5eb0c01422c97c7a8fe32b501e1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'07f0e5eb0c01422c97c7a8fe32b501e1', x'74ba015d18294684a074b4845410dbd1', x'82dab7bf9be1478b965fc4262b13f89e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'74ba015d18294684a074b4845410dbd1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74ba015d18294684a074b4845410dbd1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74ba015d18294684a074b4845410dbd1', x'e51f3f581b6e4b0bae512c4cde6fa590', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'74ba015d18294684a074b4845410dbd1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74ba015d18294684a074b4845410dbd1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74ba015d18294684a074b4845410dbd1', x'3bed460682c140ea8d384a9bba7f5e98', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82dab7bf9be1478b965fc4262b13f89e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82dab7bf9be1478b965fc4262b13f89e' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'82dab7bf9be1478b965fc4262b13f89e' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'03caf891eac94979b5379a0752ef25f8' LIMIT 1 Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"03caf891-eac9-4979-b537-9a0752ef25f8", "user_id"=>"82dab7bf-9be1-478b-965f-c4262b13f89e"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'82dab7bf9be1478b965fc4262b13f89e' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'82dab7bf9be1478b965fc4262b13f89e' AND `account_users`.`account_id` = x'03caf891eac94979b5379a0752ef25f8' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4fa71ddc85ee439394339f46f6366238' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4fa71ddc85ee439394339f46f6366238' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82dab7bf9be1478b965fc4262b13f89e' AND `accounts`.`id` = x'03caf891eac94979b5379a0752ef25f8' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'03caf891eac94979b5379a0752ef25f8' AND `account_users`.`user_id` = x'82dab7bf9be1478b965fc4262b13f89e' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4fa71ddc85ee439394339f46f6366238'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'054e5eabbb9b48129ccc8c180684dbe2' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4fa71ddc85ee439394339f46f6366238' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Êø‘êÉIyµ7šRï%ø' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/03caf891-eac9-4979-b537-9a0752ef25f8/users Completed 302 Found in 15ms (ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'a3ae0df4c7ac4ad9af1f6c9ee2590ac7', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accounta3ae0df4-c7ac-4ad9-af1f-6c9ee2590ac7' WHERE `accounts`.`id` = x'a3ae0df4c7ac4ad9af1f6c9ee2590ac7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'teste@teste.com', '$2a$04$9gfEKquA7fmUijXc8AkukuOQ1liVwc/dC5pW2yL69LJcRFAagX8Pe', NULL, x'8038de292b4149e5b488de7e09bd25a3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8038de292b4149e5b488de7e09bd25a3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'84a8254e768546fd947d4155ba4ec7d9', 'd63ced52a79a9fb03892645421ffae76', x'8038de292b4149e5b488de7e09bd25a3', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8038de292b4149e5b488de7e09bd25a3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'c907890800d24fcb9a6b39d9ed1c925c', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accountc9078908-00d2-4fcb-9a6b-39d9ed1c925c' WHERE `accounts`.`id` = x'c907890800d24fcb9a6b39d9ed1c925c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c907890800d24fcb9a6b39d9ed1c925c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c907890800d24fcb9a6b39d9ed1c925c', x'66c43a675c3b4b869bd41ac03e0cd897', x'8038de292b4149e5b488de7e09bd25a3') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'66c43a675c3b4b869bd41ac03e0cd897') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66c43a675c3b4b869bd41ac03e0cd897' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66c43a675c3b4b869bd41ac03e0cd897', x'983b962d233947f3bdf439a8b528869f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'66c43a675c3b4b869bd41ac03e0cd897') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66c43a675c3b4b869bd41ac03e0cd897' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66c43a675c3b4b869bd41ac03e0cd897', x'c573c375ea93461bbe0ccd05e90a23b0', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fc25938_f6180435d48945d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'763a8604ea844fa5b43e178cf7a37e25', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account763a8604-ea84-4fa5-b43e-178cf7a37e25' WHERE `accounts`.`id` = x'763a8604ea844fa5b43e178cf7a37e25'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'763a8604ea844fa5b43e178cf7a37e25', x'1d5013fdf2e64102bccceb5cae6d1a7a', x'8038de292b4149e5b488de7e09bd25a3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1d5013fdf2e64102bccceb5cae6d1a7a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1d5013fdf2e64102bccceb5cae6d1a7a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1d5013fdf2e64102bccceb5cae6d1a7a', x'ef09abaa17f9489fbf74f0a8b5567f2e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1d5013fdf2e64102bccceb5cae6d1a7a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1d5013fdf2e64102bccceb5cae6d1a7a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1d5013fdf2e64102bccceb5cae6d1a7a', x'cb7a3cddedab4b8caea7e5f2e6222adf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8038de292b4149e5b488de7e09bd25a3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8038de292b4149e5b488de7e09bd25a3' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:48', NULL, '--- !ruby/struct:DestroyAccountJob\nid: a3ae0df4-c7ac-4ad9-af1f-6c9ee2590ac7\n', NULL, NULL, NULL, 0, 'account_a3ae0df4-c7ac-4ad9-af1f-6c9ee2590ac7_destroy', '2012-12-31 12:45:48', '2012-12-31 12:45:48')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"A3AE0DF4C7AC4AD9AF1F6C9EE2590AC7"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8038de292b4149e5b488de7e09bd25a3' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a3ae0df4c7ac4ad9af1f6c9ee2590ac7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a3ae0df4-c7ac-4ad9-af1f-6c9ee2590ac7_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 15ms (Views: 10.3ms | ActiveRecord: 0.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'eb8e0643118c4efcad79cf283a7d838f', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accounteb8e0643-118c-4efc-ad79-cf283a7d838f' WHERE `accounts`.`id` = x'eb8e0643118c4efcad79cf283a7d838f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'teste@teste.com', '$2a$04$oZzW8gUaps0Ts234GFqQve5jhN1hArSPv96mI6cltWzXn7NkvQeSe', NULL, x'30570dce89904a15931cfdbf413396e0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'30570dce89904a15931cfdbf413396e0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'7bb5d74f5d3a409cb1413112eb44a4f7', '028cc9c434342936476eaa3e97a5757d', x'30570dce89904a15931cfdbf413396e0', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'30570dce89904a15931cfdbf413396e0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'd5d9cd6f1e1a468e8f3291e506ec4c81', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accountd5d9cd6f-1e1a-468e-8f32-91e506ec4c81' WHERE `accounts`.`id` = x'd5d9cd6f1e1a468e8f3291e506ec4c81' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd5d9cd6f1e1a468e8f3291e506ec4c81' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd5d9cd6f1e1a468e8f3291e506ec4c81', x'ab297617428f40229261203e429b776b', x'30570dce89904a15931cfdbf413396e0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ab297617428f40229261203e429b776b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab297617428f40229261203e429b776b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab297617428f40229261203e429b776b', x'0b7ff5938b7e40ecaa44f1d844baae48', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ab297617428f40229261203e429b776b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab297617428f40229261203e429b776b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab297617428f40229261203e429b776b', x'43e4e9cec1464c66bb468fa9a9cdf842', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fc53018_f6180435d4895a6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'd3870d21e8d544e4965536a000c510ae', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accountd3870d21-e8d5-44e4-9655-36a000c510ae' WHERE `accounts`.`id` = x'd3870d21e8d544e4965536a000c510ae'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd3870d21e8d544e4965536a000c510ae', x'2070192e8f6d49fb917c8eaf7e205a89', x'30570dce89904a15931cfdbf413396e0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2070192e8f6d49fb917c8eaf7e205a89') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2070192e8f6d49fb917c8eaf7e205a89' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2070192e8f6d49fb917c8eaf7e205a89', x'ffca9949fe834128b85f60374e318514', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2070192e8f6d49fb917c8eaf7e205a89') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2070192e8f6d49fb917c8eaf7e205a89' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2070192e8f6d49fb917c8eaf7e205a89', x'79905de0b6e44bfd9d9161c02de2f1f9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'30570dce89904a15931cfdbf413396e0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'30570dce89904a15931cfdbf413396e0' LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"EB8E0643118C4EFCAD79CF283A7D838F"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'30570dce89904a15931cfdbf413396e0' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eb8e0643118c4efcad79cf283a7d838f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_eb8e0643-118c-4efc-ad79-cf283a7d838f_destroy' LIMIT 1 Completed 200 OK in 21ms (Views: 17.3ms | ActiveRecord: 0.7ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'teste@teste.com', '$2a$04$xHQmpEuJBFf5bv65LhVjLuqC.6t.UXkMjBTY2/mPcbN4uGK28C4ce', NULL, x'b6e1f993758a490e997ffabc7fffcdc5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b6e1f993758a490e997ffabc7fffcdc5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'ee7e168ccd3f4b24b810a029613fdc86', '23397c06b78c8719f82adef07b357a54', x'b6e1f993758a490e997ffabc7fffcdc5', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b6e1f993758a490e997ffabc7fffcdc5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'11f90cc564f34e25b99e3dbd9361f36c', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account11f90cc5-64f3-4e25-b99e-3dbd9361f36c' WHERE `accounts`.`id` = x'11f90cc564f34e25b99e3dbd9361f36c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'11f90cc564f34e25b99e3dbd9361f36c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'11f90cc564f34e25b99e3dbd9361f36c', x'f162d558479642c486b7b513ada7c1ea', x'b6e1f993758a490e997ffabc7fffcdc5') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f162d558479642c486b7b513ada7c1ea') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f162d558479642c486b7b513ada7c1ea' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f162d558479642c486b7b513ada7c1ea', x'36d307534f6449e29babd6f87f983951', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f162d558479642c486b7b513ada7c1ea') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f162d558479642c486b7b513ada7c1ea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f162d558479642c486b7b513ada7c1ea', x'5252eaf4b23d42d3ad7d4779e9ecd926', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fc6b422_f6180435d4896a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'9b31b7e66b8448c6bc99875c6be8abc2', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account9b31b7e6-6b84-48c6-bc99-875c6be8abc2' WHERE `accounts`.`id` = x'9b31b7e66b8448c6bc99875c6be8abc2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9b31b7e66b8448c6bc99875c6be8abc2', x'aa76b0a585b84ce98a16d418f9d3f86f', x'b6e1f993758a490e997ffabc7fffcdc5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aa76b0a585b84ce98a16d418f9d3f86f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa76b0a585b84ce98a16d418f9d3f86f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa76b0a585b84ce98a16d418f9d3f86f', x'4e44110d20da46b297e8f7a3ef00bc66', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aa76b0a585b84ce98a16d418f9d3f86f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa76b0a585b84ce98a16d418f9d3f86f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa76b0a585b84ce98a16d418f9d3f86f', x'ecdc6e6765df4302b28fbe5389a31183', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b6e1f993758a490e997ffabc7fffcdc5' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b6e1f993758a490e997ffabc7fffcdc5' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b6e1f993758a490e997ffabc7fffcdc5' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"9B31B7E66B8448C6BC99875C6BE8ABC2"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b6e1f993758a490e997ffabc7fffcdc5' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9b31b7e66b8448c6bc99875c6be8abc2' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_9b31b7e6-6b84-48c6-bc99-875c6be8abc2_destroy' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9b31b7e66b8448c6bc99875c6be8abc2' LIMIT 1 Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 1.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'teste@teste.com', '$2a$04$ZarPkvYaPEZ62NGoPLiRP.ZmtQWIGqlHRvNy8GqdiQ6oBzn7EGDAS', NULL, x'943aa8a88fbe4583bda6a7f11033f00a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'943aa8a88fbe4583bda6a7f11033f00a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'bcea9415eb3a47c7ba3420712f097fb3', '436b9c38caf7d1af54938609a9adb9c7', x'943aa8a88fbe4583bda6a7f11033f00a', 'User', '2012-12-31 12:45:48') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'943aa8a88fbe4583bda6a7f11033f00a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'ace99177b2f14590bce963f8d4190ec3', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accountace99177-b2f1-4590-bce9-63f8d4190ec3' WHERE `accounts`.`id` = x'ace99177b2f14590bce963f8d4190ec3' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ace99177b2f14590bce963f8d4190ec3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ace99177b2f14590bce963f8d4190ec3', x'5f11bca960134add9dab2ba0d3e7ab66', x'943aa8a88fbe4583bda6a7f11033f00a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5f11bca960134add9dab2ba0d3e7ab66') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f11bca960134add9dab2ba0d3e7ab66' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f11bca960134add9dab2ba0d3e7ab66', x'6baaa368555b4acbadff7acf111fe08e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5f11bca960134add9dab2ba0d3e7ab66') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f11bca960134add9dab2ba0d3e7ab66' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f11bca960134add9dab2ba0d3e7ab66', x'4c4ed98f402a413fb0b6d12deffb3416', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fc7fd86_f6180435d489751@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'a9c9f120547f4ed6912f51587136aa12', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accounta9c9f120-547f-4ed6-912f-51587136aa12' WHERE `accounts`.`id` = x'a9c9f120547f4ed6912f51587136aa12'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a9c9f120547f4ed6912f51587136aa12', x'e0acbbc8090346d2b6733d369355952a', x'943aa8a88fbe4583bda6a7f11033f00a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e0acbbc8090346d2b6733d369355952a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e0acbbc8090346d2b6733d369355952a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e0acbbc8090346d2b6733d369355952a', x'08dd21aeb972450c984fc588634776e1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e0acbbc8090346d2b6733d369355952a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e0acbbc8090346d2b6733d369355952a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e0acbbc8090346d2b6733d369355952a', x'd8d6f758c85840b580f0c68d3cc2258d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'943aa8a88fbe4583bda6a7f11033f00a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'943aa8a88fbe4583bda6a7f11033f00a' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'943aa8a88fbe4583bda6a7f11033f00a' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"ACE99177B2F14590BCE963F8D4190EC3"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'943aa8a88fbe4583bda6a7f11033f00a' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ace99177b2f14590bce963f8d4190ec3' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ace99177-b2f1-4590-bce9-63f8d4190ec3_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ace99177b2f14590bce963f8d4190ec3' LIMIT 1 Completed 200 OK in 6ms (Views: 1.8ms | ActiveRecord: 0.9ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'943aa8a88fbe4583bda6a7f11033f00a' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"ACE99177B2F14590BCE963F8D4190EC3"} Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ace99177b2f14590bce963f8d4190ec3' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ace99177-b2f1-4590-bce9-63f8d4190ec3_destroy' LIMIT 1 Completed 404 Not Found in 2ms  (0.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'teste@teste.com', '$2a$04$ivO57D5ecpG3lsyVUtINSOcn7RKNo/BAAPs0qeh3Dg98FZ736m05m', NULL, x'd95a57d3446d49909c18ffce4c1e5150', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd95a57d3446d49909c18ffce4c1e5150' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'52ac3ded4c064db0bcc4a50ebfc1a84c', 'cfab80aa8abb664ef5eb98a0db057da7', x'd95a57d3446d49909c18ffce4c1e5150', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd95a57d3446d49909c18ffce4c1e5150' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'b0793251e6e74de7b66f382dbe9ec94e', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accountb0793251-e6e7-4de7-b66f-382dbe9ec94e' WHERE `accounts`.`id` = x'b0793251e6e74de7b66f382dbe9ec94e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b0793251e6e74de7b66f382dbe9ec94e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b0793251e6e74de7b66f382dbe9ec94e', x'3760dcaf5a914960b00763dcbc32135a', x'd95a57d3446d49909c18ffce4c1e5150') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3760dcaf5a914960b00763dcbc32135a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3760dcaf5a914960b00763dcbc32135a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3760dcaf5a914960b00763dcbc32135a', x'29d58d38f15a4307a4bb354968fb1d9c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3760dcaf5a914960b00763dcbc32135a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3760dcaf5a914960b00763dcbc32135a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3760dcaf5a914960b00763dcbc32135a', x'4a58da3a3cce48c69a41d61dfe46aff3', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fca86eb_f6180435d48989b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'8313ed0a6f4142a384574984c0b67af6', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account8313ed0a-6f41-42a3-8457-4984c0b67af6' WHERE `accounts`.`id` = x'8313ed0a6f4142a384574984c0b67af6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8313ed0a6f4142a384574984c0b67af6', x'1f1e3273f9fe47a69d305e979555da82', x'd95a57d3446d49909c18ffce4c1e5150') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1f1e3273f9fe47a69d305e979555da82') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1f1e3273f9fe47a69d305e979555da82' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1f1e3273f9fe47a69d305e979555da82', x'53cba62a137948c49f5c635d0036ad8e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1f1e3273f9fe47a69d305e979555da82') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1f1e3273f9fe47a69d305e979555da82' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1f1e3273f9fe47a69d305e979555da82', x'27419102acda4578a22d4c1b8cf2847e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd95a57d3446d49909c18ffce4c1e5150' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd95a57d3446d49909c18ffce4c1e5150' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd95a57d3446d49909c18ffce4c1e5150' LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"8313ED0A6F4142A384574984C0B67AF6", "user_id"=>"D95A57D3446D49909C18FFCE4C1E5150"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd95a57d3446d49909c18ffce4c1e5150' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8313ed0a6f4142a384574984c0b67af6' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8313ed0a-6f41-42a3-8457-4984c0b67af6_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8313ed0a6f4142a384574984c0b67af6' AND `account_users`.`user_id` = x'd95a57d3446d49909c18ffce4c1e5150' LIMIT 1 Completed 200 OK in 8ms (Views: 2.6ms | ActiveRecord: 0.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'teste@teste.com', '$2a$04$FhW7wXhmjqzvs94VWKCGLumpN3ilu9oGKXT.QVmrMK4EljVA2EWjG', NULL, x'fe98a4f284c241d98008ba8bb4aff032', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fe98a4f284c241d98008ba8bb4aff032' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'f108bc03486144999f364ddaed1205b8', '0c89d63436d5caa83d3a094e08aed4f1', x'fe98a4f284c241d98008ba8bb4aff032', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fe98a4f284c241d98008ba8bb4aff032' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'4d8a37372b0b426c80fe8e7dc2d85df4', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account4d8a3737-2b0b-426c-80fe-8e7dc2d85df4' WHERE `accounts`.`id` = x'4d8a37372b0b426c80fe8e7dc2d85df4' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d8a37372b0b426c80fe8e7dc2d85df4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4d8a37372b0b426c80fe8e7dc2d85df4', x'ab6ab9e9d0804f009129b6dc5b69aeea', x'fe98a4f284c241d98008ba8bb4aff032') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ab6ab9e9d0804f009129b6dc5b69aeea') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab6ab9e9d0804f009129b6dc5b69aeea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab6ab9e9d0804f009129b6dc5b69aeea', x'7eae3d8461444fdfa3b51bdc286471e2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ab6ab9e9d0804f009129b6dc5b69aeea') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab6ab9e9d0804f009129b6dc5b69aeea' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab6ab9e9d0804f009129b6dc5b69aeea', x'e3c273e15e39410e97f9dba48845e5e3', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fcbc641_f6180435d48993b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'8a4419f5d0be404ab214a8455e7bb643', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account8a4419f5-d0be-404a-b214-a8455e7bb643' WHERE `accounts`.`id` = x'8a4419f5d0be404ab214a8455e7bb643'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a4419f5d0be404ab214a8455e7bb643', x'207bd0a545fd40e7b0447a15298f188a', x'fe98a4f284c241d98008ba8bb4aff032') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'207bd0a545fd40e7b0447a15298f188a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'207bd0a545fd40e7b0447a15298f188a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'207bd0a545fd40e7b0447a15298f188a', x'ba097f63126045d995f91535cc39f2ee', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'207bd0a545fd40e7b0447a15298f188a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'207bd0a545fd40e7b0447a15298f188a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'207bd0a545fd40e7b0447a15298f188a', x'63bc263f283341f79ebbfbe74a67cbf5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fe98a4f284c241d98008ba8bb4aff032' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fe98a4f284c241d98008ba8bb4aff032' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fe98a4f284c241d98008ba8bb4aff032' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'targetdestroy@teste.teste', '$2a$04$QbCHeIHacEQodfZn60utlu1ECYi7G0g2CzCJLi/2/kLG8k0Z6a7Dq', NULL, x'6cc556b5f19c4a77a463eaa4dc13e771', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6cc556b5f19c4a77a463eaa4dc13e771' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'fc49adc73c764127a77656fdc6c02d22', 'c970eb72b9723dee628cd4ed920808a1', x'6cc556b5f19c4a77a463eaa4dc13e771', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6cc556b5f19c4a77a463eaa4dc13e771' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'869f06c3abd342d3aeba6231ba2669b5', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account869f06c3-abd3-42d3-aeba-6231ba2669b5' WHERE `accounts`.`id` = x'869f06c3abd342d3aeba6231ba2669b5' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'869f06c3abd342d3aeba6231ba2669b5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'869f06c3abd342d3aeba6231ba2669b5', x'd5456fb4f1a647dfb27d8dfa4c37320a', x'6cc556b5f19c4a77a463eaa4dc13e771') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd5456fb4f1a647dfb27d8dfa4c37320a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd5456fb4f1a647dfb27d8dfa4c37320a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd5456fb4f1a647dfb27d8dfa4c37320a', x'64599cb407e844ecac9cfd3aee4d7c1e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd5456fb4f1a647dfb27d8dfa4c37320a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd5456fb4f1a647dfb27d8dfa4c37320a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd5456fb4f1a647dfb27d8dfa4c37320a', x'7584cec9f4974d8ca457e9ea1f6f48e7', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e188fcccf9a_f6180435d48100a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8a4419f5d0be404ab214a8455e7bb643' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a4419f5d0be404ab214a8455e7bb643', x'e1865736c13449af971240b3eb920e3d', x'6cc556b5f19c4a77a463eaa4dc13e771') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e1865736c13449af971240b3eb920e3d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1865736c13449af971240b3eb920e3d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1865736c13449af971240b3eb920e3d', x'0ffac2e9c8e8442f9be110ed29b6f6c3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e1865736c13449af971240b3eb920e3d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1865736c13449af971240b3eb920e3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1865736c13449af971240b3eb920e3d', x'dff6d37c95b147f0be87a7891a8a0bba', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"6CC556B5F19C4A77A463EAA4DC13E771"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fe98a4f284c241d98008ba8bb4aff032' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31383932373331383932333731323733' LIMIT 1 Completed 404 Not Found in 3ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'teste@teste.com', '$2a$04$fs32PdFWZglNCrIi0kUNXedJN/0cjY7HECYYW0Uf98BiOOUPAs8US', NULL, x'b8670513a20441d2b981780b88d3abbc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b8670513a20441d2b981780b88d3abbc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'0d8eb224eab84b238ea42e1c14289e8e', 'a9f8384625759940d186d9214faaa208', x'b8670513a20441d2b981780b88d3abbc', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b8670513a20441d2b981780b88d3abbc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'484e31cd3af9407b9fda1c557538e683', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account484e31cd-3af9-407b-9fda-1c557538e683' WHERE `accounts`.`id` = x'484e31cd3af9407b9fda1c557538e683' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'484e31cd3af9407b9fda1c557538e683' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'484e31cd3af9407b9fda1c557538e683', x'c32f337619de417f816896dc4354d20c', x'b8670513a20441d2b981780b88d3abbc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c32f337619de417f816896dc4354d20c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c32f337619de417f816896dc4354d20c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c32f337619de417f816896dc4354d20c', x'fc477323542448318d31ea9d210fa910', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c32f337619de417f816896dc4354d20c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c32f337619de417f816896dc4354d20c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c32f337619de417f816896dc4354d20c', x'c0c1a6add0f347219927bb1d3a45cc64', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:48 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fcde936_f6180435d48101f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'c4097a14e42b42fe86d0ac5a5af09d2e', 'jabanilson', NULL, 1, '2012-12-31 12:45:48')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'accountc4097a14-e42b-42fe-86d0-ac5a5af09d2e' WHERE `accounts`.`id` = x'c4097a14e42b42fe86d0ac5a5af09d2e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c4097a14e42b42fe86d0ac5a5af09d2e', x'1b8d460b7b9a498189fee54af647a61f', x'b8670513a20441d2b981780b88d3abbc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1b8d460b7b9a498189fee54af647a61f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b8d460b7b9a498189fee54af647a61f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b8d460b7b9a498189fee54af647a61f', x'94b53a98e97646738082afb0c2d0cc6d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1b8d460b7b9a498189fee54af647a61f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b8d460b7b9a498189fee54af647a61f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b8d460b7b9a498189fee54af647a61f', x'ef96f5f2b4cf42edaac486823f5d8f83', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b8670513a20441d2b981780b88d3abbc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b8670513a20441d2b981780b88d3abbc' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b8670513a20441d2b981780b88d3abbc' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:48', 'targetdestroy@teste.teste', '$2a$04$dq./Y4bA.78lK4lVNY9jtO.mUCLMZG8E/q6tO6utA41VJUM2VZZRu', NULL, x'6442384936774aff98504b0e632994e0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:48') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6442384936774aff98504b0e632994e0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:48', 'User', x'12b57cbb247f475f9fd59a9d1841fcbe', '1a3b69d764f4c81c6e43d2caa786a153', x'6442384936774aff98504b0e632994e0', 'User', '2012-12-31 12:45:48') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6442384936774aff98504b0e632994e0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:48', x'8203836d4e574ed28da7c13ec06273d4', NULL, NULL, NULL, '2012-12-31 12:45:48')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:48', `updated_at` = '2012-12-31 12:45:48', `subdomain` = 'account8203836d-4e57-4ed2-8da7-c13ec06273d4' WHERE `accounts`.`id` = x'8203836d4e574ed28da7c13ec06273d4' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8203836d4e574ed28da7c13ec06273d4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8203836d4e574ed28da7c13ec06273d4', x'e034338b0a8349ff813ad3272e195045', x'6442384936774aff98504b0e632994e0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e034338b0a8349ff813ad3272e195045') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e034338b0a8349ff813ad3272e195045' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e034338b0a8349ff813ad3272e195045', x'1d3e955611bb447e8a05c9eed9055375', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e034338b0a8349ff813ad3272e195045') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e034338b0a8349ff813ad3272e195045' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e034338b0a8349ff813ad3272e195045', x'6d95d517d2314241a9aca87a37336f7d', 'admin') Sent mail to targetdestroy@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e188fded74_f6180435d481023c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c4097a14e42b42fe86d0ac5a5af09d2e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c4097a14e42b42fe86d0ac5a5af09d2e', x'656b947153224a03bc2c9b8afb3ed97b', x'6442384936774aff98504b0e632994e0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'656b947153224a03bc2c9b8afb3ed97b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'656b947153224a03bc2c9b8afb3ed97b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'656b947153224a03bc2c9b8afb3ed97b', x'a741d933880345fc9847c6e8fa74bf79', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'656b947153224a03bc2c9b8afb3ed97b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'656b947153224a03bc2c9b8afb3ed97b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'656b947153224a03bc2c9b8afb3ed97b', x'3e81304048f147c08c2dd614fbde7e45', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"C4097A14E42B42FE86D0AC5A5AF09D2E", "user_id"=>"18237198237192837"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b8670513a20441d2b981780b88d3abbc' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c4097a14e42b42fe86d0ac5a5af09d2e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c4097a14-e42b-42fe-86d0-ac5a5af09d2e_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b8670513a20441d2b981780b88d3abbc' AND `account_users`.`account_id` = x'c4097a14e42b42fe86d0ac5a5af09d2e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b8d460b7b9a498189fee54af647a61f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b8d460b7b9a498189fee54af647a61f' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c4097a14e42b42fe86d0ac5a5af09d2e' AND `account_users`.`user_id` = x'38323337313938323337313932383337' LIMIT 1 Completed 404 Not Found in 9ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'teste@teste.com', '$2a$04$GPuyLKas61zCs5qbJVFOcO1Y.ZZrIQinh9syoqKE8aWghCwG.C6aO', NULL, x'd47e0ff5f4c0409daeb5a9984905b245', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd47e0ff5f4c0409daeb5a9984905b245' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'72f63b6520334d4cbbd05a8bb8b0b0de', 'e2ddafca32abcbf59c103d5ea60826a1', x'd47e0ff5f4c0409daeb5a9984905b245', 'User', '2012-12-31 12:45:49') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd47e0ff5f4c0409daeb5a9984905b245' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'da46b8502b8b4863a5ea00961c1c1ed1', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'accountda46b850-2b8b-4863-a5ea-00961c1c1ed1' WHERE `accounts`.`id` = x'da46b8502b8b4863a5ea00961c1c1ed1' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da46b8502b8b4863a5ea00961c1c1ed1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'da46b8502b8b4863a5ea00961c1c1ed1', x'6a13ba4f351c47a98f350dfd031b1885', x'd47e0ff5f4c0409daeb5a9984905b245') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6a13ba4f351c47a98f350dfd031b1885') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6a13ba4f351c47a98f350dfd031b1885' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6a13ba4f351c47a98f350dfd031b1885', x'605fe08d66784e4bbdd2211f24e10c4c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6a13ba4f351c47a98f350dfd031b1885') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6a13ba4f351c47a98f350dfd031b1885' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6a13ba4f351c47a98f350dfd031b1885', x'169324a117c24d9da05a16b417c875a6', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fd222dc_f6180435d48103e0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'e1c619b5bcdd44a58526290238f45650', 'jabanilson', NULL, 1, '2012-12-31 12:45:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'accounte1c619b5-bcdd-44a5-8526-290238f45650' WHERE `accounts`.`id` = x'e1c619b5bcdd44a58526290238f45650'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e1c619b5bcdd44a58526290238f45650', x'3155b0ca39f5493ca03e16639f8e9adf', x'd47e0ff5f4c0409daeb5a9984905b245') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3155b0ca39f5493ca03e16639f8e9adf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3155b0ca39f5493ca03e16639f8e9adf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3155b0ca39f5493ca03e16639f8e9adf', x'2eb5f40e93864c86a5d6319230d764a7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3155b0ca39f5493ca03e16639f8e9adf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3155b0ca39f5493ca03e16639f8e9adf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3155b0ca39f5493ca03e16639f8e9adf', x'ad99a6257dc54c009992755743bf180f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd47e0ff5f4c0409daeb5a9984905b245' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd47e0ff5f4c0409daeb5a9984905b245' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd47e0ff5f4c0409daeb5a9984905b245' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'targetdestroy@teste.teste', '$2a$04$J4JxyD.r2jmenRrL3juhP.uRzOdhiZjsHoUv7u6RNGhDJNxClc9uC', NULL, x'9c9bace448804d23ac710f976bd1bc51', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9c9bace448804d23ac710f976bd1bc51' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'1395dccdf2bb441ea957f8fb4d06cb4a', 'cdea65a3d82ecf4a87a5c1c07b71a9a0', x'9c9bace448804d23ac710f976bd1bc51', 'User', '2012-12-31 12:45:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9c9bace448804d23ac710f976bd1bc51' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'7e81eb08ee0b473380bc9f6e123cefe3', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account7e81eb08-ee0b-4733-80bc-9f6e123cefe3' WHERE `accounts`.`id` = x'7e81eb08ee0b473380bc9f6e123cefe3' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7e81eb08ee0b473380bc9f6e123cefe3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7e81eb08ee0b473380bc9f6e123cefe3', x'1603481916584a8e9fe892e6d64e9e0e', x'9c9bace448804d23ac710f976bd1bc51') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1603481916584a8e9fe892e6d64e9e0e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1603481916584a8e9fe892e6d64e9e0e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1603481916584a8e9fe892e6d64e9e0e', x'5ed6dd6a4dfa4642b458e86e16c7c705', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1603481916584a8e9fe892e6d64e9e0e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1603481916584a8e9fe892e6d64e9e0e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1603481916584a8e9fe892e6d64e9e0e', x'322ead342a4540b0a1890ab478f79615', 'admin') Sent mail to targetdestroy@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e188fd328bd_f6180435d481042f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da46b8502b8b4863a5ea00961c1c1ed1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'da46b8502b8b4863a5ea00961c1c1ed1', x'01e56e8b05034323b35410e4ffd983d7', x'9c9bace448804d23ac710f976bd1bc51') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'01e56e8b05034323b35410e4ffd983d7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01e56e8b05034323b35410e4ffd983d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01e56e8b05034323b35410e4ffd983d7', x'd2f0a345762f42c58e7140fc6bc3f9d9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'01e56e8b05034323b35410e4ffd983d7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01e56e8b05034323b35410e4ffd983d7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01e56e8b05034323b35410e4ffd983d7', x'de017f6df9204428a4b7a1ca8fe4be0d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'01e56e8b05034323b35410e4ffd983d7'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01e56e8b05034323b35410e4ffd983d7' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd2f0a345762f42c58e7140fc6bc3f9d9' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'de017f6df9204428a4b7a1ca8fe4be0d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'01e56e8b05034323b35410e4ffd983d7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01e56e8b05034323b35410e4ffd983d7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01e56e8b05034323b35410e4ffd983d7', x'7d55dd1682f84091ab7b5cbdbf16fecd', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"DA46B8502B8B4863A5EA00961C1C1ED1", "user_id"=>"9C9BACE448804D23AC710F976BD1BC51"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd47e0ff5f4c0409daeb5a9984905b245' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da46b8502b8b4863a5ea00961c1c1ed1' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_da46b850-2b8b-4863-a5ea-00961c1c1ed1_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd47e0ff5f4c0409daeb5a9984905b245' AND `account_users`.`account_id` = x'da46b8502b8b4863a5ea00961c1c1ed1' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6a13ba4f351c47a98f350dfd031b1885' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6a13ba4f351c47a98f350dfd031b1885' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'da46b8502b8b4863a5ea00961c1c1ed1' AND `account_users`.`user_id` = x'9c9bace448804d23ac710f976bd1bc51' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da46b8502b8b4863a5ea00961c1c1ed1' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9c9bace448804d23ac710f976bd1bc51' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'01e56e8b05034323b35410e4ffd983d7' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:49', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 01e56e8b-0503-4323-b354-10e4ffd983d7\n', NULL, NULL, NULL, 0, 'account_user_01e56e8b-0503-4323-b354-10e4ffd983d7_destroy', '2012-12-31 12:45:49', '2012-12-31 12:45:49')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_01e56e8b-0503-4323-b354-10e4ffd983d7_destroy' LIMIT 1 Redirected to http://test.host/settings/account/DA46B8502B8B4863A5EA00961C1C1ED1/users Completed 302 Found in 20ms (ActiveRecord: 3.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'teste@teste.com', '$2a$04$XEw.pxrgZoVLh2y.e3LsD.6ofnIREHzQBRHdN9myzK1Og2M.j51Fa', NULL, x'3ee071f07c6148b5ae41ea37af3ff14d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3ee071f07c6148b5ae41ea37af3ff14d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'73e2806671bf495282fd9840255fedfb', 'a9ca80b7f854ecc1bec30ec12ccef3ec', x'3ee071f07c6148b5ae41ea37af3ff14d', 'User', '2012-12-31 12:45:49') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3ee071f07c6148b5ae41ea37af3ff14d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'1038fcb059d5458bafdc74eb3e22ba11', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account1038fcb0-59d5-458b-afdc-74eb3e22ba11' WHERE `accounts`.`id` = x'1038fcb059d5458bafdc74eb3e22ba11' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1038fcb059d5458bafdc74eb3e22ba11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1038fcb059d5458bafdc74eb3e22ba11', x'6eb0b13b369349d0b04a3afa46d88f23', x'3ee071f07c6148b5ae41ea37af3ff14d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6eb0b13b369349d0b04a3afa46d88f23') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6eb0b13b369349d0b04a3afa46d88f23' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6eb0b13b369349d0b04a3afa46d88f23', x'8a4dce52b0ed45c98d1b6ade5cf8f726', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6eb0b13b369349d0b04a3afa46d88f23') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6eb0b13b369349d0b04a3afa46d88f23' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6eb0b13b369349d0b04a3afa46d88f23', x'03e29a14b6f74531bb4604fa637367d9', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fd4a554_f6180435d4810540@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'39c1b20fc2a04fb2b1672fe13e00efdf', 'jabanilson', NULL, 1, '2012-12-31 12:45:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account39c1b20f-c2a0-4fb2-b167-2fe13e00efdf' WHERE `accounts`.`id` = x'39c1b20fc2a04fb2b1672fe13e00efdf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'39c1b20fc2a04fb2b1672fe13e00efdf', x'3c5cab3b86d942b9ba280d90c1c3cb0f', x'3ee071f07c6148b5ae41ea37af3ff14d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c5cab3b86d942b9ba280d90c1c3cb0f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c5cab3b86d942b9ba280d90c1c3cb0f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c5cab3b86d942b9ba280d90c1c3cb0f', x'2d201789321a4491894b95e5a508386c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c5cab3b86d942b9ba280d90c1c3cb0f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c5cab3b86d942b9ba280d90c1c3cb0f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c5cab3b86d942b9ba280d90c1c3cb0f', x'104d4371ebc24dd1be081968e825c7e0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3ee071f07c6148b5ae41ea37af3ff14d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3ee071f07c6148b5ae41ea37af3ff14d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3ee071f07c6148b5ae41ea37af3ff14d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'targetdestroy@teste.teste', '$2a$04$5vJ12Fh7/HM/R6IJPj9jd.b4cohrUzcalWLlOFslAvtVyE6tLdPA.', NULL, x'ef7a97e9702b48a990c31064f1f1df90', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ef7a97e9702b48a990c31064f1f1df90' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'4393d5e2f27349b688fe92fc76d063e0', '1d4c63501c41e43d1f6d588d23d53161', x'ef7a97e9702b48a990c31064f1f1df90', 'User', '2012-12-31 12:45:49') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ef7a97e9702b48a990c31064f1f1df90' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'fd25092a4a3f4db4a6b0f7e2aced9ba0', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'accountfd25092a-4a3f-4db4-a6b0-f7e2aced9ba0' WHERE `accounts`.`id` = x'fd25092a4a3f4db4a6b0f7e2aced9ba0' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fd25092a4a3f4db4a6b0f7e2aced9ba0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fd25092a4a3f4db4a6b0f7e2aced9ba0', x'7a3e74d87ef649dcb1f5f3621705c75a', x'ef7a97e9702b48a990c31064f1f1df90') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7a3e74d87ef649dcb1f5f3621705c75a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a3e74d87ef649dcb1f5f3621705c75a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a3e74d87ef649dcb1f5f3621705c75a', x'5a608fee551b43f89cacfd88cb46b8df', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7a3e74d87ef649dcb1f5f3621705c75a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a3e74d87ef649dcb1f5f3621705c75a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a3e74d87ef649dcb1f5f3621705c75a', x'97487f32e1eb4815bc3a13eab9a38554', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e188fd6f3ce_f6180435d48106ac@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'39c1b20fc2a04fb2b1672fe13e00efdf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'39c1b20fc2a04fb2b1672fe13e00efdf', x'0214c25295994e0ba11a4378a2021e15', x'ef7a97e9702b48a990c31064f1f1df90') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0214c25295994e0ba11a4378a2021e15') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0214c25295994e0ba11a4378a2021e15' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0214c25295994e0ba11a4378a2021e15', x'd0ed1bfc57044057b9cfc27080d4677f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0214c25295994e0ba11a4378a2021e15') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0214c25295994e0ba11a4378a2021e15' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0214c25295994e0ba11a4378a2021e15', x'9ba9bea0c8294681a49c265c610d5338', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0214c25295994e0ba11a4378a2021e15'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9ba9bea0c8294681a49c265c610d5338' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0214c25295994e0ba11a4378a2021e15' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd0ed1bfc57044057b9cfc27080d4677f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0214c25295994e0ba11a4378a2021e15') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0214c25295994e0ba11a4378a2021e15' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0214c25295994e0ba11a4378a2021e15', x'88af0393f014493daef591b0b29a0be8', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"39C1B20FC2A04FB2B1672FE13E00EFDF", "user_id"=>"EF7A97E9702B48A990C31064F1F1DF90"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3ee071f07c6148b5ae41ea37af3ff14d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'39c1b20fc2a04fb2b1672fe13e00efdf' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_39c1b20f-c2a0-4fb2-b167-2fe13e00efdf_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3ee071f07c6148b5ae41ea37af3ff14d' AND `account_users`.`account_id` = x'39c1b20fc2a04fb2b1672fe13e00efdf' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c5cab3b86d942b9ba280d90c1c3cb0f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c5cab3b86d942b9ba280d90c1c3cb0f' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'39c1b20fc2a04fb2b1672fe13e00efdf' AND `account_users`.`user_id` = x'ef7a97e9702b48a990c31064f1f1df90' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'39c1b20fc2a04fb2b1672fe13e00efdf' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ef7a97e9702b48a990c31064f1f1df90' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0214c25295994e0ba11a4378a2021e15' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 12ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'teste@teste.com', '$2a$04$YPBoCjTv4FGm8kpg4g5rAeWdmXaghME0LdS0CG.bgm.rkL9QxJ6Xq', NULL, x'c3269f03a967445794bcfcb9afb5357c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c3269f03a967445794bcfcb9afb5357c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'545daf283552470e910a731cc9a45e5f', '7c6fec5f3e9497bda3791e988088f97c', x'c3269f03a967445794bcfcb9afb5357c', 'User', '2012-12-31 12:45:49') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c3269f03a967445794bcfcb9afb5357c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'93d4764abf034a6195967b2f533d1238', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account93d4764a-bf03-4a61-9596-7b2f533d1238' WHERE `accounts`.`id` = x'93d4764abf034a6195967b2f533d1238' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'93d4764abf034a6195967b2f533d1238' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'93d4764abf034a6195967b2f533d1238', x'493c64377f6d4ea8bf407dce123da686', x'c3269f03a967445794bcfcb9afb5357c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'493c64377f6d4ea8bf407dce123da686') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'493c64377f6d4ea8bf407dce123da686' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'493c64377f6d4ea8bf407dce123da686', x'c40c0fea365f4615bf758529aaee6d74', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'493c64377f6d4ea8bf407dce123da686') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'493c64377f6d4ea8bf407dce123da686' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'493c64377f6d4ea8bf407dce123da686', x'ca5fcd6f96894ac5a685fb0e764aef0d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fd85504_f6180435d481077b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'c2c0769126334bb58b6a291a7931357f', 'jabanilson', NULL, 1, '2012-12-31 12:45:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'accountc2c07691-2633-4bb5-8b6a-291a7931357f' WHERE `accounts`.`id` = x'c2c0769126334bb58b6a291a7931357f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c2c0769126334bb58b6a291a7931357f', x'14113f82f72044b68e36171281b86384', x'c3269f03a967445794bcfcb9afb5357c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'14113f82f72044b68e36171281b86384') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'14113f82f72044b68e36171281b86384' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'14113f82f72044b68e36171281b86384', x'fdf614e87256459787d1aefd21bda9c5', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'14113f82f72044b68e36171281b86384') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'14113f82f72044b68e36171281b86384' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'14113f82f72044b68e36171281b86384', x'5e600473ecbe4e36ad0688e3a7b1d0c4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c3269f03a967445794bcfcb9afb5357c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c3269f03a967445794bcfcb9afb5357c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c3269f03a967445794bcfcb9afb5357c' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'targetdestroy@teste.teste', '$2a$04$tEzCwplqFCG.epH2jClqh.7LFkaaB8.i1NIbSitvCRlI/bCFGt9MG', NULL, x'c311c1cd2a0f42d9a8b3c0e26987c092', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c311c1cd2a0f42d9a8b3c0e26987c092' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'e54867e47aaa466e889bca6aaf874aa8', 'd5e4a2088da820cf193b5755ecc5d2e4', x'c311c1cd2a0f42d9a8b3c0e26987c092', 'User', '2012-12-31 12:45:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c311c1cd2a0f42d9a8b3c0e26987c092' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'efa4f0128313409089fe6aba18981271', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'accountefa4f012-8313-4090-89fe-6aba18981271' WHERE `accounts`.`id` = x'efa4f0128313409089fe6aba18981271' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'efa4f0128313409089fe6aba18981271' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'efa4f0128313409089fe6aba18981271', x'68fa4e70b7e9427ea19ce043855e79bf', x'c311c1cd2a0f42d9a8b3c0e26987c092') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'68fa4e70b7e9427ea19ce043855e79bf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'68fa4e70b7e9427ea19ce043855e79bf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'68fa4e70b7e9427ea19ce043855e79bf', x'da31808d2ac44ea3b0ec7f03d4357056', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'68fa4e70b7e9427ea19ce043855e79bf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'68fa4e70b7e9427ea19ce043855e79bf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'68fa4e70b7e9427ea19ce043855e79bf', x'ee81a06486754cc5b4a62fb87a110e08', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: targetdestroy@teste.teste Message-ID: <50e188fd95c89_f6180435d4810887@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c2c0769126334bb58b6a291a7931357f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c2c0769126334bb58b6a291a7931357f', x'bdf8b9bc41fa4a5490e4052a4c1da948', x'c311c1cd2a0f42d9a8b3c0e26987c092') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bdf8b9bc41fa4a5490e4052a4c1da948') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bdf8b9bc41fa4a5490e4052a4c1da948' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bdf8b9bc41fa4a5490e4052a4c1da948', x'67e0f84d7efb43fd96b884be119afe35', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bdf8b9bc41fa4a5490e4052a4c1da948') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bdf8b9bc41fa4a5490e4052a4c1da948' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bdf8b9bc41fa4a5490e4052a4c1da948', x'd35e27876a304621a0cfc691727b3e47', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c2c0769126334bb58b6a291a7931357f' AND `account_users`.`user_id` = x'c3269f03a967445794bcfcb9afb5357c' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'14113f82f72044b68e36171281b86384'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'5e600473ecbe4e36ad0688e3a7b1d0c4' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'14113f82f72044b68e36171281b86384' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fdf614e87256459787d1aefd21bda9c5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'14113f82f72044b68e36171281b86384') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'14113f82f72044b68e36171281b86384' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'14113f82f72044b68e36171281b86384', x'a72ce6ca91af4e86a1265d149922ed7f', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"c2c07691-2633-4bb5-8b6a-291a7931357f", "user_id"=>"c3269f03-a967-4457-94bc-fcb9afb5357c"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c3269f03a967445794bcfcb9afb5357c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c2c0769126334bb58b6a291a7931357f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c2c07691-2633-4bb5-8b6a-291a7931357f_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c3269f03a967445794bcfcb9afb5357c' AND `account_users`.`account_id` = x'c2c0769126334bb58b6a291a7931357f' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'14113f82f72044b68e36171281b86384' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'14113f82f72044b68e36171281b86384' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c2c0769126334bb58b6a291a7931357f' AND `account_users`.`user_id` = x'c3269f03a967445794bcfcb9afb5357c' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c2c0769126334bb58b6a291a7931357f' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c3269f03a967445794bcfcb9afb5357c' LIMIT 1 Completed 404 Not Found in 11ms  (0.9ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'teste@teste.com', '$2a$04$Ag/3ZNN5cBK70PYcuCb0Z.oHEYgwoNlpN6TjhtepOC41YaV7UmGX2', NULL, x'e0aceddb85c84102ada02425af983202', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e0aceddb85c84102ada02425af983202' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'603fc1a59ef9411491bac2864fccc2b1', 'f8ebce01616bd1381630f77fbc5574f6', x'e0aceddb85c84102ada02425af983202', 'User', '2012-12-31 12:45:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e0aceddb85c84102ada02425af983202' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'19e7ff6fb8e4440bb91113969df1bd06', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account19e7ff6f-b8e4-440b-b911-13969df1bd06' WHERE `accounts`.`id` = x'19e7ff6fb8e4440bb91113969df1bd06' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'19e7ff6fb8e4440bb91113969df1bd06' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'19e7ff6fb8e4440bb91113969df1bd06', x'959e60b752cd4767a01e13e18dd4871e', x'e0aceddb85c84102ada02425af983202') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'959e60b752cd4767a01e13e18dd4871e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'959e60b752cd4767a01e13e18dd4871e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'959e60b752cd4767a01e13e18dd4871e', x'd772a360c120480d821ded3be6a3d7b7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'959e60b752cd4767a01e13e18dd4871e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'959e60b752cd4767a01e13e18dd4871e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'959e60b752cd4767a01e13e18dd4871e', x'c10d314fbdfc471cbc8f47545d6ec8d3', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fdab4be_f6180435d481091e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'581e0ffd50414e999dec94ae7bbd295c', 'jabanilson', NULL, 1, '2012-12-31 12:45:49')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account581e0ffd-5041-4e99-9dec-94ae7bbd295c' WHERE `accounts`.`id` = x'581e0ffd50414e999dec94ae7bbd295c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'581e0ffd50414e999dec94ae7bbd295c', x'3718e8e542034ffcbbfa2ba06ab03516', x'e0aceddb85c84102ada02425af983202') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3718e8e542034ffcbbfa2ba06ab03516') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3718e8e542034ffcbbfa2ba06ab03516' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3718e8e542034ffcbbfa2ba06ab03516', x'0f0caebaf5f94956a7d9d41471847990', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3718e8e542034ffcbbfa2ba06ab03516') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3718e8e542034ffcbbfa2ba06ab03516' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3718e8e542034ffcbbfa2ba06ab03516', x'ed8dcccccf6b4b29a74206ed0f5c8d29', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e0aceddb85c84102ada02425af983202' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e0aceddb85c84102ada02425af983202' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e0aceddb85c84102ada02425af983202' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'target@test.test', '$2a$04$nuka.sw2DM298KQ29eJi.ugwuZhlCYbe7R2tE.i5zRBff8IxX0rfm', NULL, x'c1c7b46bf4f44153a4c81a369b30f282', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c1c7b46bf4f44153a4c81a369b30f282' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'489642b0d4c14162ae502ed300307e89', '151f212b56d981bcb8e6a956e3e0b038', x'c1c7b46bf4f44153a4c81a369b30f282', 'User', '2012-12-31 12:45:49') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c1c7b46bf4f44153a4c81a369b30f282' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'3aa773b9742245ebafec6d13529e911b', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account3aa773b9-7422-45eb-afec-6d13529e911b' WHERE `accounts`.`id` = x'3aa773b9742245ebafec6d13529e911b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3aa773b9742245ebafec6d13529e911b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3aa773b9742245ebafec6d13529e911b', x'da88c78fad9944d6b0207e64246dce4b', x'c1c7b46bf4f44153a4c81a369b30f282') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da88c78fad9944d6b0207e64246dce4b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da88c78fad9944d6b0207e64246dce4b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da88c78fad9944d6b0207e64246dce4b', x'ddebaa49b66a464a8544fee13cd02d87', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'da88c78fad9944d6b0207e64246dce4b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da88c78fad9944d6b0207e64246dce4b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da88c78fad9944d6b0207e64246dce4b', x'da4f95d30619481ca6e47e815517c137', 'admin') Sent mail to target@test.test (6ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e188fdd0a19_f6180435d48110d1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'581e0ffd50414e999dec94ae7bbd295c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'581e0ffd50414e999dec94ae7bbd295c', x'bcea2055f9a74399a9f240da4a83a302', x'c1c7b46bf4f44153a4c81a369b30f282') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bcea2055f9a74399a9f240da4a83a302') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bcea2055f9a74399a9f240da4a83a302' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bcea2055f9a74399a9f240da4a83a302', x'5ae804b4a9954067bb8ed07e189a2768', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bcea2055f9a74399a9f240da4a83a302') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bcea2055f9a74399a9f240da4a83a302' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bcea2055f9a74399a9f240da4a83a302', x'99978b2f2e8e4694a0b17eb3e31dd5f0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bcea2055f9a74399a9f240da4a83a302'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bcea2055f9a74399a9f240da4a83a302' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'5ae804b4a9954067bb8ed07e189a2768' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'99978b2f2e8e4694a0b17eb3e31dd5f0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'bcea2055f9a74399a9f240da4a83a302') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bcea2055f9a74399a9f240da4a83a302' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bcea2055f9a74399a9f240da4a83a302', x'd20ecd23f19449d799361ec607da3790', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:49', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: bcea2055-f9a7-4399-a9f2-40da4a83a302\n', NULL, NULL, NULL, 0, 'account_user_bcea2055-f9a7-4399-a9f2-40da4a83a302_destroy', '2012-12-31 12:45:49', '2012-12-31 12:45:49')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"C1C7B46BF4F44153A4C81A369B30F282"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e0aceddb85c84102ada02425af983202' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31383932373331383932333731323733' LIMIT 1 Completed 404 Not Found in 3ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'teste@teste.com', '$2a$04$pV4LEXQmQZloKeO/eoC5cu13hQlucb7lqVrUJuUbCz5ljEm29dVvC', NULL, x'9135bce8852940858bc9d62fc80f6bb2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9135bce8852940858bc9d62fc80f6bb2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'44515259061347a28941776b8e2da072', '68bea250331764a2ec45144f9fef13d6', x'9135bce8852940858bc9d62fc80f6bb2', 'User', '2012-12-31 12:45:49') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9135bce8852940858bc9d62fc80f6bb2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'f36d7d87cf8a4b269032953f00cb0916', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'accountf36d7d87-cf8a-4b26-9032-953f00cb0916' WHERE `accounts`.`id` = x'f36d7d87cf8a4b269032953f00cb0916' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f36d7d87cf8a4b269032953f00cb0916' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f36d7d87cf8a4b269032953f00cb0916', x'8543fc799ab742f6ac61696d58574c4b', x'9135bce8852940858bc9d62fc80f6bb2') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8543fc799ab742f6ac61696d58574c4b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8543fc799ab742f6ac61696d58574c4b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8543fc799ab742f6ac61696d58574c4b', x'30b74167186b40259150c4fb1c6eca03', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8543fc799ab742f6ac61696d58574c4b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8543fc799ab742f6ac61696d58574c4b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8543fc799ab742f6ac61696d58574c4b', x'd601210982be47fd96342d0e19f0444e', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:49 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fde54dd_f6180435d48111bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'624aee62f50741b2a09ed908e20d4656', 'jabanilson', NULL, 1, '2012-12-31 12:45:49')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account624aee62-f507-41b2-a09e-d908e20d4656' WHERE `accounts`.`id` = x'624aee62f50741b2a09ed908e20d4656'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'624aee62f50741b2a09ed908e20d4656', x'ac06a9ad4b0141d48458a5d6369ff911', x'9135bce8852940858bc9d62fc80f6bb2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ac06a9ad4b0141d48458a5d6369ff911') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac06a9ad4b0141d48458a5d6369ff911' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac06a9ad4b0141d48458a5d6369ff911', x'9118bc9242ec420e90b22b228f16ceb3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ac06a9ad4b0141d48458a5d6369ff911') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac06a9ad4b0141d48458a5d6369ff911' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac06a9ad4b0141d48458a5d6369ff911', x'08a351a3ebf944e19532c57f12bb93d7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9135bce8852940858bc9d62fc80f6bb2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9135bce8852940858bc9d62fc80f6bb2' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9135bce8852940858bc9d62fc80f6bb2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:49', 'target@test.test', '$2a$04$fsjfGnV0IEYYY71xDd/5LutjY3KIdvVO2kRCGGG0rFyD5TSuvn4mC', NULL, x'9ea142df4c2243ada7613a8a23a16b4e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:49') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9ea142df4c2243ada7613a8a23a16b4e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:49', 'User', x'356f0ab282a64c10baffbfbe12e62368', '901737e278cd4ddd933d2b84641879ad', x'9ea142df4c2243ada7613a8a23a16b4e', 'User', '2012-12-31 12:45:49') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9ea142df4c2243ada7613a8a23a16b4e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:49', x'5d940b225a0a4749bb49ca723d19f556', NULL, NULL, NULL, '2012-12-31 12:45:49')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:49', `updated_at` = '2012-12-31 12:45:49', `subdomain` = 'account5d940b22-5a0a-4749-bb49-ca723d19f556' WHERE `accounts`.`id` = x'5d940b225a0a4749bb49ca723d19f556' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5d940b225a0a4749bb49ca723d19f556' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5d940b225a0a4749bb49ca723d19f556', x'3d8c511a3f764fa18bfe4144a6686e2d', x'9ea142df4c2243ada7613a8a23a16b4e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3d8c511a3f764fa18bfe4144a6686e2d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d8c511a3f764fa18bfe4144a6686e2d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d8c511a3f764fa18bfe4144a6686e2d', x'196dc7ae52e6473c8d7ebc46622fb5c3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3d8c511a3f764fa18bfe4144a6686e2d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d8c511a3f764fa18bfe4144a6686e2d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d8c511a3f764fa18bfe4144a6686e2d', x'2997d39a43b64cf296d0e2d00934f5d3', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e188fe1e65_f6180435d48112f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f36d7d87cf8a4b269032953f00cb0916' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f36d7d87cf8a4b269032953f00cb0916', x'4e0948db945a46bda563e11e21d6a007', x'9ea142df4c2243ada7613a8a23a16b4e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4e0948db945a46bda563e11e21d6a007') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e0948db945a46bda563e11e21d6a007' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e0948db945a46bda563e11e21d6a007', x'143a6712797a4bb591856452d0f61fd8', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4e0948db945a46bda563e11e21d6a007') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e0948db945a46bda563e11e21d6a007' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e0948db945a46bda563e11e21d6a007', x'3f340e1144934feab8c441c73b84fc9a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4e0948db945a46bda563e11e21d6a007'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e0948db945a46bda563e11e21d6a007' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'143a6712797a4bb591856452d0f61fd8' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'3f340e1144934feab8c441c73b84fc9a'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'4e0948db945a46bda563e11e21d6a007') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e0948db945a46bda563e11e21d6a007' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e0948db945a46bda563e11e21d6a007', x'fef29184501d44f4ac505d4a6e9d1838', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:50', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 4e0948db-945a-46bd-a563-e11e21d6a007\n', NULL, NULL, NULL, 0, 'account_user_4e0948db-945a-46bd-a563-e11e21d6a007_destroy', '2012-12-31 12:45:50', '2012-12-31 12:45:50')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"F36D7D87CF8A4B269032953F00CB0916", "user_id"=>"18237198237192837"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9135bce8852940858bc9d62fc80f6bb2' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f36d7d87cf8a4b269032953f00cb0916' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f36d7d87-cf8a-4b26-9032-953f00cb0916_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9135bce8852940858bc9d62fc80f6bb2' AND `account_users`.`account_id` = x'f36d7d87cf8a4b269032953f00cb0916' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8543fc799ab742f6ac61696d58574c4b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8543fc799ab742f6ac61696d58574c4b' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f36d7d87cf8a4b269032953f00cb0916' AND `account_users`.`user_id` = x'38323337313938323337313932383337' LIMIT 1 Completed 404 Not Found in 9ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:50', 'teste@teste.com', '$2a$04$A0vp/EI3361FUZNpR2UeL.ZPHbt2Wfb78.TiwGcrvIjqkZ8IaGFDC', NULL, x'0abf37742adf42d28bcf77835aae77b1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:50') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0abf37742adf42d28bcf77835aae77b1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:50', 'User', x'6f750b053a8e4a87a6f8749f932b98e8', '910ceccfae0325a5ab0e7401560e6848', x'0abf37742adf42d28bcf77835aae77b1', 'User', '2012-12-31 12:45:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0abf37742adf42d28bcf77835aae77b1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'f4aefd1cd97a4fe2802b62dbfac89ad9', NULL, NULL, NULL, '2012-12-31 12:45:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'accountf4aefd1c-d97a-4fe2-802b-62dbfac89ad9' WHERE `accounts`.`id` = x'f4aefd1cd97a4fe2802b62dbfac89ad9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f4aefd1cd97a4fe2802b62dbfac89ad9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f4aefd1cd97a4fe2802b62dbfac89ad9', x'44f008e1e089461990700f95014217b9', x'0abf37742adf42d28bcf77835aae77b1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'44f008e1e089461990700f95014217b9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44f008e1e089461990700f95014217b9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44f008e1e089461990700f95014217b9', x'11f34d81661d4e94baae9a3c64e6d8d9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'44f008e1e089461990700f95014217b9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44f008e1e089461990700f95014217b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44f008e1e089461990700f95014217b9', x'4762eeb53dc54dffbffc28ff7d3b26cc', 'admin') Sent mail to teste@teste.com (92ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fe18a5c_f6180435d48113f2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'e8bb5122c7ad482dbe7fbb75c3a28ed2', 'jabanilson', NULL, 1, '2012-12-31 12:45:50')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'accounte8bb5122-c7ad-482d-be7f-bb75c3a28ed2' WHERE `accounts`.`id` = x'e8bb5122c7ad482dbe7fbb75c3a28ed2'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e8bb5122c7ad482dbe7fbb75c3a28ed2', x'6e7ab61cad05402496050af4e510ecea', x'0abf37742adf42d28bcf77835aae77b1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6e7ab61cad05402496050af4e510ecea') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e7ab61cad05402496050af4e510ecea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e7ab61cad05402496050af4e510ecea', x'bea1babac2b1452cbd6c85e438e39576', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6e7ab61cad05402496050af4e510ecea') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e7ab61cad05402496050af4e510ecea' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e7ab61cad05402496050af4e510ecea', x'b5e7ddb28ee1409284abd5ca3b2c09ad', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0abf37742adf42d28bcf77835aae77b1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0abf37742adf42d28bcf77835aae77b1' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0abf37742adf42d28bcf77835aae77b1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:50', 'target@test.test', '$2a$04$SiUzRQPlhFvbfWHi/LE7S.VFw6NDakKyy41J4X5nfYEv2XhjhMlYS', NULL, x'bf1684f48ae24b559c9e518fdd70ee4b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bf1684f48ae24b559c9e518fdd70ee4b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:50', 'User', x'87ac51d38e40464aad35cbeedaa18f09', 'a8b47065dc14ce703013accfabea2087', x'bf1684f48ae24b559c9e518fdd70ee4b', 'User', '2012-12-31 12:45:50') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bf1684f48ae24b559c9e518fdd70ee4b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'174de3d68f9a43c7954f606173961dcf', NULL, NULL, NULL, '2012-12-31 12:45:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'account174de3d6-8f9a-43c7-954f-606173961dcf' WHERE `accounts`.`id` = x'174de3d68f9a43c7954f606173961dcf' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'174de3d68f9a43c7954f606173961dcf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'174de3d68f9a43c7954f606173961dcf', x'fe432692eb37404abfa1f08da608726c', x'bf1684f48ae24b559c9e518fdd70ee4b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fe432692eb37404abfa1f08da608726c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe432692eb37404abfa1f08da608726c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe432692eb37404abfa1f08da608726c', x'1aa3555f0205462592c57e1cf9e92694', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fe432692eb37404abfa1f08da608726c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe432692eb37404abfa1f08da608726c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe432692eb37404abfa1f08da608726c', x'5f3d875b3f7b434d9db3955a68037790', 'admin') Sent mail to target@test.test (6ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e188fe3de47_f6180435d4811477@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f4aefd1cd97a4fe2802b62dbfac89ad9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f4aefd1cd97a4fe2802b62dbfac89ad9', x'35c051f0ca3c480987873505435bc57b', x'bf1684f48ae24b559c9e518fdd70ee4b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'35c051f0ca3c480987873505435bc57b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'35c051f0ca3c480987873505435bc57b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'35c051f0ca3c480987873505435bc57b', x'290688dd43094fb38db99bd56a13d0f9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'35c051f0ca3c480987873505435bc57b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'35c051f0ca3c480987873505435bc57b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'35c051f0ca3c480987873505435bc57b', x'5bc0a8dbde4940138459cbcf545ab27c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'35c051f0ca3c480987873505435bc57b'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'35c051f0ca3c480987873505435bc57b' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ô®ýÙzOâ€+bÛúÈšÙ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'290688dd43094fb38db99bd56a13d0f9' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'5bc0a8dbde4940138459cbcf545ab27c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'35c051f0ca3c480987873505435bc57b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'35c051f0ca3c480987873505435bc57b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'35c051f0ca3c480987873505435bc57b', x'6dc11989c829415c94908f120fa18257', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:50', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 35c051f0-ca3c-4809-8787-3505435bc57b\n', NULL, NULL, NULL, 0, 'account_user_35c051f0-ca3c-4809-8787-3505435bc57b_destroy', '2012-12-31 12:45:50', '2012-12-31 12:45:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0abf37742adf42d28bcf77835aae77b1' AND `account_users`.`account_id` = x'f4aefd1cd97a4fe2802b62dbfac89ad9' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'44f008e1e089461990700f95014217b9'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44f008e1e089461990700f95014217b9' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ô®ýÙzOâ€+bÛúÈšÙ' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4762eeb53dc54dffbffc28ff7d3b26cc'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'44f008e1e089461990700f95014217b9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44f008e1e089461990700f95014217b9' LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"F4AEFD1CD97A4FE2802B62DBFAC89AD9", "user_id"=>"BF1684F48AE24B559C9E518FDD70EE4B"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0abf37742adf42d28bcf77835aae77b1' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f4aefd1cd97a4fe2802b62dbfac89ad9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f4aefd1c-d97a-4fe2-802b-62dbfac89ad9_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0abf37742adf42d28bcf77835aae77b1' AND `account_users`.`account_id` = x'f4aefd1cd97a4fe2802b62dbfac89ad9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'44f008e1e089461990700f95014217b9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'44f008e1e089461990700f95014217b9' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f4aefd1cd97a4fe2802b62dbfac89ad9' AND `account_users`.`user_id` = x'bf1684f48ae24b559c9e518fdd70ee4b' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f4aefd1cd97a4fe2802b62dbfac89ad9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_35c051f0-ca3c-4809-8787-3505435bc57b_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_35c051f0-ca3c-4809-8787-3505435bc57b_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/F4AEFD1CD97A4FE2802B62DBFAC89AD9/users Completed 302 Found in 13ms (ActiveRecord: 2.5ms) Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_35c051f0-ca3c-4809-8787-3505435bc57b_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:50', 'teste@teste.com', '$2a$04$zIOzw6PiEI5NXgQSP6.dCeOIFWvbdTlHr0n0bqWINg5c6i2qPq.1m', NULL, x'e8dc7be9bdaa4f429e04475bb268aed0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:50') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e8dc7be9bdaa4f429e04475bb268aed0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:50', 'User', x'34ffa18deafc4048ba32fda48b8892a6', '76ac73f0843067f6d49d22e05aa69e96', x'e8dc7be9bdaa4f429e04475bb268aed0', 'User', '2012-12-31 12:45:50') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e8dc7be9bdaa4f429e04475bb268aed0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'76d8c05e76334155a14aedc8513b20b1', NULL, NULL, NULL, '2012-12-31 12:45:50')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'account76d8c05e-7633-4155-a14a-edc8513b20b1' WHERE `accounts`.`id` = x'76d8c05e76334155a14aedc8513b20b1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'76d8c05e76334155a14aedc8513b20b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'76d8c05e76334155a14aedc8513b20b1', x'55e2661daf3a4380ba7e4db26531713f', x'e8dc7be9bdaa4f429e04475bb268aed0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'55e2661daf3a4380ba7e4db26531713f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55e2661daf3a4380ba7e4db26531713f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55e2661daf3a4380ba7e4db26531713f', x'bda86d72bf80459fbc0b301dd8a7f953', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'55e2661daf3a4380ba7e4db26531713f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55e2661daf3a4380ba7e4db26531713f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55e2661daf3a4380ba7e4db26531713f', x'8479d4aa16d341cea65743d6bdbebbda', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fe56ec5_f6180435d481159a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'd82e89c3b377483a86e39c19a82cd732', 'jabanilson', NULL, 1, '2012-12-31 12:45:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'accountd82e89c3-b377-483a-86e3-9c19a82cd732' WHERE `accounts`.`id` = x'd82e89c3b377483a86e39c19a82cd732'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd82e89c3b377483a86e39c19a82cd732', x'aa42c68c5bc6446c9fb88c5e2915e8d7', x'e8dc7be9bdaa4f429e04475bb268aed0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aa42c68c5bc6446c9fb88c5e2915e8d7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa42c68c5bc6446c9fb88c5e2915e8d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa42c68c5bc6446c9fb88c5e2915e8d7', x'fbd6b6ab20694a9dabd73aaca6770d8d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aa42c68c5bc6446c9fb88c5e2915e8d7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aa42c68c5bc6446c9fb88c5e2915e8d7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aa42c68c5bc6446c9fb88c5e2915e8d7', x'afec4dc339b44f5d89820d96d2a009c6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e8dc7be9bdaa4f429e04475bb268aed0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e8dc7be9bdaa4f429e04475bb268aed0' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e8dc7be9bdaa4f429e04475bb268aed0' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:50', 'target@test.test', '$2a$04$gGxuWhP8Nzgw.ZOMKK50tuiJHJYbMFhboES4A3DXmKukCtVnVBdpe', NULL, x'c37042345e7f4bf081cb14c74dedc080', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c37042345e7f4bf081cb14c74dedc080' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:50', 'User', x'd6ec6dd161e248fca08178a4b53fcbdb', 'e431d7cdc2e9c7a715f156ba9bd7ecdd', x'c37042345e7f4bf081cb14c74dedc080', 'User', '2012-12-31 12:45:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c37042345e7f4bf081cb14c74dedc080' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'0baff7610da6415db6aef055d1bd609d', NULL, NULL, NULL, '2012-12-31 12:45:50')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'account0baff761-0da6-415d-b6ae-f055d1bd609d' WHERE `accounts`.`id` = x'0baff7610da6415db6aef055d1bd609d' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0baff7610da6415db6aef055d1bd609d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0baff7610da6415db6aef055d1bd609d', x'c2cb2aea7aac42a7a3916c0b6704d479', x'c37042345e7f4bf081cb14c74dedc080') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c2cb2aea7aac42a7a3916c0b6704d479') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c2cb2aea7aac42a7a3916c0b6704d479' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c2cb2aea7aac42a7a3916c0b6704d479', x'fb2c2a5a9e5143f28b988c6879172a57', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c2cb2aea7aac42a7a3916c0b6704d479') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c2cb2aea7aac42a7a3916c0b6704d479' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c2cb2aea7aac42a7a3916c0b6704d479', x'a90464ce659f406b85432942b74a04ec', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e188fe67de9_f6180435d48116c1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'76d8c05e76334155a14aedc8513b20b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'76d8c05e76334155a14aedc8513b20b1', x'e82d9b46f1cb4def82706564ef2d7c6f', x'c37042345e7f4bf081cb14c74dedc080') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e82d9b46f1cb4def82706564ef2d7c6f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e82d9b46f1cb4def82706564ef2d7c6f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e82d9b46f1cb4def82706564ef2d7c6f', x'9f2f93b2e8884d949573cfc9f3253461', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e82d9b46f1cb4def82706564ef2d7c6f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e82d9b46f1cb4def82706564ef2d7c6f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e82d9b46f1cb4def82706564ef2d7c6f', x'666b2a46dc2e4aa9ad81232399f96036', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e82d9b46f1cb4def82706564ef2d7c6f'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'666b2a46dc2e4aa9ad81232399f96036' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e82d9b46f1cb4def82706564ef2d7c6f' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'vØÀ^v3AU¡JíÈQ; ±' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9f2f93b2e8884d949573cfc9f3253461'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'e82d9b46f1cb4def82706564ef2d7c6f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e82d9b46f1cb4def82706564ef2d7c6f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e82d9b46f1cb4def82706564ef2d7c6f', x'0cba6e5d73c64c2bb38d720ac0655fd3', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:50', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: e82d9b46-f1cb-4def-8270-6564ef2d7c6f\n', NULL, NULL, NULL, 0, 'account_user_e82d9b46-f1cb-4def-8270-6564ef2d7c6f_destroy', '2012-12-31 12:45:50', '2012-12-31 12:45:50')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e8dc7be9bdaa4f429e04475bb268aed0' AND `account_users`.`account_id` = x'76d8c05e76334155a14aedc8513b20b1' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'55e2661daf3a4380ba7e4db26531713f'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8479d4aa16d341cea65743d6bdbebbda' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55e2661daf3a4380ba7e4db26531713f' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'vØÀ^v3AU¡JíÈQ; ±' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'55e2661daf3a4380ba7e4db26531713f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55e2661daf3a4380ba7e4db26531713f' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"76D8C05E76334155A14AEDC8513B20B1", "user_id"=>"C37042345E7F4BF081CB14C74DEDC080"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e8dc7be9bdaa4f429e04475bb268aed0' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'76d8c05e76334155a14aedc8513b20b1' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_76d8c05e-7633-4155-a14a-edc8513b20b1_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e8dc7be9bdaa4f429e04475bb268aed0' AND `account_users`.`account_id` = x'76d8c05e76334155a14aedc8513b20b1' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'55e2661daf3a4380ba7e4db26531713f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'55e2661daf3a4380ba7e4db26531713f' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'76d8c05e76334155a14aedc8513b20b1' AND `account_users`.`user_id` = x'c37042345e7f4bf081cb14c74dedc080' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'76d8c05e76334155a14aedc8513b20b1' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_e82d9b46-f1cb-4def-8270-6564ef2d7c6f_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_e82d9b46-f1cb-4def-8270-6564ef2d7c6f_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/76D8C05E76334155A14AEDC8513B20B1/users Completed 302 Found in 13ms (ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:50', 'teste@teste.com', '$2a$04$ATnPt0U/E6s8BzJ.bT5pxuEPtBzWaoqrc2FNd8792s0MVXxuIIbqa', NULL, x'f1ea167daac14fbd9f9b6e0e83bd750a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:50') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f1ea167daac14fbd9f9b6e0e83bd750a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:50', 'User', x'3e9c7900631d443d9b731f1ee602d93b', '3f89e82ca6ba856d340a6c3b9414e1e9', x'f1ea167daac14fbd9f9b6e0e83bd750a', 'User', '2012-12-31 12:45:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f1ea167daac14fbd9f9b6e0e83bd750a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'c05954ed7c3948579f57b2e9b85e3b3d', NULL, NULL, NULL, '2012-12-31 12:45:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'accountc05954ed-7c39-4857-9f57-b2e9b85e3b3d' WHERE `accounts`.`id` = x'c05954ed7c3948579f57b2e9b85e3b3d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c05954ed7c3948579f57b2e9b85e3b3d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c05954ed7c3948579f57b2e9b85e3b3d', x'1c45df767893476fa427e71664b502c7', x'f1ea167daac14fbd9f9b6e0e83bd750a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1c45df767893476fa427e71664b502c7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1c45df767893476fa427e71664b502c7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1c45df767893476fa427e71664b502c7', x'56346f011f8b4a82909e239f3cff672d', 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1c45df767893476fa427e71664b502c7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1c45df767893476fa427e71664b502c7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1c45df767893476fa427e71664b502c7', x'46301c33b27d434fbea6766c704c8448', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188fe96764_f6180435d48117ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'9fc93ee2aad649c09d4b027710a1568c', 'jabanilson', NULL, 1, '2012-12-31 12:45:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'account9fc93ee2-aad6-49c0-9d4b-027710a1568c' WHERE `accounts`.`id` = x'9fc93ee2aad649c09d4b027710a1568c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9fc93ee2aad649c09d4b027710a1568c', x'87fbffdb45484399a20e2c357917779d', x'f1ea167daac14fbd9f9b6e0e83bd750a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'87fbffdb45484399a20e2c357917779d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87fbffdb45484399a20e2c357917779d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'87fbffdb45484399a20e2c357917779d', x'5c08216972ab4a0f8a7344b31c092d6d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'87fbffdb45484399a20e2c357917779d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87fbffdb45484399a20e2c357917779d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'87fbffdb45484399a20e2c357917779d', x'6a1e6b4d6bd44283a59429013b8186dc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1ea167daac14fbd9f9b6e0e83bd750a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1ea167daac14fbd9f9b6e0e83bd750a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1ea167daac14fbd9f9b6e0e83bd750a' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:50', 'target@test.test', '$2a$04$/HHPJmhK47LavGqwTe3CMOyDxe5jnM5LF.D85uAoXhSDcbcf5.Lam', NULL, x'09bca5dd0dd842ee917b9a3196ead688', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'09bca5dd0dd842ee917b9a3196ead688' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:50', 'User', x'7fd73859b01045d0982d8ac055a9781c', 'dc380af94f456d30d2de0861b55760b1', x'09bca5dd0dd842ee917b9a3196ead688', 'User', '2012-12-31 12:45:50') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'09bca5dd0dd842ee917b9a3196ead688' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'f1aafbf112004a5d96fab6d33a9a3859', NULL, NULL, NULL, '2012-12-31 12:45:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'accountf1aafbf1-1200-4a5d-96fa-b6d33a9a3859' WHERE `accounts`.`id` = x'f1aafbf112004a5d96fab6d33a9a3859' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f1aafbf112004a5d96fab6d33a9a3859' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f1aafbf112004a5d96fab6d33a9a3859', x'359fee5651ce406891dc838c835e86a5', x'09bca5dd0dd842ee917b9a3196ead688') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'359fee5651ce406891dc838c835e86a5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'359fee5651ce406891dc838c835e86a5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'359fee5651ce406891dc838c835e86a5', x'fdeb7d104f17418c8116572b9707c86f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'359fee5651ce406891dc838c835e86a5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'359fee5651ce406891dc838c835e86a5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'359fee5651ce406891dc838c835e86a5', x'4b44b33163444a0a993d4e36ce02c6f1', 'admin') Sent mail to target@test.test (7ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: target@test.test Message-ID: <50e188fea674a_f6180435d48118a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c05954ed7c3948579f57b2e9b85e3b3d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c05954ed7c3948579f57b2e9b85e3b3d', x'969d424cec1d42ed981158f0f2c71beb', x'09bca5dd0dd842ee917b9a3196ead688') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'969d424cec1d42ed981158f0f2c71beb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'969d424cec1d42ed981158f0f2c71beb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'969d424cec1d42ed981158f0f2c71beb', x'fbb5cfab758046f185a6b81f7bc164ec', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'969d424cec1d42ed981158f0f2c71beb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'969d424cec1d42ed981158f0f2c71beb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'969d424cec1d42ed981158f0f2c71beb', x'4be9c6a5dcaa4b2b8ee15251574a6d88', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'969d424cec1d42ed981158f0f2c71beb'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4be9c6a5dcaa4b2b8ee15251574a6d88' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'969d424cec1d42ed981158f0f2c71beb' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ÀYTí|9HWŸW²é¸^;=' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fbb5cfab758046f185a6b81f7bc164ec'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'969d424cec1d42ed981158f0f2c71beb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'969d424cec1d42ed981158f0f2c71beb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'969d424cec1d42ed981158f0f2c71beb', x'41d9e88128a04631a8e8bd793660375d', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:50', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 969d424c-ec1d-42ed-9811-58f0f2c71beb\n', NULL, NULL, NULL, 0, 'account_user_969d424c-ec1d-42ed-9811-58f0f2c71beb_destroy', '2012-12-31 12:45:50', '2012-12-31 12:45:50')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:50', 'notowner@account.test', '$2a$04$pak2d9M4eFP/UPH6qatv1ekskLDZbUVuW6s3OYE32Qg6CGh/IC5we', NULL, x'a9300c811de64dd1a83034154054c837', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a9300c811de64dd1a83034154054c837' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:50', 'User', x'4880fd39e07e4203a454a43c666e1461', '6418368d836f0012bcab7ef1b17ef793', x'a9300c811de64dd1a83034154054c837', 'User', '2012-12-31 12:45:50') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a9300c811de64dd1a83034154054c837' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'7249987939bb40a1bfadbedd38cae2a6', NULL, NULL, NULL, '2012-12-31 12:45:50')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'account72499879-39bb-40a1-bfad-bedd38cae2a6' WHERE `accounts`.`id` = x'7249987939bb40a1bfadbedd38cae2a6' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7249987939bb40a1bfadbedd38cae2a6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7249987939bb40a1bfadbedd38cae2a6', x'a636d2db78e941d39ea249ee5327883e', x'a9300c811de64dd1a83034154054c837') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a636d2db78e941d39ea249ee5327883e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a636d2db78e941d39ea249ee5327883e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a636d2db78e941d39ea249ee5327883e', x'74b3431d7e134076bba57c606daf9ff2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a636d2db78e941d39ea249ee5327883e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a636d2db78e941d39ea249ee5327883e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a636d2db78e941d39ea249ee5327883e', x'0d9bf0c02f9547639a2ab3140f1708b7', 'admin') Sent mail to notowner@account.test (6ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e188feb8c72_f6180435d48119d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'2533bb2f881349f4ada1385cc7994156', 'jabanilson', NULL, 1, '2012-12-31 12:45:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'account2533bb2f-8813-49f4-ada1-385cc7994156' WHERE `accounts`.`id` = x'2533bb2f881349f4ada1385cc7994156'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2533bb2f881349f4ada1385cc7994156', x'05722061e3834cbc99d73f650fbf8cb2', x'a9300c811de64dd1a83034154054c837') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'05722061e3834cbc99d73f650fbf8cb2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'05722061e3834cbc99d73f650fbf8cb2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'05722061e3834cbc99d73f650fbf8cb2', x'd2bc5821ffae4133aeadebd185774d1f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'05722061e3834cbc99d73f650fbf8cb2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'05722061e3834cbc99d73f650fbf8cb2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'05722061e3834cbc99d73f650fbf8cb2', x'af0aa52820e6468c895470e511f4a5b9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c05954ed7c3948579f57b2e9b85e3b3d' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'c05954ed7c3948579f57b2e9b85e3b3d' WHERE `account_users`.`id` = x'05722061e3834cbc99d73f650fbf8cb2'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f1ea167daac14fbd9f9b6e0e83bd750a' AND `account_users`.`account_id` = x'c05954ed7c3948579f57b2e9b85e3b3d' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1c45df767893476fa427e71664b502c7'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'46301c33b27d434fbea6766c704c8448' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1c45df767893476fa427e71664b502c7' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ÀYTí|9HWŸW²é¸^;=' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'56346f011f8b4a82909e239f3cff672d'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'1c45df767893476fa427e71664b502c7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1c45df767893476fa427e71664b502c7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1c45df767893476fa427e71664b502c7', x'8201d4fa16034e7b9b64ca4c0d61e898', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"C05954ED7C3948579F57B2E9B85E3B3D", "user_id"=>"09BCA5DD0DD842EE917B9A3196EAD688"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f1ea167daac14fbd9f9b6e0e83bd750a' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c05954ed7c3948579f57b2e9b85e3b3d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c05954ed-7c39-4857-9f57-b2e9b85e3b3d_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f1ea167daac14fbd9f9b6e0e83bd750a' AND `account_users`.`account_id` = x'c05954ed7c3948579f57b2e9b85e3b3d' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1c45df767893476fa427e71664b502c7' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1c45df767893476fa427e71664b502c7' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 18ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:50', 'teste@teste.com', '$2a$04$Dr9m51SnZecAE5zq/qQh/uAKxIW4WrCDtrO/3HZO1DF1XONI1bqIG', NULL, x'e2d043434890476cbc9954c425d260d4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:50') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e2d043434890476cbc9954c425d260d4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:50', 'User', x'89b6c657718748c4b7749237f6d6c7b3', 'a916a16b26d2461965910a6616c23b6b', x'e2d043434890476cbc9954c425d260d4', 'User', '2012-12-31 12:45:50') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e2d043434890476cbc9954c425d260d4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'4d16219673984ab7ad3fdc045d0cfd04', NULL, NULL, NULL, '2012-12-31 12:45:50')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'account4d162196-7398-4ab7-ad3f-dc045d0cfd04' WHERE `accounts`.`id` = x'4d16219673984ab7ad3fdc045d0cfd04' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d16219673984ab7ad3fdc045d0cfd04' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4d16219673984ab7ad3fdc045d0cfd04', x'bf5d221ed1ed4d7bb3a55bbc943a524e', x'e2d043434890476cbc9954c425d260d4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bf5d221ed1ed4d7bb3a55bbc943a524e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bf5d221ed1ed4d7bb3a55bbc943a524e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bf5d221ed1ed4d7bb3a55bbc943a524e', x'4cc7a9a4e3124ee9b34600cf77cf4b8f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bf5d221ed1ed4d7bb3a55bbc943a524e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bf5d221ed1ed4d7bb3a55bbc943a524e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bf5d221ed1ed4d7bb3a55bbc943a524e', x'a603046446534277a1128352c638532e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:50 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188feeafe1_f6180435d481201e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'88f5fe87509a4be3a348d701b9dc1f2f', 'jabanilson', NULL, 1, '2012-12-31 12:45:50')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'account88f5fe87-509a-4be3-a348-d701b9dc1f2f' WHERE `accounts`.`id` = x'88f5fe87509a4be3a348d701b9dc1f2f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'88f5fe87509a4be3a348d701b9dc1f2f', x'95f07b2ac3be4407a48f8be9f1a8b40f', x'e2d043434890476cbc9954c425d260d4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'95f07b2ac3be4407a48f8be9f1a8b40f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95f07b2ac3be4407a48f8be9f1a8b40f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95f07b2ac3be4407a48f8be9f1a8b40f', x'9d0b99b6529043deb7e8b712737f9287', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'95f07b2ac3be4407a48f8be9f1a8b40f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95f07b2ac3be4407a48f8be9f1a8b40f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95f07b2ac3be4407a48f8be9f1a8b40f', x'0796917a4b624fedad61e42645e8802c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2d043434890476cbc9954c425d260d4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2d043434890476cbc9954c425d260d4' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:50', x'c62d3e3ec00e41cda6f8802f7e41d3bb', 'jabanilson', NULL, 1, '2012-12-31 12:45:50')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:50', `updated_at` = '2012-12-31 12:45:50', `subdomain` = 'accountc62d3e3e-c00e-41cd-a6f8-802f7e41d3bb' WHERE `accounts`.`id` = x'c62d3e3ec00e41cda6f8802f7e41d3bb'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"c62d3e3e-c00e-41cd-a6f8-802f7e41d3bb"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e2d043434890476cbc9954c425d260d4' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e2d043434890476cbc9954c425d260d4' AND `account_users`.`account_id` = x'c62d3e3ec00e41cda6f8802f7e41d3bb' LIMIT 1 Completed 404 Not Found in 4ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:51', 'teste@teste.com', '$2a$04$f.kOdYjdykJhiytUwfVk6u9MMSP1hZQv7.lotstlaa6yTGoyAVYzy', NULL, x'a8ccfb50a23e403d806043a77dcb76e9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a8ccfb50a23e403d806043a77dcb76e9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:51', 'User', x'6e1daacd24ea48fd9ab86f47f6bc7c14', '5c1b6f8ce3b9d2fc1da9e252f11e741e', x'a8ccfb50a23e403d806043a77dcb76e9', 'User', '2012-12-31 12:45:51') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a8ccfb50a23e403d806043a77dcb76e9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'd3be8505456b4282874e3ce7701731c1', NULL, NULL, NULL, '2012-12-31 12:45:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'accountd3be8505-456b-4282-874e-3ce7701731c1' WHERE `accounts`.`id` = x'd3be8505456b4282874e3ce7701731c1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd3be8505456b4282874e3ce7701731c1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd3be8505456b4282874e3ce7701731c1', x'5c22246677fd488490ddb75f168bd02b', x'a8ccfb50a23e403d806043a77dcb76e9') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5c22246677fd488490ddb75f168bd02b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c22246677fd488490ddb75f168bd02b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c22246677fd488490ddb75f168bd02b', x'f3a87a47502e448aab3594df9cfc4cc0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5c22246677fd488490ddb75f168bd02b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c22246677fd488490ddb75f168bd02b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c22246677fd488490ddb75f168bd02b', x'093c129bbcd24453a1401dd9c9d3f6a0', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188ffac02_f6180435d481217e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'8fe2386539394c3e8c571ccc9dc8ddd6', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account8fe23865-3939-4c3e-8c57-1ccc9dc8ddd6' WHERE `accounts`.`id` = x'8fe2386539394c3e8c571ccc9dc8ddd6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8fe2386539394c3e8c571ccc9dc8ddd6', x'72c5b69d62a84c12b0039a1379b71e4d', x'a8ccfb50a23e403d806043a77dcb76e9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'72c5b69d62a84c12b0039a1379b71e4d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'72c5b69d62a84c12b0039a1379b71e4d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'72c5b69d62a84c12b0039a1379b71e4d', x'251f50871cfe4289bfeb7864c7f5d8d1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'72c5b69d62a84c12b0039a1379b71e4d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'72c5b69d62a84c12b0039a1379b71e4d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'72c5b69d62a84c12b0039a1379b71e4d', x'9b44dd31c843410bbc4580d4c535083a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8ccfb50a23e403d806043a77dcb76e9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8ccfb50a23e403d806043a77dcb76e9' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8ccfb50a23e403d806043a77dcb76e9' LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"D3BE8505456B4282874E3CE7701731C1"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a8ccfb50a23e403d806043a77dcb76e9' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a8ccfb50a23e403d806043a77dcb76e9' AND `account_users`.`account_id` = x'd3be8505456b4282874e3ce7701731c1' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5c22246677fd488490ddb75f168bd02b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5c22246677fd488490ddb75f168bd02b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd3be8505456b4282874e3ce7701731c1' LIMIT 1 Completed 200 OK in 21ms (Views: 3.9ms | ActiveRecord: 3.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:51', 'teste@teste.com', '$2a$04$IYEnKSzLatnwbgp0pifle.ZE4c7X2FXWVqdYl8nHKIovmeGPLHTXu', NULL, x'22460bcacbbf4e7ba71674d797640392', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:51') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'22460bcacbbf4e7ba71674d797640392' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:51', 'User', x'f9b9355ee66245539d1c9879b9e85e3a', '54fcfbde3b527c74d255eab57e913392', x'22460bcacbbf4e7ba71674d797640392', 'User', '2012-12-31 12:45:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'22460bcacbbf4e7ba71674d797640392' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'8a8cd1608605427a8783d394ef854c59', NULL, NULL, NULL, '2012-12-31 12:45:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account8a8cd160-8605-427a-8783-d394ef854c59' WHERE `accounts`.`id` = x'8a8cd1608605427a8783d394ef854c59' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8a8cd1608605427a8783d394ef854c59' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a8cd1608605427a8783d394ef854c59', x'08cdbfd323304576bbdd38617d409fc3', x'22460bcacbbf4e7ba71674d797640392') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'08cdbfd323304576bbdd38617d409fc3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08cdbfd323304576bbdd38617d409fc3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08cdbfd323304576bbdd38617d409fc3', x'8b2478c39cb84eda89a87e0c5fd7da53', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'08cdbfd323304576bbdd38617d409fc3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08cdbfd323304576bbdd38617d409fc3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08cdbfd323304576bbdd38617d409fc3', x'52313f74c9164371a8defbab940ed32a', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188ff229a9_f6180435d4812241@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'03c3edcbee094a5688263077eca4db12', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account03c3edcb-ee09-4a56-8826-3077eca4db12' WHERE `accounts`.`id` = x'03c3edcbee094a5688263077eca4db12'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'03c3edcbee094a5688263077eca4db12', x'c8fc65a9e60c4d00abb40bd9ff41bd2d', x'22460bcacbbf4e7ba71674d797640392') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c8fc65a9e60c4d00abb40bd9ff41bd2d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c8fc65a9e60c4d00abb40bd9ff41bd2d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c8fc65a9e60c4d00abb40bd9ff41bd2d', x'88d4f3116ca64ba991c75a70f36ee0bf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c8fc65a9e60c4d00abb40bd9ff41bd2d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c8fc65a9e60c4d00abb40bd9ff41bd2d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c8fc65a9e60c4d00abb40bd9ff41bd2d', x'7c7251ca5fab4c02af066ab0d4a69ef9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22460bcacbbf4e7ba71674d797640392' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22460bcacbbf4e7ba71674d797640392' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22460bcacbbf4e7ba71674d797640392' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"8A8CD1608605427A8783D394EF854C59"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22460bcacbbf4e7ba71674d797640392' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'22460bcacbbf4e7ba71674d797640392' AND `account_users`.`account_id` = x'8a8cd1608605427a8783d394ef854c59' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'08cdbfd323304576bbdd38617d409fc3' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'08cdbfd323304576bbdd38617d409fc3' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'8a8cd1608605427a8783d394ef854c59' AND `users`.`email` = 'create@controller.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'8a8cd1608605427a8783d394ef854c59', 'create@controller.teste', x'bcb5de4ed94c4f5ba0e0b0324a1af2f6', x'22460bcacbbf4e7ba71674d797640392', NULL, '2012-12-31 12:45:51', '_BpL_D81r6VYczFr7QT28t7KxCk') Sent mail to create@controller.teste (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e188ff47467_f6180435d48123c2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/bcb5de4e-d94c-4f5b-a0e0-b0324a1af2f6_BpL_D81r6VYczFr7QT28t7KxCk  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/8A8CD1608605427A8783D394EF854C59/users Completed 302 Found in 128ms (ActiveRecord: 2.3ms)  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:51', 'teste@teste.com', '$2a$04$DqNYVgp//ucDAR9rk06vBu1sFgQFwc8XYqU50m4BTXgsMOJSSbKLW', NULL, x'c1bb861a8bbc44b5b0cdc9cc7ba832a9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c1bb861a8bbc44b5b0cdc9cc7ba832a9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:51', 'User', x'02506436ec8644ed9d2ee45ead07bbbe', '226c1fea736d29534df5b7423f40b5bb', x'c1bb861a8bbc44b5b0cdc9cc7ba832a9', 'User', '2012-12-31 12:45:51') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c1bb861a8bbc44b5b0cdc9cc7ba832a9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'8a367ccc904041438e0488860b76bfd7', NULL, NULL, NULL, '2012-12-31 12:45:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account8a367ccc-9040-4143-8e04-88860b76bfd7' WHERE `accounts`.`id` = x'8a367ccc904041438e0488860b76bfd7' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8a367ccc904041438e0488860b76bfd7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a367ccc904041438e0488860b76bfd7', x'75cec4ae6c1d40ba93b967f164bfb73b', x'c1bb861a8bbc44b5b0cdc9cc7ba832a9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'75cec4ae6c1d40ba93b967f164bfb73b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'75cec4ae6c1d40ba93b967f164bfb73b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'75cec4ae6c1d40ba93b967f164bfb73b', x'c87dad47d6894efc9382d09ba6e8eba2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'75cec4ae6c1d40ba93b967f164bfb73b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'75cec4ae6c1d40ba93b967f164bfb73b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'75cec4ae6c1d40ba93b967f164bfb73b', x'7bdafc18b58c41ca868898cf56283c3b', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188ff54dfb_f6180435d4812458@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'bcf907a3e6ab4887a8e5c1ace342d1b9', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'accountbcf907a3-e6ab-4887-a8e5-c1ace342d1b9' WHERE `accounts`.`id` = x'bcf907a3e6ab4887a8e5c1ace342d1b9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bcf907a3e6ab4887a8e5c1ace342d1b9', x'86ad3d9938df42b88cc68659369bfdd6', x'c1bb861a8bbc44b5b0cdc9cc7ba832a9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'86ad3d9938df42b88cc68659369bfdd6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86ad3d9938df42b88cc68659369bfdd6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86ad3d9938df42b88cc68659369bfdd6', x'08d49f3d1bc74319beea3311daa88297', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'86ad3d9938df42b88cc68659369bfdd6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86ad3d9938df42b88cc68659369bfdd6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86ad3d9938df42b88cc68659369bfdd6', x'807dff03d892489d8311e5f9b7114d50', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1bb861a8bbc44b5b0cdc9cc7ba832a9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1bb861a8bbc44b5b0cdc9cc7ba832a9' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1bb861a8bbc44b5b0cdc9cc7ba832a9' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"8A367CCC904041438E0488860B76BFD7"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c1bb861a8bbc44b5b0cdc9cc7ba832a9' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c1bb861a8bbc44b5b0cdc9cc7ba832a9' AND `account_users`.`account_id` = x'8a367ccc904041438e0488860b76bfd7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'75cec4ae6c1d40ba93b967f164bfb73b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'75cec4ae6c1d40ba93b967f164bfb73b' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'8a367ccc904041438e0488860b76bfd7' AND `users`.`email` = 'create@controller.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'8a367ccc904041438e0488860b76bfd7', 'create@controller.teste', x'fb53e528bebf45a9853b61871aa21471', x'c1bb861a8bbc44b5b0cdc9cc7ba832a9', NULL, '2012-12-31 12:45:51', '3OpjXAZYxVn9W88ahRGbjIEeV90') Sent mail to create@controller.teste (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e188ff62acd_f6180435d4812527@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/fb53e528-bebf-45a9-853b-61871aa214713OpjXAZYxVn9W88ahRGbjIEeV90  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/8A367CCC904041438E0488860B76BFD7/users Completed 302 Found in 32ms (ActiveRecord: 2.2ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:51', 'teste@teste.com', '$2a$04$J0T1hu/PYI2ag0iLXdJHPuZSivBPb1kclTerg0x/gIKH73JMZCUBO', NULL, x'dfd607c85b2644f2ba60342d75a72efc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dfd607c85b2644f2ba60342d75a72efc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:51', 'User', x'28dfa3b1fcd14402891952f63439a2d7', '047b2b56a9d05bd92b18a7614c7e1cb6', x'dfd607c85b2644f2ba60342d75a72efc', 'User', '2012-12-31 12:45:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dfd607c85b2644f2ba60342d75a72efc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'c11a2fc9ab92437fa32aade0b3e00259', NULL, NULL, NULL, '2012-12-31 12:45:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'accountc11a2fc9-ab92-437f-a32a-ade0b3e00259' WHERE `accounts`.`id` = x'c11a2fc9ab92437fa32aade0b3e00259' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c11a2fc9ab92437fa32aade0b3e00259' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c11a2fc9ab92437fa32aade0b3e00259', x'129bed5b62054d60aeb694c72add2765', x'dfd607c85b2644f2ba60342d75a72efc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'129bed5b62054d60aeb694c72add2765') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'129bed5b62054d60aeb694c72add2765' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'129bed5b62054d60aeb694c72add2765', x'577341a0e38a4123a9e34c781ce0b779', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'129bed5b62054d60aeb694c72add2765') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'129bed5b62054d60aeb694c72add2765' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'129bed5b62054d60aeb694c72add2765', x'7507a3ca30a2445990e2d64d1e76bff6', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188ff6fc3a_f6180435d481265d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'6cbe18f7fe6b4a4a815bd7828a1618a5', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account6cbe18f7-fe6b-4a4a-815b-d7828a1618a5' WHERE `accounts`.`id` = x'6cbe18f7fe6b4a4a815bd7828a1618a5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6cbe18f7fe6b4a4a815bd7828a1618a5', x'451082c584094af09d4a15e6f30d8ed8', x'dfd607c85b2644f2ba60342d75a72efc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'451082c584094af09d4a15e6f30d8ed8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'451082c584094af09d4a15e6f30d8ed8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'451082c584094af09d4a15e6f30d8ed8', x'f7b5e476acf24f7ca6966789f5aca0e2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'451082c584094af09d4a15e6f30d8ed8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'451082c584094af09d4a15e6f30d8ed8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'451082c584094af09d4a15e6f30d8ed8', x'48e2ffd2298c4b3b884376dc56af58f8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dfd607c85b2644f2ba60342d75a72efc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dfd607c85b2644f2ba60342d75a72efc' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dfd607c85b2644f2ba60342d75a72efc' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"C11A2FC9AB92437FA32AADE0B3E00259"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'dfd607c85b2644f2ba60342d75a72efc' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'dfd607c85b2644f2ba60342d75a72efc' AND `account_users`.`account_id` = x'c11a2fc9ab92437fa32aade0b3e00259' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'129bed5b62054d60aeb694c72add2765' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'129bed5b62054d60aeb694c72add2765' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'c11a2fc9ab92437fa32aade0b3e00259' AND `users`.`email` = 'create@controller.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'c11a2fc9ab92437fa32aade0b3e00259', 'create@controller.teste', x'4d6ba44b25da4d9a93710d0074eeb51a', x'dfd607c85b2644f2ba60342d75a72efc', NULL, '2012-12-31 12:45:51', 'rI_zao8qAvU_s8uGXcbYeR3vF_Q') Sent mail to create@controller.teste (6ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: create@controller.teste Message-ID: <50e188ff7d996_f6180435d48127fe@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4d6ba44b-25da-4d9a-9371-0d0074eeb51arI_zao8qAvU_s8uGXcbYeR3vF_Q  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/C11A2FC9AB92437FA32AADE0B3E00259/users Completed 302 Found in 32ms (ActiveRecord: 1.9ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"C11A2FC9AB92437FA32AADE0B3E00259"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'dfd607c85b2644f2ba60342d75a72efc' AND `account_users`.`account_id` = x'c11a2fc9ab92437fa32aade0b3e00259' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'129bed5b62054d60aeb694c72add2765' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'129bed5b62054d60aeb694c72add2765' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c11a2fc9ab92437fa32aade0b3e00259' LIMIT 1 Completed 200 OK in 8ms (Views: 1.8ms | ActiveRecord: 1.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:51', 'teste@teste.com', '$2a$04$x/kNKQZkPYDmW/TSakdUQehLt77GmOyP0z9a8GrCJPQy36vUqClQ2', NULL, x'd6c4fa58379d462799de5a00f2e16903', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd6c4fa58379d462799de5a00f2e16903' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:51', 'User', x'85d04129eefc461ab65312b63e5f8d6c', 'aec0d318f0fa57b0543fb76172348c94', x'd6c4fa58379d462799de5a00f2e16903', 'User', '2012-12-31 12:45:51') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd6c4fa58379d462799de5a00f2e16903' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'3956631cc7554f89af63bee2ba4906dc', NULL, NULL, NULL, '2012-12-31 12:45:51')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account3956631c-c755-4f89-af63-bee2ba4906dc' WHERE `accounts`.`id` = x'3956631cc7554f89af63bee2ba4906dc' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3956631cc7554f89af63bee2ba4906dc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3956631cc7554f89af63bee2ba4906dc', x'df8d95df7bf64589b6c5e25db40ce947', x'd6c4fa58379d462799de5a00f2e16903') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'df8d95df7bf64589b6c5e25db40ce947') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df8d95df7bf64589b6c5e25db40ce947' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df8d95df7bf64589b6c5e25db40ce947', x'acc69be2c315418084853bcb14c3354f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'df8d95df7bf64589b6c5e25db40ce947') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df8d95df7bf64589b6c5e25db40ce947' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df8d95df7bf64589b6c5e25db40ce947', x'9c6a1dec7ad04b20b3b434eed5c7126b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188ff8d433_f6180435d48128fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'815aabbf78f343d0b46b1ae8afcabf81', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account815aabbf-78f3-43d0-b46b-1ae8afcabf81' WHERE `accounts`.`id` = x'815aabbf78f343d0b46b1ae8afcabf81'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'815aabbf78f343d0b46b1ae8afcabf81', x'63a538b650fd4ab7a356cbd920d90d4c', x'd6c4fa58379d462799de5a00f2e16903') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'63a538b650fd4ab7a356cbd920d90d4c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'63a538b650fd4ab7a356cbd920d90d4c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'63a538b650fd4ab7a356cbd920d90d4c', x'72e3af8aedbd431aa6e200e0dc0f28f2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'63a538b650fd4ab7a356cbd920d90d4c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'63a538b650fd4ab7a356cbd920d90d4c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'63a538b650fd4ab7a356cbd920d90d4c', x'7d545d6ee0e94c559d50a1d539ac26a2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd6c4fa58379d462799de5a00f2e16903' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd6c4fa58379d462799de5a00f2e16903' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'd50f39e511234a73b8e0023acdea1905', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'accountd50f39e5-1123-4a73-b8e0-023acdea1905' WHERE `accounts`.`id` = x'd50f39e511234a73b8e0023acdea1905'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'd50f39e511234a73b8e0023acdea1905' AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'd50f39e511234a73b8e0023acdea1905', 'teste@teste.teste', x'90b94fc11f8c4c50adb49b4575c0dd91', NULL, NULL, '2012-12-31 12:45:51', 'Lrqoe2iFMoEXVc9HlmfJl1hhguI') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e188ffaf4d5_f6180435d4812940@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/90b94fc1-1f8c-4c50-adb4-9b4575c0dd91Lrqoe2iFMoEXVc9HlmfJl1hhguI  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = x'd6c4fa58379d462799de5a00f2e16903' WHERE `user_invitations`.`id` = x'90b94fc11f8c4c50adb49b4575c0dd91'  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd6c4fa58379d462799de5a00f2e16903' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'61626262626261616161616363636363' LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:51', 'teste@teste.com', '$2a$04$qIst4HGsDUB3CfSXzcRiNeYs39R9HCXoIPSMA567b8CpqeaAi.kpe', NULL, x'a5b8f19e21134851a14af2b5c5660faf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a5b8f19e21134851a14af2b5c5660faf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:51', 'User', x'197cf0f695044e4db80ac30c9bf58560', '9edb5228db1da535666576d4f489430c', x'a5b8f19e21134851a14af2b5c5660faf', 'User', '2012-12-31 12:45:51') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a5b8f19e21134851a14af2b5c5660faf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'b50d3194c80144289a3c06494160e31a', NULL, NULL, NULL, '2012-12-31 12:45:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'accountb50d3194-c801-4428-9a3c-06494160e31a' WHERE `accounts`.`id` = x'b50d3194c80144289a3c06494160e31a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b50d3194c80144289a3c06494160e31a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b50d3194c80144289a3c06494160e31a', x'afa0e311029b43d88226b481077e1320', x'a5b8f19e21134851a14af2b5c5660faf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'afa0e311029b43d88226b481077e1320') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'afa0e311029b43d88226b481077e1320' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'afa0e311029b43d88226b481077e1320', x'c581767ff47342de88e4252a8597494d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'afa0e311029b43d88226b481077e1320') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'afa0e311029b43d88226b481077e1320' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'afa0e311029b43d88226b481077e1320', x'77ac5f154859454a9375c48b025b473d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188ffbd9a3_f6180435d48130fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'43ce19a474804c12be7f02e1670b4dd7', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account43ce19a4-7480-4c12-be7f-02e1670b4dd7' WHERE `accounts`.`id` = x'43ce19a474804c12be7f02e1670b4dd7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'43ce19a474804c12be7f02e1670b4dd7', x'adc3d38a36364e10b89dbc7ccadb118a', x'a5b8f19e21134851a14af2b5c5660faf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'adc3d38a36364e10b89dbc7ccadb118a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'adc3d38a36364e10b89dbc7ccadb118a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'adc3d38a36364e10b89dbc7ccadb118a', x'4c986186268b46128a4b0117b69eddff', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'adc3d38a36364e10b89dbc7ccadb118a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'adc3d38a36364e10b89dbc7ccadb118a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'adc3d38a36364e10b89dbc7ccadb118a', x'e386d3efba0643059c3a80b4039cda32', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a5b8f19e21134851a14af2b5c5660faf' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a5b8f19e21134851a14af2b5c5660faf' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'3964ea7e39a44eea9dd72df5138b0f1a', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account3964ea7e-39a4-4eea-9dd7-2df5138b0f1a' WHERE `accounts`.`id` = x'3964ea7e39a44eea9dd72df5138b0f1a'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'3964ea7e39a44eea9dd72df5138b0f1a' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'3964ea7e39a44eea9dd72df5138b0f1a', 'teste@teste.teste', x'7715e90e372f4e8993b112d23d6a1a8e', NULL, NULL, '2012-12-31 12:45:51', 'suHpgS1z6rK63KxepjnuXYPiA0Q') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e188ffca177_f6180435d481314b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/7715e90e-372f-4e89-93b1-12d23d6a1a8esuHpgS1z6rK63KxepjnuXYPiA0Q  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = x'a5b8f19e21134851a14af2b5c5660faf' WHERE `user_invitations`.`id` = x'7715e90e372f4e8993b112d23d6a1a8e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"7715e90e-372f-4e89-93b1-12d23d6a1a8esuHpgS1z6rK63KxepjnuXYPiA0Q"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a5b8f19e21134851a14af2b5c5660faf' LIMIT 1 UserInvitation Load (0.1ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'7715e90e372f4e8993b112d23d6a1a8e' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a5b8f19e21134851a14af2b5c5660faf' LIMIT 1 Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:51', 'teste@teste.com', '$2a$04$PlRv89dahGk5za9mUg1dKube9OYJbxT4l5wBytUJws7x1AgJM.AFi', NULL, x'c7d7fba68a8244cc95cb13ae97696e1c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:51') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c7d7fba68a8244cc95cb13ae97696e1c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:51', 'User', x'a7f3472deff546f58fe23983c1232e7d', 'bc5bae5e1b5674f05acd5782885864e6', x'c7d7fba68a8244cc95cb13ae97696e1c', 'User', '2012-12-31 12:45:51') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c7d7fba68a8244cc95cb13ae97696e1c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'58dece19b49641b5b0b2c46fe38fc617', NULL, NULL, NULL, '2012-12-31 12:45:51')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account58dece19-b496-41b5-b0b2-c46fe38fc617' WHERE `accounts`.`id` = x'58dece19b49641b5b0b2c46fe38fc617' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'58dece19b49641b5b0b2c46fe38fc617' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'58dece19b49641b5b0b2c46fe38fc617', x'dd4bcfd558734f60a5f10def63fda65d', x'c7d7fba68a8244cc95cb13ae97696e1c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dd4bcfd558734f60a5f10def63fda65d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dd4bcfd558734f60a5f10def63fda65d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dd4bcfd558734f60a5f10def63fda65d', x'4ff99042da52491f866dcc233a72d057', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dd4bcfd558734f60a5f10def63fda65d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dd4bcfd558734f60a5f10def63fda65d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dd4bcfd558734f60a5f10def63fda65d', x'b86ef9bbe7224edfb166f20ce7d0fb90', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e188ffd98bb_f6180435d4813266@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'1275b0ad483641288057c09626101bcc', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account1275b0ad-4836-4128-8057-c09626101bcc' WHERE `accounts`.`id` = x'1275b0ad483641288057c09626101bcc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1275b0ad483641288057c09626101bcc', x'b2cf2621ba694c23b548a3ad9e3b0eb7', x'c7d7fba68a8244cc95cb13ae97696e1c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b2cf2621ba694c23b548a3ad9e3b0eb7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b2cf2621ba694c23b548a3ad9e3b0eb7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b2cf2621ba694c23b548a3ad9e3b0eb7', x'5f029d0e65b541979ca78829ff1e7c4f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b2cf2621ba694c23b548a3ad9e3b0eb7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b2cf2621ba694c23b548a3ad9e3b0eb7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b2cf2621ba694c23b548a3ad9e3b0eb7', x'5210351dec2c4eb4a20a965b8e676c0d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c7d7fba68a8244cc95cb13ae97696e1c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c7d7fba68a8244cc95cb13ae97696e1c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'87b1e26861f84feb9a48e6cebcc48da1', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account87b1e268-61f8-4feb-9a48-e6cebcc48da1' WHERE `accounts`.`id` = x'87b1e26861f84feb9a48e6cebcc48da1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:51', x'66d33d37f2de4b0ba7bc610b4f3ec516', 'jabanilson', NULL, 1, '2012-12-31 12:45:51')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:51', `updated_at` = '2012-12-31 12:45:51', `subdomain` = 'account66d33d37-f2de-4b0b-a7bc-610b4f3ec516' WHERE `accounts`.`id` = x'66d33d37f2de4b0ba7bc610b4f3ec516'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'66d33d37f2de4b0ba7bc610b4f3ec516' AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'66d33d37f2de4b0ba7bc610b4f3ec516', 'teste@teste.teste', x'7bd50f4085fb4278afb5b6700cddca0c', NULL, NULL, '2012-12-31 12:45:51', 'sAozGOE7UZzcN-HwRm5yeVPSdDk') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:45:51 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e188ffe664e_f6180435d48133d7@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/7bd50f40-85fb-4278-afb5-b6700cddca0csAozGOE7UZzcN-HwRm5yeVPSdDk  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'87b1e26861f84feb9a48e6cebcc48da1' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'87b1e26861f84feb9a48e6cebcc48da1' WHERE `user_invitations`.`id` = x'7bd50f4085fb4278afb5b6700cddca0c'  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c7d7fba68a8244cc95cb13ae97696e1c' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'61626262626261616161616363636363' LIMIT 1 Completed 404 Not Found in 3ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:51', 'teste@teste.com', '$2a$04$.hrmVu1z4jGg6K97T/H8VuPXNMAPklM.7z3Phk5hcV9JibYI7azx2', NULL, x'fa95b938f4ff442a9844d336ed5cf78d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:51') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fa95b938f4ff442a9844d336ed5cf78d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:52', 'User', x'dbc7433dcab144a2892fd60dba9115a7', '019448414daff54e5d0d48d54d630192', x'fa95b938f4ff442a9844d336ed5cf78d', 'User', '2012-12-31 12:45:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fa95b938f4ff442a9844d336ed5cf78d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'37578d8d586046e8adece654637fd1dd', NULL, NULL, NULL, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account37578d8d-5860-46e8-adec-e654637fd1dd' WHERE `accounts`.`id` = x'37578d8d586046e8adece654637fd1dd' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'37578d8d586046e8adece654637fd1dd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'37578d8d586046e8adece654637fd1dd', x'089f4bcee11e407599b6fd98a973a997', x'fa95b938f4ff442a9844d336ed5cf78d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'089f4bcee11e407599b6fd98a973a997') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'089f4bcee11e407599b6fd98a973a997' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'089f4bcee11e407599b6fd98a973a997', x'f49e2de7e93e44d08f7c7d17658883c8', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'089f4bcee11e407599b6fd98a973a997') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'089f4bcee11e407599b6fd98a973a997' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'089f4bcee11e407599b6fd98a973a997', x'aaa0b6d7222443cea744e22c592786f2', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890017c0f_f6180435d48134c8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'f0af21d108d84d799fc5d5af25740779', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accountf0af21d1-08d8-4d79-9fc5-d5af25740779' WHERE `accounts`.`id` = x'f0af21d108d84d799fc5d5af25740779'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f0af21d108d84d799fc5d5af25740779', x'800451ff9f1f4a9fb9c9742442111f73', x'fa95b938f4ff442a9844d336ed5cf78d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'800451ff9f1f4a9fb9c9742442111f73') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'800451ff9f1f4a9fb9c9742442111f73' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'800451ff9f1f4a9fb9c9742442111f73', x'f08fe95ec7314196a43ec5cc65d72fe2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'800451ff9f1f4a9fb9c9742442111f73') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'800451ff9f1f4a9fb9c9742442111f73' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'800451ff9f1f4a9fb9c9742442111f73', x'1fde66a644124e9e814249dfba9b87fe', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa95b938f4ff442a9844d336ed5cf78d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fa95b938f4ff442a9844d336ed5cf78d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'2bf0c054a5e84573b808dcd8f2884a6f', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account2bf0c054-a5e8-4573-b808-dcd8f2884a6f' WHERE `accounts`.`id` = x'2bf0c054a5e84573b808dcd8f2884a6f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'e67bf1aefc0141d0acbd3082d33b0989', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accounte67bf1ae-fc01-41d0-acbd-3082d33b0989' WHERE `accounts`.`id` = x'e67bf1aefc0141d0acbd3082d33b0989'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'e67bf1aefc0141d0acbd3082d33b0989' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'e67bf1aefc0141d0acbd3082d33b0989', 'teste@teste.teste', x'9bb1de570c864b8c9f8acbc892393caf', NULL, NULL, '2012-12-31 12:45:52', 'TkPZTToDj6XSsmeb56AqgFlOFB0') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1890024173_f6180435d48135df@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9bb1de57-0c86-4b8c-9f8a-cbc892393cafTkPZTToDj6XSsmeb56AqgFlOFB0  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'2bf0c054a5e84573b808dcd8f2884a6f' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'2bf0c054a5e84573b808dcd8f2884a6f' WHERE `user_invitations`.`id` = x'9bb1de570c864b8c9f8acbc892393caf'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9bb1de57-0c86-4b8c-9f8a-cbc892393cafTkPZTToDj6XSsmeb56AqgFlOFB0"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fa95b938f4ff442a9844d336ed5cf78d' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'9bb1de570c864b8c9f8acbc892393caf' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2bf0c054a5e84573b808dcd8f2884a6f' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'2bf0c054a5e84573b808dcd8f2884a6f' AND `account_users`.`user_id` = x'fa95b938f4ff442a9844d336ed5cf78d'  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2bf0c054a5e84573b808dcd8f2884a6f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2bf0c054a5e84573b808dcd8f2884a6f', x'5bd1e0dfcfa54579ad353a2cba2c2b4d', x'fa95b938f4ff442a9844d336ed5cf78d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5bd1e0dfcfa54579ad353a2cba2c2b4d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5bd1e0dfcfa54579ad353a2cba2c2b4d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5bd1e0dfcfa54579ad353a2cba2c2b4d', x'490a40972b994ec3bcfb88bb3933a986', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5bd1e0dfcfa54579ad353a2cba2c2b4d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5bd1e0dfcfa54579ad353a2cba2c2b4d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5bd1e0dfcfa54579ad353a2cba2c2b4d', x'a0e9836588e44a39bd9b044f1e0aef29', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 17ms (ActiveRecord: 3.1ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:52', 'teste@teste.com', '$2a$04$NI6//BSrkLBBpo1m.XJs0ujqoXqulMPIyuk9SktBYL.6lahMLFk/C', NULL, x'15f71c5095534ef4b67cfce0b6d0acd7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'15f71c5095534ef4b67cfce0b6d0acd7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:52', 'User', x'ddfd46e39fcc44f1a51cff6928972443', '0d8361dec6c6f8609e2180c76ca7b92a', x'15f71c5095534ef4b67cfce0b6d0acd7', 'User', '2012-12-31 12:45:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'15f71c5095534ef4b67cfce0b6d0acd7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'b63abf81e2534472b58e892304d200fa', NULL, NULL, NULL, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accountb63abf81-e253-4472-b58e-892304d200fa' WHERE `accounts`.`id` = x'b63abf81e2534472b58e892304d200fa' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b63abf81e2534472b58e892304d200fa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b63abf81e2534472b58e892304d200fa', x'dd9489f67f5141ebb2183d1e94ea9a03', x'15f71c5095534ef4b67cfce0b6d0acd7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dd9489f67f5141ebb2183d1e94ea9a03') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dd9489f67f5141ebb2183d1e94ea9a03' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dd9489f67f5141ebb2183d1e94ea9a03', x'697c30b53bef4328874d013224e5393c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dd9489f67f5141ebb2183d1e94ea9a03') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dd9489f67f5141ebb2183d1e94ea9a03' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dd9489f67f5141ebb2183d1e94ea9a03', x'524babd5cd024671ad78e1844c82eb84', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189003779c_f6180435d4813612@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'40256fd42ac94879b197c04de65db7bd', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account40256fd4-2ac9-4879-b197-c04de65db7bd' WHERE `accounts`.`id` = x'40256fd42ac94879b197c04de65db7bd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'40256fd42ac94879b197c04de65db7bd', x'4f653cd907e04d02855e435055829fa0', x'15f71c5095534ef4b67cfce0b6d0acd7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4f653cd907e04d02855e435055829fa0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f653cd907e04d02855e435055829fa0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f653cd907e04d02855e435055829fa0', x'4894ee9e12bf41a09f54f796e6ef9a32', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4f653cd907e04d02855e435055829fa0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f653cd907e04d02855e435055829fa0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f653cd907e04d02855e435055829fa0', x'55cd296728574afda72be6dce732265e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'15f71c5095534ef4b67cfce0b6d0acd7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'15f71c5095534ef4b67cfce0b6d0acd7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'db799e31a1dc4eb481ecd8d48a458602', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accountdb799e31-a1dc-4eb4-81ec-d8d48a458602' WHERE `accounts`.`id` = x'db799e31a1dc4eb481ecd8d48a458602'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'd30c71c472514e279bd8f6078721292b', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accountd30c71c4-7251-4e27-9bd8-f6078721292b' WHERE `accounts`.`id` = x'd30c71c472514e279bd8f6078721292b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'd30c71c472514e279bd8f6078721292b' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'd30c71c472514e279bd8f6078721292b', 'teste@teste.teste', x'81d8b1b4c6a144dca832010995a2982b', NULL, NULL, '2012-12-31 12:45:52', 'eVEiur5Rso6tlrFWCh6sowcvxu8') Sent mail to teste@teste.teste (8ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e189004426d_f6180435d4813766@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/81d8b1b4-c6a1-44dc-a832-010995a2982beVEiur5Rso6tlrFWCh6sowcvxu8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'db799e31a1dc4eb481ecd8d48a458602' AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = x'db799e31a1dc4eb481ecd8d48a458602' WHERE `user_invitations`.`id` = x'81d8b1b4c6a144dca832010995a2982b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'db799e31a1dc4eb481ecd8d48a458602' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'db799e31a1dc4eb481ecd8d48a458602', x'c4e65168613a474f9f2cbe74ecb32593', x'15f71c5095534ef4b67cfce0b6d0acd7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c4e65168613a474f9f2cbe74ecb32593') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4e65168613a474f9f2cbe74ecb32593' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4e65168613a474f9f2cbe74ecb32593', x'409dc033d68c49edab17d9e8d2d03826', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c4e65168613a474f9f2cbe74ecb32593') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4e65168613a474f9f2cbe74ecb32593' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4e65168613a474f9f2cbe74ecb32593', x'573974e62db14629a3c57a88182fb6b1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"81d8b1b4-c6a1-44dc-a832-010995a2982beVEiur5Rso6tlrFWCh6sowcvxu8"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'15f71c5095534ef4b67cfce0b6d0acd7' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'81d8b1b4c6a144dca832010995a2982b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'db799e31a1dc4eb481ecd8d48a458602' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'db799e31a1dc4eb481ecd8d48a458602' AND `account_users`.`user_id` = x'15f71c5095534ef4b67cfce0b6d0acd7' Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:52', 'teste@teste.com', '$2a$04$nZlgQTMWqCRER3lUCUxo8.D3zo9oNDjx6X2gEpMxb9PvQiTai9Yky', NULL, x'9a61de2f65a349ed82e9ccb40d9f922e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:52') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9a61de2f65a349ed82e9ccb40d9f922e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:52', 'User', x'fb36581527344cec9652b8f791f1b925', '88deafadec7835fec363caeae3994bd1', x'9a61de2f65a349ed82e9ccb40d9f922e', 'User', '2012-12-31 12:45:52') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9a61de2f65a349ed82e9ccb40d9f922e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'a6773678b68a414994fc2e4c5b052e5b', NULL, NULL, NULL, '2012-12-31 12:45:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accounta6773678-b68a-4149-94fc-2e4c5b052e5b' WHERE `accounts`.`id` = x'a6773678b68a414994fc2e4c5b052e5b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a6773678b68a414994fc2e4c5b052e5b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a6773678b68a414994fc2e4c5b052e5b', x'a69ed27710474221aed0d848b70040dd', x'9a61de2f65a349ed82e9ccb40d9f922e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a69ed27710474221aed0d848b70040dd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a69ed27710474221aed0d848b70040dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a69ed27710474221aed0d848b70040dd', x'b5ab1a76b1b944949416e02faa555886', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a69ed27710474221aed0d848b70040dd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a69ed27710474221aed0d848b70040dd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a69ed27710474221aed0d848b70040dd', x'a82f4897870148329ae8958b10b947f2', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189006d613_f6180435d4813852@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'e96ee45fb5424ee38a93d542b7a4021d', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accounte96ee45f-b542-4ee3-8a93-d542b7a4021d' WHERE `accounts`.`id` = x'e96ee45fb5424ee38a93d542b7a4021d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e96ee45fb5424ee38a93d542b7a4021d', x'02868f4d5424402ebc9713705024d5df', x'9a61de2f65a349ed82e9ccb40d9f922e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'02868f4d5424402ebc9713705024d5df') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'02868f4d5424402ebc9713705024d5df' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'02868f4d5424402ebc9713705024d5df', x'f648fdd62fc946a58ec1fa42bb800046', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'02868f4d5424402ebc9713705024d5df') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'02868f4d5424402ebc9713705024d5df' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'02868f4d5424402ebc9713705024d5df', x'92a958be1a5c4345ad011ca2c669ba98', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9a61de2f65a349ed82e9ccb40d9f922e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9a61de2f65a349ed82e9ccb40d9f922e' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'fc490d7ae86544b5b607bbcb815092e0', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accountfc490d7a-e865-44b5-b607-bbcb815092e0' WHERE `accounts`.`id` = x'fc490d7ae86544b5b607bbcb815092e0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'8cb970e4962e4574914b58f80b19d6f7', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account8cb970e4-962e-4574-914b-58f80b19d6f7' WHERE `accounts`.`id` = x'8cb970e4962e4574914b58f80b19d6f7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'8cb970e4962e4574914b58f80b19d6f7' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'8cb970e4962e4574914b58f80b19d6f7', 'teste@teste.teste', x'5c3299d03dd64712987beaebe449927d', NULL, NULL, '2012-12-31 12:45:52', 'AmhV1AHwdDLXqNHnyTTho8b10hY') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18900799fe_f6180435d4813916@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/5c3299d0-3dd6-4712-987b-eaebe449927dAmhV1AHwdDLXqNHnyTTho8b10hY  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'fc490d7ae86544b5b607bbcb815092e0' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'fc490d7ae86544b5b607bbcb815092e0' WHERE `user_invitations`.`id` = x'5c3299d03dd64712987beaebe449927d'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fc490d7ae86544b5b607bbcb815092e0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fc490d7ae86544b5b607bbcb815092e0', x'51bb8a30bda24176bd76cfe119f5d308', x'9a61de2f65a349ed82e9ccb40d9f922e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'51bb8a30bda24176bd76cfe119f5d308') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'51bb8a30bda24176bd76cfe119f5d308' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'51bb8a30bda24176bd76cfe119f5d308', x'2eb5bc9e1c5348fca834559b3d32422e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'51bb8a30bda24176bd76cfe119f5d308') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'51bb8a30bda24176bd76cfe119f5d308' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'51bb8a30bda24176bd76cfe119f5d308', x'20d9422e55b44ec7a1bce680493a59d4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"5c3299d0-3dd6-4712-987b-eaebe449927dAmhV1AHwdDLXqNHnyTTho8b10hY"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9a61de2f65a349ed82e9ccb40d9f922e' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'5c3299d03dd64712987beaebe449927d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fc490d7ae86544b5b607bbcb815092e0' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'fc490d7ae86544b5b607bbcb815092e0' AND `account_users`.`user_id` = x'9a61de2f65a349ed82e9ccb40d9f922e' Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:52', 'teste@teste.com', '$2a$04$4cFRZEZ.uwP8GBRpBeMY3eQ7foWUPMr7nSY/Ay/ZJ1pk7sMXQuAcC', NULL, x'd8ef9bcb3ffd4d99954cc471aedaedc1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd8ef9bcb3ffd4d99954cc471aedaedc1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:52', 'User', x'46b80f59b2d447f1aa952bf0ee1462ca', 'b72779bbc02b63c021623638fc3f13e5', x'd8ef9bcb3ffd4d99954cc471aedaedc1', 'User', '2012-12-31 12:45:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd8ef9bcb3ffd4d99954cc471aedaedc1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'048b92f1b59b4f85a89cc927c44c5f76', NULL, NULL, NULL, '2012-12-31 12:45:52')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account048b92f1-b59b-4f85-a89c-c927c44c5f76' WHERE `accounts`.`id` = x'048b92f1b59b4f85a89cc927c44c5f76' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'048b92f1b59b4f85a89cc927c44c5f76' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'048b92f1b59b4f85a89cc927c44c5f76', x'89d6cdfb683a4a2b804689720bc441ac', x'd8ef9bcb3ffd4d99954cc471aedaedc1') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'89d6cdfb683a4a2b804689720bc441ac') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'89d6cdfb683a4a2b804689720bc441ac' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'89d6cdfb683a4a2b804689720bc441ac', x'9743006f091044429a580e23da54a66b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'89d6cdfb683a4a2b804689720bc441ac') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'89d6cdfb683a4a2b804689720bc441ac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'89d6cdfb683a4a2b804689720bc441ac', x'633bb6c6e46044b8b64be87d8da84a87', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189008cb40_f6180435d4814072@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'f005db556b944dff935051239ed873cc', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accountf005db55-6b94-4dff-9350-51239ed873cc' WHERE `accounts`.`id` = x'f005db556b944dff935051239ed873cc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f005db556b944dff935051239ed873cc', x'f837eed0026a4ab5aca9c237fe437317', x'd8ef9bcb3ffd4d99954cc471aedaedc1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f837eed0026a4ab5aca9c237fe437317') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f837eed0026a4ab5aca9c237fe437317' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f837eed0026a4ab5aca9c237fe437317', x'ce11978c7ce94c1bb02e87b1bb88acb3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f837eed0026a4ab5aca9c237fe437317') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f837eed0026a4ab5aca9c237fe437317' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f837eed0026a4ab5aca9c237fe437317', x'04b39fea5dce4a1e84f96f3b10dd7931', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd8ef9bcb3ffd4d99954cc471aedaedc1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd8ef9bcb3ffd4d99954cc471aedaedc1' LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd8ef9bcb3ffd4d99954cc471aedaedc1' LIMIT 1 Completed 404 Not Found in 3ms  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:52', 'teste@teste.com', '$2a$04$SXFlgPd7RyQtwGGTOnhTQ.Ki7/v5OSmys5PHEMn9857LajguVWOla', NULL, x'95974b0ae5664f5e84b054c51b696fb0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'95974b0ae5664f5e84b054c51b696fb0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:52', 'User', x'29b8a5edd38b4cd79493968d74a10389', '2e1fe78e4234fcdfea59d70942933a82', x'95974b0ae5664f5e84b054c51b696fb0', 'User', '2012-12-31 12:45:52') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'95974b0ae5664f5e84b054c51b696fb0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'949295acfc5342f28f1db29e5d21e579', NULL, NULL, NULL, '2012-12-31 12:45:52')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account949295ac-fc53-42f2-8f1d-b29e5d21e579' WHERE `accounts`.`id` = x'949295acfc5342f28f1db29e5d21e579' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'949295acfc5342f28f1db29e5d21e579' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'949295acfc5342f28f1db29e5d21e579', x'b9bb50168bd8428a90e9fba15b08a83e', x'95974b0ae5664f5e84b054c51b696fb0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b9bb50168bd8428a90e9fba15b08a83e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9bb50168bd8428a90e9fba15b08a83e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9bb50168bd8428a90e9fba15b08a83e', x'522a1096bc1542b4b04feeefe9018a5f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b9bb50168bd8428a90e9fba15b08a83e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9bb50168bd8428a90e9fba15b08a83e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9bb50168bd8428a90e9fba15b08a83e', x'0e29ce427f5a4907b2ff904898db196c', 'admin') Sent mail to teste@teste.com (10ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18900a0000_f6180435d48141d4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'90f289c725974cc7b6ff2a5398b69207', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account90f289c7-2597-4cc7-b6ff-2a5398b69207' WHERE `accounts`.`id` = x'90f289c725974cc7b6ff2a5398b69207'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'90f289c725974cc7b6ff2a5398b69207', x'2f6b45a66e9247fca8804f30e9404569', x'95974b0ae5664f5e84b054c51b696fb0') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2f6b45a66e9247fca8804f30e9404569') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2f6b45a66e9247fca8804f30e9404569' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2f6b45a66e9247fca8804f30e9404569', x'75a0dc44be9f4201b1d91f6554d16356', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2f6b45a66e9247fca8804f30e9404569') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2f6b45a66e9247fca8804f30e9404569' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2f6b45a66e9247fca8804f30e9404569', x'1cdad5b6afbc42ce936dcc8b881698d0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'95974b0ae5664f5e84b054c51b696fb0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'95974b0ae5664f5e84b054c51b696fb0' LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'95974b0ae5664f5e84b054c51b696fb0' LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:52', 'teste@teste.com', '$2a$04$s6nmSQUVGDBdwWwsIi8GV.Gk7GeK10yWf7jGAPdazICBtB1HjHVq6', NULL, x'a24e9754962947669b74649d39f3ef79', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:52') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a24e9754962947669b74649d39f3ef79' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:52', 'User', x'4a637aa590324bc1861685e2638728a7', '42838f955914a2a61484e4372d0fa1c6', x'a24e9754962947669b74649d39f3ef79', 'User', '2012-12-31 12:45:52') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a24e9754962947669b74649d39f3ef79' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'f6a60ebe60b5417e8184fc49eb9384b4', NULL, NULL, NULL, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accountf6a60ebe-60b5-417e-8184-fc49eb9384b4' WHERE `accounts`.`id` = x'f6a60ebe60b5417e8184fc49eb9384b4' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f6a60ebe60b5417e8184fc49eb9384b4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f6a60ebe60b5417e8184fc49eb9384b4', x'514cbadd4e0243c7910c083a39b1cf99', x'a24e9754962947669b74649d39f3ef79') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'514cbadd4e0243c7910c083a39b1cf99') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'514cbadd4e0243c7910c083a39b1cf99' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'514cbadd4e0243c7910c083a39b1cf99', x'9df987b454a448a8b6657ace1dd2ae51', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'514cbadd4e0243c7910c083a39b1cf99') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'514cbadd4e0243c7910c083a39b1cf99' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'514cbadd4e0243c7910c083a39b1cf99', x'd50ce918ed924ce481fc446d6aed5b18', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18900cc2d8_f6180435d4814293@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'07bd9414724c45359bc7a878f4451ad7', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account07bd9414-724c-4535-9bc7-a878f4451ad7' WHERE `accounts`.`id` = x'07bd9414724c45359bc7a878f4451ad7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'07bd9414724c45359bc7a878f4451ad7', x'50227a3ab3e14ff09c390638b52d6e70', x'a24e9754962947669b74649d39f3ef79') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'50227a3ab3e14ff09c390638b52d6e70') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50227a3ab3e14ff09c390638b52d6e70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50227a3ab3e14ff09c390638b52d6e70', x'd6e917fb3b454314930236d80ad811eb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'50227a3ab3e14ff09c390638b52d6e70') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50227a3ab3e14ff09c390638b52d6e70' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50227a3ab3e14ff09c390638b52d6e70', x'72d884e68e5440bdb3faa16cef743d1b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a24e9754962947669b74649d39f3ef79' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a24e9754962947669b74649d39f3ef79' LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a24e9754962947669b74649d39f3ef79' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'a24e9754962947669b74649d39f3ef79'  (0.5ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-12-31 12:45:52' WHERE `users`.`id` = x'a24e9754962947669b74649d39f3ef79'  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.7ms | ActiveRecord: 3.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:52', 'teste@teste.com', '$2a$04$.p/J/2XeKVEw3WagNba7ZuaXlMPZv6MdpwscLZvdBI4QIcC0U08Ce', NULL, x'c18683089c524b22a29bc857b0b2fe46', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:52') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c18683089c524b22a29bc857b0b2fe46' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:52', 'User', x'02785d76f59347c7a1385b7f68d0818b', 'f9143e9dae12ff7d76b61871b0ac0f2b', x'c18683089c524b22a29bc857b0b2fe46', 'User', '2012-12-31 12:45:52') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c18683089c524b22a29bc857b0b2fe46' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'adb399bab5224833be1eedb69000a752', NULL, NULL, NULL, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'accountadb399ba-b522-4833-be1e-edb69000a752' WHERE `accounts`.`id` = x'adb399bab5224833be1eedb69000a752' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'adb399bab5224833be1eedb69000a752' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'adb399bab5224833be1eedb69000a752', x'ce162dc3593a4992b8f236253464c6a8', x'c18683089c524b22a29bc857b0b2fe46') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ce162dc3593a4992b8f236253464c6a8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce162dc3593a4992b8f236253464c6a8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce162dc3593a4992b8f236253464c6a8', x'6b25c9884b794d91be3ffc16ea6b795d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ce162dc3593a4992b8f236253464c6a8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce162dc3593a4992b8f236253464c6a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce162dc3593a4992b8f236253464c6a8', x'9e71bbe1b6b24dc9a45d5a65f2a9910a', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:52 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18900e2976_f6180435d48143b7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'300ab16282f44b778062d9cb335d3316', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account300ab162-82f4-4b77-8062-d9cb335d3316' WHERE `accounts`.`id` = x'300ab16282f44b778062d9cb335d3316'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'300ab16282f44b778062d9cb335d3316', x'ff82c513c50e4c9dba87cb351acecf20', x'c18683089c524b22a29bc857b0b2fe46') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ff82c513c50e4c9dba87cb351acecf20') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff82c513c50e4c9dba87cb351acecf20' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff82c513c50e4c9dba87cb351acecf20', x'3510531e7a6d4e1c81f5a48c5ccce151', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ff82c513c50e4c9dba87cb351acecf20') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff82c513c50e4c9dba87cb351acecf20' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff82c513c50e4c9dba87cb351acecf20', x'22b7176a9df046059d585f387e3532fa', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c18683089c524b22a29bc857b0b2fe46' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c18683089c524b22a29bc857b0b2fe46' LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c18683089c524b22a29bc857b0b2fe46' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c18683089c524b22a29bc857b0b2fe46'  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2012-12-31 12:45:52' WHERE `users`.`id` = x'c18683089c524b22a29bc857b0b2fe46'  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.4ms)  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:52', x'3aa639c6e7884ba693dbc34234867f62', 'jabanilson', NULL, 1, '2012-12-31 12:45:52')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:52', `updated_at` = '2012-12-31 12:45:52', `subdomain` = 'account3aa639c6-e788-4ba6-93db-c34234867f62' WHERE `accounts`.`id` = x'3aa639c6e7884ba693dbc34234867f62'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3aa639c6e7884ba693dbc34234867f62', x'4cd9e902afdf44549b454067d30292ee', x'c18683089c524b22a29bc857b0b2fe46') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4cd9e902afdf44549b454067d30292ee') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4cd9e902afdf44549b454067d30292ee' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4cd9e902afdf44549b454067d30292ee', x'599c6d1c4e0642ea8fe47583ea867f57', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4cd9e902afdf44549b454067d30292ee') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4cd9e902afdf44549b454067d30292ee' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4cd9e902afdf44549b454067d30292ee', x'8abe009c8ce34b57a9622cbf6d70d38e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c18683089c524b22a29bc857b0b2fe46' AND (accounts.id = x'adb399bab5224833be1eedb69000a752') LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.8ms | ActiveRecord: 0.3ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:53', 'teste@teste.com', '$2a$04$VQhCcmalCLUl6nFQJwU3quBRhWqBWpqVa1nqVlZSePqJVdVP6.vHK', NULL, x'a99ca72366c3470caf414034b78e42aa', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a99ca72366c3470caf414034b78e42aa' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'e884a38a5aab4f9e85f8c9cdaf772745', '96dcd88419e229bb43a02402d4d86d5f', x'a99ca72366c3470caf414034b78e42aa', 'User', '2012-12-31 12:45:53') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a99ca72366c3470caf414034b78e42aa' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'e205fe7745034d27a6f8c31fe9344c20', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'accounte205fe77-4503-4d27-a6f8-c31fe9344c20' WHERE `accounts`.`id` = x'e205fe7745034d27a6f8c31fe9344c20' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e205fe7745034d27a6f8c31fe9344c20' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e205fe7745034d27a6f8c31fe9344c20', x'21690b05023d4de2ad21877c68bb6f03', x'a99ca72366c3470caf414034b78e42aa') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'21690b05023d4de2ad21877c68bb6f03') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21690b05023d4de2ad21877c68bb6f03' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21690b05023d4de2ad21877c68bb6f03', x'883c92edf0c940a08e6a24506169fd3e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'21690b05023d4de2ad21877c68bb6f03') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21690b05023d4de2ad21877c68bb6f03' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21690b05023d4de2ad21877c68bb6f03', x'4671a62edab1408bb207a4fe7f709947', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:53 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18901ad46_f6180435d48144db@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'66a5375e307546adb4bc0bd66292bf02', 'jabanilson', NULL, 1, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account66a5375e-3075-46ad-b4bc-0bd66292bf02' WHERE `accounts`.`id` = x'66a5375e307546adb4bc0bd66292bf02'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'66a5375e307546adb4bc0bd66292bf02', x'84cce50ee0814363ae37c3f507987d6f', x'a99ca72366c3470caf414034b78e42aa') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'84cce50ee0814363ae37c3f507987d6f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84cce50ee0814363ae37c3f507987d6f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84cce50ee0814363ae37c3f507987d6f', x'4aad66d1801e4100bf631aeb3cceaaa2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'84cce50ee0814363ae37c3f507987d6f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84cce50ee0814363ae37c3f507987d6f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84cce50ee0814363ae37c3f507987d6f', x'fe1dcc3942404f85bb7c74195864ab5e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a99ca72366c3470caf414034b78e42aa' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a99ca72366c3470caf414034b78e42aa' LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a99ca72366c3470caf414034b78e42aa' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:53', NULL, '--- !ruby/struct:DestroyUserJob\nid: a99ca723-66c3-470c-af41-4034b78e42aa\n', NULL, NULL, NULL, 0, 'user_a99ca723-66c3-470c-af41-4034b78e42aa_destroy', '2012-12-31 12:45:53', '2012-12-31 12:45:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a99ca723-66c3-470c-af41-4034b78e42aa_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 1.2ms) Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a99ca723-66c3-470c-af41-4034b78e42aa_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:53', 'teste@teste.com', '$2a$04$vVl4Gheuzjr0lFvFTUwRzuJYiepKIvqdki66FxIwyhNEuzM15oVQK', NULL, x'48e9eeb4f0c64d5ead58594ca620fe7c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'48e9eeb4f0c64d5ead58594ca620fe7c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'2704530c0ccb44849723f64bc2f5e4dc', 'b63f6595f69ddc5f416f515e4587865d', x'48e9eeb4f0c64d5ead58594ca620fe7c', 'User', '2012-12-31 12:45:53') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'48e9eeb4f0c64d5ead58594ca620fe7c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'07cf4cdc923445f0b484c1d071958578', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account07cf4cdc-9234-45f0-b484-c1d071958578' WHERE `accounts`.`id` = x'07cf4cdc923445f0b484c1d071958578' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07cf4cdc923445f0b484c1d071958578' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'07cf4cdc923445f0b484c1d071958578', x'35b2567c7a554d1d8ac76bdaa269dc28', x'48e9eeb4f0c64d5ead58594ca620fe7c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'35b2567c7a554d1d8ac76bdaa269dc28') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'35b2567c7a554d1d8ac76bdaa269dc28' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'35b2567c7a554d1d8ac76bdaa269dc28', x'd7736629ac874ce1be9cc7fc9327a460', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'35b2567c7a554d1d8ac76bdaa269dc28') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'35b2567c7a554d1d8ac76bdaa269dc28' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'35b2567c7a554d1d8ac76bdaa269dc28', x'8a358699d82442d38d110c1f9f32d129', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:53 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890136181_f6180435d4814568@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'6ba514e9970543c6966b41c845eba831', 'jabanilson', NULL, 1, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account6ba514e9-9705-43c6-966b-41c845eba831' WHERE `accounts`.`id` = x'6ba514e9970543c6966b41c845eba831'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6ba514e9970543c6966b41c845eba831', x'971982c0ccad4729b7c8568bca32af65', x'48e9eeb4f0c64d5ead58594ca620fe7c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'971982c0ccad4729b7c8568bca32af65') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'971982c0ccad4729b7c8568bca32af65' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'971982c0ccad4729b7c8568bca32af65', x'89e4226567a747f18275b9220bc708ed', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'971982c0ccad4729b7c8568bca32af65') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'971982c0ccad4729b7c8568bca32af65' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'971982c0ccad4729b7c8568bca32af65', x'3a0a347cb2f9458f9bcea425aacb2ba1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48e9eeb4f0c64d5ead58594ca620fe7c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48e9eeb4f0c64d5ead58594ca620fe7c' LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48e9eeb4f0c64d5ead58594ca620fe7c' LIMIT 1 Completed 404 Not Found in 2ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:53', 'teste@teste.com', '$2a$04$lbWuj1gcxOGJ/9cMhdnnReoHk0rZPmg5Jb/ofbERmhwzRid/BAyP6', NULL, x'054b1e1f49b443ee8e27e5909b42a682', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'054b1e1f49b443ee8e27e5909b42a682' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'18c34b25d9f64b379d95b31a00e44d22', '71bf2602ad44d6b175395d1d05e4289c', x'054b1e1f49b443ee8e27e5909b42a682', 'User', '2012-12-31 12:45:53') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'054b1e1f49b443ee8e27e5909b42a682' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'adb04f15bd074d65afccaf92df42f81a', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'accountadb04f15-bd07-4d65-afcc-af92df42f81a' WHERE `accounts`.`id` = x'adb04f15bd074d65afccaf92df42f81a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'adb04f15bd074d65afccaf92df42f81a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'adb04f15bd074d65afccaf92df42f81a', x'345431ae9fad4a4f977b0f4de953fb82', x'054b1e1f49b443ee8e27e5909b42a682') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'345431ae9fad4a4f977b0f4de953fb82') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'345431ae9fad4a4f977b0f4de953fb82' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'345431ae9fad4a4f977b0f4de953fb82', x'f9000a84e0ed4183aed4fcca7142ecf9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'345431ae9fad4a4f977b0f4de953fb82') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'345431ae9fad4a4f977b0f4de953fb82' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'345431ae9fad4a4f977b0f4de953fb82', x'80e2b744d9564ea7b5bd18e075c0f6c8', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:53 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890148dfd_f6180435d481462e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'3f73f393694543718f227354869e49cc', 'jabanilson', NULL, 1, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account3f73f393-6945-4371-8f22-7354869e49cc' WHERE `accounts`.`id` = x'3f73f393694543718f227354869e49cc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3f73f393694543718f227354869e49cc', x'a6958cc34b4c46f9ab29d48fe53529ac', x'054b1e1f49b443ee8e27e5909b42a682') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a6958cc34b4c46f9ab29d48fe53529ac') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a6958cc34b4c46f9ab29d48fe53529ac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a6958cc34b4c46f9ab29d48fe53529ac', x'70bc9fb760df45df9838a862ebea1fdd', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a6958cc34b4c46f9ab29d48fe53529ac') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a6958cc34b4c46f9ab29d48fe53529ac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a6958cc34b4c46f9ab29d48fe53529ac', x'60c406963dcf4e61b65accd3ecc7810d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'054b1e1f49b443ee8e27e5909b42a682' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'054b1e1f49b443ee8e27e5909b42a682' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:53', NULL, '--- !ruby/struct:DestroyUserJob\nid: 054b1e1f-49b4-43ee-8e27-e5909b42a682\n', NULL, NULL, NULL, 0, 'user_054b1e1f-49b4-43ee-8e27-e5909b42a682_destroy', '2012-12-31 12:45:53', '2012-12-31 12:45:53')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'054b1e1f49b443ee8e27e5909b42a682' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_054b1e1f-49b4-43ee-8e27-e5909b42a682_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_054b1e1f-49b4-43ee-8e27-e5909b42a682_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_054b1e1f-49b4-43ee-8e27-e5909b42a682_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:53', 'teste@teste.com', '$2a$04$VXObUhy29aPnzjR1C90kS.Xxxmc9KX7d0qMQbbAXIsFpPpL2FA2Cy', NULL, x'8e722136908b4f1d98a89014093ee0cb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8e722136908b4f1d98a89014093ee0cb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'946c30d1a3ac410d9f454cf8b4d45fb4', '9b5dab294f01f9ed605446d2978e1059', x'8e722136908b4f1d98a89014093ee0cb', 'User', '2012-12-31 12:45:53') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8e722136908b4f1d98a89014093ee0cb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'690893a38b614d2b8a4a3c0971b3df1a', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account690893a3-8b61-4d2b-8a4a-3c0971b3df1a' WHERE `accounts`.`id` = x'690893a38b614d2b8a4a3c0971b3df1a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'690893a38b614d2b8a4a3c0971b3df1a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'690893a38b614d2b8a4a3c0971b3df1a', x'35d06ea8fae24c5ea7548123a0c8a3ad', x'8e722136908b4f1d98a89014093ee0cb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'35d06ea8fae24c5ea7548123a0c8a3ad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'35d06ea8fae24c5ea7548123a0c8a3ad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'35d06ea8fae24c5ea7548123a0c8a3ad', x'62ba52101ee14be49e398806fe640cdc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'35d06ea8fae24c5ea7548123a0c8a3ad') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'35d06ea8fae24c5ea7548123a0c8a3ad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'35d06ea8fae24c5ea7548123a0c8a3ad', x'7273e944604b4de29797fd713f330fc1', 'admin') Sent mail to teste@teste.com (9ms) Date: Mon, 31 Dec 2012 10:45:53 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189015d857_f6180435d4814753@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'b7c28d790ac2411ca9b340a16c549019', 'jabanilson', NULL, 1, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'accountb7c28d79-0ac2-411c-a9b3-40a16c549019' WHERE `accounts`.`id` = x'b7c28d790ac2411ca9b340a16c549019'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b7c28d790ac2411ca9b340a16c549019', x'a1874750c36a46c692414c4d4e0291c0', x'8e722136908b4f1d98a89014093ee0cb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a1874750c36a46c692414c4d4e0291c0') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a1874750c36a46c692414c4d4e0291c0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a1874750c36a46c692414c4d4e0291c0', x'870299129ed14074a98b07995f0d0b70', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a1874750c36a46c692414c4d4e0291c0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a1874750c36a46c692414c4d4e0291c0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a1874750c36a46c692414c4d4e0291c0', x'3b85c10007c548febd6f7a161d41722f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8e722136908b4f1d98a89014093ee0cb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8e722136908b4f1d98a89014093ee0cb' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8d7cd684a2d445d6a53ae2c3c0a0fceb', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = x'8e722136908b4f1d98a89014093ee0cb' WHERE `social_accounts`.`id` = x'8d7cd684a2d445d6a53ae2c3c0a0fceb'  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8e722136908b4f1d98a89014093ee0cb' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"8D7CD684A2D445D6A53AE2C3C0A0FCEB"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8e722136908b4f1d98a89014093ee0cb' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8e722136908b4f1d98a89014093ee0cb' AND `social_accounts`.`id` = x'8d7cd684a2d445d6a53ae2c3c0a0fceb' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8e722136908b4f1d98a89014093ee0cb' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8e722136908b4f1d98a89014093ee0cb'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'8d7cd684a2d445d6a53ae2c3c0a0fceb'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 1.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:53', 'teste@teste.com', '$2a$04$0mSlBWN2yjWqxstJ4Spy8uHo.xrPc.jsrAlms410VaIVG/M3YBWvG', NULL, x'2cf1ad1473ca4670a9f2ba340602a0af', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2cf1ad1473ca4670a9f2ba340602a0af' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'a8e0246053654770a20d6eb52670e3e7', '46dc2f4e174527d15d3669dc646dd0f4', x'2cf1ad1473ca4670a9f2ba340602a0af', 'User', '2012-12-31 12:45:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2cf1ad1473ca4670a9f2ba340602a0af' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'672cea8d80a34f269c68d108418dc64f', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account672cea8d-80a3-4f26-9c68-d108418dc64f' WHERE `accounts`.`id` = x'672cea8d80a34f269c68d108418dc64f' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'672cea8d80a34f269c68d108418dc64f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'672cea8d80a34f269c68d108418dc64f', x'5d8737539fa7465b8eae6aa4285bc714', x'2cf1ad1473ca4670a9f2ba340602a0af') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5d8737539fa7465b8eae6aa4285bc714') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d8737539fa7465b8eae6aa4285bc714' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d8737539fa7465b8eae6aa4285bc714', x'56b89d791fed4a8aa528c544078fd356', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5d8737539fa7465b8eae6aa4285bc714') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d8737539fa7465b8eae6aa4285bc714' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d8737539fa7465b8eae6aa4285bc714', x'5ad4fe70aa44408287ec1b8092b779dd', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:53 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18901756fc_f6180435d48148f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'2014655a322e497ab5c286c4afd13538', 'jabanilson', NULL, 1, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account2014655a-322e-497a-b5c2-86c4afd13538' WHERE `accounts`.`id` = x'2014655a322e497ab5c286c4afd13538'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2014655a322e497ab5c286c4afd13538', x'd20bf3535d514cb29e416e6841e4f2c2', x'2cf1ad1473ca4670a9f2ba340602a0af') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd20bf3535d514cb29e416e6841e4f2c2') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd20bf3535d514cb29e416e6841e4f2c2' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd20bf3535d514cb29e416e6841e4f2c2', x'd042761031b94180a79be7c3b3807ab2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd20bf3535d514cb29e416e6841e4f2c2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd20bf3535d514cb29e416e6841e4f2c2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd20bf3535d514cb29e416e6841e4f2c2', x'c3d91edc148b4ece86c5abc7293ecf9c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2cf1ad1473ca4670a9f2ba340602a0af' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2cf1ad1473ca4670a9f2ba340602a0af' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'6242997a5ab940af902cd1ebe111ff82', 'twitter', NULL, '123123123', NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = x'2cf1ad1473ca4670a9f2ba340602a0af' WHERE `social_accounts`.`id` = x'6242997a5ab940af902cd1ebe111ff82'  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2cf1ad1473ca4670a9f2ba340602a0af' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"6242997A5AB940AF902CD1EBE111FF82"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2cf1ad1473ca4670a9f2ba340602a0af' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2cf1ad1473ca4670a9f2ba340602a0af' AND `social_accounts`.`id` = x'6242997a5ab940af902cd1ebe111ff82' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2cf1ad1473ca4670a9f2ba340602a0af' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2cf1ad1473ca4670a9f2ba340602a0af'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'6242997a5ab940af902cd1ebe111ff82'  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:53', 'teste@teste.com', '$2a$04$oNfINTlVWK1k1wgzgNTHdOIw6Yuklru6CcTk94HnkMiDLbSjffkFG', NULL, x'0c67f7b4b26749209f065a1ca8cb8f3c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0c67f7b4b26749209f065a1ca8cb8f3c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'83ef33b2ea5b4998a00566285bcad7cf', '474583d8be3f0414731afd0fba94f080', x'0c67f7b4b26749209f065a1ca8cb8f3c', 'User', '2012-12-31 12:45:53') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0c67f7b4b26749209f065a1ca8cb8f3c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'435b850e23be4733a29d9b66c23fb502', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account435b850e-23be-4733-a29d-9b66c23fb502' WHERE `accounts`.`id` = x'435b850e23be4733a29d9b66c23fb502' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'435b850e23be4733a29d9b66c23fb502' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'435b850e23be4733a29d9b66c23fb502', x'c2ee56dc1b414367adb4850968d7dc1f', x'0c67f7b4b26749209f065a1ca8cb8f3c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c2ee56dc1b414367adb4850968d7dc1f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c2ee56dc1b414367adb4850968d7dc1f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c2ee56dc1b414367adb4850968d7dc1f', x'69fb8e7b23b64c969c23300551657495', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c2ee56dc1b414367adb4850968d7dc1f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c2ee56dc1b414367adb4850968d7dc1f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c2ee56dc1b414367adb4850968d7dc1f', x'4dfdec7276ee40fca18c5b1c8ff86665', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:53 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18901a67f4_f6180435d48149f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'e9d160dc4335411bacd0a42b28182c7c', 'jabanilson', NULL, 1, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'accounte9d160dc-4335-411b-acd0-a42b28182c7c' WHERE `accounts`.`id` = x'e9d160dc4335411bacd0a42b28182c7c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e9d160dc4335411bacd0a42b28182c7c', x'5646c8491e0b4602b7c1f6bb2e03292f', x'0c67f7b4b26749209f065a1ca8cb8f3c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5646c8491e0b4602b7c1f6bb2e03292f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5646c8491e0b4602b7c1f6bb2e03292f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5646c8491e0b4602b7c1f6bb2e03292f', x'6e4f0b2f321b4fcb9fefafaeca2e6bd9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5646c8491e0b4602b7c1f6bb2e03292f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5646c8491e0b4602b7c1f6bb2e03292f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5646c8491e0b4602b7c1f6bb2e03292f', x'7bbeaee2ade84803b30cbc18946104ab', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c67f7b4b26749209f065a1ca8cb8f3c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c67f7b4b26749209f065a1ca8cb8f3c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'0abbde7e3cab4023b54b896d770230b4', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'0c67f7b4b26749209f065a1ca8cb8f3c' WHERE `social_accounts`.`id` = x'0abbde7e3cab4023b54b896d770230b4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a4c319b42b184d9ea2d120d8099b7ebd', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:53', '2012-12-31 12:45:53', '', '$2a$04$eisoN.JTG/Z/C.5RsGbHM.PWgWh/kBhcf78s/FQN4LNXQpymJRVcC', NULL, x'37df1c9b125b41a8a4d985962627075c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'37df1c9b125b41a8a4d985962627075c' WHERE `social_accounts`.`id` = x'a4c319b42b184d9ea2d120d8099b7ebd' ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'37df1c9b125b41a8a4d985962627075c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'968e8e3cd31d4443b4211010fc356986', '6a83a9a81eca11eff422716017240175', x'37df1c9b125b41a8a4d985962627075c', 'User', '2012-12-31 12:45:53') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'37df1c9b125b41a8a4d985962627075c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'e9494e6132004c8aaf5e3b7e1b4b75bc', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'accounte9494e61-3200-4c8a-af5e-3b7e1b4b75bc' WHERE `accounts`.`id` = x'e9494e6132004c8aaf5e3b7e1b4b75bc' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9494e6132004c8aaf5e3b7e1b4b75bc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e9494e6132004c8aaf5e3b7e1b4b75bc', x'5d83c2c735e64299815129246b8f728b', x'37df1c9b125b41a8a4d985962627075c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5d83c2c735e64299815129246b8f728b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d83c2c735e64299815129246b8f728b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d83c2c735e64299815129246b8f728b', x'4b74cf0f367544719821c8aa0a701ac2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5d83c2c735e64299815129246b8f728b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d83c2c735e64299815129246b8f728b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d83c2c735e64299815129246b8f728b', x'cd2db1c2b08445909d460113501d400b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'37df1c9b125b41a8a4d985962627075c' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'37df1c9b125b41a8a4d985962627075c' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"A4C319B42B184D9EA2D120D8099B7EBD"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'37df1c9b125b41a8a4d985962627075c' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'37df1c9b125b41a8a4d985962627075c' AND `social_accounts`.`id` = x'a4c319b42b184d9ea2d120d8099b7ebd' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'37df1c9b125b41a8a4d985962627075c' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'37df1c9b125b41a8a4d985962627075c' Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:53', 'teste@teste.com', '$2a$04$MtBCDp/yAGr6rI3gfHyIy.SCCA3XaILdtKLCe8J4iSfAlAXsU7km2', NULL, x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'2273b5ed2e424594890fe33fd0f4ed1d', 'ecc4eb1bb690e4d3ba5fd7f9f10ef908', x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918', 'User', '2012-12-31 12:45:53') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'2eba0d2121f34f818d5b032b5e6dab5e', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account2eba0d21-21f3-4f81-8d5b-032b5e6dab5e' WHERE `accounts`.`id` = x'2eba0d2121f34f818d5b032b5e6dab5e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2eba0d2121f34f818d5b032b5e6dab5e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2eba0d2121f34f818d5b032b5e6dab5e', x'b78dd9031a364316acdab4bb197bc9e2', x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b78dd9031a364316acdab4bb197bc9e2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b78dd9031a364316acdab4bb197bc9e2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b78dd9031a364316acdab4bb197bc9e2', x'85a74e50a45a443395f5f3a74d39633d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b78dd9031a364316acdab4bb197bc9e2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b78dd9031a364316acdab4bb197bc9e2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b78dd9031a364316acdab4bb197bc9e2', x'162bc301d44a41ada5ba6a4e609a5e5f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:53 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18901c24c5_f6180435d48150e7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'9a7724986a3f4a88ac44cefb106e0554', 'jabanilson', NULL, 1, '2012-12-31 12:45:53')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account9a772498-6a3f-4a88-ac44-cefb106e0554' WHERE `accounts`.`id` = x'9a7724986a3f4a88ac44cefb106e0554'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9a7724986a3f4a88ac44cefb106e0554', x'82c24bb1ca1e417c9963d7e4ad6e2887', x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'82c24bb1ca1e417c9963d7e4ad6e2887') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'82c24bb1ca1e417c9963d7e4ad6e2887' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'82c24bb1ca1e417c9963d7e4ad6e2887', x'65be4c0006d24248b2bb1774bbcd030c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'82c24bb1ca1e417c9963d7e4ad6e2887') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'82c24bb1ca1e417c9963d7e4ad6e2887' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'82c24bb1ca1e417c9963d7e4ad6e2887', x'0c391d1bb64749a09a31942347b3f17b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'b320711890794b198abfd3cd4168c8aa', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'6d9e00aaa7ca4b0bb11c5e0a9a2e5918' WHERE `social_accounts`.`id` = x'b320711890794b198abfd3cd4168c8aa'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'de206c69d21b4547967e222b63fed082', 'twitter', NULL, '123123123', NULL, NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:53', '2012-12-31 12:45:53', '', '$2a$04$lx2U9TgzwChhejee7ej5xOVSwFnwfCCL.iY0TItqxFKjv/1Uddfg6', NULL, x'4b9e24f8a72945cd9d930d618b43e142', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.4ms) UPDATE `social_accounts` SET `user_id` = x'4b9e24f8a72945cd9d930d618b43e142' WHERE `social_accounts`.`id` = x'de206c69d21b4547967e222b63fed082' ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4b9e24f8a72945cd9d930d618b43e142' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'e41d075fbbd6490a9edf3d82192c3ee7', '3af0569672da3349f499b7db9e4d6936', x'4b9e24f8a72945cd9d930d618b43e142', 'User', '2012-12-31 12:45:53') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4b9e24f8a72945cd9d930d618b43e142' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'7d058ff85b8948ad94804c74d0aa8aa8', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account7d058ff8-5b89-48ad-9480-4c74d0aa8aa8' WHERE `accounts`.`id` = x'7d058ff85b8948ad94804c74d0aa8aa8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7d058ff85b8948ad94804c74d0aa8aa8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7d058ff85b8948ad94804c74d0aa8aa8', x'ac3fa54e78aa46368bb0cd49d088a23f', x'4b9e24f8a72945cd9d930d618b43e142') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ac3fa54e78aa46368bb0cd49d088a23f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac3fa54e78aa46368bb0cd49d088a23f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac3fa54e78aa46368bb0cd49d088a23f', x'0044ad8e59f243c69c5bfa6d317119a5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ac3fa54e78aa46368bb0cd49d088a23f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac3fa54e78aa46368bb0cd49d088a23f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac3fa54e78aa46368bb0cd49d088a23f', x'70c5f0bd64064c47938960180d5d239e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4b9e24f8a72945cd9d930d618b43e142' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'4b9e24f8a72945cd9d930d618b43e142' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"DE206C69D21B4547967E222B63FED082"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4b9e24f8a72945cd9d930d618b43e142' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'4b9e24f8a72945cd9d930d618b43e142' AND `social_accounts`.`id` = x'de206c69d21b4547967e222b63fed082' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4b9e24f8a72945cd9d930d618b43e142' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'4b9e24f8a72945cd9d930d618b43e142' Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:53', 'teste@teste.com', '$2a$04$wZlcX4SHoobB9Jdx9425x.KQCBQXCzPuKrAhL4GCwInrMqgSTe8oG', NULL, x'dbbdd2a57ff64e07943991b69cdacc08', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:53') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dbbdd2a57ff64e07943991b69cdacc08' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:53', 'User', x'64578797bafa4fc9b6ccdca53dbd47ba', '68f3b4702ba59992917b2d3f72a60640', x'dbbdd2a57ff64e07943991b69cdacc08', 'User', '2012-12-31 12:45:53') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dbbdd2a57ff64e07943991b69cdacc08' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:53', x'14e391f2986841469bf1ea4e29573663', NULL, NULL, NULL, '2012-12-31 12:45:53')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:53', `updated_at` = '2012-12-31 12:45:53', `subdomain` = 'account14e391f2-9868-4146-9bf1-ea4e29573663' WHERE `accounts`.`id` = x'14e391f2986841469bf1ea4e29573663' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'14e391f2986841469bf1ea4e29573663' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'14e391f2986841469bf1ea4e29573663', x'6c56c8f4faa34e42a4070cb08f6a5eb5', x'dbbdd2a57ff64e07943991b69cdacc08') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6c56c8f4faa34e42a4070cb08f6a5eb5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6c56c8f4faa34e42a4070cb08f6a5eb5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6c56c8f4faa34e42a4070cb08f6a5eb5', x'388b3fb92ab444df9d8408f5e930dcf6', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6c56c8f4faa34e42a4070cb08f6a5eb5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6c56c8f4faa34e42a4070cb08f6a5eb5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6c56c8f4faa34e42a4070cb08f6a5eb5', x'a45947a1656b48a68d9053a4c4b4ba4e', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18902a2e_f6180435d481519b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'f7b47e500cd64e1289f641363ca39620', 'jabanilson', NULL, 1, '2012-12-31 12:45:54')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accountf7b47e50-0cd6-4e12-89f6-41363ca39620' WHERE `accounts`.`id` = x'f7b47e500cd64e1289f641363ca39620'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f7b47e500cd64e1289f641363ca39620', x'd14abb5694c547d4a26fca39b8bac77d', x'dbbdd2a57ff64e07943991b69cdacc08') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd14abb5694c547d4a26fca39b8bac77d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd14abb5694c547d4a26fca39b8bac77d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd14abb5694c547d4a26fca39b8bac77d', x'26e2b9b3ae634f8ca9afa65c6996521c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd14abb5694c547d4a26fca39b8bac77d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd14abb5694c547d4a26fca39b8bac77d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd14abb5694c547d4a26fca39b8bac77d', x'9ac4fceafe194ce5839feb94e74ba71a', 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dbbdd2a57ff64e07943991b69cdacc08' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dbbdd2a57ff64e07943991b69cdacc08' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a55875238e0145518109dbce64d76125', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'dbbdd2a57ff64e07943991b69cdacc08' WHERE `social_accounts`.`id` = x'a55875238e0145518109dbce64d76125'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'dbbdd2a57ff64e07943991b69cdacc08' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'dbbdd2a57ff64e07943991b69cdacc08' AND `social_accounts`.`id` = x'00000000000039313238373339313237' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:54', 'teste@teste.com', '$2a$04$eZwgimWzFGwNJEx7CvGvie7ckmS1OAs6rdaPXfPHtjpWQN6fF635S', NULL, x'86805dfaed0248af85a543ba39a80cdc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'86805dfaed0248af85a543ba39a80cdc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'5d2dd77bdabc40c28b850d558c06292c', 'ac0e0073a76a3e815bf31216e778c8e4', x'86805dfaed0248af85a543ba39a80cdc', 'User', '2012-12-31 12:45:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'86805dfaed0248af85a543ba39a80cdc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'1aae04a3cfb54233af073c0c24040a26', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'account1aae04a3-cfb5-4233-af07-3c0c24040a26' WHERE `accounts`.`id` = x'1aae04a3cfb54233af073c0c24040a26' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1aae04a3cfb54233af073c0c24040a26' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1aae04a3cfb54233af073c0c24040a26', x'7069bf74946f40cba8f3df72ea0fe756', x'86805dfaed0248af85a543ba39a80cdc') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7069bf74946f40cba8f3df72ea0fe756') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7069bf74946f40cba8f3df72ea0fe756' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7069bf74946f40cba8f3df72ea0fe756', x'1e6cbeb2de9047ad8ad45b94f637bcea', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7069bf74946f40cba8f3df72ea0fe756') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7069bf74946f40cba8f3df72ea0fe756' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7069bf74946f40cba8f3df72ea0fe756', x'c2661257ca2b4f2e87c8c4e126aefeaa', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18902144c9_f6180435d48152fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'91567a90878d49aa9e59b832255594c5', 'jabanilson', NULL, 1, '2012-12-31 12:45:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'account91567a90-878d-49aa-9e59-b832255594c5' WHERE `accounts`.`id` = x'91567a90878d49aa9e59b832255594c5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'91567a90878d49aa9e59b832255594c5', x'0db4187932a84174afe0414e5e0d8016', x'86805dfaed0248af85a543ba39a80cdc') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0db4187932a84174afe0414e5e0d8016') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0db4187932a84174afe0414e5e0d8016' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0db4187932a84174afe0414e5e0d8016', x'032f644f4c584a93a2f69968b5faca94', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0db4187932a84174afe0414e5e0d8016') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0db4187932a84174afe0414e5e0d8016' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0db4187932a84174afe0414e5e0d8016', x'f6b86e0d57c841f7b070e05e27f59874', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86805dfaed0248af85a543ba39a80cdc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86805dfaed0248af85a543ba39a80cdc' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'eea4ab771ec54a6bbc474ebb4c4a9787', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'86805dfaed0248af85a543ba39a80cdc' WHERE `social_accounts`.`id` = x'eea4ab771ec54a6bbc474ebb4c4a9787'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'86805dfaed0248af85a543ba39a80cdc' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'86805dfaed0248af85a543ba39a80cdc' AND `social_accounts`.`id` = x'00000000000039313238373339313237' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:54', 'teste@teste.com', '$2a$04$zHtX66S2I6Bp/XtUl5MBvuna8bYKz6f79TRXbdZeIpg2ZwgcPxyBe', NULL, x'01fda41e134444c3ab54ec60b23333a4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'01fda41e134444c3ab54ec60b23333a4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'c695b4fa87744fb1a4ed44593083ffb1', '23f78877ce58deea7f7bcb0a9c66361a', x'01fda41e134444c3ab54ec60b23333a4', 'User', '2012-12-31 12:45:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'01fda41e134444c3ab54ec60b23333a4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'f9b9b883da334e22a75e51bd7eaa9465', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accountf9b9b883-da33-4e22-a75e-51bd7eaa9465' WHERE `accounts`.`id` = x'f9b9b883da334e22a75e51bd7eaa9465' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f9b9b883da334e22a75e51bd7eaa9465' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f9b9b883da334e22a75e51bd7eaa9465', x'4809e258808b4d89a4cd7eeba49c56ce', x'01fda41e134444c3ab54ec60b23333a4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4809e258808b4d89a4cd7eeba49c56ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4809e258808b4d89a4cd7eeba49c56ce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4809e258808b4d89a4cd7eeba49c56ce', x'b4164a067b924bbd96882e5fb6e8cc9f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4809e258808b4d89a4cd7eeba49c56ce') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4809e258808b4d89a4cd7eeba49c56ce' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4809e258808b4d89a4cd7eeba49c56ce', x'cb6f87c9308b4b4eb4f4d346593f6b2b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18902280b7_f6180435d481539c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'a09a85665311418ea6147a4d4c691161', 'jabanilson', NULL, 1, '2012-12-31 12:45:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accounta09a8566-5311-418e-a614-7a4d4c691161' WHERE `accounts`.`id` = x'a09a85665311418ea6147a4d4c691161'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a09a85665311418ea6147a4d4c691161', x'b6e281a0ea8e4b2fb2b003bb545bee18', x'01fda41e134444c3ab54ec60b23333a4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b6e281a0ea8e4b2fb2b003bb545bee18') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6e281a0ea8e4b2fb2b003bb545bee18' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6e281a0ea8e4b2fb2b003bb545bee18', x'40f88ec0338245c0a9d68a271b7a65d4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b6e281a0ea8e4b2fb2b003bb545bee18') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6e281a0ea8e4b2fb2b003bb545bee18' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6e281a0ea8e4b2fb2b003bb545bee18', x'75932384f30949378f6f65f59490b6c4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'01fda41e134444c3ab54ec60b23333a4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'01fda41e134444c3ab54ec60b23333a4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'999bfbb7fcd148fa9ae883a84d828197', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'01fda41e134444c3ab54ec60b23333a4' WHERE `social_accounts`.`id` = x'999bfbb7fcd148fa9ae883a84d828197'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:54', '2012-12-31 12:45:54', '', '', 1, x'7f4b2105c79f4a80ae35c54a04c3962f', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7f4b2105c79f4a80ae35c54a04c3962f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'f686dc3dc10549f1b2af98d77d3a4173', '4d5af08bf45d8a6b7866de0d8f02005e', x'7f4b2105c79f4a80ae35c54a04c3962f', 'User', '2012-12-31 12:45:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7f4b2105c79f4a80ae35c54a04c3962f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'f405cad3149e4ad383c4b2655e8423bc', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accountf405cad3-149e-4ad3-83c4-b2655e8423bc' WHERE `accounts`.`id` = x'f405cad3149e4ad383c4b2655e8423bc' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f405cad3149e4ad383c4b2655e8423bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f405cad3149e4ad383c4b2655e8423bc', x'03fefbac46c6467589164c22fcc489c3', x'7f4b2105c79f4a80ae35c54a04c3962f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'03fefbac46c6467589164c22fcc489c3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03fefbac46c6467589164c22fcc489c3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03fefbac46c6467589164c22fcc489c3', x'0a6fea5bc6524cda9dee7d7800658858', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'03fefbac46c6467589164c22fcc489c3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03fefbac46c6467589164c22fcc489c3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03fefbac46c6467589164c22fcc489c3', x'a007d5e9725f419fafd3d26d31583e53', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:54', NULL, '--- !ruby/struct:DestroyUserJob\nid: 7f4b2105-c79f-4a80-ae35-c54a04c3962f\n', NULL, NULL, NULL, 0, 'guest_7f4b2105-c79f-4a80-ae35-c54a04c3962f_destroy', '2013-01-07 12:45:54', '2012-12-31 12:45:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7f4b2105c79f4a80ae35c54a04c3962f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7f4b2105c79f4a80ae35c54a04c3962f' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'7f4b2105c79f4a80ae35c54a04c3962f') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$JQvLjdbNMZgy6aRY9yrMU.6xrwzvSTc7HQU0CED8Bby0Q7G3ysF2W', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:45:54' WHERE `users`.`id` = x'7f4b2105c79f4a80ae35c54a04c3962f' User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'tyzZEY7xWA6Kts5uTq6s' LIMIT 1  (0.2ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$JQvLjdbNMZgy6aRY9yrMU.6xrwzvSTc7HQU0CED8Bby0Q7G3ysF2W', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:45:54', `confirmation_token` = 'tyzZEY7xWA6Kts5uTq6s', `confirmation_sent_at` = '2012-12-31 12:45:54' WHERE `users`.`id` = x'7f4b2105c79f4a80ae35c54a04c3962f' Sent mail to regular@user.email (7ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: regular@user.email Message-ID: <50e189023ea31_f6180435d48154fb@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_7f4b2105-c79f-4a80-ae35-c54a04c3962f_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f4b2105c79f4a80ae35c54a04c3962f' AND (accounts.id = x'f9b9b883da334e22a75e51bd7eaa9465') LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f4b2105c79f4a80ae35c54a04c3962f' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 45ms (ActiveRecord: 3.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:54', 'teste@teste.com', '$2a$04$AN.1p1.O9G3Vj0bPJXCEb.8ZtDq7BrzxxlassqhKY.E2pudOeT.NO', NULL, x'3c24d1fd8b2b45738d6ee45b5dac00dd', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3c24d1fd8b2b45738d6ee45b5dac00dd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'9c20f4af62e34b529c578be80c168c95', '14ac1e199ca29f41eb929dc486e87602', x'3c24d1fd8b2b45738d6ee45b5dac00dd', 'User', '2012-12-31 12:45:54') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3c24d1fd8b2b45738d6ee45b5dac00dd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'6e679b9043034989a2399c7963c900c7', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'account6e679b90-4303-4989-a239-9c7963c900c7' WHERE `accounts`.`id` = x'6e679b9043034989a2399c7963c900c7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6e679b9043034989a2399c7963c900c7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6e679b9043034989a2399c7963c900c7', x'36814975c3a044f3ad3a7afdc0ade330', x'3c24d1fd8b2b45738d6ee45b5dac00dd') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'36814975c3a044f3ad3a7afdc0ade330') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'36814975c3a044f3ad3a7afdc0ade330' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'36814975c3a044f3ad3a7afdc0ade330', x'f5bb02eb531d4dc696233fb557a9e1ce', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'36814975c3a044f3ad3a7afdc0ade330') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'36814975c3a044f3ad3a7afdc0ade330' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'36814975c3a044f3ad3a7afdc0ade330', x'229a48f7c6784d9ab9faeeec2528dca2', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18902648be_f6180435d4815561@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'a298bd34a47e4a80b869fbaae8e84cce', 'jabanilson', NULL, 1, '2012-12-31 12:45:54')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accounta298bd34-a47e-4a80-b869-fbaae8e84cce' WHERE `accounts`.`id` = x'a298bd34a47e4a80b869fbaae8e84cce'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a298bd34a47e4a80b869fbaae8e84cce', x'cbf57731854745ef8097baf6d9193023', x'3c24d1fd8b2b45738d6ee45b5dac00dd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cbf57731854745ef8097baf6d9193023') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cbf57731854745ef8097baf6d9193023' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cbf57731854745ef8097baf6d9193023', x'44d16d88b5a54f708a9def30895f2ae6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cbf57731854745ef8097baf6d9193023') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cbf57731854745ef8097baf6d9193023' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cbf57731854745ef8097baf6d9193023', x'e56b2f3f206941be9a2c1fb1eb2c5da7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3c24d1fd8b2b45738d6ee45b5dac00dd' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3c24d1fd8b2b45738d6ee45b5dac00dd' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'bac06d7e2d7640529604f367e91d1333', 'twitter', NULL, '123123123', NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'3c24d1fd8b2b45738d6ee45b5dac00dd' WHERE `social_accounts`.`id` = x'bac06d7e2d7640529604f367e91d1333'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:54', '2012-12-31 12:45:54', '', '', 1, x'c74f61090e2b4dc889982d79e9653240', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c74f61090e2b4dc889982d79e9653240' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'0d4a8b32ee0a441883e87a0f35abf08b', '792eb1f080f373f9b6de8f5346e083c5', x'c74f61090e2b4dc889982d79e9653240', 'User', '2012-12-31 12:45:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c74f61090e2b4dc889982d79e9653240' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'76463bc273db4924a1650b2acac0f6a0', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'account76463bc2-73db-4924-a165-0b2acac0f6a0' WHERE `accounts`.`id` = x'76463bc273db4924a1650b2acac0f6a0' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'76463bc273db4924a1650b2acac0f6a0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'76463bc273db4924a1650b2acac0f6a0', x'e5ea7e8273d947fd9104e4d7b7a94712', x'c74f61090e2b4dc889982d79e9653240') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e5ea7e8273d947fd9104e4d7b7a94712') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e5ea7e8273d947fd9104e4d7b7a94712' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e5ea7e8273d947fd9104e4d7b7a94712', x'4e20c08871dd45f8bb1fa6350cb78549', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e5ea7e8273d947fd9104e4d7b7a94712') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e5ea7e8273d947fd9104e4d7b7a94712' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e5ea7e8273d947fd9104e4d7b7a94712', x'f8a0cb3ef3b54fedbeb05f9c2467c339', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:54', NULL, '--- !ruby/struct:DestroyUserJob\nid: c74f6109-0e2b-4dc8-8998-2d79e9653240\n', NULL, NULL, NULL, 0, 'guest_c74f6109-0e2b-4dc8-8998-2d79e9653240_destroy', '2013-01-07 12:45:54', '2012-12-31 12:45:54')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c74f61090e2b4dc889982d79e9653240' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c74f61090e2b4dc889982d79e9653240' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'c74f61090e2b4dc889982d79e9653240') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$fvPDrnibWGT/diK6eKIdl.4lAhU9Omo0XYQDThe8TbvJ1Nst5g8WW', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:45:54' WHERE `users`.`id` = x'c74f61090e2b4dc889982d79e9653240' User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'qBcMFqcS87sefYDykCRU' LIMIT 1  (0.2ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$fvPDrnibWGT/diK6eKIdl.4lAhU9Omo0XYQDThe8TbvJ1Nst5g8WW', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:45:54', `confirmation_token` = 'qBcMFqcS87sefYDykCRU', `confirmation_sent_at` = '2012-12-31 12:45:54' WHERE `users`.`id` = x'c74f61090e2b4dc889982d79e9653240' Sent mail to regular@user.email (7ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: regular@user.email Message-ID: <50e1890279783_f6180435d481564@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_c74f6109-0e2b-4dc8-8998-2d79e9653240_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c74f61090e2b4dc889982d79e9653240' AND (accounts.id = x'6e679b9043034989a2399c7963c900c7') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c74f61090e2b4dc889982d79e9653240' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 38ms (ActiveRecord: 3.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:54', 'teste@teste.com', '$2a$04$e1y28J6bDYWoKXcHuThGY.6UA31zYAUSXPabzYtMe1YSfYuqikrPa', NULL, x'1b28d1f5c2bc4204bec33ee8e9eb6b87', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1b28d1f5c2bc4204bec33ee8e9eb6b87' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'8c2aebb2f5f84f618cc29977e913a3ec', 'e3dec3a74799c1df7a821cc7c08fcfbf', x'1b28d1f5c2bc4204bec33ee8e9eb6b87', 'User', '2012-12-31 12:45:54') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1b28d1f5c2bc4204bec33ee8e9eb6b87' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'3876d18ca82c4a5c902cbca2d01d1eec', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'account3876d18c-a82c-4a5c-902c-bca2d01d1eec' WHERE `accounts`.`id` = x'3876d18ca82c4a5c902cbca2d01d1eec' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876d18ca82c4a5c902cbca2d01d1eec' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3876d18ca82c4a5c902cbca2d01d1eec', x'd83b3802ba56462682d70c24d8ca8d10', x'1b28d1f5c2bc4204bec33ee8e9eb6b87') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd83b3802ba56462682d70c24d8ca8d10') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd83b3802ba56462682d70c24d8ca8d10' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd83b3802ba56462682d70c24d8ca8d10', x'f02bf42f18e5422886d895367270ac0a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd83b3802ba56462682d70c24d8ca8d10') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd83b3802ba56462682d70c24d8ca8d10' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd83b3802ba56462682d70c24d8ca8d10', x'c8c0a60d1263477c8ebfa38fa15ec895', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890287f32_f6180435d48157a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'39ca9088bf2a4466856e01c05efc9284', 'jabanilson', NULL, 1, '2012-12-31 12:45:54')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'account39ca9088-bf2a-4466-856e-01c05efc9284' WHERE `accounts`.`id` = x'39ca9088bf2a4466856e01c05efc9284'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'39ca9088bf2a4466856e01c05efc9284', x'ba75354bb02047958a6b6aa429b83b4b', x'1b28d1f5c2bc4204bec33ee8e9eb6b87') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ba75354bb02047958a6b6aa429b83b4b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ba75354bb02047958a6b6aa429b83b4b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ba75354bb02047958a6b6aa429b83b4b', x'bebd137d70244ba7b55572c672179d01', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ba75354bb02047958a6b6aa429b83b4b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ba75354bb02047958a6b6aa429b83b4b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ba75354bb02047958a6b6aa429b83b4b', x'1650a3b9a2964f2fb6012c466c79e95e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1b28d1f5c2bc4204bec33ee8e9eb6b87' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1b28d1f5c2bc4204bec33ee8e9eb6b87' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'49a871ba4d264be9bee9978334db9852', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'1b28d1f5c2bc4204bec33ee8e9eb6b87' WHERE `social_accounts`.`id` = x'49a871ba4d264be9bee9978334db9852'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:54', '2012-12-31 12:45:54', '', '', 1, x'3decf949510b45bea4df3ab5cf1f08c0', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3decf949510b45bea4df3ab5cf1f08c0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'1c7569cc50a74769b1d137233303f400', '1d9b4d7a23c657f018bce346c7c917cd', x'3decf949510b45bea4df3ab5cf1f08c0', 'User', '2012-12-31 12:45:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3decf949510b45bea4df3ab5cf1f08c0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'b58da43f1758499f97d5a9bfff9c0ed1', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accountb58da43f-1758-499f-97d5-a9bfff9c0ed1' WHERE `accounts`.`id` = x'b58da43f1758499f97d5a9bfff9c0ed1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b58da43f1758499f97d5a9bfff9c0ed1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b58da43f1758499f97d5a9bfff9c0ed1', x'85d88de2f1364f40b77c0afa58c79054', x'3decf949510b45bea4df3ab5cf1f08c0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'85d88de2f1364f40b77c0afa58c79054') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'85d88de2f1364f40b77c0afa58c79054' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'85d88de2f1364f40b77c0afa58c79054', x'e17acba73e4b4c4091886f4ed3bb4982', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'85d88de2f1364f40b77c0afa58c79054') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'85d88de2f1364f40b77c0afa58c79054' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'85d88de2f1364f40b77c0afa58c79054', x'266957c441c84f40bafa27de19a32c5b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:54', NULL, '--- !ruby/struct:DestroyUserJob\nid: 3decf949-510b-45be-a4df-3ab5cf1f08c0\n', NULL, NULL, NULL, 0, 'guest_3decf949-510b-45be-a4df-3ab5cf1f08c0_destroy', '2013-01-07 12:45:54', '2012-12-31 12:45:54')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3decf949510b45bea4df3ab5cf1f08c0' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'3decf949510b45bea4df3ab5cf1f08c0' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'3decf949510b45bea4df3ab5cf1f08c0') LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$.D3RGUW6A5RtA8ZT//Lq0.dWSIQ7qANeT8em88t6iqQsvfZ73U242', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:45:54' WHERE `users`.`id` = x'3decf949510b45bea4df3ab5cf1f08c0' User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'yaixEXCurN6xL9yj5s4t' LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$.D3RGUW6A5RtA8ZT//Lq0.dWSIQ7qANeT8em88t6iqQsvfZ73U242', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2012-12-31 12:45:54', `confirmation_token` = 'yaixEXCurN6xL9yj5s4t', `confirmation_sent_at` = '2012-12-31 12:45:54' WHERE `users`.`id` = x'3decf949510b45bea4df3ab5cf1f08c0' Sent mail to regular@user.email (7ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: regular@user.email Message-ID: <50e189029cfe5_f6180435d4815887@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_3decf949-510b-45be-a4df-3ab5cf1f08c0_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3decf949510b45bea4df3ab5cf1f08c0' AND (accounts.id = x'3876d18ca82c4a5c902cbca2d01d1eec') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3decf949510b45bea4df3ab5cf1f08c0' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 38ms (ActiveRecord: 3.1ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:54', 'teste@teste.com', '$2a$04$mYlXiIy3UX2vYvfiApySkOp9izPs0PrSgqysSpn6zGQKENlWpGrKC', NULL, x'12ebd3e5e7b54368bfe65bbfd6f5f0e1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'12ebd3e5e7b54368bfe65bbfd6f5f0e1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'de545ff4d93f4348a4c121a3d861adeb', '38d06084050b4519472d8d28d08ab1e1', x'12ebd3e5e7b54368bfe65bbfd6f5f0e1', 'User', '2012-12-31 12:45:54') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'12ebd3e5e7b54368bfe65bbfd6f5f0e1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'f52ed5f0dafe42a89d53a0860d836851', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accountf52ed5f0-dafe-42a8-9d53-a0860d836851' WHERE `accounts`.`id` = x'f52ed5f0dafe42a89d53a0860d836851' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f52ed5f0dafe42a89d53a0860d836851' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f52ed5f0dafe42a89d53a0860d836851', x'86efb08eb19e46e494ceac8a4c4f87a9', x'12ebd3e5e7b54368bfe65bbfd6f5f0e1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'86efb08eb19e46e494ceac8a4c4f87a9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86efb08eb19e46e494ceac8a4c4f87a9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86efb08eb19e46e494ceac8a4c4f87a9', x'3dcbf753a45d4e7189c29b0edc3a4743', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'86efb08eb19e46e494ceac8a4c4f87a9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86efb08eb19e46e494ceac8a4c4f87a9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86efb08eb19e46e494ceac8a4c4f87a9', x'de35e3c45e094b20baaef23a62928b72', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:54 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18902c381b_f6180435d48159c6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'bbf018e3bb164f28adb6915e76c461c5', 'jabanilson', NULL, 1, '2012-12-31 12:45:54')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accountbbf018e3-bb16-4f28-adb6-915e76c461c5' WHERE `accounts`.`id` = x'bbf018e3bb164f28adb6915e76c461c5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bbf018e3bb164f28adb6915e76c461c5', x'eaf6a74169304589b61cd2a205a98f4b', x'12ebd3e5e7b54368bfe65bbfd6f5f0e1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eaf6a74169304589b61cd2a205a98f4b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaf6a74169304589b61cd2a205a98f4b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaf6a74169304589b61cd2a205a98f4b', x'609aba5aa3e3412c8344565b00f22445', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eaf6a74169304589b61cd2a205a98f4b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaf6a74169304589b61cd2a205a98f4b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaf6a74169304589b61cd2a205a98f4b', x'3d1ab499893f49c2a2be0189a62d473e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'12ebd3e5e7b54368bfe65bbfd6f5f0e1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'12ebd3e5e7b54368bfe65bbfd6f5f0e1' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'46060e590aa341509f85522d85c4a67c', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'12ebd3e5e7b54368bfe65bbfd6f5f0e1' WHERE `social_accounts`.`id` = x'46060e590aa341509f85522d85c4a67c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:54', '2012-12-31 12:45:54', '', '', 1, x'c9668d65a48444c18e5db45ba9ee3c91', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c9668d65a48444c18e5db45ba9ee3c91' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'4cb93c3d46b2414bba28dd39546f9412', 'cf7411a24f17e4ae1867231db8306102', x'c9668d65a48444c18e5db45ba9ee3c91', 'User', '2012-12-31 12:45:54') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c9668d65a48444c18e5db45ba9ee3c91' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'e749a664302143aeb015ee8d6ebc2f97', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accounte749a664-3021-43ae-b015-ee8d6ebc2f97' WHERE `accounts`.`id` = x'e749a664302143aeb015ee8d6ebc2f97' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e749a664302143aeb015ee8d6ebc2f97' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e749a664302143aeb015ee8d6ebc2f97', x'00cf744f54fe483d98d85b715da7ba75', x'c9668d65a48444c18e5db45ba9ee3c91') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'00cf744f54fe483d98d85b715da7ba75') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'00cf744f54fe483d98d85b715da7ba75' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'00cf744f54fe483d98d85b715da7ba75', x'1931d50f2a22496593acad7707232536', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'00cf744f54fe483d98d85b715da7ba75') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'00cf744f54fe483d98d85b715da7ba75' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'00cf744f54fe483d98d85b715da7ba75', x'9a7c71ffa0cc47078c29b7d3c12cca76', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:54', NULL, '--- !ruby/struct:DestroyUserJob\nid: c9668d65-a484-44c1-8e5d-b45ba9ee3c91\n', NULL, NULL, NULL, 0, 'guest_c9668d65-a484-44c1-8e5d-b45ba9ee3c91_destroy', '2013-01-07 12:45:54', '2012-12-31 12:45:54')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c9668d65a48444c18e5db45ba9ee3c91' LIMIT 1 Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.3ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:54', '2012-12-31 12:45:54', '', '', 1, x'ff300f33e5db46ee99be76cf1b89fcd0', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:45:54') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ff300f33e5db46ee99be76cf1b89fcd0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:54', 'User', x'ac101b0a3de8491c90b9786a564b06e7', '9ca7a2f2603f5c745968041f0120caa4', x'ff300f33e5db46ee99be76cf1b89fcd0', 'User', '2012-12-31 12:45:54') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ff300f33e5db46ee99be76cf1b89fcd0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:54', x'dbf41a7ef13a4a7987e28b486e47ad1b', NULL, NULL, NULL, '2012-12-31 12:45:54')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54', `subdomain` = 'accountdbf41a7e-f13a-4a79-87e2-8b486e47ad1b' WHERE `accounts`.`id` = x'dbf41a7ef13a4a7987e28b486e47ad1b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dbf41a7ef13a4a7987e28b486e47ad1b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dbf41a7ef13a4a7987e28b486e47ad1b', x'c521a06131d344838827399ca9844d8d', x'ff300f33e5db46ee99be76cf1b89fcd0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c521a06131d344838827399ca9844d8d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c521a06131d344838827399ca9844d8d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c521a06131d344838827399ca9844d8d', x'6e60c9f412884e4c9d7a489291b5d442', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c521a06131d344838827399ca9844d8d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c521a06131d344838827399ca9844d8d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c521a06131d344838827399ca9844d8d', x'35299547125741c6a3c98a57b24b22d1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:54', NULL, '--- !ruby/struct:DestroyUserJob\nid: ff300f33-e5db-46ee-99be-76cf1b89fcd0\n', NULL, NULL, NULL, 0, 'guest_ff300f33-e5db-46ee-99be-76cf1b89fcd0_destroy', '2013-01-07 12:45:54', '2012-12-31 12:45:54')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2012-12-31 12:45:54', `updated_at` = '2012-12-31 12:45:54' WHERE `users`.`id` = x'ff300f33e5db46ee99be76cf1b89fcd0'  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff300f33e5db46ee99be76cf1b89fcd0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff300f33e5db46ee99be76cf1b89fcd0' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 55ms (ActiveRecord: 5.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.0ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 2ms (ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 363ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:55', 'teste@teste.com', '$2a$04$O5.Fr345Y0MxsYKtRWfz7.DN0X9geEf.ZpjgIKhwY.le5FhXNhmWS', NULL, x'06a2b617963c429daaa1e7a4e48328dd', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:55') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'06a2b617963c429daaa1e7a4e48328dd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:55', 'User', x'c31a0bdb79b7455dbb1471b5e4c8260f', '5f0978bd158888a2f94d60b8f3fc34ef', x'06a2b617963c429daaa1e7a4e48328dd', 'User', '2012-12-31 12:45:55') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'06a2b617963c429daaa1e7a4e48328dd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'7a765c94782d4ac5b1dd1d047ff45582', NULL, NULL, NULL, '2012-12-31 12:45:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'account7a765c94-782d-4ac5-b1dd-1d047ff45582' WHERE `accounts`.`id` = x'7a765c94782d4ac5b1dd1d047ff45582' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a765c94782d4ac5b1dd1d047ff45582' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7a765c94782d4ac5b1dd1d047ff45582', x'444822fcfe3947159793ce32ceadfe3a', x'06a2b617963c429daaa1e7a4e48328dd') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'444822fcfe3947159793ce32ceadfe3a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'444822fcfe3947159793ce32ceadfe3a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'444822fcfe3947159793ce32ceadfe3a', x'03a05dcce13444289391edac7246ec81', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'444822fcfe3947159793ce32ceadfe3a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'444822fcfe3947159793ce32ceadfe3a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'444822fcfe3947159793ce32ceadfe3a', x'6a9e999c0e864758bbdab9361b97e8e3', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890356b86_f6180435d48160bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'a879e0126f7545808d6a8023c48fbddb', 'jabanilson', NULL, 1, '2012-12-31 12:45:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'accounta879e012-6f75-4580-8d6a-8023c48fbddb' WHERE `accounts`.`id` = x'a879e0126f7545808d6a8023c48fbddb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a879e0126f7545808d6a8023c48fbddb', x'10304a2030eb4ff4886f44d64ab608ec', x'06a2b617963c429daaa1e7a4e48328dd') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'10304a2030eb4ff4886f44d64ab608ec') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10304a2030eb4ff4886f44d64ab608ec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10304a2030eb4ff4886f44d64ab608ec', x'495c309645dc43b69b59354cd36befe1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'10304a2030eb4ff4886f44d64ab608ec') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10304a2030eb4ff4886f44d64ab608ec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10304a2030eb4ff4886f44d64ab608ec', x'943ff45a76be4673854114f85896467a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06a2b617963c429daaa1e7a4e48328dd' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06a2b617963c429daaa1e7a4e48328dd' LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'06a2b617963c429daaa1e7a4e48328dd' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:55', 'teste@teste.com', '$2a$04$lPH/44Zu0UmivBaubjW82Ol5qnqu.XMlPoaYO75l.AcANYR7eNyY2', NULL, x'f8b3e468ca6a49599de8b2205645cb92', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f8b3e468ca6a49599de8b2205645cb92' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:55', 'User', x'683b027c5cdb410fa97ae7f3b6728cd3', '4db64819f8ac467f0d3c7febd1c1c60b', x'f8b3e468ca6a49599de8b2205645cb92', 'User', '2012-12-31 12:45:55') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f8b3e468ca6a49599de8b2205645cb92' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'fffa0bc872784d6fb0b5effa5d5f2866', NULL, NULL, NULL, '2012-12-31 12:45:55')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'accountfffa0bc8-7278-4d6f-b0b5-effa5d5f2866' WHERE `accounts`.`id` = x'fffa0bc872784d6fb0b5effa5d5f2866' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fffa0bc872784d6fb0b5effa5d5f2866' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fffa0bc872784d6fb0b5effa5d5f2866', x'c63f691d4ba7448a9b28914d17a3ffac', x'f8b3e468ca6a49599de8b2205645cb92') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c63f691d4ba7448a9b28914d17a3ffac') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c63f691d4ba7448a9b28914d17a3ffac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c63f691d4ba7448a9b28914d17a3ffac', x'a2c5895298eb446aac0e80883db2bc9c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c63f691d4ba7448a9b28914d17a3ffac') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c63f691d4ba7448a9b28914d17a3ffac' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c63f691d4ba7448a9b28914d17a3ffac', x'0259709d5d534560ab89ded6d7e46029', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18903811b7_f6180435d4816187@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'9277c9ffbdcf4031bc174052c94d2f7a', 'jabanilson', NULL, 1, '2012-12-31 12:45:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'account9277c9ff-bdcf-4031-bc17-4052c94d2f7a' WHERE `accounts`.`id` = x'9277c9ffbdcf4031bc174052c94d2f7a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9277c9ffbdcf4031bc174052c94d2f7a', x'3c0c5749ac3246c4bb2bbdb89f2cd894', x'f8b3e468ca6a49599de8b2205645cb92') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c0c5749ac3246c4bb2bbdb89f2cd894', x'652e2ae127f74c6d91405967d6e3a991', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c0c5749ac3246c4bb2bbdb89f2cd894', x'dd2f4ee9bcff4330a01ea1febc12a8be', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f8b3e468ca6a49599de8b2205645cb92' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f8b3e468ca6a49599de8b2205645cb92' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:55', 'user2@email.email', '$2a$04$kjlg1U.MSZKlAkvau/cgueWpLFZ6YS5p8dCuG2kQC41okO0RWP3sS', NULL, x'5014bb948cb149b3a9052c255f072a88', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5014bb948cb149b3a9052c255f072a88' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:55', 'User', x'd38d4427922941e3938a8d430538f53a', '186608bd1cdd09e4e685313528044522', x'5014bb948cb149b3a9052c255f072a88', 'User', '2012-12-31 12:45:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5014bb948cb149b3a9052c255f072a88' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'5af8c7e867014ef8bb188aac359e4bfd', NULL, NULL, NULL, '2012-12-31 12:45:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'account5af8c7e8-6701-4ef8-bb18-8aac359e4bfd' WHERE `accounts`.`id` = x'5af8c7e867014ef8bb188aac359e4bfd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5af8c7e867014ef8bb188aac359e4bfd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5af8c7e867014ef8bb188aac359e4bfd', x'c76c1bf7b9c943de99245992997567ce', x'5014bb948cb149b3a9052c255f072a88') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c76c1bf7b9c943de99245992997567ce') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c76c1bf7b9c943de99245992997567ce' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c76c1bf7b9c943de99245992997567ce', x'a728384cd59c4d499ac60f0739fb660b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c76c1bf7b9c943de99245992997567ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c76c1bf7b9c943de99245992997567ce' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c76c1bf7b9c943de99245992997567ce', x'a0151bcfe84c43698f0431510cc359ed', 'admin') Sent mail to user2@email.email (6ms) Date: Mon, 31 Dec 2012 10:45:55 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e18903911ba_f6180435d481622f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f8b3e468ca6a49599de8b2205645cb92' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9277c9ffbdcf4031bc174052c94d2f7a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9277c9ffbdcf4031bc174052c94d2f7a', x'5c1016a281f842f28aafb1f627658879', x'5014bb948cb149b3a9052c255f072a88') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5c1016a281f842f28aafb1f627658879') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c1016a281f842f28aafb1f627658879' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c1016a281f842f28aafb1f627658879', x'3fbe234ec79047c9b8a7a3ab81679824', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5c1016a281f842f28aafb1f627658879') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c1016a281f842f28aafb1f627658879' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c1016a281f842f28aafb1f627658879', x'a08db4ca1c1c417e9af0ed1d3ca21ae5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f8b3e468ca6a49599de8b2205645cb92' AND `account_users`.`account_id` = x'9277c9ffbdcf4031bc174052c94d2f7a' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894'  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '’wÉÿ½Ï@1¼@RÉM/z' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'652e2ae127f74c6d91405967d6e3a991' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'dd2f4ee9bcff4330a01ea1febc12a8be'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c0c5749ac3246c4bb2bbdb89f2cd894', x'd2e0244257bb4c9bb7fbf98276995529', 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"9277C9FFBDCF4031BC174052C94D2F7A"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f8b3e468ca6a49599de8b2205645cb92' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f8b3e468ca6a49599de8b2205645cb92' AND `account_users`.`account_id` = x'9277c9ffbdcf4031bc174052c94d2f7a' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 8ms (Views: 0.5ms | ActiveRecord: 1.3ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"9277C9FFBDCF4031BC174052C94D2F7A"} AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f8b3e468ca6a49599de8b2205645cb92' AND `account_users`.`account_id` = x'9277c9ffbdcf4031bc174052c94d2f7a' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c0c5749ac3246c4bb2bbdb89f2cd894' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 0.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:55', 'teste@teste.com', '$2a$04$9kA4fILVv5Vc07uFJecTA.Sy1kQ3gCDoiJrubU.nYybQmOE1VUFA2', NULL, x'f9878ba3f4be40bb880e9bf82c32d2fa', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:55', 'User', x'2949ebfb44e94181976630396b7adc72', '919a381a9ec9683c01ebc27045bf8c9d', x'f9878ba3f4be40bb880e9bf82c32d2fa', 'User', '2012-12-31 12:45:55') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'7189779fa43f4033ae91682ee1a00666', NULL, NULL, NULL, '2012-12-31 12:45:55')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'account7189779f-a43f-4033-ae91-682ee1a00666' WHERE `accounts`.`id` = x'7189779fa43f4033ae91682ee1a00666' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7189779fa43f4033ae91682ee1a00666' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7189779fa43f4033ae91682ee1a00666', x'ae0adae4b8644d9696f1ef8af5d226e9', x'f9878ba3f4be40bb880e9bf82c32d2fa') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae0adae4b8644d9696f1ef8af5d226e9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae0adae4b8644d9696f1ef8af5d226e9', x'0d1650f7af1749369f960d9ec541d15a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae0adae4b8644d9696f1ef8af5d226e9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae0adae4b8644d9696f1ef8af5d226e9', x'a631233a59c04abf890fb92f2fe788a1', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18903ab0bc_f6180435d4816358@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'8f412a7a25c844dca99fa36b19a20353', 'jabanilson', NULL, 1, '2012-12-31 12:45:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'account8f412a7a-25c8-44dc-a99f-a36b19a20353' WHERE `accounts`.`id` = x'8f412a7a25c844dca99fa36b19a20353'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8f412a7a25c844dca99fa36b19a20353', x'be67b3f2424c4d0ba39c69ba7f8cfdb6', x'f9878ba3f4be40bb880e9bf82c32d2fa') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'be67b3f2424c4d0ba39c69ba7f8cfdb6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be67b3f2424c4d0ba39c69ba7f8cfdb6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be67b3f2424c4d0ba39c69ba7f8cfdb6', x'ce89fad984d9445f84e59ec7161011c7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'be67b3f2424c4d0ba39c69ba7f8cfdb6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be67b3f2424c4d0ba39c69ba7f8cfdb6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be67b3f2424c4d0ba39c69ba7f8cfdb6', x'664d3a95ce834b8abb24eff9415bc21f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:55', 'user2@email.email', '$2a$04$NwvLd2jfRHWkdQKCFSOSeelB6iGlQYiK/x7hDhx71dE5OIsus4Aki', NULL, x'cbe1413f07ac40709b0371785999a8c6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cbe1413f07ac40709b0371785999a8c6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:55', 'User', x'3c43afb4e1df4e42b5dec22c5912efdb', '7dccadffcd13391a5c51896892d41f16', x'cbe1413f07ac40709b0371785999a8c6', 'User', '2012-12-31 12:45:55') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cbe1413f07ac40709b0371785999a8c6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'0d0f865dd9444166af53991aef648662', NULL, NULL, NULL, '2012-12-31 12:45:55')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'account0d0f865d-d944-4166-af53-991aef648662' WHERE `accounts`.`id` = x'0d0f865dd9444166af53991aef648662' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0d0f865dd9444166af53991aef648662' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0d0f865dd9444166af53991aef648662', x'bdc3e108c05140d0bc0a1b5c4daa1e71', x'cbe1413f07ac40709b0371785999a8c6') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bdc3e108c05140d0bc0a1b5c4daa1e71') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bdc3e108c05140d0bc0a1b5c4daa1e71' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bdc3e108c05140d0bc0a1b5c4daa1e71', x'5d2a7732ff9b4fdc82e86e4f2e5f1ac0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bdc3e108c05140d0bc0a1b5c4daa1e71') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bdc3e108c05140d0bc0a1b5c4daa1e71' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bdc3e108c05140d0bc0a1b5c4daa1e71', x'4c2d9fafb5d041e1bb01f804963376f6', 'admin') Sent mail to user2@email.email (7ms) Date: Mon, 31 Dec 2012 10:45:55 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e18903d28e1_f6180435d48164de@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7189779fa43f4033ae91682ee1a00666' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7189779fa43f4033ae91682ee1a00666', x'9a39386f832240fb84ae0eb887332f75', x'cbe1413f07ac40709b0371785999a8c6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9a39386f832240fb84ae0eb887332f75') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a39386f832240fb84ae0eb887332f75' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a39386f832240fb84ae0eb887332f75', x'377325f703a04465adb291782d623f28', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9a39386f832240fb84ae0eb887332f75') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a39386f832240fb84ae0eb887332f75' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a39386f832240fb84ae0eb887332f75', x'f33f74ca3fcc42fab3c669711027d8a0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' AND `account_users`.`account_id` = x'7189779fa43f4033ae91682ee1a00666' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae0adae4b8644d9696f1ef8af5d226e9' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'q‰wŸ¤?@3®‘h.á f' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0d1650f7af1749369f960d9ec541d15a' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a631233a59c04abf890fb92f2fe788a1'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae0adae4b8644d9696f1ef8af5d226e9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae0adae4b8644d9696f1ef8af5d226e9', x'1eb69599e57c4367a950b78a893e9771', 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"7189779FA43F4033AE91682EE1A00666"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' AND `account_users`.`account_id` = x'7189779fa43f4033ae91682ee1a00666' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.2ms)  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'q‰wŸ¤?@3®‘h.á f' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1eb69599e57c4367a950b78a893e9771'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae0adae4b8644d9696f1ef8af5d226e9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae0adae4b8644d9696f1ef8af5d226e9', x'9b61b7471ecf4cb291a8ef36e5a3eabf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"7189779FA43F4033AE91682EE1A00666"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f9878ba3f4be40bb880e9bf82c32d2fa' AND `account_users`.`account_id` = x'7189779fa43f4033ae91682ee1a00666' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ae0adae4b8644d9696f1ef8af5d226e9' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:55', 'teste@teste.com', '$2a$04$uxVsth1twQSwQMmJ798OWOsA7s66Oq2PmZqejGQCQy0fWWb8hpnEe', NULL, x'a819bc268e744fdd9ab5b7802cbc2863', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:55') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a819bc268e744fdd9ab5b7802cbc2863' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:55', 'User', x'8f29f4566aad42b68b0ce76976a7b1dc', '9d0e8b39b3cc2d632df296624c5b9b01', x'a819bc268e744fdd9ab5b7802cbc2863', 'User', '2012-12-31 12:45:55') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a819bc268e744fdd9ab5b7802cbc2863' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'f91dbae6118e4e2283517fe7dc80d3ec', NULL, NULL, NULL, '2012-12-31 12:45:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'accountf91dbae6-118e-4e22-8351-7fe7dc80d3ec' WHERE `accounts`.`id` = x'f91dbae6118e4e2283517fe7dc80d3ec' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f91dbae6118e4e2283517fe7dc80d3ec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f91dbae6118e4e2283517fe7dc80d3ec', x'3d4ca84ceae446e2b7bc8d206f00fabe', x'a819bc268e744fdd9ab5b7802cbc2863') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3d4ca84ceae446e2b7bc8d206f00fabe') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d4ca84ceae446e2b7bc8d206f00fabe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d4ca84ceae446e2b7bc8d206f00fabe', x'e3784a28000748c1925453b6912abd03', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3d4ca84ceae446e2b7bc8d206f00fabe') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d4ca84ceae446e2b7bc8d206f00fabe' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d4ca84ceae446e2b7bc8d206f00fabe', x'39de32067d5e4c84bef26343a849bf90', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:55 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18903eda29_f6180435d48165b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:55', x'bc91206145c54d8da28c5a35d0cac52c', 'jabanilson', NULL, 1, '2012-12-31 12:45:55')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:55', `updated_at` = '2012-12-31 12:45:55', `subdomain` = 'accountbc912061-45c5-4d8d-a28c-5a35d0cac52c' WHERE `accounts`.`id` = x'bc91206145c54d8da28c5a35d0cac52c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bc91206145c54d8da28c5a35d0cac52c', x'ecb4bf0d19334848b3535f58ecd992b1', x'a819bc268e744fdd9ab5b7802cbc2863') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ecb4bf0d19334848b3535f58ecd992b1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecb4bf0d19334848b3535f58ecd992b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ecb4bf0d19334848b3535f58ecd992b1', x'f68eb1c5a8804d2796d53477847926bd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ecb4bf0d19334848b3535f58ecd992b1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecb4bf0d19334848b3535f58ecd992b1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ecb4bf0d19334848b3535f58ecd992b1', x'61bbce29888f4979b50c2536df30b2bf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a819bc268e744fdd9ab5b7802cbc2863' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a819bc268e744fdd9ab5b7802cbc2863' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:56', 'user2@email.email', '$2a$04$fNXzKKwLXpgc3xhuwg6KZOQ8bcqqE0I2fkxjsuC2eKTPX8Mnws8TW', NULL, x'58e88b36be4540a08eb9bdf10be98e01', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:56') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'58e88b36be4540a08eb9bdf10be98e01' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:56', 'User', x'd4991388f1a640a596da5d6b0310555e', 'a4f3bd8599b54683b94d33a3be1affef', x'58e88b36be4540a08eb9bdf10be98e01', 'User', '2012-12-31 12:45:56') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'58e88b36be4540a08eb9bdf10be98e01' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'865706393cbb456e8794732d649b69fc', NULL, NULL, NULL, '2012-12-31 12:45:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'account86570639-3cbb-456e-8794-732d649b69fc' WHERE `accounts`.`id` = x'865706393cbb456e8794732d649b69fc' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'865706393cbb456e8794732d649b69fc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'865706393cbb456e8794732d649b69fc', x'eaf711d9266e40eb80932e53df34d701', x'58e88b36be4540a08eb9bdf10be98e01') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eaf711d9266e40eb80932e53df34d701') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaf711d9266e40eb80932e53df34d701' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaf711d9266e40eb80932e53df34d701', x'd30fc50855e14863be88c1e01f376631', 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eaf711d9266e40eb80932e53df34d701') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eaf711d9266e40eb80932e53df34d701' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eaf711d9266e40eb80932e53df34d701', x'66da265a7a7049c2b0f4b871ae1431f5', 'admin') Sent mail to user2@email.email (7ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e189049b13_f6180435d481662f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a819bc268e744fdd9ab5b7802cbc2863' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f91dbae6118e4e2283517fe7dc80d3ec' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f91dbae6118e4e2283517fe7dc80d3ec', x'ae115a0a4c6d4f7f92b1ed44bc30a41d', x'58e88b36be4540a08eb9bdf10be98e01') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ae115a0a4c6d4f7f92b1ed44bc30a41d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae115a0a4c6d4f7f92b1ed44bc30a41d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae115a0a4c6d4f7f92b1ed44bc30a41d', x'03059734bc25469684fc5eeca926b80e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ae115a0a4c6d4f7f92b1ed44bc30a41d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae115a0a4c6d4f7f92b1ed44bc30a41d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae115a0a4c6d4f7f92b1ed44bc30a41d', x'3a0c2eb80b4e458a8fc4df54942b92ba', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a819bc268e744fdd9ab5b7802cbc2863' AND `account_users`.`account_id` = x'f91dbae6118e4e2283517fe7dc80d3ec' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3d4ca84ceae446e2b7bc8d206f00fabe'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'39de32067d5e4c84bef26343a849bf90' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d4ca84ceae446e2b7bc8d206f00fabe' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e3784a28000748c1925453b6912abd03'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3d4ca84ceae446e2b7bc8d206f00fabe') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d4ca84ceae446e2b7bc8d206f00fabe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d4ca84ceae446e2b7bc8d206f00fabe', x'8c98c4d49ebb4f209bcee7f3e4abbc81', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"F91DBAE6118E4E2283517FE7DC80D3EC"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a819bc268e744fdd9ab5b7802cbc2863' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a819bc268e744fdd9ab5b7802cbc2863' AND `account_users`.`account_id` = x'f91dbae6118e4e2283517fe7dc80d3ec' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3d4ca84ceae446e2b7bc8d206f00fabe' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3d4ca84ceae446e2b7bc8d206f00fabe' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.2ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"F91DBAE6118E4E2283517FE7DC80D3EC"} AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a819bc268e744fdd9ab5b7802cbc2863' AND `account_users`.`account_id` = x'f91dbae6118e4e2283517fe7dc80d3ec' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3d4ca84ceae446e2b7bc8d206f00fabe' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:56', 'teste@teste.com', '$2a$04$L/RLAVo1uLeVsEvubYfwHeozREv7vmKQl1ALrQcN6ZEGBXB1twQQm', NULL, x'82c1c977b75c4e83a1d1e1aadce42cd7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'82c1c977b75c4e83a1d1e1aadce42cd7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:56', 'User', x'6dd6d7a44c6a4ef29b9afc06afe73a12', '8f59b25880ad8fc920bc1e6e182b0393', x'82c1c977b75c4e83a1d1e1aadce42cd7', 'User', '2012-12-31 12:45:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'82c1c977b75c4e83a1d1e1aadce42cd7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'752986686e2644c48259ca97636db50e', NULL, NULL, NULL, '2012-12-31 12:45:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'account75298668-6e26-44c4-8259-ca97636db50e' WHERE `accounts`.`id` = x'752986686e2644c48259ca97636db50e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'752986686e2644c48259ca97636db50e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'752986686e2644c48259ca97636db50e', x'3b55778627e7467b80fca74182e7c2db', x'82c1c977b75c4e83a1d1e1aadce42cd7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3b55778627e7467b80fca74182e7c2db') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b55778627e7467b80fca74182e7c2db' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b55778627e7467b80fca74182e7c2db', x'86bb5c6dff914d109c3428f9dd6f0a1b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3b55778627e7467b80fca74182e7c2db') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b55778627e7467b80fca74182e7c2db' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b55778627e7467b80fca74182e7c2db', x'cef445ce2ca64938b2eeb62b5e72bc8f', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189043ac93_f6180435d48167f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'e1e01518aa2b4c62b77f985df943e1fc', 'jabanilson', NULL, 1, '2012-12-31 12:45:56')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'accounte1e01518-aa2b-4c62-b77f-985df943e1fc' WHERE `accounts`.`id` = x'e1e01518aa2b4c62b77f985df943e1fc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e1e01518aa2b4c62b77f985df943e1fc', x'19ec302b6c2b4b6e804d07578ec29d72', x'82c1c977b75c4e83a1d1e1aadce42cd7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'19ec302b6c2b4b6e804d07578ec29d72') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19ec302b6c2b4b6e804d07578ec29d72' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19ec302b6c2b4b6e804d07578ec29d72', x'667c034111c048a5a917eecd89bbbc63', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'19ec302b6c2b4b6e804d07578ec29d72') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19ec302b6c2b4b6e804d07578ec29d72' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19ec302b6c2b4b6e804d07578ec29d72', x'c1565189d9364883a3ff2245d464d7bb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82c1c977b75c4e83a1d1e1aadce42cd7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82c1c977b75c4e83a1d1e1aadce42cd7' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:56', 'user2@email.email', '$2a$04$XA7GfAVwuA5RpN9nKfIKKOZQlNZ5yt1YFkPUhxkZGaULwhuUE9V3y', NULL, x'39c1a5a42c644a459a015a29d74145db', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'39c1a5a42c644a459a015a29d74145db' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:56', 'User', x'9bf8b4e815284ac3b4a29d66b3b2f62c', '638a5d05cdadd34c92b1d5275abe72ba', x'39c1a5a42c644a459a015a29d74145db', 'User', '2012-12-31 12:45:56') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'39c1a5a42c644a459a015a29d74145db' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'f6727fbc08dd4513899174ba68860daf', NULL, NULL, NULL, '2012-12-31 12:45:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'accountf6727fbc-08dd-4513-8991-74ba68860daf' WHERE `accounts`.`id` = x'f6727fbc08dd4513899174ba68860daf' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f6727fbc08dd4513899174ba68860daf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f6727fbc08dd4513899174ba68860daf', x'93ca86258a2f4b94bcbbcadcc0978b26', x'39c1a5a42c644a459a015a29d74145db') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'93ca86258a2f4b94bcbbcadcc0978b26') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'93ca86258a2f4b94bcbbcadcc0978b26' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'93ca86258a2f4b94bcbbcadcc0978b26', x'567d9236652d481199f39c3c027d7ee2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'93ca86258a2f4b94bcbbcadcc0978b26') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'93ca86258a2f4b94bcbbcadcc0978b26' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'93ca86258a2f4b94bcbbcadcc0978b26', x'9318136c94c44cb487c6756ce3488b58', 'admin') Sent mail to user2@email.email (7ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e189044afcb_f6180435d48168b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82c1c977b75c4e83a1d1e1aadce42cd7' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e1e01518aa2b4c62b77f985df943e1fc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e1e01518aa2b4c62b77f985df943e1fc', x'c9ea4924df3843bebbb98270129c113d', x'39c1a5a42c644a459a015a29d74145db') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c9ea4924df3843bebbb98270129c113d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c9ea4924df3843bebbb98270129c113d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c9ea4924df3843bebbb98270129c113d', x'282550236e864a13a6283708d7ab4acd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c9ea4924df3843bebbb98270129c113d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c9ea4924df3843bebbb98270129c113d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c9ea4924df3843bebbb98270129c113d', x'62bd7082864546d1aff38bae29389a3b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'82c1c977b75c4e83a1d1e1aadce42cd7' AND `account_users`.`account_id` = x'e1e01518aa2b4c62b77f985df943e1fc' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'19ec302b6c2b4b6e804d07578ec29d72'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19ec302b6c2b4b6e804d07578ec29d72' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'áàª+Lb·˜]ùCáü' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'667c034111c048a5a917eecd89bbbc63' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c1565189d9364883a3ff2245d464d7bb'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'19ec302b6c2b4b6e804d07578ec29d72') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19ec302b6c2b4b6e804d07578ec29d72' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19ec302b6c2b4b6e804d07578ec29d72', x'f383d611189e454aa0fea9d644b22c5c', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"E1E01518AA2B4C62B77F985DF943E1FC"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'82c1c977b75c4e83a1d1e1aadce42cd7' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'82c1c977b75c4e83a1d1e1aadce42cd7' AND `account_users`.`account_id` = x'e1e01518aa2b4c62b77f985df943e1fc' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'19ec302b6c2b4b6e804d07578ec29d72' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'19ec302b6c2b4b6e804d07578ec29d72' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 6ms  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:56', 'teste@teste.com', '$2a$04$dffHKcDY7Um0hBrsy2bSIuJIG5QVZfCJ8ynVBMLOi254bW2FshgZ2', NULL, x'a00481943dc44a2d8f41a4d5fede19ee', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a00481943dc44a2d8f41a4d5fede19ee' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:56', 'User', x'a4cdb4d0f2674aacb1df5d01d5508ad9', '5510e220a88377156aa0cce2ff55e415', x'a00481943dc44a2d8f41a4d5fede19ee', 'User', '2012-12-31 12:45:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a00481943dc44a2d8f41a4d5fede19ee' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'973ef62afe3a4fcd877b021624df9ed4', NULL, NULL, NULL, '2012-12-31 12:45:56')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'account973ef62a-fe3a-4fcd-877b-021624df9ed4' WHERE `accounts`.`id` = x'973ef62afe3a4fcd877b021624df9ed4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'973ef62afe3a4fcd877b021624df9ed4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'973ef62afe3a4fcd877b021624df9ed4', x'5d349b147b804a5c983724902281908d', x'a00481943dc44a2d8f41a4d5fede19ee') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5d349b147b804a5c983724902281908d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d349b147b804a5c983724902281908d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d349b147b804a5c983724902281908d', x'254d87b86b6a48e79ac7c05167ccbd37', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5d349b147b804a5c983724902281908d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d349b147b804a5c983724902281908d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d349b147b804a5c983724902281908d', x'8dc8297715cf49269e32f4ed8896f7c2', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890460d36_f6180435d481694f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'4062731c47624a26b8997cd4b19807fa', 'jabanilson', NULL, 1, '2012-12-31 12:45:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'account4062731c-4762-4a26-b899-7cd4b19807fa' WHERE `accounts`.`id` = x'4062731c47624a26b8997cd4b19807fa'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4062731c47624a26b8997cd4b19807fa', x'45339583621849cdb3cb78a14046d820', x'a00481943dc44a2d8f41a4d5fede19ee') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'45339583621849cdb3cb78a14046d820') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45339583621849cdb3cb78a14046d820' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45339583621849cdb3cb78a14046d820', x'65db910a69b1480bbdabed82d1ea143d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'45339583621849cdb3cb78a14046d820') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45339583621849cdb3cb78a14046d820' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45339583621849cdb3cb78a14046d820', x'16b7e0363db94083b6dc15d64ef19caf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a00481943dc44a2d8f41a4d5fede19ee' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a00481943dc44a2d8f41a4d5fede19ee' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:56', 'user2@email.email', '$2a$04$mVgqx1F7bpzdxIf7qrSLAukJ75YZgjsTte5zXow8D6FKjNI6n5gGS', NULL, x'6401e5cd23dd4af89c6c621efe1e244c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:56') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6401e5cd23dd4af89c6c621efe1e244c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:56', 'User', x'f3f9f3b8d3ba4811bc391ffafb3f33d0', '70dad9f49d4975317cbf9505fed2a97a', x'6401e5cd23dd4af89c6c621efe1e244c', 'User', '2012-12-31 12:45:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6401e5cd23dd4af89c6c621efe1e244c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'd560e672bc6545de9bde03f1104257cd', NULL, NULL, NULL, '2012-12-31 12:45:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'accountd560e672-bc65-45de-9bde-03f1104257cd' WHERE `accounts`.`id` = x'd560e672bc6545de9bde03f1104257cd' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd560e672bc6545de9bde03f1104257cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd560e672bc6545de9bde03f1104257cd', x'e55e0097a9d0427b8aa7317bc3111b71', x'6401e5cd23dd4af89c6c621efe1e244c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e55e0097a9d0427b8aa7317bc3111b71') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e55e0097a9d0427b8aa7317bc3111b71' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e55e0097a9d0427b8aa7317bc3111b71', x'c05904bf5726453eae06eab8bebae107', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e55e0097a9d0427b8aa7317bc3111b71') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e55e0097a9d0427b8aa7317bc3111b71' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e55e0097a9d0427b8aa7317bc3111b71', x'15ed0dd9a74b4e0e9c15db838e4229b6', 'admin') Sent mail to user2@email.email (7ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e1890470e7b_f6180435d48170c1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a00481943dc44a2d8f41a4d5fede19ee' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4062731c47624a26b8997cd4b19807fa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4062731c47624a26b8997cd4b19807fa', x'323f16f7b0a443d5bcdb2b3a476d9e9c', x'6401e5cd23dd4af89c6c621efe1e244c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'323f16f7b0a443d5bcdb2b3a476d9e9c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'323f16f7b0a443d5bcdb2b3a476d9e9c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'323f16f7b0a443d5bcdb2b3a476d9e9c', x'e9d3eca330e24995836cbd42b749e83b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'323f16f7b0a443d5bcdb2b3a476d9e9c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'323f16f7b0a443d5bcdb2b3a476d9e9c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'323f16f7b0a443d5bcdb2b3a476d9e9c', x'1215f734523b435886b0127848794c49', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a00481943dc44a2d8f41a4d5fede19ee' AND `account_users`.`account_id` = x'4062731c47624a26b8997cd4b19807fa' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'45339583621849cdb3cb78a14046d820'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'16b7e0363db94083b6dc15d64ef19caf' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45339583621849cdb3cb78a14046d820' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '@bsGbJ&¸™|Ô±˜ú' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'65db910a69b1480bbdabed82d1ea143d'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'45339583621849cdb3cb78a14046d820') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45339583621849cdb3cb78a14046d820' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45339583621849cdb3cb78a14046d820', x'cefbeb2267844145b66417c967033640', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'cefbeb2267844145b66417c967033640'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'45339583621849cdb3cb78a14046d820') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45339583621849cdb3cb78a14046d820' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45339583621849cdb3cb78a14046d820', x'9b7556dff5e949c5ad42638bec7228ce', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"4062731C47624A26B8997CD4B19807FA"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a00481943dc44a2d8f41a4d5fede19ee' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a00481943dc44a2d8f41a4d5fede19ee' AND `account_users`.`account_id` = x'4062731c47624a26b8997cd4b19807fa' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'45339583621849cdb3cb78a14046d820' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:56', 'teste@teste.com', '$2a$04$8h/mNMPsMGPaF.cFf6BZ.uXGv.pIsrT1I6bonsMyBkvZrDdtQ9NNy', NULL, x'06d2739c88014e9c8deb1ad30a229088', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:56') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'06d2739c88014e9c8deb1ad30a229088' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:56', 'User', x'51897a07fc634d56b5e3341dd46b0a1b', 'eaff124c93667da6738260215a99bd96', x'06d2739c88014e9c8deb1ad30a229088', 'User', '2012-12-31 12:45:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'06d2739c88014e9c8deb1ad30a229088' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'c14f144bb2cb450986462320842032a8', NULL, NULL, NULL, '2012-12-31 12:45:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'accountc14f144b-b2cb-4509-8646-2320842032a8' WHERE `accounts`.`id` = x'c14f144bb2cb450986462320842032a8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c14f144bb2cb450986462320842032a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c14f144bb2cb450986462320842032a8', x'445d0fc6a6a446adb507ecf2e578ee69', x'06d2739c88014e9c8deb1ad30a229088') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'445d0fc6a6a446adb507ecf2e578ee69') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'445d0fc6a6a446adb507ecf2e578ee69' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'445d0fc6a6a446adb507ecf2e578ee69', x'cede72b868b844d895df085610be9b0a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'445d0fc6a6a446adb507ecf2e578ee69') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'445d0fc6a6a446adb507ecf2e578ee69' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'445d0fc6a6a446adb507ecf2e578ee69', x'aa328310fe9b4d519f2a652680d918f8', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189049e44c_f6180435d48171ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'317cddf3d7204cdeb71dcdbecfc8abb6', 'jabanilson', NULL, 1, '2012-12-31 12:45:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'account317cddf3-d720-4cde-b71d-cdbecfc8abb6' WHERE `accounts`.`id` = x'317cddf3d7204cdeb71dcdbecfc8abb6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'317cddf3d7204cdeb71dcdbecfc8abb6', x'65b5c86d3c9a45f7974b95e3a1b9bb6d', x'06d2739c88014e9c8deb1ad30a229088') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'65b5c86d3c9a45f7974b95e3a1b9bb6d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65b5c86d3c9a45f7974b95e3a1b9bb6d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65b5c86d3c9a45f7974b95e3a1b9bb6d', x'621c6c46784f4a23881143899d585917', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'65b5c86d3c9a45f7974b95e3a1b9bb6d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65b5c86d3c9a45f7974b95e3a1b9bb6d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65b5c86d3c9a45f7974b95e3a1b9bb6d', x'0640a4b0b5964e0eb2de89b00400305b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06d2739c88014e9c8deb1ad30a229088' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06d2739c88014e9c8deb1ad30a229088' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:56', 'user2@email.email', '$2a$04$.oQOqSKprnOG.xC8UWeWF.a8IJR/Qmyrm6L271uFFdsYhkc5LX0wy', NULL, x'60fab68019024bb883f75d992d064919', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'60fab68019024bb883f75d992d064919' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:56', 'User', x'd414590e771c4bc4869d2211f148fc9d', '63353aa268e7a1834dce70f507261da5', x'60fab68019024bb883f75d992d064919', 'User', '2012-12-31 12:45:56') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'60fab68019024bb883f75d992d064919' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'8356113266884343a364f58262df8629', NULL, NULL, NULL, '2012-12-31 12:45:56')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'account83561132-6688-4343-a364-f58262df8629' WHERE `accounts`.`id` = x'8356113266884343a364f58262df8629' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8356113266884343a364f58262df8629' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8356113266884343a364f58262df8629', x'982d7002c37340b0879d51f5c025ab20', x'60fab68019024bb883f75d992d064919') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'982d7002c37340b0879d51f5c025ab20') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'982d7002c37340b0879d51f5c025ab20' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'982d7002c37340b0879d51f5c025ab20', x'9b6f708bddf741e6b3222cc71f309ec1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'982d7002c37340b0879d51f5c025ab20') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'982d7002c37340b0879d51f5c025ab20' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'982d7002c37340b0879d51f5c025ab20', x'8ef0ccceed6d4520b724c14a910ebf87', 'admin') Sent mail to user2@email.email (7ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: user2@email.email Message-ID: <50e18904aefe1_f6180435d48172f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'06d2739c88014e9c8deb1ad30a229088' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c14f144bb2cb450986462320842032a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c14f144bb2cb450986462320842032a8', x'9a31520908604e89b5b372ba08079a91', x'60fab68019024bb883f75d992d064919') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9a31520908604e89b5b372ba08079a91') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a31520908604e89b5b372ba08079a91' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a31520908604e89b5b372ba08079a91', x'fa9eee47b5a84261b34715eaa3a9912f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9a31520908604e89b5b372ba08079a91') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a31520908604e89b5b372ba08079a91' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a31520908604e89b5b372ba08079a91', x'b65ae8d06bff46d0bfebc8d0181a397f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'06d2739c88014e9c8deb1ad30a229088' AND `account_users`.`account_id` = x'c14f144bb2cb450986462320842032a8' LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'06d2739c88014e9c8deb1ad30a229088' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'06d2739c88014e9c8deb1ad30a229088' AND `account_users`.`account_id` = x'33323331323331333132333132333431' LIMIT 1 Completed 404 Not Found in 3ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'b70ead6c2e764ce39a8a5227f70fde16', 'jabanilson', NULL, 1, '2012-12-31 12:45:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'accountb70ead6c-2e76-4ce3-9a8a-5227f70fde16' WHERE `accounts`.`id` = x'b70ead6c2e764ce39a8a5227f70fde16'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'b70ead6c2e764ce39a8a5227f70fde16' AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'b70ead6c2e764ce39a8a5227f70fde16', 'teste@teste.teste', x'3319e1a2cebf416eb169712b488a1458', NULL, NULL, '2012-12-31 12:45:56', 'TamBO_E0GVOZnx9P7YeT5gXBr8A') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18904bd72e_f6180435d4817378@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/3319e1a2-cebf-416e-b169-712b488a1458TamBO_E0GVOZnx9P7YeT5gXBr8A  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:56', x'120a58d6676a4070b54ed1d61c52d2d6', 'jabanilson', NULL, 1, '2012-12-31 12:45:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:56', `updated_at` = '2012-12-31 12:45:56', `subdomain` = 'account120a58d6-676a-4070-b54e-d1d61c52d2d6' WHERE `accounts`.`id` = x'120a58d6676a4070b54ed1d61c52d2d6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'120a58d6676a4070b54ed1d61c52d2d6' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'120a58d6676a4070b54ed1d61c52d2d6', 'teste@teste.teste', x'ff6efb3244904ba5ad4b421d4d872eee', NULL, NULL, '2012-12-31 12:45:56', 'Hn0LcEZF1Xp68EFdWvUnZYWS4FU') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:45:56 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18904c8fb7_f6180435d4817468@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/ff6efb32-4490-4ba5-ad4b-421d4d872eeeHn0LcEZF1Xp68EFdWvUnZYWS4FU  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'9b15c36136bd4b278a29e4a5d02aaf05', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account9b15c361-36bd-4b27-8a29-e4a5d02aaf05' WHERE `accounts`.`id` = x'9b15c36136bd4b278a29e4a5d02aaf05'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9b15c36136bd4b278a29e4a5d02aaf05' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9b15c36136bd4b278a29e4a5d02aaf05', x'0e60726171024fdfbfad262db3c149b4', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'd3adc8b8106d4237bd821c8b729a62c5', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'accountd3adc8b8-106d-4237-bd82-1c8b729a62c5' WHERE `accounts`.`id` = x'd3adc8b8106d4237bd821c8b729a62c5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd3adc8b8106d4237bd821c8b729a62c5' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd3adc8b8106d4237bd821c8b729a62c5', x'dc9bc0ea7fe2428f86494d835354c990', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'2586b80c611549b8ab2dad744286f2ba', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account2586b80c-6115-49b8-ab2d-ad744286f2ba' WHERE `accounts`.`id` = x'2586b80c611549b8ab2dad744286f2ba'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2586b80c611549b8ab2dad744286f2ba' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2586b80c611549b8ab2dad744286f2ba', x'0143b25e47c3488f8ac31512c2329543', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'0a8d6bfb226d4bcb8647b2771362eeb8', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account0a8d6bfb-226d-4bcb-8647-b2771362eeb8' WHERE `accounts`.`id` = x'0a8d6bfb226d4bcb8647b2771362eeb8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0a8d6bfb226d4bcb8647b2771362eeb8' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0a8d6bfb226d4bcb8647b2771362eeb8', x'1979e8ae6ac84bf9aa7efc0898485ac1', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'5b14b69322074985af6e84d62601703a', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account5b14b693-2207-4985-af6e-84d62601703a' WHERE `accounts`.`id` = x'5b14b69322074985af6e84d62601703a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5b14b69322074985af6e84d62601703a' AND `account_domains`.`url` = 'valid.url.test' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5b14b69322074985af6e84d62601703a', x'63e0a3f40dc04dbbb7e20580b2196504', NULL, 'valid.url.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'3f792258356a4ace95c4d896a38dd335', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account3f792258-356a-4ace-95c4-d896a38dd335' WHERE `accounts`.`id` = x'3f792258356a4ace95c4d896a38dd335'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3f792258356a4ace95c4d896a38dd335' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3f792258356a4ace95c4d896a38dd335', x'8ae87ead8328469e862e30507d50bf79', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'886293a489d34aa19c2c74e38e57ff43', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account886293a4-89d3-4aa1-9c2c-74e38e57ff43' WHERE `accounts`.`id` = x'886293a489d34aa19c2c74e38e57ff43'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'238a97619f72457a96411a91e0964c34', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account238a9761-9f72-457a-9641-1a91e0964c34' WHERE `accounts`.`id` = x'238a97619f72457a96411a91e0964c34'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'238a97619f72457a96411a91e0964c34' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'238a97619f72457a96411a91e0964c34', x'0f2ee9f2e70d4c21a861649216e0de5b', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'909ca5c990ff46c291437c12a0a0fffd', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account909ca5c9-90ff-46c2-9143-7c12a0a0fffd' WHERE `accounts`.`id` = x'909ca5c990ff46c291437c12a0a0fffd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'909ca5c990ff46c291437c12a0a0fffd' AND `account_domains`.`url` = 'valid.url.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'909ca5c990ff46c291437c12a0a0fffd', x'9eaa4956f14948059ebffa3ec4262044', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'909ca5c990ff46c291437c12a0a0fffd' AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'64f5d3782aee49c6ae5b5e371eb1cee4', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account64f5d378-2aee-49c6-ae5b-5e371eb1cee4' WHERE `accounts`.`id` = x'64f5d3782aee49c6ae5b5e371eb1cee4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'64f5d3782aee49c6ae5b5e371eb1cee4' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'64f5d3782aee49c6ae5b5e371eb1cee4', x'c1b13b912f5340ccac01d60c601bf52a', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'2d01a2b928d74641ae5cf1155a9160d3', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account2d01a2b9-28d7-4641-ae5c-f1155a9160d3' WHERE `accounts`.`id` = x'2d01a2b928d74641ae5cf1155a9160d3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2d01a2b928d74641ae5cf1155a9160d3' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2d01a2b928d74641ae5cf1155a9160d3', x'fd0add4d1c274b269765d4f3ec813b8d', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'129e10e72c9848a687d1e2b1a3d1fda6', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account129e10e7-2c98-48a6-87d1-e2b1a3d1fda6' WHERE `accounts`.`id` = x'129e10e72c9848a687d1e2b1a3d1fda6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'129e10e72c9848a687d1e2b1a3d1fda6' AND `account_domains`.`url` = 'url1.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'129e10e72c9848a687d1e2b1a3d1fda6', x'30d279add3964d8b82aea27d06bd3bb7', NULL, 'url1.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'129e10e72c9848a687d1e2b1a3d1fda6' AND `account_domains`.`url` = 'url2.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'129e10e72c9848a687d1e2b1a3d1fda6', x'77b06a2b93ac45a29406785a688fc980', NULL, 'url2.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'30d279add3964d8b82aea27d06bd3bb7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'77b06a2b93ac45a29406785a688fc980'  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'129e10e72c9848a687d1e2b1a3d1fda6'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'30d279add3964d8b82aea27d06bd3bb7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'30d279add3964d8b82aea27d06bd3bb7'  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'129e10e72c9848a687d1e2b1a3d1fda6' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'129e10e72c9848a687d1e2b1a3d1fda6' AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'77b06a2b93ac45a29406785a688fc980' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'30d279add3964d8b82aea27d06bd3bb7'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'77b06a2b93ac45a29406785a688fc980' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'5930a69ffcb14178969817c726253f48', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account5930a69f-fcb1-4178-9698-17c726253f48' WHERE `accounts`.`id` = x'5930a69ffcb14178969817c726253f48'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5930a69ffcb14178969817c726253f48' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5930a69ffcb14178969817c726253f48', x'829a069bfdaf4049991a2e8f63f8a62e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'dfb5845b0d0e42a9a8756a24f745b930', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'accountdfb5845b-0d0e-42a9-a875-6a24f745b930' WHERE `accounts`.`id` = x'dfb5845b0d0e42a9a8756a24f745b930'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'dfb5845b0d0e42a9a8756a24f745b930' AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'dfb5845b0d0e42a9a8756a24f745b930', x'4eb925671d0b4b76a3dc2ac75d44d85b', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'561ad7e6efdc4d66aa21b12ed022a487', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account561ad7e6-efdc-4d66-aa21-b12ed022a487' WHERE `accounts`.`id` = x'561ad7e6efdc4d66aa21b12ed022a487'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'561ad7e6efdc4d66aa21b12ed022a487' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'561ad7e6efdc4d66aa21b12ed022a487', x'd622468ab9324dba89d52f01fc4a8329', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'c300674da6354a2ca76d24f49941975b', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'accountc300674d-a635-4a2c-a76d-24f49941975b' WHERE `accounts`.`id` = x'c300674da6354a2ca76d24f49941975b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'c300674da6354a2ca76d24f49941975b' AND `account_domains`.`url` = 'www.normal.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'c300674da6354a2ca76d24f49941975b', x'86738f5f2b1941a384af8772b2b33577', NULL, 'www.normal.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'4e516687523744209f328924ac96b0e5', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account4e516687-5237-4420-9f32-8924ac96b0e5' WHERE `accounts`.`id` = x'4e516687523744209f328924ac96b0e5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4e516687523744209f328924ac96b0e5' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4e516687523744209f328924ac96b0e5', x'9711529e104f4c28992dbc217c2aa8bf', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'14d95dad818644de8edf8a36daaaa16e', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account14d95dad-8186-44de-8edf-8a36daaaa16e' WHERE `accounts`.`id` = x'14d95dad818644de8edf8a36daaaa16e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'14d95dad818644de8edf8a36daaaa16e' AND `account_domains`.`url` = 'test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'14d95dad818644de8edf8a36daaaa16e', x'7bc0ee4c13eb4a2fa8b46c0c9fa9f009', NULL, 'test.com', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'test.com'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'7bc0ee4c13eb4a2fa8b46c0c9fa9f009'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'14d95dad818644de8edf8a36daaaa16e' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'14d95dad818644de8edf8a36daaaa16e' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'7bc0ee4c13eb4a2fa8b46c0c9fa9f009'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'eeba628ff3304a619469126984bad51d', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'accounteeba628f-f330-4a61-9469-126984bad51d' WHERE `accounts`.`id` = x'eeba628ff3304a619469126984bad51d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'eeba628ff3304a619469126984bad51d' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'eeba628ff3304a619469126984bad51d', x'be693d7758d0410590cb115fa43f5e6f', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:57', x'556a1a4785884f4a8c8b6069e4e082b6', 'jabanilson', NULL, 1, '2012-12-31 12:45:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:57', `updated_at` = '2012-12-31 12:45:57', `subdomain` = 'account556a1a47-8588-4f4a-8c8b-6069e4e082b6' WHERE `accounts`.`id` = x'556a1a4785884f4a8c8b6069e4e082b6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'556a1a4785884f4a8c8b6069e4e082b6' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'556a1a4785884f4a8c8b6069e4e082b6', x'69f32ea4bfe14b5fa119c37898230e93', NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'69f32ea4bfe14b5fa119c37898230e93'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'556a1a4785884f4a8c8b6069e4e082b6' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'556a1a4785884f4a8c8b6069e4e082b6' AND `account_domains`.`verified` = 1 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:58', x'823b71f5d7894f0dbe123e460c8e78f2', 'jabanilson', NULL, 1, '2012-12-31 12:45:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:58', `updated_at` = '2012-12-31 12:45:58', `subdomain` = 'account823b71f5-d789-4f0d-be12-3e460c8e78f2' WHERE `accounts`.`id` = x'823b71f5d7894f0dbe123e460c8e78f2'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'823b71f5d7894f0dbe123e460c8e78f2' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'823b71f5d7894f0dbe123e460c8e78f2', x'a2148e2a584c43aa92f068c9c1f94056', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:58', x'a4155ae8ab224bfc98b2af6f29b8cfdd', 'jabanilson', NULL, 1, '2012-12-31 12:45:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:58', `updated_at` = '2012-12-31 12:45:58', `subdomain` = 'accounta4155ae8-ab22-4bfc-98b2-af6f29b8cfdd' WHERE `accounts`.`id` = x'a4155ae8ab224bfc98b2af6f29b8cfdd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a4155ae8ab224bfc98b2af6f29b8cfdd' AND `account_domains`.`url` = 'www.test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a4155ae8ab224bfc98b2af6f29b8cfdd', x'466c828744404b63bca08959e09a6e8d', NULL, 'www.test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'466c828744404b63bca08959e09a6e8d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:58', x'0f3ad72dd9904863904b59b3198e346d', 'jabanilson', NULL, 1, '2012-12-31 12:45:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:58', `updated_at` = '2012-12-31 12:45:58', `subdomain` = 'account0f3ad72d-d990-4863-904b-59b3198e346d' WHERE `accounts`.`id` = x'0f3ad72dd9904863904b59b3198e346d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f3ad72dd9904863904b59b3198e346d' AND `account_domains`.`url` = 'www.test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0f3ad72dd9904863904b59b3198e346d', x'5175e838053b43f99989709746a6e643', NULL, 'www.test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.com'  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'5175e838053b43f99989709746a6e643'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f3ad72dd9904863904b59b3198e346d' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'0f3ad72dd9904863904b59b3198e346d' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'5175e838053b43f99989709746a6e643'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'466c828744404b63bca08959e09a6e8d' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:58', x'58af0069e1de4189ba734d43a8eb1bc8', 'jabanilson', NULL, 1, '2012-12-31 12:45:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:58', `updated_at` = '2012-12-31 12:45:58', `subdomain` = 'account58af0069-e1de-4189-ba73-4d43a8eb1bc8' WHERE `accounts`.`id` = x'58af0069e1de4189ba734d43a8eb1bc8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'58af0069e1de4189ba734d43a8eb1bc8' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'58af0069e1de4189ba734d43a8eb1bc8', x'9c3673627fa840bf8b12d86c6b1d892e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:58', x'78afd05b950048259c2b16db98bb09a3', 'jabanilson', NULL, 1, '2012-12-31 12:45:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:58', `updated_at` = '2012-12-31 12:45:58', `subdomain` = 'account78afd05b-9500-4825-9c2b-16db98bb09a3' WHERE `accounts`.`id` = x'78afd05b950048259c2b16db98bb09a3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:58', x'a06f328614724c74bd10040bf544f0bb', 'jabanilson', NULL, 1, '2012-12-31 12:45:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:58', `updated_at` = '2012-12-31 12:45:58', `subdomain` = 'accounta06f3286-1472-4c74-bd10-040bf544f0bb' WHERE `accounts`.`id` = x'a06f328614724c74bd10040bf544f0bb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a06f328614724c74bd10040bf544f0bb' AND `account_domains`.`url` = 'www.test.com' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a06f328614724c74bd10040bf544f0bb', x'4b62e2b43d184aceb368989146a9007c', NULL, 'www.test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.com'  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'4b62e2b43d184aceb368989146a9007c'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a06f328614724c74bd10040bf544f0bb' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'a06f328614724c74bd10040bf544f0bb' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'4b62e2b43d184aceb368989146a9007c'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'4b62e2b43d184aceb368989146a9007c' LIMIT 1  (17.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'eccb5301b2bf49b4b84b2dac79a00ed4', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accounteccb5301-b2bf-49b4-b84b-2dac79a00ed4' WHERE `accounts`.`id` = x'eccb5301b2bf49b4b84b2dac79a00ed4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'eccb5301b2bf49b4b84b2dac79a00ed4' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'eccb5301b2bf49b4b84b2dac79a00ed4', x'886ed91a9e0145c8b6bfef506671df12', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'e026f5c6697c4aaa9eafe7b136798a43', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accounte026f5c6-697c-4aaa-9eaf-e7b136798a43' WHERE `accounts`.`id` = x'e026f5c6697c4aaa9eafe7b136798a43'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'7af48d44a59e472391f7bb0ef2f7b19f', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account7af48d44-a59e-4723-91f7-bb0ef2f7b19f' WHERE `accounts`.`id` = x'7af48d44a59e472391f7bb0ef2f7b19f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7af48d44a59e472391f7bb0ef2f7b19f' AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7af48d44a59e472391f7bb0ef2f7b19f', x'3fdfe7a4485e42189f83bad449aa6658', 1, 'www.url1.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'1806d37f1bf84d7485d051e49b7591b9', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account1806d37f-1bf8-4d74-85d0-51e49b7591b9' WHERE `accounts`.`id` = x'1806d37f1bf84d7485d051e49b7591b9'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1806d37f1bf84d7485d051e49b7591b9' AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1806d37f1bf84d7485d051e49b7591b9', x'a9e7baf69213411982c036faf8363ed6', 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = x'e026f5c6697c4aaa9eafe7b136798a43' WHERE `account_domains`.`id` = x'3fdfe7a4485e42189f83bad449aa6658'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = x'e026f5c6697c4aaa9eafe7b136798a43' WHERE `account_domains`.`id` = x'a9e7baf69213411982c036faf8363ed6'  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'e026f5c6697c4aaa9eafe7b136798a43'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'a9e7baf69213411982c036faf8363ed6'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'3158a830f094404f9235aef067139f62', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account3158a830-f094-404f-9235-aef067139f62' WHERE `accounts`.`id` = x'3158a830f094404f9235aef067139f62'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3158a830f094404f9235aef067139f62' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3158a830f094404f9235aef067139f62', x'e551fc1ae786433db7f05e2f4f1aefd3', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'0300af0b95d14e8fa51376c6d1d97579', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account0300af0b-95d1-4e8f-a513-76c6d1d97579' WHERE `accounts`.`id` = x'0300af0b95d14e8fa51376c6d1d97579'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'b4271887dea04c48895e4fd354d03789', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountb4271887-dea0-4c48-895e-4fd354d03789' WHERE `accounts`.`id` = x'b4271887dea04c48895e4fd354d03789'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b4271887dea04c48895e4fd354d03789' AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b4271887dea04c48895e4fd354d03789', x'7064d7387c5e4327858d147eea97c9bc', 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'b5efa4c812e14a839b5278bf9d377676', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountb5efa4c8-12e1-4a83-9b52-78bf9d377676' WHERE `accounts`.`id` = x'b5efa4c812e14a839b5278bf9d377676'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b5efa4c812e14a839b5278bf9d377676' AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b5efa4c812e14a839b5278bf9d377676', x'b2a86450d3e84636a4a5870eb02d1c54', 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `account_id` = x'0300af0b95d14e8fa51376c6d1d97579' WHERE `account_domains`.`id` = x'7064d7387c5e4327858d147eea97c9bc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `account_id` = x'0300af0b95d14e8fa51376c6d1d97579' WHERE `account_domains`.`id` = x'b2a86450d3e84636a4a5870eb02d1c54'  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'0300af0b95d14e8fa51376c6d1d97579'  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'b2a86450d3e84636a4a5870eb02d1c54'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'7064d7387c5e4327858d147eea97c9bc' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'39acfe2496be462baa966203d1723b5a', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account39acfe24-96be-462b-aa96-6203d1723b5a' WHERE `accounts`.`id` = x'39acfe2496be462baa966203d1723b5a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'39acfe2496be462baa966203d1723b5a' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'39acfe2496be462baa966203d1723b5a', x'd083a9f905be4392830ca5a14635a11c', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'6f8686b0d5b045a8a674c32488d82e04', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account6f8686b0-d5b0-45a8-a674-c32488d82e04' WHERE `accounts`.`id` = x'6f8686b0d5b045a8a674c32488d82e04'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'9c3346cf1d964163b86e0c1d374f9de0', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account9c3346cf-1d96-4163-b86e-0c1d374f9de0' WHERE `accounts`.`id` = x'9c3346cf1d964163b86e0c1d374f9de0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9c3346cf1d964163b86e0c1d374f9de0' AND `account_domains`.`url` = 'www.url1.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9c3346cf1d964163b86e0c1d374f9de0', x'8f03a3d468e94af5adc8039eee1a2647', 1, 'www.url1.net', 1)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'b338687f78294624a3522efd36f5e870', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountb338687f-7829-4624-a352-2efd36f5e870' WHERE `accounts`.`id` = x'b338687f78294624a3522efd36f5e870'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b338687f78294624a3522efd36f5e870' AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b338687f78294624a3522efd36f5e870', x'cd25ffc925644e30a93c9ceb65030983', 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = x'6f8686b0d5b045a8a674c32488d82e04' WHERE `account_domains`.`id` = x'8f03a3d468e94af5adc8039eee1a2647'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'6f8686b0d5b045a8a674c32488d82e04' WHERE `account_domains`.`id` = x'cd25ffc925644e30a93c9ceb65030983'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'cd25ffc925644e30a93c9ceb65030983'  (0.1ms) RELEASE SAVEPOINT active_record_1  (146.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:59', 'teste@teste.com', '$2a$04$oBY.lLinw4rSRypM1R/L0OnLyKqP7oWMpWGuZwB/fG3tuK7k6nMui', NULL, x'cb2c8d96c3ad45998f446e61b0f3c6a7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cb2c8d96c3ad45998f446e61b0f3c6a7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:59', 'User', x'8cdf34f3b6ca4e68bf68a466833128ae', '434f19eb91f279860deb00c9fcf6a116', x'cb2c8d96c3ad45998f446e61b0f3c6a7', 'User', '2012-12-31 12:45:59') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cb2c8d96c3ad45998f446e61b0f3c6a7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'4c30c5e73e3f4dbea2476d551dc06197', NULL, NULL, NULL, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account4c30c5e7-3e3f-4dbe-a247-6d551dc06197' WHERE `accounts`.`id` = x'4c30c5e73e3f4dbea2476d551dc06197' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c30c5e73e3f4dbea2476d551dc06197' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4c30c5e73e3f4dbea2476d551dc06197', x'c9dd677f530d4062b03eee27d57c561b', x'cb2c8d96c3ad45998f446e61b0f3c6a7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c9dd677f530d4062b03eee27d57c561b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c9dd677f530d4062b03eee27d57c561b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c9dd677f530d4062b03eee27d57c561b', x'330c082adc8c4c718cb6ce71962126ee', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c9dd677f530d4062b03eee27d57c561b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c9dd677f530d4062b03eee27d57c561b' LIMIT 1 SQL (5.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c9dd677f530d4062b03eee27d57c561b', x'91c386bdc77b499ea533b92a4cd486f2', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:45:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890757c3d_f6180435d48175be@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cb2c8d96c3ad45998f446e61b0f3c6a7' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c9dd677f530d4062b03eee27d57c561b'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c9dd677f530d4062b03eee27d57c561b' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'L0Åç>?M¾¢GmUÀa—' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'91c386bdc77b499ea533b92a4cd486f2'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cb2c8d96c3ad45998f446e61b0f3c6a7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'c9dd677f530d4062b03eee27d57c561b') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c9dd677f530d4062b03eee27d57c561b', x'bbdf08d33bb648f5a76b2a253c5ce41f', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:59', 'teste@teste.com', '$2a$04$FlKBTjHm6tod8vEbDMLeoeQq2sEsN1aPF7AvBfzqsb3/urwJg8w6O', NULL, x'07e53f104be8452b9d8ad87de4226239', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'07e53f104be8452b9d8ad87de4226239' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:59', 'User', x'9744b39c34d04aa0a045e523e6a95644', '630aab0d52e2fce136061555e5a13f3c', x'07e53f104be8452b9d8ad87de4226239', 'User', '2012-12-31 12:45:59') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'07e53f104be8452b9d8ad87de4226239' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'91ea3a03fc564163bebc3666440f30c9', NULL, NULL, NULL, '2012-12-31 12:45:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account91ea3a03-fc56-4163-bebc-3666440f30c9' WHERE `accounts`.`id` = x'91ea3a03fc564163bebc3666440f30c9' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'91ea3a03fc564163bebc3666440f30c9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'91ea3a03fc564163bebc3666440f30c9', x'da6b5601950146f4a853f0926ffd5f82', x'07e53f104be8452b9d8ad87de4226239') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da6b5601950146f4a853f0926ffd5f82') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da6b5601950146f4a853f0926ffd5f82' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da6b5601950146f4a853f0926ffd5f82', x'ca89bfa8130f4e58803f4185cd89d59f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'da6b5601950146f4a853f0926ffd5f82') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da6b5601950146f4a853f0926ffd5f82' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da6b5601950146f4a853f0926ffd5f82', x'f44dff65da404503a73c799d46a66155', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:45:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189077d030_f6180435d4817663@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'07e53f104be8452b9d8ad87de4226239' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'da6b5601950146f4a853f0926ffd5f82'  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da6b5601950146f4a853f0926ffd5f82' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '‘ê:üVAc¾¼6fD0É' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f44dff65da404503a73c799d46a66155'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'07e53f104be8452b9d8ad87de4226239' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'da6b5601950146f4a853f0926ffd5f82') LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da6b5601950146f4a853f0926ffd5f82', x'd4e27b4fbb7d4f0689f7076397860845', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da6b5601950146f4a853f0926ffd5f82') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da6b5601950146f4a853f0926ffd5f82' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da6b5601950146f4a853f0926ffd5f82') LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da6b5601950146f4a853f09270fd5f82') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da6b5601950146f4a853f09270fd5f82' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da6b5601950146f4a853f09270fd5f82') LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:59', 'teste@teste.com', '$2a$04$kSFSHDbblEYxwlGYD7jIv.EraOb79SnqjhAitfYzPdQh3VpDgq28m', NULL, x'701cd190650047df9f1b7c2dccc514c6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'701cd190650047df9f1b7c2dccc514c6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:59', 'User', x'5a496f98b87f4a63989f83cec04ce761', 'ab401b0a74d08ae5cfad9ae95110fed3', x'701cd190650047df9f1b7c2dccc514c6', 'User', '2012-12-31 12:45:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'701cd190650047df9f1b7c2dccc514c6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'502ea317d75a4a82890fa7f1a42fc123', NULL, NULL, NULL, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account502ea317-d75a-4a82-890f-a7f1a42fc123' WHERE `accounts`.`id` = x'502ea317d75a4a82890fa7f1a42fc123' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'502ea317d75a4a82890fa7f1a42fc123' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'502ea317d75a4a82890fa7f1a42fc123', x'b686acda87ed4a3aa528452a32ac8a4c', x'701cd190650047df9f1b7c2dccc514c6') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b686acda87ed4a3aa528452a32ac8a4c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b686acda87ed4a3aa528452a32ac8a4c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b686acda87ed4a3aa528452a32ac8a4c', x'd24a8f6a6e5d4b14bbc9ea5d4e109b5a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b686acda87ed4a3aa528452a32ac8a4c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b686acda87ed4a3aa528452a32ac8a4c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b686acda87ed4a3aa528452a32ac8a4c', x'c4901c39de2b41f0a2f64cb24145cc37', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189078ee0c_f6180435d48177e0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'701cd190650047df9f1b7c2dccc514c6' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b686acda87ed4a3aa528452a32ac8a4c'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c4901c39de2b41f0a2f64cb24145cc37' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b686acda87ed4a3aa528452a32ac8a4c' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'P.£×ZJ‚‰§ñ¤/Á#' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'701cd190650047df9f1b7c2dccc514c6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'b686acda87ed4a3aa528452a32ac8a4c') LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b686acda87ed4a3aa528452a32ac8a4c', x'e8e8e4b51dd94f12978214b9a053dda3', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != x'e8e8e4b51dd94f12978214b9a053dda3' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != x'e8e8e4b51dd94f12978214b9a053dda3' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (2.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:59', 'teste@teste.com', '$2a$04$2dNH6M13fdSE5HSJ0PAklOrqfT7HXJF1j9bXM5EZVY7CQZ8n7SJCi', NULL, x'b80fe2aab61041dfbc36fdbee4d81aba', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b80fe2aab61041dfbc36fdbee4d81aba' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:59', 'User', x'e05ecb6661e9465698689835d7459136', 'd5c8d29b195c8152e5d99ef36d216eec', x'b80fe2aab61041dfbc36fdbee4d81aba', 'User', '2012-12-31 12:45:59') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b80fe2aab61041dfbc36fdbee4d81aba' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'0a12a8228ed24a6b80d9cb18b26d9b0c', NULL, NULL, NULL, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account0a12a822-8ed2-4a6b-80d9-cb18b26d9b0c' WHERE `accounts`.`id` = x'0a12a8228ed24a6b80d9cb18b26d9b0c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0a12a8228ed24a6b80d9cb18b26d9b0c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0a12a8228ed24a6b80d9cb18b26d9b0c', x'772a6ee22ef14ed5a7bd4bc2afee4e67', x'b80fe2aab61041dfbc36fdbee4d81aba') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'772a6ee22ef14ed5a7bd4bc2afee4e67') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'772a6ee22ef14ed5a7bd4bc2afee4e67' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'772a6ee22ef14ed5a7bd4bc2afee4e67', x'd962ec9d656e4dfdbc72dd3ecf7d7726', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'772a6ee22ef14ed5a7bd4bc2afee4e67') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'772a6ee22ef14ed5a7bd4bc2afee4e67' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'772a6ee22ef14ed5a7bd4bc2afee4e67', x'724520d760704c4e8528fc85401649e3', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:45:59 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189079ebe4_f6180435d48178b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b80fe2aab61041dfbc36fdbee4d81aba' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'772a6ee22ef14ed5a7bd4bc2afee4e67'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'724520d760704c4e8528fc85401649e3' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'772a6ee22ef14ed5a7bd4bc2afee4e67' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b80fe2aab61041dfbc36fdbee4d81aba' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'772a6ee22ef14ed5a7bd4bc2afee4e67') LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'772a6ee22ef14ed5a7bd4bc2afee4e67', x'a8f67bd523ac4363846d29a5b96aa537', 'guest')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != x'a8f67bd523ac4363846d29a5b96aa537' AND `account_roles`.`account_user_id` = x'772a6ee22ef14ed5a7bd4bc2afee4e67') LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'ed69096a06d14a4baf114a9eb54ab863', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'6f8ee4e8bae64405b82e341eeb61c42e', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'a96eb158597a4c96b9430e0a5c359b6c', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'd70281702fa5496ca212c33be750a48e', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` LIMIT 1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'6a57fb7746b14c00abfa687f462748de', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'me@me.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:45:59', 'me@me.com', '$2a$04$0k40mBKKLA.O.jDS/0L4/ugzY6nvYERQ8U/BV7ZvW7fz0VFSWKl1i', NULL, x'6a5a8534ee994e878f56239fce333779', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:45:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6a5a8534ee994e878f56239fce333779' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:45:59', 'User', x'8469986f7edd462dbc3e4faf6f777dc7', 'da900f212cefea5ccb12d879840335af', x'6a5a8534ee994e878f56239fce333779', 'User', '2012-12-31 12:45:59') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6a5a8534ee994e878f56239fce333779' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'fcde3374247942879204ee8cb6a76586', NULL, NULL, NULL, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountfcde3374-2479-4287-9204-ee8cb6a76586' WHERE `accounts`.`id` = x'fcde3374247942879204ee8cb6a76586' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fcde3374247942879204ee8cb6a76586' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fcde3374247942879204ee8cb6a76586', x'9b88b10fb0ac4035b1459948c965dc98', x'6a5a8534ee994e878f56239fce333779') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9b88b10fb0ac4035b1459948c965dc98') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9b88b10fb0ac4035b1459948c965dc98' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9b88b10fb0ac4035b1459948c965dc98', x'4eb4c2d78de64060bb8b22ed5571d8f4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9b88b10fb0ac4035b1459948c965dc98') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9b88b10fb0ac4035b1459948c965dc98' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9b88b10fb0ac4035b1459948c965dc98', x'c5c00931ae2344ea83f1c705a7441c98', 'admin') Sent mail to me@me.com (6ms) Date: Mon, 31 Dec 2012 10:45:59 -0200 From: Iugu Reply-To: Iugu To: me@me.com Message-ID: <50e18907b5eb3_f6180435d48179a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'd911c6a0b3994baa89880197785bfe90', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountd911c6a0-b399-4baa-8988-0197785bfe90' WHERE `accounts`.`id` = x'd911c6a0b3994baa89880197785bfe90'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'004ce34bc1a24fae961b70ef586a842a', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account004ce34b-c1a2-4fae-961b-70ef586a842a' WHERE `accounts`.`id` = x'004ce34bc1a24fae961b70ef586a842a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'004ce34bc1a24fae961b70ef586a842a', x'304ade63300f4fd4b94a6133c6619230', x'6a5a8534ee994e878f56239fce333779') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'304ade63300f4fd4b94a6133c6619230') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'304ade63300f4fd4b94a6133c6619230' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'304ade63300f4fd4b94a6133c6619230', x'b47652480a8141b4a21bc474f22f4108', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'304ade63300f4fd4b94a6133c6619230') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'304ade63300f4fd4b94a6133c6619230' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'304ade63300f4fd4b94a6133c6619230', x'954c4104e1384e9fa6880ecb139bd9eb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd911c6a0b3994baa89880197785bfe90' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'd911c6a0b3994baa89880197785bfe90' WHERE `account_users`.`id` = x'304ade63300f4fd4b94a6133c6619230'  (0.1ms) RELEASE SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` INNER JOIN `account_users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'd911c6a0b3994baa89880197785bfe90' AND `users`.`id` = x'6a5a8534ee994e878f56239fce333779' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'5aa333ded8de4b49b25d141b7f226a16', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdominio' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'0f73dd090b7a43b0952dcafa93e201bf', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'3a32f8d4b6e449db80da7bf2dc8fdb7a', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account3a32f8d4-b6e4-49db-80da-7bf2dc8fdb7a' WHERE `accounts`.`id` = x'3a32f8d4b6e449db80da7bf2dc8fdb7a'  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a32f8d4b6e449db80da7bf2dc8fdb7a' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'9aeb882b3bd54445ad7e2a0cc6352867', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'fceb051ae710402ab30bf02e0ff3dcba', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountfceb051a-e710-402a-b30b-f02e0ff3dcba' WHERE `accounts`.`id` = x'fceb051ae710402ab30bf02e0ff3dcba'  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fceb051ae710402ab30bf02e0ff3dcba' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'ec68f45355244880a7925660c1b99d54', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'8f868bffbf2a47cea9e99e9053e77889', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account8f868bff-bf2a-47ce-a9e9-9e9053e77889' WHERE `accounts`.`id` = x'8f868bffbf2a47cea9e99e9053e77889'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:59', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 8f868bff-bf2a-47ce-a9e9-9e9053e77889\n', NULL, NULL, NULL, 0, 'account_8f868bff-bf2a-47ce-a9e9-9e9053e77889_destroy', '2012-12-31 12:45:59', '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8f868bff-bf2a-47ce-a9e9-9e9053e77889_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'9203effaa1ad4a468edfc0eb548b9f0d', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'a513103ca23a4e75a7814b42c632e434', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accounta513103c-a23a-4e75-a781-4b42c632e434' WHERE `accounts`.`id` = x'a513103ca23a4e75a7814b42c632e434'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a513103c-a23a-4e75-a781-4b42c632e434_destroy' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'0fbc6ef9c95d4d2a9342990bdb840bc9', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'7e1805cec1f04a928267e4951442501a', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account7e1805ce-c1f0-4a92-8267-e4951442501a' WHERE `accounts`.`id` = x'7e1805cec1f04a928267e4951442501a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:59', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 7e1805ce-c1f0-4a92-8267-e4951442501a\n', NULL, NULL, NULL, 0, 'account_7e1805ce-c1f0-4a92-8267-e4951442501a_destroy', '2012-12-31 12:45:59', '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7e1805ce-c1f0-4a92-8267-e4951442501a_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'e583279877244ea6b15e659db794b260', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'2128e5666c3e49c985a15c4b188692aa', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account2128e566-6c3e-49c9-85a1-5c4b188692aa' WHERE `accounts`.`id` = x'2128e5666c3e49c985a15c4b188692aa'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2128e566-6c3e-49c9-85a1-5c4b188692aa_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'8e7f7baa9eb84b429c264e542158a15c', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'aa2cdd9e6be54eb8b42151b7b0a99533', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountaa2cdd9e-6be5-4eb8-b421-51b7b0a99533' WHERE `accounts`.`id` = x'aa2cdd9e6be54eb8b42151b7b0a99533'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:59', NULL, '--- !ruby/struct:DestroyAccountJob\nid: aa2cdd9e-6be5-4eb8-b421-51b7b0a99533\n', NULL, NULL, NULL, 0, 'account_aa2cdd9e-6be5-4eb8-b421-51b7b0a99533_destroy', '2012-12-31 12:45:59', '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_aa2cdd9e-6be5-4eb8-b421-51b7b0a99533_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_aa2cdd9e-6be5-4eb8-b421-51b7b0a99533_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 21  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_aa2cdd9e-6be5-4eb8-b421-51b7b0a99533_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'0293dd82d5df44f890d922e0552f32e5', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'daeeb146e8ff4d50bd9bc1f93bf34d71', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountdaeeb146-e8ff-4d50-bd9b-c1f93bf34d71' WHERE `accounts`.`id` = x'daeeb146e8ff4d50bd9bc1f93bf34d71'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:45:59', NULL, '--- !ruby/struct:DestroyAccountJob\nid: daeeb146-e8ff-4d50-bd9b-c1f93bf34d71\n', NULL, NULL, NULL, 0, 'account_daeeb146-e8ff-4d50-bd9b-c1f93bf34d71_destroy', '2012-12-31 12:45:59', '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_daeeb146-e8ff-4d50-bd9b-c1f93bf34d71_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_daeeb146-e8ff-4d50-bd9b-c1f93bf34d71_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'5a84ef066c1d41b5b67e809987c80fba', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'be3405a4b4474bfb9ce25ebbf59b134c', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'accountbe3405a4-b447-4bfb-9ce2-5ebbf59b134c' WHERE `accounts`.`id` = x'be3405a4b4474bfb9ce25ebbf59b134c'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_be3405a4-b447-4bfb-9ce2-5ebbf59b134c_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_be3405a4-b447-4bfb-9ce2-5ebbf59b134c_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'bfaabc2d73af416083112c6560cb8733', 'jabanilson', 'unico', 1, '2012-12-31 12:45:59')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:45:59', x'696b5f708e994a51848908367482fbbd', 'jabanilson', NULL, 1, '2012-12-31 12:45:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:45:59', `updated_at` = '2012-12-31 12:45:59', `subdomain` = 'account696b5f70-8e99-4a51-8489-08367482fbbd' WHERE `accounts`.`id` = x'696b5f708e994a51848908367482fbbd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:00', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 696b5f70-8e99-4a51-8489-08367482fbbd\n', NULL, NULL, NULL, 0, 'account_696b5f70-8e99-4a51-8489-08367482fbbd_destroy', '2012-12-31 12:45:59', '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_696b5f70-8e99-4a51-8489-08367482fbbd_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00' WHERE `delayed_jobs`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_696b5f70-8e99-4a51-8489-08367482fbbd_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'39cc376643df4b1da43f62c20bc68075', 'jabanilson', 'unico', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'teste@teste.com', '$2a$04$RCacPLXKMaA1YQ9tQi/O0uhGraEpi7faRSZeB09CMkJ2mvRQGvFDa', NULL, x'adf2bc25b7f7444bb3fd3a56a2905e06', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'adf2bc25b7f7444bb3fd3a56a2905e06' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'2b8cfe6de8b5461e90445a13722f67f1', 'f2edba5494aecec6713b8c8f974d4dfc', x'adf2bc25b7f7444bb3fd3a56a2905e06', 'User', '2012-12-31 12:46:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'adf2bc25b7f7444bb3fd3a56a2905e06' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'192b543565414202908602b3ffee1b28', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account192b5435-6541-4202-9086-02b3ffee1b28' WHERE `accounts`.`id` = x'192b543565414202908602b3ffee1b28' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'192b543565414202908602b3ffee1b28' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'192b543565414202908602b3ffee1b28', x'48c97d8633484e1cbc449a7635b1703d', x'adf2bc25b7f7444bb3fd3a56a2905e06') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'48c97d8633484e1cbc449a7635b1703d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'48c97d8633484e1cbc449a7635b1703d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'48c97d8633484e1cbc449a7635b1703d', x'7991d4d6d10449ccb356c5345e0abef1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'48c97d8633484e1cbc449a7635b1703d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'48c97d8633484e1cbc449a7635b1703d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'48c97d8633484e1cbc449a7635b1703d', x'd00332039ea34db8afa147aca92c2229', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18908e9de_f6180435d48180b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'adf2bc25b7f7444bb3fd3a56a2905e06' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'192b543565414202908602b3ffee1b28' AND `account_users`.`user_id` = x'adf2bc25b7f7444bb3fd3a56a2905e06' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'48c97d8633484e1cbc449a7635b1703d'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'48c97d8633484e1cbc449a7635b1703d' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '+T5eAB†³ÿî(' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd00332039ea34db8afa147aca92c2229'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'48c97d8633484e1cbc449a7635b1703d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'48c97d8633484e1cbc449a7635b1703d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'48c97d8633484e1cbc449a7635b1703d', x'611f5a0f9c6a4d50a89a8fe7ecd41de9', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'192b543565414202908602b3ffee1b28' AND `account_users`.`user_id` = x'adf2bc25b7f7444bb3fd3a56a2905e06' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'48c97d8633484e1cbc449a7635b1703d' AND `account_roles`.`name` = 'user' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'0d3de4b39abc4e7f821dbf0e7bb2c9ca', 'jabanilson', 'unico', 1, '2012-12-31 12:46:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'teste@teste.com', '$2a$04$WAHznQRpY/qV.lLuM4yqiO3zj4esq7CMczdkvuBU.gHNQgjg3S9pi', NULL, x'ead55435e1b64e008fa0840d1151b907', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ead55435e1b64e008fa0840d1151b907' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'0dab0b7e92f749cca1acd1165b081d50', 'c64491f1572b010c1db716743dd1ceff', x'ead55435e1b64e008fa0840d1151b907', 'User', '2012-12-31 12:46:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ead55435e1b64e008fa0840d1151b907' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'9e92d1d39c684af9bd99bb3bf8a4d513', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account9e92d1d3-9c68-4af9-bd99-bb3bf8a4d513' WHERE `accounts`.`id` = x'9e92d1d39c684af9bd99bb3bf8a4d513' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9e92d1d39c684af9bd99bb3bf8a4d513' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9e92d1d39c684af9bd99bb3bf8a4d513', x'052cdd31dbce46c4988d45164d8d6c95', x'ead55435e1b64e008fa0840d1151b907') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'052cdd31dbce46c4988d45164d8d6c95') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'052cdd31dbce46c4988d45164d8d6c95' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'052cdd31dbce46c4988d45164d8d6c95', x'3251d2d88fd94aba8d341d164e05e0ab', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'052cdd31dbce46c4988d45164d8d6c95') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'052cdd31dbce46c4988d45164d8d6c95' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'052cdd31dbce46c4988d45164d8d6c95', x'f4fc111632e0475ca07a175cac320d67', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189082077e_f6180435d48181c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ead55435e1b64e008fa0840d1151b907' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9e92d1d39c684af9bd99bb3bf8a4d513' AND `account_users`.`user_id` = x'ead55435e1b64e008fa0840d1151b907' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'052cdd31dbce46c4988d45164d8d6c95'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'052cdd31dbce46c4988d45164d8d6c95' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ž’ÑÓœhJù½™»;ø¤Õ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f4fc111632e0475ca07a175cac320d67'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'052cdd31dbce46c4988d45164d8d6c95') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'052cdd31dbce46c4988d45164d8d6c95' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'052cdd31dbce46c4988d45164d8d6c95', x'd75bb2c0a3d24c599ff62839ed117b87', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9e92d1d39c684af9bd99bb3bf8a4d513' AND `account_users`.`user_id` = x'ead55435e1b64e008fa0840d1151b907' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'052cdd31dbce46c4988d45164d8d6c95' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'f4195cdc66d54d06883e3470745931c9', 'jabanilson', 'unico', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'2590f0ed687f42e89f292715ab753f81', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account2590f0ed-687f-42e8-9f29-2715ab753f81' WHERE `accounts`.`id` = x'2590f0ed687f42e89f292715ab753f81'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account2590f0ed-687f-42e8-9f29-2715ab753f81' AND `accounts`.`id` != x'2590f0ed687f42e89f292715ab753f81') LIMIT 1  (0.1ms) UPDATE `accounts` SET `name` = 'Named', `updated_at` = '2012-12-31 12:46:00' WHERE `accounts`.`id` = x'2590f0ed687f42e89f292715ab753f81'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'2a0f71d70532401f99496aaaf0c3edf3', 'jabanilson', 'unico', 1, '2012-12-31 12:46:00')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'312ee0a636de46adaf84e9354687d6e1', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account312ee0a6-36de-46ad-af84-e9354687d6e1' WHERE `accounts`.`id` = x'312ee0a636de46adaf84e9354687d6e1'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account312ee0a6-36de-46ad-af84-e9354687d6e1' AND `accounts`.`id` != x'312ee0a636de46adaf84e9354687d6e1') LIMIT 1  (0.1ms) UPDATE `accounts` SET `name` = NULL, `updated_at` = '2012-12-31 12:46:00' WHERE `accounts`.`id` = x'312ee0a636de46adaf84e9354687d6e1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'27eed423770b474bacd39c064c274a9d', 'jabanilson', 'unico', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'784a3c08578b41ea888ca8ad379aa407', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account784a3c08-578b-41ea-888c-a8ad379aa407' WHERE `accounts`.`id` = x'784a3c08578b41ea888ca8ad379aa407'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account784a3c08-578b-41ea-888c-a8ad379aa407' AND `accounts`.`id` != x'784a3c08578b41ea888ca8ad379aa407') LIMIT 1  (0.1ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-12-31 12:46:00' WHERE `accounts`.`id` = x'784a3c08578b41ea888ca8ad379aa407'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'1267eb3e06d243b7a937383aeafd9231', 'jabanilson', 'unico', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'e6a01b40ed3d427f8fb32f4aef8ceedc', 'jabanilson', 'subdomainfind', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'e6a01b40ed3d427f8fb32f4aef8ceedc' AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'e6a01b40ed3d427f8fb32f4aef8ceedc', x'76b0f01736104204be08a320d6666c84', NULL, 'getfromdomain.account.test', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'76b0f01736104204be08a320d6666c84'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'getfromdomain.account.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e6a01b40ed3d427f8fb32f4aef8ceedc' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'6fc5de8da8e34802a37e9eeaf67c9daa', 'jabanilson', 'unico', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'8553cde954f248c69ae79f5ffd6d6c7b', 'jabanilson', 'subdomainfind', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8553cde954f248c69ae79f5ffd6d6c7b' AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8553cde954f248c69ae79f5ffd6d6c7b', x'fad8fb167384453d85cbf97457095896', NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'fad8fb167384453d85cbf97457095896'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'subdomainfind.iugusdk.dev' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'subdomainfind' LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'1616d34b5cc44280bdae2d843f7e379e', 'jabanilson', 'unico', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'86c9863857aa4cbab22d37f7c3800e57', 'jabanilson', 'subdomainfind', 1, '2012-12-31 12:46:00')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'86c9863857aa4cbab22d37f7c3800e57' AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'86c9863857aa4cbab22d37f7c3800e57', x'22edf497d3284a3a97b2ce5791d333df', NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'22edf497d3284a3a97b2ce5791d333df'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'notused.domain.test' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'notused.domain.test' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'9668f84546e54581948612cd82284342', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account9668f845-46e5-4581-9486-12cd82284342' WHERE `accounts`.`id` = x'9668f84546e54581948612cd82284342'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'teste@teste.com', '$2a$04$fmZaOLJL/TIc2r8z2h1DjeAaJGeM/VUHGaaIPueCHA3AoiI1Xsbbe', NULL, x'3d942526db3641dead678d8f8739c641', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3d942526db3641dead678d8f8739c641' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'4b9e6e6f79964695965138a56536ce13', 'c165ba5f7761d7899c10425519bcd84d', x'3d942526db3641dead678d8f8739c641', 'User', '2012-12-31 12:46:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3d942526db3641dead678d8f8739c641' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'8a3c1dcfc2074d4b9f8cdb27e3efa925', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account8a3c1dcf-c207-4d4b-9f8c-db27e3efa925' WHERE `accounts`.`id` = x'8a3c1dcfc2074d4b9f8cdb27e3efa925' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8a3c1dcfc2074d4b9f8cdb27e3efa925' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a3c1dcfc2074d4b9f8cdb27e3efa925', x'b1fd1bcdca2e4ca49a191a46fc55de37', x'3d942526db3641dead678d8f8739c641') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b1fd1bcdca2e4ca49a191a46fc55de37') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1fd1bcdca2e4ca49a191a46fc55de37' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1fd1bcdca2e4ca49a191a46fc55de37', x'0f1b6b9dbe8d4816af1fd97a5413d566', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b1fd1bcdca2e4ca49a191a46fc55de37') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1fd1bcdca2e4ca49a191a46fc55de37' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1fd1bcdca2e4ca49a191a46fc55de37', x'd2d8f778ea3742bc887710e80b78e7ed', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189085eb64_f6180435d481821f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9668f84546e54581948612cd82284342', x'2845af91611a4cb28bc67582d01c4283', x'3d942526db3641dead678d8f8739c641') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2845af91611a4cb28bc67582d01c4283') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2845af91611a4cb28bc67582d01c4283' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2845af91611a4cb28bc67582d01c4283', x'5614ba360209424d91c25f44fc681548', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2845af91611a4cb28bc67582d01c4283') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2845af91611a4cb28bc67582d01c4283' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2845af91611a4cb28bc67582d01c4283', x'af4fd1afc10d449f940c7441ca50bc13', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'a309302d5f6246ff908952d156a6e002', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'accounta309302d-5f62-46ff-9089-52d156a6e002' WHERE `accounts`.`id` = x'a309302d5f6246ff908952d156a6e002'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'teste@teste.com', '$2a$04$AIpoxpEg/k8aSA6LuGiOreZn5X8tuFsp.dHNoS4hHeB/tMKwkMNta', NULL, x'4e4fabbe087245d381b625a9fe31acb2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4e4fabbe087245d381b625a9fe31acb2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'2338c3e236644c35a16752296f0d10fa', '0b70e4f2bfe09d06fd3b7cfacdb2b3da', x'4e4fabbe087245d381b625a9fe31acb2', 'User', '2012-12-31 12:46:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4e4fabbe087245d381b625a9fe31acb2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'e0cd30a64eac402e8a11606af38ae68c', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'accounte0cd30a6-4eac-402e-8a11-606af38ae68c' WHERE `accounts`.`id` = x'e0cd30a64eac402e8a11606af38ae68c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e0cd30a64eac402e8a11606af38ae68c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e0cd30a64eac402e8a11606af38ae68c', x'd040a98803af4006b0535c92cddc8168', x'4e4fabbe087245d381b625a9fe31acb2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd040a98803af4006b0535c92cddc8168') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd040a98803af4006b0535c92cddc8168' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd040a98803af4006b0535c92cddc8168', x'2c9e68a1bef84471a91ace465742b50a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd040a98803af4006b0535c92cddc8168') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd040a98803af4006b0535c92cddc8168' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd040a98803af4006b0535c92cddc8168', x'2112c2ae4c334bdb91b7587701da0c66', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189086e806_f6180435d48183ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a309302d5f6246ff908952d156a6e002', x'8bc8f5f4a75244938c56fd3482ec361d', x'4e4fabbe087245d381b625a9fe31acb2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8bc8f5f4a75244938c56fd3482ec361d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8bc8f5f4a75244938c56fd3482ec361d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8bc8f5f4a75244938c56fd3482ec361d', x'8fe02af4a01646d79df3fe77b7fe81d8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8bc8f5f4a75244938c56fd3482ec361d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8bc8f5f4a75244938c56fd3482ec361d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8bc8f5f4a75244938c56fd3482ec361d', x'dd44366f65b44e12b139d9d296a27305', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8bc8f5f4a75244938c56fd3482ec361d'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8bc8f5f4a75244938c56fd3482ec361d' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '£ 0-_bFÿ‰RÑV¦à' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'dd44366f65b44e12b139d9d296a27305'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'8bc8f5f4a75244938c56fd3482ec361d') LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8bc8f5f4a75244938c56fd3482ec361d', x'9c96fbb14fe844e6aa508687e9a366bd', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != x'9c96fbb14fe844e6aa508687e9a366bd' AND `account_roles`.`account_user_id` = x'8bc8f5f4a75244938c56fd3482ec361d') LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8bc8f5f4a75244938c56fd3482ec361d' AND `account_roles`.`name` = 'user' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'40ab873712b94c5d8502b2d481fb07cc', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account40ab8737-12b9-4c5d-8502-b2d481fb07cc' WHERE `accounts`.`id` = x'40ab873712b94c5d8502b2d481fb07cc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'teste@teste.com', '$2a$04$vI2H1XrRoA6pji0d/1ZNoeGXC0qN0aFXlkNYecJ955b6L/Z8dFVbC', NULL, x'13f988a4767947f1ab32af1780b545c9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'13f988a4767947f1ab32af1780b545c9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'3b7502df7a5047988a83f7d119d8c012', '919523a75b51c93c88932136c3212107', x'13f988a4767947f1ab32af1780b545c9', 'User', '2012-12-31 12:46:00') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'13f988a4767947f1ab32af1780b545c9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'9156a2cf84874cf49df89b5bc02b6565', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account9156a2cf-8487-4cf4-9df8-9b5bc02b6565' WHERE `accounts`.`id` = x'9156a2cf84874cf49df89b5bc02b6565' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9156a2cf84874cf49df89b5bc02b6565' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9156a2cf84874cf49df89b5bc02b6565', x'e64122a464904bf5b7c542a3111f63cf', x'13f988a4767947f1ab32af1780b545c9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e64122a464904bf5b7c542a3111f63cf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e64122a464904bf5b7c542a3111f63cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e64122a464904bf5b7c542a3111f63cf', x'329452c58c37405ab18c14c6a86645d1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e64122a464904bf5b7c542a3111f63cf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e64122a464904bf5b7c542a3111f63cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e64122a464904bf5b7c542a3111f63cf', x'3ac73c362dc24ab8947dd180eeffefee', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18908964a2_f6180435d481849f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'40ab873712b94c5d8502b2d481fb07cc', x'194b4af4dfdb408bb1195cec94661c67', x'13f988a4767947f1ab32af1780b545c9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'194b4af4dfdb408bb1195cec94661c67') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'194b4af4dfdb408bb1195cec94661c67' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'194b4af4dfdb408bb1195cec94661c67', x'b617f49c330c40ef8f3dadc579fadb60', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'194b4af4dfdb408bb1195cec94661c67') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'194b4af4dfdb408bb1195cec94661c67' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'194b4af4dfdb408bb1195cec94661c67', x'4d39226070aa4875bd6a8779ea543a58', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'194b4af4dfdb408bb1195cec94661c67'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4d39226070aa4875bd6a8779ea543a58' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'194b4af4dfdb408bb1195cec94661c67' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '@«‡7¹L]…²ÔûÌ' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'194b4af4dfdb408bb1195cec94661c67') LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'194b4af4dfdb408bb1195cec94661c67', x'6577b60217aa4d6fbe611eb81bf96bcb', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != x'6577b60217aa4d6fbe611eb81bf96bcb' AND `account_roles`.`account_user_id` = x'194b4af4dfdb408bb1195cec94661c67') LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'194b4af4dfdb408bb1195cec94661c67' AND `account_roles`.`name` = 'admin' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'5c3de0a28a964f6a8b1b254400f5b056', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account5c3de0a2-8a96-4f6a-8b1b-254400f5b056' WHERE `accounts`.`id` = x'5c3de0a28a964f6a8b1b254400f5b056'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'teste@teste.com', '$2a$04$Iq8nkczl5j28PT7YWG0T1.N1wuNm2Fa00TcQyUfWnPOSq2wQGLlvi', NULL, x'e6183b45d74e422dbf8677d550e222e8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e6183b45d74e422dbf8677d550e222e8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'571fc4ba3b9349bc8bd1d27f181f150b', '4ea804cc542df5af9195b0a5543c0432', x'e6183b45d74e422dbf8677d550e222e8', 'User', '2012-12-31 12:46:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e6183b45d74e422dbf8677d550e222e8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'f34897dc93954b97a975b75ba5efe820', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'accountf34897dc-9395-4b97-a975-b75ba5efe820' WHERE `accounts`.`id` = x'f34897dc93954b97a975b75ba5efe820' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f34897dc93954b97a975b75ba5efe820' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f34897dc93954b97a975b75ba5efe820', x'6ad641db350a4c079cfd0d5b69499771', x'e6183b45d74e422dbf8677d550e222e8') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6ad641db350a4c079cfd0d5b69499771') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ad641db350a4c079cfd0d5b69499771' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ad641db350a4c079cfd0d5b69499771', x'95953977bd8c438e9d7fd4912e2a30ee', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6ad641db350a4c079cfd0d5b69499771') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ad641db350a4c079cfd0d5b69499771' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ad641db350a4c079cfd0d5b69499771', x'27f21e2954f64fd28289aed74f4baaf1', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18908a8f09_f6180435d481856b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5c3de0a28a964f6a8b1b254400f5b056', x'b83bb5049e1c47448f1ebab5f73ba84f', x'e6183b45d74e422dbf8677d550e222e8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b83bb5049e1c47448f1ebab5f73ba84f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b83bb5049e1c47448f1ebab5f73ba84f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b83bb5049e1c47448f1ebab5f73ba84f', x'ad00423e8e3b44aab201c2077ab8ea6e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b83bb5049e1c47448f1ebab5f73ba84f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b83bb5049e1c47448f1ebab5f73ba84f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b83bb5049e1c47448f1ebab5f73ba84f', x'6930fff4c6724ae8a3cbb5e975c96b1b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b83bb5049e1c47448f1ebab5f73ba84f'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'6930fff4c6724ae8a3cbb5e975c96b1b' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b83bb5049e1c47448f1ebab5f73ba84f' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'b83bb5049e1c47448f1ebab5f73ba84f') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b83bb5049e1c47448f1ebab5f73ba84f', x'3e0854d3a0ea4b1cb5b59787ff3e8f48', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != x'3e0854d3a0ea4b1cb5b59787ff3e8f48' AND `account_roles`.`account_user_id` = x'b83bb5049e1c47448f1ebab5f73ba84f') LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b83bb5049e1c47448f1ebab5f73ba84f' AND `account_roles`.`name` = 'user' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'3db287ddaec843fbb582f47497edad7d', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account3db287dd-aec8-43fb-b582-f47497edad7d' WHERE `accounts`.`id` = x'3db287ddaec843fbb582f47497edad7d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'teste@teste.com', '$2a$04$.t/hSsinrTjUZoNt6diPhujG/lRMQg4k3LZpWOiWHVk8NlLr4Ui/q', NULL, x'59ca4958a5c3423fb01e5451712ec6f7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'59ca4958a5c3423fb01e5451712ec6f7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'0d47d6811dff45309e1dbbdb62416610', '5ec2de1d346e41eb61f351b9358a8576', x'59ca4958a5c3423fb01e5451712ec6f7', 'User', '2012-12-31 12:46:00') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'59ca4958a5c3423fb01e5451712ec6f7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'70f754a69afa42a299f2a7ad904a3cc5', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account70f754a6-9afa-42a2-99f2-a7ad904a3cc5' WHERE `accounts`.`id` = x'70f754a69afa42a299f2a7ad904a3cc5' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'70f754a69afa42a299f2a7ad904a3cc5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'70f754a69afa42a299f2a7ad904a3cc5', x'b3a7ad2ec2744df0a105eb55c49c6d11', x'59ca4958a5c3423fb01e5451712ec6f7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'b3a7ad2ec2744df0a105eb55c49c6d11') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3a7ad2ec2744df0a105eb55c49c6d11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3a7ad2ec2744df0a105eb55c49c6d11', x'aaf049a648ec40af8dfe33e7b57c3606', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'b3a7ad2ec2744df0a105eb55c49c6d11') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3a7ad2ec2744df0a105eb55c49c6d11' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3a7ad2ec2744df0a105eb55c49c6d11', x'0bd49a2dec78445a9f300729fd31a41f', 'my_user') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18908bb12f_f6180435d48186c6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3db287ddaec843fbb582f47497edad7d', x'44d918ff8214473ea0ff8b2963eab74a', x'59ca4958a5c3423fb01e5451712ec6f7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'44d918ff8214473ea0ff8b2963eab74a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44d918ff8214473ea0ff8b2963eab74a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44d918ff8214473ea0ff8b2963eab74a', x'6bfef6fd67674fc8a4f1c5aef0679d1e', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'44d918ff8214473ea0ff8b2963eab74a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44d918ff8214473ea0ff8b2963eab74a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44d918ff8214473ea0ff8b2963eab74a', x'f2d94b17281445ca9db2e66b0f7acfb9', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'notowner@account.test', '$2a$04$ZcPVDKvEQRXJocDzuVPo2uTz8uAuCIM2vpOqktrHRJMmmy/f6.KI6', NULL, x'317d5a5a674249119a9d0983657f3f2e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'317d5a5a674249119a9d0983657f3f2e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'd687e340035a44f1a39d5892b730b499', '58473cd849094c2011347cf58ba56b20', x'317d5a5a674249119a9d0983657f3f2e', 'User', '2012-12-31 12:46:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'317d5a5a674249119a9d0983657f3f2e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'769535155a1840269f2045d2cde9225a', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account76953515-5a18-4026-9f20-45d2cde9225a' WHERE `accounts`.`id` = x'769535155a1840269f2045d2cde9225a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'769535155a1840269f2045d2cde9225a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'769535155a1840269f2045d2cde9225a', x'4f882975d71d4fba9fd6f7515e7dbc47', x'317d5a5a674249119a9d0983657f3f2e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'4f882975d71d4fba9fd6f7515e7dbc47') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f882975d71d4fba9fd6f7515e7dbc47' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f882975d71d4fba9fd6f7515e7dbc47', x'f045ee88d9714b3bbea4063f5ac9cb9c', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'4f882975d71d4fba9fd6f7515e7dbc47') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4f882975d71d4fba9fd6f7515e7dbc47' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4f882975d71d4fba9fd6f7515e7dbc47', x'89ba34f5baed4646af771c006e3f0b72', 'my_user') Sent mail to notowner@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e18908c924b_f6180435d48187ed@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'4a02553cbf8642dbadbd14569f8705d6', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'account4a02553c-bf86-42db-adbd-14569f8705d6' WHERE `accounts`.`id` = x'4a02553cbf8642dbadbd14569f8705d6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4a02553cbf8642dbadbd14569f8705d6', x'eb738e2f9ef94843beb3e8e6191192c8', x'317d5a5a674249119a9d0983657f3f2e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'eb738e2f9ef94843beb3e8e6191192c8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb738e2f9ef94843beb3e8e6191192c8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb738e2f9ef94843beb3e8e6191192c8', x'3121c318081d45c6b4aa1cad7e6ccc5e', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'eb738e2f9ef94843beb3e8e6191192c8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb738e2f9ef94843beb3e8e6191192c8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb738e2f9ef94843beb3e8e6191192c8', x'23418d7a638e4408a10675c283c0fcc8', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3db287ddaec843fbb582f47497edad7d' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'3db287ddaec843fbb582f47497edad7d' WHERE `account_users`.`id` = x'eb738e2f9ef94843beb3e8e6191192c8'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'44d918ff8214473ea0ff8b2963eab74a'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44d918ff8214473ea0ff8b2963eab74a' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '=²‡Ý®ÈCûµ‚ôt—í­}' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f2d94b17281445ca9db2e66b0f7acfb9'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'44d918ff8214473ea0ff8b2963eab74a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44d918ff8214473ea0ff8b2963eab74a' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'44d918ff8214473ea0ff8b2963eab74a' AND `account_roles`.`name` = 'my_owner' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'fdb21f5c329147f5acd94e056f2b7760', 'jabanilson', NULL, 1, '2012-12-31 12:46:00')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'accountfdb21f5c-3291-47f5-acd9-4e056f2b7760' WHERE `accounts`.`id` = x'fdb21f5c329147f5acd94e056f2b7760'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:00', 'teste@teste.com', '$2a$04$zuXrkpO767XPIrNq9YZ8Q.U906fY/yYaiSMYv7h6eC5WMesT.ERJm', NULL, x'0b23981130ab49a197b6eff85e2d43e0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:00') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0b23981130ab49a197b6eff85e2d43e0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:00', 'User', x'72d7fbf54f904e5788bf8bb444d5eedf', '57fb79159615bd13d34840e9d8906271', x'0b23981130ab49a197b6eff85e2d43e0', 'User', '2012-12-31 12:46:00') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0b23981130ab49a197b6eff85e2d43e0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:00', x'fd8547f4411440198f147dd59fd0152b', NULL, NULL, NULL, '2012-12-31 12:46:00')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:00', `updated_at` = '2012-12-31 12:46:00', `subdomain` = 'accountfd8547f4-4114-4019-8f14-7dd59fd0152b' WHERE `accounts`.`id` = x'fd8547f4411440198f147dd59fd0152b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fd8547f4411440198f147dd59fd0152b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fd8547f4411440198f147dd59fd0152b', x'e4d514f24aec41bcb45918fe36d2eafb', x'0b23981130ab49a197b6eff85e2d43e0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'e4d514f24aec41bcb45918fe36d2eafb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e4d514f24aec41bcb45918fe36d2eafb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e4d514f24aec41bcb45918fe36d2eafb', x'1f0f487855d84d9bbb327d8c508a1606', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'e4d514f24aec41bcb45918fe36d2eafb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e4d514f24aec41bcb45918fe36d2eafb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e4d514f24aec41bcb45918fe36d2eafb', x'd1849faa555d49b38f285687b7b0e5ce', 'my_user') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:00 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18908f316a_f6180435d4818892@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fdb21f5c329147f5acd94e056f2b7760', x'ca6b40ff4c6841508461bb99b5025c23', x'0b23981130ab49a197b6eff85e2d43e0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'ca6b40ff4c6841508461bb99b5025c23') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca6b40ff4c6841508461bb99b5025c23' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca6b40ff4c6841508461bb99b5025c23', x'15bf243c9bf34ef68b12c331deb549d7', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'ca6b40ff4c6841508461bb99b5025c23') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca6b40ff4c6841508461bb99b5025c23' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca6b40ff4c6841508461bb99b5025c23', x'8e5500c7575c46438546644754e2281e', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'notowner@account.test', '$2a$04$SofmAJQuTRs4I/v9k2730uqR7/u.unRYN.IdCW3D.aaYS96XQlvQC', NULL, x'7b6c64f5ef0742ada74dac1bb36128eb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7b6c64f5ef0742ada74dac1bb36128eb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'8c5fe46f7d974925b2397a76b872c130', '0d3b1fee64946fdd08dff9a22291529b', x'7b6c64f5ef0742ada74dac1bb36128eb', 'User', '2012-12-31 12:46:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7b6c64f5ef0742ada74dac1bb36128eb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'95b73267ca90430d8a5d6a909e8bb372', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account95b73267-ca90-430d-8a5d-6a909e8bb372' WHERE `accounts`.`id` = x'95b73267ca90430d8a5d6a909e8bb372' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'95b73267ca90430d8a5d6a909e8bb372' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'95b73267ca90430d8a5d6a909e8bb372', x'b3eb8d3d55204c0bbf37e8ded337cd2a', x'7b6c64f5ef0742ada74dac1bb36128eb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'b3eb8d3d55204c0bbf37e8ded337cd2a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3eb8d3d55204c0bbf37e8ded337cd2a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3eb8d3d55204c0bbf37e8ded337cd2a', x'cd2f119cbfa345e2aeb3901b5c47aa6c', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'b3eb8d3d55204c0bbf37e8ded337cd2a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3eb8d3d55204c0bbf37e8ded337cd2a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3eb8d3d55204c0bbf37e8ded337cd2a', x'0c7ffcade02d42f19d9ce8ee758fce3d', 'my_user') Sent mail to notowner@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e18909caea_f6180435d481899b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'dcb38f1539bc4e399ba27bf75e861220', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'accountdcb38f15-39bc-4e39-9ba2-7bf75e861220' WHERE `accounts`.`id` = x'dcb38f1539bc4e399ba27bf75e861220'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dcb38f1539bc4e399ba27bf75e861220', x'b4f82869bd064b1e9c09d2ad1be39edb', x'7b6c64f5ef0742ada74dac1bb36128eb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'b4f82869bd064b1e9c09d2ad1be39edb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b4f82869bd064b1e9c09d2ad1be39edb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b4f82869bd064b1e9c09d2ad1be39edb', x'8fc2ac4962574a40b3a24eee5b56ee26', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'b4f82869bd064b1e9c09d2ad1be39edb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b4f82869bd064b1e9c09d2ad1be39edb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b4f82869bd064b1e9c09d2ad1be39edb', x'bfc31114591d48a9a5f11c4de35ba208', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fdb21f5c329147f5acd94e056f2b7760' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'fdb21f5c329147f5acd94e056f2b7760' WHERE `account_users`.`id` = x'b4f82869bd064b1e9c09d2ad1be39edb'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ca6b40ff4c6841508461bb99b5025c23'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca6b40ff4c6841508461bb99b5025c23' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8e5500c7575c46438546644754e2281e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'ca6b40ff4c6841508461bb99b5025c23') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca6b40ff4c6841508461bb99b5025c23' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca6b40ff4c6841508461bb99b5025c23', x'998d763897eb45d0bd02c2909d16d7c2', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ca6b40ff4c6841508461bb99b5025c23' AND `account_roles`.`name` = 'my_user' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'40d8ed5c2ca148a8b1b5e8c280d92edf', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account40d8ed5c-2ca1-48a8-b1b5-e8c280d92edf' WHERE `accounts`.`id` = x'40d8ed5c2ca148a8b1b5e8c280d92edf'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$ehxk05WfO0qzOz6R7oQCLuPoPH7qhkUuCcFGt6AsMP0fkElSHj1Uy', NULL, x'032e656ff367405fb81e3ce7e67eb1d2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'032e656ff367405fb81e3ce7e67eb1d2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'31a07e9e749f49d2a938969c094b7a85', '98cda0cce53ca82e26180e0577746e4d', x'032e656ff367405fb81e3ce7e67eb1d2', 'User', '2012-12-31 12:46:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'032e656ff367405fb81e3ce7e67eb1d2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'ce2ef8dbe0064ddda1e4b93868772d3d', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'accountce2ef8db-e006-4ddd-a1e4-b93868772d3d' WHERE `accounts`.`id` = x'ce2ef8dbe0064ddda1e4b93868772d3d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ce2ef8dbe0064ddda1e4b93868772d3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ce2ef8dbe0064ddda1e4b93868772d3d', x'344d1e6988e5432cb5321ef8c45b7b6a', x'032e656ff367405fb81e3ce7e67eb1d2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'344d1e6988e5432cb5321ef8c45b7b6a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'344d1e6988e5432cb5321ef8c45b7b6a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'344d1e6988e5432cb5321ef8c45b7b6a', x'7eea73e4ed0a485e80cbaad8d2007612', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'344d1e6988e5432cb5321ef8c45b7b6a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'344d1e6988e5432cb5321ef8c45b7b6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'344d1e6988e5432cb5321ef8c45b7b6a', x'7ed3128f4bb8458b9d7ab3891eb840a8', 'my_user') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189092089d_f6180435d48190e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'40d8ed5c2ca148a8b1b5e8c280d92edf', x'c8e199eaf7a843388799d936757e1552', x'032e656ff367405fb81e3ce7e67eb1d2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'c8e199eaf7a843388799d936757e1552') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c8e199eaf7a843388799d936757e1552' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c8e199eaf7a843388799d936757e1552', x'6541ea277aa740f6a527a7e8e03f0240', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'c8e199eaf7a843388799d936757e1552') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c8e199eaf7a843388799d936757e1552' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c8e199eaf7a843388799d936757e1552', x'fd7faf33c8134854a5f42b0cb3f393e0', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c8e199eaf7a843388799d936757e1552'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c8e199eaf7a843388799d936757e1552' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fd7faf33c8134854a5f42b0cb3f393e0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_guest' AND `account_roles`.`account_user_id` = x'c8e199eaf7a843388799d936757e1552') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c8e199eaf7a843388799d936757e1552' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c8e199eaf7a843388799d936757e1552', x'3adf1029a9b941b2969b35cb676501a2', 'my_guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c8e199eaf7a843388799d936757e1552' AND `account_roles`.`name` = 'my_guest' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'3caccb8a73184cf7bbcef922b49e89e1', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account3caccb8a-7318-4cf7-bbce-f922b49e89e1' WHERE `accounts`.`id` = x'3caccb8a73184cf7bbcef922b49e89e1'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$jOTW95g4gEzBz/vcFvNlwOw5ujrjjd34WaVAIMjvzdZe7R93NwzFy', NULL, x'5a54b746b09347c695c5700abe0d0f5a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5a54b746b09347c695c5700abe0d0f5a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'bfe1504ff82042c7b6ae0a56fde93929', '7d2263574fab75a07b267cd65b01de89', x'5a54b746b09347c695c5700abe0d0f5a', 'User', '2012-12-31 12:46:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5a54b746b09347c695c5700abe0d0f5a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'1a0a8afcdcf2479799b4f81274d79e45', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account1a0a8afc-dcf2-4797-99b4-f81274d79e45' WHERE `accounts`.`id` = x'1a0a8afcdcf2479799b4f81274d79e45' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1a0a8afcdcf2479799b4f81274d79e45' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1a0a8afcdcf2479799b4f81274d79e45', x'5b4dbc59464a426e98a46b7b32f2fbad', x'5a54b746b09347c695c5700abe0d0f5a') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'5b4dbc59464a426e98a46b7b32f2fbad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b4dbc59464a426e98a46b7b32f2fbad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b4dbc59464a426e98a46b7b32f2fbad', x'5b20c531324246dc85e69b2fbd07032a', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'5b4dbc59464a426e98a46b7b32f2fbad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b4dbc59464a426e98a46b7b32f2fbad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b4dbc59464a426e98a46b7b32f2fbad', x'a9b82f6e87e64fa4876da0273a60c327', 'my_user') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890932dd1_f6180435d481913f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3caccb8a73184cf7bbcef922b49e89e1', x'8a282a05185f4492ac175fe7c1497fa7', x'5a54b746b09347c695c5700abe0d0f5a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'8a282a05185f4492ac175fe7c1497fa7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a282a05185f4492ac175fe7c1497fa7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a282a05185f4492ac175fe7c1497fa7', x'fc82cc224291463eb95c9a1dd5af53dc', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'8a282a05185f4492ac175fe7c1497fa7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a282a05185f4492ac175fe7c1497fa7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a282a05185f4492ac175fe7c1497fa7', x'9dcc5ecbe4894555b3576b6f8cce725a', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8a282a05185f4492ac175fe7c1497fa7'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9dcc5ecbe4894555b3576b6f8cce725a' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a282a05185f4492ac175fe7c1497fa7' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'8a282a05185f4492ac175fe7c1497fa7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a282a05185f4492ac175fe7c1497fa7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a282a05185f4492ac175fe7c1497fa7', x'70a14379f9bd40b1919885ec3a6f120f', 'my_user')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'9bc59a2a88c34ec3bf31959f0886253b', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account9bc59a2a-88c3-4ec3-bf31-959f0886253b' WHERE `accounts`.`id` = x'9bc59a2a88c34ec3bf31959f0886253b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$UHBc.6/dQITwE7IDcFXc..7FxGDuDJ/nyD2uBMOEkj//wcINt6/CS', NULL, x'47de11e7f74245779afb472a683bc6b3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'47de11e7f74245779afb472a683bc6b3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (12.0ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'183a4232d16a46afba59117da94724ba', '487d09d5bbb0ec84f007f84c9d3f41bb', x'47de11e7f74245779afb472a683bc6b3', 'User', '2012-12-31 12:46:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'47de11e7f74245779afb472a683bc6b3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'27ef0807e3dd447884361d9f64229873', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account27ef0807-e3dd-4478-8436-1d9f64229873' WHERE `accounts`.`id` = x'27ef0807e3dd447884361d9f64229873' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'27ef0807e3dd447884361d9f64229873' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'27ef0807e3dd447884361d9f64229873', x'bb4f242fbfc84444859a8f2be56f1c8b', x'47de11e7f74245779afb472a683bc6b3') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'bb4f242fbfc84444859a8f2be56f1c8b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb4f242fbfc84444859a8f2be56f1c8b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb4f242fbfc84444859a8f2be56f1c8b', x'dbe2c12cd4ef453fa2c58eacf121dce6', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'bb4f242fbfc84444859a8f2be56f1c8b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb4f242fbfc84444859a8f2be56f1c8b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb4f242fbfc84444859a8f2be56f1c8b', x'6403bd53a4d543828694d6cd16fa6347', 'my_user') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189095f187_f6180435d48192f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9bc59a2a88c34ec3bf31959f0886253b', x'9011ae57667c46e8bfd934e43948a101', x'47de11e7f74245779afb472a683bc6b3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'9011ae57667c46e8bfd934e43948a101') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9011ae57667c46e8bfd934e43948a101' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9011ae57667c46e8bfd934e43948a101', x'17f876b0f4974d8a982273e1ee4bc89f', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'9011ae57667c46e8bfd934e43948a101') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9011ae57667c46e8bfd934e43948a101' LIMIT 1 SQL (1.6ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9011ae57667c46e8bfd934e43948a101', x'ae6fafdc3ea847308370a10227fd95a3', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9011ae57667c46e8bfd934e43948a101'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9011ae57667c46e8bfd934e43948a101' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '›Åš*ˆÃNÿ1•Ÿ†%;' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ae6fafdc3ea847308370a10227fd95a3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'41defd14c6c3400eb2fc7a912907ab11', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account41defd14-c6c3-400e-b2fc-7a912907ab11' WHERE `accounts`.`id` = x'41defd14c6c3400eb2fc7a912907ab11'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$suUwdvIPOJi3WYWnOGt4mOmL/pz.UOEjMLrsR4FQNR5hcRyJvNVq6', NULL, x'2626adb301684a589bf77bc51c4d94fa', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2626adb301684a589bf77bc51c4d94fa' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'b7fb9a8c3055420b99ee2b47289bef49', 'ef03d222010b4fc939047063a1fc5004', x'2626adb301684a589bf77bc51c4d94fa', 'User', '2012-12-31 12:46:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2626adb301684a589bf77bc51c4d94fa' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'5a46df278eb6445fa2a901dba02d41ad', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account5a46df27-8eb6-445f-a2a9-01dba02d41ad' WHERE `accounts`.`id` = x'5a46df278eb6445fa2a901dba02d41ad' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5a46df278eb6445fa2a901dba02d41ad' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5a46df278eb6445fa2a901dba02d41ad', x'6c87e9765c2249d39105cac3213cb009', x'2626adb301684a589bf77bc51c4d94fa') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'6c87e9765c2249d39105cac3213cb009') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6c87e9765c2249d39105cac3213cb009' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6c87e9765c2249d39105cac3213cb009', x'e7851f1141924b38813301ab5560c492', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'6c87e9765c2249d39105cac3213cb009') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6c87e9765c2249d39105cac3213cb009' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6c87e9765c2249d39105cac3213cb009', x'bc4cdc9d329a4b6c955f2d0f87469a1a', 'my_user') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890972955_f6180435d48193d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'41defd14c6c3400eb2fc7a912907ab11', x'799fb10b163f421e949c1c837cd6d5b5', x'2626adb301684a589bf77bc51c4d94fa') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'799fb10b163f421e949c1c837cd6d5b5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'799fb10b163f421e949c1c837cd6d5b5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'799fb10b163f421e949c1c837cd6d5b5', x'a526ff20db994ebc8a94f3d6b2cfb56b', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'799fb10b163f421e949c1c837cd6d5b5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'799fb10b163f421e949c1c837cd6d5b5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'799fb10b163f421e949c1c837cd6d5b5', x'350cbe19086f499dbeaf1bcb426d1583', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'799fb10b163f421e949c1c837cd6d5b5'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'350cbe19086f499dbeaf1bcb426d1583' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'799fb10b163f421e949c1c837cd6d5b5' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'AÞýÆÃ@²üz‘)«' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'c0d9b87f061d493489d0a62dce5f6cd8', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'accountc0d9b87f-061d-4934-89d0-a62dce5f6cd8' WHERE `accounts`.`id` = x'c0d9b87f061d493489d0a62dce5f6cd8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$3LjbptcdpPhqpHbgcHh0rOzNXvmGBj1PyaXvcyjRsXg2al5B6DTeK', NULL, x'c8a9f4ee975b4983afe593078c10e61c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c8a9f4ee975b4983afe593078c10e61c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'd5540f508bad4c32a61c410e9ca5e344', '439f5b146897abe02b6957cbd0abef19', x'c8a9f4ee975b4983afe593078c10e61c', 'User', '2012-12-31 12:46:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c8a9f4ee975b4983afe593078c10e61c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'792e18ac80d74756bfc3bb39c2282d05', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account792e18ac-80d7-4756-bfc3-bb39c2282d05' WHERE `accounts`.`id` = x'792e18ac80d74756bfc3bb39c2282d05' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'792e18ac80d74756bfc3bb39c2282d05' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'792e18ac80d74756bfc3bb39c2282d05', x'cfc20feb199f4791a94f9b9102fa116a', x'c8a9f4ee975b4983afe593078c10e61c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'cfc20feb199f4791a94f9b9102fa116a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfc20feb199f4791a94f9b9102fa116a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfc20feb199f4791a94f9b9102fa116a', x'fc95b8e8d937487ab19f77004c27aac4', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'cfc20feb199f4791a94f9b9102fa116a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfc20feb199f4791a94f9b9102fa116a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfc20feb199f4791a94f9b9102fa116a', x'2536983ba8dc4425af0e8d5685bf6bb8', 'my_user') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890983dd4_f6180435d4819492@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c0d9b87f061d493489d0a62dce5f6cd8', x'c90b9400fb574bf2859ae8dc4385d25c', x'c8a9f4ee975b4983afe593078c10e61c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'c90b9400fb574bf2859ae8dc4385d25c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c90b9400fb574bf2859ae8dc4385d25c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c90b9400fb574bf2859ae8dc4385d25c', x'dd537ebee869463c924cdd73eba99aba', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'c90b9400fb574bf2859ae8dc4385d25c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c90b9400fb574bf2859ae8dc4385d25c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c90b9400fb574bf2859ae8dc4385d25c', x'ce85badd3c664661bea7696f41e3ec52', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c90b9400fb574bf2859ae8dc4385d25c'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ce85badd3c664661bea7696f41e3ec52' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c90b9400fb574bf2859ae8dc4385d25c' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ÀÙ¸I4‰Ð¦-Î_lØ' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'd8a117343bb041c58b9192abbb773399', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'accountd8a11734-3bb0-41c5-8b91-92abbb773399' WHERE `accounts`.`id` = x'd8a117343bb041c58b9192abbb773399'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$Y/P3YmwrpGxxLNXSaOCzoOY9nCLBpqlIsbBNXv6VsKr/bqKFv8zYC', NULL, x'e2d96232942c49ff9e8bb47b83800626', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e2d96232942c49ff9e8bb47b83800626' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.1ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'84824a8b715e45ba95b62920866171d7', 'c4f3829ed40ddda7b685d4047dacf7aa', x'e2d96232942c49ff9e8bb47b83800626', 'User', '2012-12-31 12:46:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e2d96232942c49ff9e8bb47b83800626' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'3ab5d9cdf20f45a2b9382fe30a9136a8', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account3ab5d9cd-f20f-45a2-b938-2fe30a9136a8' WHERE `accounts`.`id` = x'3ab5d9cdf20f45a2b9382fe30a9136a8' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3ab5d9cdf20f45a2b9382fe30a9136a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3ab5d9cdf20f45a2b9382fe30a9136a8', x'3ccc518cff5c45a28567a742514439bd', x'e2d96232942c49ff9e8bb47b83800626') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3ccc518cff5c45a28567a742514439bd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3ccc518cff5c45a28567a742514439bd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3ccc518cff5c45a28567a742514439bd', x'920af9f9013e4490af267d782aa1bafc', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3ccc518cff5c45a28567a742514439bd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3ccc518cff5c45a28567a742514439bd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3ccc518cff5c45a28567a742514439bd', x'9f95d738a0184c8f8c029e43f03d42b8', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18909ab006_f6180435d4819571@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd8a117343bb041c58b9192abbb773399', x'e66fbeea71794272815b324f293526e8', x'e2d96232942c49ff9e8bb47b83800626') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e66fbeea71794272815b324f293526e8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e66fbeea71794272815b324f293526e8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e66fbeea71794272815b324f293526e8', x'988ec9b2165240e8aa9b55a1c7fe989b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e66fbeea71794272815b324f293526e8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e66fbeea71794272815b324f293526e8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e66fbeea71794272815b324f293526e8', x'ce728ef86a834f20892e621f404c8655', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:01', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: e66fbeea-7179-4272-815b-324f293526e8\n', NULL, NULL, NULL, 0, 'account_user_e66fbeea-7179-4272-815b-324f293526e8_destroy', '2012-12-31 12:46:01', '2012-12-31 12:46:01')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_e66fbeea-7179-4272-815b-324f293526e8_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'838f489425414b20a752961d78a57858', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account838f4894-2541-4b20-a752-961d78a57858' WHERE `accounts`.`id` = x'838f489425414b20a752961d78a57858'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$i8/woj60yaurkyd4okUNdekeKFlDIS/DWSjuujIZ9Kgckdh5wk85K', NULL, x'b8943f017a3346f8af187a96beb1552e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b8943f017a3346f8af187a96beb1552e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'34e65534009f445fa8f86cb4aa32b693', '954eed4026a780d707eda8cac9b16c2c', x'b8943f017a3346f8af187a96beb1552e', 'User', '2012-12-31 12:46:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b8943f017a3346f8af187a96beb1552e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'e1cc98a4e3c5418b88b755bd9e0f502d', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'accounte1cc98a4-e3c5-418b-88b7-55bd9e0f502d' WHERE `accounts`.`id` = x'e1cc98a4e3c5418b88b755bd9e0f502d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e1cc98a4e3c5418b88b755bd9e0f502d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e1cc98a4e3c5418b88b755bd9e0f502d', x'774f39f56def49f5851fec2f975d0ab8', x'b8943f017a3346f8af187a96beb1552e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'774f39f56def49f5851fec2f975d0ab8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'774f39f56def49f5851fec2f975d0ab8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'774f39f56def49f5851fec2f975d0ab8', x'6fd758744fd141d0a7625f5341cfb22a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'774f39f56def49f5851fec2f975d0ab8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'774f39f56def49f5851fec2f975d0ab8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'774f39f56def49f5851fec2f975d0ab8', x'fd30ce9436704934b360ae5c7d118073', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18909bca7c_f6180435d48196e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'838f489425414b20a752961d78a57858', x'46ed4b5f79ee4a2b95c4969531d70c78', x'b8943f017a3346f8af187a96beb1552e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'46ed4b5f79ee4a2b95c4969531d70c78') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'46ed4b5f79ee4a2b95c4969531d70c78' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'46ed4b5f79ee4a2b95c4969531d70c78', x'd59eff2ad716421389ea0deacbaa22e9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'46ed4b5f79ee4a2b95c4969531d70c78') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'46ed4b5f79ee4a2b95c4969531d70c78' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'46ed4b5f79ee4a2b95c4969531d70c78', x'dee9463cf93345ff8173a486d973f929', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_46ed4b5f-79ee-4a2b-95c4-969531d70c78_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'025da93444074b72be4125f2cfb62ab3', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account025da934-4407-4b72-be41-25f2cfb62ab3' WHERE `accounts`.`id` = x'025da93444074b72be4125f2cfb62ab3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$JIR6rulcdPtgVYgflKMu7uLFWyPPbkyH3A/ZDa5JUUBI3FNM6knpq', NULL, x'fc08d25663a444ab91c780d8332cec81', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fc08d25663a444ab91c780d8332cec81' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'a75dd99d907d4aefbda073f1a03e7559', 'd3145c76ae44421588976f5633d03663', x'fc08d25663a444ab91c780d8332cec81', 'User', '2012-12-31 12:46:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fc08d25663a444ab91c780d8332cec81' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'931582880fa641c3a38ada3a0da11749', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account93158288-0fa6-41c3-a38a-da3a0da11749' WHERE `accounts`.`id` = x'931582880fa641c3a38ada3a0da11749' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'931582880fa641c3a38ada3a0da11749' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'931582880fa641c3a38ada3a0da11749', x'b68c19a26e2e4229ab1c44686053f629', x'fc08d25663a444ab91c780d8332cec81') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b68c19a26e2e4229ab1c44686053f629') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b68c19a26e2e4229ab1c44686053f629' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b68c19a26e2e4229ab1c44686053f629', x'6595a4828de648749cec86f6e52180b2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b68c19a26e2e4229ab1c44686053f629') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b68c19a26e2e4229ab1c44686053f629' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b68c19a26e2e4229ab1c44686053f629', x'1bc4f9f1421b44daa8225c04485f90b8', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18909cc99a_f6180435d48197af@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'025da93444074b72be4125f2cfb62ab3', x'90ebf2c9c385475881dd922206b56351', x'fc08d25663a444ab91c780d8332cec81') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'90ebf2c9c385475881dd922206b56351') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90ebf2c9c385475881dd922206b56351' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90ebf2c9c385475881dd922206b56351', x'eb69326724ce4fff918fd4e014451dcc', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'90ebf2c9c385475881dd922206b56351') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90ebf2c9c385475881dd922206b56351' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90ebf2c9c385475881dd922206b56351', x'40fdf539610e4757936cc644325852fe', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'0d4bb6c41a214086a00b872ea13261e7', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account0d4bb6c4-1a21-4086-a00b-872ea13261e7' WHERE `accounts`.`id` = x'0d4bb6c41a214086a00b872ea13261e7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:01', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 90ebf2c9-c385-4758-81dd-922206b56351\n', NULL, NULL, NULL, 0, 'account_user_90ebf2c9-c385-4758-81dd-922206b56351_destroy', '2012-12-31 12:46:01', '2012-12-31 12:46:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_90ebf2c9-c385-4758-81dd-922206b56351_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'3a586163d5144e26998aaaf486bed69a', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account3a586163-d514-4e26-998a-aaf486bed69a' WHERE `accounts`.`id` = x'3a586163d5144e26998aaaf486bed69a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$cI5jVNUo2Fmyot.RJdeZpOTfOTZYNnNKDwIAluY8t/fWZPaWwvCM6', NULL, x'9ed923a0710b45c5a0bdb39e8ef76185', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9ed923a0710b45c5a0bdb39e8ef76185' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'c60bbc8d443b409bae7495d07911aa16', '83ebbdd7faacdf701ac5a4c822fef9a8', x'9ed923a0710b45c5a0bdb39e8ef76185', 'User', '2012-12-31 12:46:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9ed923a0710b45c5a0bdb39e8ef76185' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'6b270fe37390495b8ae42e4a7b0ffd5f', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account6b270fe3-7390-495b-8ae4-2e4a7b0ffd5f' WHERE `accounts`.`id` = x'6b270fe37390495b8ae42e4a7b0ffd5f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6b270fe37390495b8ae42e4a7b0ffd5f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6b270fe37390495b8ae42e4a7b0ffd5f', x'bc5358f383e043169f6d48d4552524b4', x'9ed923a0710b45c5a0bdb39e8ef76185') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bc5358f383e043169f6d48d4552524b4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc5358f383e043169f6d48d4552524b4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc5358f383e043169f6d48d4552524b4', x'21e73600f228483db4a89c1fadb4e7a6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bc5358f383e043169f6d48d4552524b4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc5358f383e043169f6d48d4552524b4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc5358f383e043169f6d48d4552524b4', x'6f8d3729cc9b453cbc4a60a8dff678d5', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:01 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18909df68f_f6180435d481982f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3a586163d5144e26998aaaf486bed69a', x'e343a02a751e4501aa152593394cb1c9', x'9ed923a0710b45c5a0bdb39e8ef76185') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e343a02a751e4501aa152593394cb1c9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e343a02a751e4501aa152593394cb1c9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e343a02a751e4501aa152593394cb1c9', x'97d2ab747846429590520431f36b85f5', 'owner') AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e343a02a751e4501aa152593394cb1c9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e343a02a751e4501aa152593394cb1c9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e343a02a751e4501aa152593394cb1c9', x'd9d80ba633b14caaba8cd137b9fa6a3b', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'c58c3978ba534fcdb8ed701970b5b2fa', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'accountc58c3978-ba53-4fcd-b8ed-701970b5b2fa' WHERE `accounts`.`id` = x'c58c3978ba534fcdb8ed701970b5b2fa'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_e343a02a-751e-4501-aa15-2593394cb1c9_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'63e3ab5f4a9547e280a95e30f802ccbf', 'jabanilson', NULL, 1, '2012-12-31 12:46:01')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account63e3ab5f-4a95-47e2-80a9-5e30f802ccbf' WHERE `accounts`.`id` = x'63e3ab5f4a9547e280a95e30f802ccbf'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:01', 'teste@teste.com', '$2a$04$f7et2hl85EC7oVExS.vKjOQvJUmHAd5iMrcylTtmYfP8AtE0tTscy', NULL, x'b548c0e7b64c4b80b4bd8fff42bf903a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:01') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b548c0e7b64c4b80b4bd8fff42bf903a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:01', 'User', x'48e87b372d4542b19903874fe5d93a50', '20878d2ef1049b63b8bfa6eb50110e11', x'b548c0e7b64c4b80b4bd8fff42bf903a', 'User', '2012-12-31 12:46:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b548c0e7b64c4b80b4bd8fff42bf903a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:01', x'1662be383d3d4b1c9d9b8d6ebddaffc2', NULL, NULL, NULL, '2012-12-31 12:46:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:01', `updated_at` = '2012-12-31 12:46:01', `subdomain` = 'account1662be38-3d3d-4b1c-9d9b-8d6ebddaffc2' WHERE `accounts`.`id` = x'1662be383d3d4b1c9d9b8d6ebddaffc2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1662be383d3d4b1c9d9b8d6ebddaffc2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1662be383d3d4b1c9d9b8d6ebddaffc2', x'9ac3c6de278d4e5fbb6d01b7fdfa0615', x'b548c0e7b64c4b80b4bd8fff42bf903a') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9ac3c6de278d4e5fbb6d01b7fdfa0615') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9ac3c6de278d4e5fbb6d01b7fdfa0615' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9ac3c6de278d4e5fbb6d01b7fdfa0615', x'e628cdd5e6224179b4fe66a42c61a6fc', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9ac3c6de278d4e5fbb6d01b7fdfa0615') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9ac3c6de278d4e5fbb6d01b7fdfa0615' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9ac3c6de278d4e5fbb6d01b7fdfa0615', x'c67cdaa6ab0b4f9a9355a29c8c125f26', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890a12beb_f6180435d48199bb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'63e3ab5f4a9547e280a95e30f802ccbf', x'caa26d1298364d89bff8df62d169c9e3', x'b548c0e7b64c4b80b4bd8fff42bf903a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'caa26d1298364d89bff8df62d169c9e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'caa26d1298364d89bff8df62d169c9e3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'caa26d1298364d89bff8df62d169c9e3', x'c0899e67f58e4a81a6acdf0c0a969c33', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'caa26d1298364d89bff8df62d169c9e3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'caa26d1298364d89bff8df62d169c9e3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'caa26d1298364d89bff8df62d169c9e3', x'0106eadc9b004e84ac81e3199a8260de', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'f1c289cd50fb4d2c833bae24255d3c3d', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'accountf1c289cd-50fb-4d2c-833b-ae24255d3c3d' WHERE `accounts`.`id` = x'f1c289cd50fb4d2c833bae24255d3c3d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:02', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: caa26d12-9836-4d89-bff8-df62d169c9e3\n', NULL, NULL, NULL, 0, 'account_user_caa26d12-9836-4d89-bff8-df62d169c9e3_destroy', '2012-12-31 12:46:02', '2012-12-31 12:46:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_caa26d12-9836-4d89-bff8-df62d169c9e3_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_caa26d12-9836-4d89-bff8-df62d169c9e3_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 26  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_caa26d12-9836-4d89-bff8-df62d169c9e3_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'44401e961d1d4943aae5e6749d1e86e2', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account44401e96-1d1d-4943-aae5-e6749d1e86e2' WHERE `accounts`.`id` = x'44401e961d1d4943aae5e6749d1e86e2'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:02', 'teste@teste.com', '$2a$04$Vj8LvJ/GfAIk29LP0YTqTOuBX4TFi6Hr3Suo/7Rz3rAfsrg1zitgO', NULL, x'3ee4556d1f3d4555a127eaa5a044a726', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3ee4556d1f3d4555a127eaa5a044a726' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:02', 'User', x'9c1411f83c1e411399cc6e1fa8c71534', 'ddd46a8565ccc1eac98d6396d1ef9fb1', x'3ee4556d1f3d4555a127eaa5a044a726', 'User', '2012-12-31 12:46:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3ee4556d1f3d4555a127eaa5a044a726' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'33ddaf5422544e92856a0aeb4ad374a3', NULL, NULL, NULL, '2012-12-31 12:46:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account33ddaf54-2254-4e92-856a-0aeb4ad374a3' WHERE `accounts`.`id` = x'33ddaf5422544e92856a0aeb4ad374a3' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'33ddaf5422544e92856a0aeb4ad374a3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'33ddaf5422544e92856a0aeb4ad374a3', x'e0bb2ad53e65418bbadbf20c9875f9a6', x'3ee4556d1f3d4555a127eaa5a044a726') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e0bb2ad53e65418bbadbf20c9875f9a6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e0bb2ad53e65418bbadbf20c9875f9a6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e0bb2ad53e65418bbadbf20c9875f9a6', x'b8f6a063911447eeb029810ad7819e75', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e0bb2ad53e65418bbadbf20c9875f9a6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e0bb2ad53e65418bbadbf20c9875f9a6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e0bb2ad53e65418bbadbf20c9875f9a6', x'9cafedbace3446d98b968a2fe32cc434', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890a25330_f6180435d482005d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'44401e961d1d4943aae5e6749d1e86e2', x'17c0672037904fbc8a157cf19a9b68aa', x'3ee4556d1f3d4555a127eaa5a044a726') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'17c0672037904fbc8a157cf19a9b68aa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17c0672037904fbc8a157cf19a9b68aa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17c0672037904fbc8a157cf19a9b68aa', x'e3ac19e18f8e479f95942cc181da56e2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'17c0672037904fbc8a157cf19a9b68aa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17c0672037904fbc8a157cf19a9b68aa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17c0672037904fbc8a157cf19a9b68aa', x'd7649990817b4fcfb517dce0fb743c1b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'f0e22c83c97d45b3b4090c9179122f23', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'accountf0e22c83-c97d-45b3-b409-0c9179122f23' WHERE `accounts`.`id` = x'f0e22c83c97d45b3b4090c9179122f23'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:02', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 17c06720-3790-4fbc-8a15-7cf19a9b68aa\n', NULL, NULL, NULL, 0, 'account_user_17c06720-3790-4fbc-8a15-7cf19a9b68aa_destroy', '2012-12-31 12:46:02', '2012-12-31 12:46:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_17c06720-3790-4fbc-8a15-7cf19a9b68aa_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_17c06720-3790-4fbc-8a15-7cf19a9b68aa_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 27  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'65d5f3f048f94a729137ef05cde16145', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account65d5f3f0-48f9-4a72-9137-ef05cde16145' WHERE `accounts`.`id` = x'65d5f3f048f94a729137ef05cde16145'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:02', 'teste@teste.com', '$2a$04$ZEKw1onn4om2B2g9PsWEdOq1P2lgMrOq667DlV1O7KuW0Vpb.LQ.O', NULL, x'44e7fabba66e4768b07f4a8d7648da55', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'44e7fabba66e4768b07f4a8d7648da55' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:02', 'User', x'9fa4039cdcd3457887f737f180b53e61', '35fe1a9cc6b362837e4b36bfdf73d30c', x'44e7fabba66e4768b07f4a8d7648da55', 'User', '2012-12-31 12:46:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'44e7fabba66e4768b07f4a8d7648da55' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'023c849ed3c140b59d3d37dc1eca207e', NULL, NULL, NULL, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account023c849e-d3c1-40b5-9d3d-37dc1eca207e' WHERE `accounts`.`id` = x'023c849ed3c140b59d3d37dc1eca207e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'023c849ed3c140b59d3d37dc1eca207e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'023c849ed3c140b59d3d37dc1eca207e', x'291cdd1268404060af1e4deed44b8d78', x'44e7fabba66e4768b07f4a8d7648da55') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'291cdd1268404060af1e4deed44b8d78') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'291cdd1268404060af1e4deed44b8d78' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'291cdd1268404060af1e4deed44b8d78', x'154209404e954fb28fda595d433fd65b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'291cdd1268404060af1e4deed44b8d78') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'291cdd1268404060af1e4deed44b8d78' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'291cdd1268404060af1e4deed44b8d78', x'29eaa24b5885407ea2f54a7c2c8ec721', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890a37c55_f6180435d48201d4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'65d5f3f048f94a729137ef05cde16145', x'4ce99733800e4e69837b3a0bc6d76a41', x'44e7fabba66e4768b07f4a8d7648da55') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4ce99733800e4e69837b3a0bc6d76a41') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ce99733800e4e69837b3a0bc6d76a41' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4ce99733800e4e69837b3a0bc6d76a41', x'28e12bdf03614e13a5a9fcd1dd84e84a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4ce99733800e4e69837b3a0bc6d76a41') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4ce99733800e4e69837b3a0bc6d76a41' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4ce99733800e4e69837b3a0bc6d76a41', x'b8f21ab10e3341eaaacd2d5dfe98e476', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'978eb47b6054422386845103455a53bd', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account978eb47b-6054-4223-8684-5103455a53bd' WHERE `accounts`.`id` = x'978eb47b6054422386845103455a53bd'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_4ce99733-800e-4e69-837b-3a0bc6d76a41_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_4ce99733-800e-4e69-837b-3a0bc6d76a41_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'36dca38e658546fa979d11af67a41380', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account36dca38e-6585-46fa-979d-11af67a41380' WHERE `accounts`.`id` = x'36dca38e658546fa979d11af67a41380'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:02', 'teste@teste.com', '$2a$04$m5ob2OeHJzy6C/MKVLCFBuULGn5IbEaUyUfHFGP1BepR/kKJR7EWe', NULL, x'175dc843fa6b4ae6a46d51f8e880b86d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'175dc843fa6b4ae6a46d51f8e880b86d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:02', 'User', x'42753c0cb1744859bb0b033fe9c9b25c', '9ad888189e75d93e8e6f4b7b6a1db2a2', x'175dc843fa6b4ae6a46d51f8e880b86d', 'User', '2012-12-31 12:46:02') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'175dc843fa6b4ae6a46d51f8e880b86d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'21d977e1c889492f8c62f202ded5f919', NULL, NULL, NULL, '2012-12-31 12:46:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account21d977e1-c889-492f-8c62-f202ded5f919' WHERE `accounts`.`id` = x'21d977e1c889492f8c62f202ded5f919' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'21d977e1c889492f8c62f202ded5f919' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'21d977e1c889492f8c62f202ded5f919', x'38497c353733450eafaa2c2025c71531', x'175dc843fa6b4ae6a46d51f8e880b86d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'38497c353733450eafaa2c2025c71531') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'38497c353733450eafaa2c2025c71531' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'38497c353733450eafaa2c2025c71531', x'd5548a8f37684904a0e5515a0c91251f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'38497c353733450eafaa2c2025c71531') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'38497c353733450eafaa2c2025c71531' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'38497c353733450eafaa2c2025c71531', x'5121a8d26f1b4ce18b8d5b66f0b01852', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890a48dc9_f6180435d48202b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'36dca38e658546fa979d11af67a41380', x'eafb6367b4934525ab86c2e2c2641f41', x'175dc843fa6b4ae6a46d51f8e880b86d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eafb6367b4934525ab86c2e2c2641f41') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eafb6367b4934525ab86c2e2c2641f41' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eafb6367b4934525ab86c2e2c2641f41', x'9f1ed72fea7349939dd3977c8299c872', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eafb6367b4934525ab86c2e2c2641f41') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eafb6367b4934525ab86c2e2c2641f41' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eafb6367b4934525ab86c2e2c2641f41', x'b0a14f0449e5461fbb2c05a916b34bd6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'bd628b87b5854ffcba87afe45c5c9f47', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'accountbd628b87-b585-4ffc-ba87-afe45c5c9f47' WHERE `accounts`.`id` = x'bd628b87b5854ffcba87afe45c5c9f47'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:02', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: eafb6367-b493-4525-ab86-c2e2c2641f41\n', NULL, NULL, NULL, 0, 'account_user_eafb6367-b493-4525-ab86-c2e2c2641f41_destroy', '2012-12-31 12:46:02', '2012-12-31 12:46:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_eafb6367-b493-4525-ab86-c2e2c2641f41_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02' WHERE `delayed_jobs`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_eafb6367-b493-4525-ab86-c2e2c2641f41_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'c01238e3a2624f199db0a2474827d82a', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'accountc01238e3-a262-4f19-9db0-a2474827d82a' WHERE `accounts`.`id` = x'c01238e3a2624f199db0a2474827d82a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'c01238e3a2624f199db0a2474827d82a' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:46:02', 'api token', x'b58e411ea86b414fafcf39d1af0a7f0f', 'bee311d844eb425ca7084b23fca1f774', x'c01238e3a2624f199db0a2474827d82a', 'Account', '2012-12-31 12:46:02')  (0.0ms) RELEASE SAVEPOINT active_record_1 ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY 'bee311d844eb425ca7084b23fca1f774' LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY 'bee311d844eb425ca7084b23fca1f774' LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'26db1092413c458e93cc9256812377f9', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account26db1092-413c-458e-93cc-9256812377f9' WHERE `accounts`.`id` = x'26db1092413c458e93cc9256812377f9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'26db1092413c458e93cc9256812377f9' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:46:02', 'api token', x'2055b38960a942e9b0e65a6b35cabca0', 'aa4cc8704681cb515a84fd8d735f1ada', x'26db1092413c458e93cc9256812377f9', 'Account', '2012-12-31 12:46:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'8cdae28e544a4c12a927948164c9211d', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account8cdae28e-544a-4c12-a927-948164c9211d' WHERE `accounts`.`id` = x'8cdae28e544a4c12a927948164c9211d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'8cdae28e544a4c12a927948164c9211d' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:46:02', 'api token', x'beb6ae145eaf459985ac26540686e0bb', '1b9c5ee578388a58b936c1866267e206', x'8cdae28e544a4c12a927948164c9211d', 'Account', '2012-12-31 12:46:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'023b8b60c5fb419093b1ed494be17203', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account023b8b60-c5fb-4190-93b1-ed494be17203' WHERE `accounts`.`id` = x'023b8b60c5fb419093b1ed494be17203'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'023b8b60c5fb419093b1ed494be17203' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:46:02', 'api token', x'484a3d3d9ad74147b66fd160bfd56eaa', 'd31df7957ee82bab3bb09cbe2315db39', x'023b8b60c5fb419093b1ed494be17203', 'Account', '2012-12-31 12:46:02')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'9799ebd464c744ec93c5a044bee76ad2', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account9799ebd4-64c7-44ec-93c5-a044bee76ad2' WHERE `accounts`.`id` = x'9799ebd464c744ec93c5a044bee76ad2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = x'9799ebd464c744ec93c5a044bee76ad2' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9799ebd464c744ec93c5a044bee76ad2' LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:46:02', 'token 1', x'3c923ed361ac4da58c95179e79973762', '9c69c15894eec7085cde21849cdbe46f', x'9799ebd464c744ec93c5a044bee76ad2', 'Account', '2012-12-31 12:46:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`token` = BINARY '9c69c15894eec7085cde21849cdbe46f' AND `api_tokens`.`id` != x'3c923ed361ac4da58c95179e79973762') LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`id` != x'3c923ed361ac4da58c95179e79973762' AND `api_tokens`.`tokenable_id` = x'9799ebd464c744ec93c5a044bee76ad2' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.0ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = x'9799ebd464c744ec93c5a044bee76ad2' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9799ebd464c744ec93c5a044bee76ad2' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = x'9799ebd464c744ec93c5a044bee76ad2' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'38bbd9b93f754ae090f6623e5384ecbe', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account38bbd9b9-3f75-4ae0-90f6-623e5384ecbe' WHERE `accounts`.`id` = x'38bbd9b93f754ae090f6623e5384ecbe'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'38bbd9b93f754ae090f6623e5384ecbe' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2012-12-31 12:46:02', 'api token', x'0ab9c3433a2840a7989f2184bca923b9', '9b93362add009104cdfe8df9545004fc', x'38bbd9b93f754ae090f6623e5384ecbe', 'Account', '2012-12-31 12:46:02')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:02', '2012-12-31 12:46:02', '', '$2a$04$sy.R6R8DlDVHC4zDNAkJjugj1PvG4lpC3BoB0XEG.XTGR57VBYnWK', NULL, x'494c09f8e3bf400c9b225ba702163c39', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'494c09f8e3bf400c9b225ba702163c39' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:02', 'User', x'c4fe43923e7a4da0a527ace5f097ec26', '6e2c6c9ad1b7bfcdee54c51792904b22', x'494c09f8e3bf400c9b225ba702163c39', 'User', '2012-12-31 12:46:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'494c09f8e3bf400c9b225ba702163c39' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'b3c91b74ed4f437ea907c4cb61c915ae', NULL, NULL, NULL, '2012-12-31 12:46:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'accountb3c91b74-ed4f-437e-a907-c4cb61c915ae' WHERE `accounts`.`id` = x'b3c91b74ed4f437ea907c4cb61c915ae' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b3c91b74ed4f437ea907c4cb61c915ae' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b3c91b74ed4f437ea907c4cb61c915ae', x'469b1a4ef5ec41c59498b8ff254b1577', x'494c09f8e3bf400c9b225ba702163c39') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'469b1a4ef5ec41c59498b8ff254b1577') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'469b1a4ef5ec41c59498b8ff254b1577' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'469b1a4ef5ec41c59498b8ff254b1577', x'ba5b5d3e9c704b3f8eff644791a85e20', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'469b1a4ef5ec41c59498b8ff254b1577') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'469b1a4ef5ec41c59498b8ff254b1577' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'469b1a4ef5ec41c59498b8ff254b1577', x'2d21a031cce34351a8459495b075e6b8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'2f759fca07164acbb537de1e90637654', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = x'494c09f8e3bf400c9b225ba702163c39' WHERE `social_accounts`.`id` = x'2f759fca07164acbb537de1e90637654'  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'494c09f8e3bf400c9b225ba702163c39' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'494c09f8e3bf400c9b225ba702163c39' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'494c09f8e3bf400c9b225ba702163c39' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'494c09f8e3bf400c9b225ba702163c39'  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:02', 'teste@teste.com', '$2a$04$jGwKIL6BkBZcitDvvTbwcuX/yIUAN4vV6yzD3J8WhC9UM1AsoQBSW', NULL, x'4e00f24731af4c2bb1efaa711129a450', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:02') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4e00f24731af4c2bb1efaa711129a450' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:02', 'User', x'34eec75d846349e08b12c6638d40cbe9', '010523a2971b66656a728b87ae96a6c3', x'4e00f24731af4c2bb1efaa711129a450', 'User', '2012-12-31 12:46:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4e00f24731af4c2bb1efaa711129a450' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'f99bac0d53c74d958d587c3c00553081', NULL, NULL, NULL, '2012-12-31 12:46:02')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'accountf99bac0d-53c7-4d95-8d58-7c3c00553081' WHERE `accounts`.`id` = x'f99bac0d53c74d958d587c3c00553081' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f99bac0d53c74d958d587c3c00553081' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f99bac0d53c74d958d587c3c00553081', x'71a0aac50b644a5eac174a45c13894fd', x'4e00f24731af4c2bb1efaa711129a450') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'71a0aac50b644a5eac174a45c13894fd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'71a0aac50b644a5eac174a45c13894fd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'71a0aac50b644a5eac174a45c13894fd', x'25ada2d8e4b24008bcd9d5f89b978128', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'71a0aac50b644a5eac174a45c13894fd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'71a0aac50b644a5eac174a45c13894fd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'71a0aac50b644a5eac174a45c13894fd', x'67045e7790eb43dc9dc4d53c21be6874', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890a952e4_f6180435d48203f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'28d5e305346b40deb210111a9a7d9258', 'twitter', NULL, '123123123', NULL, x'4e00f24731af4c2bb1efaa711129a450')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `users` SET `encrypted_password` = '', `unconfirmed_email` = 'testing@email.test', `updated_at` = '2012-12-31 12:46:02' WHERE `users`.`id` = x'4e00f24731af4c2bb1efaa711129a450' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'x8Zgf5H8fkJC6bSDBxXo' LIMIT 1  (0.3ms) UPDATE `users` SET `encrypted_password` = '', `unconfirmed_email` = 'testing@email.test', `updated_at` = '2012-12-31 12:46:02', `confirmation_token` = 'x8Zgf5H8fkJC6bSDBxXo', `confirmation_sent_at` = '2012-12-31 12:46:02' WHERE `users`.`id` = x'4e00f24731af4c2bb1efaa711129a450' Sent mail to testing@email.test (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: testing@email.test Message-ID: <50e1890a9b6f7_f6180435d48204bb@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome teste@teste.com!

You can confirm your account email through the link below

Confirm my account

 (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'4e00f24731af4c2bb1efaa711129a450'  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:02', 'teste@teste.com', '$2a$04$MY.AQdbfdg/K5MvNj3L5Y.Yd9Tl9XnaPdYqwZ/1OJE5LuF/MsX9vS', NULL, x'bf1e37e0fb15491aa7dd72141da7ebd9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bf1e37e0fb15491aa7dd72141da7ebd9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:02', 'User', x'dd1879ff6ced4c1bb527f557a1a68639', '1dc9bb4c625c86585faaf4d230fe9822', x'bf1e37e0fb15491aa7dd72141da7ebd9', 'User', '2012-12-31 12:46:02') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bf1e37e0fb15491aa7dd72141da7ebd9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'4d2f8126af1b436dbfe3974327322160', NULL, NULL, NULL, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account4d2f8126-af1b-436d-bfe3-974327322160' WHERE `accounts`.`id` = x'4d2f8126af1b436dbfe3974327322160' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d2f8126af1b436dbfe3974327322160' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4d2f8126af1b436dbfe3974327322160', x'66054d500fcf4272a8808528577a7eaf', x'bf1e37e0fb15491aa7dd72141da7ebd9') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'66054d500fcf4272a8808528577a7eaf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66054d500fcf4272a8808528577a7eaf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66054d500fcf4272a8808528577a7eaf', x'2d0c1ad448c748d8b6d3fe938bcdc342', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'66054d500fcf4272a8808528577a7eaf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66054d500fcf4272a8808528577a7eaf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66054d500fcf4272a8808528577a7eaf', x'bc89370c81174a0b9c902a6e9327a8f6', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890aa8017_f6180435d48205c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'd580cd4e05e94dd4934d623dcc8f024a', 'twitter', NULL, '123123123', NULL, x'bf1e37e0fb15491aa7dd72141da7ebd9')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'bf1e37e0fb15491aa7dd72141da7ebd9' User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'testing@email.test' AND `users`.`id` != x'bf1e37e0fb15491aa7dd72141da7ebd9') LIMIT 1  (0.3ms) UPDATE `users` SET `encrypted_password` = '$2a$04$4rk4mJPaYbfhv3cQ01VplOedfrfE96AMoaAlCWH32m9QEdEyY4mwm', `unconfirmed_email` = 'testing@email.test', `updated_at` = '2012-12-31 12:46:02' WHERE `users`.`id` = x'bf1e37e0fb15491aa7dd72141da7ebd9' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'gaH1tARqRwuYxn7RZSER' LIMIT 1  (0.3ms) UPDATE `users` SET `encrypted_password` = '$2a$04$4rk4mJPaYbfhv3cQ01VplOedfrfE96AMoaAlCWH32m9QEdEyY4mwm', `unconfirmed_email` = 'testing@email.test', `updated_at` = '2012-12-31 12:46:02', `confirmation_token` = 'gaH1tARqRwuYxn7RZSER', `confirmation_sent_at` = '2012-12-31 12:46:02' WHERE `users`.`id` = x'bf1e37e0fb15491aa7dd72141da7ebd9' Sent mail to testing@email.test (99ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: testing@email.test Message-ID: <50e1890aafbda_f6180435d4820689@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome teste@teste.com!

You can confirm your account email through the link below

Confirm my account

 (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'bf1e37e0fb15491aa7dd72141da7ebd9'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'd580cd4e05e94dd4934d623dcc8f024a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'2dc58ca0d427491c91647c49d5b2dc52', 'jabanilson', NULL, 1, '2012-12-31 12:46:02')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'account2dc58ca0-d427-491c-9164-7c49d5b2dc52' WHERE `accounts`.`id` = x'2dc58ca0d427491c91647c49d5b2dc52'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:02', 'invited@test.test', '$2a$04$xqgRa3ZkWqqQuSuMNtjPw.WE8w/77wlg7p66YLG64Pe2DEwrp/hFW', NULL, x'ad865ff909f544a2bbe91eed5cc9de82', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ad865ff909f544a2bbe91eed5cc9de82' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:02', 'User', x'797d3af73cdb41b29566fdad55b1616c', '1c136a8b9f21004a8796b14790a4a530', x'ad865ff909f544a2bbe91eed5cc9de82', 'User', '2012-12-31 12:46:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ad865ff909f544a2bbe91eed5cc9de82' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:02', x'b1dfeb1f61d2470a83be142f3bb53c98', NULL, NULL, NULL, '2012-12-31 12:46:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:02', `updated_at` = '2012-12-31 12:46:02', `subdomain` = 'accountb1dfeb1f-61d2-470a-83be-142f3bb53c98' WHERE `accounts`.`id` = x'b1dfeb1f61d2470a83be142f3bb53c98' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b1dfeb1f61d2470a83be142f3bb53c98' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b1dfeb1f61d2470a83be142f3bb53c98', x'406d93ac256f4b48bd1648ee9a57403b', x'ad865ff909f544a2bbe91eed5cc9de82') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'406d93ac256f4b48bd1648ee9a57403b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'406d93ac256f4b48bd1648ee9a57403b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'406d93ac256f4b48bd1648ee9a57403b', x'7d97111a7e47432581141f4e736ad2c6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'406d93ac256f4b48bd1648ee9a57403b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'406d93ac256f4b48bd1648ee9a57403b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'406d93ac256f4b48bd1648ee9a57403b', x'46ec22563f694113a9782e42973c67f6', 'admin') Sent mail to invited@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: invited@test.test Message-ID: <50e1890ad3fb8_f6180435d48207f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2dc58ca0d427491c91647c49d5b2dc52' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2dc58ca0d427491c91647c49d5b2dc52', x'663e49bd29b54f7c9741d1d5e2218406', x'ad865ff909f544a2bbe91eed5cc9de82') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'663e49bd29b54f7c9741d1d5e2218406') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'663e49bd29b54f7c9741d1d5e2218406' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'663e49bd29b54f7c9741d1d5e2218406', x'cf5b2ef4838f435ca30d8eb868b8cc8c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'663e49bd29b54f7c9741d1d5e2218406') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'663e49bd29b54f7c9741d1d5e2218406' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'663e49bd29b54f7c9741d1d5e2218406', x'd28e4b4dde35477fb7b39925387add8c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'2dc58ca0d427491c91647c49d5b2dc52' AND `users`.`email` = 'invited@test.test'  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'9722511e2ceb4b3ca506c9f6e764ea23', NULL, 'user', '2012-12-31 12:46:02', 'HN921HM2p0cduA99w_UyraAc3xU') Sent mail to test@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e1890adec70_f6180435d482085b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9722511e-2ceb-4b3c-a506-c9f6e764ea23HN921HM2p0cduA99w_UyraAc3xU  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'209ad56257704e788e7e81ac8a4a790a', NULL, NULL, '2012-12-31 12:46:02', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e1890ae5c76_f6180435d482098d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/209ad562-5770-4e78-8e7e-81ac8a4a790aoiaa09s1jiUHAS8danja9sja0  (0.1ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'209ad56257704e788e7e81ac8a4a790a' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'42a1460cdf754e0d83d3e123d33009e0', NULL, 'user', '2012-12-31 12:46:02', '1igfS09ODoPhKVd4rnPSkcakq3o') Sent mail to test@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:02 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e1890aed033_f6180435d482104a@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/42a1460c-df75-4e0d-83d3-e123d33009e01igfS09ODoPhKVd4rnPSkcakq3o  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'45d132e814854f24adcb7009a7784c8d', NULL, 'user', '2012-12-31 12:46:02', 'aaRAE_0Z1Cz0gBG-GdsEQDcjlbQ') Sent mail to test@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e1890af3e5d_f6180435d482113a@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/45d132e8-1485-4f24-adcb-7009a7784c8daaRAE_0Z1Cz0gBG-GdsEQDcjlbQ  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'04d2f44294ee41d4b77734601172397e', 'jabanilson', NULL, 1, '2012-12-31 12:46:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account04d2f442-94ee-41d4-b777-34601172397e' WHERE `accounts`.`id` = x'04d2f44294ee41d4b77734601172397e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'04d2f44294ee41d4b77734601172397e' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'04d2f44294ee41d4b77734601172397e', 'teste@teste.teste', x'920ed126ee984ad1bb0e45afd4bb3087', NULL, NULL, '2012-12-31 12:46:03', '3ccNWv1F0btrbt61MmTx2pj0pmQ') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1890b75d7_f6180435d482127c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/920ed126-ee98-4ad1-bb0e-45afd4bb30873ccNWv1F0btrbt61MmTx2pj0pmQ  (0.2ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'920ed126ee984ad1bb0e45afd4bb3087' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'0ee6d40862e444dfbadd3bf80d1c49dc', 'jabanilson', NULL, 1, '2012-12-31 12:46:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account0ee6d408-62e4-44df-badd-3bf80d1c49dc' WHERE `accounts`.`id` = x'0ee6d40862e444dfbadd3bf80d1c49dc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0ee6d40862e444dfbadd3bf80d1c49dc' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'0ee6d40862e444dfbadd3bf80d1c49dc', 'teste@teste.teste', x'408ce316b07b4c25bb922ad0ed1a6ff4', NULL, NULL, '2012-12-31 12:46:03', 'sIrpA8XQMIZYAv_YOqGmKyGHBvE') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1890bfd64_f6180435d4821359@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/408ce316-b07b-4c25-bb92-2ad0ed1a6ff4sIrpA8XQMIZYAv_YOqGmKyGHBvE  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'00000000000000000000000031323338' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'a1870161231343879713d88f743705b4', 'jabanilson', NULL, 1, '2012-12-31 12:46:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'accounta1870161-2313-4387-9713-d88f743705b4' WHERE `accounts`.`id` = x'a1870161231343879713d88f743705b4'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'a1870161231343879713d88f743705b4' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'a1870161231343879713d88f743705b4', 'teste@teste.teste', x'fa8b3324163a45e691e06d73e76fa95b', NULL, NULL, '2012-12-31 12:46:03', 'NMIwLUoltp2qL_HSVCl5JJLRjvE') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1890b17bab_f6180435d4821451@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/fa8b3324-163a-45e6-91e0-6d73e76fa95bNMIwLUoltp2qL_HSVCl5JJLRjvE  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$jHbjjPMavYtBTJG2ZYxsWer1JjOKxjvJPYiOnZ1LQXBFEAu/mV/qq', NULL, x'0575f7b3bc394498b63b507786139653', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0575f7b3bc394498b63b507786139653' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'5b894b9209b541169d6531633289311f', '01fe1345cbbc92ccb961fb5cab40e65b', x'0575f7b3bc394498b63b507786139653', 'User', '2012-12-31 12:46:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0575f7b3bc394498b63b507786139653' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'bbff9327f2034077a7267dcd082c24ae', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'accountbbff9327-f203-4077-a726-7dcd082c24ae' WHERE `accounts`.`id` = x'bbff9327f2034077a7267dcd082c24ae' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bbff9327f2034077a7267dcd082c24ae' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bbff9327f2034077a7267dcd082c24ae', x'44c759de9f50419986ca1df9c0253288', x'0575f7b3bc394498b63b507786139653') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'44c759de9f50419986ca1df9c0253288') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44c759de9f50419986ca1df9c0253288' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44c759de9f50419986ca1df9c0253288', x'effcb740861345c0a585ebee4d739a57', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'44c759de9f50419986ca1df9c0253288') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44c759de9f50419986ca1df9c0253288' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44c759de9f50419986ca1df9c0253288', x'1b8dbb469f47415e9988cd4272e08926', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890b24413_f6180435d482152d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'a1870161231343879713d88f743705b4' AND `users`.`email` = 'teste@teste.teste'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'a1870161231343879713d88f743705b4' AND `account_users`.`user_id` = x'0575f7b3bc394498b63b507786139653'  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a1870161231343879713d88f743705b4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a1870161231343879713d88f743705b4', x'dae468793397417ab6d65ca7270c9c4c', x'0575f7b3bc394498b63b507786139653') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dae468793397417ab6d65ca7270c9c4c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dae468793397417ab6d65ca7270c9c4c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dae468793397417ab6d65ca7270c9c4c', x'2ac0a01186674d84ad2b0ce46dab180e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dae468793397417ab6d65ca7270c9c4c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dae468793397417ab6d65ca7270c9c4c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dae468793397417ab6d65ca7270c9c4c', x'0113f3d9118a49779fbcf60007e02739', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a1870161231343879713d88f743705b4' AND `account_users`.`user_id` = x'0575f7b3bc394498b63b507786139653' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'18e8abd4e7b04267bf7b960004f75a8c', 'jabanilson', NULL, 1, '2012-12-31 12:46:03')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account18e8abd4-e7b0-4267-bf7b-960004f75a8c' WHERE `accounts`.`id` = x'18e8abd4e7b04267bf7b960004f75a8c'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'18e8abd4e7b04267bf7b960004f75a8c' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'18e8abd4e7b04267bf7b960004f75a8c', 'teste@teste.teste', x'f100ad97ae7746b395152f5aa1df2032', NULL, NULL, '2012-12-31 12:46:03', 'eLob-9GV5VTGQ6hgS6FL8PhmgoA') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1890b48382_f6180435d48216fe@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/f100ad97-ae77-46b3-9515-2f5aa1df2032eLob-9GV5VTGQ6hgS6FL8PhmgoA  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$BKceq34uEWABrQOb4dMeR.t4Ors1mSVfUXtxeiUca5oZFONk5EMoi', NULL, x'14deb4131c5544fda6021da701a2525c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'14deb4131c5544fda6021da701a2525c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'a930b48ba02c45d483a3523265cfec23', 'a680d67680465fc8d74821cf514dfaad', x'14deb4131c5544fda6021da701a2525c', 'User', '2012-12-31 12:46:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'14deb4131c5544fda6021da701a2525c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'7a3cedb6423f4931aba82d7316b4433d', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account7a3cedb6-423f-4931-aba8-2d7316b4433d' WHERE `accounts`.`id` = x'7a3cedb6423f4931aba82d7316b4433d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a3cedb6423f4931aba82d7316b4433d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7a3cedb6423f4931aba82d7316b4433d', x'f11b73e2cf1f459da4bcb80dad5cbbba', x'14deb4131c5544fda6021da701a2525c') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f11b73e2cf1f459da4bcb80dad5cbbba') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f11b73e2cf1f459da4bcb80dad5cbbba' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f11b73e2cf1f459da4bcb80dad5cbbba', x'50f723453e244b9eb9d0cc108a039e95', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f11b73e2cf1f459da4bcb80dad5cbbba') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f11b73e2cf1f459da4bcb80dad5cbbba' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f11b73e2cf1f459da4bcb80dad5cbbba', x'5fee6460f6da452bae0351de260ba409', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890b550ee_f6180435d4821749@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'18e8abd4e7b04267bf7b960004f75a8c' AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = x'f100ad97ae7746b395152f5aa1df2032'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'18e8abd4e7b04267bf7b960004f75a8c' AND `account_users`.`user_id` = x'14deb4131c5544fda6021da701a2525c'  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'18e8abd4e7b04267bf7b960004f75a8c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'18e8abd4e7b04267bf7b960004f75a8c', x'3f7dc9e447e94ebd820a5d5ac0040552', x'14deb4131c5544fda6021da701a2525c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3f7dc9e447e94ebd820a5d5ac0040552') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f7dc9e447e94ebd820a5d5ac0040552' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3f7dc9e447e94ebd820a5d5ac0040552', x'4f290b738a844acd973ddec7551f5101', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3f7dc9e447e94ebd820a5d5ac0040552') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f7dc9e447e94ebd820a5d5ac0040552' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3f7dc9e447e94ebd820a5d5ac0040552', x'dd8ee223b4514e00a430d9357435234d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3f7dc9e447e94ebd820a5d5ac0040552'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f7dc9e447e94ebd820a5d5ac0040552' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'dd8ee223b4514e00a430d9357435234d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'3f7dc9e447e94ebd820a5d5ac0040552') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f7dc9e447e94ebd820a5d5ac0040552' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3f7dc9e447e94ebd820a5d5ac0040552', x'c94e7b9345f0489da4e51165bd9c4c09', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'3f7dc9e447e94ebd820a5d5ac0040552') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3f7dc9e447e94ebd820a5d5ac0040552' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3f7dc9e447e94ebd820a5d5ac0040552', x'56bfbd95e71943d7994740eca8dcebd1', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'18e8abd4e7b04267bf7b960004f75a8c' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'18e8abd4e7b04267bf7b960004f75a8c' AND `account_users`.`user_id` = x'14deb4131c5544fda6021da701a2525c' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3f7dc9e447e94ebd820a5d5ac0040552' AND `account_roles`.`name` = 'user' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'18e8abd4e7b04267bf7b960004f75a8c' AND `account_users`.`user_id` = x'14deb4131c5544fda6021da701a2525c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3f7dc9e447e94ebd820a5d5ac0040552' AND `account_roles`.`name` = 'guest' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'8ae48402a26e4e888552773f873b4253', 'jabanilson', NULL, 1, '2012-12-31 12:46:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account8ae48402-a26e-4e88-8552-773f873b4253' WHERE `accounts`.`id` = x'8ae48402a26e4e888552773f873b4253'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'8ae48402a26e4e888552773f873b4253' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'8ae48402a26e4e888552773f873b4253', 'teste@teste.teste', x'cedd4fe0596e4d2eac3453adbe2bc116', NULL, NULL, '2012-12-31 12:46:03', 'JachjVgS5jkJK7POhJfuVtOFoUs') Sent mail to teste@teste.teste (6ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1890b655ea_f6180435d482180@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/cedd4fe0-596e-4d2e-ac34-53adbe2bc116JachjVgS5jkJK7POhJfuVtOFoUs  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$IN58iEtfazmN5pKqgndInODElrcwXPsWXh9lHKuzUNfNUk92J//k.', NULL, x'd60a644adb984a6d935d868ad658cc35', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd60a644adb984a6d935d868ad658cc35' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'a7454588ee4549358f1730777fdba1b9', '069254f6286677908fd976467b952e81', x'd60a644adb984a6d935d868ad658cc35', 'User', '2012-12-31 12:46:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd60a644adb984a6d935d868ad658cc35' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'467cfab273f348289fe615e1bcf1b06b', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account467cfab2-73f3-4828-9fe6-15e1bcf1b06b' WHERE `accounts`.`id` = x'467cfab273f348289fe615e1bcf1b06b' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'467cfab273f348289fe615e1bcf1b06b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'467cfab273f348289fe615e1bcf1b06b', x'c0e9bcb5773b4b66917356657977b6cc', x'd60a644adb984a6d935d868ad658cc35') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c0e9bcb5773b4b66917356657977b6cc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0e9bcb5773b4b66917356657977b6cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0e9bcb5773b4b66917356657977b6cc', x'88015f93456e49ae83b710570292fee8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c0e9bcb5773b4b66917356657977b6cc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0e9bcb5773b4b66917356657977b6cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0e9bcb5773b4b66917356657977b6cc', x'540094872a33442d873028c2c25a401c', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890b711ee_f6180435d482191a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'8ae48402a26e4e888552773f873b4253' AND `users`.`email` = 'teste@teste.teste'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'8ae48402a26e4e888552773f873b4253' AND `account_users`.`user_id` = x'd60a644adb984a6d935d868ad658cc35'  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8ae48402a26e4e888552773f873b4253' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8ae48402a26e4e888552773f873b4253', x'9c3b37d2d9d749c3946e4e13881010fc', x'd60a644adb984a6d935d868ad658cc35') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9c3b37d2d9d749c3946e4e13881010fc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9c3b37d2d9d749c3946e4e13881010fc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9c3b37d2d9d749c3946e4e13881010fc', x'534bd608bcd3498ca57771f98a525e4a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9c3b37d2d9d749c3946e4e13881010fc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9c3b37d2d9d749c3946e4e13881010fc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9c3b37d2d9d749c3946e4e13881010fc', x'05bed48b5c1345508a04f440eb420445', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'd5976abe8ecd4576b72bf937e2543808', 'jabanilson', NULL, 1, '2012-12-31 12:46:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'accountd5976abe-8ecd-4576-b72b-f937e2543808' WHERE `accounts`.`id` = x'd5976abe8ecd4576b72bf937e2543808'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'd5976abe8ecd4576b72bf937e2543808' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'd5976abe8ecd4576b72bf937e2543808', 'teste@teste.teste', x'1c7db42021cb41e9b3b0378b5ec64056', NULL, NULL, '2012-12-31 12:46:03', '-0RbWMDRaFmCsyY_psKUCQbTWWM') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1890b7cc14_f6180435d4822033@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1c7db420-21cb-41e9-b3b0-378b5ec64056-0RbWMDRaFmCsyY_psKUCQbTWWM  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$iLRyapFW3QPhxIZbXDogy.5UETgmpea.oX1CtzoBpohimERT8Sfg2', NULL, x'e59adebf888d4882837f22851226501a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e59adebf888d4882837f22851226501a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'02ce682837fc4b8687281b3b325be723', 'e8217e88942e9c848158938ab000b3dc', x'e59adebf888d4882837f22851226501a', 'User', '2012-12-31 12:46:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e59adebf888d4882837f22851226501a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'b57017f7373f44caa7af96d8661f3951', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'accountb57017f7-373f-44ca-a7af-96d8661f3951' WHERE `accounts`.`id` = x'b57017f7373f44caa7af96d8661f3951' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b57017f7373f44caa7af96d8661f3951' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b57017f7373f44caa7af96d8661f3951', x'efdd5364587647dbbedbfd8a406d7b20', x'e59adebf888d4882837f22851226501a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'efdd5364587647dbbedbfd8a406d7b20') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efdd5364587647dbbedbfd8a406d7b20' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efdd5364587647dbbedbfd8a406d7b20', x'a15f358b200e4d97be7fdfe6451c88a2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'efdd5364587647dbbedbfd8a406d7b20') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efdd5364587647dbbedbfd8a406d7b20' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efdd5364587647dbbedbfd8a406d7b20', x'b3c08859119e4083977237e4effbea06', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890b89514_f6180435d48221b7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'd5976abe8ecd4576b72bf937e2543808' AND `users`.`email` = 'teste@teste.teste'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd5976abe8ecd4576b72bf937e2543808' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd5976abe8ecd4576b72bf937e2543808', x'93ca6e6063f747abbea3c27bfa4bb3e2', x'e59adebf888d4882837f22851226501a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'93ca6e6063f747abbea3c27bfa4bb3e2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'93ca6e6063f747abbea3c27bfa4bb3e2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'93ca6e6063f747abbea3c27bfa4bb3e2', x'2d235598e68a4457abf55ec5d7778f9b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'93ca6e6063f747abbea3c27bfa4bb3e2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'93ca6e6063f747abbea3c27bfa4bb3e2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'93ca6e6063f747abbea3c27bfa4bb3e2', x'b17640ceffd0440798d5090251812090', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'd5976abe8ecd4576b72bf937e2543808' AND `account_users`.`user_id` = x'e59adebf888d4882837f22851226501a'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$b.WFwG8bbAXMgb20/lTrvu/svOsn7NTaYDRqgDQcqV2W3Vu9NyXRS', NULL, x'b9c200f2daf5433ea111798e4549a56a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b9c200f2daf5433ea111798e4549a56a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'1709714441bd49c5b6b49860ef1cba45', 'd3d9bcb8b8e41f3fd2071061622fab01', x'b9c200f2daf5433ea111798e4549a56a', 'User', '2012-12-31 12:46:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b9c200f2daf5433ea111798e4549a56a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'c46be4539f3e4636a4abdc291071b7ef', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'accountc46be453-9f3e-4636-a4ab-dc291071b7ef' WHERE `accounts`.`id` = x'c46be4539f3e4636a4abdc291071b7ef' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c46be4539f3e4636a4abdc291071b7ef' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c46be4539f3e4636a4abdc291071b7ef', x'39530ac12861407898f927aeace07611', x'b9c200f2daf5433ea111798e4549a56a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'39530ac12861407898f927aeace07611') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'39530ac12861407898f927aeace07611' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'39530ac12861407898f927aeace07611', x'1a9798e819a34c03bf3226e472a76278', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'39530ac12861407898f927aeace07611') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'39530ac12861407898f927aeace07611' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'39530ac12861407898f927aeace07611', x'c1e19a5a92d34021bf80f8a8b93478ee', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890bb1c01_f6180435d48222c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$lzSlpB9iJcqXtldUIwQPWOq.g5mdSOfw7S2XlQkXJmqZE/3b.s8y6', NULL, x'f2e29d845ebf4e6bbe5445e31ef201d9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f2e29d845ebf4e6bbe5445e31ef201d9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'71b9923c749a4b339a8b9574235f7d02', '6a9a555793322198e2e8d80425c9ef8f', x'f2e29d845ebf4e6bbe5445e31ef201d9', 'User', '2012-12-31 12:46:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f2e29d845ebf4e6bbe5445e31ef201d9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'54aa899bd29f476aa92b832adaaad5d8', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account54aa899b-d29f-476a-a92b-832adaaad5d8' WHERE `accounts`.`id` = x'54aa899bd29f476aa92b832adaaad5d8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'54aa899bd29f476aa92b832adaaad5d8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'54aa899bd29f476aa92b832adaaad5d8', x'3590393e226045a0b7ef2378d6a53527', x'f2e29d845ebf4e6bbe5445e31ef201d9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3590393e226045a0b7ef2378d6a53527') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3590393e226045a0b7ef2378d6a53527' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3590393e226045a0b7ef2378d6a53527', x'65cdad4c09434733b8b2bedb27aa2bb0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3590393e226045a0b7ef2378d6a53527') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3590393e226045a0b7ef2378d6a53527' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3590393e226045a0b7ef2378d6a53527', x'a495f8cdd5534b728e69261b664b49f8', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890bbe3a0_f6180435d482235d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$YvWkRCc6mxNKQ60gmoKIKeCGVzoOdSNkYM6QN7/yZTDnOCiBldXnu', NULL, x'37f551c688144f12bcf815547ff9b595', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'37f551c688144f12bcf815547ff9b595' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'aefd84f68dc14d949d3644446f506571', '82f93ab024247548da2a0dec8192486d', x'37f551c688144f12bcf815547ff9b595', 'User', '2012-12-31 12:46:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'37f551c688144f12bcf815547ff9b595' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'ef6f219058ec4577a523b4a4f605a1f3', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'accountef6f2190-58ec-4577-a523-b4a4f605a1f3' WHERE `accounts`.`id` = x'ef6f219058ec4577a523b4a4f605a1f3' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ef6f219058ec4577a523b4a4f605a1f3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ef6f219058ec4577a523b4a4f605a1f3', x'4d1e2de3363a4500a4ef4112123c5ce1', x'37f551c688144f12bcf815547ff9b595') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4d1e2de3363a4500a4ef4112123c5ce1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d1e2de3363a4500a4ef4112123c5ce1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4d1e2de3363a4500a4ef4112123c5ce1', x'49952e5b06a6431ebbebf69faecd10ec', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4d1e2de3363a4500a4ef4112123c5ce1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d1e2de3363a4500a4ef4112123c5ce1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4d1e2de3363a4500a4ef4112123c5ce1', x'8cc026c8bed44174bac677cd61e32eba', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890bcb792_f6180435d48224a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$7wtNTp/XaLujFoOgtvEoO.zTXh4ADIthcjVYVr2asTxwrqknnzkl.', NULL, x'1506fe53d1a842fe8804dbbe67d1815a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1506fe53d1a842fe8804dbbe67d1815a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'13735be444d34f5680babb3597e91331', '40f68138fd50580af3b57813e148398e', x'1506fe53d1a842fe8804dbbe67d1815a', 'User', '2012-12-31 12:46:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1506fe53d1a842fe8804dbbe67d1815a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'eb4babf1f7c94f2cba196d219372329f', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'accounteb4babf1-f7c9-4f2c-ba19-6d219372329f' WHERE `accounts`.`id` = x'eb4babf1f7c94f2cba196d219372329f' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eb4babf1f7c94f2cba196d219372329f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eb4babf1f7c94f2cba196d219372329f', x'4304224a6d7d4555822927cc170d0427', x'1506fe53d1a842fe8804dbbe67d1815a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4304224a6d7d4555822927cc170d0427') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4304224a6d7d4555822927cc170d0427' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4304224a6d7d4555822927cc170d0427', x'fdd0ab2960384f4e8ae643a45e9d8448', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4304224a6d7d4555822927cc170d0427') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4304224a6d7d4555822927cc170d0427' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4304224a6d7d4555822927cc170d0427', x'4d8af0d1694547d1933983c7d9946eba', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890bd7e17_f6180435d48225a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1506fe53d1a842fe8804dbbe67d1815a'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$oE72dusCgUUCIFvzlU3SAOi4LEVnR9FKD/UK3nnERKJ3QCF6PmzVu', NULL, x'ea448d1b11fd441e988d3e5c31e5430d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ea448d1b11fd441e988d3e5c31e5430d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'3469f466cc8a4f57b24a5c893c0f466b', 'e66946c88f5e0295af5326d67d7f2b99', x'ea448d1b11fd441e988d3e5c31e5430d', 'User', '2012-12-31 12:46:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ea448d1b11fd441e988d3e5c31e5430d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'89d17edd187b417caff152f0060a18ec', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account89d17edd-187b-417c-aff1-52f0060a18ec' WHERE `accounts`.`id` = x'89d17edd187b417caff152f0060a18ec' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'89d17edd187b417caff152f0060a18ec' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'89d17edd187b417caff152f0060a18ec', x'fa7b1e85759a40338c214f837f5e9113', x'ea448d1b11fd441e988d3e5c31e5430d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fa7b1e85759a40338c214f837f5e9113') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fa7b1e85759a40338c214f837f5e9113' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fa7b1e85759a40338c214f837f5e9113', x'23634f0c47244a95a382d5c582acdbbb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fa7b1e85759a40338c214f837f5e9113') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fa7b1e85759a40338c214f837f5e9113' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fa7b1e85759a40338c214f837f5e9113', x'880c912063da461da426f3727e385b2f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:03 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890be6132_f6180435d48226e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:03', 'teste@teste.com', '$2a$04$vOUP1MBkQQMiho1Y3FOhbevS3UwGzHVZG/EYlcAX9syioyM.WfW.W', NULL, x'942e076a8347466ab6d1d0edb1e72f61', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'942e076a8347466ab6d1d0edb1e72f61' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:03', 'User', x'618d61c142ac418da4359a23e4eac00b', '6ad5886635b715c37f1165d6d463d6aa', x'942e076a8347466ab6d1d0edb1e72f61', 'User', '2012-12-31 12:46:03') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'942e076a8347466ab6d1d0edb1e72f61' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:03', x'2129230e191f415bab8ae72ad817d552', NULL, NULL, NULL, '2012-12-31 12:46:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:03', `updated_at` = '2012-12-31 12:46:03', `subdomain` = 'account2129230e-191f-415b-ab8a-e72ad817d552' WHERE `accounts`.`id` = x'2129230e191f415bab8ae72ad817d552' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2129230e191f415bab8ae72ad817d552' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2129230e191f415bab8ae72ad817d552', x'1c533b34a2a7415d8b6918015e1b4bcc', x'942e076a8347466ab6d1d0edb1e72f61') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1c533b34a2a7415d8b6918015e1b4bcc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1c533b34a2a7415d8b6918015e1b4bcc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1c533b34a2a7415d8b6918015e1b4bcc', x'a7723ef8b099416c871f8f6a6f3e3165', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1c533b34a2a7415d8b6918015e1b4bcc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1c533b34a2a7415d8b6918015e1b4bcc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1c533b34a2a7415d8b6918015e1b4bcc', x'cffe73dd274e4b98b229aa32fdec8cdc', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890c16f4d_f6180435d48227a1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:04', 'account1@before.destroy', '$2a$04$YQiJSLxQ2HVnTPigUoqAfe/QGe9gxRnbd.tk8qD22nPUlWD9OY7kK', NULL, x'c95fcc896c9a405799a6f125892d0b2c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c95fcc896c9a405799a6f125892d0b2c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'6e9d4a0e009f49458912c0144aeeb994', '60397738ae4047e72411e24835713012', x'c95fcc896c9a405799a6f125892d0b2c', 'User', '2012-12-31 12:46:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c95fcc896c9a405799a6f125892d0b2c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'036ac531e26342108ee0caa05e281934', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'account036ac531-e263-4210-8ee0-caa05e281934' WHERE `accounts`.`id` = x'036ac531e26342108ee0caa05e281934' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'036ac531e26342108ee0caa05e281934' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'036ac531e26342108ee0caa05e281934', x'cc8f3014ad794ab08af6ce90e0c9373b', x'c95fcc896c9a405799a6f125892d0b2c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cc8f3014ad794ab08af6ce90e0c9373b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc8f3014ad794ab08af6ce90e0c9373b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc8f3014ad794ab08af6ce90e0c9373b', x'b3a53c61baf24acc9c0c1fe89c1ecf54', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cc8f3014ad794ab08af6ce90e0c9373b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc8f3014ad794ab08af6ce90e0c9373b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc8f3014ad794ab08af6ce90e0c9373b', x'79e08acafd014456ac46a0e4f7cf9ccb', 'admin') Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1890c234bc_f6180435d48228ef@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c95fcc896c9a405799a6f125892d0b2c' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyUserJob\nid: c95fcc89-6c9a-4057-99a6-f125892d0b2c\n', NULL, NULL, NULL, 0, 'user_c95fcc89-6c9a-4057-99a6-f125892d0b2c_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_c95fcc89-6c9a-4057-99a6-f125892d0b2c_destroy' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c95fcc896c9a405799a6f125892d0b2c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c95fcc896c9a405799a6f125892d0b2c' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: cc8f3014-ad79-4ab0-8af6-ce90e0c9373b\n', NULL, NULL, NULL, 0, 'account_user_cc8f3014-ad79-4ab0-8af6-ce90e0c9373b_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c95fcc896c9a405799a6f125892d0b2c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c95fcc896c9a405799a6f125892d0b2c'  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'036ac531e26342108ee0caa05e281934' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 036ac531-e263-4210-8ee0-caa05e281934\n', NULL, NULL, NULL, 0, 'account_036ac531-e263-4210-8ee0-caa05e281934_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = x'c95fcc896c9a405799a6f125892d0b2c'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_036ac531-e263-4210-8ee0-caa05e281934_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:04', 'account1@before.destroy', '$2a$04$IjCQK8M7slTNPwz0DSjAJuJ6KC3gzAG94tUP.EcafwDFh1zbZrMem', NULL, x'7fa6e4783baf4663b8cbdfeaca91ad1e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'531cc12495b64b3c89c2aaa49ff784f4', 'd6de725fcbc78034ebbe1874629779a1', x'7fa6e4783baf4663b8cbdfeaca91ad1e', 'User', '2012-12-31 12:46:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'bed3616f602b4e9bb820ffd25d045721', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'accountbed3616f-602b-4e9b-b820-ffd25d045721' WHERE `accounts`.`id` = x'bed3616f602b4e9bb820ffd25d045721' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bed3616f602b4e9bb820ffd25d045721' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bed3616f602b4e9bb820ffd25d045721', x'10bbaf2559cb42999e4dac11e0399182', x'7fa6e4783baf4663b8cbdfeaca91ad1e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'10bbaf2559cb42999e4dac11e0399182') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10bbaf2559cb42999e4dac11e0399182' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10bbaf2559cb42999e4dac11e0399182', x'b61733ce83794b2284621fb2718875c4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'10bbaf2559cb42999e4dac11e0399182') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10bbaf2559cb42999e4dac11e0399182' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10bbaf2559cb42999e4dac11e0399182', x'e767c4e25bb94a9e8374cff64aa50ef5', 'admin') Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1890c36883_f6180435d4822982@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'f4d1f69415d24e88829f6cef8cb3e8ed', 'jabanilson', NULL, 1, '2012-12-31 12:46:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'accountf4d1f694-15d2-4e88-829f-6cef8cb3e8ed' WHERE `accounts`.`id` = x'f4d1f69415d24e88829f6cef8cb3e8ed'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f4d1f69415d24e88829f6cef8cb3e8ed', x'1b454d33c0e642bfa1a8e836a14ff7bf', x'7fa6e4783baf4663b8cbdfeaca91ad1e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1b454d33c0e642bfa1a8e836a14ff7bf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b454d33c0e642bfa1a8e836a14ff7bf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b454d33c0e642bfa1a8e836a14ff7bf', x'd06034952c4940788a85e04215ff5ca7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1b454d33c0e642bfa1a8e836a14ff7bf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b454d33c0e642bfa1a8e836a14ff7bf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b454d33c0e642bfa1a8e836a14ff7bf', x'0eb11a4e61e449a28360461d9c907332', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyUserJob\nid: 7fa6e478-3baf-4663-b8cb-dfeaca91ad1e\n', NULL, NULL, NULL, 0, 'user_7fa6e478-3baf-4663-b8cb-dfeaca91ad1e_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7fa6e478-3baf-4663-b8cb-dfeaca91ad1e_destroy' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 10bbaf25-59cb-4299-9e4d-ac11e0399182\n', NULL, NULL, NULL, 0, 'account_user_10bbaf25-59cb-4299-9e4d-ac11e0399182_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04') SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 1b454d33-c0e6-42bf-a1a8-e836a14ff7bf\n', NULL, NULL, NULL, 0, 'account_user_1b454d33-c0e6-42bf-a1a8-e836a14ff7bf_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e'  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'bed3616f602b4e9bb820ffd25d045721' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyAccountJob\nid: bed3616f-602b-4e9b-b820-ffd25d045721\n', NULL, NULL, NULL, 0, 'account_bed3616f-602b-4e9b-b820-ffd25d045721_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04')  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'f4d1f69415d24e88829f6cef8cb3e8ed' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyAccountJob\nid: f4d1f694-15d2-4e88-829f-6cef8cb3e8ed\n', NULL, NULL, NULL, 0, 'account_f4d1f694-15d2-4e88-829f-6cef8cb3e8ed_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04') SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = x'7fa6e4783baf4663b8cbdfeaca91ad1e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f4d1f694-15d2-4e88-829f-6cef8cb3e8ed_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:04', 'account1@before.destroy', '$2a$04$2LoFhEIVueDqsg4nd8uBReRe4Hu4cMa.sFwdh1XOMKd5vaxG.M9e6', NULL, x'51201875ea564235967c654be89f14e6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'51201875ea564235967c654be89f14e6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'2d2dacfe92a24a07bfb582fc41febd4e', 'e1aced704d341c63f95046a6bb334ed9', x'51201875ea564235967c654be89f14e6', 'User', '2012-12-31 12:46:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'51201875ea564235967c654be89f14e6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'eddb377f4403481dab82da5ecf1ce659', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'accounteddb377f-4403-481d-ab82-da5ecf1ce659' WHERE `accounts`.`id` = x'eddb377f4403481dab82da5ecf1ce659' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eddb377f4403481dab82da5ecf1ce659' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eddb377f4403481dab82da5ecf1ce659', x'dbdef3c5cbef4981a92a1c252c989d86', x'51201875ea564235967c654be89f14e6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dbdef3c5cbef4981a92a1c252c989d86') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dbdef3c5cbef4981a92a1c252c989d86' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dbdef3c5cbef4981a92a1c252c989d86', x'dd7932a928e4460da7e9193e884a787d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dbdef3c5cbef4981a92a1c252c989d86') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dbdef3c5cbef4981a92a1c252c989d86' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dbdef3c5cbef4981a92a1c252c989d86', x'0a5f37bf4863497d995dfa39ba6a7fef', 'admin') Sent mail to account1@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: account1@before.destroy Message-ID: <50e1890c502b7_f6180435d4823057@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51201875ea564235967c654be89f14e6' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:04', 'account2@before.destroy', '$2a$04$CMdDhkrlKidV/H3W.UR.2OVgrHXnXsUl9hsbqWnS.sFsOhRNbKewi', NULL, x'4e28d97103f1435c8d95bc85f54a71bb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4e28d97103f1435c8d95bc85f54a71bb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'4e92e859f9ca4d2cbcf4afc065a154cd', 'f5594321c6cc8504b93426070d888f4f', x'4e28d97103f1435c8d95bc85f54a71bb', 'User', '2012-12-31 12:46:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4e28d97103f1435c8d95bc85f54a71bb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'b70724c8a78f477294b9164fe794dab7', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'accountb70724c8-a78f-4772-94b9-164fe794dab7' WHERE `accounts`.`id` = x'b70724c8a78f477294b9164fe794dab7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b70724c8a78f477294b9164fe794dab7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b70724c8a78f477294b9164fe794dab7', x'cfb9101cf9024bb6a099601104f22775', x'4e28d97103f1435c8d95bc85f54a71bb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cfb9101cf9024bb6a099601104f22775') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfb9101cf9024bb6a099601104f22775' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfb9101cf9024bb6a099601104f22775', x'f95ec9ddece64e3ca3de0c3d110cb6c3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cfb9101cf9024bb6a099601104f22775') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfb9101cf9024bb6a099601104f22775' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfb9101cf9024bb6a099601104f22775', x'b3b8ed7245d641f7bfa9122f5db89516', 'admin') Sent mail to account2@before.destroy (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: account2@before.destroy Message-ID: <50e1890c5bfa8_f6180435d4823172@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eddb377f4403481dab82da5ecf1ce659' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eddb377f4403481dab82da5ecf1ce659', x'4779b780fc2e426c90fd568ec61a6c5f', x'4e28d97103f1435c8d95bc85f54a71bb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4779b780fc2e426c90fd568ec61a6c5f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4779b780fc2e426c90fd568ec61a6c5f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4779b780fc2e426c90fd568ec61a6c5f', x'0fc1600cc674413aa821f56c1bbea7e9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4779b780fc2e426c90fd568ec61a6c5f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4779b780fc2e426c90fd568ec61a6c5f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4779b780fc2e426c90fd568ec61a6c5f', x'68982923cbf74ae2b340e537a29e2915', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyUserJob\nid: 51201875-ea56-4235-967c-654be89f14e6\n', NULL, NULL, NULL, 0, 'user_51201875-ea56-4235-967c-654be89f14e6_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_51201875-ea56-4235-967c-654be89f14e6_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'51201875ea564235967c654be89f14e6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'51201875ea564235967c654be89f14e6' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: dbdef3c5-cbef-4981-a92a-1c252c989d86\n', NULL, NULL, NULL, 0, 'account_user_dbdef3c5-cbef-4981-a92a-1c252c989d86_destroy', '2012-12-31 12:46:04', '2012-12-31 12:46:04') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'51201875ea564235967c654be89f14e6' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51201875ea564235967c654be89f14e6'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'eddb377f4403481dab82da5ecf1ce659' SQL (0.3ms) DELETE FROM `users` WHERE `users`.`id` = x'51201875ea564235967c654be89f14e6'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_eddb377f-4403-481d-ab82-da5ecf1ce659_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:04', '2012-12-31 12:46:04', '', '', 1, x'2d0d487c3bbe4c30af2d5af885a4ef26', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2d0d487c3bbe4c30af2d5af885a4ef26' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'1c9e1a175e954a4295d2cef2f5c93887', 'a794f8a3c3e293958c950b9257dcb09b', x'2d0d487c3bbe4c30af2d5af885a4ef26', 'User', '2012-12-31 12:46:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2d0d487c3bbe4c30af2d5af885a4ef26' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'68ad4ec3659e4914a0696f9112860b1e', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'account68ad4ec3-659e-4914-a069-6f9112860b1e' WHERE `accounts`.`id` = x'68ad4ec3659e4914a0696f9112860b1e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68ad4ec3659e4914a0696f9112860b1e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'68ad4ec3659e4914a0696f9112860b1e', x'95ec6efa2e7e4e419bd7e4c72e08df32', x'2d0d487c3bbe4c30af2d5af885a4ef26') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'95ec6efa2e7e4e419bd7e4c72e08df32') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95ec6efa2e7e4e419bd7e4c72e08df32' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95ec6efa2e7e4e419bd7e4c72e08df32', x'f46958c71a6c4ecbaa5b5e5fcbfe6090', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'95ec6efa2e7e4e419bd7e4c72e08df32') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95ec6efa2e7e4e419bd7e4c72e08df32' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95ec6efa2e7e4e419bd7e4c72e08df32', x'98f1498cc8a8400db5d1c4008b9715c7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyUserJob\nid: 2d0d487c-3bbe-4c30-af2d-5af885a4ef26\n', NULL, NULL, NULL, 0, 'guest_2d0d487c-3bbe-4c30-af2d-5af885a4ef26_destroy', '2013-01-07 12:46:04', '2012-12-31 12:46:04')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2d0d487c3bbe4c30af2d5af885a4ef26' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != x'2d0d487c3bbe4c30af2d5af885a4ef26') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$wD144dCjz4kuilcswyY6UOE.FFhoT84WX0MNX7bqtXgwpQuSBwiXG', `unconfirmed_email` = 'regular@user.now', `updated_at` = '2012-12-31 12:46:04' WHERE `users`.`id` = x'2d0d487c3bbe4c30af2d5af885a4ef26' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '6qSXpcxUxuxuxYqsicC1' LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$wD144dCjz4kuilcswyY6UOE.FFhoT84WX0MNX7bqtXgwpQuSBwiXG', `unconfirmed_email` = 'regular@user.now', `updated_at` = '2012-12-31 12:46:04', `confirmation_token` = '6qSXpcxUxuxuxYqsicC1', `confirmation_sent_at` = '2012-12-31 12:46:04' WHERE `users`.`id` = x'2d0d487c3bbe4c30af2d5af885a4ef26' Sent mail to regular@user.now (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: regular@user.now Message-ID: <50e1890c8b188_f6180435d48232a4@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_2d0d487c-3bbe-4c30-af2d-5af885a4ef26_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:04', '2012-12-31 12:46:04', '', '', 1, x'b19ae0f5a7a34ae4b37e981f6789ca16', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b19ae0f5a7a34ae4b37e981f6789ca16' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'd8450da72ea84e94b648a9b6ecacac77', '9477329cf6383bc140b3a11c239a451e', x'b19ae0f5a7a34ae4b37e981f6789ca16', 'User', '2012-12-31 12:46:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b19ae0f5a7a34ae4b37e981f6789ca16' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'155ba8a70d014f658213e41f208fe017', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'account155ba8a7-0d01-4f65-8213-e41f208fe017' WHERE `accounts`.`id` = x'155ba8a70d014f658213e41f208fe017' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'155ba8a70d014f658213e41f208fe017' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'155ba8a70d014f658213e41f208fe017', x'e4a7859f02034bee9ee0e48c7969abf6', x'b19ae0f5a7a34ae4b37e981f6789ca16') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e4a7859f02034bee9ee0e48c7969abf6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e4a7859f02034bee9ee0e48c7969abf6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e4a7859f02034bee9ee0e48c7969abf6', x'c74a7896a5a4453fbdc78ea285cd3ba5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e4a7859f02034bee9ee0e48c7969abf6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e4a7859f02034bee9ee0e48c7969abf6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e4a7859f02034bee9ee0e48c7969abf6', x'9d36ecc1238243cd90031cc9b753bb3b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyUserJob\nid: b19ae0f5-a7a3-4ae4-b37e-981f6789ca16\n', NULL, NULL, NULL, 0, 'guest_b19ae0f5-a7a3-4ae4-b37e-981f6789ca16_destroy', '2013-01-07 12:46:04', '2012-12-31 12:46:04')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b19ae0f5a7a34ae4b37e981f6789ca16' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != x'b19ae0f5a7a34ae4b37e981f6789ca16') LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:04', '2012-12-31 12:46:04', '', '', 1, x'97c41b88650c4663b3982c938dd6795e', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'97c41b88650c4663b3982c938dd6795e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'e53d24f5f1d742458ad178ff5f382a05', 'da965031ae2cc4a392e629006f5a52b9', x'97c41b88650c4663b3982c938dd6795e', 'User', '2012-12-31 12:46:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'97c41b88650c4663b3982c938dd6795e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'672bfe2c652f4057a436915444aedd22', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'account672bfe2c-652f-4057-a436-915444aedd22' WHERE `accounts`.`id` = x'672bfe2c652f4057a436915444aedd22' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'672bfe2c652f4057a436915444aedd22' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'672bfe2c652f4057a436915444aedd22', x'747e55add2434dc8920c9025624827eb', x'97c41b88650c4663b3982c938dd6795e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'747e55add2434dc8920c9025624827eb') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'747e55add2434dc8920c9025624827eb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'747e55add2434dc8920c9025624827eb', x'a61c591122d54fa5a3e6dbe8bb101b0e', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'747e55add2434dc8920c9025624827eb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'747e55add2434dc8920c9025624827eb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'747e55add2434dc8920c9025624827eb', x'deb599869c144627909d8b2411bb45f6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:04', NULL, '--- !ruby/struct:DestroyUserJob\nid: 97c41b88-650c-4663-b398-2c938dd6795e\n', NULL, NULL, NULL, 0, 'guest_97c41b88-650c-4663-b398-2c938dd6795e_destroy', '2013-01-07 12:46:04', '2012-12-31 12:46:04')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'97c41b88650c4663b3982c938dd6795e'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = '6dy9eDYMaE2VMk6U4LiR' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-12-31 12:46:04', '6dy9eDYMaE2VMk6U4LiR', '2012-12-31 12:46:04', '2012-12-31 12:46:04', 'confirmation@skip.test', '$2a$04$kZETRpgW90L/OJRUhTwNFuJaXkg3z8oAo9RfbAD2AYcHwZyqob/Tq', NULL, x'f658b35c327b4f1391be0fba118e1dc7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f658b35c327b4f1391be0fba118e1dc7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'9e4d9b22acf94bf9afd66d2a694f3707', '544ac545d58f8a04ec8a2d848829936f', x'f658b35c327b4f1391be0fba118e1dc7', 'User', '2012-12-31 12:46:04') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f658b35c327b4f1391be0fba118e1dc7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'168529551cfa47929210ebc5b81fac13', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'account16852955-1cfa-4792-9210-ebc5b81fac13' WHERE `accounts`.`id` = x'168529551cfa47929210ebc5b81fac13' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'168529551cfa47929210ebc5b81fac13' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'168529551cfa47929210ebc5b81fac13', x'59349f526ac5479096b8f0fe95c98578', x'f658b35c327b4f1391be0fba118e1dc7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'59349f526ac5479096b8f0fe95c98578') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'59349f526ac5479096b8f0fe95c98578' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'59349f526ac5479096b8f0fe95c98578', x'aa6f121a9c134faeb7474415bae3ab32', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'59349f526ac5479096b8f0fe95c98578') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'59349f526ac5479096b8f0fe95c98578' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'59349f526ac5479096b8f0fe95c98578', x'5c948270f8534869ba0c27e418eab60f', 'admin') Sent mail to confirmation@skip.test (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: confirmation@skip.test Message-ID: <50e1890cab586_f6180435d48233b8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'MJ2dgaRy8VsDLvhygq12' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-12-31 12:46:04', 'MJ2dgaRy8VsDLvhygq12', NULL, '2012-12-31 12:46:04', 'confirmation@needed.test', '$2a$04$Fva/CUxWGai0LL6OkfX68./v9Dwcg7Eo9Yr.lqQ0C3yVlbYvAoEGK', NULL, x'03f1a24426f045a69995f37e5f36591d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') Sent mail to confirmation@needed.test (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50e1890cb2f64_f6180435d48234be@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'03f1a24426f045a69995f37e5f36591d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'0a0cc0078b7d4e25b13ff682ea4190d6', '04a0a9c47f386cf4c6f981fb28d0e9aa', x'03f1a24426f045a69995f37e5f36591d', 'User', '2012-12-31 12:46:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'03f1a24426f045a69995f37e5f36591d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'039e6932b5054a73938a6f11ed3290ec', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'account039e6932-b505-4a73-938a-6f11ed3290ec' WHERE `accounts`.`id` = x'039e6932b5054a73938a6f11ed3290ec' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'039e6932b5054a73938a6f11ed3290ec' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'039e6932b5054a73938a6f11ed3290ec', x'01a1bc967f754ee08a2e5ee788a2db05', x'03f1a24426f045a69995f37e5f36591d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'01a1bc967f754ee08a2e5ee788a2db05') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01a1bc967f754ee08a2e5ee788a2db05' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01a1bc967f754ee08a2e5ee788a2db05', x'fbb62d1ad0694eaa841e4c9427b3a670', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'01a1bc967f754ee08a2e5ee788a2db05') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01a1bc967f754ee08a2e5ee788a2db05' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01a1bc967f754ee08a2e5ee788a2db05', x'33a797b6dadf45948a4fd481e7cd4a88', 'admin') Sent mail to confirmation@needed.test (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: confirmation@needed.test Message-ID: <50e1890cbd108_f6180435d4823522@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'pZr2HpsJDsPDTELusugP' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-12-31 12:46:04', 'pZr2HpsJDsPDTELusugP', NULL, '2012-12-31 12:46:04', 'reconfirmation@needed.test', '$2a$04$WDGgLo07gHWOC7W.DfrHfuOMW5dTy9o1O0.lQj/NSNHOmnzaWen4i', NULL, x'617585208ab64c22a4a5ff1ce71cb6fc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') Sent mail to reconfirmation@needed.test (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50e1890cc45a3_f6180435d4823677@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'617585208ab64c22a4a5ff1ce71cb6fc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:04', 'User', x'5933b45ea94d4e2eb2fe66dec214cf76', '7665f5f4e1410011de91e0b3c80d671f', x'617585208ab64c22a4a5ff1ce71cb6fc', 'User', '2012-12-31 12:46:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'617585208ab64c22a4a5ff1ce71cb6fc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:04', x'7558d3c395274153a866f2b1798a2bab', NULL, NULL, NULL, '2012-12-31 12:46:04')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:04', `updated_at` = '2012-12-31 12:46:04', `subdomain` = 'account7558d3c3-9527-4153-a866-f2b1798a2bab' WHERE `accounts`.`id` = x'7558d3c395274153a866f2b1798a2bab' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7558d3c395274153a866f2b1798a2bab' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7558d3c395274153a866f2b1798a2bab', x'67921f89f7ec483f80324e5ac3f211dc', x'617585208ab64c22a4a5ff1ce71cb6fc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'67921f89f7ec483f80324e5ac3f211dc') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'67921f89f7ec483f80324e5ac3f211dc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'67921f89f7ec483f80324e5ac3f211dc', x'7fd4053f822f426da5796164facf0822', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'67921f89f7ec483f80324e5ac3f211dc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'67921f89f7ec483f80324e5ac3f211dc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'67921f89f7ec483f80324e5ac3f211dc', x'ffcbc7b48a3a4b1ca5b10fa2a6e231d6', 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50e1890ce671f_f6180435d4823742@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'617585208ab64c22a4a5ff1ce71cb6fc' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != x'617585208ab64c22a4a5ff1ce71cb6fc') LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-12-31 12:46:04' WHERE `users`.`id` = x'617585208ab64c22a4a5ff1ce71cb6fc' User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'AXhDJCPGDNNWpSzgZKao' LIMIT 1  (0.3ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2012-12-31 12:46:04', `confirmation_token` = 'AXhDJCPGDNNWpSzgZKao' WHERE `users`.`id` = x'617585208ab64c22a4a5ff1ce71cb6fc' Sent mail to new@email.test (7ms) Date: Mon, 31 Dec 2012 10:46:04 -0200 From: Iugu Reply-To: Iugu To: new@email.test Message-ID: <50e1890cee61b_f6180435d48238a@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'Zh6yLd7z7JHbWEHGVYDF' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-12-31 12:46:04', 'Zh6yLd7z7JHbWEHGVYDF', NULL, '2012-12-31 12:46:04', 'reconfirmation@needed.test', '$2a$04$Wnk7QtuEee5w/PMxSBwFO.pJZDqCMysCIDdgu7UgNbIQz3HudDHi6', NULL, x'2f94036f9793457780630e3a3cc442b1', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:04') Sent mail to reconfirmation@needed.test (6ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50e1890d1a38_f6180435d4823958@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2f94036f9793457780630e3a3cc442b1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'4b7cd774155a46fb98e38f75bdbccb07', '831f19957893f7c562e1300a14ff44d6', x'2f94036f9793457780630e3a3cc442b1', 'User', '2012-12-31 12:46:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2f94036f9793457780630e3a3cc442b1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'25c85db2bfc74559a16c2a923b37cc13', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account25c85db2-bfc7-4559-a16c-2a923b37cc13' WHERE `accounts`.`id` = x'25c85db2bfc74559a16c2a923b37cc13' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'25c85db2bfc74559a16c2a923b37cc13' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'25c85db2bfc74559a16c2a923b37cc13', x'a5b92f63cbe943628435e9666221e29b', x'2f94036f9793457780630e3a3cc442b1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a5b92f63cbe943628435e9666221e29b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5b92f63cbe943628435e9666221e29b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5b92f63cbe943628435e9666221e29b', x'940cbd17359d4ee8abcdf10093bc473f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a5b92f63cbe943628435e9666221e29b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5b92f63cbe943628435e9666221e29b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5b92f63cbe943628435e9666221e29b', x'ac537ec321434dbcb6f1322383531f07', 'admin') Sent mail to reconfirmation@needed.test (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: reconfirmation@needed.test Message-ID: <50e1890dba42_f6180435d482404f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2f94036f9793457780630e3a3cc442b1' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != x'2f94036f9793457780630e3a3cc442b1') LIMIT 1  (0.5ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2012-12-31 12:46:05' WHERE `users`.`id` = x'2f94036f9793457780630e3a3cc442b1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$pZKj20XqeIcUXSw2DLG3TOVBY7B0qepihznh8CA1vHGmLdM1GQ24W', NULL, x'2109b4dd1e15406e8c6d85e1d377a49f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2109b4dd1e15406e8c6d85e1d377a49f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'511a87fc77804a75ad60c453539ed4a8', '6dd8061ed7b32e9cdf1579895957ae10', x'2109b4dd1e15406e8c6d85e1d377a49f', 'User', '2012-12-31 12:46:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2109b4dd1e15406e8c6d85e1d377a49f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'7acab9a2a4964c329b8d38f8aed59da0', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account7acab9a2-a496-4c32-9b8d-38f8aed59da0' WHERE `accounts`.`id` = x'7acab9a2a4964c329b8d38f8aed59da0' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7acab9a2a4964c329b8d38f8aed59da0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7acab9a2a4964c329b8d38f8aed59da0', x'437cd74983d042fb8a33b8560dd4a596', x'2109b4dd1e15406e8c6d85e1d377a49f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'437cd74983d042fb8a33b8560dd4a596') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'437cd74983d042fb8a33b8560dd4a596' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'437cd74983d042fb8a33b8560dd4a596', x'e70e32232273499489d0236025cdb175', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'437cd74983d042fb8a33b8560dd4a596') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'437cd74983d042fb8a33b8560dd4a596' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'437cd74983d042fb8a33b8560dd4a596', x'a3f8665a1da9407ab58cb83738d01c8b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890d1a79e_f6180435d482415f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'54089daa6ead4a18be28c0935056e4c3', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'2109b4dd1e15406e8c6d85e1d377a49f')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2109b4dd1e15406e8c6d85e1d377a49f'  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$1Z4s0o3DMoradZmrl0fOceg.2bOx9xQvG/uUfFo/kI5/bEBhLsReK', NULL, x'28e88ce394c04d6789d4dd4f4006129b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'28e88ce394c04d6789d4dd4f4006129b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'976657849ec64b318f3b7fe4f897f381', 'afa96a868c3a549ce7c975f33a379d16', x'28e88ce394c04d6789d4dd4f4006129b', 'User', '2012-12-31 12:46:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'28e88ce394c04d6789d4dd4f4006129b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'0ffd44ab4e9d470c940735d5bcef582b', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account0ffd44ab-4e9d-470c-9407-35d5bcef582b' WHERE `accounts`.`id` = x'0ffd44ab4e9d470c940735d5bcef582b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0ffd44ab4e9d470c940735d5bcef582b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0ffd44ab4e9d470c940735d5bcef582b', x'1619ffb1fca64a3a9783742b372b9cc4', x'28e88ce394c04d6789d4dd4f4006129b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1619ffb1fca64a3a9783742b372b9cc4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1619ffb1fca64a3a9783742b372b9cc4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1619ffb1fca64a3a9783742b372b9cc4', x'527b35d4518a4736b1a259f210c9cb93', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1619ffb1fca64a3a9783742b372b9cc4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1619ffb1fca64a3a9783742b372b9cc4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1619ffb1fca64a3a9783742b372b9cc4', x'27f926afa30040139b0ac37954a10e4d', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890d27a83_f6180435d48242a6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'c96ee5ef160d4bf5a2bdf8b925be9b1d', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'28e88ce394c04d6789d4dd4f4006129b')  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'28e88ce394c04d6789d4dd4f4006129b' AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:05', '2012-12-31 12:46:05', '', '', NULL, x'd67adf2a791841309296a0d4a433a2ca', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd67adf2a791841309296a0d4a433a2ca' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'6649b34679934a01aaf128189e27c89f', 'e4eec57ac6ef7f5b9a3772e89fb9148e', x'd67adf2a791841309296a0d4a433a2ca', 'User', '2012-12-31 12:46:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd67adf2a791841309296a0d4a433a2ca' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'5e9a949da29c40e7aef4a8e34c554211', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account5e9a949d-a29c-40e7-aef4-a8e34c554211' WHERE `accounts`.`id` = x'5e9a949da29c40e7aef4a8e34c554211' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5e9a949da29c40e7aef4a8e34c554211' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e9a949da29c40e7aef4a8e34c554211', x'0a21ee550aa844868008e227895efc69', x'd67adf2a791841309296a0d4a433a2ca') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0a21ee550aa844868008e227895efc69') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a21ee550aa844868008e227895efc69' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a21ee550aa844868008e227895efc69', x'8a1894bdf587472792f25669cf374a24', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0a21ee550aa844868008e227895efc69') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a21ee550aa844868008e227895efc69' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a21ee550aa844868008e227895efc69', x'99b0d89dad524441a1a5084dd4abbe2c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'49967a52a16440e790669d8846dac6c2', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'd67adf2a791841309296a0d4a433a2ca')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd67adf2a791841309296a0d4a433a2ca' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:05', '2012-12-31 12:46:05', 'facebook@test.test', '', NULL, x'358ee5d276c144e1976ae43bc18ede00', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'358ee5d276c144e1976ae43bc18ede00' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'c421bff5003e4378bd086b034ae74ccf', '7049940e410ebea5c99f0208481b469c', x'358ee5d276c144e1976ae43bc18ede00', 'User', '2012-12-31 12:46:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'358ee5d276c144e1976ae43bc18ede00' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'c36d29ec5de340c7966ff9d1d94b41f8', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'accountc36d29ec-5de3-40c7-966f-f9d1d94b41f8' WHERE `accounts`.`id` = x'c36d29ec5de340c7966ff9d1d94b41f8' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c36d29ec5de340c7966ff9d1d94b41f8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c36d29ec5de340c7966ff9d1d94b41f8', x'b29281c520524bbfb10792460ac4707e', x'358ee5d276c144e1976ae43bc18ede00') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b29281c520524bbfb10792460ac4707e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b29281c520524bbfb10792460ac4707e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b29281c520524bbfb10792460ac4707e', x'b588cd2b8a4642c3bfdf537fcf116f8c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b29281c520524bbfb10792460ac4707e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b29281c520524bbfb10792460ac4707e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b29281c520524bbfb10792460ac4707e', x'2d6eb327fb504396bf0663aa43a22c99', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1890d3b651_f6180435d48243e8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'c8b2ed4c91e9486dbf55e7e08e3ab377', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'358ee5d276c144e1976ae43bc18ede00')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'358ee5d276c144e1976ae43bc18ede00' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$r7KqQkKfXzwrOcyYbZSrEOq9yfJWywFBNKBuqapyDPlYzny79EcIO', NULL, x'c966c3c46acb4645bb1926fae8d11276', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c966c3c46acb4645bb1926fae8d11276' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'd0646b689ba84522a4b795dea84b7db2', 'e26591dd1e0667ea10495efef69caad5', x'c966c3c46acb4645bb1926fae8d11276', 'User', '2012-12-31 12:46:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c966c3c46acb4645bb1926fae8d11276' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'ad3eea62dddf47f5b07364aa8ee8f6f1', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'accountad3eea62-dddf-47f5-b073-64aa8ee8f6f1' WHERE `accounts`.`id` = x'ad3eea62dddf47f5b07364aa8ee8f6f1' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ad3eea62dddf47f5b07364aa8ee8f6f1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ad3eea62dddf47f5b07364aa8ee8f6f1', x'c865ee1ac08a4ea094e5da842c5e35d3', x'c966c3c46acb4645bb1926fae8d11276') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c865ee1ac08a4ea094e5da842c5e35d3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c865ee1ac08a4ea094e5da842c5e35d3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c865ee1ac08a4ea094e5da842c5e35d3', x'68ff496a85b54cc69fb34ab0de9d6f64', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c865ee1ac08a4ea094e5da842c5e35d3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c865ee1ac08a4ea094e5da842c5e35d3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c865ee1ac08a4ea094e5da842c5e35d3', x'a4897c82dfa143d6b92ff371ffad1a77', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890d6210d_f6180435d48244a6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'e04eaff14ef2426da9fbb6939a828e24', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'c966c3c46acb4645bb1926fae8d11276')  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c966c3c46acb4645bb1926fae8d11276' LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$TemmIy3PudY84OgdJR3nOe4WvnLCc8EMUGr8YANijYN0imhSnBycu', NULL, x'73a32f8f71cf45b58212b0c5e8042cd8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'73a32f8f71cf45b58212b0c5e8042cd8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'6b9f2e1551b4426fa8679941b5efba13', 'b2ebbca8faff93cbb1b5ade6a64a8090', x'73a32f8f71cf45b58212b0c5e8042cd8', 'User', '2012-12-31 12:46:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'73a32f8f71cf45b58212b0c5e8042cd8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'32f5b1ad7a0440b6a03b441cd17bbe43', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account32f5b1ad-7a04-40b6-a03b-441cd17bbe43' WHERE `accounts`.`id` = x'32f5b1ad7a0440b6a03b441cd17bbe43' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'32f5b1ad7a0440b6a03b441cd17bbe43' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'32f5b1ad7a0440b6a03b441cd17bbe43', x'61f1cb5ad6db43128a5f509a83246607', x'73a32f8f71cf45b58212b0c5e8042cd8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'61f1cb5ad6db43128a5f509a83246607') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61f1cb5ad6db43128a5f509a83246607' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61f1cb5ad6db43128a5f509a83246607', x'4089e80949b14d4f84fbde9be1c9d7a7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'61f1cb5ad6db43128a5f509a83246607') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61f1cb5ad6db43128a5f509a83246607' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61f1cb5ad6db43128a5f509a83246607', x'c0ab951ee1694c9399b23847b46b34d5', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890d6ffa1_f6180435d48245de@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'01528e7739dd42ebbb784fd4489e5d88', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'73a32f8f71cf45b58212b0c5e8042cd8')  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'73a32f8f71cf45b58212b0c5e8042cd8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `token` = 'newtoken' WHERE `social_accounts`.`id` = x'01528e7739dd42ebbb784fd4489e5d88'  (0.0ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`id` = x'01528e7739dd42ebbb784fd4489e5d88' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'zM4FExMsacApTK9YAs9x' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-12-31 12:46:05', 'zM4FExMsacApTK9YAs9x', NULL, '2012-12-31 12:46:05', 'test@email.test', '$2a$04$7xsXaPDgDBCVlTXtCeo9s.G0g4zLta8C/Uz0Fojzm1xJveIbrdvoa', NULL, x'30ed92e104bb4cbda6200e3c3933da36', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') Sent mail to test@email.test (6ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50e1890d79743_f6180435d482463f@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'30ed92e104bb4cbda6200e3c3933da36' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'ebc6177fcaeb457eb790ac364ee17a6e', '4dccf5edbb0fc9174d89e3450d03d530', x'30ed92e104bb4cbda6200e3c3933da36', 'User', '2012-12-31 12:46:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'30ed92e104bb4cbda6200e3c3933da36' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'62fe793d59bd43b3b85184a76f5a1913', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account62fe793d-59bd-43b3-b851-84a76f5a1913' WHERE `accounts`.`id` = x'62fe793d59bd43b3b85184a76f5a1913' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'62fe793d59bd43b3b85184a76f5a1913' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'62fe793d59bd43b3b85184a76f5a1913', x'1d0c6353f3b647c0954d8062ed1f3e0c', x'30ed92e104bb4cbda6200e3c3933da36') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1d0c6353f3b647c0954d8062ed1f3e0c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1d0c6353f3b647c0954d8062ed1f3e0c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1d0c6353f3b647c0954d8062ed1f3e0c', x'cb37656d2a654f45a4a016c2a3aa8b78', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1d0c6353f3b647c0954d8062ed1f3e0c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1d0c6353f3b647c0954d8062ed1f3e0c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1d0c6353f3b647c0954d8062ed1f3e0c', x'a38fafacc0a74d329bee05f41e6821dd', 'admin') Sent mail to test@email.test (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50e1890d8373a_f6180435d48247f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'30ed92e104bb4cbda6200e3c3933da36'  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'FoUFLtu9yaPMswm3vaSN' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2012-12-31 12:46:05', 'FoUFLtu9yaPMswm3vaSN', NULL, '2012-12-31 12:46:05', 'test@email.test', '$2a$04$8pwrbB1.3QIutdDxfFkcguT2dgYPVA377O49wdxQErXFQ9owQauiy', NULL, x'66e05ed2186e4f0b991d7baa5713fd50', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') Sent mail to test@email.test (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50e1890d8b321_f6180435d48248e6@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'66e05ed2186e4f0b991d7baa5713fd50' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'04c11cabbff4477f9523d54c1549917b', 'ed49c3dc681a250da676d4706869af44', x'66e05ed2186e4f0b991d7baa5713fd50', 'User', '2012-12-31 12:46:05') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'66e05ed2186e4f0b991d7baa5713fd50' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (8ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: test@email.test Message-ID: <50e1890d91508_f6180435d48249b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'66e05ed2186e4f0b991d7baa5713fd50'  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$2qCgpk6QIN3ok4l6Jkq1j.35HDLckb44egF8ZTqP1af8W.bscK1gm', NULL, x'e3cc9c7a96334d2f9c86f60baa71dac2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e3cc9c7a96334d2f9c86f60baa71dac2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'35e849a7a351429d99a872e06f526a44', '1c58ce68aa7ed53236f075a4647d5f5e', x'e3cc9c7a96334d2f9c86f60baa71dac2', 'User', '2012-12-31 12:46:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e3cc9c7a96334d2f9c86f60baa71dac2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'14324493ac424068952f94131ae68cf4', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account14324493-ac42-4068-952f-94131ae68cf4' WHERE `accounts`.`id` = x'14324493ac424068952f94131ae68cf4' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'14324493ac424068952f94131ae68cf4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'14324493ac424068952f94131ae68cf4', x'19b413323e934ff5808bc9e6134d040c', x'e3cc9c7a96334d2f9c86f60baa71dac2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'19b413323e934ff5808bc9e6134d040c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19b413323e934ff5808bc9e6134d040c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19b413323e934ff5808bc9e6134d040c', x'3fcb4162dcd74512be18e937b87c39e8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'19b413323e934ff5808bc9e6134d040c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'19b413323e934ff5808bc9e6134d040c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'19b413323e934ff5808bc9e6134d040c', x'8556440797bd4dfb9a42db036ccbbf6a', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890d9eb86_f6180435d4825089@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3cc9c7a96334d2f9c86f60baa71dac2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3cc9c7a96334d2f9c86f60baa71dac2' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$ycRmuORlbWhriiFrFFhlaeGWgajNjKp.idkrUoWxlfUiVi4/0LvZK', NULL, x'8a55b5ccdd5040ee9554c2359dbd7e13', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8a55b5ccdd5040ee9554c2359dbd7e13' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'a88cd327f2014035893a9afa4e4b061c', '50e27fe775df93bfcab7707ddd21cd36', x'8a55b5ccdd5040ee9554c2359dbd7e13', 'User', '2012-12-31 12:46:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8a55b5ccdd5040ee9554c2359dbd7e13' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'3c772d04b2594d6f97314af4208a5a9b', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account3c772d04-b259-4d6f-9731-4af4208a5a9b' WHERE `accounts`.`id` = x'3c772d04b2594d6f97314af4208a5a9b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3c772d04b2594d6f97314af4208a5a9b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3c772d04b2594d6f97314af4208a5a9b', x'81ec364d2ead466b8b6a7a631ce0129d', x'8a55b5ccdd5040ee9554c2359dbd7e13') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'81ec364d2ead466b8b6a7a631ce0129d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'81ec364d2ead466b8b6a7a631ce0129d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'81ec364d2ead466b8b6a7a631ce0129d', x'8e49e166dfdc4e4cb7396eb4dd80db4b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'81ec364d2ead466b8b6a7a631ce0129d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'81ec364d2ead466b8b6a7a631ce0129d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'81ec364d2ead466b8b6a7a631ce0129d', x'9be8166d7d91488c9c82ddf110f033eb', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890dc4d7c_f6180435d4825142@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a55b5ccdd5040ee9554c2359dbd7e13' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a55b5ccdd5040ee9554c2359dbd7e13' AND (accounts.id = x'3c772d04b2594d6f97314af4208a5a9b') LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$Q56qsmADKRbAwxPGWZW41uVpeGlKRJ/zHLf6TkGJbZOgFULVmFaHW', NULL, x'9d00aac3214d4d278879a0b6e89ae553', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9d00aac3214d4d278879a0b6e89ae553' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'5e21af28fec948b381749553653eb055', '34164164dade02b5328c0f61578bea27', x'9d00aac3214d4d278879a0b6e89ae553', 'User', '2012-12-31 12:46:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9d00aac3214d4d278879a0b6e89ae553' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'80d060689f6e4f1db5d0d2009a4fd1c0', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account80d06068-9f6e-4f1d-b5d0-d2009a4fd1c0' WHERE `accounts`.`id` = x'80d060689f6e4f1db5d0d2009a4fd1c0' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'80d060689f6e4f1db5d0d2009a4fd1c0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'80d060689f6e4f1db5d0d2009a4fd1c0', x'c5fb55f6c4d7438e9d122c720eba5565', x'9d00aac3214d4d278879a0b6e89ae553') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c5fb55f6c4d7438e9d122c720eba5565') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c5fb55f6c4d7438e9d122c720eba5565' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c5fb55f6c4d7438e9d122c720eba5565', x'0bfb710e3b6d4ecba2d63678b23043ca', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c5fb55f6c4d7438e9d122c720eba5565') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c5fb55f6c4d7438e9d122c720eba5565' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c5fb55f6c4d7438e9d122c720eba5565', x'e8b8ed80193c48db96ca2036a26d929b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890dd1d97_f6180435d482524d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9d00aac3214d4d278879a0b6e89ae553' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9d00aac3214d4d278879a0b6e89ae553' AND (accounts.id = x'80d060689f6e4f1db5d0d2009a4fd1c0') LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$T5JAfIUgXml1GdH0KRfmkOHqlVsNbbWc6.nA5Igi7QDQ2Tdn.PM2q', NULL, x'5471c5966a044f689c56c5dbd449912d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5471c5966a044f689c56c5dbd449912d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'a535edd8dfc54395b235c1c747e09b27', 'e99e478e5387a92951eb072808c45f98', x'5471c5966a044f689c56c5dbd449912d', 'User', '2012-12-31 12:46:05') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5471c5966a044f689c56c5dbd449912d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'd08b0f81dff244228ae9a1ab64b60b11', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'accountd08b0f81-dff2-4422-8ae9-a1ab64b60b11' WHERE `accounts`.`id` = x'd08b0f81dff244228ae9a1ab64b60b11' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd08b0f81dff244228ae9a1ab64b60b11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd08b0f81dff244228ae9a1ab64b60b11', x'ccc92157178e42bb92596c8dd7d7a5b8', x'5471c5966a044f689c56c5dbd449912d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ccc92157178e42bb92596c8dd7d7a5b8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ccc92157178e42bb92596c8dd7d7a5b8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ccc92157178e42bb92596c8dd7d7a5b8', x'0a440d9291ef40209697b3cd6d346fd6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ccc92157178e42bb92596c8dd7d7a5b8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ccc92157178e42bb92596c8dd7d7a5b8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ccc92157178e42bb92596c8dd7d7a5b8', x'605d37aab9464194977b73e2d86ed813', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890ddf574_f6180435d482537d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:05', NULL, '--- !ruby/struct:DestroyUserJob\nid: 5471c596-6a04-4f68-9c56-c5dbd449912d\n', NULL, NULL, NULL, 0, 'user_5471c596-6a04-4f68-9c56-c5dbd449912d_destroy', '2012-12-31 12:46:05', '2012-12-31 12:46:05')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5471c596-6a04-4f68-9c56-c5dbd449912d_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$guRFyWfRriAIze512ULG1ufYArlNK6QfUHEDG6sfPuJQfSicCVbQ6', NULL, x'c880df7234d74db09c654c10009c30e7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c880df7234d74db09c654c10009c30e7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'feca27e402754ceaa45502f09847991a', 'ae90faed825319dd410e44a15a697402', x'c880df7234d74db09c654c10009c30e7', 'User', '2012-12-31 12:46:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c880df7234d74db09c654c10009c30e7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'9147fd750d5e486994e179a222aba347', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'account9147fd75-0d5e-4869-94e1-79a222aba347' WHERE `accounts`.`id` = x'9147fd750d5e486994e179a222aba347' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9147fd750d5e486994e179a222aba347' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9147fd750d5e486994e179a222aba347', x'78303d30854b43c9bdf66bc6272c4998', x'c880df7234d74db09c654c10009c30e7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'78303d30854b43c9bdf66bc6272c4998') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78303d30854b43c9bdf66bc6272c4998' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78303d30854b43c9bdf66bc6272c4998', x'aec7582691f242c4ac40dff293e4eba9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'78303d30854b43c9bdf66bc6272c4998') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78303d30854b43c9bdf66bc6272c4998' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78303d30854b43c9bdf66bc6272c4998', x'ab1307374fca4f98aefe2c544db6bec9', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:05 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890dedbea_f6180435d482545d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_c880df72-34d7-4db0-9c65-4c10009c30e7_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:05', 'teste@teste.com', '$2a$04$uU6KwkyXWh9.FQpGVRt9rOL4Qfqa2JaWcaQ5g.tWPVjBkHi5leVsm', NULL, x'ea5f4f92f8954146bf2cdcc53ff8ae9a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:05') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ea5f4f92f8954146bf2cdcc53ff8ae9a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:05', 'User', x'311b3cafe2a34f53a2dd3cfa5f05562d', '218551b6f5688f2f46075df8b9228564', x'ea5f4f92f8954146bf2cdcc53ff8ae9a', 'User', '2012-12-31 12:46:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ea5f4f92f8954146bf2cdcc53ff8ae9a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:05', x'b28876a67f344e608c869feb6e36b7c4', NULL, NULL, NULL, '2012-12-31 12:46:05')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:05', `updated_at` = '2012-12-31 12:46:05', `subdomain` = 'accountb28876a6-7f34-4e60-8c86-9feb6e36b7c4' WHERE `accounts`.`id` = x'b28876a67f344e608c869feb6e36b7c4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b28876a67f344e608c869feb6e36b7c4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b28876a67f344e608c869feb6e36b7c4', x'c6072b53252f4bfd96542cafca51a685', x'ea5f4f92f8954146bf2cdcc53ff8ae9a') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c6072b53252f4bfd96542cafca51a685') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c6072b53252f4bfd96542cafca51a685' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c6072b53252f4bfd96542cafca51a685', x'e73d6c7058794079bfd7766897be265e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c6072b53252f4bfd96542cafca51a685') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c6072b53252f4bfd96542cafca51a685' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c6072b53252f4bfd96542cafca51a685', x'a3ced94b446f4462a3fc7c824b3d4d3d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890e6379_f6180435d48255f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: ea5f4f92-f895-4146-bf2c-dcc53ff8ae9a\n', NULL, NULL, NULL, 0, 'user_ea5f4f92-f895-4146-bf2c-dcc53ff8ae9a_destroy', '2012-12-31 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_ea5f4f92-f895-4146-bf2c-dcc53ff8ae9a_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:06', 'teste@teste.com', '$2a$04$NixiKNLGI0ysZfyAIGm8UOclbuqnf2V5RTswm6LzACk4.k5UREVfy', NULL, x'a2007589cf3b47fbbb55ed4dac2216af', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a2007589cf3b47fbbb55ed4dac2216af' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'0bf6fec2188c4826854c9c178dbec0a4', 'eadfca1e5835420476b3f3f31735ce17', x'a2007589cf3b47fbbb55ed4dac2216af', 'User', '2012-12-31 12:46:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a2007589cf3b47fbbb55ed4dac2216af' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'94397b2899c24079b5d7e213665268d0', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account94397b28-99c2-4079-b5d7-e213665268d0' WHERE `accounts`.`id` = x'94397b2899c24079b5d7e213665268d0' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'94397b2899c24079b5d7e213665268d0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'94397b2899c24079b5d7e213665268d0', x'fbc8e4e8a5344f4e85e21f3596dceb51', x'a2007589cf3b47fbbb55ed4dac2216af') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fbc8e4e8a5344f4e85e21f3596dceb51') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fbc8e4e8a5344f4e85e21f3596dceb51' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fbc8e4e8a5344f4e85e21f3596dceb51', x'0f07861421344e4da77e66aaa8f2e2ba', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fbc8e4e8a5344f4e85e21f3596dceb51') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fbc8e4e8a5344f4e85e21f3596dceb51' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fbc8e4e8a5344f4e85e21f3596dceb51', x'2177c22f4fe44d43824b29985ddd491e', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890e14635_f6180435d4825625@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a2007589-cf3b-47fb-bb55-ed4dac2216af_destroy' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:06', 'teste@teste.com', '$2a$04$C4OR0POdfPEGGGNuQW5RdeTzv7.1E4b0CKr5jfbMl9DP4JSqflHie', NULL, x'ea665165e2f5482995535b1423507e63', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ea665165e2f5482995535b1423507e63' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'4376117527224464bd107c5216c3a213', '52e3a746945f45c049cfb031cfbec58c', x'ea665165e2f5482995535b1423507e63', 'User', '2012-12-31 12:46:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ea665165e2f5482995535b1423507e63' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'b5579620fb3c4b1e840d0ff6b8b507fd', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'accountb5579620-fb3c-4b1e-840d-0ff6b8b507fd' WHERE `accounts`.`id` = x'b5579620fb3c4b1e840d0ff6b8b507fd' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b5579620fb3c4b1e840d0ff6b8b507fd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b5579620fb3c4b1e840d0ff6b8b507fd', x'f9e5850d48534ee08951e26f8e35641c', x'ea665165e2f5482995535b1423507e63') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f9e5850d48534ee08951e26f8e35641c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f9e5850d48534ee08951e26f8e35641c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f9e5850d48534ee08951e26f8e35641c', x'bf158886f2834bb3bbf2b5c20cd85373', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f9e5850d48534ee08951e26f8e35641c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f9e5850d48534ee08951e26f8e35641c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f9e5850d48534ee08951e26f8e35641c', x'06fda82cfc434305bd9d5dc993bfdf99', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890e3a455_f6180435d4825786@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: ea665165-e2f5-4829-9553-5b1423507e63\n', NULL, NULL, NULL, 0, 'user_ea665165-e2f5-4829-9553-5b1423507e63_destroy', '2012-12-31 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_ea665165-e2f5-4829-9553-5b1423507e63_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_ea665165-e2f5-4829-9553-5b1423507e63_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 44  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_ea665165-e2f5-4829-9553-5b1423507e63_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:06', 'teste@teste.com', '$2a$04$42UDvXWlwao/uW2sky8ONeSMsugquop44BKoXWeaoN0MG0vuIv09C', NULL, x'3e8b61ca72a347c682d66a3abc5b34ae', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3e8b61ca72a347c682d66a3abc5b34ae' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'bac763037bba4118a3a8edde91686013', 'fc10b23c2830075ee14ec40092dedc4e', x'3e8b61ca72a347c682d66a3abc5b34ae', 'User', '2012-12-31 12:46:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3e8b61ca72a347c682d66a3abc5b34ae' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'a10c1a62e1b44768a1539522cdc8f20e', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'accounta10c1a62-e1b4-4768-a153-9522cdc8f20e' WHERE `accounts`.`id` = x'a10c1a62e1b44768a1539522cdc8f20e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a10c1a62e1b44768a1539522cdc8f20e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a10c1a62e1b44768a1539522cdc8f20e', x'9c032659d9e742a8a59582df923d0fac', x'3e8b61ca72a347c682d66a3abc5b34ae') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9c032659d9e742a8a59582df923d0fac') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9c032659d9e742a8a59582df923d0fac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9c032659d9e742a8a59582df923d0fac', x'e445894d13da460bbe95efd91039f9bb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9c032659d9e742a8a59582df923d0fac') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9c032659d9e742a8a59582df923d0fac' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9c032659d9e742a8a59582df923d0fac', x'2a647d6215ed484a81ea73446fef9759', 'admin') Sent mail to teste@teste.com (9ms) Date: Mon, 31 Dec 2012 10:46:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890e48be8_f6180435d48258f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: 3e8b61ca-72a3-47c6-82d6-6a3abc5b34ae\n', NULL, NULL, NULL, 0, 'user_3e8b61ca-72a3-47c6-82d6-6a3abc5b34ae_destroy', '2012-12-31 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3e8b61ca-72a3-47c6-82d6-6a3abc5b34ae_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3e8b61ca-72a3-47c6-82d6-6a3abc5b34ae_destroy' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 45  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:06', 'teste@teste.com', '$2a$04$3CvQN8jcz2sqjvScKCoVIe2dnmecZYRBH7jOzusenhRaa0avwRr5u', NULL, x'472358eb11584e77a08a0bd90fd8433b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'472358eb11584e77a08a0bd90fd8433b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'023dfe0e56d942e99b5651920b9f3107', '745923904064f72fb80da063a904ccb8', x'472358eb11584e77a08a0bd90fd8433b', 'User', '2012-12-31 12:46:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'472358eb11584e77a08a0bd90fd8433b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'e46f766859614a2d8bdf122166d006fc', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'accounte46f7668-5961-4a2d-8bdf-122166d006fc' WHERE `accounts`.`id` = x'e46f766859614a2d8bdf122166d006fc' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e46f766859614a2d8bdf122166d006fc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e46f766859614a2d8bdf122166d006fc', x'8ce0fb0962854fb28d45a80c707b1a5d', x'472358eb11584e77a08a0bd90fd8433b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8ce0fb0962854fb28d45a80c707b1a5d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8ce0fb0962854fb28d45a80c707b1a5d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8ce0fb0962854fb28d45a80c707b1a5d', x'e2a689c50275437d859776d5e176c822', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8ce0fb0962854fb28d45a80c707b1a5d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8ce0fb0962854fb28d45a80c707b1a5d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8ce0fb0962854fb28d45a80c707b1a5d', x'a5b3482379344251a8c5d0611a971876', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890e57c36_f6180435d48259b7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_472358eb-1158-4e77-a08a-0bd90fd8433b_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_472358eb-1158-4e77-a08a-0bd90fd8433b_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:06', 'teste@teste.com', '$2a$04$5MZ8anmBhx6TE4Gj/vtuXO81fRUBHFkYuMQMqXlOhkCwpFVq3aQv6', NULL, x'0f728b5de63c49dba1b739e74442641d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0f728b5de63c49dba1b739e74442641d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'a140d632fa664f448fbf664308c5a1ac', 'cc6086ab7f892e30c5165d99bd92e830', x'0f728b5de63c49dba1b739e74442641d', 'User', '2012-12-31 12:46:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0f728b5de63c49dba1b739e74442641d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'842cf69f3a5f4b3aafa3fd4a7cd260a7', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account842cf69f-3a5f-4b3a-afa3-fd4a7cd260a7' WHERE `accounts`.`id` = x'842cf69f3a5f4b3aafa3fd4a7cd260a7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'842cf69f3a5f4b3aafa3fd4a7cd260a7' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'842cf69f3a5f4b3aafa3fd4a7cd260a7', x'ff91175a606b49fbbcf6bd73b1c59cb2', x'0f728b5de63c49dba1b739e74442641d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ff91175a606b49fbbcf6bd73b1c59cb2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff91175a606b49fbbcf6bd73b1c59cb2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff91175a606b49fbbcf6bd73b1c59cb2', x'44f9beca864d47d5b647d3b98a4902c0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ff91175a606b49fbbcf6bd73b1c59cb2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ff91175a606b49fbbcf6bd73b1c59cb2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ff91175a606b49fbbcf6bd73b1c59cb2', x'72a71e0a1d2349ddb0dbd36d9cc28309', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890e64655_f6180435d4826031@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: 0f728b5d-e63c-49db-a1b7-39e74442641d\n', NULL, NULL, NULL, 0, 'user_0f728b5d-e63c-49db-a1b7-39e74442641d_destroy', '2012-12-31 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_0f728b5d-e63c-49db-a1b7-39e74442641d_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06' WHERE `delayed_jobs`.`id` = 46  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_0f728b5d-e63c-49db-a1b7-39e74442641d_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:06', 'teste@teste.com', '$2a$04$nGUQ9kWOST9IRIlCjTV8ROEFxmaUmyD7vih.1PgEOx4x/khp7mfu6', NULL, x'1cc6150040a44040a63fc53409c46b68', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1cc6150040a44040a63fc53409c46b68' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'0586a22814c144c29d4608c051ec23e7', '1960dc4bb1eba7f74869e576d79d9db0', x'1cc6150040a44040a63fc53409c46b68', 'User', '2012-12-31 12:46:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1cc6150040a44040a63fc53409c46b68' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'244080d1faaf4e489043b6efaa2c4890', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account244080d1-faaf-4e48-9043-b6efaa2c4890' WHERE `accounts`.`id` = x'244080d1faaf4e489043b6efaa2c4890' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'244080d1faaf4e489043b6efaa2c4890' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'244080d1faaf4e489043b6efaa2c4890', x'ac85a28df35f40438c75d3543b8b94ce', x'1cc6150040a44040a63fc53409c46b68') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ac85a28df35f40438c75d3543b8b94ce') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac85a28df35f40438c75d3543b8b94ce' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac85a28df35f40438c75d3543b8b94ce', x'10d37b4c3640437fbdfa1f8eaf5437e1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ac85a28df35f40438c75d3543b8b94ce') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac85a28df35f40438c75d3543b8b94ce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac85a28df35f40438c75d3543b8b94ce', x'd8f439a9ee234e8ca7671b663fd06fad', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890e73a35_f6180435d4826199@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1cc6150040a44040a63fc53409c46b68' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'244080d1faaf4e489043b6efaa2c4890' AND `account_users`.`user_id` = x'1cc6150040a44040a63fc53409c46b68' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ac85a28df35f40438c75d3543b8b94ce'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac85a28df35f40438c75d3543b8b94ce' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '$@€Ñú¯NHC¶ïª,H' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd8f439a9ee234e8ca7671b663fd06fad'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'ac85a28df35f40438c75d3543b8b94ce') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac85a28df35f40438c75d3543b8b94ce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac85a28df35f40438c75d3543b8b94ce', x'8421e50b772c458d98379192665695b8', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'244080d1faaf4e489043b6efaa2c4890' AND `account_users`.`user_id` = x'1cc6150040a44040a63fc53409c46b68' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ac85a28df35f40438c75d3543b8b94ce' AND `account_roles`.`name` = 'user' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:06', 'teste@teste.com', '$2a$04$fq9LAjEntwjH9E99ZjawpeuuC8Tc2mpgY4SXM3Z0a8Woa84CQvECy', NULL, x'f40d27a7198c4a54a9b323cb43847180', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f40d27a7198c4a54a9b323cb43847180' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'ef5763c17dec41dd95f36ae77ecaff8a', 'e75f6d83d9188ba1ce2e0c971d11159d', x'f40d27a7198c4a54a9b323cb43847180', 'User', '2012-12-31 12:46:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f40d27a7198c4a54a9b323cb43847180' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'720e79423eb7441ea24090a05ea42a0c', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account720e7942-3eb7-441e-a240-90a05ea42a0c' WHERE `accounts`.`id` = x'720e79423eb7441ea24090a05ea42a0c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'720e79423eb7441ea24090a05ea42a0c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'720e79423eb7441ea24090a05ea42a0c', x'83b508462ce34f29ab2537e4f7789c9b', x'f40d27a7198c4a54a9b323cb43847180') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'83b508462ce34f29ab2537e4f7789c9b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83b508462ce34f29ab2537e4f7789c9b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83b508462ce34f29ab2537e4f7789c9b', x'5ef50b07a00645609a8b3d1b8c9615e7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'83b508462ce34f29ab2537e4f7789c9b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83b508462ce34f29ab2537e4f7789c9b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83b508462ce34f29ab2537e4f7789c9b', x'4d9c3a576b5242f0b3e42fe64214cd8b', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:06 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1890e9e359_f6180435d4826260@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f40d27a7198c4a54a9b323cb43847180' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'720e79423eb7441ea24090a05ea42a0c' AND `account_users`.`user_id` = x'f40d27a7198c4a54a9b323cb43847180' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'83b508462ce34f29ab2537e4f7789c9b'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4d9c3a576b5242f0b3e42fe64214cd8b' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83b508462ce34f29ab2537e4f7789c9b' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ryB>·D¢@ ^¤* ' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'83b508462ce34f29ab2537e4f7789c9b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83b508462ce34f29ab2537e4f7789c9b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83b508462ce34f29ab2537e4f7789c9b', x'8fc0f0b727824e3790553a73345eeb8b', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'720e79423eb7441ea24090a05ea42a0c' AND `account_users`.`user_id` = x'f40d27a7198c4a54a9b323cb43847180' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'83b508462ce34f29ab2537e4f7789c9b' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:06', '2012-12-31 12:46:06', '', '', 1, x'e7ca769e60c741039e0be45ae0faf730', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e7ca769e60c741039e0be45ae0faf730' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'2345e8e6cccd46ae9305c4a4b1c58e4d', '60175ff5a8ffdf1b7790fdaabff9f90b', x'e7ca769e60c741039e0be45ae0faf730', 'User', '2012-12-31 12:46:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e7ca769e60c741039e0be45ae0faf730' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'103255958f0e40f9a4ae2f39c97e9ae9', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account10325595-8f0e-40f9-a4ae-2f39c97e9ae9' WHERE `accounts`.`id` = x'103255958f0e40f9a4ae2f39c97e9ae9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'103255958f0e40f9a4ae2f39c97e9ae9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'103255958f0e40f9a4ae2f39c97e9ae9', x'c218f59fc88f41e491e8dfc52985c3c6', x'e7ca769e60c741039e0be45ae0faf730') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c218f59fc88f41e491e8dfc52985c3c6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c218f59fc88f41e491e8dfc52985c3c6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c218f59fc88f41e491e8dfc52985c3c6', x'981337aaa60040118dc14541820c2b19', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c218f59fc88f41e491e8dfc52985c3c6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c218f59fc88f41e491e8dfc52985c3c6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c218f59fc88f41e491e8dfc52985c3c6', x'350a680e29824efcb780459515f03906', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: e7ca769e-60c7-4103-9e0b-e45ae0faf730\n', NULL, NULL, NULL, 0, 'guest_e7ca769e-60c7-4103-9e0b-e45ae0faf730_destroy', '2013-01-07 12:46:06', '2012-12-31 12:46:06')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:06', '2012-12-31 12:46:06', '', '', 1, x'53f54b76379c44f29af6b671d1bf23da', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'53f54b76379c44f29af6b671d1bf23da' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'2c3c552b922f4c8dbbd7bfb906b9f0a4', 'ecafca6aea5304d14a512c917da281ed', x'53f54b76379c44f29af6b671d1bf23da', 'User', '2012-12-31 12:46:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'53f54b76379c44f29af6b671d1bf23da' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'1357bf4213b84810a8ed03c14d54b467', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account1357bf42-13b8-4810-a8ed-03c14d54b467' WHERE `accounts`.`id` = x'1357bf4213b84810a8ed03c14d54b467' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1357bf4213b84810a8ed03c14d54b467' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1357bf4213b84810a8ed03c14d54b467', x'972149c8a0064d6f9120215f95125510', x'53f54b76379c44f29af6b671d1bf23da') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'972149c8a0064d6f9120215f95125510') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'972149c8a0064d6f9120215f95125510' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'972149c8a0064d6f9120215f95125510', x'd4126ec59c1543379fbfbd1d60d6d110', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'972149c8a0064d6f9120215f95125510') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'972149c8a0064d6f9120215f95125510' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'972149c8a0064d6f9120215f95125510', x'376ea09e553a424b8270dcc3e214c036', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: 53f54b76-379c-44f2-9af6-b671d1bf23da\n', NULL, NULL, NULL, 0, 'guest_53f54b76-379c-44f2-9af6-b671d1bf23da_destroy', '2013-01-07 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:06', '2012-12-31 12:46:06', '', '', 1, x'6535aef98993434fa6b3fc0a63e0df0f', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6535aef98993434fa6b3fc0a63e0df0f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'84036d68790444bca48e7829447680e7', 'c89525419c404085aabbd5512bd71d5d', x'6535aef98993434fa6b3fc0a63e0df0f', 'User', '2012-12-31 12:46:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6535aef98993434fa6b3fc0a63e0df0f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'8a193907b52d4c49b8cd7510b40b1914', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account8a193907-b52d-4c49-b8cd-7510b40b1914' WHERE `accounts`.`id` = x'8a193907b52d4c49b8cd7510b40b1914' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8a193907b52d4c49b8cd7510b40b1914' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a193907b52d4c49b8cd7510b40b1914', x'a91a659ca78e4d78826f7d31886b81bb', x'6535aef98993434fa6b3fc0a63e0df0f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a91a659ca78e4d78826f7d31886b81bb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a91a659ca78e4d78826f7d31886b81bb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a91a659ca78e4d78826f7d31886b81bb', x'b3a44e969797401f93984cc5b15c1508', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a91a659ca78e4d78826f7d31886b81bb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a91a659ca78e4d78826f7d31886b81bb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a91a659ca78e4d78826f7d31886b81bb', x'c72dcefd539c4e128c00892df2716361', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: 6535aef9-8993-434f-a6b3-fc0a63e0df0f\n', NULL, NULL, NULL, 0, 'guest_6535aef9-8993-434f-a6b3-fc0a63e0df0f_destroy', '2013-01-07 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:06', '2012-12-31 12:46:06', '', '', 1, x'b6b84871ad3f437388599d0997abd467', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b6b84871ad3f437388599d0997abd467' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'052f034d26d748d29c2853d8c0aaf1fd', 'e58e313ed7aab85c9b00c63eafedc05c', x'b6b84871ad3f437388599d0997abd467', 'User', '2012-12-31 12:46:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b6b84871ad3f437388599d0997abd467' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'00a587c7e332432ea5d45dc2c04c264d', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account00a587c7-e332-432e-a5d4-5dc2c04c264d' WHERE `accounts`.`id` = x'00a587c7e332432ea5d45dc2c04c264d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00a587c7e332432ea5d45dc2c04c264d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'00a587c7e332432ea5d45dc2c04c264d', x'ca6f22b3d3224dc0bfbf4f0bc310ca31', x'b6b84871ad3f437388599d0997abd467') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ca6f22b3d3224dc0bfbf4f0bc310ca31') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca6f22b3d3224dc0bfbf4f0bc310ca31' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca6f22b3d3224dc0bfbf4f0bc310ca31', x'e1fe3b887b174dc88c70cea2542a3e74', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ca6f22b3d3224dc0bfbf4f0bc310ca31') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ca6f22b3d3224dc0bfbf4f0bc310ca31' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ca6f22b3d3224dc0bfbf4f0bc310ca31', x'55de216a4a364ca98685e26e6209bc40', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: b6b84871-ad3f-4373-8859-9d0997abd467\n', NULL, NULL, NULL, 0, 'guest_b6b84871-ad3f-4373-8859-9d0997abd467_destroy', '2013-01-07 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:06', '2012-12-31 12:46:06', '', '', 1, x'04996844968944389f40eba65f2ed80d', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'04996844968944389f40eba65f2ed80d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'baceb4a9484740969747ffb655503095', '5e34d369e8521b962b774928abd80e07', x'04996844968944389f40eba65f2ed80d', 'User', '2012-12-31 12:46:06') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'04996844968944389f40eba65f2ed80d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'24ad4d39ba9a4a73b3d461b7827bc5cf', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account24ad4d39-ba9a-4a73-b3d4-61b7827bc5cf' WHERE `accounts`.`id` = x'24ad4d39ba9a4a73b3d461b7827bc5cf' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'24ad4d39ba9a4a73b3d461b7827bc5cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'24ad4d39ba9a4a73b3d461b7827bc5cf', x'2e6f37091fc943779deae0c8b41fe121', x'04996844968944389f40eba65f2ed80d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2e6f37091fc943779deae0c8b41fe121') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2e6f37091fc943779deae0c8b41fe121' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2e6f37091fc943779deae0c8b41fe121', x'4c95220b04864528bdc512edcb7f1c14', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2e6f37091fc943779deae0c8b41fe121') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2e6f37091fc943779deae0c8b41fe121' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2e6f37091fc943779deae0c8b41fe121', x'abc2c9980d684915bbb1b7bc0ddd02b6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: 04996844-9689-4438-9f40-eba65f2ed80d\n', NULL, NULL, NULL, 0, 'guest_04996844-9689-4438-9f40-eba65f2ed80d_destroy', '2013-01-07 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:06', '2012-12-31 12:46:06', '', '', 1, x'102208706eb1477fb990f776894fa996', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'102208706eb1477fb990f776894fa996' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'3add403b8fe9408bbfa7d51f2f1356b4', 'aea6ece9682bb8d114692bf23ea6db60', x'102208706eb1477fb990f776894fa996', 'User', '2012-12-31 12:46:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'102208706eb1477fb990f776894fa996' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'f5f9b9184db04a83a0a5f87cae08b816', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'accountf5f9b918-4db0-4a83-a0a5-f87cae08b816' WHERE `accounts`.`id` = x'f5f9b9184db04a83a0a5f87cae08b816' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f5f9b9184db04a83a0a5f87cae08b816' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f5f9b9184db04a83a0a5f87cae08b816', x'995b47369b6e40d8be389f8c47eddd3d', x'102208706eb1477fb990f776894fa996') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'995b47369b6e40d8be389f8c47eddd3d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'995b47369b6e40d8be389f8c47eddd3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'995b47369b6e40d8be389f8c47eddd3d', x'65ba9d215ab9472da0ae9d6edbbabc44', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'995b47369b6e40d8be389f8c47eddd3d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'995b47369b6e40d8be389f8c47eddd3d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'995b47369b6e40d8be389f8c47eddd3d', x'40209cb7e1654cfa8bcddf6d1327a0fa', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: 10220870-6eb1-477f-b990-f776894fa996\n', NULL, NULL, NULL, 0, 'guest_10220870-6eb1-477f-b990-f776894fa996_destroy', '2013-01-07 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:06', '2012-12-31 12:46:06', '', '', 1, x'1cb65a6361f441c6b420eca644bf65e0', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1cb65a6361f441c6b420eca644bf65e0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:06', 'User', x'94de746e41b04f619a850e4a2071394f', '0d1899dcd33d4fbb2d8b05422ec4bdf2', x'1cb65a6361f441c6b420eca644bf65e0', 'User', '2012-12-31 12:46:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1cb65a6361f441c6b420eca644bf65e0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:06', x'9ef5c530ea4441db91d93f4df79fc11e', NULL, NULL, NULL, '2012-12-31 12:46:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:06', `updated_at` = '2012-12-31 12:46:06', `subdomain` = 'account9ef5c530-ea44-41db-91d9-3f4df79fc11e' WHERE `accounts`.`id` = x'9ef5c530ea4441db91d93f4df79fc11e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9ef5c530ea4441db91d93f4df79fc11e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9ef5c530ea4441db91d93f4df79fc11e', x'78b6a98a78f842b2bc59aea8243576f6', x'1cb65a6361f441c6b420eca644bf65e0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'78b6a98a78f842b2bc59aea8243576f6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78b6a98a78f842b2bc59aea8243576f6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78b6a98a78f842b2bc59aea8243576f6', x'316a875c9f454a84bb0ba12e17dbb2f8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'78b6a98a78f842b2bc59aea8243576f6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78b6a98a78f842b2bc59aea8243576f6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78b6a98a78f842b2bc59aea8243576f6', x'8d791ce6a86c49459147356343f9a0af', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: 1cb65a63-61f4-41c6-b420-eca644bf65e0\n', NULL, NULL, NULL, 0, 'guest_1cb65a63-61f4-41c6-b420-eca644bf65e0_destroy', '2013-01-07 12:46:06', '2012-12-31 12:46:06')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:06', '2012-12-31 12:46:06', '', '', 1, x'dbe6e1f33763428ca7af12c9217d5ee4', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dbe6e1f33763428ca7af12c9217d5ee4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:07', 'User', x'7b4c3814c4f74a0ba801ab6e929142b9', '5a4accedb6455a6a79866f4653619439', x'dbe6e1f33763428ca7af12c9217d5ee4', 'User', '2012-12-31 12:46:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dbe6e1f33763428ca7af12c9217d5ee4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:07', x'741e25b0864f4739be8f06fd7b861d07', NULL, NULL, NULL, '2012-12-31 12:46:07')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:07', `updated_at` = '2012-12-31 12:46:07', `subdomain` = 'account741e25b0-864f-4739-be8f-06fd7b861d07' WHERE `accounts`.`id` = x'741e25b0864f4739be8f06fd7b861d07' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'741e25b0864f4739be8f06fd7b861d07' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'741e25b0864f4739be8f06fd7b861d07', x'2b61961babfc43eb9bf37b8eb1d887b9', x'dbe6e1f33763428ca7af12c9217d5ee4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2b61961babfc43eb9bf37b8eb1d887b9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b61961babfc43eb9bf37b8eb1d887b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b61961babfc43eb9bf37b8eb1d887b9', x'ebeab015e80a48d8abfde7b8dbc03f6d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2b61961babfc43eb9bf37b8eb1d887b9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b61961babfc43eb9bf37b8eb1d887b9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b61961babfc43eb9bf37b8eb1d887b9', x'2c410ef9fdcc4ea6bd109bd34bd36dc1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:07', NULL, '--- !ruby/struct:DestroyUserJob\nid: dbe6e1f3-3763-428c-a7af-12c9217d5ee4\n', NULL, NULL, NULL, 0, 'guest_dbe6e1f3-3763-428c-a7af-12c9217d5ee4_destroy', '2013-01-07 12:46:07', '2012-12-31 12:46:07')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM `delayed_jobs`   (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:07 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:07 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:07', '2012-12-31 12:46:07', 'facebook@test.test', '', NULL, x'6b37f08426bc4fed8193885579fdbdc5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:07') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6b37f08426bc4fed8193885579fdbdc5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:07', 'User', x'1690335a9d754091b65e3bf006653d3a', 'd304dfdb23450385a64b08a6a49d63f2', x'6b37f08426bc4fed8193885579fdbdc5', 'User', '2012-12-31 12:46:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6b37f08426bc4fed8193885579fdbdc5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:07', x'af38f223a1ea4129ac8577a6afdd9fd7', NULL, NULL, NULL, '2012-12-31 12:46:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:07', `updated_at` = '2012-12-31 12:46:07', `subdomain` = 'accountaf38f223-a1ea-4129-ac85-77a6afdd9fd7' WHERE `accounts`.`id` = x'af38f223a1ea4129ac8577a6afdd9fd7' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'af38f223a1ea4129ac8577a6afdd9fd7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'af38f223a1ea4129ac8577a6afdd9fd7', x'6c56972f66a341358f4247c5f003aab6', x'6b37f08426bc4fed8193885579fdbdc5') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6c56972f66a341358f4247c5f003aab6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6c56972f66a341358f4247c5f003aab6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6c56972f66a341358f4247c5f003aab6', x'c745eeb3f73a464189929ddac7884cba', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6c56972f66a341358f4247c5f003aab6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6c56972f66a341358f4247c5f003aab6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6c56972f66a341358f4247c5f003aab6', x'84462ced239e4d788c8cb894b2c95a04', 'admin') Sent mail to facebook@test.test (6ms) Date: Mon, 31 Dec 2012 10:46:07 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1890f2cd3a_f6180435d482639f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'e6053416a490408087409779dedcc7f0', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'6b37f08426bc4fed8193885579fdbdc5')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b37f08426bc4fed8193885579fdbdc5' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b37f08426bc4fed8193885579fdbdc5' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:07 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6b37f08426bc4fed8193885579fdbdc5' LIMIT 1 Completed 200 OK in 106ms (Views: 103.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'af38f223a1ea4129ac8577a6afdd9fd7' AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'af38f223a1ea4129ac8577a6afdd9fd7', x'447fb9cee0cc4e9baf11bba14f40b1c5', NULL, 'index.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/AF38F223A1EA4129AC8577A6AFDD9FD7/domains" for 127.0.0.1 at 2012-12-31 10:46:07 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"AF38F223A1EA4129AC8577A6AFDD9FD7"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6b37f08426bc4fed8193885579fdbdc5' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'af38f223a1ea4129ac8577a6afdd9fd7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_af38f223-a1ea-4129-ac85-77a6afdd9fd7_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6b37f08426bc4fed8193885579fdbdc5' AND `account_users`.`account_id` = x'af38f223a1ea4129ac8577a6afdd9fd7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6c56972f66a341358f4247c5f003aab6' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6c56972f66a341358f4247c5f003aab6' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b37f08426bc4fed8193885579fdbdc5' AND `accounts`.`id` = x'af38f223a1ea4129ac8577a6afdd9fd7' LIMIT 1 Completed 200 OK in 714ms (Views: 703.3ms | ActiveRecord: 1.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:08', '2012-12-31 12:46:08', 'facebook@test.test', '', NULL, x'7f4846f229c640d7bd1fb9935edba810', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7f4846f229c640d7bd1fb9935edba810' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:08', 'User', x'd560fb48756641eeb8fe168d0d52ccbd', '3897e3c139af9c5edbc9144b75ef8dc7', x'7f4846f229c640d7bd1fb9935edba810', 'User', '2012-12-31 12:46:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7f4846f229c640d7bd1fb9935edba810' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:08', x'caf4deccb263401f88abedb5d3567af7', NULL, NULL, NULL, '2012-12-31 12:46:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:08', `updated_at` = '2012-12-31 12:46:08', `subdomain` = 'accountcaf4decc-b263-401f-88ab-edb5d3567af7' WHERE `accounts`.`id` = x'caf4deccb263401f88abedb5d3567af7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'caf4deccb263401f88abedb5d3567af7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'caf4deccb263401f88abedb5d3567af7', x'2d0cf17b29b54c869083aa7a081266d1', x'7f4846f229c640d7bd1fb9935edba810') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2d0cf17b29b54c869083aa7a081266d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2d0cf17b29b54c869083aa7a081266d1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2d0cf17b29b54c869083aa7a081266d1', x'9306dc5e48c643628cf0835830258119', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2d0cf17b29b54c869083aa7a081266d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2d0cf17b29b54c869083aa7a081266d1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2d0cf17b29b54c869083aa7a081266d1', x'd2fde370b1c449fa9a2567c6124680e7', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189104e2ed_f6180435d48264d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a2c07fbd8da643338fcb5dbdcff1c25c', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'7f4846f229c640d7bd1fb9935edba810')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f4846f229c640d7bd1fb9935edba810' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f4846f229c640d7bd1fb9935edba810' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 5.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7f4846f229c640d7bd1fb9935edba810' LIMIT 1 Completed 200 OK in 102ms (Views: 99.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'caf4deccb263401f88abedb5d3567af7' AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'caf4deccb263401f88abedb5d3567af7', x'e3cb8c8c6c1742a2ab21490296e0af8c', NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/CAF4DECCB263401F88ABEDB5D3567AF7/domains" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"CAF4DECCB263401F88ABEDB5D3567AF7"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7f4846f229c640d7bd1fb9935edba810' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'caf4deccb263401f88abedb5d3567af7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_caf4decc-b263-401f-88ab-edb5d3567af7_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7f4846f229c640d7bd1fb9935edba810' AND `account_users`.`account_id` = x'caf4deccb263401f88abedb5d3567af7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2d0cf17b29b54c869083aa7a081266d1' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2d0cf17b29b54c869083aa7a081266d1' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7f4846f229c640d7bd1fb9935edba810' AND `accounts`.`id` = x'caf4deccb263401f88abedb5d3567af7' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'caf4deccb263401f88abedb5d3567af7' AND `account_domains`.`account_id` = x'caf4deccb263401f88abedb5d3567af7' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'caf4deccb263401f88abedb5d3567af7' AND `account_users`.`user_id` = x'7f4846f229c640d7bd1fb9935edba810' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2d0cf17b29b54c869083aa7a081266d1' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 9.7ms | ActiveRecord: 2.5ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:08', '2012-12-31 12:46:08', 'facebook@test.test', '', NULL, x'88fafdc09ea64d0191b65baa751f7ce2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:08') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'88fafdc09ea64d0191b65baa751f7ce2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:08', 'User', x'e767354f6eb24649a59fad216a169827', '33d5102dcbba5d80a41a0e9b9b573bb0', x'88fafdc09ea64d0191b65baa751f7ce2', 'User', '2012-12-31 12:46:08') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'88fafdc09ea64d0191b65baa751f7ce2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:08', x'0c404555794e4421986131c424c873fb', NULL, NULL, NULL, '2012-12-31 12:46:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:08', `updated_at` = '2012-12-31 12:46:08', `subdomain` = 'account0c404555-794e-4421-9861-31c424c873fb' WHERE `accounts`.`id` = x'0c404555794e4421986131c424c873fb' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0c404555794e4421986131c424c873fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0c404555794e4421986131c424c873fb', x'7f95c2a6643649e49d2bb6092113a885', x'88fafdc09ea64d0191b65baa751f7ce2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7f95c2a6643649e49d2bb6092113a885') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f95c2a6643649e49d2bb6092113a885' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f95c2a6643649e49d2bb6092113a885', x'495cdd2d15e146d9b90d25786313e488', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7f95c2a6643649e49d2bb6092113a885') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f95c2a6643649e49d2bb6092113a885' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f95c2a6643649e49d2bb6092113a885', x'12c71eed27074fc693cad91ce051eb64', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189107feaa_f6180435d48265b8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'd08da6174250443f829dfddfdffbf41f', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'88fafdc09ea64d0191b65baa751f7ce2')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'88fafdc09ea64d0191b65baa751f7ce2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'88fafdc09ea64d0191b65baa751f7ce2' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'88fafdc09ea64d0191b65baa751f7ce2' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0c404555794e4421986131c424c873fb' AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0c404555794e4421986131c424c873fb', x'38b8dfe0abc14fad82b3342605821e38', NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'38b8dfe0abc14fad82b3342605821e38'  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/0C404555794E4421986131C424C873FB/domains" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"0C404555794E4421986131C424C873FB"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'88fafdc09ea64d0191b65baa751f7ce2' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0c404555794e4421986131c424c873fb' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_0c404555-794e-4421-9861-31c424c873fb_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'88fafdc09ea64d0191b65baa751f7ce2' AND `account_users`.`account_id` = x'0c404555794e4421986131c424c873fb' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7f95c2a6643649e49d2bb6092113a885' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7f95c2a6643649e49d2bb6092113a885' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'88fafdc09ea64d0191b65baa751f7ce2' AND `accounts`.`id` = x'0c404555794e4421986131c424c873fb' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'0c404555794e4421986131c424c873fb' AND `account_domains`.`account_id` = x'0c404555794e4421986131c424c873fb' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0c404555794e4421986131c424c873fb' AND `account_users`.`user_id` = x'88fafdc09ea64d0191b65baa751f7ce2' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7f95c2a6643649e49d2bb6092113a885' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 9.0ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:08', '2012-12-31 12:46:08', 'facebook@test.test', '', NULL, x'ed95a74bf43e46318516e46cae03d893', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ed95a74bf43e46318516e46cae03d893' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:08', 'User', x'9da2d2570b254c7ab91d6872434e2498', '3b7d2d43c694c9768a8ca099aa1cc2a3', x'ed95a74bf43e46318516e46cae03d893', 'User', '2012-12-31 12:46:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ed95a74bf43e46318516e46cae03d893' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:08', x'127bcc410379428e83a58db12b7bfd19', NULL, NULL, NULL, '2012-12-31 12:46:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:08', `updated_at` = '2012-12-31 12:46:08', `subdomain` = 'account127bcc41-0379-428e-83a5-8db12b7bfd19' WHERE `accounts`.`id` = x'127bcc410379428e83a58db12b7bfd19' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'127bcc410379428e83a58db12b7bfd19' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'127bcc410379428e83a58db12b7bfd19', x'f83c7a60fb894513b07da91e8213c6ed', x'ed95a74bf43e46318516e46cae03d893') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f83c7a60fb894513b07da91e8213c6ed') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f83c7a60fb894513b07da91e8213c6ed' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f83c7a60fb894513b07da91e8213c6ed', x'6e737e6e87d941c1bff939dfa175669f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f83c7a60fb894513b07da91e8213c6ed') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f83c7a60fb894513b07da91e8213c6ed' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f83c7a60fb894513b07da91e8213c6ed', x'f0057a3a51834e80a9a52da729541e14', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189109a0a0_f6180435d48266bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'f9275ed222804fac9795235389bd9845', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'ed95a74bf43e46318516e46cae03d893')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ed95a74bf43e46318516e46cae03d893' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ed95a74bf43e46318516e46cae03d893' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ed95a74bf43e46318516e46cae03d893' LIMIT 1 Completed 200 OK in 109ms (Views: 106.8ms | ActiveRecord: 0.3ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'127bcc410379428e83a58db12b7bfd19' AND `account_domains`.`url` = 'index.test.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'127bcc410379428e83a58db12b7bfd19', x'869b3e48f45b438cbf365e9e1bb5286f', NULL, 'index.test.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = x'869b3e48f45b438cbf365e9e1bb5286f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'869b3e48f45b438cbf365e9e1bb5286f'  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/127BCC410379428E83A58DB12B7BFD19/domains" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"127BCC410379428E83A58DB12B7BFD19"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ed95a74bf43e46318516e46cae03d893' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'127bcc410379428e83a58db12b7bfd19' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_127bcc41-0379-428e-83a5-8db12b7bfd19_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ed95a74bf43e46318516e46cae03d893' AND `account_users`.`account_id` = x'127bcc410379428e83a58db12b7bfd19' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f83c7a60fb894513b07da91e8213c6ed' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f83c7a60fb894513b07da91e8213c6ed' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ed95a74bf43e46318516e46cae03d893' AND `accounts`.`id` = x'127bcc410379428e83a58db12b7bfd19' LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'127bcc410379428e83a58db12b7bfd19' AND `account_domains`.`account_id` = x'127bcc410379428e83a58db12b7bfd19' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'127bcc410379428e83a58db12b7bfd19' AND `account_users`.`user_id` = x'ed95a74bf43e46318516e46cae03d893' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f83c7a60fb894513b07da91e8213c6ed' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 9.3ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:08', '2012-12-31 12:46:08', 'facebook@test.test', '', NULL, x'26cba0b2e2a044288aefaba8212238e5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'26cba0b2e2a044288aefaba8212238e5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:08', 'User', x'4782ecef17944e2a9850ac31e56cbac3', 'e0c448a6c550e41dae3c1ab4eb8d3c83', x'26cba0b2e2a044288aefaba8212238e5', 'User', '2012-12-31 12:46:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'26cba0b2e2a044288aefaba8212238e5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:08', x'a70349a15b034e1fa23a858e214cb93b', NULL, NULL, NULL, '2012-12-31 12:46:08')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:08', `updated_at` = '2012-12-31 12:46:08', `subdomain` = 'accounta70349a1-5b03-4e1f-a23a-858e214cb93b' WHERE `accounts`.`id` = x'a70349a15b034e1fa23a858e214cb93b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a70349a15b034e1fa23a858e214cb93b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a70349a15b034e1fa23a858e214cb93b', x'95c8d759db48492eb8c9044d10aba563', x'26cba0b2e2a044288aefaba8212238e5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'95c8d759db48492eb8c9044d10aba563') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95c8d759db48492eb8c9044d10aba563' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95c8d759db48492eb8c9044d10aba563', x'3affbbac396641c5b07a040ddbfbab14', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'95c8d759db48492eb8c9044d10aba563') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95c8d759db48492eb8c9044d10aba563' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95c8d759db48492eb8c9044d10aba563', x'88c4cd78113a4608b8a7af8973982f2d', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18910ce6ff_f6180435d48267ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'60317831c631473c98fed577e4b827cb', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'26cba0b2e2a044288aefaba8212238e5')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'26cba0b2e2a044288aefaba8212238e5' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'26cba0b2e2a044288aefaba8212238e5' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'26cba0b2e2a044288aefaba8212238e5' LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a70349a15b034e1fa23a858e214cb93b' AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a70349a15b034e1fa23a858e214cb93b', x'462bbf361f594281ade2031fad2ffd35', NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = x'462bbf361f594281ade2031fad2ffd35'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'462bbf361f594281ade2031fad2ffd35'  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/A70349A15B034E1FA23A858E214CB93B/domains" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"A70349A15B034E1FA23A858E214CB93B"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'26cba0b2e2a044288aefaba8212238e5' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a70349a15b034e1fa23a858e214cb93b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a70349a1-5b03-4e1f-a23a-858e214cb93b_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'26cba0b2e2a044288aefaba8212238e5' AND `account_users`.`account_id` = x'a70349a15b034e1fa23a858e214cb93b' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'95c8d759db48492eb8c9044d10aba563' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'95c8d759db48492eb8c9044d10aba563' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'26cba0b2e2a044288aefaba8212238e5' AND `accounts`.`id` = x'a70349a15b034e1fa23a858e214cb93b' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'a70349a15b034e1fa23a858e214cb93b' AND `account_domains`.`account_id` = x'a70349a15b034e1fa23a858e214cb93b' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a70349a15b034e1fa23a858e214cb93b' AND `account_users`.`user_id` = x'26cba0b2e2a044288aefaba8212238e5' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'95c8d759db48492eb8c9044d10aba563' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 8.8ms | ActiveRecord: 2.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:08', '2012-12-31 12:46:08', 'facebook@test.test', '', NULL, x'2c6a11a5d21e4fec9633488c37f164cf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:08') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2c6a11a5d21e4fec9633488c37f164cf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:08', 'User', x'd9155f8e22164927a68b218e982eb8f7', 'cd99c061fa42aa4e61e905230392e769', x'2c6a11a5d21e4fec9633488c37f164cf', 'User', '2012-12-31 12:46:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2c6a11a5d21e4fec9633488c37f164cf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:08', x'abc7aac723d14f77acca7cd7b4de1d63', NULL, NULL, NULL, '2012-12-31 12:46:08')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:08', `updated_at` = '2012-12-31 12:46:08', `subdomain` = 'accountabc7aac7-23d1-4f77-acca-7cd7b4de1d63' WHERE `accounts`.`id` = x'abc7aac723d14f77acca7cd7b4de1d63' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'abc7aac723d14f77acca7cd7b4de1d63' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'abc7aac723d14f77acca7cd7b4de1d63', x'9f2257684e794642b959a6dcffcfb4e4', x'2c6a11a5d21e4fec9633488c37f164cf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9f2257684e794642b959a6dcffcfb4e4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f2257684e794642b959a6dcffcfb4e4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f2257684e794642b959a6dcffcfb4e4', x'852ca2cf2bc14a309cf9ab2a67b1873f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9f2257684e794642b959a6dcffcfb4e4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f2257684e794642b959a6dcffcfb4e4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f2257684e794642b959a6dcffcfb4e4', x'503358c1f671425e8d77c7a8b5109cf8', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:08 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18910e879b_f6180435d48268dd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'2cc893d767784604af57d33b07d8276d', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'2c6a11a5d21e4fec9633488c37f164cf')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c6a11a5d21e4fec9633488c37f164cf' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c6a11a5d21e4fec9633488c37f164cf' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 5.4ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:08 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c6a11a5d21e4fec9633488c37f164cf' LIMIT 1 Completed 200 OK in 109ms (Views: 107.0ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'abc7aac723d14f77acca7cd7b4de1d63' AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'abc7aac723d14f77acca7cd7b4de1d63', x'6e930c17ba454a11b150cdc4e9b15b84', NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'6e930c17ba454a11b150cdc4e9b15b84'  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/ABC7AAC723D14F77ACCA7CD7B4DE1D63/domains" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"ABC7AAC723D14F77ACCA7CD7B4DE1D63"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c6a11a5d21e4fec9633488c37f164cf' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'abc7aac723d14f77acca7cd7b4de1d63' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_abc7aac7-23d1-4f77-acca-7cd7b4de1d63_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2c6a11a5d21e4fec9633488c37f164cf' AND `account_users`.`account_id` = x'abc7aac723d14f77acca7cd7b4de1d63' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f2257684e794642b959a6dcffcfb4e4' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f2257684e794642b959a6dcffcfb4e4' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c6a11a5d21e4fec9633488c37f164cf' AND `accounts`.`id` = x'abc7aac723d14f77acca7cd7b4de1d63' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'abc7aac723d14f77acca7cd7b4de1d63' AND `account_domains`.`account_id` = x'abc7aac723d14f77acca7cd7b4de1d63' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'abc7aac723d14f77acca7cd7b4de1d63' AND `account_users`.`user_id` = x'2c6a11a5d21e4fec9633488c37f164cf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f2257684e794642b959a6dcffcfb4e4' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 9.2ms | ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:09', '2012-12-31 12:46:09', 'facebook@test.test', '', NULL, x'4d3add4159a1421aaf165a6f6870105f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4d3add4159a1421aaf165a6f6870105f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:09', 'User', x'd5afddb356fa48abacc3310cd99b6fa7', '2a1372b1b1c8c3cd9467fc95dbeafab7', x'4d3add4159a1421aaf165a6f6870105f', 'User', '2012-12-31 12:46:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4d3add4159a1421aaf165a6f6870105f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:09', x'99a9fdf49c994a54800ef3d541b94f33', NULL, NULL, NULL, '2012-12-31 12:46:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:09', `updated_at` = '2012-12-31 12:46:09', `subdomain` = 'account99a9fdf4-9c99-4a54-800e-f3d541b94f33' WHERE `accounts`.`id` = x'99a9fdf49c994a54800ef3d541b94f33' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'99a9fdf49c994a54800ef3d541b94f33' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'99a9fdf49c994a54800ef3d541b94f33', x'e9f8d9e9371344698fb4b6b7802a5366', x'4d3add4159a1421aaf165a6f6870105f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e9f8d9e9371344698fb4b6b7802a5366') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9f8d9e9371344698fb4b6b7802a5366' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9f8d9e9371344698fb4b6b7802a5366', x'fc7e6486e48e4d68a64a54ae111f62bf', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e9f8d9e9371344698fb4b6b7802a5366') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9f8d9e9371344698fb4b6b7802a5366' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9f8d9e9371344698fb4b6b7802a5366', x'8259f6218ceb4114b73c4a30252e3caf', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1891127e71_f6180435d482697e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'846b490d27ac4bcf967ef5822445f3c7', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'4d3add4159a1421aaf165a6f6870105f')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4d3add4159a1421aaf165a6f6870105f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4d3add4159a1421aaf165a6f6870105f' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4d3add4159a1421aaf165a6f6870105f' LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'99a9fdf49c994a54800ef3d541b94f33' AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'99a9fdf49c994a54800ef3d541b94f33', x'4450f7f6a8c64a5da6b1c46e7f110415', NULL, 'index.test.net', NULL)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'4450f7f6a8c64a5da6b1c46e7f110415'  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/99A9FDF49C994A54800EF3D541B94F33/domains" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"99A9FDF49C994A54800EF3D541B94F33"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4d3add4159a1421aaf165a6f6870105f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'99a9fdf49c994a54800ef3d541b94f33' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_99a9fdf4-9c99-4a54-800e-f3d541b94f33_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4d3add4159a1421aaf165a6f6870105f' AND `account_users`.`account_id` = x'99a9fdf49c994a54800ef3d541b94f33' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e9f8d9e9371344698fb4b6b7802a5366' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e9f8d9e9371344698fb4b6b7802a5366' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4d3add4159a1421aaf165a6f6870105f' AND `accounts`.`id` = x'99a9fdf49c994a54800ef3d541b94f33' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'99a9fdf49c994a54800ef3d541b94f33' AND `account_domains`.`account_id` = x'99a9fdf49c994a54800ef3d541b94f33' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'99a9fdf49c994a54800ef3d541b94f33' AND `account_users`.`user_id` = x'4d3add4159a1421aaf165a6f6870105f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e9f8d9e9371344698fb4b6b7802a5366' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 9.4ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:09', '2012-12-31 12:46:09', 'facebook@test.test', '', NULL, x'fed82b49e3204c71943d8b3ebd97f6bf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fed82b49e3204c71943d8b3ebd97f6bf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:09', 'User', x'9fb26d9020e0418db3c411dfb87b7156', 'c1b602419a7cc018a24c0cce1970be97', x'fed82b49e3204c71943d8b3ebd97f6bf', 'User', '2012-12-31 12:46:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fed82b49e3204c71943d8b3ebd97f6bf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:09', x'4d32590f22394e84b8830abb840fb088', NULL, NULL, NULL, '2012-12-31 12:46:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:09', `updated_at` = '2012-12-31 12:46:09', `subdomain` = 'account4d32590f-2239-4e84-b883-0abb840fb088' WHERE `accounts`.`id` = x'4d32590f22394e84b8830abb840fb088' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d32590f22394e84b8830abb840fb088' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4d32590f22394e84b8830abb840fb088', x'06d82eb4c5c04ddb8da480cffc9d8e3f', x'fed82b49e3204c71943d8b3ebd97f6bf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'06d82eb4c5c04ddb8da480cffc9d8e3f', x'bc50fd6cf508489cafb51b193dd26b18', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'06d82eb4c5c04ddb8da480cffc9d8e3f', x'eccbc9dddfb4411ea3dacd3d011d2d28', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1891142c64_f6180435d48270e9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8cf8f3951c184cff8d723c454b5fabb2', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'fed82b49e3204c71943d8b3ebd97f6bf')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fed82b49e3204c71943d8b3ebd97f6bf' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fed82b49e3204c71943d8b3ebd97f6bf' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fed82b49e3204c71943d8b3ebd97f6bf' LIMIT 1 Completed 200 OK in 111ms (Views: 108.5ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4d32590f22394e84b8830abb840fb088' AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4d32590f22394e84b8830abb840fb088', x'52a21b17c92d48eea6b79fc01706ab94', NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'fed82b49e3204c71943d8b3ebd97f6bf' AND `account_users`.`account_id` = x'4d32590f22394e84b8830abb840fb088' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'eccbc9dddfb4411ea3dacd3d011d2d28'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f' LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4D32590F22394E84B8830ABB840FB088/domains" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"4D32590F22394E84B8830ABB840FB088"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fed82b49e3204c71943d8b3ebd97f6bf' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d32590f22394e84b8830abb840fb088' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4d32590f-2239-4e84-b883-0abb840fb088_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'fed82b49e3204c71943d8b3ebd97f6bf' AND `account_users`.`account_id` = x'4d32590f22394e84b8830abb840fb088' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fed82b49e3204c71943d8b3ebd97f6bf' AND `accounts`.`id` = x'4d32590f22394e84b8830abb840fb088' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4d32590f22394e84b8830abb840fb088' AND `account_domains`.`account_id` = x'4d32590f22394e84b8830abb840fb088' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4d32590f22394e84b8830abb840fb088' AND `account_users`.`user_id` = x'fed82b49e3204c71943d8b3ebd97f6bf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'06d82eb4c5c04ddb8da480cffc9d8e3f' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 9.2ms | ActiveRecord: 2.5ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:09', '2012-12-31 12:46:09', 'facebook@test.test', '', NULL, x'c291987d77704a61afd8ce49e31d0901', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:09') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c291987d77704a61afd8ce49e31d0901' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:09', 'User', x'8bf4a7ec48c14f99a34109f80ca8eba6', '8a3b9e0ac0c511593821986c0e3ddcd3', x'c291987d77704a61afd8ce49e31d0901', 'User', '2012-12-31 12:46:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c291987d77704a61afd8ce49e31d0901' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:09', x'f26eb6707b744f09b88ea7b706a1c0d0', NULL, NULL, NULL, '2012-12-31 12:46:09')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:09', `updated_at` = '2012-12-31 12:46:09', `subdomain` = 'accountf26eb670-7b74-4f09-b88e-a7b706a1c0d0' WHERE `accounts`.`id` = x'f26eb6707b744f09b88ea7b706a1c0d0' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f26eb6707b744f09b88ea7b706a1c0d0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f26eb6707b744f09b88ea7b706a1c0d0', x'2a7ec59f9b314a5897628bb3728ed7fc', x'c291987d77704a61afd8ce49e31d0901') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a7ec59f9b314a5897628bb3728ed7fc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a7ec59f9b314a5897628bb3728ed7fc', x'44d0f9bc99d14cec8da19bb0f5f9580a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a7ec59f9b314a5897628bb3728ed7fc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a7ec59f9b314a5897628bb3728ed7fc', x'c6017fe00d9040ea8f1a0ab1db1bd410', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18911794ec_f6180435d48271f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'2cdec56e15da46adabf5b9902773acf5', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'c291987d77704a61afd8ce49e31d0901')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c291987d77704a61afd8ce49e31d0901' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c291987d77704a61afd8ce49e31d0901' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c291987d77704a61afd8ce49e31d0901' LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c291987d77704a61afd8ce49e31d0901' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f26eb6707b744f09b88ea7b706a1c0d0' AND `account_users`.`user_id` = x'c291987d77704a61afd8ce49e31d0901' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a7ec59f9b314a5897628bb3728ed7fc' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'òn¶p{tO ¸Ž§·¡ÀÐ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c6017fe00d9040ea8f1a0ab1db1bd410'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a7ec59f9b314a5897628bb3728ed7fc' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/F26EB6707B744F09B88EA7B706A1C0D0/user/C291987D77704A61AFD8CE49E31D0901/roles" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"F26EB6707B744F09B88EA7B706A1C0D0", "user_id"=>"C291987D77704A61AFD8CE49E31D0901"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c291987d77704a61afd8ce49e31d0901' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c291987d77704a61afd8ce49e31d0901' AND `account_users`.`account_id` = x'f26eb6707b744f09b88ea7b706a1c0d0' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c291987d77704a61afd8ce49e31d0901' AND `accounts`.`id` = x'f26eb6707b744f09b88ea7b706a1c0d0' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f26eb6707b744f09b88ea7b706a1c0d0' AND `account_users`.`user_id` = x'c291987d77704a61afd8ce49e31d0901' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c291987d77704a61afd8ce49e31d0901' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f26eb6707b744f09b88ea7b706a1c0d0' AND `account_users`.`user_id` = x'c291987d77704a61afd8ce49e31d0901' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a7ec59f9b314a5897628bb3728ed7fc' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 27ms (Views: 15.5ms | ActiveRecord: 2.6ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:09', '2012-12-31 12:46:09', 'facebook@test.test', '', NULL, x'1a29b8ad58414ab091b53a999bdac90b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1a29b8ad58414ab091b53a999bdac90b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:09', 'User', x'e02c2246c6b2488f940758e6adf7d8fb', '2bf4ae20d9069acc898251322c37602a', x'1a29b8ad58414ab091b53a999bdac90b', 'User', '2012-12-31 12:46:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1a29b8ad58414ab091b53a999bdac90b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:09', x'eed6bad33cad4e0bb44cf657a0d55d5f', NULL, NULL, NULL, '2012-12-31 12:46:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:09', `updated_at` = '2012-12-31 12:46:09', `subdomain` = 'accounteed6bad3-3cad-4e0b-b44c-f657a0d55d5f' WHERE `accounts`.`id` = x'eed6bad33cad4e0bb44cf657a0d55d5f' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eed6bad33cad4e0bb44cf657a0d55d5f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eed6bad33cad4e0bb44cf657a0d55d5f', x'88e29a4a73c24842b2dd780af00a9b40', x'1a29b8ad58414ab091b53a999bdac90b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'88e29a4a73c24842b2dd780af00a9b40' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'88e29a4a73c24842b2dd780af00a9b40', x'342ccace6685497c9a0ebf5d81bc7cac', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'88e29a4a73c24842b2dd780af00a9b40' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'88e29a4a73c24842b2dd780af00a9b40', x'4900ba1f3cbc45f5a1260925e1bf45f4', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18911b083a_f6180435d48272da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'f79982c6a13649cab0453107dec9ebae', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'1a29b8ad58414ab091b53a999bdac90b')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a29b8ad58414ab091b53a999bdac90b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a29b8ad58414ab091b53a999bdac90b' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 163ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1a29b8ad58414ab091b53a999bdac90b' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a29b8ad58414ab091b53a999bdac90b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'eed6bad33cad4e0bb44cf657a0d55d5f' AND `account_users`.`user_id` = x'1a29b8ad58414ab091b53a999bdac90b' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'88e29a4a73c24842b2dd780af00a9b40' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'îÖºÓ<­N ´LöW Õ]_' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4900ba1f3cbc45f5a1260925e1bf45f4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'88e29a4a73c24842b2dd780af00a9b40' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/EED6BAD33CAD4E0BB44CF657A0D55D5F/user/1A29B8AD58414AB091B53A999BDAC90B/roles" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"EED6BAD33CAD4E0BB44CF657A0D55D5F", "user_id"=>"1A29B8AD58414AB091B53A999BDAC90B"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1a29b8ad58414ab091b53a999bdac90b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1a29b8ad58414ab091b53a999bdac90b' AND `account_users`.`account_id` = x'eed6bad33cad4e0bb44cf657a0d55d5f' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a29b8ad58414ab091b53a999bdac90b' AND `accounts`.`id` = x'eed6bad33cad4e0bb44cf657a0d55d5f' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'eed6bad33cad4e0bb44cf657a0d55d5f' AND `account_users`.`user_id` = x'1a29b8ad58414ab091b53a999bdac90b' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1a29b8ad58414ab091b53a999bdac90b' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'eed6bad33cad4e0bb44cf657a0d55d5f' AND `account_users`.`user_id` = x'1a29b8ad58414ab091b53a999bdac90b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'88e29a4a73c24842b2dd780af00a9b40' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 12.3ms | ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:09', '2012-12-31 12:46:09', 'facebook@test.test', '', NULL, x'38541bdcf855468590d371da7dce3f5a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:09') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'38541bdcf855468590d371da7dce3f5a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:09', 'User', x'295bdd3b8d8d4812a887a3d1af68a832', '157bc2084b88c9d4de228ed88e2a1883', x'38541bdcf855468590d371da7dce3f5a', 'User', '2012-12-31 12:46:09') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'38541bdcf855468590d371da7dce3f5a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:09', x'a3c6e21181ba4338b60bc78f98fef87b', NULL, NULL, NULL, '2012-12-31 12:46:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:09', `updated_at` = '2012-12-31 12:46:09', `subdomain` = 'accounta3c6e211-81ba-4338-b60b-c78f98fef87b' WHERE `accounts`.`id` = x'a3c6e21181ba4338b60bc78f98fef87b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a3c6e21181ba4338b60bc78f98fef87b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a3c6e21181ba4338b60bc78f98fef87b', x'017d5f49bb974ae08e4d0c233a31658a', x'38541bdcf855468590d371da7dce3f5a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'017d5f49bb974ae08e4d0c233a31658a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'017d5f49bb974ae08e4d0c233a31658a', x'fe428d87e8f04fe4bc77021ad167ca46', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'017d5f49bb974ae08e4d0c233a31658a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'017d5f49bb974ae08e4d0c233a31658a', x'ebd5df7c49554bcd93d85641080bc295', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:09 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18911ccc15_f6180435d4827336@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'acdfb907984a4c49ad3ce4f409a4b53d', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'38541bdcf855468590d371da7dce3f5a')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'38541bdcf855468590d371da7dce3f5a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'38541bdcf855468590d371da7dce3f5a' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'38541bdcf855468590d371da7dce3f5a' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'38541bdcf855468590d371da7dce3f5a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a3c6e21181ba4338b60bc78f98fef87b' AND `account_users`.`user_id` = x'38541bdcf855468590d371da7dce3f5a' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ebd5df7c49554bcd93d85641080bc295' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'017d5f49bb974ae08e4d0c233a31658a' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '£ÆâºC8¶ ǘþø{' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'017d5f49bb974ae08e4d0c233a31658a' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/A3C6E21181BA4338B60BC78F98FEF87B/user/38541BDCF855468590D371DA7DCE3F5A/roles" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"A3C6E21181BA4338B60BC78F98FEF87B", "user_id"=>"38541BDCF855468590D371DA7DCE3F5A"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'38541bdcf855468590d371da7dce3f5a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'38541bdcf855468590d371da7dce3f5a' AND `account_users`.`account_id` = x'a3c6e21181ba4338b60bc78f98fef87b' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'38541bdcf855468590d371da7dce3f5a' AND `accounts`.`id` = x'a3c6e21181ba4338b60bc78f98fef87b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a3c6e21181ba4338b60bc78f98fef87b' AND `account_users`.`user_id` = x'38541bdcf855468590d371da7dce3f5a' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'38541bdcf855468590d371da7dce3f5a' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a3c6e21181ba4338b60bc78f98fef87b' AND `account_users`.`user_id` = x'38541bdcf855468590d371da7dce3f5a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'017d5f49bb974ae08e4d0c233a31658a' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 24ms (Views: 12.5ms | ActiveRecord: 2.7ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:09 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:09', '2012-12-31 12:46:09', 'facebook@test.test', '', NULL, x'e3c0644cac4a43849655e4eaa7767c8b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e3c0644cac4a43849655e4eaa7767c8b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:09', 'User', x'1668ae327510461c87973227b00bd4f2', 'f7482f845ce43361f5d85848e9a2771d', x'e3c0644cac4a43849655e4eaa7767c8b', 'User', '2012-12-31 12:46:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e3c0644cac4a43849655e4eaa7767c8b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:09', x'9826e5bb41e9455f877b03b5feb8f79d', NULL, NULL, NULL, '2012-12-31 12:46:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:09', `updated_at` = '2012-12-31 12:46:09', `subdomain` = 'account9826e5bb-41e9-455f-877b-03b5feb8f79d' WHERE `accounts`.`id` = x'9826e5bb41e9455f877b03b5feb8f79d' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9826e5bb41e9455f877b03b5feb8f79d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9826e5bb41e9455f877b03b5feb8f79d', x'3cd4edb4f6e0400d82d97aea86d4e1cd', x'e3c0644cac4a43849655e4eaa7767c8b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3cd4edb4f6e0400d82d97aea86d4e1cd', x'85a3194364af478895f2859ecdf549f0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3cd4edb4f6e0400d82d97aea86d4e1cd', x'71169f7b90f24bef987ee894919e8e89', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18912eca8_f6180435d4827433@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'221d3c6a9da344c8afd17c9749bec5f6', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'e3c0644cac4a43849655e4eaa7767c8b')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3c0644cac4a43849655e4eaa7767c8b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3c0644cac4a43849655e4eaa7767c8b' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 163ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e3c0644cac4a43849655e4eaa7767c8b' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3c0644cac4a43849655e4eaa7767c8b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9826e5bb41e9455f877b03b5feb8f79d' AND `account_users`.`user_id` = x'e3c0644cac4a43849655e4eaa7767c8b' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'71169f7b90f24bef987ee894919e8e89' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '˜&å»AéE_‡{µþ¸÷' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/9826E5BB41E9455F877B03B5FEB8F79D/user/E3C0644CAC4A43849655E4EAA7767C8B/roles" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"9826E5BB41E9455F877B03B5FEB8F79D", "user_id"=>"E3C0644CAC4A43849655E4EAA7767C8B"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e3c0644cac4a43849655e4eaa7767c8b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e3c0644cac4a43849655e4eaa7767c8b' AND `account_users`.`account_id` = x'9826e5bb41e9455f877b03b5feb8f79d' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3c0644cac4a43849655e4eaa7767c8b' AND `accounts`.`id` = x'9826e5bb41e9455f877b03b5feb8f79d' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9826e5bb41e9455f877b03b5feb8f79d' AND `account_users`.`user_id` = x'e3c0644cac4a43849655e4eaa7767c8b' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e3c0644cac4a43849655e4eaa7767c8b' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9826e5bb41e9455f877b03b5feb8f79d' AND `account_users`.`user_id` = x'e3c0644cac4a43849655e4eaa7767c8b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3cd4edb4f6e0400d82d97aea86d4e1cd' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 24ms (Views: 13.5ms | ActiveRecord: 2.3ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:10', '2012-12-31 12:46:10', 'facebook@test.test', '', NULL, x'f2e1150a963347bdbe81ce10e7d8b380', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f2e1150a963347bdbe81ce10e7d8b380' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:10', 'User', x'd75a4e902ba74bb48a86b7d6d445fc8a', 'e548bff3e50f9ff92f954fc2a86f6ab3', x'f2e1150a963347bdbe81ce10e7d8b380', 'User', '2012-12-31 12:46:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f2e1150a963347bdbe81ce10e7d8b380' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'4551f45f479147dc81333b6eeb32311c', NULL, NULL, NULL, '2012-12-31 12:46:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'account4551f45f-4791-47dc-8133-3b6eeb32311c' WHERE `accounts`.`id` = x'4551f45f479147dc81333b6eeb32311c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4551f45f479147dc81333b6eeb32311c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4551f45f479147dc81333b6eeb32311c', x'fd842eea350e4f2491be9b252e54c2c5', x'f2e1150a963347bdbe81ce10e7d8b380') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd842eea350e4f2491be9b252e54c2c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd842eea350e4f2491be9b252e54c2c5', x'b4c7c1f197f14b85ae4c7ebce34c82cf', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd842eea350e4f2491be9b252e54c2c5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd842eea350e4f2491be9b252e54c2c5', x'e46a889a8b8d46148096015001f9a6fd', 'admin') Sent mail to facebook@test.test (6ms) Date: Mon, 31 Dec 2012 10:46:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189122aade_f6180435d48275b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'82268075d8a54c4d8624f6a6231c7ff7', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'f2e1150a963347bdbe81ce10e7d8b380')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4551f45f479147dc81333b6eeb32311c' AND `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:10', 'notowner@account.test', '$2a$04$GOaviuUeyE8fAT0MaujKo./Mbey7pkQa.0BAQp/eUuLn/fz97WRsi', NULL, x'67e543f79e324a0fb0375ecbd0c7c73c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'67e543f79e324a0fb0375ecbd0c7c73c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:10', 'User', x'9ebf0771be03432bb28ba06326cf575d', '47eeddbdc5ae8dcfbf6f23870bc2c5a1', x'67e543f79e324a0fb0375ecbd0c7c73c', 'User', '2012-12-31 12:46:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'67e543f79e324a0fb0375ecbd0c7c73c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'07c541af3c8146168f97ac5c894da9d5', NULL, NULL, NULL, '2012-12-31 12:46:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'account07c541af-3c81-4616-8f97-ac5c894da9d5' WHERE `accounts`.`id` = x'07c541af3c8146168f97ac5c894da9d5' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07c541af3c8146168f97ac5c894da9d5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'07c541af3c8146168f97ac5c894da9d5', x'90af5e36813e4608aab1094cbcbe67a9', x'67e543f79e324a0fb0375ecbd0c7c73c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'90af5e36813e4608aab1094cbcbe67a9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90af5e36813e4608aab1094cbcbe67a9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90af5e36813e4608aab1094cbcbe67a9', x'5cb36b994f4f4ee99bfa23f60e92f3da', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'90af5e36813e4608aab1094cbcbe67a9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90af5e36813e4608aab1094cbcbe67a9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90af5e36813e4608aab1094cbcbe67a9', x'99954066a37340919124d4c8f266115d', 'admin') Sent mail to notowner@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:10 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e189123bc0f_f6180435d4827667@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'09b8c1493a7a4c029f6664a849f5994c', 'jabanilson', NULL, 1, '2012-12-31 12:46:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'account09b8c149-3a7a-4c02-9f66-64a849f5994c' WHERE `accounts`.`id` = x'09b8c1493a7a4c029f6664a849f5994c'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'09b8c1493a7a4c029f6664a849f5994c', x'ae5c794c8c2e4669b880f63449334b1a', x'67e543f79e324a0fb0375ecbd0c7c73c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ae5c794c8c2e4669b880f63449334b1a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae5c794c8c2e4669b880f63449334b1a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae5c794c8c2e4669b880f63449334b1a', x'9cd4189e57044ca791db07b0bdfb137d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ae5c794c8c2e4669b880f63449334b1a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae5c794c8c2e4669b880f63449334b1a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae5c794c8c2e4669b880f63449334b1a', x'a11988da1e6247bdaff449aa831de0fc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4551f45f479147dc81333b6eeb32311c' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'4551f45f479147dc81333b6eeb32311c' WHERE `account_users`.`id` = x'ae5c794c8c2e4669b880f63449334b1a'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd842eea350e4f2491be9b252e54c2c5' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'EQô_G‘GÜ3;në21' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b4c7c1f197f14b85ae4c7ebce34c82cf' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e46a889a8b8d46148096015001f9a6fd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fd842eea350e4f2491be9b252e54c2c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fd842eea350e4f2491be9b252e54c2c5', x'fba4d224de4e42ab9c1ed69ca6febf8b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4551F45F479147DC81333B6EEB32311C/user/F2E1150A963347BDBE81CE10E7D8B380/roles" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"4551F45F479147DC81333B6EEB32311C", "user_id"=>"F2E1150A963347BDBE81CE10E7D8B380"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' AND `account_users`.`account_id` = x'4551f45f479147dc81333b6eeb32311c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' AND `accounts`.`id` = x'4551f45f479147dc81333b6eeb32311c' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4551f45f479147dc81333b6eeb32311c' AND `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4551f45f479147dc81333b6eeb32311c' AND `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4551f45f479147dc81333b6eeb32311c' AND `account_users`.`user_id` = x'f2e1150a963347bdbe81ce10e7d8b380' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fd842eea350e4f2491be9b252e54c2c5' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 12.1ms | ActiveRecord: 2.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:10', '2012-12-31 12:46:10', 'facebook@test.test', '', NULL, x'ae8e0b09ec1c46fda34ea373480163e8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ae8e0b09ec1c46fda34ea373480163e8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:10', 'User', x'ef6ac9eef0f840fbbad4e37c05d3c034', '196e155726dfd7307d701f8baee34c5f', x'ae8e0b09ec1c46fda34ea373480163e8', 'User', '2012-12-31 12:46:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ae8e0b09ec1c46fda34ea373480163e8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'97d4cc4d03f747cd97c43680aef08093', NULL, NULL, NULL, '2012-12-31 12:46:10')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'account97d4cc4d-03f7-47cd-97c4-3680aef08093' WHERE `accounts`.`id` = x'97d4cc4d03f747cd97c43680aef08093' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'97d4cc4d03f747cd97c43680aef08093' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'97d4cc4d03f747cd97c43680aef08093', x'c693e2a5d5aa44eaa7927e83d0c98f66', x'ae8e0b09ec1c46fda34ea373480163e8') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c693e2a5d5aa44eaa7927e83d0c98f66', x'64f74abbd4a54a8e800503062fc00c40', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c693e2a5d5aa44eaa7927e83d0c98f66', x'ef4b43c520634dab82efa1043f0b9ad4', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189127163c_f6180435d4827715@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a6ec35a1cc6943019eae0ea78c8f178d', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'ae8e0b09ec1c46fda34ea373480163e8')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 169ms (ActiveRecord: 5.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'97d4cc4d03f747cd97c43680aef08093' AND `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:10', 'notowner@account.test', '$2a$04$/lbN3cVwmYRs/PORnCmpWenILJ0m/xu7yVRBSZ.jTJciCJGo/C8W.', NULL, x'b7361f9ceaf449b88cb6a3319c5d626c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b7361f9ceaf449b88cb6a3319c5d626c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:10', 'User', x'fa41bdbb4494447a974eae38445a2883', '0b8798a405d67b9c9f63eb01f6979c09', x'b7361f9ceaf449b88cb6a3319c5d626c', 'User', '2012-12-31 12:46:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b7361f9ceaf449b88cb6a3319c5d626c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'5d531788ee5046908ef206abb16db1ae', NULL, NULL, NULL, '2012-12-31 12:46:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'account5d531788-ee50-4690-8ef2-06abb16db1ae' WHERE `accounts`.`id` = x'5d531788ee5046908ef206abb16db1ae' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5d531788ee5046908ef206abb16db1ae' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5d531788ee5046908ef206abb16db1ae', x'ec794a52f0564790a7fa4fbdfc3eac7d', x'b7361f9ceaf449b88cb6a3319c5d626c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ec794a52f0564790a7fa4fbdfc3eac7d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ec794a52f0564790a7fa4fbdfc3eac7d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ec794a52f0564790a7fa4fbdfc3eac7d', x'6813599ac41640b4b1d3b48e8965f089', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ec794a52f0564790a7fa4fbdfc3eac7d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ec794a52f0564790a7fa4fbdfc3eac7d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ec794a52f0564790a7fa4fbdfc3eac7d', x'9072d33e5b8d4f31a16db877229a95ef', 'admin') Sent mail to notowner@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:10 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e18912822df_f6180435d482787d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'085bd25c2b64402eab9d1d5c75723a22', 'jabanilson', NULL, 1, '2012-12-31 12:46:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'account085bd25c-2b64-402e-ab9d-1d5c75723a22' WHERE `accounts`.`id` = x'085bd25c2b64402eab9d1d5c75723a22'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'085bd25c2b64402eab9d1d5c75723a22', x'c87aee50302347f1b951cb13ba250224', x'b7361f9ceaf449b88cb6a3319c5d626c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c87aee50302347f1b951cb13ba250224') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c87aee50302347f1b951cb13ba250224' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c87aee50302347f1b951cb13ba250224', x'60ab21f1ae0c42c8b28d7311bd06296d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c87aee50302347f1b951cb13ba250224') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c87aee50302347f1b951cb13ba250224' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c87aee50302347f1b951cb13ba250224', x'152a0fe03755445586e35936282464cb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'97d4cc4d03f747cd97c43680aef08093' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'97d4cc4d03f747cd97c43680aef08093' WHERE `account_users`.`id` = x'c87aee50302347f1b951cb13ba250224'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66'  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '—ÔÌM÷GÍ—Ä6€®ð€“' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'64f74abbd4a54a8e800503062fc00c40' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ef4b43c520634dab82efa1043f0b9ad4'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c693e2a5d5aa44eaa7927e83d0c98f66', x'f8045161b8724fc7916a680d3988fcc5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/97D4CC4D03F747CD97C43680AEF08093/user/AE8E0B09EC1C46FDA34EA373480163E8/roles" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"97D4CC4D03F747CD97C43680AEF08093", "user_id"=>"AE8E0B09EC1C46FDA34EA373480163E8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' AND `account_users`.`account_id` = x'97d4cc4d03f747cd97c43680aef08093' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' AND `accounts`.`id` = x'97d4cc4d03f747cd97c43680aef08093' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'97d4cc4d03f747cd97c43680aef08093' AND `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'97d4cc4d03f747cd97c43680aef08093' AND `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'97d4cc4d03f747cd97c43680aef08093' AND `account_users`.`user_id` = x'ae8e0b09ec1c46fda34ea373480163e8' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c693e2a5d5aa44eaa7927e83d0c98f66' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 12.0ms | ActiveRecord: 2.3ms)  (4.3ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:10', '2012-12-31 12:46:10', 'facebook@test.test', '', NULL, x'df75b06dedf24ec7851c9787d503f86b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'df75b06dedf24ec7851c9787d503f86b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:10', 'User', x'7034cc74764f428dbb52e20492861cc2', 'e9fad9c96e2ecb4dbd3126bb6169236a', x'df75b06dedf24ec7851c9787d503f86b', 'User', '2012-12-31 12:46:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'df75b06dedf24ec7851c9787d503f86b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'02770e12a1914052a5fac57cd7e98001', NULL, NULL, NULL, '2012-12-31 12:46:10')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'account02770e12-a191-4052-a5fa-c57cd7e98001' WHERE `accounts`.`id` = x'02770e12a1914052a5fac57cd7e98001' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'02770e12a1914052a5fac57cd7e98001' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'02770e12a1914052a5fac57cd7e98001', x'1b677ed0c8aa4041ae7c782d34b4a665', x'df75b06dedf24ec7851c9787d503f86b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b677ed0c8aa4041ae7c782d34b4a665' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b677ed0c8aa4041ae7c782d34b4a665', x'd85593b6a2b048a99fcc9232ab2c1d24', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b677ed0c8aa4041ae7c782d34b4a665' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b677ed0c8aa4041ae7c782d34b4a665', x'98e4773775e847a7a67064ced4952fca', 'admin') Sent mail to facebook@test.test (6ms) Date: Mon, 31 Dec 2012 10:46:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18912b8133_f6180435d4827929@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'd19feb05bb8d432e95ccf03342a679cb', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'df75b06dedf24ec7851c9787d503f86b')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 165ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'02770e12a1914052a5fac57cd7e98001' AND `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:10', 'notowner@account.test', '$2a$04$OkXIuPAc1zuXbtcPYuk9jOVTkITOEFm0Y6u0KPVCql8LhnXzPFF6O', NULL, x'dc1c95ec52fb427f8d057e355e95b443', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dc1c95ec52fb427f8d057e355e95b443' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:10', 'User', x'5863a4f6c339453f8d1155750e384fce', '802b542b853b4d10a31a8b1f926072f8', x'dc1c95ec52fb427f8d057e355e95b443', 'User', '2012-12-31 12:46:10') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dc1c95ec52fb427f8d057e355e95b443' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'fa61c2ac45ab4cd083b3ad9e71807b40', NULL, NULL, NULL, '2012-12-31 12:46:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'accountfa61c2ac-45ab-4cd0-83b3-ad9e71807b40' WHERE `accounts`.`id` = x'fa61c2ac45ab4cd083b3ad9e71807b40' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fa61c2ac45ab4cd083b3ad9e71807b40' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fa61c2ac45ab4cd083b3ad9e71807b40', x'842461c7bf7b43f984da3dca7706006a', x'dc1c95ec52fb427f8d057e355e95b443') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'842461c7bf7b43f984da3dca7706006a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'842461c7bf7b43f984da3dca7706006a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'842461c7bf7b43f984da3dca7706006a', x'013fb9e4b3ef41308eb9081b96fa53c3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'842461c7bf7b43f984da3dca7706006a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'842461c7bf7b43f984da3dca7706006a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'842461c7bf7b43f984da3dca7706006a', x'15529e497ffc42afa208c6070767d831', 'admin') Sent mail to notowner@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:10 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e18912c8e62_f6180435d482804d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'e87c1fa30045449ba063a913dddbdc6e', 'jabanilson', NULL, 1, '2012-12-31 12:46:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'accounte87c1fa3-0045-449b-a063-a913dddbdc6e' WHERE `accounts`.`id` = x'e87c1fa30045449ba063a913dddbdc6e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e87c1fa30045449ba063a913dddbdc6e', x'b1a856d535d74dabaa01342a15f2b547', x'dc1c95ec52fb427f8d057e355e95b443') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b1a856d535d74dabaa01342a15f2b547') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1a856d535d74dabaa01342a15f2b547' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1a856d535d74dabaa01342a15f2b547', x'210bd744a6ff4142b1e575c4b4216096', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b1a856d535d74dabaa01342a15f2b547') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1a856d535d74dabaa01342a15f2b547' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1a856d535d74dabaa01342a15f2b547', x'4644935fcd8b44e6ad57561dff8ec506', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'02770e12a1914052a5fac57cd7e98001' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'02770e12a1914052a5fac57cd7e98001' WHERE `account_users`.`id` = x'b1a856d535d74dabaa01342a15f2b547'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'98e4773775e847a7a67064ced4952fca' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b677ed0c8aa4041ae7c782d34b4a665' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'w¡‘@R¥úÅ|×é€' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd85593b6a2b048a99fcc9232ab2c1d24'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b677ed0c8aa4041ae7c782d34b4a665' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b677ed0c8aa4041ae7c782d34b4a665', x'00b4e9ac92964d78b4ba85dab69f0f1b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/02770E12A1914052A5FAC57CD7E98001/user/DF75B06DEDF24EC7851C9787D503F86B/roles" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"02770E12A1914052A5FAC57CD7E98001", "user_id"=>"DF75B06DEDF24EC7851C9787D503F86B"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' AND `account_users`.`account_id` = x'02770e12a1914052a5fac57cd7e98001' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' AND `accounts`.`id` = x'02770e12a1914052a5fac57cd7e98001' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'02770e12a1914052a5fac57cd7e98001' AND `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'02770e12a1914052a5fac57cd7e98001' AND `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'02770e12a1914052a5fac57cd7e98001' AND `account_users`.`user_id` = x'df75b06dedf24ec7851c9787d503f86b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1b677ed0c8aa4041ae7c782d34b4a665' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 22ms (Views: 11.8ms | ActiveRecord: 2.3ms)  (6.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:10', '2012-12-31 12:46:10', 'facebook@test.test', '', NULL, x'ed209df86ede438c988077fad6bb8aac', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:10') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ed209df86ede438c988077fad6bb8aac' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:10', 'User', x'bbecd6870ee1403b90a88a52ffb84e1e', '7a75cab8c8a68132b917433dea4dc94d', x'ed209df86ede438c988077fad6bb8aac', 'User', '2012-12-31 12:46:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ed209df86ede438c988077fad6bb8aac' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'd7ebaafc747047468cfbe5be489e372c', NULL, NULL, NULL, '2012-12-31 12:46:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'accountd7ebaafc-7470-4746-8cfb-e5be489e372c' WHERE `accounts`.`id` = x'd7ebaafc747047468cfbe5be489e372c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd7ebaafc747047468cfbe5be489e372c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd7ebaafc747047468cfbe5be489e372c', x'edd84bc1187d484987aaec68e8039b70', x'ed209df86ede438c988077fad6bb8aac') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'edd84bc1187d484987aaec68e8039b70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'edd84bc1187d484987aaec68e8039b70', x'60fdf9af5b7d479bbe7324465c3e87e7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'edd84bc1187d484987aaec68e8039b70' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'edd84bc1187d484987aaec68e8039b70', x'f308e25edfb94cb2aabc4d22c18ffb07', 'admin') Sent mail to facebook@test.test (9ms) Date: Mon, 31 Dec 2012 10:46:10 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18912e4945_f6180435d48281bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'093050ca30bf42e5a5de0dac99abe4d9', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'ed209df86ede438c988077fad6bb8aac')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 6.2ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:10 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1 Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd7ebaafc747047468cfbe5be489e372c' AND `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:10', 'notowner@account.test', '$2a$04$HYGaD7FXT2ynAcq5xmaUieBTx78GK5lpFZ8AurWtjeg1iHf1Sd8tm', NULL, x'a14a9fb034bb48d586ce3392098aea7f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:10') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a14a9fb034bb48d586ce3392098aea7f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:10', 'User', x'53056cae72864e058930d07ff834ec0a', '369d4a9890f02ed0c6123fa5bbef5173', x'a14a9fb034bb48d586ce3392098aea7f', 'User', '2012-12-31 12:46:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a14a9fb034bb48d586ce3392098aea7f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:10', x'9b83494a578b4e9fa645a7da8ab96db5', NULL, NULL, NULL, '2012-12-31 12:46:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:10', `updated_at` = '2012-12-31 12:46:10', `subdomain` = 'account9b83494a-578b-4e9f-a645-a7da8ab96db5' WHERE `accounts`.`id` = x'9b83494a578b4e9fa645a7da8ab96db5' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9b83494a578b4e9fa645a7da8ab96db5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9b83494a578b4e9fa645a7da8ab96db5', x'ddc508aa2ee74589a32883c9ea4ac774', x'a14a9fb034bb48d586ce3392098aea7f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ddc508aa2ee74589a32883c9ea4ac774') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ddc508aa2ee74589a32883c9ea4ac774' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ddc508aa2ee74589a32883c9ea4ac774', x'50c26efcbdc24b1f828d237ba9f873be', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ddc508aa2ee74589a32883c9ea4ac774') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ddc508aa2ee74589a32883c9ea4ac774' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ddc508aa2ee74589a32883c9ea4ac774', x'8105c9972d6546e2aae07f03930686e2', 'admin') Sent mail to notowner@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:11 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e189131ba5f_f6180435d48282fc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:11', x'4750bb6ff674487e88939c82349e4797', 'jabanilson', NULL, 1, '2012-12-31 12:46:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:11', `updated_at` = '2012-12-31 12:46:11', `subdomain` = 'account4750bb6f-f674-487e-8893-9c82349e4797' WHERE `accounts`.`id` = x'4750bb6ff674487e88939c82349e4797'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4750bb6ff674487e88939c82349e4797', x'4af721508f204d2894bfa4c4bcda7d9b', x'a14a9fb034bb48d586ce3392098aea7f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4af721508f204d2894bfa4c4bcda7d9b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4af721508f204d2894bfa4c4bcda7d9b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4af721508f204d2894bfa4c4bcda7d9b', x'f2f2d3789a1e4e7986f74d453767c6a1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4af721508f204d2894bfa4c4bcda7d9b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4af721508f204d2894bfa4c4bcda7d9b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4af721508f204d2894bfa4c4bcda7d9b', x'da35581fe1914fd3990750220c425d57', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd7ebaafc747047468cfbe5be489e372c' LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = x'd7ebaafc747047468cfbe5be489e372c' WHERE `account_users`.`id` = x'4af721508f204d2894bfa4c4bcda7d9b'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70'  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'edd84bc1187d484987aaec68e8039b70' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '×ëªütpGFŒûå¾Hž7,' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'60fdf9af5b7d479bbe7324465c3e87e7' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f308e25edfb94cb2aabc4d22c18ffb07'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'edd84bc1187d484987aaec68e8039b70' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'edd84bc1187d484987aaec68e8039b70', x'5f8ba04183e949688ae8ea76b05be976', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/D7EBAAFC747047468CFBE5BE489E372C/user/ED209DF86EDE438C988077FAD6BB8AAC/roles" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"D7EBAAFC747047468CFBE5BE489E372C", "user_id"=>"ED209DF86EDE438C988077FAD6BB8AAC"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' AND `account_users`.`account_id` = x'd7ebaafc747047468cfbe5be489e372c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' AND `accounts`.`id` = x'd7ebaafc747047468cfbe5be489e372c' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd7ebaafc747047468cfbe5be489e372c' AND `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd7ebaafc747047468cfbe5be489e372c' AND `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd7ebaafc747047468cfbe5be489e372c' AND `account_users`.`user_id` = x'ed209df86ede438c988077fad6bb8aac' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'edd84bc1187d484987aaec68e8039b70' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 12.1ms | ActiveRecord: 2.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:11', 'teste@teste.com', '$2a$04$KxkwRIUI4E1y0B9zPXOpr.R.WyyJ2OU9uW1hlvFwAXsgwXL6w5DmW', NULL, x'92148aa28ee645a295668340c01af815', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'92148aa28ee645a295668340c01af815' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:11', 'User', x'b82c5ddbbefe485ea3a022175a4bba0a', '441a6b8ec7cb1c751c5c8f8214356c56', x'92148aa28ee645a295668340c01af815', 'User', '2012-12-31 12:46:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'92148aa28ee645a295668340c01af815' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:11', x'8451165ddad84d04983c56ba04cecddd', NULL, NULL, NULL, '2012-12-31 12:46:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:11', `updated_at` = '2012-12-31 12:46:11', `subdomain` = 'account8451165d-dad8-4d04-983c-56ba04cecddd' WHERE `accounts`.`id` = x'8451165ddad84d04983c56ba04cecddd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8451165ddad84d04983c56ba04cecddd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8451165ddad84d04983c56ba04cecddd', x'a9352fdaa05d40f59e9e9da29cca2e97', x'92148aa28ee645a295668340c01af815') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a9352fdaa05d40f59e9e9da29cca2e97') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9352fdaa05d40f59e9e9da29cca2e97' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9352fdaa05d40f59e9e9da29cca2e97', x'73431729667043019b780a921c1e73e7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a9352fdaa05d40f59e9e9da29cca2e97') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9352fdaa05d40f59e9e9da29cca2e97' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9352fdaa05d40f59e9e9da29cca2e97', x'f1c3a2ea02144417966457a5b8f5b333', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18913361f5_f6180435d482837c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'92148aa28ee645a295668340c01af815' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.8ms) Completed 200 OK in 64ms (Views: 62.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'92148aa28ee645a295668340c01af815' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'92148aa28ee645a295668340c01af815' LIMIT 1 Completed 302 Found in 57ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'92148aa28ee645a295668340c01af815' LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:11', 'teste@teste.com', '$2a$04$kGkjCAxCN5k0fcOCqp0eSeUfjjhcGCORqyjn7oR6xgwrQVFnHrqE2', NULL, x'772439a06ebe4d9ca80af92e47a43642', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'772439a06ebe4d9ca80af92e47a43642' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:11', 'User', x'2d818a43adc74c8181f4d861ecbf0d6b', 'cb461d2d28ea6dfc099c902543ce09ec', x'772439a06ebe4d9ca80af92e47a43642', 'User', '2012-12-31 12:46:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'772439a06ebe4d9ca80af92e47a43642' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:11', x'b452fe9db7ef4d40a9f6402c3cd2d829', NULL, NULL, NULL, '2012-12-31 12:46:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:11', `updated_at` = '2012-12-31 12:46:11', `subdomain` = 'accountb452fe9d-b7ef-4d40-a9f6-402c3cd2d829' WHERE `accounts`.`id` = x'b452fe9db7ef4d40a9f6402c3cd2d829' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b452fe9db7ef4d40a9f6402c3cd2d829' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b452fe9db7ef4d40a9f6402c3cd2d829', x'690fdafe124b4701bfcc022eea893ac6', x'772439a06ebe4d9ca80af92e47a43642') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'690fdafe124b4701bfcc022eea893ac6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'690fdafe124b4701bfcc022eea893ac6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'690fdafe124b4701bfcc022eea893ac6', x'eb4ee85c9f534db7be71d769649900e5', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'690fdafe124b4701bfcc022eea893ac6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'690fdafe124b4701bfcc022eea893ac6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'690fdafe124b4701bfcc022eea893ac6', x'7e41a75edd1045f28469c4805bf85f5e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18913930a9_f6180435d48284a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'772439a06ebe4d9ca80af92e47a43642' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'772439a06ebe4d9ca80af92e47a43642' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'772439a06ebe4d9ca80af92e47a43642' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'772439a06ebe4d9ca80af92e47a43642' LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'772439a06ebe4d9ca80af92e47a43642' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'772439a06ebe4d9ca80af92e47a43642' CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'772439a06ebe4d9ca80af92e47a43642' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'772439a06ebe4d9ca80af92e47a43642' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'772439a06ebe4d9ca80af92e47a43642' AND `account_users`.`account_id` = x'b452fe9db7ef4d40a9f6402c3cd2d829' LIMIT 1 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'772439a06ebe4d9ca80af92e47a43642' Completed 200 OK in 17ms (Views: 13.5ms | ActiveRecord: 1.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:11', 'teste@teste.com', '$2a$04$stM79EXE3nI0vY/K69vaAOTP5jMf6aCE1VVF6Mnn0cCYkaayEt9fq', NULL, x'cf9a1932835140439a6b3853a9cde816', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:11') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cf9a1932835140439a6b3853a9cde816' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:11', 'User', x'573824f126174c93ab631d766874cf5a', '791c749512b6d590b35837b814b0d118', x'cf9a1932835140439a6b3853a9cde816', 'User', '2012-12-31 12:46:11') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cf9a1932835140439a6b3853a9cde816' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:11', x'9cfbad600eb045b4b3e9294d673b5266', NULL, NULL, NULL, '2012-12-31 12:46:11')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:11', `updated_at` = '2012-12-31 12:46:11', `subdomain` = 'account9cfbad60-0eb0-45b4-b3e9-294d673b5266' WHERE `accounts`.`id` = x'9cfbad600eb045b4b3e9294d673b5266' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9cfbad600eb045b4b3e9294d673b5266' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9cfbad600eb045b4b3e9294d673b5266', x'64cf9ff5e27541078aeec4358518c287', x'cf9a1932835140439a6b3853a9cde816') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'64cf9ff5e27541078aeec4358518c287') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'64cf9ff5e27541078aeec4358518c287' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'64cf9ff5e27541078aeec4358518c287', x'ed1f0960c0294709a35cbc3188b0f90d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'64cf9ff5e27541078aeec4358518c287') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'64cf9ff5e27541078aeec4358518c287' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'64cf9ff5e27541078aeec4358518c287', x'36512defea434944af4dd1943134218b', 'admin') Sent mail to teste@teste.com (9ms) Date: Mon, 31 Dec 2012 10:46:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18913aec53_f6180435d48285e5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.8ms) Completed 200 OK in 118ms (Views: 116.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cf9a1932835140439a6b3853a9cde816' LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cf9a1932835140439a6b3853a9cde816' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' AND `account_users`.`account_id` = x'9cfbad600eb045b4b3e9294d673b5266' LIMIT 1 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 1.6ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' AND `account_users`.`account_id` = x'9cfbad600eb045b4b3e9294d673b5266' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:11', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 64cf9ff5-e275-4107-8aee-c4358518c287\n', NULL, NULL, NULL, 0, 'account_user_64cf9ff5-e275-4107-8aee-c4358518c287_destroy', '2012-12-31 12:46:11', '2012-12-31 12:46:11')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:11', x'e9534380409944e080ab0f83dabb6e0e', 'jabanilson', NULL, 1, '2012-12-31 12:46:11')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:11', `updated_at` = '2012-12-31 12:46:11', `subdomain` = 'accounte9534380-4099-44e0-80ab-0f83dabb6e0e' WHERE `accounts`.`id` = x'e9534380409944e080ab0f83dabb6e0e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cf9a1932835140439a6b3853a9cde816' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e9534380409944e080ab0f83dabb6e0e', x'd3f4b84034c24663bba65479d76f8c6f', x'cf9a1932835140439a6b3853a9cde816') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd3f4b84034c24663bba65479d76f8c6f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3f4b84034c24663bba65479d76f8c6f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3f4b84034c24663bba65479d76f8c6f', x'2c77d2857e40492a9825b30b10c07ada', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd3f4b84034c24663bba65479d76f8c6f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3f4b84034c24663bba65479d76f8c6f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3f4b84034c24663bba65479d76f8c6f', x'33dd2ae41ae24f7aa0e15d6fc0350cbd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cf9a1932835140439a6b3853a9cde816' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' AND `account_users`.`account_id` = x'9cfbad600eb045b4b3e9294d673b5266' LIMIT 1 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf9a1932835140439a6b3853a9cde816' Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 1.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:11', 'teste@teste.com', '$2a$04$HxlATuyWe2jMflFMDT2K..CM4Mh.4g52TcgH2sSTCKcGnZ1i7mTLS', NULL, x'e2419cc27ab0412091447730ea297f0e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e2419cc27ab0412091447730ea297f0e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:11', 'User', x'5dc4656d6e7c40a9abe3815f10dcfe56', '93745fef26e75e572322082bd15df539', x'e2419cc27ab0412091447730ea297f0e', 'User', '2012-12-31 12:46:11') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e2419cc27ab0412091447730ea297f0e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:11', x'9c72978e4f9e47e6b3625874bc4d1c43', NULL, NULL, NULL, '2012-12-31 12:46:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:11', `updated_at` = '2012-12-31 12:46:11', `subdomain` = 'account9c72978e-4f9e-47e6-b362-5874bc4d1c43' WHERE `accounts`.`id` = x'9c72978e4f9e47e6b3625874bc4d1c43' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9c72978e4f9e47e6b3625874bc4d1c43' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9c72978e4f9e47e6b3625874bc4d1c43', x'bd9d1bc8c0a046248cb39d94174146c3', x'e2419cc27ab0412091447730ea297f0e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bd9d1bc8c0a046248cb39d94174146c3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd9d1bc8c0a046248cb39d94174146c3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd9d1bc8c0a046248cb39d94174146c3', x'f756b9c9fb074ebdaa9244e1df92fb01', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bd9d1bc8c0a046248cb39d94174146c3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd9d1bc8c0a046248cb39d94174146c3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd9d1bc8c0a046248cb39d94174146c3', x'1652bcf3ddd045009982c12c6ea30e9e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:11 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18913ef1dc_f6180435d4828693@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2419cc27ab0412091447730ea297f0e' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:11 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2419cc27ab0412091447730ea297f0e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2419cc27ab0412091447730ea297f0e' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e2419cc27ab0412091447730ea297f0e' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2419cc27ab0412091447730ea297f0e'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e2419cc27ab0412091447730ea297f0e' AND `account_users`.`account_id` = x'9c72978e4f9e47e6b3625874bc4d1c43' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:12', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: bd9d1bc8-c0a0-4624-8cb3-9d94174146c3\n', NULL, NULL, NULL, 0, 'account_user_bd9d1bc8-c0a0-4624-8cb3-9d94174146c3_destroy', '2012-12-31 12:46:12', '2012-12-31 12:46:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'c513396e52e640a48a48ecb00e06c482', 'jabanilson', NULL, 1, '2012-12-31 12:46:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'accountc513396e-52e6-40a4-8a48-ecb00e06c482' WHERE `accounts`.`id` = x'c513396e52e640a48a48ecb00e06c482'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e2419cc27ab0412091447730ea297f0e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c513396e52e640a48a48ecb00e06c482', x'42f1d9e8c7f54c24bb8712c1c7504674', x'e2419cc27ab0412091447730ea297f0e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'42f1d9e8c7f54c24bb8712c1c7504674') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'42f1d9e8c7f54c24bb8712c1c7504674' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'42f1d9e8c7f54c24bb8712c1c7504674', x'ad30493073c44b22bef928f530139ca8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'42f1d9e8c7f54c24bb8712c1c7504674') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'42f1d9e8c7f54c24bb8712c1c7504674' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'42f1d9e8c7f54c24bb8712c1c7504674', x'd95b9a9897064fed97807807326b23c2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'56c07aeea4cf40bb8ee89496a3540873', 'jabanilson', NULL, 1, '2012-12-31 12:46:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'account56c07aee-a4cf-40bb-8ee8-9496a3540873' WHERE `accounts`.`id` = x'56c07aeea4cf40bb8ee89496a3540873'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e2419cc27ab0412091447730ea297f0e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'56c07aeea4cf40bb8ee89496a3540873', x'db634286adca43c7a73be3101602af57', x'e2419cc27ab0412091447730ea297f0e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'db634286adca43c7a73be3101602af57') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'db634286adca43c7a73be3101602af57' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'db634286adca43c7a73be3101602af57', x'c4d57fa52be24e9087ec636d41632628', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'db634286adca43c7a73be3101602af57') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'db634286adca43c7a73be3101602af57' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'db634286adca43c7a73be3101602af57', x'a6cac9a095c648b2a827fbb9adb3bab3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e2419cc27ab0412091447730ea297f0e' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2419cc27ab0412091447730ea297f0e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2419cc27ab0412091447730ea297f0e' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e2419cc27ab0412091447730ea297f0e' AND `account_users`.`account_id` = x'9c72978e4f9e47e6b3625874bc4d1c43' LIMIT 1 Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 1.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:12', 'teste@teste.com', '$2a$04$x4PZjrraHTUmDEvVfmnWTu.utoAyIKw1H6R.c2c4rwnqLu5k0i5Hi', NULL, x'48ada35038ca4c5ab26f88a422406dfb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'48ada35038ca4c5ab26f88a422406dfb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:12', 'User', x'e12fd6115025437db387303426ced76f', '67e14c87dff33f4203f01a9a7844a52e', x'48ada35038ca4c5ab26f88a422406dfb', 'User', '2012-12-31 12:46:12') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'48ada35038ca4c5ab26f88a422406dfb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'ef51ddf0701b44fc8c08516cb4848c3d', NULL, NULL, NULL, '2012-12-31 12:46:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'accountef51ddf0-701b-44fc-8c08-516cb4848c3d' WHERE `accounts`.`id` = x'ef51ddf0701b44fc8c08516cb4848c3d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ef51ddf0701b44fc8c08516cb4848c3d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ef51ddf0701b44fc8c08516cb4848c3d', x'8628406e81a848e3879ccf94accbf296', x'48ada35038ca4c5ab26f88a422406dfb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8628406e81a848e3879ccf94accbf296') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8628406e81a848e3879ccf94accbf296' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8628406e81a848e3879ccf94accbf296', x'99dfe2e2a3054f46b59ada20fee48f8d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8628406e81a848e3879ccf94accbf296') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8628406e81a848e3879ccf94accbf296' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8628406e81a848e3879ccf94accbf296', x'a0c4dcc853eb49a59deada6c2fe88221', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891439e57_f6180435d482878a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48ada35038ca4c5ab26f88a422406dfb' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48ada35038ca4c5ab26f88a422406dfb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48ada35038ca4c5ab26f88a422406dfb' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48ada35038ca4c5ab26f88a422406dfb' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48ada35038ca4c5ab26f88a422406dfb'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'48ada35038ca4c5ab26f88a422406dfb' AND `account_users`.`account_id` = x'ef51ddf0701b44fc8c08516cb4848c3d' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:12', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 8628406e-81a8-48e3-879c-cf94accbf296\n', NULL, NULL, NULL, 0, 'account_user_8628406e-81a8-48e3-879c-cf94accbf296_destroy', '2012-12-31 12:46:12', '2012-12-31 12:46:12')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'b321a00298df4251aec5c3d801ce20d0', 'jabanilson', NULL, 1, '2012-12-31 12:46:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'accountb321a002-98df-4251-aec5-c3d801ce20d0' WHERE `accounts`.`id` = x'b321a00298df4251aec5c3d801ce20d0'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48ada35038ca4c5ab26f88a422406dfb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b321a00298df4251aec5c3d801ce20d0', x'2e1bd76b89f44324b40ac30721393c02', x'48ada35038ca4c5ab26f88a422406dfb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2e1bd76b89f44324b40ac30721393c02') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2e1bd76b89f44324b40ac30721393c02' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2e1bd76b89f44324b40ac30721393c02', x'a320c640bd75411ab0a9707553337731', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2e1bd76b89f44324b40ac30721393c02') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2e1bd76b89f44324b40ac30721393c02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2e1bd76b89f44324b40ac30721393c02', x'050666cae0b24ed4b0407e5b0979718c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'a30798c7ea6c4f02a10e2123750c8357', 'jabanilson', NULL, 1, '2012-12-31 12:46:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'accounta30798c7-ea6c-4f02-a10e-2123750c8357' WHERE `accounts`.`id` = x'a30798c7ea6c4f02a10e2123750c8357'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48ada35038ca4c5ab26f88a422406dfb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a30798c7ea6c4f02a10e2123750c8357', x'939a1bd2819045c384d869a6fd114e49', x'48ada35038ca4c5ab26f88a422406dfb') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'939a1bd2819045c384d869a6fd114e49') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'939a1bd2819045c384d869a6fd114e49' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'939a1bd2819045c384d869a6fd114e49', x'672bdfb7dd85442c9b32f8802971ff2d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'939a1bd2819045c384d869a6fd114e49') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'939a1bd2819045c384d869a6fd114e49' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'939a1bd2819045c384d869a6fd114e49', x'5d90d4ce34484524a2245146406b04e0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48ada35038ca4c5ab26f88a422406dfb' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48ada35038ca4c5ab26f88a422406dfb' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48ada35038ca4c5ab26f88a422406dfb' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'48ada35038ca4c5ab26f88a422406dfb' AND `account_users`.`account_id` = x'ef51ddf0701b44fc8c08516cb4848c3d' LIMIT 1 Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 1.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:12', 'teste@teste.com', '$2a$04$edP/on/3xadjWe0948K6J.wNbzcIAd.FAZHdO04RI5v3wdPxqxwWK', NULL, x'71caca4156e54c429ff274cda79108e7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:12') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'71caca4156e54c429ff274cda79108e7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:12', 'User', x'25c3331271aa421cb248eb51132523ef', '4aa005f58eb36eb0999e443ea341c18b', x'71caca4156e54c429ff274cda79108e7', 'User', '2012-12-31 12:46:12') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'71caca4156e54c429ff274cda79108e7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'358c45cf6c554b19a1e714cca9361b6a', NULL, NULL, NULL, '2012-12-31 12:46:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'account358c45cf-6c55-4b19-a1e7-14cca9361b6a' WHERE `accounts`.`id` = x'358c45cf6c554b19a1e714cca9361b6a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'358c45cf6c554b19a1e714cca9361b6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'358c45cf6c554b19a1e714cca9361b6a', x'b0c2dfc416094e3c88a7978b25973c27', x'71caca4156e54c429ff274cda79108e7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b0c2dfc416094e3c88a7978b25973c27') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0c2dfc416094e3c88a7978b25973c27' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0c2dfc416094e3c88a7978b25973c27', x'0890c7cc3d2549969d9d6a86a5e016df', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b0c2dfc416094e3c88a7978b25973c27') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0c2dfc416094e3c88a7978b25973c27' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0c2dfc416094e3c88a7978b25973c27', x'b595c21fb6964ad593671bbb0a0801f5', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189145e987_f6180435d48288a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'71caca4156e54c429ff274cda79108e7' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/358c45cf-6c55-4b19-a1e7-14cca9361b6a" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"358c45cf-6c55-4b19-a1e7-14cca9361b6a"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'71caca4156e54c429ff274cda79108e7' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' AND `accounts`.`id` = x'358c45cf6c554b19a1e714cca9361b6a' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'358c45cf6c554b19a1e714cca9361b6a' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'358c45cf6c554b19a1e714cca9361b6a' AND `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b0c2dfc416094e3c88a7978b25973c27' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'358c45cf6c554b19a1e714cca9361b6a' AND `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b0c2dfc416094e3c88a7978b25973c27' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'358c45cf6c554b19a1e714cca9361b6a' AND `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b0c2dfc416094e3c88a7978b25973c27' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'358c45cf6c554b19a1e714cca9361b6a' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'358c45cf6c554b19a1e714cca9361b6a' AND `account_users`.`user_id` = x'71caca4156e54c429ff274cda79108e7' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b0c2dfc416094e3c88a7978b25973c27' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_358c45cf-6c55-4b19-a1e7-14cca9361b6a_destroy' LIMIT 1 Completed 200 OK in 36ms (Views: 28.1ms | ActiveRecord: 2.4ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:12', 'teste@teste.com', '$2a$04$E8tlhU1oKhBNl4vGt/zkNetlrcF3KgKntIa7wE.6U1Lw03XxyYH6S', NULL, x'ef0401c792a94f7e9303ae2258a26af3', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ef0401c792a94f7e9303ae2258a26af3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:12', 'User', x'83a33347ba244a0e9a2a975f88d9def8', 'c0cdc2592624605cfa726d1c032d6669', x'ef0401c792a94f7e9303ae2258a26af3', 'User', '2012-12-31 12:46:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ef0401c792a94f7e9303ae2258a26af3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'23c6fccace6e4ecf93b9191c4604b457', NULL, NULL, NULL, '2012-12-31 12:46:12')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'account23c6fcca-ce6e-4ecf-93b9-191c4604b457' WHERE `accounts`.`id` = x'23c6fccace6e4ecf93b9191c4604b457' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'23c6fccace6e4ecf93b9191c4604b457' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'23c6fccace6e4ecf93b9191c4604b457', x'21426715b3c948bfb12a0eb7b0863b4f', x'ef0401c792a94f7e9303ae2258a26af3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'21426715b3c948bfb12a0eb7b0863b4f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21426715b3c948bfb12a0eb7b0863b4f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21426715b3c948bfb12a0eb7b0863b4f', x'326139b37bb841d0a05e18f93c832949', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'21426715b3c948bfb12a0eb7b0863b4f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21426715b3c948bfb12a0eb7b0863b4f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21426715b3c948bfb12a0eb7b0863b4f', x'0a6d4867f6cc4fe98e6f63e915bbfbcf', 'admin') Sent mail to teste@teste.com (9ms) Date: Mon, 31 Dec 2012 10:46:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189149a91e_f6180435d4828968@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.6ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ef0401c792a94f7e9303ae2258a26af3' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'21426715b3c948bfb12a0eb7b0863b4f'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0a6d4867f6cc4fe98e6f63e915bbfbcf' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21426715b3c948bfb12a0eb7b0863b4f' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '#ÆüÊÎnNÏ“¹F´W' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'21426715b3c948bfb12a0eb7b0863b4f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21426715b3c948bfb12a0eb7b0863b4f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21426715b3c948bfb12a0eb7b0863b4f', x'f2f5fa4a955f46cfae777ac6687f1bdc', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/23c6fcca-ce6e-4ecf-93b9-191c4604b457" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"23c6fcca-ce6e-4ecf-93b9-191c4604b457"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ef0401c792a94f7e9303ae2258a26af3' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' AND `accounts`.`id` = x'23c6fccace6e4ecf93b9191c4604b457' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'23c6fccace6e4ecf93b9191c4604b457' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'23c6fccace6e4ecf93b9191c4604b457' AND `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'21426715b3c948bfb12a0eb7b0863b4f' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'23c6fccace6e4ecf93b9191c4604b457' AND `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'21426715b3c948bfb12a0eb7b0863b4f' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'23c6fccace6e4ecf93b9191c4604b457' AND `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'21426715b3c948bfb12a0eb7b0863b4f' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'23c6fccace6e4ecf93b9191c4604b457' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'23c6fccace6e4ecf93b9191c4604b457' AND `account_users`.`user_id` = x'ef0401c792a94f7e9303ae2258a26af3' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'21426715b3c948bfb12a0eb7b0863b4f' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_23c6fcca-ce6e-4ecf-93b9-191c4604b457_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 18.6ms | ActiveRecord: 2.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:12', 'teste@teste.com', '$2a$04$RLBildANW5BMFPpzkLJn7OgUZNc6QDpukQsQOu5GkTEYSudvenV9e', NULL, x'23b1849f85574ce484dc998d83faf458', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'23b1849f85574ce484dc998d83faf458' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:12', 'User', x'd603ee2e45b44e428dac851ec9129084', '514ee1c83d3aea6aa2f9d7c1630425b0', x'23b1849f85574ce484dc998d83faf458', 'User', '2012-12-31 12:46:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'23b1849f85574ce484dc998d83faf458' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'c47c4fb69ec74fe7b94f6dc4c3bf079c', NULL, NULL, NULL, '2012-12-31 12:46:12')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'accountc47c4fb6-9ec7-4fe7-b94f-6dc4c3bf079c' WHERE `accounts`.`id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c47c4fb69ec74fe7b94f6dc4c3bf079c', x'a0374c5937e74844bf4e2b5435c5a2ad', x'23b1849f85574ce484dc998d83faf458') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a0374c5937e74844bf4e2b5435c5a2ad') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a0374c5937e74844bf4e2b5435c5a2ad' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a0374c5937e74844bf4e2b5435c5a2ad', x'9a777897d5924c2a9f54771c438c3301', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a0374c5937e74844bf4e2b5435c5a2ad') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a0374c5937e74844bf4e2b5435c5a2ad' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a0374c5937e74844bf4e2b5435c5a2ad', x'250ecd3d40bf4f6da9ab6306df488054', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:12 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18914bb9e8_f6180435d48290b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'23b1849f85574ce484dc998d83faf458' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a0374c5937e74844bf4e2b5435c5a2ad'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'250ecd3d40bf4f6da9ab6306df488054' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a0374c5937e74844bf4e2b5435c5a2ad' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Ä|O¶žÇOç¹OmÄÿœ' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a0374c5937e74844bf4e2b5435c5a2ad') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a0374c5937e74844bf4e2b5435c5a2ad' LIMIT 1  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/c47c4fb6-9ec7-4fe7-b94f-6dc4c3bf079c" for 127.0.0.1 at 2012-12-31 10:46:12 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"c47c4fb6-9ec7-4fe7-b94f-6dc4c3bf079c"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'23b1849f85574ce484dc998d83faf458' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' AND `accounts`.`id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' AND `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a0374c5937e74844bf4e2b5435c5a2ad' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' AND `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a0374c5937e74844bf4e2b5435c5a2ad' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' AND `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a0374c5937e74844bf4e2b5435c5a2ad' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c47c4fb69ec74fe7b94f6dc4c3bf079c' AND `account_users`.`user_id` = x'23b1849f85574ce484dc998d83faf458' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a0374c5937e74844bf4e2b5435c5a2ad' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c47c4fb6-9ec7-4fe7-b94f-6dc4c3bf079c_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 18.2ms | ActiveRecord: 2.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:12', 'teste@teste.com', '$2a$04$nX8UNK0W.VFnKwFf8qnSTeBBJjdhovnVhYrhRIhkZR4sj4bjiXJ1i', NULL, x'cf729fdf8ab04a34a57030201bd6d336', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:12') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cf729fdf8ab04a34a57030201bd6d336' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:12', 'User', x'8952e385fc2145ba8752d369dfca5570', 'd43897d7e464644439d7ba89e43f48a0', x'cf729fdf8ab04a34a57030201bd6d336', 'User', '2012-12-31 12:46:12') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cf729fdf8ab04a34a57030201bd6d336' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:12', x'13ddcb139e1245f6a75673a2060d1d0b', NULL, NULL, NULL, '2012-12-31 12:46:12')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:12', `updated_at` = '2012-12-31 12:46:12', `subdomain` = 'account13ddcb13-9e12-45f6-a756-73a2060d1d0b' WHERE `accounts`.`id` = x'13ddcb139e1245f6a75673a2060d1d0b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'13ddcb139e1245f6a75673a2060d1d0b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'13ddcb139e1245f6a75673a2060d1d0b', x'6f36944e8a8f4fb183a5ab8231c717a6', x'cf729fdf8ab04a34a57030201bd6d336') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6f36944e8a8f4fb183a5ab8231c717a6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f36944e8a8f4fb183a5ab8231c717a6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f36944e8a8f4fb183a5ab8231c717a6', x'7d4d3c9e3a5e4ecab53d6225298a46f7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6f36944e8a8f4fb183a5ab8231c717a6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f36944e8a8f4fb183a5ab8231c717a6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f36944e8a8f4fb183a5ab8231c717a6', x'dad9eb87988b414fae4c5cc8de6c2a6b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189153c10_f6180435d482919@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.6ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cf729fdf8ab04a34a57030201bd6d336' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f36944e8a8f4fb183a5ab8231c717a6'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f36944e8a8f4fb183a5ab8231c717a6' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'dad9eb87988b414fae4c5cc8de6c2a6b'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6f36944e8a8f4fb183a5ab8231c717a6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f36944e8a8f4fb183a5ab8231c717a6' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/13ddcb13-9e12-45f6-a756-73a2060d1d0b" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"13ddcb13-9e12-45f6-a756-73a2060d1d0b"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cf729fdf8ab04a34a57030201bd6d336' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' AND `accounts`.`id` = x'13ddcb139e1245f6a75673a2060d1d0b' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'13ddcb139e1245f6a75673a2060d1d0b' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'13ddcb139e1245f6a75673a2060d1d0b' AND `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f36944e8a8f4fb183a5ab8231c717a6' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'13ddcb139e1245f6a75673a2060d1d0b' AND `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f36944e8a8f4fb183a5ab8231c717a6' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'13ddcb139e1245f6a75673a2060d1d0b' AND `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f36944e8a8f4fb183a5ab8231c717a6' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'13ddcb139e1245f6a75673a2060d1d0b' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'13ddcb139e1245f6a75673a2060d1d0b' AND `account_users`.`user_id` = x'cf729fdf8ab04a34a57030201bd6d336' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f36944e8a8f4fb183a5ab8231c717a6' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13ddcb13-9e12-45f6-a756-73a2060d1d0b_destroy' LIMIT 1 Completed 200 OK in 26ms (Views: 17.6ms | ActiveRecord: 2.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:13', 'teste@teste.com', '$2a$04$I2futrzLpxzFbDwhKeoi..6p6/Dl8rPdsDr.J7qCEbFCbAIL7eyuS', NULL, x'6ec68150900144fca370edd6165eb73c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6ec68150900144fca370edd6165eb73c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:13', 'User', x'197487e394fc4a18b7bb3683bf054b7d', 'db028b479439ba04bedc92f2193a9c9a', x'6ec68150900144fca370edd6165eb73c', 'User', '2012-12-31 12:46:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6ec68150900144fca370edd6165eb73c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:13', x'6f6540deaf4e4aacb61249884e7c6335', NULL, NULL, NULL, '2012-12-31 12:46:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:13', `updated_at` = '2012-12-31 12:46:13', `subdomain` = 'account6f6540de-af4e-4aac-b612-49884e7c6335' WHERE `accounts`.`id` = x'6f6540deaf4e4aacb61249884e7c6335' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6f6540deaf4e4aacb61249884e7c6335' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6f6540deaf4e4aacb61249884e7c6335', x'2b953fb36e7a47b2820cc819bfcbdf42', x'6ec68150900144fca370edd6165eb73c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2b953fb36e7a47b2820cc819bfcbdf42') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b953fb36e7a47b2820cc819bfcbdf42' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b953fb36e7a47b2820cc819bfcbdf42', x'be3c7dc19ef64309926f5f9a78e0462a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2b953fb36e7a47b2820cc819bfcbdf42') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b953fb36e7a47b2820cc819bfcbdf42' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b953fb36e7a47b2820cc819bfcbdf42', x'328e09d290f8404db4d978b3fdcb36d2', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891524c36_f6180435d4829270@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 123ms (Views: 121.5ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6ec68150900144fca370edd6165eb73c' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b953fb36e7a47b2820cc819bfcbdf42'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'328e09d290f8404db4d978b3fdcb36d2' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b953fb36e7a47b2820cc819bfcbdf42' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'oe@Þ¯NJ¬¶IˆN|c5' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2b953fb36e7a47b2820cc819bfcbdf42') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b953fb36e7a47b2820cc819bfcbdf42' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/6f6540de-af4e-4aac-b612-49884e7c6335" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"6f6540de-af4e-4aac-b612-49884e7c6335"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6ec68150900144fca370edd6165eb73c' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' AND `accounts`.`id` = x'6f6540deaf4e4aacb61249884e7c6335' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6f6540deaf4e4aacb61249884e7c6335' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6f6540deaf4e4aacb61249884e7c6335' AND `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b953fb36e7a47b2820cc819bfcbdf42' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6f6540deaf4e4aacb61249884e7c6335' AND `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b953fb36e7a47b2820cc819bfcbdf42' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6f6540deaf4e4aacb61249884e7c6335' AND `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b953fb36e7a47b2820cc819bfcbdf42' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6f6540deaf4e4aacb61249884e7c6335' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6f6540deaf4e4aacb61249884e7c6335' AND `account_users`.`user_id` = x'6ec68150900144fca370edd6165eb73c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b953fb36e7a47b2820cc819bfcbdf42' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6f6540de-af4e-4aac-b612-49884e7c6335_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 18.3ms | ActiveRecord: 2.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:13', 'teste@teste.com', '$2a$04$LX6Br1hMiuhmrO02f2T3qeqrWhosSwIw/rCVdO3g1kKZjwdfAquOO', NULL, x'99b0ae59e6e24310bcbb7cb9335933dc', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:13', 'User', x'6b7ec690bb414cdf99a84d671080f935', 'e8f2d250c69491aa6b08bee2d9910538', x'99b0ae59e6e24310bcbb7cb9335933dc', 'User', '2012-12-31 12:46:13') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:13', x'bc07d5351e944911a25f7736c2d5a6d3', NULL, NULL, NULL, '2012-12-31 12:46:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:13', `updated_at` = '2012-12-31 12:46:13', `subdomain` = 'accountbc07d535-1e94-4911-a25f-7736c2d5a6d3' WHERE `accounts`.`id` = x'bc07d5351e944911a25f7736c2d5a6d3' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bc07d5351e944911a25f7736c2d5a6d3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bc07d5351e944911a25f7736c2d5a6d3', x'1319e16ac41d46f1a9e90e5307b65df2', x'99b0ae59e6e24310bcbb7cb9335933dc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1319e16ac41d46f1a9e90e5307b65df2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1319e16ac41d46f1a9e90e5307b65df2', x'55f5d837c33d477cadc40aa037d2ce95', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1319e16ac41d46f1a9e90e5307b65df2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1319e16ac41d46f1a9e90e5307b65df2', x'7483a24c19b54f69bdea991818f80f5f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189156132d_f6180435d4829369@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1319e16ac41d46f1a9e90e5307b65df2' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¼Õ5”I¢_w6ÂÕ¦Ó' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7483a24c19b54f69bdea991818f80f5f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2') LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1319e16ac41d46f1a9e90e5307b65df2' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/bc07d535-1e94-4911-a25f-7736c2d5a6d3" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"bc07d535-1e94-4911-a25f-7736c2d5a6d3"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' AND `accounts`.`id` = x'bc07d5351e944911a25f7736c2d5a6d3' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bc07d535-1e94-4911-a25f-7736c2d5a6d3_destroy' LIMIT 1 Completed 200 OK in 28ms (Views: 20.7ms | ActiveRecord: 2.6ms) Started GET "/settings/account/bc07d535-1e94-4911-a25f-7736c2d5a6d3" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"bc07d535-1e94-4911-a25f-7736c2d5a6d3"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' AND `accounts`.`id` = x'bc07d5351e944911a25f7736c2d5a6d3' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc07d5351e944911a25f7736c2d5a6d3' AND `account_users`.`user_id` = x'99b0ae59e6e24310bcbb7cb9335933dc' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1319e16ac41d46f1a9e90e5307b65df2' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bc07d535-1e94-4911-a25f-7736c2d5a6d3_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 18.4ms | ActiveRecord: 2.0ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:13', 'teste@teste.com', '$2a$04$yVtiWToJo9OI.WHpJraITeWKCPrckr8xfi65O.6UNHbK13tzxIiu.', NULL, x'165d655d1fd4441096b4fe6c5b755cbf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:13') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'165d655d1fd4441096b4fe6c5b755cbf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:13', 'User', x'9c2bb916339949799941abc5f52603d2', '7dadf34ea00b146c6334c287b55bd64f', x'165d655d1fd4441096b4fe6c5b755cbf', 'User', '2012-12-31 12:46:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'165d655d1fd4441096b4fe6c5b755cbf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:13', x'f55913931cc44935b4da3c0ed07bd785', NULL, NULL, NULL, '2012-12-31 12:46:13')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:13', `updated_at` = '2012-12-31 12:46:13', `subdomain` = 'accountf5591393-1cc4-4935-b4da-3c0ed07bd785' WHERE `accounts`.`id` = x'f55913931cc44935b4da3c0ed07bd785' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f55913931cc44935b4da3c0ed07bd785' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f55913931cc44935b4da3c0ed07bd785', x'876af4436fce4c3c9d5253444daffae6', x'165d655d1fd4441096b4fe6c5b755cbf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'876af4436fce4c3c9d5253444daffae6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'876af4436fce4c3c9d5253444daffae6', x'343f6e29504e4b60b6859abb39fe04f1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'876af4436fce4c3c9d5253444daffae6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'876af4436fce4c3c9d5253444daffae6', x'2f19d9068c14465db6142e706d49d823', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18915a58fa_f6180435d48294d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2f19d9068c14465db6142e706d49d823' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'876af4436fce4c3c9d5253444daffae6' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'õY“ÄI5´Ú<Ð{×…' AND name = 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'876af4436fce4c3c9d5253444daffae6' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/f5591393-1cc4-4935-b4da-3c0ed07bd785" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"f5591393-1cc4-4935-b4da-3c0ed07bd785"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' AND `accounts`.`id` = x'f55913931cc44935b4da3c0ed07bd785' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f5591393-1cc4-4935-b4da-3c0ed07bd785_destroy' LIMIT 1 Completed 200 OK in 26ms (Views: 18.6ms | ActiveRecord: 2.5ms) Started GET "/settings/account/f5591393-1cc4-4935-b4da-3c0ed07bd785" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"f5591393-1cc4-4935-b4da-3c0ed07bd785"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' AND `accounts`.`id` = x'f55913931cc44935b4da3c0ed07bd785' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f55913931cc44935b4da3c0ed07bd785' AND `account_users`.`user_id` = x'165d655d1fd4441096b4fe6c5b755cbf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'876af4436fce4c3c9d5253444daffae6' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f5591393-1cc4-4935-b4da-3c0ed07bd785_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 18.0ms | ActiveRecord: 1.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:13', 'teste@teste.com', '$2a$04$/4/NnsBtJufhM4Z79QpXn.wz9yx7C0s54zMzB1oom.l9kyhyJ.v2K', NULL, x'8ef4375cdb7c4653a73348501a5a4b92', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:13') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:13', 'User', x'58cc5e0c54bb417bbea336f66f295200', '8e21b0e2ddbe2684d22f71397d9c1c39', x'8ef4375cdb7c4653a73348501a5a4b92', 'User', '2012-12-31 12:46:13') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:13', x'082397d71806433d997b17ae4e3cb574', NULL, NULL, NULL, '2012-12-31 12:46:13')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:13', `updated_at` = '2012-12-31 12:46:13', `subdomain` = 'account082397d7-1806-433d-997b-17ae4e3cb574' WHERE `accounts`.`id` = x'082397d71806433d997b17ae4e3cb574' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'082397d71806433d997b17ae4e3cb574' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'082397d71806433d997b17ae4e3cb574', x'90cf6b0b360043b6bee4b208e5a14195', x'8ef4375cdb7c4653a73348501a5a4b92') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90cf6b0b360043b6bee4b208e5a14195' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90cf6b0b360043b6bee4b208e5a14195', x'2ffa7b7ea1b94539ada15c9978ad2ff9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90cf6b0b360043b6bee4b208e5a14195' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90cf6b0b360043b6bee4b208e5a14195', x'3047649d408a45b7ba411cde990b3e22', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:13 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18915ccaea_f6180435d48295e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:13 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.4ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90cf6b0b360043b6bee4b208e5a14195' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '#—×C=™{®N<µt' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'3047649d408a45b7ba411cde990b3e22'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90cf6b0b360043b6bee4b208e5a14195' LIMIT 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/082397d7-1806-433d-997b-17ae4e3cb574" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"082397d7-1806-433d-997b-17ae4e3cb574"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AND `accounts`.`id` = x'082397d71806433d997b17ae4e3cb574' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'082397d71806433d997b17ae4e3cb574' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_082397d7-1806-433d-997b-17ae4e3cb574_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 18.1ms | ActiveRecord: 2.4ms) Started DELETE "/settings/account/082397d7-1806-433d-997b-17ae4e3cb574" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"082397d7-1806-433d-997b-17ae4e3cb574"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AND `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AND `accounts`.`id` = x'082397d71806433d997b17ae4e3cb574' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:14', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 082397d7-1806-433d-997b-17ae4e3cb574\n', NULL, NULL, NULL, 0, 'account_082397d7-1806-433d-997b-17ae4e3cb574_destroy', '2012-12-31 12:46:14', '2012-12-31 12:46:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_082397d7-1806-433d-997b-17ae4e3cb574_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 15ms (ActiveRecord: 2.1ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AND `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' LIMIT 1 Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 1.4ms) Started GET "/settings/account/082397D71806433D997B17AE4E3CB574" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"082397D71806433D997B17AE4E3CB574"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' AND `accounts`.`id` = x'082397d71806433d997b17ae4e3cb574' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'082397d71806433d997b17ae4e3cb574' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'082397d71806433d997b17ae4e3cb574' AND `account_users`.`user_id` = x'8ef4375cdb7c4653a73348501a5a4b92' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90cf6b0b360043b6bee4b208e5a14195' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_082397d7-1806-433d-997b-17ae4e3cb574_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_082397d7-1806-433d-997b-17ae4e3cb574_destroy' LIMIT 1 Completed 200 OK in 26ms (Views: 18.7ms | ActiveRecord: 2.6ms) Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_082397d7-1806-433d-997b-17ae4e3cb574_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:14', 'teste@teste.com', '$2a$04$fVr42a4nbcJ7WRdy46/bP.o4GxH2HCmC6huVL5vzbk8rmwEWTjTei', NULL, x'70dbc2a5c0e542489c6f1fbbbc050735', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:14', 'User', x'6f4ad6161b3c41cfba166a46262189cb', '5de63067a1fb66655b7ab703e641b9e0', x'70dbc2a5c0e542489c6f1fbbbc050735', 'User', '2012-12-31 12:46:14') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:14', x'2b2f9be04dfd4fbf82ca6814d9d1152d', NULL, NULL, NULL, '2012-12-31 12:46:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:14', `updated_at` = '2012-12-31 12:46:14', `subdomain` = 'account2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d' WHERE `accounts`.`id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2b2f9be04dfd4fbf82ca6814d9d1152d', x'ed1a4c8a0da442f5bf9ff8c680f569b8', x'70dbc2a5c0e542489c6f1fbbbc050735') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed1a4c8a0da442f5bf9ff8c680f569b8', x'2786a62a5662498bb9a27999952e7148', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed1a4c8a0da442f5bf9ff8c680f569b8', x'fce1d0206f354a8da4f1440c25749e0e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891625d2d_f6180435d482961e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '+/›àMýO¿‚ÊhÙÑ-' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fce1d0206f354a8da4f1440c25749e0e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AND `accounts`.`id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d_destroy' LIMIT 1 Completed 200 OK in 26ms (Views: 18.7ms | ActiveRecord: 2.2ms) Started DELETE "/settings/account/2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AND `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AND `accounts`.`id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:14', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d\n', NULL, NULL, NULL, 0, 'account_2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d_destroy', '2013-01-01 12:46:14', '2012-12-31 12:46:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 15ms (ActiveRecord: 2.3ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AND `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' LIMIT 1 Completed 200 OK in 126ms (Views: 9.1ms | ActiveRecord: 1.5ms) Started GET "/settings/account/2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' AND `accounts`.`id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2b2f9be04dfd4fbf82ca6814d9d1152d' AND `account_users`.`user_id` = x'70dbc2a5c0e542489c6f1fbbbc050735' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed1a4c8a0da442f5bf9ff8c680f569b8' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2b2f9be0-4dfd-4fbf-82ca-6814d9d1152d_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 18.0ms | ActiveRecord: 2.2ms)  (10.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:14', 'teste@teste.com', '$2a$04$kLyiBAYNnP87im1aSviZw.JC7at7PxIdUG3UDLfqxpST8O.iGFc1O', NULL, x'51c53cda13a44bffaf1f53800acc1430', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'51c53cda13a44bffaf1f53800acc1430' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:14', 'User', x'564e26e3376449a789c4fd95bde5608e', '872d27335686f4c65da7f7be46261a13', x'51c53cda13a44bffaf1f53800acc1430', 'User', '2012-12-31 12:46:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'51c53cda13a44bffaf1f53800acc1430' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:14', x'01f9afdfc6104da7a6cfb0571690ba36', NULL, NULL, NULL, '2012-12-31 12:46:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:14', `updated_at` = '2012-12-31 12:46:14', `subdomain` = 'account01f9afdf-c610-4da7-a6cf-b0571690ba36' WHERE `accounts`.`id` = x'01f9afdfc6104da7a6cfb0571690ba36' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'01f9afdfc6104da7a6cfb0571690ba36' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'01f9afdfc6104da7a6cfb0571690ba36', x'0ad890f45fc9490482208d1f678ffeaf', x'51c53cda13a44bffaf1f53800acc1430') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0ad890f45fc9490482208d1f678ffeaf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0ad890f45fc9490482208d1f678ffeaf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0ad890f45fc9490482208d1f678ffeaf', x'bda4e0dea9924c948634311b69b5dd99', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0ad890f45fc9490482208d1f678ffeaf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0ad890f45fc9490482208d1f678ffeaf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0ad890f45fc9490482208d1f678ffeaf', x'52c1e6f066b649f2ac48ea746afb1fd4', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891674e99_f6180435d4829755@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'51c53cda13a44bffaf1f53800acc1430' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:14', 'notowner@account.test', '$2a$04$x3jSRpaWrrG8ssfhhGxAYuyGu8YrV4HZYOUxm4pbI/l17Opqv7whG', NULL, x'8d66d7621ee74a0d972505a22a9ad8ff', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8d66d7621ee74a0d972505a22a9ad8ff' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:14', 'User', x'68faba1f80e44a999b85c678192c2f82', 'e14939385bc1bd5919a774bbbbdf87b2', x'8d66d7621ee74a0d972505a22a9ad8ff', 'User', '2012-12-31 12:46:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8d66d7621ee74a0d972505a22a9ad8ff' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:14', x'd5f4b21752e84243a80a322fb193f397', NULL, NULL, NULL, '2012-12-31 12:46:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:14', `updated_at` = '2012-12-31 12:46:14', `subdomain` = 'accountd5f4b217-52e8-4243-a80a-322fb193f397' WHERE `accounts`.`id` = x'd5f4b21752e84243a80a322fb193f397' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd5f4b21752e84243a80a322fb193f397' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd5f4b21752e84243a80a322fb193f397', x'1840e11f323b4817a19f56c948b8bcc8', x'8d66d7621ee74a0d972505a22a9ad8ff') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1840e11f323b4817a19f56c948b8bcc8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1840e11f323b4817a19f56c948b8bcc8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1840e11f323b4817a19f56c948b8bcc8', x'91bcb652b6304046b67b954dfa6cc8b1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1840e11f323b4817a19f56c948b8bcc8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1840e11f323b4817a19f56c948b8bcc8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1840e11f323b4817a19f56c948b8bcc8', x'a0b418999fa84b718045101f21f3bb7a', 'admin') Sent mail to notowner@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:14 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e189168b165_f6180435d48298df@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:14', x'1074610a78c442679b2c7c6a61311e8a', 'jabanilson', NULL, 1, '2012-12-31 12:46:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:14', `updated_at` = '2012-12-31 12:46:14', `subdomain` = 'account1074610a-78c4-4267-9b2c-7c6a61311e8a' WHERE `accounts`.`id` = x'1074610a78c442679b2c7c6a61311e8a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1074610a78c442679b2c7c6a61311e8a', x'c53228bb8b0a416ab314dfeb373e8feb', x'51c53cda13a44bffaf1f53800acc1430') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c53228bb8b0a416ab314dfeb373e8feb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c53228bb8b0a416ab314dfeb373e8feb', x'0746c1f1afd54a34a45ec4c3024d4528', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c53228bb8b0a416ab314dfeb373e8feb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c53228bb8b0a416ab314dfeb373e8feb', x'02021efa330e4830bb8c8cfcb32b2ed1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8d66d7621ee74a0d972505a22a9ad8ff' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd5f4b21752e84243a80a322fb193f397' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'd5f4b21752e84243a80a322fb193f397' WHERE `account_users`.`id` = x'c53228bb8b0a416ab314dfeb373e8feb'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'02021efa330e4830bb8c8cfcb32b2ed1' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c53228bb8b0a416ab314dfeb373e8feb' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0746c1f1afd54a34a45ec4c3024d4528'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c53228bb8b0a416ab314dfeb373e8feb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c53228bb8b0a416ab314dfeb373e8feb', x'c213dcb6f1e048399bd1c544f9ed513b', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/d5f4b217-52e8-4243-a80a-322fb193f397" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"d5f4b217-52e8-4243-a80a-322fb193f397"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'51c53cda13a44bffaf1f53800acc1430' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' AND `accounts`.`id` = x'd5f4b21752e84243a80a322fb193f397' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd5f4b21752e84243a80a322fb193f397' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd5f4b21752e84243a80a322fb193f397' AND `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd5f4b21752e84243a80a322fb193f397' AND `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd5f4b21752e84243a80a322fb193f397' AND `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd5f4b21752e84243a80a322fb193f397' AND `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd5f4b21752e84243a80a322fb193f397' AND `account_users`.`user_id` = x'51c53cda13a44bffaf1f53800acc1430' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c53228bb8b0a416ab314dfeb373e8feb' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 15.7ms | ActiveRecord: 2.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:14', 'teste@teste.com', '$2a$04$LbXwhZKYCAKog3UYWeZMMOFRWTIns7SPLevX/ZGyzH/EEtcmWFtJ6', NULL, x'e2cfee7fffef425ea799d6ac82282612', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:14') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e2cfee7fffef425ea799d6ac82282612' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:14', 'User', x'bf8ea2d4b8a242278a295fb2c3058145', '61e50c42361d77d13756712d8bc0609d', x'e2cfee7fffef425ea799d6ac82282612', 'User', '2012-12-31 12:46:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e2cfee7fffef425ea799d6ac82282612' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:14', x'8499eb385f83426ba58e4286f2098fcd', NULL, NULL, NULL, '2012-12-31 12:46:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:14', `updated_at` = '2012-12-31 12:46:14', `subdomain` = 'account8499eb38-5f83-426b-a58e-4286f2098fcd' WHERE `accounts`.`id` = x'8499eb385f83426ba58e4286f2098fcd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8499eb385f83426ba58e4286f2098fcd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8499eb385f83426ba58e4286f2098fcd', x'4c09f37729654694917aa52e06d28b6a', x'e2cfee7fffef425ea799d6ac82282612') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4c09f37729654694917aa52e06d28b6a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c09f37729654694917aa52e06d28b6a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c09f37729654694917aa52e06d28b6a', x'bbb6715cfc1049c79d0786522e7f59b0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4c09f37729654694917aa52e06d28b6a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c09f37729654694917aa52e06d28b6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c09f37729654694917aa52e06d28b6a', x'93bfb3eeb42443fd8ef57acde4c381fd', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18916c103d_f6180435d4829995@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e2cfee7fffef425ea799d6ac82282612' LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:14', 'notowner@account.test', '$2a$04$CZcbG0xto8UirHY8JHfXFOSLo6fktW7DU6Q5LVrQwgPAKIlingOnm', NULL, x'b5be706ba6d047cd9367967cefecc301', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b5be706ba6d047cd9367967cefecc301' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:14', 'User', x'fb3af5a12251403e8414055128c98639', '767ff661fb710b7fdc17eb4c096b1ce6', x'b5be706ba6d047cd9367967cefecc301', 'User', '2012-12-31 12:46:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b5be706ba6d047cd9367967cefecc301' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:14', x'19caa553076244ffbcc3be777261a858', NULL, NULL, NULL, '2012-12-31 12:46:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:14', `updated_at` = '2012-12-31 12:46:14', `subdomain` = 'account19caa553-0762-44ff-bcc3-be777261a858' WHERE `accounts`.`id` = x'19caa553076244ffbcc3be777261a858' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'19caa553076244ffbcc3be777261a858' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'19caa553076244ffbcc3be777261a858', x'7348f17b8cb94cb9949f865c5d97d1c6', x'b5be706ba6d047cd9367967cefecc301') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7348f17b8cb94cb9949f865c5d97d1c6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7348f17b8cb94cb9949f865c5d97d1c6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7348f17b8cb94cb9949f865c5d97d1c6', x'b8f6e586657a4d5595dee41c89b6128d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7348f17b8cb94cb9949f865c5d97d1c6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7348f17b8cb94cb9949f865c5d97d1c6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7348f17b8cb94cb9949f865c5d97d1c6', x'a04a0b798dac4368833498e8834c2a0e', 'admin') Sent mail to notowner@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:14 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e18916d66b0_f6180435d4830066@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:14', x'1fb9ee833b164d548b841e0cfc0d76a6', 'jabanilson', NULL, 1, '2012-12-31 12:46:14')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:14', `updated_at` = '2012-12-31 12:46:14', `subdomain` = 'account1fb9ee83-3b16-4d54-8b84-1e0cfc0d76a6' WHERE `accounts`.`id` = x'1fb9ee833b164d548b841e0cfc0d76a6'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1fb9ee833b164d548b841e0cfc0d76a6', x'4dd84bce3b2e4b8cb64b99ac927db7dc', x'e2cfee7fffef425ea799d6ac82282612') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4dd84bce3b2e4b8cb64b99ac927db7dc', x'92e46caae44844ea9dd52308377b8f17', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4dd84bce3b2e4b8cb64b99ac927db7dc', x'e6526e5d7b15491a9b0f3bb9ecd24aa4', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b5be706ba6d047cd9367967cefecc301' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'19caa553076244ffbcc3be777261a858' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'19caa553076244ffbcc3be777261a858' WHERE `account_users`.`id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Ê¥SbDÿ¼Ã¾wra¨X' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'92e46caae44844ea9dd52308377b8f17' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e6526e5d7b15491a9b0f3bb9ecd24aa4'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4dd84bce3b2e4b8cb64b99ac927db7dc', x'a6a20599d4bb4856ab32032c7d43df8a', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/19caa553-0762-44ff-bcc3-be777261a858" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"19caa553-0762-44ff-bcc3-be777261a858"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e2cfee7fffef425ea799d6ac82282612' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' AND `accounts`.`id` = x'19caa553076244ffbcc3be777261a858' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'19caa553076244ffbcc3be777261a858' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'19caa553076244ffbcc3be777261a858' AND `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'19caa553076244ffbcc3be777261a858' AND `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'19caa553076244ffbcc3be777261a858' AND `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'19caa553076244ffbcc3be777261a858' AND `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'19caa553076244ffbcc3be777261a858' AND `account_users`.`user_id` = x'e2cfee7fffef425ea799d6ac82282612' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4dd84bce3b2e4b8cb64b99ac927db7dc' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 15.0ms | ActiveRecord: 1.9ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:14', 'teste@teste.com', '$2a$04$henXyQeklqwp8c0FYvvvQePzezreZ2YBkLjbx2OFZbPnBI1X0Dv.O', NULL, x'333b06ac00fa488996193071e63c205d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'333b06ac00fa488996193071e63c205d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:14', 'User', x'35dcdd690e27442cae7fc1bf0aaa1418', '73f9a24a75d294ae69e19b8bc3bdec80', x'333b06ac00fa488996193071e63c205d', 'User', '2012-12-31 12:46:14') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'333b06ac00fa488996193071e63c205d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:14', x'653bb13876fc48c7b60eb56e0b6167a1', NULL, NULL, NULL, '2012-12-31 12:46:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:14', `updated_at` = '2012-12-31 12:46:14', `subdomain` = 'account653bb138-76fc-48c7-b60e-b56e0b6167a1' WHERE `accounts`.`id` = x'653bb13876fc48c7b60eb56e0b6167a1' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'653bb13876fc48c7b60eb56e0b6167a1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'653bb13876fc48c7b60eb56e0b6167a1', x'b995c1c445174a13b7de1bd6a76278d1', x'333b06ac00fa488996193071e63c205d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b995c1c445174a13b7de1bd6a76278d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b995c1c445174a13b7de1bd6a76278d1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b995c1c445174a13b7de1bd6a76278d1', x'20b521adac24435eb11d6f32de62e7f9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b995c1c445174a13b7de1bd6a76278d1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b995c1c445174a13b7de1bd6a76278d1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b995c1c445174a13b7de1bd6a76278d1', x'67c9c80616da44b195288041ffad2e76', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:14 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18916f09ec_f6180435d48301e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:14 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.7ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' LIMIT 1 Completed 302 Found in 127ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'333b06ac00fa488996193071e63c205d' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:15', 'notowner@account.test', '$2a$04$0V.nLdGKFi9g8fEJtQOSQuQ4ml3DL.TrOB54p7MCMeLhgHRTJrq62', NULL, x'5a1fda517af341d08423a016fad51de8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:15') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5a1fda517af341d08423a016fad51de8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:15', 'User', x'6d3355b5ef9747888f7e3e0f50e20a1c', 'b86bd531ff645daaf771ecd7b6555ac5', x'5a1fda517af341d08423a016fad51de8', 'User', '2012-12-31 12:46:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5a1fda517af341d08423a016fad51de8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:15', x'142349f2ea7545f591c7ccb609fd0d7e', NULL, NULL, NULL, '2012-12-31 12:46:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:15', `updated_at` = '2012-12-31 12:46:15', `subdomain` = 'account142349f2-ea75-45f5-91c7-ccb609fd0d7e' WHERE `accounts`.`id` = x'142349f2ea7545f591c7ccb609fd0d7e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'142349f2ea7545f591c7ccb609fd0d7e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'142349f2ea7545f591c7ccb609fd0d7e', x'cf2576e9973c4476a0912b3b32921756', x'5a1fda517af341d08423a016fad51de8') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cf2576e9973c4476a0912b3b32921756') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf2576e9973c4476a0912b3b32921756' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf2576e9973c4476a0912b3b32921756', x'50afabb932794812898f4ca50dc598fe', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cf2576e9973c4476a0912b3b32921756') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf2576e9973c4476a0912b3b32921756' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf2576e9973c4476a0912b3b32921756', x'037b7dc2104540229e8ede208047101d', 'admin') Sent mail to notowner@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:15 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e189172fe15_f6180435d48302e5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:15', x'c1e585501c1b45fca9155c23ca8b38b8', 'jabanilson', NULL, 1, '2012-12-31 12:46:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:15', `updated_at` = '2012-12-31 12:46:15', `subdomain` = 'accountc1e58550-1c1b-45fc-a915-5c23ca8b38b8' WHERE `accounts`.`id` = x'c1e585501c1b45fca9155c23ca8b38b8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c1e585501c1b45fca9155c23ca8b38b8', x'4e955e72ec224f638b399143fc9e3d5d', x'333b06ac00fa488996193071e63c205d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e955e72ec224f638b399143fc9e3d5d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e955e72ec224f638b399143fc9e3d5d', x'85ddbacd0c5549a59e30cfadd5ddaef1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e955e72ec224f638b399143fc9e3d5d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e955e72ec224f638b399143fc9e3d5d', x'94d87771c56d441296455262ae66df33', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5a1fda517af341d08423a016fad51de8' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'142349f2ea7545f591c7ccb609fd0d7e' LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = x'142349f2ea7545f591c7ccb609fd0d7e' WHERE `account_users`.`id` = x'4e955e72ec224f638b399143fc9e3d5d'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e955e72ec224f638b399143fc9e3d5d' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'85ddbacd0c5549a59e30cfadd5ddaef1' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'94d87771c56d441296455262ae66df33'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e955e72ec224f638b399143fc9e3d5d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e955e72ec224f638b399143fc9e3d5d', x'8dea421b414b498bb37080d2ba649faf', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/142349f2-ea75-45f5-91c7-ccb609fd0d7e" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"142349f2-ea75-45f5-91c7-ccb609fd0d7e"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'333b06ac00fa488996193071e63c205d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' AND `accounts`.`id` = x'142349f2ea7545f591c7ccb609fd0d7e' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'142349f2ea7545f591c7ccb609fd0d7e' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'142349f2ea7545f591c7ccb609fd0d7e' AND `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'142349f2ea7545f591c7ccb609fd0d7e' AND `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'142349f2ea7545f591c7ccb609fd0d7e' AND `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'142349f2ea7545f591c7ccb609fd0d7e' AND `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'142349f2ea7545f591c7ccb609fd0d7e' AND `account_users`.`user_id` = x'333b06ac00fa488996193071e63c205d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4e955e72ec224f638b399143fc9e3d5d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 15.4ms | ActiveRecord: 1.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:15', 'teste@teste.com', '$2a$04$pprOsdShhIQ0sSDalzuzW.J6xUEfkD0vjuQZoMlfmuiF3G7B17D3i', NULL, x'7379944b9e6748f7a624ce8fe505b670', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7379944b9e6748f7a624ce8fe505b670' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:15', 'User', x'ccc91b4c71584225a9d81c30c1e9d2f8', 'ae7dedf8dc557b6357533c3fa8810b89', x'7379944b9e6748f7a624ce8fe505b670', 'User', '2012-12-31 12:46:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7379944b9e6748f7a624ce8fe505b670' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:15', x'3746b55394604d13a93edbe35e0f01ad', NULL, NULL, NULL, '2012-12-31 12:46:15')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:15', `updated_at` = '2012-12-31 12:46:15', `subdomain` = 'account3746b553-9460-4d13-a93e-dbe35e0f01ad' WHERE `accounts`.`id` = x'3746b55394604d13a93edbe35e0f01ad' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3746b55394604d13a93edbe35e0f01ad' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3746b55394604d13a93edbe35e0f01ad', x'0baad8789ded467cbb133f7910561e40', x'7379944b9e6748f7a624ce8fe505b670') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0baad8789ded467cbb133f7910561e40') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0baad8789ded467cbb133f7910561e40' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0baad8789ded467cbb133f7910561e40', x'3fd7e7d5b01c4d928170b27272b8434d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0baad8789ded467cbb133f7910561e40') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0baad8789ded467cbb133f7910561e40' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0baad8789ded467cbb133f7910561e40', x'8b85f452a35a41adaad9fb2b2623ab29', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189174a150_f6180435d483034@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.6ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7379944b9e6748f7a624ce8fe505b670' LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' ORDER BY `account_users`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:15', 'notowner@account.test', '$2a$04$vdjjBABy5aM2.oQgrASGj.Hw0eNwoTwkswX3xM4q2kLqXCfAR.BeC', NULL, x'd049321dae74424ab6742734510f8123', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd049321dae74424ab6742734510f8123' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:15', 'User', x'1cbb3c9a007d4da1a0c6da3e6ee52646', '7552bf0880636857d01bcf915021ce81', x'd049321dae74424ab6742734510f8123', 'User', '2012-12-31 12:46:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd049321dae74424ab6742734510f8123' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:15', x'492c05c0c930414381d5ba55c406adfc', NULL, NULL, NULL, '2012-12-31 12:46:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:15', `updated_at` = '2012-12-31 12:46:15', `subdomain` = 'account492c05c0-c930-4143-81d5-ba55c406adfc' WHERE `accounts`.`id` = x'492c05c0c930414381d5ba55c406adfc' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'492c05c0c930414381d5ba55c406adfc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'492c05c0c930414381d5ba55c406adfc', x'e835702830c54be597ec5e96cec4a4c8', x'd049321dae74424ab6742734510f8123') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e835702830c54be597ec5e96cec4a4c8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e835702830c54be597ec5e96cec4a4c8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e835702830c54be597ec5e96cec4a4c8', x'e06cfdedb5df4fbcaacc003f9c890516', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e835702830c54be597ec5e96cec4a4c8') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e835702830c54be597ec5e96cec4a4c8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e835702830c54be597ec5e96cec4a4c8', x'16818bda80674d86b6923ef0358a4e14', 'admin') Sent mail to notowner@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:15 -0200 From: Iugu Reply-To: Iugu To: notowner@account.test Message-ID: <50e18917605d0_f6180435d483048c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:15', x'f6ec5b0d5e8d477caddedea09032a3a5', 'jabanilson', NULL, 1, '2012-12-31 12:46:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:15', `updated_at` = '2012-12-31 12:46:15', `subdomain` = 'accountf6ec5b0d-5e8d-477c-adde-dea09032a3a5' WHERE `accounts`.`id` = x'f6ec5b0d5e8d477caddedea09032a3a5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f6ec5b0d5e8d477caddedea09032a3a5', x'86a7da3e8fde4a31813242c74070c3b2', x'7379944b9e6748f7a624ce8fe505b670') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86a7da3e8fde4a31813242c74070c3b2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86a7da3e8fde4a31813242c74070c3b2', x'8e11c2c9583648a19e9a63460fa35db1', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86a7da3e8fde4a31813242c74070c3b2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86a7da3e8fde4a31813242c74070c3b2', x'23c1e8d97fc14691bee222ed4dc0fa07', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd049321dae74424ab6742734510f8123' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'492c05c0c930414381d5ba55c406adfc' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'492c05c0c930414381d5ba55c406adfc' WHERE `account_users`.`id` = x'86a7da3e8fde4a31813242c74070c3b2'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'23c1e8d97fc14691bee222ed4dc0fa07' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86a7da3e8fde4a31813242c74070c3b2' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'I,ÀÉ0ACÕºUÄ­ü' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8e11c2c9583648a19e9a63460fa35db1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86a7da3e8fde4a31813242c74070c3b2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86a7da3e8fde4a31813242c74070c3b2', x'fc4042d6a4e84b80bed8e93d942cec8f', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/492c05c0-c930-4143-81d5-ba55c406adfc" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"492c05c0-c930-4143-81d5-ba55c406adfc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7379944b9e6748f7a624ce8fe505b670' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' AND `accounts`.`id` = x'492c05c0c930414381d5ba55c406adfc' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'492c05c0c930414381d5ba55c406adfc' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'492c05c0c930414381d5ba55c406adfc' AND `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'492c05c0c930414381d5ba55c406adfc' AND `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'492c05c0c930414381d5ba55c406adfc' AND `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'492c05c0c930414381d5ba55c406adfc' AND `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'492c05c0c930414381d5ba55c406adfc' AND `account_users`.`user_id` = x'7379944b9e6748f7a624ce8fe505b670' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'86a7da3e8fde4a31813242c74070c3b2' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 16.1ms | ActiveRecord: 1.7ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:15', 'teste@teste.com', '$2a$04$rDK9eWNTzTlmBm.q64mMmO0/9V5ovAa5GFIgbeC/aTHEoS/iJVEXm', NULL, x'3ec29570b82049cfab519b98e22a6fbf', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3ec29570b82049cfab519b98e22a6fbf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:15', 'User', x'f7fc810b4e6a4363bcf8022aa9915b4b', 'b098f40b590c296ce5ef3f4d40a61cf3', x'3ec29570b82049cfab519b98e22a6fbf', 'User', '2012-12-31 12:46:15') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3ec29570b82049cfab519b98e22a6fbf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:15', x'bd7ad9a6b3684cfba6a242acc5198253', NULL, NULL, NULL, '2012-12-31 12:46:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:15', `updated_at` = '2012-12-31 12:46:15', `subdomain` = 'accountbd7ad9a6-b368-4cfb-a6a2-42acc5198253' WHERE `accounts`.`id` = x'bd7ad9a6b3684cfba6a242acc5198253' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bd7ad9a6b3684cfba6a242acc5198253' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bd7ad9a6b3684cfba6a242acc5198253', x'efa8f1615f3c4418b2c942f1b62dcaf7', x'3ec29570b82049cfab519b98e22a6fbf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'efa8f1615f3c4418b2c942f1b62dcaf7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efa8f1615f3c4418b2c942f1b62dcaf7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efa8f1615f3c4418b2c942f1b62dcaf7', x'fd26fa8ce7294c56b8d8e33422dc5ad3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'efa8f1615f3c4418b2c942f1b62dcaf7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'efa8f1615f3c4418b2c942f1b62dcaf7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'efa8f1615f3c4418b2c942f1b62dcaf7', x'd63a5b459a5e4d67bbd7cfabcda4e7d0', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891796300_f6180435d483053d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3ec29570b82049cfab519b98e22a6fbf' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3ec29570b82049cfab519b98e22a6fbf' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3ec29570b82049cfab519b98e22a6fbf' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3ec29570b82049cfab519b98e22a6fbf' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3ec29570b82049cfab519b98e22a6fbf' ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/bd7ad9a6-b368-4cfb-a6a2-42acc5198253" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"bd7ad9a6-b368-4cfb-a6a2-42acc5198253"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3ec29570b82049cfab519b98e22a6fbf' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3ec29570b82049cfab519b98e22a6fbf' AND `accounts`.`id` = x'bd7ad9a6b3684cfba6a242acc5198253' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'bd7ad9a6b3684cfba6a242acc5198253' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bd7ad9a6b3684cfba6a242acc5198253' AND `account_users`.`user_id` = x'3ec29570b82049cfab519b98e22a6fbf' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'efa8f1615f3c4418b2c942f1b62dcaf7' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bd7ad9a6b3684cfba6a242acc5198253' AND `account_users`.`user_id` = x'3ec29570b82049cfab519b98e22a6fbf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'efa8f1615f3c4418b2c942f1b62dcaf7' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bd7ad9a6b3684cfba6a242acc5198253' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bd7ad9a6b3684cfba6a242acc5198253' AND `account_users`.`user_id` = x'3ec29570b82049cfab519b98e22a6fbf' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'efa8f1615f3c4418b2c942f1b62dcaf7' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bd7ad9a6-b368-4cfb-a6a2-42acc5198253_destroy' LIMIT 1 Completed 200 OK in 24ms (Views: 17.0ms | ActiveRecord: 2.1ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:15', 'teste@teste.com', '$2a$04$uV708HByHa3RfdszwttWze5E9ufS6i6TVFkW8.NvU.AhT2VbNfoB6', NULL, x'f4820572588a4287b9da8a1dca30d912', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:15') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f4820572588a4287b9da8a1dca30d912' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:15', 'User', x'dff45b6b8dfd43f3a63e7f2f312b551f', 'b690b770d1de0206f93e442b5863cccb', x'f4820572588a4287b9da8a1dca30d912', 'User', '2012-12-31 12:46:15') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f4820572588a4287b9da8a1dca30d912' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:15', x'cbbc45787f4c48b5ba1e548a59e86ec8', NULL, NULL, NULL, '2012-12-31 12:46:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:15', `updated_at` = '2012-12-31 12:46:15', `subdomain` = 'accountcbbc4578-7f4c-48b5-ba1e-548a59e86ec8' WHERE `accounts`.`id` = x'cbbc45787f4c48b5ba1e548a59e86ec8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cbbc45787f4c48b5ba1e548a59e86ec8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cbbc45787f4c48b5ba1e548a59e86ec8', x'a9fe1c37866d46b7bbc93e36bdcbae04', x'f4820572588a4287b9da8a1dca30d912') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a9fe1c37866d46b7bbc93e36bdcbae04') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9fe1c37866d46b7bbc93e36bdcbae04' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9fe1c37866d46b7bbc93e36bdcbae04', x'be5c6fac3f4b4bfebb0c961bb8beace1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a9fe1c37866d46b7bbc93e36bdcbae04') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9fe1c37866d46b7bbc93e36bdcbae04' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9fe1c37866d46b7bbc93e36bdcbae04', x'188a97783ba549ccb3532e2a7d52fca6', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18917b4972_f6180435d4830667@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4820572588a4287b9da8a1dca30d912' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4820572588a4287b9da8a1dca30d912' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4820572588a4287b9da8a1dca30d912' LIMIT 1 Completed 302 Found in 125ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f4820572588a4287b9da8a1dca30d912' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f4820572588a4287b9da8a1dca30d912' ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/cbbc4578-7f4c-48b5-ba1e-548a59e86ec8" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"cbbc4578-7f4c-48b5-ba1e-548a59e86ec8"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f4820572588a4287b9da8a1dca30d912' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4820572588a4287b9da8a1dca30d912' AND `accounts`.`id` = x'cbbc45787f4c48b5ba1e548a59e86ec8' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'cbbc45787f4c48b5ba1e548a59e86ec8' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'cbbc45787f4c48b5ba1e548a59e86ec8' AND `account_users`.`user_id` = x'f4820572588a4287b9da8a1dca30d912' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a9fe1c37866d46b7bbc93e36bdcbae04' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'cbbc45787f4c48b5ba1e548a59e86ec8' AND `account_users`.`user_id` = x'f4820572588a4287b9da8a1dca30d912' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a9fe1c37866d46b7bbc93e36bdcbae04' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'cbbc45787f4c48b5ba1e548a59e86ec8' AND `account_users`.`user_id` = x'f4820572588a4287b9da8a1dca30d912' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a9fe1c37866d46b7bbc93e36bdcbae04' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_cbbc4578-7f4c-48b5-ba1e-548a59e86ec8_destroy' LIMIT 1 Completed 200 OK in 21ms (Views: 14.4ms | ActiveRecord: 2.3ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:15', 'teste@teste.com', '$2a$04$Gg681C3ly4xnb0WR0.hBk./C.V5flN0rg.30FHokJoyahivVNZrgS', NULL, x'eba4db206b3b4265859cd9e9b39f8bd9', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:15') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:15', 'User', x'70c38c566e4f44dc9778c3d1a13a2583', '589388290d21349c6d4c0c85c206d5d0', x'eba4db206b3b4265859cd9e9b39f8bd9', 'User', '2012-12-31 12:46:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:15', x'4c3bf2a147414b7699950711ac5247bc', NULL, NULL, NULL, '2012-12-31 12:46:15')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:15', `updated_at` = '2012-12-31 12:46:15', `subdomain` = 'account4c3bf2a1-4741-4b76-9995-0711ac5247bc' WHERE `accounts`.`id` = x'4c3bf2a147414b7699950711ac5247bc' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c3bf2a147414b7699950711ac5247bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4c3bf2a147414b7699950711ac5247bc', x'b5f2576f4edb4d21963d82449b6cea87', x'eba4db206b3b4265859cd9e9b39f8bd9') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b5f2576f4edb4d21963d82449b6cea87') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b5f2576f4edb4d21963d82449b6cea87' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b5f2576f4edb4d21963d82449b6cea87', x'f971aee916b246dca47a7997e78a67b0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b5f2576f4edb4d21963d82449b6cea87') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b5f2576f4edb4d21963d82449b6cea87' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b5f2576f4edb4d21963d82449b6cea87', x'b178232d544844cb92b15dc01364d06b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:15 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18917ee542_f6180435d483077c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:15 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:16', 'xpto@account.test', '$2a$04$IshS.fN39bVMbEYLg1JzSOiTvsk0yMKwaL2TTcB9ANQbWf7l89Exu', NULL, x'fb6da70b3e41430d8d3ee53322148a26', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fb6da70b3e41430d8d3ee53322148a26' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:16', 'User', x'eb67ca2988f44e1baf77aee43bd52b2f', '98e9ead0abb27abf9765a34f73a51973', x'fb6da70b3e41430d8d3ee53322148a26', 'User', '2012-12-31 12:46:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fb6da70b3e41430d8d3ee53322148a26' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'f61ff316c9e644688b382541c9ab3014', NULL, NULL, NULL, '2012-12-31 12:46:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'accountf61ff316-c9e6-4468-8b38-2541c9ab3014' WHERE `accounts`.`id` = x'f61ff316c9e644688b382541c9ab3014' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f61ff316c9e644688b382541c9ab3014' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f61ff316c9e644688b382541c9ab3014', x'8f29d6b5a3674a5ebefa7ed941b32ef0', x'fb6da70b3e41430d8d3ee53322148a26') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8f29d6b5a3674a5ebefa7ed941b32ef0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f29d6b5a3674a5ebefa7ed941b32ef0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f29d6b5a3674a5ebefa7ed941b32ef0', x'99e9f8b19a1f4b9fb23836b3edab3ca7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8f29d6b5a3674a5ebefa7ed941b32ef0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f29d6b5a3674a5ebefa7ed941b32ef0' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f29d6b5a3674a5ebefa7ed941b32ef0', x'd6244e0c05bd4078a33eaa9ea956f648', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:16 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e189181089d_f6180435d4830861@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'72c0acc3acd64b1a98badfb91d59bf6f', 'jabanilson', NULL, 1, '2012-12-31 12:46:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'account72c0acc3-acd6-4b1a-98ba-dfb91d59bf6f' WHERE `accounts`.`id` = x'72c0acc3acd64b1a98badfb91d59bf6f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'72c0acc3acd64b1a98badfb91d59bf6f', x'e923c45840584a899f7dc000e757920a', x'fb6da70b3e41430d8d3ee53322148a26') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e923c45840584a899f7dc000e757920a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e923c45840584a899f7dc000e757920a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e923c45840584a899f7dc000e757920a', x'b4da3523db544f609340ef2f75f1d5ce', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e923c45840584a899f7dc000e757920a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e923c45840584a899f7dc000e757920a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e923c45840584a899f7dc000e757920a', x'69edbac43f6444c7bc808ab132b27d42', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c3bf2a147414b7699950711ac5247bc' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'4c3bf2a147414b7699950711ac5247bc' WHERE `account_users`.`id` = x'e923c45840584a899f7dc000e757920a'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e923c45840584a899f7dc000e757920a'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'69edbac43f6444c7bc808ab132b27d42' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e923c45840584a899f7dc000e757920a' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'L;ò¡GAKv™•¬RG¼' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b4da3523db544f609340ef2f75f1d5ce'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'e923c45840584a899f7dc000e757920a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e923c45840584a899f7dc000e757920a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e923c45840584a899f7dc000e757920a', x'698451637f264be4b69d8104822c98ad', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4c3bf2a1-4741-4b76-9995-0711ac5247bc/users" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"4c3bf2a1-4741-4b76-9995-0711ac5247bc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c3bf2a147414b7699950711ac5247bc' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4c3bf2a1-4741-4b76-9995-0711ac5247bc_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c3bf2a147414b7699950711ac5247bc' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c3bf2a147414b7699950711ac5247bc' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c3bf2a147414b7699950711ac5247bc' AND `account_users`.`user_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b5f2576f4edb4d21963d82449b6cea87' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_b5f2576f-4edb-4d21-963d-82449b6cea87_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b5f2576f4edb4d21963d82449b6cea87' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fb6da70b3e41430d8d3ee53322148a26' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c3bf2a147414b7699950711ac5247bc' AND `account_users`.`user_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b5f2576f4edb4d21963d82449b6cea87' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_e923c458-4058-4a89-9f7d-c000e757920a_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e923c45840584a899f7dc000e757920a' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c3bf2a147414b7699950711ac5247bc' AND `account_users`.`user_id` = x'eba4db206b3b4265859cd9e9b39f8bd9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b5f2576f4edb4d21963d82449b6cea87' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 29ms (Views: 22.2ms | ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:16', 'teste@teste.com', '$2a$04$MWrXyzYfJsFgl7IcWYxs.uay2h9bMqSI66qqm78W/l0M1bGc8KBgq', NULL, x'42f35853230f4a8dae9bd39c94113aad', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'42f35853230f4a8dae9bd39c94113aad' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:16', 'User', x'16757cada0514ff6be1cc10229219975', 'cc80570993579927cfa2c4ca7748dd36', x'42f35853230f4a8dae9bd39c94113aad', 'User', '2012-12-31 12:46:16') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'42f35853230f4a8dae9bd39c94113aad' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'ad8d5671d5ec468698146546c85d259e', NULL, NULL, NULL, '2012-12-31 12:46:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'accountad8d5671-d5ec-4686-9814-6546c85d259e' WHERE `accounts`.`id` = x'ad8d5671d5ec468698146546c85d259e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ad8d5671d5ec468698146546c85d259e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ad8d5671d5ec468698146546c85d259e', x'754f65c088e24dfea5ef5a3089325d22', x'42f35853230f4a8dae9bd39c94113aad') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'754f65c088e24dfea5ef5a3089325d22') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'754f65c088e24dfea5ef5a3089325d22' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'754f65c088e24dfea5ef5a3089325d22', x'b7c72935a6f94759af95c679939a4f44', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'754f65c088e24dfea5ef5a3089325d22') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'754f65c088e24dfea5ef5a3089325d22' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'754f65c088e24dfea5ef5a3089325d22', x'07e663f0e1ea4d6daba76dda7c3c712b', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189184947a_f6180435d48309a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42f35853230f4a8dae9bd39c94113aad' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:16', 'xpto@account.test', '$2a$04$6HYNZFcZIz3XXU4RsuVVoOzs5eP8CIEwuEBZuTJxIqiowu5eJhPCy', NULL, x'455bdf41f1d84e6ab768c2d6111f7012', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'455bdf41f1d84e6ab768c2d6111f7012' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:16', 'User', x'0b3231d05de3434f838d52ac70713c0b', 'c1b7a21b9b5cb44b0c2c1b7d77ee77d8', x'455bdf41f1d84e6ab768c2d6111f7012', 'User', '2012-12-31 12:46:16') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'455bdf41f1d84e6ab768c2d6111f7012' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'0c771c028d474624bde4d1597573c322', NULL, NULL, NULL, '2012-12-31 12:46:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'account0c771c02-8d47-4624-bde4-d1597573c322' WHERE `accounts`.`id` = x'0c771c028d474624bde4d1597573c322' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0c771c028d474624bde4d1597573c322' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0c771c028d474624bde4d1597573c322', x'b6cdce7d58894f228d0204036e974e99', x'455bdf41f1d84e6ab768c2d6111f7012') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b6cdce7d58894f228d0204036e974e99') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6cdce7d58894f228d0204036e974e99' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6cdce7d58894f228d0204036e974e99', x'603b022397fb4c3787a684c6ab2f215f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b6cdce7d58894f228d0204036e974e99') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6cdce7d58894f228d0204036e974e99' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6cdce7d58894f228d0204036e974e99', x'1ba1733447da43fe80e07f5e66dfbc04', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:16 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e189185ee39_f6180435d48310b3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'83de4a2336784e069de5f1f2e296bd42', 'jabanilson', NULL, 1, '2012-12-31 12:46:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'account83de4a23-3678-4e06-9de5-f1f2e296bd42' WHERE `accounts`.`id` = x'83de4a2336784e069de5f1f2e296bd42'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'83de4a2336784e069de5f1f2e296bd42', x'f984dc6b116545db800acf2dc18d48c2', x'455bdf41f1d84e6ab768c2d6111f7012') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f984dc6b116545db800acf2dc18d48c2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f984dc6b116545db800acf2dc18d48c2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f984dc6b116545db800acf2dc18d48c2', x'01a52c0c708b4784829468c5d7e5c955', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f984dc6b116545db800acf2dc18d48c2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f984dc6b116545db800acf2dc18d48c2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f984dc6b116545db800acf2dc18d48c2', x'a5a967455352454a918742973204de66', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ad8d5671d5ec468698146546c85d259e' LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = x'ad8d5671d5ec468698146546c85d259e' WHERE `account_users`.`id` = x'f984dc6b116545db800acf2dc18d48c2'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f984dc6b116545db800acf2dc18d48c2'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f984dc6b116545db800acf2dc18d48c2' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '­VqÕìF†˜eFÈ]%ž' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'01a52c0c708b4784829468c5d7e5c955' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a5a967455352454a918742973204de66'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'f984dc6b116545db800acf2dc18d48c2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f984dc6b116545db800acf2dc18d48c2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f984dc6b116545db800acf2dc18d48c2', x'231c6662668b492ea414cfb9030ce373', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/ad8d5671-d5ec-4686-9814-6546c85d259e/users" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"ad8d5671-d5ec-4686-9814-6546c85d259e"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ad8d5671d5ec468698146546c85d259e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ad8d5671-d5ec-4686-9814-6546c85d259e_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ad8d5671d5ec468698146546c85d259e' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ad8d5671d5ec468698146546c85d259e' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ad8d5671d5ec468698146546c85d259e' AND `account_users`.`user_id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'754f65c088e24dfea5ef5a3089325d22' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_754f65c0-88e2-4dfe-a5ef-5a3089325d22_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'754f65c088e24dfea5ef5a3089325d22' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'455bdf41f1d84e6ab768c2d6111f7012' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ad8d5671d5ec468698146546c85d259e' AND `account_users`.`user_id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'754f65c088e24dfea5ef5a3089325d22' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_f984dc6b-1165-45db-800a-cf2dc18d48c2_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f984dc6b116545db800acf2dc18d48c2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ad8d5671d5ec468698146546c85d259e' AND `account_users`.`user_id` = x'42f35853230f4a8dae9bd39c94113aad' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'754f65c088e24dfea5ef5a3089325d22' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 19.2ms | ActiveRecord: 2.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:16', 'teste@teste.com', '$2a$04$QRBzykfeTvRCBXRgDO5Q..yWXMofs4PbZRbh.tG3KM9SV/h5e9tbq', NULL, x'56a90dd527374a8499d95876e549b2fe', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'56a90dd527374a8499d95876e549b2fe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:16', 'User', x'698850bd3421417d87db84b23c2d9962', '170e83e059cd7b94ba1df7a9fb2a4e45', x'56a90dd527374a8499d95876e549b2fe', 'User', '2012-12-31 12:46:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'56a90dd527374a8499d95876e549b2fe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'6edf1aa9581348038c82dfadc83c09c5', NULL, NULL, NULL, '2012-12-31 12:46:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'account6edf1aa9-5813-4803-8c82-dfadc83c09c5' WHERE `accounts`.`id` = x'6edf1aa9581348038c82dfadc83c09c5' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6edf1aa9581348038c82dfadc83c09c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6edf1aa9581348038c82dfadc83c09c5', x'4cdb6468d3324e0099c2c02fe5977480', x'56a90dd527374a8499d95876e549b2fe') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4cdb6468d3324e0099c2c02fe5977480') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4cdb6468d3324e0099c2c02fe5977480' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4cdb6468d3324e0099c2c02fe5977480', x'4e6197385eea4099baeb38a5d04c3fe7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4cdb6468d3324e0099c2c02fe5977480') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4cdb6468d3324e0099c2c02fe5977480' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4cdb6468d3324e0099c2c02fe5977480', x'19851ebc8232419b96545fe90302aade', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189187a2f0_f6180435d4831194@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (116.0ms) Completed 200 OK in 126ms (Views: 124.0ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56a90dd527374a8499d95876e549b2fe' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:16', 'xpto@account.test', '$2a$04$d50OmkhxsGR8erZago71lONp4.WkKkzEPzg5yvluxcgmQpl1jQGGi', NULL, x'4c4884de2ca941a9959afb8db048ab6f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4c4884de2ca941a9959afb8db048ab6f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:16', 'User', x'cc05f59a6cfc4503abaa9eeef9ea03f8', '19dc21ada8095fee1a46d03e34789060', x'4c4884de2ca941a9959afb8db048ab6f', 'User', '2012-12-31 12:46:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4c4884de2ca941a9959afb8db048ab6f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'6beb8aad69ad472495cc4f72f06b101a', NULL, NULL, NULL, '2012-12-31 12:46:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'account6beb8aad-69ad-4724-95cc-4f72f06b101a' WHERE `accounts`.`id` = x'6beb8aad69ad472495cc4f72f06b101a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6beb8aad69ad472495cc4f72f06b101a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6beb8aad69ad472495cc4f72f06b101a', x'76f677c04174470180f3d09285584888', x'4c4884de2ca941a9959afb8db048ab6f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'76f677c04174470180f3d09285584888') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'76f677c04174470180f3d09285584888' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'76f677c04174470180f3d09285584888', x'da95f51e69c1405b8419fbd66059726f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'76f677c04174470180f3d09285584888') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'76f677c04174470180f3d09285584888' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'76f677c04174470180f3d09285584888', x'fd10ce532a9b4b86bf0956a797eb20f9', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:16 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e18918ac8b0_f6180435d48312f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'765586f8852f46048d619e5a1d382c19', 'jabanilson', NULL, 1, '2012-12-31 12:46:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'account765586f8-852f-4604-8d61-9e5a1d382c19' WHERE `accounts`.`id` = x'765586f8852f46048d619e5a1d382c19'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'765586f8852f46048d619e5a1d382c19', x'5b8e1b4f0efc40ea9e488dc0c00f39fe', x'4c4884de2ca941a9959afb8db048ab6f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b8e1b4f0efc40ea9e488dc0c00f39fe', x'35595231213d4b1bb50b77f29d725495', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b8e1b4f0efc40ea9e488dc0c00f39fe', x'275553e801aa4f9a85f038a28d7e31f1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6edf1aa9581348038c82dfadc83c09c5' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'6edf1aa9581348038c82dfadc83c09c5' WHERE `account_users`.`id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'275553e801aa4f9a85f038a28d7e31f1' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'35595231213d4b1bb50b77f29d725495'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b8e1b4f0efc40ea9e488dc0c00f39fe', x'23c3f5fb25e04f8f92a78e84216eff42', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/6edf1aa9-5813-4803-8c82-dfadc83c09c5/users" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"6edf1aa9-5813-4803-8c82-dfadc83c09c5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6edf1aa9581348038c82dfadc83c09c5' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6edf1aa9-5813-4803-8c82-dfadc83c09c5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6edf1aa9581348038c82dfadc83c09c5' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6edf1aa9581348038c82dfadc83c09c5' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6edf1aa9581348038c82dfadc83c09c5' AND `account_users`.`user_id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4cdb6468d3324e0099c2c02fe5977480' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_4cdb6468-d332-4e00-99c2-c02fe5977480_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4cdb6468d3324e0099c2c02fe5977480' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4c4884de2ca941a9959afb8db048ab6f' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6edf1aa9581348038c82dfadc83c09c5' AND `account_users`.`user_id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4cdb6468d3324e0099c2c02fe5977480' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_5b8e1b4f-0efc-40ea-9e48-8dc0c00f39fe_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5b8e1b4f0efc40ea9e488dc0c00f39fe' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6edf1aa9581348038c82dfadc83c09c5' AND `account_users`.`user_id` = x'56a90dd527374a8499d95876e549b2fe' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4cdb6468d3324e0099c2c02fe5977480' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 27ms (Views: 20.0ms | ActiveRecord: 3.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:16', 'teste@teste.com', '$2a$04$QVF4VFRycgjO3lwOorP.XeS..mi1OIj0ldCbQtV2bbH0WtDl55U3W', NULL, x'db402f4ca8914d0f98d486d18d8c3929', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:16') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'db402f4ca8914d0f98d486d18d8c3929' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:16', 'User', x'594f69b74eb34c848f2ba006474244c6', 'b2af85024d4001726b44e37beba489f0', x'db402f4ca8914d0f98d486d18d8c3929', 'User', '2012-12-31 12:46:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'db402f4ca8914d0f98d486d18d8c3929' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'ff756e79ed224f0499e7278aedb41138', NULL, NULL, NULL, '2012-12-31 12:46:16')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'accountff756e79-ed22-4f04-99e7-278aedb41138' WHERE `accounts`.`id` = x'ff756e79ed224f0499e7278aedb41138' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ff756e79ed224f0499e7278aedb41138' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ff756e79ed224f0499e7278aedb41138', x'2b511386617f48558241b3867c7d1554', x'db402f4ca8914d0f98d486d18d8c3929') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2b511386617f48558241b3867c7d1554') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b511386617f48558241b3867c7d1554' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b511386617f48558241b3867c7d1554', x'c9f2acb4edcd42608f53a6815f438ebc', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2b511386617f48558241b3867c7d1554') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b511386617f48558241b3867c7d1554' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b511386617f48558241b3867c7d1554', x'97fe04cdffe94faa8b9c21bafd9d737f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:16 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18918c8302_f6180435d4831371@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'db402f4ca8914d0f98d486d18d8c3929' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:16 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:16', 'xpto@account.test', '$2a$04$NzKYf3JaeW5/UCuMevZ0D.sZVPJXTL1ECiw2ow/EWi1LzGpHeK5RS', NULL, x'19c83669cd7c4bdb89db15674f95cb7e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'19c83669cd7c4bdb89db15674f95cb7e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:16', 'User', x'7620d0f85ad745d79b725c9d439fe808', 'ed47442d7a46340d0f9434b4391ed419', x'19c83669cd7c4bdb89db15674f95cb7e', 'User', '2012-12-31 12:46:16') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'19c83669cd7c4bdb89db15674f95cb7e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:16', x'3c001b1fce234c2fa60ef66966e2e0d7', NULL, NULL, NULL, '2012-12-31 12:46:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:16', `updated_at` = '2012-12-31 12:46:16', `subdomain` = 'account3c001b1f-ce23-4c2f-a60e-f66966e2e0d7' WHERE `accounts`.`id` = x'3c001b1fce234c2fa60ef66966e2e0d7' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3c001b1fce234c2fa60ef66966e2e0d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3c001b1fce234c2fa60ef66966e2e0d7', x'fe4aab39e05c4e01bf91663adb934290', x'19c83669cd7c4bdb89db15674f95cb7e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fe4aab39e05c4e01bf91663adb934290') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe4aab39e05c4e01bf91663adb934290' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe4aab39e05c4e01bf91663adb934290', x'ec3c003167074a92b58ba41dc231e21f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fe4aab39e05c4e01bf91663adb934290') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe4aab39e05c4e01bf91663adb934290' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe4aab39e05c4e01bf91663adb934290', x'd9e4d5b7989149fd95f86c893835e2fd', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:17 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e189195ba4_f6180435d483142a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'338a1f27fb57479fa220fec26242ac82', 'jabanilson', NULL, 1, '2012-12-31 12:46:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'account338a1f27-fb57-479f-a220-fec26242ac82' WHERE `accounts`.`id` = x'338a1f27fb57479fa220fec26242ac82'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'338a1f27fb57479fa220fec26242ac82', x'a3c2ec8f68a54e73b5f49e3a982b771b', x'19c83669cd7c4bdb89db15674f95cb7e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a3c2ec8f68a54e73b5f49e3a982b771b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3c2ec8f68a54e73b5f49e3a982b771b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a3c2ec8f68a54e73b5f49e3a982b771b', x'c94b527b17c74d5b98b018c7a23c45ef', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a3c2ec8f68a54e73b5f49e3a982b771b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3c2ec8f68a54e73b5f49e3a982b771b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a3c2ec8f68a54e73b5f49e3a982b771b', x'ad57f3d782de4703aabc013c6348aae2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ff756e79ed224f0499e7278aedb41138' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'ff756e79ed224f0499e7278aedb41138' WHERE `account_users`.`id` = x'a3c2ec8f68a54e73b5f49e3a982b771b'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a3c2ec8f68a54e73b5f49e3a982b771b'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ad57f3d782de4703aabc013c6348aae2' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3c2ec8f68a54e73b5f49e3a982b771b' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c94b527b17c74d5b98b018c7a23c45ef'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'a3c2ec8f68a54e73b5f49e3a982b771b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3c2ec8f68a54e73b5f49e3a982b771b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a3c2ec8f68a54e73b5f49e3a982b771b', x'39d5bc18503b430191f8316a3e83d7c8', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/ff756e79-ed22-4f04-99e7-278aedb41138/users" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"ff756e79-ed22-4f04-99e7-278aedb41138"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ff756e79ed224f0499e7278aedb41138' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ff756e79-ed22-4f04-99e7-278aedb41138_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ff756e79ed224f0499e7278aedb41138' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ff756e79ed224f0499e7278aedb41138' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ff756e79ed224f0499e7278aedb41138' AND `account_users`.`user_id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b511386617f48558241b3867c7d1554' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_2b511386-617f-4855-8241-b3867c7d1554_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b511386617f48558241b3867c7d1554' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'19c83669cd7c4bdb89db15674f95cb7e' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ff756e79ed224f0499e7278aedb41138' AND `account_users`.`user_id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b511386617f48558241b3867c7d1554' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_a3c2ec8f-68a5-4e73-b5f4-9e3a982b771b_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a3c2ec8f68a54e73b5f49e3a982b771b' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ff756e79ed224f0499e7278aedb41138' AND `account_users`.`user_id` = x'db402f4ca8914d0f98d486d18d8c3929' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b511386617f48558241b3867c7d1554' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 29ms (Views: 21.7ms | ActiveRecord: 2.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:17', 'teste@teste.com', '$2a$04$InRl9.1RxXgq2AZzhMGoouzJ8WscvVLkMuBunVIPWmmU6yFQLXzii', NULL, x'e6b96431462a495aa5652bc18369d6a8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:17') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e6b96431462a495aa5652bc18369d6a8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:17', 'User', x'594badbbe0cb4b85babcdec33e0cca90', '6ab7ee950e428e4abc415f2a394201b4', x'e6b96431462a495aa5652bc18369d6a8', 'User', '2012-12-31 12:46:17') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e6b96431462a495aa5652bc18369d6a8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'8d55a33be8e1413586b982632914f223', NULL, NULL, NULL, '2012-12-31 12:46:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'account8d55a33b-e8e1-4135-86b9-82632914f223' WHERE `accounts`.`id` = x'8d55a33be8e1413586b982632914f223' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8d55a33be8e1413586b982632914f223' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8d55a33be8e1413586b982632914f223', x'529ec2c2e1024bc585756f73b57096bc', x'e6b96431462a495aa5652bc18369d6a8') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'529ec2c2e1024bc585756f73b57096bc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'529ec2c2e1024bc585756f73b57096bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'529ec2c2e1024bc585756f73b57096bc', x'fd89b183c52849588858f70a36b2b8a3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'529ec2c2e1024bc585756f73b57096bc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'529ec2c2e1024bc585756f73b57096bc' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'529ec2c2e1024bc585756f73b57096bc', x'8478797a7644465eb2488f8d701e7140', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891921547_f6180435d48315f7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e6b96431462a495aa5652bc18369d6a8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:17', 'xpto@account.test', '$2a$04$A2A0WfLSPuCd/n3FmwWLQe5bWrmtv561X608k3nTFm8ZSrai7A6vK', NULL, x'13e86c3c41b643419c6ff2cb6011d71d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'13e86c3c41b643419c6ff2cb6011d71d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:17', 'User', x'd061ef85d6d04ea3a191f0e99779dbe7', 'b31503105c3fdf5fc24747f75884c3aa', x'13e86c3c41b643419c6ff2cb6011d71d', 'User', '2012-12-31 12:46:17') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'13e86c3c41b643419c6ff2cb6011d71d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'af628b64fd314854b603adc112646fa0', NULL, NULL, NULL, '2012-12-31 12:46:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'accountaf628b64-fd31-4854-b603-adc112646fa0' WHERE `accounts`.`id` = x'af628b64fd314854b603adc112646fa0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'af628b64fd314854b603adc112646fa0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'af628b64fd314854b603adc112646fa0', x'6ad0f950d17149afb93274581ec399ef', x'13e86c3c41b643419c6ff2cb6011d71d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6ad0f950d17149afb93274581ec399ef') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ad0f950d17149afb93274581ec399ef' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ad0f950d17149afb93274581ec399ef', x'78125c19ba294eab80ed1342178b2ab0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6ad0f950d17149afb93274581ec399ef') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ad0f950d17149afb93274581ec399ef' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ad0f950d17149afb93274581ec399ef', x'2ab7f816015845988998d776069f8b8b', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:17 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e18919370b1_f6180435d48316ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'f20f927b2d15402d857832a41a224647', 'jabanilson', NULL, 1, '2012-12-31 12:46:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'accountf20f927b-2d15-402d-8578-32a41a224647' WHERE `accounts`.`id` = x'f20f927b2d15402d857832a41a224647'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f20f927b2d15402d857832a41a224647', x'7d0a29ed84db4371a4663838cc64f12f', x'13e86c3c41b643419c6ff2cb6011d71d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7d0a29ed84db4371a4663838cc64f12f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d0a29ed84db4371a4663838cc64f12f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d0a29ed84db4371a4663838cc64f12f', x'5ec6497ea4754b61b57653b4794da9c1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7d0a29ed84db4371a4663838cc64f12f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d0a29ed84db4371a4663838cc64f12f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d0a29ed84db4371a4663838cc64f12f', x'fea9fb5225b24c4c8d4ef46ea0a95416', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8d55a33be8e1413586b982632914f223' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'8d55a33be8e1413586b982632914f223' WHERE `account_users`.`id` = x'7d0a29ed84db4371a4663838cc64f12f'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7d0a29ed84db4371a4663838cc64f12f'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d0a29ed84db4371a4663838cc64f12f' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'U£;èáA5†¹‚c)ò#' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'5ec6497ea4754b61b57653b4794da9c1' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fea9fb5225b24c4c8d4ef46ea0a95416'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'7d0a29ed84db4371a4663838cc64f12f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d0a29ed84db4371a4663838cc64f12f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d0a29ed84db4371a4663838cc64f12f', x'54167ea74ebc4f3d8356cb07e9bf3bcf', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/8d55a33b-e8e1-4135-86b9-82632914f223/users" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"8d55a33b-e8e1-4135-86b9-82632914f223"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8d55a33be8e1413586b982632914f223' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8d55a33b-e8e1-4135-86b9-82632914f223_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8d55a33be8e1413586b982632914f223' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8d55a33be8e1413586b982632914f223' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8d55a33be8e1413586b982632914f223' AND `account_users`.`user_id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'529ec2c2e1024bc585756f73b57096bc' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_529ec2c2-e102-4bc5-8575-6f73b57096bc_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'529ec2c2e1024bc585756f73b57096bc' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'13e86c3c41b643419c6ff2cb6011d71d' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8d55a33be8e1413586b982632914f223' AND `account_users`.`user_id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'529ec2c2e1024bc585756f73b57096bc' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7d0a29ed-84db-4371-a466-3838cc64f12f_destroy' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7d0a29ed84db4371a4663838cc64f12f' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8d55a33be8e1413586b982632914f223' AND `account_users`.`user_id` = x'e6b96431462a495aa5652bc18369d6a8' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'529ec2c2e1024bc585756f73b57096bc' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 27ms (Views: 20.1ms | ActiveRecord: 3.1ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:17', 'teste@teste.com', '$2a$04$3AGa7rRi73DacEp1n.l.9uN5OOL.bAWX5V3Y.Bnf979bFfU33YObS', NULL, x'abc6f0b7c2a6473da0d6848681c4faaa', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:17', 'User', x'2f2d3d468b924acc9150ea7f54289a84', 'd878ea54b449df1814f39d53e92de865', x'abc6f0b7c2a6473da0d6848681c4faaa', 'User', '2012-12-31 12:46:17') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'4f1c0ba8a62a4d078e27e2a2f6e12cad', NULL, NULL, NULL, '2012-12-31 12:46:17')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'account4f1c0ba8-a62a-4d07-8e27-e2a2f6e12cad' WHERE `accounts`.`id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4f1c0ba8a62a4d078e27e2a2f6e12cad', x'8a251dd33aa74a338f91e63be8b98308', x'abc6f0b7c2a6473da0d6848681c4faaa') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8a251dd33aa74a338f91e63be8b98308') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a251dd33aa74a338f91e63be8b98308' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a251dd33aa74a338f91e63be8b98308', x'ac409c0fa0484694890c057933ce96c3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8a251dd33aa74a338f91e63be8b98308') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a251dd33aa74a338f91e63be8b98308' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a251dd33aa74a338f91e63be8b98308', x'2207475ea6a04365bbe040b94d72f485', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189196e487_f6180435d483172a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.6ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:17', 'xpto@account.test', '$2a$04$wdH0SgaL/lfKpopUukh4nO6e79wDqKb6BlvWVLtnkaIvSQzKeFIk.', NULL, x'262b84bb427244aea7528b2f9dc90335', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'262b84bb427244aea7528b2f9dc90335' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:17', 'User', x'9136dfc74a054536bdc5d5ff3535cf42', '67d743448ef039e9a8797de10669b50f', x'262b84bb427244aea7528b2f9dc90335', 'User', '2012-12-31 12:46:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'262b84bb427244aea7528b2f9dc90335' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'49f8abcb178249a38e86f9ed5de7a6f9', NULL, NULL, NULL, '2012-12-31 12:46:17')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'account49f8abcb-1782-49a3-8e86-f9ed5de7a6f9' WHERE `accounts`.`id` = x'49f8abcb178249a38e86f9ed5de7a6f9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'49f8abcb178249a38e86f9ed5de7a6f9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'49f8abcb178249a38e86f9ed5de7a6f9', x'026ac655314745fd8c17d2a070a162d3', x'262b84bb427244aea7528b2f9dc90335') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'026ac655314745fd8c17d2a070a162d3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'026ac655314745fd8c17d2a070a162d3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'026ac655314745fd8c17d2a070a162d3', x'aa1b889e385148d58f02d12e6806a964', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'026ac655314745fd8c17d2a070a162d3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'026ac655314745fd8c17d2a070a162d3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'026ac655314745fd8c17d2a070a162d3', x'e54bd4a5610041aaa5f9475d92d3ef2a', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:17 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e18919844c0_f6180435d48318cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'93197f5ee53540b9bb56987f6b934ad0', 'jabanilson', NULL, 1, '2012-12-31 12:46:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'account93197f5e-e535-40b9-bb56-987f6b934ad0' WHERE `accounts`.`id` = x'93197f5ee53540b9bb56987f6b934ad0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'93197f5ee53540b9bb56987f6b934ad0', x'ed2d5242a709424ebb7dc117fb5bdc56', x'262b84bb427244aea7528b2f9dc90335') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ed2d5242a709424ebb7dc117fb5bdc56') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed2d5242a709424ebb7dc117fb5bdc56' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed2d5242a709424ebb7dc117fb5bdc56', x'0020662a5e614056a572c90be78bebea', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ed2d5242a709424ebb7dc117fb5bdc56') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed2d5242a709424ebb7dc117fb5bdc56' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed2d5242a709424ebb7dc117fb5bdc56', x'974232b2c94345f8a47ae05e3a32c278', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' WHERE `account_users`.`id` = x'ed2d5242a709424ebb7dc117fb5bdc56'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed2d5242a709424ebb7dc117fb5bdc56'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed2d5242a709424ebb7dc117fb5bdc56' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0020662a5e614056a572c90be78bebea' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'974232b2c94345f8a47ae05e3a32c278'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'ed2d5242a709424ebb7dc117fb5bdc56') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed2d5242a709424ebb7dc117fb5bdc56' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed2d5242a709424ebb7dc117fb5bdc56', x'006ff4e2605d4a3fb4d4d0e242a46052', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4f1c0ba8-a62a-4d07-8e27-e2a2f6e12cad/users" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"4f1c0ba8-a62a-4d07-8e27-e2a2f6e12cad"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4f1c0ba8-a62a-4d07-8e27-e2a2f6e12cad_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' AND `account_users`.`user_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8a251dd33aa74a338f91e63be8b98308' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_8a251dd3-3aa7-4a33-8f91-e63be8b98308_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8a251dd33aa74a338f91e63be8b98308' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'262b84bb427244aea7528b2f9dc90335' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' AND `account_users`.`user_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8a251dd33aa74a338f91e63be8b98308' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ed2d5242-a709-424e-bb7d-c117fb5bdc56_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed2d5242a709424ebb7dc117fb5bdc56' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4f1c0ba8a62a4d078e27e2a2f6e12cad' AND `account_users`.`user_id` = x'abc6f0b7c2a6473da0d6848681c4faaa' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8a251dd33aa74a338f91e63be8b98308' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 27ms (Views: 19.5ms | ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:17', 'teste@teste.com', '$2a$04$LxwHBuYd42Ws5jdsASD6KeccUZs1CNPadVgebKJ2N.ELIip2ncR9e', NULL, x'05202443eff84625b4e1c775b0010cea', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'05202443eff84625b4e1c775b0010cea' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:17', 'User', x'b9bc565b7698411499f00a98c1416dd4', 'c660e0fd2809b138de8775a1ac781a97', x'05202443eff84625b4e1c775b0010cea', 'User', '2012-12-31 12:46:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'05202443eff84625b4e1c775b0010cea' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'031ade2d68064f3b809e149fca8b4fb4', NULL, NULL, NULL, '2012-12-31 12:46:17')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'account031ade2d-6806-4f3b-809e-149fca8b4fb4' WHERE `accounts`.`id` = x'031ade2d68064f3b809e149fca8b4fb4' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'031ade2d68064f3b809e149fca8b4fb4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'031ade2d68064f3b809e149fca8b4fb4', x'65bfc1b54936449a8d7a50ea0ecfcce9', x'05202443eff84625b4e1c775b0010cea') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'65bfc1b54936449a8d7a50ea0ecfcce9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65bfc1b54936449a8d7a50ea0ecfcce9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65bfc1b54936449a8d7a50ea0ecfcce9', x'50f1639c83aa425892e6f201887fc738', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'65bfc1b54936449a8d7a50ea0ecfcce9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65bfc1b54936449a8d7a50ea0ecfcce9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65bfc1b54936449a8d7a50ea0ecfcce9', x'1378f64bbc0d47c89168829e204a2f76', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18919bbc21_f6180435d4831946@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'05202443eff84625b4e1c775b0010cea' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:17', 'xpto@account.test', '$2a$04$wgzijViBuQCL4hglkNFRKenJaugpo5UmTVwZQlEJUZrQKnxaTl1D6', NULL, x'1e88d67fcae04c618181666358e551fb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:17') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1e88d67fcae04c618181666358e551fb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:17', 'User', x'7a72020b04474b588bc9327fb6212f27', 'd5c1b444db63e424d96d21333c783f22', x'1e88d67fcae04c618181666358e551fb', 'User', '2012-12-31 12:46:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1e88d67fcae04c618181666358e551fb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'dab38dbbb0b64ac09301c4bb25971c03', NULL, NULL, NULL, '2012-12-31 12:46:17')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'accountdab38dbb-b0b6-4ac0-9301-c4bb25971c03' WHERE `accounts`.`id` = x'dab38dbbb0b64ac09301c4bb25971c03' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dab38dbbb0b64ac09301c4bb25971c03' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dab38dbbb0b64ac09301c4bb25971c03', x'f139162a39b34037bbd9dc87c232ecfd', x'1e88d67fcae04c618181666358e551fb') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f139162a39b34037bbd9dc87c232ecfd') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f139162a39b34037bbd9dc87c232ecfd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f139162a39b34037bbd9dc87c232ecfd', x'6d5c5b125c8e4442a6454a0e9b2ac3de', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f139162a39b34037bbd9dc87c232ecfd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f139162a39b34037bbd9dc87c232ecfd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f139162a39b34037bbd9dc87c232ecfd', x'317b837929eb4848af9d5a49378bf828', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:17 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e18919d1841_f6180435d4832068@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'b13319a88b9043d48ee429e3f11985e3', 'jabanilson', NULL, 1, '2012-12-31 12:46:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'accountb13319a8-8b90-43d4-8ee4-29e3f11985e3' WHERE `accounts`.`id` = x'b13319a88b9043d48ee429e3f11985e3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b13319a88b9043d48ee429e3f11985e3', x'57cca5efbded44b3be866efc26e9c0fa', x'1e88d67fcae04c618181666358e551fb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'57cca5efbded44b3be866efc26e9c0fa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57cca5efbded44b3be866efc26e9c0fa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57cca5efbded44b3be866efc26e9c0fa', x'e30a39766dd244379f3251e54337d904', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'57cca5efbded44b3be866efc26e9c0fa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57cca5efbded44b3be866efc26e9c0fa' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57cca5efbded44b3be866efc26e9c0fa', x'9efba5dd27934d328abf0d074be77b5c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'031ade2d68064f3b809e149fca8b4fb4' LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = x'031ade2d68064f3b809e149fca8b4fb4' WHERE `account_users`.`id` = x'57cca5efbded44b3be866efc26e9c0fa'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'57cca5efbded44b3be866efc26e9c0fa'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9efba5dd27934d328abf0d074be77b5c' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57cca5efbded44b3be866efc26e9c0fa' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e30a39766dd244379f3251e54337d904'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'57cca5efbded44b3be866efc26e9c0fa') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57cca5efbded44b3be866efc26e9c0fa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57cca5efbded44b3be866efc26e9c0fa', x'c7ca5427640543969080bab855dfc934', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/031ade2d-6806-4f3b-809e-149fca8b4fb4/users" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"031ade2d-6806-4f3b-809e-149fca8b4fb4"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'031ade2d68064f3b809e149fca8b4fb4' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_031ade2d-6806-4f3b-809e-149fca8b4fb4_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'031ade2d68064f3b809e149fca8b4fb4' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'031ade2d68064f3b809e149fca8b4fb4' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1e88d67fcae04c618181666358e551fb' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'031ade2d68064f3b809e149fca8b4fb4' AND `account_users`.`user_id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65bfc1b54936449a8d7a50ea0ecfcce9' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_57cca5ef-bded-44b3-be86-6efc26e9c0fa_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'57cca5efbded44b3be866efc26e9c0fa' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'031ade2d68064f3b809e149fca8b4fb4' AND `account_users`.`user_id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65bfc1b54936449a8d7a50ea0ecfcce9' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_65bfc1b5-4936-449a-8d7a-50ea0ecfcce9_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65bfc1b54936449a8d7a50ea0ecfcce9' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'031ade2d68064f3b809e149fca8b4fb4' AND `account_users`.`user_id` = x'05202443eff84625b4e1c775b0010cea' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65bfc1b54936449a8d7a50ea0ecfcce9' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 19.1ms | ActiveRecord: 2.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:17', 'teste@teste.com', '$2a$04$.oR.b3PImneh2ISIfwelgOdcVJUrO7NHvCAki/4E7jYHKLjgxPCge', NULL, x'79dfe66ed88040dea2427affdd701f07', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'79dfe66ed88040dea2427affdd701f07' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:17', 'User', x'96146765ee994f54811824f874054f7e', '0990dc361c99afb441fb80d1d17c5d8e', x'79dfe66ed88040dea2427affdd701f07', 'User', '2012-12-31 12:46:17') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'79dfe66ed88040dea2427affdd701f07' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:17', x'a34f5b4c71d74c349ce700b59064ab73', NULL, NULL, NULL, '2012-12-31 12:46:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:17', `updated_at` = '2012-12-31 12:46:17', `subdomain` = 'accounta34f5b4c-71d7-4c34-9ce7-00b59064ab73' WHERE `accounts`.`id` = x'a34f5b4c71d74c349ce700b59064ab73' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a34f5b4c71d74c349ce700b59064ab73' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a34f5b4c71d74c349ce700b59064ab73', x'4c547382d798413b923df3e29082e778', x'79dfe66ed88040dea2427affdd701f07') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4c547382d798413b923df3e29082e778') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c547382d798413b923df3e29082e778' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c547382d798413b923df3e29082e778', x'77d6ecf9dc0049c997445bc43328e479', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4c547382d798413b923df3e29082e778') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c547382d798413b923df3e29082e778' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c547382d798413b923df3e29082e778', x'61f6164899f74db387ca1b8105314668', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:17 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18919eca9f_f6180435d4832155@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:17 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'79dfe66ed88040dea2427affdd701f07' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:18', 'xpto@account.test', '$2a$04$RK70X/EBiaPY0B7qL2B0CuYREZP6pP.g3QF4hT9Caimvmm6Lwm6xe', NULL, x'4a3dd77820c145b28f46ef9ca0ad4877', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:18') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4a3dd77820c145b28f46ef9ca0ad4877' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:18', 'User', x'c7ddbc1a8fb9493a927a0473ea072e56', '200039946db30b1c77370214933dd347', x'4a3dd77820c145b28f46ef9ca0ad4877', 'User', '2012-12-31 12:46:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4a3dd77820c145b28f46ef9ca0ad4877' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'693e62578a8642528e5a60a75820f1ed', NULL, NULL, NULL, '2012-12-31 12:46:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'account693e6257-8a86-4252-8e5a-60a75820f1ed' WHERE `accounts`.`id` = x'693e62578a8642528e5a60a75820f1ed' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'693e62578a8642528e5a60a75820f1ed' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'693e62578a8642528e5a60a75820f1ed', x'2146ce2e1f924cbba450448e7d4d1280', x'4a3dd77820c145b28f46ef9ca0ad4877') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2146ce2e1f924cbba450448e7d4d1280') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2146ce2e1f924cbba450448e7d4d1280' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2146ce2e1f924cbba450448e7d4d1280', x'1fb84b685bf541068fd20ecf9ad7fc91', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2146ce2e1f924cbba450448e7d4d1280') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2146ce2e1f924cbba450448e7d4d1280' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2146ce2e1f924cbba450448e7d4d1280', x'7e3c54e871114ba6b21fa398eecb4686', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:18 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891a2abb7_f6180435d48322e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'7ca0b99b966e41698068e9082c6c1144', 'jabanilson', NULL, 1, '2012-12-31 12:46:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'account7ca0b99b-966e-4169-8068-e9082c6c1144' WHERE `accounts`.`id` = x'7ca0b99b966e41698068e9082c6c1144'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7ca0b99b966e41698068e9082c6c1144', x'233cce06aa594cdf847f549fd3befb6a', x'4a3dd77820c145b28f46ef9ca0ad4877') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'233cce06aa594cdf847f549fd3befb6a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'233cce06aa594cdf847f549fd3befb6a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'233cce06aa594cdf847f549fd3befb6a', x'7d5fa5ff5b6e442c8a1576cee5a928ac', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'233cce06aa594cdf847f549fd3befb6a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'233cce06aa594cdf847f549fd3befb6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'233cce06aa594cdf847f549fd3befb6a', x'207df376d5b747878dc1559f28faf303', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a34f5b4c71d74c349ce700b59064ab73' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'a34f5b4c71d74c349ce700b59064ab73' WHERE `account_users`.`id` = x'233cce06aa594cdf847f549fd3befb6a'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'233cce06aa594cdf847f549fd3befb6a'  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'207df376d5b747878dc1559f28faf303' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'233cce06aa594cdf847f549fd3befb6a' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7d5fa5ff5b6e442c8a1576cee5a928ac'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'233cce06aa594cdf847f549fd3befb6a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'233cce06aa594cdf847f549fd3befb6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'233cce06aa594cdf847f549fd3befb6a', x'3d1ccbeaae0e453b882fbdae1038053c', 'user')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/a34f5b4c-71d7-4c34-9ce7-00b59064ab73/users" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"a34f5b4c-71d7-4c34-9ce7-00b59064ab73"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a34f5b4c71d74c349ce700b59064ab73' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a34f5b4c-71d7-4c34-9ce7-00b59064ab73_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a34f5b4c71d74c349ce700b59064ab73' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a34f5b4c71d74c349ce700b59064ab73' User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4a3dd77820c145b28f46ef9ca0ad4877' LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a34f5b4c71d74c349ce700b59064ab73' AND `account_users`.`user_id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4c547382d798413b923df3e29082e778' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_233cce06-aa59-4cdf-847f-549fd3befb6a_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'233cce06aa594cdf847f549fd3befb6a' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a34f5b4c71d74c349ce700b59064ab73' AND `account_users`.`user_id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4c547382d798413b923df3e29082e778' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_4c547382-d798-413b-923d-f3e29082e778_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4c547382d798413b923df3e29082e778' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a34f5b4c71d74c349ce700b59064ab73' AND `account_users`.`user_id` = x'79dfe66ed88040dea2427affdd701f07' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4c547382d798413b923df3e29082e778' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 27ms (Views: 20.0ms | ActiveRecord: 3.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:18', 'teste@teste.com', '$2a$04$ghim67w3Iv2zjA0F2IalH.kx6759CGbEfoPD75xVrIXaELlB70ClO', NULL, x'bf0e4181e0534e3cb051fd0a678c5f98', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:18', 'User', x'45b5c08c3e66471791dc117bfa2e1830', '5d73c424137a72a1da76e69aab8e7313', x'bf0e4181e0534e3cb051fd0a678c5f98', 'User', '2012-12-31 12:46:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'0e8d8275c9854654b53aad62dacee765', NULL, NULL, NULL, '2012-12-31 12:46:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'account0e8d8275-c985-4654-b53a-ad62dacee765' WHERE `accounts`.`id` = x'0e8d8275c9854654b53aad62dacee765' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0e8d8275c9854654b53aad62dacee765' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0e8d8275c9854654b53aad62dacee765', x'1cf6bcbcf6f24268a95a95e7e589199c', x'bf0e4181e0534e3cb051fd0a678c5f98') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1cf6bcbcf6f24268a95a95e7e589199c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1cf6bcbcf6f24268a95a95e7e589199c', x'c40a32a647894df38a7d87df96901c38', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1cf6bcbcf6f24268a95a95e7e589199c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1cf6bcbcf6f24268a95a95e7e589199c', x'c1bf7d6397b84bf9a80933000834659f', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891a464d4_f6180435d48323c7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:18', 'xpto@account.test', '$2a$04$7pxl.wCarLQ54P6/FfbVmOPlgEsJgGA2NKLuGnLM52cdDCFsa/H7q', NULL, x'a2efe346d3dc48a2a57e0a6e178eddd7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a2efe346d3dc48a2a57e0a6e178eddd7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:18', 'User', x'55c7d270f2b04125a7520b64c55de891', 'ab7aba54b67acbd2a454e2aff815f9e3', x'a2efe346d3dc48a2a57e0a6e178eddd7', 'User', '2012-12-31 12:46:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a2efe346d3dc48a2a57e0a6e178eddd7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'ee50098056494154b4e690e419e000d6', NULL, NULL, NULL, '2012-12-31 12:46:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'accountee500980-5649-4154-b4e6-90e419e000d6' WHERE `accounts`.`id` = x'ee50098056494154b4e690e419e000d6' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ee50098056494154b4e690e419e000d6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ee50098056494154b4e690e419e000d6', x'09b6a44e9e8a47109ddf4708965aab31', x'a2efe346d3dc48a2a57e0a6e178eddd7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'09b6a44e9e8a47109ddf4708965aab31') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09b6a44e9e8a47109ddf4708965aab31' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09b6a44e9e8a47109ddf4708965aab31', x'6ebe9f107a9f412bb3bd2623774998ab', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'09b6a44e9e8a47109ddf4708965aab31') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09b6a44e9e8a47109ddf4708965aab31' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09b6a44e9e8a47109ddf4708965aab31', x'cb588d9a693b4d409eb5de7611cbf40e', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:18 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891a78334_f6180435d483246f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'9134ce8ce2f340f6978c38a69cbd8781', 'jabanilson', NULL, 1, '2012-12-31 12:46:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'account9134ce8c-e2f3-40f6-978c-38a69cbd8781' WHERE `accounts`.`id` = x'9134ce8ce2f340f6978c38a69cbd8781'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9134ce8ce2f340f6978c38a69cbd8781', x'0f1fed20fef9411483dffe1c9e12ff94', x'a2efe346d3dc48a2a57e0a6e178eddd7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0f1fed20fef9411483dffe1c9e12ff94') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0f1fed20fef9411483dffe1c9e12ff94' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0f1fed20fef9411483dffe1c9e12ff94', x'55e2e2323aa84a4b8a3601ec91aec878', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0f1fed20fef9411483dffe1c9e12ff94') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0f1fed20fef9411483dffe1c9e12ff94' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0f1fed20fef9411483dffe1c9e12ff94', x'e5bf9db42ce14f4ab5a7d004c9aeb6a2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0e8d8275c9854654b53aad62dacee765' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'0e8d8275c9854654b53aad62dacee765' WHERE `account_users`.`id` = x'0f1fed20fef9411483dffe1c9e12ff94'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0f1fed20fef9411483dffe1c9e12ff94'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0f1fed20fef9411483dffe1c9e12ff94' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '‚uÉ…FTµ:­bÚÎçe' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'55e2e2323aa84a4b8a3601ec91aec878' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e5bf9db42ce14f4ab5a7d004c9aeb6a2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'0f1fed20fef9411483dffe1c9e12ff94') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0f1fed20fef9411483dffe1c9e12ff94' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0f1fed20fef9411483dffe1c9e12ff94', x'2bca5bf4740e45b2926261ff6aa57ee7', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2bca5bf4740e45b2926261ff6aa57ee7'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0f1fed20fef9411483dffe1c9e12ff94') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0f1fed20fef9411483dffe1c9e12ff94' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0f1fed20fef9411483dffe1c9e12ff94', x'd610620818c14ac5aff0055765d28d42', 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c'  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c1bf7d6397b84bf9a80933000834659f' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1cf6bcbcf6f24268a95a95e7e589199c' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '‚uÉ…FTµ:­bÚÎçe' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c40a32a647894df38a7d87df96901c38'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1cf6bcbcf6f24268a95a95e7e589199c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1cf6bcbcf6f24268a95a95e7e589199c', x'09ec1eda18b24653a0de694b035c1532', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/0e8d8275-c985-4654-b53a-ad62dacee765/users" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"0e8d8275-c985-4654-b53a-ad62dacee765"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0e8d8275c9854654b53aad62dacee765' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_0e8d8275-c985-4654-b53a-ad62dacee765_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0e8d8275c9854654b53aad62dacee765' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0e8d8275c9854654b53aad62dacee765' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a2efe346d3dc48a2a57e0a6e178eddd7' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0e8d8275c9854654b53aad62dacee765' AND `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0e8d8275c9854654b53aad62dacee765' AND `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0e8d8275c9854654b53aad62dacee765' AND `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0e8d8275c9854654b53aad62dacee765' AND `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0e8d8275c9854654b53aad62dacee765' AND `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0e8d8275c9854654b53aad62dacee765' AND `account_users`.`user_id` = x'bf0e4181e0534e3cb051fd0a678c5f98' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1cf6bcbcf6f24268a95a95e7e589199c' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 27ms (Views: 20.4ms | ActiveRecord: 2.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:18', 'teste@teste.com', '$2a$04$eqK8WTusftPnZR4ey1pJseDarfuXDQGYGjZlKUUEx3NLGiySa98uG', NULL, x'03e3ac2b8e544a99a4cf8e055c244c0f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:18', 'User', x'd0293d86331f45fa996d7ce4c7c64cf8', '23c769e85584efb3d9fea81ebad7c3cd', x'03e3ac2b8e544a99a4cf8e055c244c0f', 'User', '2012-12-31 12:46:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'39674c7159cd434185d0a5c23fa1f2a8', NULL, NULL, NULL, '2012-12-31 12:46:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'account39674c71-59cd-4341-85d0-a5c23fa1f2a8' WHERE `accounts`.`id` = x'39674c7159cd434185d0a5c23fa1f2a8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'39674c7159cd434185d0a5c23fa1f2a8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'39674c7159cd434185d0a5c23fa1f2a8', x'23f28820295a4a58bc9ae4bae0325fed', x'03e3ac2b8e544a99a4cf8e055c244c0f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'23f28820295a4a58bc9ae4bae0325fed' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'23f28820295a4a58bc9ae4bae0325fed', x'eacacde8eb7a4fdb8716309ac3903ce0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'23f28820295a4a58bc9ae4bae0325fed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'23f28820295a4a58bc9ae4bae0325fed', x'75db6aa421954d0c96751f97988213f3', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891a964ea_f6180435d48325d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.7ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:18', 'xpto@account.test', '$2a$04$dwwhCalSiwVekW1YlD/mc.55Xpt7bzIN1Lw75M8vmJOz09JP/Os7W', NULL, x'7c66c622519f44a284fb253ea6857f86', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:18') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7c66c622519f44a284fb253ea6857f86' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:18', 'User', x'a42eb74c848a482dab565c8c7d5bdd7c', '36307a7f24079df16b571e622648abbc', x'7c66c622519f44a284fb253ea6857f86', 'User', '2012-12-31 12:46:18') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7c66c622519f44a284fb253ea6857f86' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'237fab4b62f742319d59dc86e3f3252b', NULL, NULL, NULL, '2012-12-31 12:46:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'account237fab4b-62f7-4231-9d59-dc86e3f3252b' WHERE `accounts`.`id` = x'237fab4b62f742319d59dc86e3f3252b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'237fab4b62f742319d59dc86e3f3252b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'237fab4b62f742319d59dc86e3f3252b', x'9a023627b074428faa1596fee4926048', x'7c66c622519f44a284fb253ea6857f86') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9a023627b074428faa1596fee4926048') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a023627b074428faa1596fee4926048' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a023627b074428faa1596fee4926048', x'170e596aafd04e0b88ee196287287431', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9a023627b074428faa1596fee4926048') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a023627b074428faa1596fee4926048' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a023627b074428faa1596fee4926048', x'52f2cb5f7b8b42ae80c4a12fd89185ce', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:18 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891aac3cd_f6180435d483268a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'6f2f8da1250749d89ac402adbca1b3de', 'jabanilson', NULL, 1, '2012-12-31 12:46:18')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'account6f2f8da1-2507-49d8-9ac4-02adbca1b3de' WHERE `accounts`.`id` = x'6f2f8da1250749d89ac402adbca1b3de'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6f2f8da1250749d89ac402adbca1b3de', x'8593d48161d3462b9da933f86b2fa037', x'7c66c622519f44a284fb253ea6857f86') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8593d48161d3462b9da933f86b2fa037') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8593d48161d3462b9da933f86b2fa037' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8593d48161d3462b9da933f86b2fa037', x'81a51be3535f49f99125ca441fcee227', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8593d48161d3462b9da933f86b2fa037') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8593d48161d3462b9da933f86b2fa037' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8593d48161d3462b9da933f86b2fa037', x'b25370fbe07b4c4cbd5b4fe9594e7d6d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'39674c7159cd434185d0a5c23fa1f2a8' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'39674c7159cd434185d0a5c23fa1f2a8' WHERE `account_users`.`id` = x'8593d48161d3462b9da933f86b2fa037'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8593d48161d3462b9da933f86b2fa037'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8593d48161d3462b9da933f86b2fa037' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '9gLqYÍCA…Ð¥Â?¡ò¨' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'81a51be3535f49f99125ca441fcee227' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b25370fbe07b4c4cbd5b4fe9594e7d6d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'8593d48161d3462b9da933f86b2fa037') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8593d48161d3462b9da933f86b2fa037' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8593d48161d3462b9da933f86b2fa037', x'58f29a4b8b3548ca8141785a45403f35', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'58f29a4b8b3548ca8141785a45403f35'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8593d48161d3462b9da933f86b2fa037') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8593d48161d3462b9da933f86b2fa037' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8593d48161d3462b9da933f86b2fa037', x'9f89a13269e24a50b03319062d991f44', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'75db6aa421954d0c96751f97988213f3' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'23f28820295a4a58bc9ae4bae0325fed' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '9gLqYÍCA…Ð¥Â?¡ò¨' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'eacacde8eb7a4fdb8716309ac3903ce0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'23f28820295a4a58bc9ae4bae0325fed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'23f28820295a4a58bc9ae4bae0325fed', x'7cd10c13110046eeb7b72f505f55720d', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/39674c71-59cd-4341-85d0-a5c23fa1f2a8/users" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"39674c71-59cd-4341-85d0-a5c23fa1f2a8"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'39674c7159cd434185d0a5c23fa1f2a8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_39674c71-59cd-4341-85d0-a5c23fa1f2a8_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'39674c7159cd434185d0a5c23fa1f2a8' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'39674c7159cd434185d0a5c23fa1f2a8' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'39674c7159cd434185d0a5c23fa1f2a8' AND `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'39674c7159cd434185d0a5c23fa1f2a8' AND `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed' AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7c66c622519f44a284fb253ea6857f86' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'39674c7159cd434185d0a5c23fa1f2a8' AND `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'39674c7159cd434185d0a5c23fa1f2a8' AND `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'39674c7159cd434185d0a5c23fa1f2a8' AND `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'39674c7159cd434185d0a5c23fa1f2a8' AND `account_users`.`user_id` = x'03e3ac2b8e544a99a4cf8e055c244c0f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'23f28820295a4a58bc9ae4bae0325fed' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 26ms (Views: 19.5ms | ActiveRecord: 2.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:18', 'teste@teste.com', '$2a$04$mHHrvek0Q0y3w7jFLjCbt.e4MEDejZamoxtlPSDEY2jYbOPVzA5qi', NULL, x'732d61a55a964bfcacc2cb17976733f2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:18') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'732d61a55a964bfcacc2cb17976733f2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:18', 'User', x'c7d7d0a1ff78457f968304b4a7df5055', 'd64e4744a33b7c335f33bf7b1689e833', x'732d61a55a964bfcacc2cb17976733f2', 'User', '2012-12-31 12:46:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'732d61a55a964bfcacc2cb17976733f2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:18', x'7a66f845b2854dfd8c5e26168ba280a0', NULL, NULL, NULL, '2012-12-31 12:46:18')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:18', `updated_at` = '2012-12-31 12:46:18', `subdomain` = 'account7a66f845-b285-4dfd-8c5e-26168ba280a0' WHERE `accounts`.`id` = x'7a66f845b2854dfd8c5e26168ba280a0' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a66f845b2854dfd8c5e26168ba280a0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7a66f845b2854dfd8c5e26168ba280a0', x'2822022e04684e8696a7e04ccd2bfc23', x'732d61a55a964bfcacc2cb17976733f2') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2822022e04684e8696a7e04ccd2bfc23' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2822022e04684e8696a7e04ccd2bfc23', x'52d1b6e6d5584814aae33fdd8219f6dc', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2822022e04684e8696a7e04ccd2bfc23' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2822022e04684e8696a7e04ccd2bfc23', x'3881bda35bbb4ce2ab16dc40ec3c6048', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:18 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891ae6a09_f6180435d48327a0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:18 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:18', 'xpto@account.test', '$2a$04$OCqxX1RP7WB.JQiTr9.Bd.ATM5bScjfhYhroScsIi8ZeARVrj7MQS', NULL, x'c19bee85f2dc469ebe42fb3f6266778a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c19bee85f2dc469ebe42fb3f6266778a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:19', 'User', x'3f67bc78981942c2aaa837d86ca5d1a8', 'd6865391d84cfd9aeba1eca609a734e1', x'c19bee85f2dc469ebe42fb3f6266778a', 'User', '2012-12-31 12:46:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c19bee85f2dc469ebe42fb3f6266778a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'e188a51a8667425ba4adf27dd7554de2', NULL, NULL, NULL, '2012-12-31 12:46:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'accounte188a51a-8667-425b-a4ad-f27dd7554de2' WHERE `accounts`.`id` = x'e188a51a8667425ba4adf27dd7554de2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e188a51a8667425ba4adf27dd7554de2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e188a51a8667425ba4adf27dd7554de2', x'170b3f9e108a4289a716760571d37451', x'c19bee85f2dc469ebe42fb3f6266778a') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'170b3f9e108a4289a716760571d37451') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'170b3f9e108a4289a716760571d37451' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'170b3f9e108a4289a716760571d37451', x'54500406bc044577872d24061d4a2039', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'170b3f9e108a4289a716760571d37451') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'170b3f9e108a4289a716760571d37451' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'170b3f9e108a4289a716760571d37451', x'84fe27258201449ab4e67dd3ddd01cbb', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:19 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891b83a6_f6180435d48328d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'a8ba026447af4aff863bd1bce08420a3', 'jabanilson', NULL, 1, '2012-12-31 12:46:19')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'accounta8ba0264-47af-4aff-863b-d1bce08420a3' WHERE `accounts`.`id` = x'a8ba026447af4aff863bd1bce08420a3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a8ba026447af4aff863bd1bce08420a3', x'd569fc16729c4a508e81a7f1f95b501e', x'c19bee85f2dc469ebe42fb3f6266778a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd569fc16729c4a508e81a7f1f95b501e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd569fc16729c4a508e81a7f1f95b501e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd569fc16729c4a508e81a7f1f95b501e', x'f655d021209c409c990637dc269b3f42', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd569fc16729c4a508e81a7f1f95b501e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd569fc16729c4a508e81a7f1f95b501e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd569fc16729c4a508e81a7f1f95b501e', x'6c6d22687d604c47ace013365116b253', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a66f845b2854dfd8c5e26168ba280a0' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'7a66f845b2854dfd8c5e26168ba280a0' WHERE `account_users`.`id` = x'd569fc16729c4a508e81a7f1f95b501e'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd569fc16729c4a508e81a7f1f95b501e'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'6c6d22687d604c47ace013365116b253' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd569fc16729c4a508e81a7f1f95b501e' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'zføE²…MýŒ^&‹¢€ ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f655d021209c409c990637dc269b3f42'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'd569fc16729c4a508e81a7f1f95b501e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd569fc16729c4a508e81a7f1f95b501e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd569fc16729c4a508e81a7f1f95b501e', x'c053c697ea95477590a4d725ca8e54ed', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c053c697ea95477590a4d725ca8e54ed'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd569fc16729c4a508e81a7f1f95b501e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd569fc16729c4a508e81a7f1f95b501e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd569fc16729c4a508e81a7f1f95b501e', x'f142d6985a484238a29258a8cef3488f', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'3881bda35bbb4ce2ab16dc40ec3c6048' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2822022e04684e8696a7e04ccd2bfc23' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'zføE²…MýŒ^&‹¢€ ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'52d1b6e6d5584814aae33fdd8219f6dc'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2822022e04684e8696a7e04ccd2bfc23' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2822022e04684e8696a7e04ccd2bfc23', x'49dde72af32d48ae805fb2a774cf103a', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/7a66f845-b285-4dfd-8c5e-26168ba280a0/users" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"7a66f845-b285-4dfd-8c5e-26168ba280a0"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a66f845b2854dfd8c5e26168ba280a0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7a66f845-b285-4dfd-8c5e-26168ba280a0_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a66f845b2854dfd8c5e26168ba280a0' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a66f845b2854dfd8c5e26168ba280a0' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a66f845b2854dfd8c5e26168ba280a0' AND `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a66f845b2854dfd8c5e26168ba280a0' AND `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23' AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c19bee85f2dc469ebe42fb3f6266778a' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a66f845b2854dfd8c5e26168ba280a0' AND `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a66f845b2854dfd8c5e26168ba280a0' AND `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a66f845b2854dfd8c5e26168ba280a0' AND `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a66f845b2854dfd8c5e26168ba280a0' AND `account_users`.`user_id` = x'732d61a55a964bfcacc2cb17976733f2' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2822022e04684e8696a7e04ccd2bfc23' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 26ms (Views: 19.6ms | ActiveRecord: 2.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:19', 'teste@teste.com', '$2a$04$Oz5b/v0RRHtyqRSzOFad9e9txff3WJJ5WQNooSGTXm0Os8JmYSW36', NULL, x'9b64471b8b4f45dabf69538a79a7f115', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9b64471b8b4f45dabf69538a79a7f115' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:19', 'User', x'0ec652465a6f44d0b83d1cfa7b8d2e58', 'ff70b74658066a0d4c4cd793db727376', x'9b64471b8b4f45dabf69538a79a7f115', 'User', '2012-12-31 12:46:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9b64471b8b4f45dabf69538a79a7f115' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'b95e661bd1574059af73ff38a85838e7', NULL, NULL, NULL, '2012-12-31 12:46:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'accountb95e661b-d157-4059-af73-ff38a85838e7' WHERE `accounts`.`id` = x'b95e661bd1574059af73ff38a85838e7' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b95e661bd1574059af73ff38a85838e7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b95e661bd1574059af73ff38a85838e7', x'9e015b75037d4e669e34e4fece23b8e7', x'9b64471b8b4f45dabf69538a79a7f115') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e015b75037d4e669e34e4fece23b8e7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e015b75037d4e669e34e4fece23b8e7', x'52abd0a366604a7dbf1ef2e63e1e738c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e015b75037d4e669e34e4fece23b8e7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e015b75037d4e669e34e4fece23b8e7', x'2d2ee1d85f9b4257884b1ca1852a535e', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891b43c38_f6180435d483291f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:19', 'xpto@account.test', '$2a$04$HsTuMVNFsNAWrVkPIa9JjOhb5UlsMOzWGTh0acNTMQiOCrY.9kb2m', NULL, x'097d463ef57a445a9f0d4c6000466445', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'097d463ef57a445a9f0d4c6000466445' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:19', 'User', x'8295c84a3b0746948b178bde117dcfdb', '468ece7d845e94af6a37a8f68476c4b3', x'097d463ef57a445a9f0d4c6000466445', 'User', '2012-12-31 12:46:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'097d463ef57a445a9f0d4c6000466445' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'd2fa389e18714efb8edf6a0e965333e2', NULL, NULL, NULL, '2012-12-31 12:46:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'accountd2fa389e-1871-4efb-8edf-6a0e965333e2' WHERE `accounts`.`id` = x'd2fa389e18714efb8edf6a0e965333e2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd2fa389e18714efb8edf6a0e965333e2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd2fa389e18714efb8edf6a0e965333e2', x'de21bb9bf6914eaaab0f9514e1055d0e', x'097d463ef57a445a9f0d4c6000466445') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'de21bb9bf6914eaaab0f9514e1055d0e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de21bb9bf6914eaaab0f9514e1055d0e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de21bb9bf6914eaaab0f9514e1055d0e', x'2d3dad6b6a9d4fff8ffdd4a0f2b9b290', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'de21bb9bf6914eaaab0f9514e1055d0e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de21bb9bf6914eaaab0f9514e1055d0e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de21bb9bf6914eaaab0f9514e1055d0e', x'e4dddce431b04b98a75807cc60195c86', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:19 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891b58f70_f6180435d4833015@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'cad10ced86dd4fad87c075d267e2d292', 'jabanilson', NULL, 1, '2012-12-31 12:46:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'accountcad10ced-86dd-4fad-87c0-75d267e2d292' WHERE `accounts`.`id` = x'cad10ced86dd4fad87c075d267e2d292'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cad10ced86dd4fad87c075d267e2d292', x'b9c7e1ff32104ec0846dd01591073905', x'097d463ef57a445a9f0d4c6000466445') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b9c7e1ff32104ec0846dd01591073905') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9c7e1ff32104ec0846dd01591073905' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9c7e1ff32104ec0846dd01591073905', x'76ff33b3ab59402da3c5a157ae48046e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b9c7e1ff32104ec0846dd01591073905') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9c7e1ff32104ec0846dd01591073905' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9c7e1ff32104ec0846dd01591073905', x'981e702e68e3425c9872a0310f57ea78', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b95e661bd1574059af73ff38a85838e7' LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = x'b95e661bd1574059af73ff38a85838e7' WHERE `account_users`.`id` = x'b9c7e1ff32104ec0846dd01591073905'  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b9c7e1ff32104ec0846dd01591073905'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9c7e1ff32104ec0846dd01591073905' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¹^fÑW@Y¯sÿ8¨X8ç' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'76ff33b3ab59402da3c5a157ae48046e' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'981e702e68e3425c9872a0310f57ea78'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'b9c7e1ff32104ec0846dd01591073905') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9c7e1ff32104ec0846dd01591073905' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9c7e1ff32104ec0846dd01591073905', x'd59625ed253e4748a39464d6465f0f81', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd59625ed253e4748a39464d6465f0f81'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b9c7e1ff32104ec0846dd01591073905') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9c7e1ff32104ec0846dd01591073905' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9c7e1ff32104ec0846dd01591073905', x'25def17af95b48ab83a8c3a7819df407', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2d2ee1d85f9b4257884b1ca1852a535e' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e015b75037d4e669e34e4fece23b8e7' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¹^fÑW@Y¯sÿ8¨X8ç' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'52abd0a366604a7dbf1ef2e63e1e738c'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e015b75037d4e669e34e4fece23b8e7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e015b75037d4e669e34e4fece23b8e7', x'3eccb65dadf74f48a2feba36c90836e1', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/b95e661b-d157-4059-af73-ff38a85838e7/users" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"b95e661b-d157-4059-af73-ff38a85838e7"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b95e661bd1574059af73ff38a85838e7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b95e661b-d157-4059-af73-ff38a85838e7_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b95e661bd1574059af73ff38a85838e7' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b95e661bd1574059af73ff38a85838e7' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b95e661bd1574059af73ff38a85838e7' AND `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b95e661bd1574059af73ff38a85838e7' AND `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7' AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'097d463ef57a445a9f0d4c6000466445' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b95e661bd1574059af73ff38a85838e7' AND `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b95e661bd1574059af73ff38a85838e7' AND `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b95e661bd1574059af73ff38a85838e7' AND `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b95e661bd1574059af73ff38a85838e7' AND `account_users`.`user_id` = x'9b64471b8b4f45dabf69538a79a7f115' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9e015b75037d4e669e34e4fece23b8e7' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 27ms (Views: 20.5ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:19', 'teste@teste.com', '$2a$04$zMFF2uM.NUKVnc91tec1jOXtNoHOvmOHCX9mYiUCIw2vXFX8Sjfcq', NULL, x'a763946ff7ca42779f3a3d9c1603c893', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a763946ff7ca42779f3a3d9c1603c893' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:19', 'User', x'bcf3f368446e415aa14f6afd81b41140', '9d2ac6324cbb40e4aa70423579751fd2', x'a763946ff7ca42779f3a3d9c1603c893', 'User', '2012-12-31 12:46:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a763946ff7ca42779f3a3d9c1603c893' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'a4de9912daf64cbb91cc099363eecf19', NULL, NULL, NULL, '2012-12-31 12:46:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'accounta4de9912-daf6-4cbb-91cc-099363eecf19' WHERE `accounts`.`id` = x'a4de9912daf64cbb91cc099363eecf19' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4de9912daf64cbb91cc099363eecf19' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a4de9912daf64cbb91cc099363eecf19', x'66d348b4699340e596766df954f651b7', x'a763946ff7ca42779f3a3d9c1603c893') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'66d348b4699340e596766df954f651b7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66d348b4699340e596766df954f651b7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66d348b4699340e596766df954f651b7', x'a11e2e1624aa4884a85a66812181acf0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'66d348b4699340e596766df954f651b7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66d348b4699340e596766df954f651b7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66d348b4699340e596766df954f651b7', x'cc6c032becd84d57959db7405fe1f2a2', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891b76d65_f6180435d483319b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.8ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a763946ff7ca42779f3a3d9c1603c893' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:19', 'xpto@account.test', '$2a$04$xnGuj/sbcdEeAQUySUamoeSUqQx4pufH1cHONkZMs.kSRfuTqXs6C', NULL, x'430b6e7896824fc28c8cfe8098651ca6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'430b6e7896824fc28c8cfe8098651ca6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:19', 'User', x'ef7cac3764314f46a4afc5392e826284', '0ec1a7c7d2130e560f1350bbb73851b8', x'430b6e7896824fc28c8cfe8098651ca6', 'User', '2012-12-31 12:46:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'430b6e7896824fc28c8cfe8098651ca6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'3e411593b057495bab5daddab898f65a', NULL, NULL, NULL, '2012-12-31 12:46:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'account3e411593-b057-495b-ab5d-addab898f65a' WHERE `accounts`.`id` = x'3e411593b057495bab5daddab898f65a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3e411593b057495bab5daddab898f65a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3e411593b057495bab5daddab898f65a', x'7291b66ca0054bc6b341c2e500c4325c', x'430b6e7896824fc28c8cfe8098651ca6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7291b66ca0054bc6b341c2e500c4325c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7291b66ca0054bc6b341c2e500c4325c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7291b66ca0054bc6b341c2e500c4325c', x'd6a99346ef6e49e98cb82b005492088b', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7291b66ca0054bc6b341c2e500c4325c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7291b66ca0054bc6b341c2e500c4325c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7291b66ca0054bc6b341c2e500c4325c', x'61db8eb307fa49159230f00879b30c7e', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:19 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891ba9c9b_f6180435d4833288@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'59ef09b336664feead1a4d9a7c728876', 'jabanilson', NULL, 1, '2012-12-31 12:46:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'account59ef09b3-3666-4fee-ad1a-4d9a7c728876' WHERE `accounts`.`id` = x'59ef09b336664feead1a4d9a7c728876'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'59ef09b336664feead1a4d9a7c728876', x'd14cc1f8217e40bc80f5ae465871ba92', x'430b6e7896824fc28c8cfe8098651ca6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd14cc1f8217e40bc80f5ae465871ba92') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd14cc1f8217e40bc80f5ae465871ba92' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd14cc1f8217e40bc80f5ae465871ba92', x'2bc276ed107d48ed924007e7fed95437', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd14cc1f8217e40bc80f5ae465871ba92') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd14cc1f8217e40bc80f5ae465871ba92' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd14cc1f8217e40bc80f5ae465871ba92', x'563e99d4acdf49288afe777d50263e5a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4de9912daf64cbb91cc099363eecf19' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'a4de9912daf64cbb91cc099363eecf19' WHERE `account_users`.`id` = x'd14cc1f8217e40bc80f5ae465871ba92'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd14cc1f8217e40bc80f5ae465871ba92'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd14cc1f8217e40bc80f5ae465871ba92' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¤Þ™ÚöL»‘Ì “cîÏ' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2bc276ed107d48ed924007e7fed95437' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'563e99d4acdf49288afe777d50263e5a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'd14cc1f8217e40bc80f5ae465871ba92') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd14cc1f8217e40bc80f5ae465871ba92' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd14cc1f8217e40bc80f5ae465871ba92', x'04e6a07e83a7419fa7ffe4bb53f003ac', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'04e6a07e83a7419fa7ffe4bb53f003ac'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd14cc1f8217e40bc80f5ae465871ba92') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd14cc1f8217e40bc80f5ae465871ba92' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd14cc1f8217e40bc80f5ae465871ba92', x'b9fa99a56ff44b24994a2924b883f174', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/a4de9912-daf6-4cbb-91cc-099363eecf19/users" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"a4de9912-daf6-4cbb-91cc-099363eecf19"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4de9912daf64cbb91cc099363eecf19' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a4de9912-daf6-4cbb-91cc-099363eecf19_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4de9912daf64cbb91cc099363eecf19' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4de9912daf64cbb91cc099363eecf19' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4de9912daf64cbb91cc099363eecf19' AND `account_users`.`user_id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'66d348b4699340e596766df954f651b7' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_66d348b4-6993-40e5-9676-6df954f651b7_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'66d348b4699340e596766df954f651b7' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'430b6e7896824fc28c8cfe8098651ca6' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4de9912daf64cbb91cc099363eecf19' AND `account_users`.`user_id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'66d348b4699340e596766df954f651b7' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_d14cc1f8-217e-40bc-80f5-ae465871ba92_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd14cc1f8217e40bc80f5ae465871ba92' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4de9912daf64cbb91cc099363eecf19' AND `account_users`.`user_id` = x'a763946ff7ca42779f3a3d9c1603c893' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'66d348b4699340e596766df954f651b7' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.8ms | ActiveRecord: 2.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:19', 'teste@teste.com', '$2a$04$fNp8CPM1vkjyC5eAS1JRD.EsinoqbNNsEQqvmEvBHAvSwyAT2ACNS', NULL, x'5c843c2ec4264f8c863c123d983a75f0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5c843c2ec4264f8c863c123d983a75f0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:19', 'User', x'9671326fb417499cab43ece2742ee1eb', '03fd7e5acfac3957c7f7a9c426592fc2', x'5c843c2ec4264f8c863c123d983a75f0', 'User', '2012-12-31 12:46:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5c843c2ec4264f8c863c123d983a75f0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'952bd2a70eb14e8ba4429e51f64b4ca8', NULL, NULL, NULL, '2012-12-31 12:46:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'account952bd2a7-0eb1-4e8b-a442-9e51f64b4ca8' WHERE `accounts`.`id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'952bd2a70eb14e8ba4429e51f64b4ca8', x'036a3edee7c844f9ae2ffd5fbb60207d', x'5c843c2ec4264f8c863c123d983a75f0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'036a3edee7c844f9ae2ffd5fbb60207d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'036a3edee7c844f9ae2ffd5fbb60207d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'036a3edee7c844f9ae2ffd5fbb60207d', x'5537d5a7f5a145d88cf75ec1427a6564', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'036a3edee7c844f9ae2ffd5fbb60207d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'036a3edee7c844f9ae2ffd5fbb60207d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'036a3edee7c844f9ae2ffd5fbb60207d', x'e4b0c61a26a449ca8ac727bc18a14c07', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:19 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891bc552e_f6180435d48333c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5c843c2ec4264f8c863c123d983a75f0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:19 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:19', 'xpto@account.test', '$2a$04$1DbuqzVqHX37vJqAyg/zBum6kwR6BfaQkmHNAkPjM.jaUEvJuVDEG', NULL, x'36cb2c12fad94c2fb84ebf34b4e6d715', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'36cb2c12fad94c2fb84ebf34b4e6d715' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:19', 'User', x'ba0fede647074d87924db7d1fb61f1a3', '75c91022b4181ca125f495fdb2988801', x'36cb2c12fad94c2fb84ebf34b4e6d715', 'User', '2012-12-31 12:46:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'36cb2c12fad94c2fb84ebf34b4e6d715' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:19', x'd6f950b53a6c4937aa76e13443de5655', NULL, NULL, NULL, '2012-12-31 12:46:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:19', `updated_at` = '2012-12-31 12:46:19', `subdomain` = 'accountd6f950b5-3a6c-4937-aa76-e13443de5655' WHERE `accounts`.`id` = x'd6f950b53a6c4937aa76e13443de5655' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd6f950b53a6c4937aa76e13443de5655' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd6f950b53a6c4937aa76e13443de5655', x'8de69bd132b848249602a730e57a3ed4', x'36cb2c12fad94c2fb84ebf34b4e6d715') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8de69bd132b848249602a730e57a3ed4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8de69bd132b848249602a730e57a3ed4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8de69bd132b848249602a730e57a3ed4', x'd7ee38bf399343a89dd994e5b5c905fc', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8de69bd132b848249602a730e57a3ed4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8de69bd132b848249602a730e57a3ed4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8de69bd132b848249602a730e57a3ed4', x'c473c46819c84a6598e0ba834d79dd16', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:20 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891c43a0_f6180435d48334a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'c252c2b8881a45b194c1a9cde898e3ad', 'jabanilson', NULL, 1, '2012-12-31 12:46:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'accountc252c2b8-881a-45b1-94c1-a9cde898e3ad' WHERE `accounts`.`id` = x'c252c2b8881a45b194c1a9cde898e3ad'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c252c2b8881a45b194c1a9cde898e3ad', x'7764414b95f84e24bddba0b179031ae3', x'36cb2c12fad94c2fb84ebf34b4e6d715') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7764414b95f84e24bddba0b179031ae3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7764414b95f84e24bddba0b179031ae3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7764414b95f84e24bddba0b179031ae3', x'357eee3d888c44c7859038e72609e2b4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7764414b95f84e24bddba0b179031ae3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7764414b95f84e24bddba0b179031ae3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7764414b95f84e24bddba0b179031ae3', x'6e4526355e244bffaab86f0823a55910', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' WHERE `account_users`.`id` = x'7764414b95f84e24bddba0b179031ae3'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7764414b95f84e24bddba0b179031ae3'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7764414b95f84e24bddba0b179031ae3' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '•+Ò§±N‹¤BžQöKL¨' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'357eee3d888c44c7859038e72609e2b4' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'6e4526355e244bffaab86f0823a55910'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'7764414b95f84e24bddba0b179031ae3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7764414b95f84e24bddba0b179031ae3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7764414b95f84e24bddba0b179031ae3', x'c2c5b6ddea194207b0de6e096f9693c6', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c2c5b6ddea194207b0de6e096f9693c6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7764414b95f84e24bddba0b179031ae3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7764414b95f84e24bddba0b179031ae3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7764414b95f84e24bddba0b179031ae3', x'c7633fd89c3449c380f4995a0d142cff', 'owner')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/952bd2a7-0eb1-4e8b-a442-9e51f64b4ca8/users" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"952bd2a7-0eb1-4e8b-a442-9e51f64b4ca8"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_952bd2a7-0eb1-4e8b-a442-9e51f64b4ca8_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' AND `account_users`.`user_id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'036a3edee7c844f9ae2ffd5fbb60207d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_036a3ede-e7c8-44f9-ae2f-fd5fbb60207d_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'036a3edee7c844f9ae2ffd5fbb60207d' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'36cb2c12fad94c2fb84ebf34b4e6d715' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' AND `account_users`.`user_id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'036a3edee7c844f9ae2ffd5fbb60207d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7764414b-95f8-4e24-bddb-a0b179031ae3_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7764414b95f84e24bddba0b179031ae3' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'952bd2a70eb14e8ba4429e51f64b4ca8' AND `account_users`.`user_id` = x'5c843c2ec4264f8c863c123d983a75f0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'036a3edee7c844f9ae2ffd5fbb60207d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.9ms | ActiveRecord: 3.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:20', 'teste@teste.com', '$2a$04$.G7Yl1gDU0a0fjR0YS83J.mKbquD.2cgQBGhASs.r5.c23btErepO', NULL, x'ad43502274c64f7f88ab21d0d491120f', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ad43502274c64f7f88ab21d0d491120f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:20', 'User', x'c90a7fe5ab654f56be22e1927c70a276', 'a39fdd99b01ddd2982d450bf92a5caec', x'ad43502274c64f7f88ab21d0d491120f', 'User', '2012-12-31 12:46:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ad43502274c64f7f88ab21d0d491120f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'00f316d4b53b4a08a525106cee73104a', NULL, NULL, NULL, '2012-12-31 12:46:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'account00f316d4-b53b-4a08-a525-106cee73104a' WHERE `accounts`.`id` = x'00f316d4b53b4a08a525106cee73104a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00f316d4b53b4a08a525106cee73104a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'00f316d4b53b4a08a525106cee73104a', x'b1f39472d778482988293aefc43dcd55', x'ad43502274c64f7f88ab21d0d491120f') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b1f39472d778482988293aefc43dcd55') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1f39472d778482988293aefc43dcd55' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1f39472d778482988293aefc43dcd55', x'83664114dfde4217a4dd8d52fccb20aa', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b1f39472d778482988293aefc43dcd55') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1f39472d778482988293aefc43dcd55' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1f39472d778482988293aefc43dcd55', x'76e85b7c681d48bdaf6764d7fbeb7bf8', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891c1fb6c_f6180435d4833538@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ad43502274c64f7f88ab21d0d491120f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:20', 'xpto@account.test', '$2a$04$vHzKxaN7RLEbLAtyxh15G.VhBqJ/jZ0ZAWrFMUesEcbi9fzPBnUR6', NULL, x'd5b645996b2c4552b13526eb07e24cb4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd5b645996b2c4552b13526eb07e24cb4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:20', 'User', x'71d4443a9a9446febb7b58600fba1f5d', '2f17f0a7fe16f7ea89c17b80ca6f4ac1', x'd5b645996b2c4552b13526eb07e24cb4', 'User', '2012-12-31 12:46:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd5b645996b2c4552b13526eb07e24cb4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'7b688adfece249d3a54c9815aca3ec78', NULL, NULL, NULL, '2012-12-31 12:46:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'account7b688adf-ece2-49d3-a54c-9815aca3ec78' WHERE `accounts`.`id` = x'7b688adfece249d3a54c9815aca3ec78' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7b688adfece249d3a54c9815aca3ec78' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7b688adfece249d3a54c9815aca3ec78', x'3ec9449415de4ee0aeb0158eec72782f', x'd5b645996b2c4552b13526eb07e24cb4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3ec9449415de4ee0aeb0158eec72782f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3ec9449415de4ee0aeb0158eec72782f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3ec9449415de4ee0aeb0158eec72782f', x'b258909fde644ed6931b862d997428e7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3ec9449415de4ee0aeb0158eec72782f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3ec9449415de4ee0aeb0158eec72782f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3ec9449415de4ee0aeb0158eec72782f', x'6e03a91c3f044c69b5302e7bb5a75638', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:20 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891c36415_f6180435d4833697@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'6033cad1a3fe4a819dc119756e7660c1', 'jabanilson', NULL, 1, '2012-12-31 12:46:20')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'account6033cad1-a3fe-4a81-9dc1-19756e7660c1' WHERE `accounts`.`id` = x'6033cad1a3fe4a819dc119756e7660c1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6033cad1a3fe4a819dc119756e7660c1', x'b3215ef745dc42d982c0bf90edd9b371', x'd5b645996b2c4552b13526eb07e24cb4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b3215ef745dc42d982c0bf90edd9b371') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3215ef745dc42d982c0bf90edd9b371' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3215ef745dc42d982c0bf90edd9b371', x'794fdbd728b443f292431f496b75fc76', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b3215ef745dc42d982c0bf90edd9b371') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3215ef745dc42d982c0bf90edd9b371' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3215ef745dc42d982c0bf90edd9b371', x'a0b30bca174746449fc51e235edee74f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00f316d4b53b4a08a525106cee73104a' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'00f316d4b53b4a08a525106cee73104a' WHERE `account_users`.`id` = x'b3215ef745dc42d982c0bf90edd9b371'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b3215ef745dc42d982c0bf90edd9b371'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3215ef745dc42d982c0bf90edd9b371' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'794fdbd728b443f292431f496b75fc76' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a0b30bca174746449fc51e235edee74f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'b3215ef745dc42d982c0bf90edd9b371') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3215ef745dc42d982c0bf90edd9b371' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3215ef745dc42d982c0bf90edd9b371', x'dd79b03aa98647b68fbaa0d96222d987', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'dd79b03aa98647b68fbaa0d96222d987'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b3215ef745dc42d982c0bf90edd9b371') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3215ef745dc42d982c0bf90edd9b371' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3215ef745dc42d982c0bf90edd9b371', x'a96f7c0e59b64ea390ee95bf440e1240', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/00f316d4-b53b-4a08-a525-106cee73104a/users" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"00f316d4-b53b-4a08-a525-106cee73104a"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00f316d4b53b4a08a525106cee73104a' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_00f316d4-b53b-4a08-a525-106cee73104a_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00f316d4b53b4a08a525106cee73104a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'00f316d4b53b4a08a525106cee73104a' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'00f316d4b53b4a08a525106cee73104a' AND `account_users`.`user_id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b1f39472d778482988293aefc43dcd55' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_b1f39472-d778-4829-8829-3aefc43dcd55_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b1f39472d778482988293aefc43dcd55' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd5b645996b2c4552b13526eb07e24cb4' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'00f316d4b53b4a08a525106cee73104a' AND `account_users`.`user_id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b1f39472d778482988293aefc43dcd55' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_b3215ef7-45dc-42d9-82c0-bf90edd9b371_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b3215ef745dc42d982c0bf90edd9b371' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'00f316d4b53b4a08a525106cee73104a' AND `account_users`.`user_id` = x'ad43502274c64f7f88ab21d0d491120f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b1f39472d778482988293aefc43dcd55' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 148ms (Views: 140.2ms | ActiveRecord: 3.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:20', 'teste@teste.com', '$2a$04$Du.aFM.Rv6qOLzvMOkK4auxNAhO50uDsPgnA0GcZyQc.s52FdLuEa', NULL, x'380072270efa462abe51c9b4e7b97f5a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'380072270efa462abe51c9b4e7b97f5a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:20', 'User', x'8d6013d74389401a9ad570efac92e9b5', '02b70e55c35a02f362cffc364d510cd1', x'380072270efa462abe51c9b4e7b97f5a', 'User', '2012-12-31 12:46:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'380072270efa462abe51c9b4e7b97f5a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'ea483facdd3c4d92adf2c3f1b94e1054', NULL, NULL, NULL, '2012-12-31 12:46:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'accountea483fac-dd3c-4d92-adf2-c3f1b94e1054' WHERE `accounts`.`id` = x'ea483facdd3c4d92adf2c3f1b94e1054' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ea483facdd3c4d92adf2c3f1b94e1054' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ea483facdd3c4d92adf2c3f1b94e1054', x'e508565fb279417b8c793510b6f360b3', x'380072270efa462abe51c9b4e7b97f5a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e508565fb279417b8c793510b6f360b3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e508565fb279417b8c793510b6f360b3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e508565fb279417b8c793510b6f360b3', x'ce4e8c41615d49d8a56b0364f9d9c9c9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e508565fb279417b8c793510b6f360b3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e508565fb279417b8c793510b6f360b3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e508565fb279417b8c793510b6f360b3', x'0b0af874696e4c56b173fb8860af8cdb', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891c6f9c8_f6180435d48337f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'380072270efa462abe51c9b4e7b97f5a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:20', 'xpto@account.test', '$2a$04$XvNiW71tCEMQK5hLjwVv8uDrCHQ8CZznXKlAenrqejoVWJGuSJpmy', NULL, x'2e3efddcdde74d3eb22a848197e13e2b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2e3efddcdde74d3eb22a848197e13e2b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:20', 'User', x'b24db2aa9f354a9586955f2fa3101d2e', '035e971d7144db0e25dfe5525b54f158', x'2e3efddcdde74d3eb22a848197e13e2b', 'User', '2012-12-31 12:46:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2e3efddcdde74d3eb22a848197e13e2b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'016170d17649426e9f9d0edd7b0b58fd', NULL, NULL, NULL, '2012-12-31 12:46:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'account016170d1-7649-426e-9f9d-0edd7b0b58fd' WHERE `accounts`.`id` = x'016170d17649426e9f9d0edd7b0b58fd' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'016170d17649426e9f9d0edd7b0b58fd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'016170d17649426e9f9d0edd7b0b58fd', x'd3b66d32632440dc9ce99c9dfc6e2b61', x'2e3efddcdde74d3eb22a848197e13e2b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd3b66d32632440dc9ce99c9dfc6e2b61') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3b66d32632440dc9ce99c9dfc6e2b61' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3b66d32632440dc9ce99c9dfc6e2b61', x'47e11913e73e49ffada9af8f86b79fc1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd3b66d32632440dc9ce99c9dfc6e2b61') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3b66d32632440dc9ce99c9dfc6e2b61' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3b66d32632440dc9ce99c9dfc6e2b61', x'86cf06cf6e0c42ae9ec1e9a600ffd849', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:20 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891c85731_f6180435d48338c6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'80e8744947ec475f97d1e94eb73373a7', 'jabanilson', NULL, 1, '2012-12-31 12:46:20')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'account80e87449-47ec-475f-97d1-e94eb73373a7' WHERE `accounts`.`id` = x'80e8744947ec475f97d1e94eb73373a7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'80e8744947ec475f97d1e94eb73373a7', x'ae66f61b31d64311a2b3ad785d5054f2', x'2e3efddcdde74d3eb22a848197e13e2b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ae66f61b31d64311a2b3ad785d5054f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae66f61b31d64311a2b3ad785d5054f2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae66f61b31d64311a2b3ad785d5054f2', x'c66c37b5b4824df18f68c630990b77ba', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ae66f61b31d64311a2b3ad785d5054f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae66f61b31d64311a2b3ad785d5054f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae66f61b31d64311a2b3ad785d5054f2', x'cdfa6de6d42647d1a01dc886fd09707e', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ea483facdd3c4d92adf2c3f1b94e1054' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'ea483facdd3c4d92adf2c3f1b94e1054' WHERE `account_users`.`id` = x'ae66f61b31d64311a2b3ad785d5054f2'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ae66f61b31d64311a2b3ad785d5054f2'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae66f61b31d64311a2b3ad785d5054f2' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'êH?¬Ý"ea483fac-dd3c-4d92-adf2-c3f1b94e1054"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ea483facdd3c4d92adf2c3f1b94e1054' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ea483fac-dd3c-4d92-adf2-c3f1b94e1054_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ea483facdd3c4d92adf2c3f1b94e1054' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ea483facdd3c4d92adf2c3f1b94e1054' User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2e3efddcdde74d3eb22a848197e13e2b' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ea483facdd3c4d92adf2c3f1b94e1054' AND `account_users`.`user_id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e508565fb279417b8c793510b6f360b3' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ae66f61b-31d6-4311-a2b3-ad785d5054f2_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ae66f61b31d64311a2b3ad785d5054f2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ea483facdd3c4d92adf2c3f1b94e1054' AND `account_users`.`user_id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e508565fb279417b8c793510b6f360b3' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_e508565f-b279-417b-8c79-3510b6f360b3_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e508565fb279417b8c793510b6f360b3' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ea483facdd3c4d92adf2c3f1b94e1054' AND `account_users`.`user_id` = x'380072270efa462abe51c9b4e7b97f5a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e508565fb279417b8c793510b6f360b3' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.8ms | ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:20', 'teste@teste.com', '$2a$04$w3PH36vwx2q72i9kFLgo/uJRvzHd7ksyIRAVpeYzuhmOWHJBFpLxW', NULL, x'224d218ca9f54eebb143fc83cf8d91e4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:20') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'224d218ca9f54eebb143fc83cf8d91e4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:20', 'User', x'5bc7ed2f65ee41d28f311de740463cb2', '96bc5adbeaadba4fc561de10dba8839b', x'224d218ca9f54eebb143fc83cf8d91e4', 'User', '2012-12-31 12:46:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'224d218ca9f54eebb143fc83cf8d91e4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'1331deb25aab458da74e589315237abc', NULL, NULL, NULL, '2012-12-31 12:46:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'account1331deb2-5aab-458d-a74e-589315237abc' WHERE `accounts`.`id` = x'1331deb25aab458da74e589315237abc' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1331deb25aab458da74e589315237abc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1331deb25aab458da74e589315237abc', x'7f353032f9e244a79ac3d8435c9b3484', x'224d218ca9f54eebb143fc83cf8d91e4') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7f353032f9e244a79ac3d8435c9b3484') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f353032f9e244a79ac3d8435c9b3484' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f353032f9e244a79ac3d8435c9b3484', x'd6b8a4d5cff84f55bf5e394b8807dcbc', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7f353032f9e244a79ac3d8435c9b3484') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f353032f9e244a79ac3d8435c9b3484' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f353032f9e244a79ac3d8435c9b3484', x'2ecc212d035c421ab87c2dc699b6467d', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891cbe720_f6180435d4833914@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'224d218ca9f54eebb143fc83cf8d91e4' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'224d218ca9f54eebb143fc83cf8d91e4' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'224d218ca9f54eebb143fc83cf8d91e4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'224d218ca9f54eebb143fc83cf8d91e4' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'224d218ca9f54eebb143fc83cf8d91e4' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/account/1331deb2-5aab-458d-a74e-589315237abc/users" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"1331deb2-5aab-458d-a74e-589315237abc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'224d218ca9f54eebb143fc83cf8d91e4' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1331deb25aab458da74e589315237abc' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1331deb2-5aab-458d-a74e-589315237abc_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1331deb25aab458da74e589315237abc' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'1331deb25aab458da74e589315237abc' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'224d218ca9f54eebb143fc83cf8d91e4' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'1331deb25aab458da74e589315237abc' AND `account_users`.`user_id` = x'224d218ca9f54eebb143fc83cf8d91e4' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7f353032f9e244a79ac3d8435c9b3484' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7f353032-f9e2-44a7-9ac3-d8435c9b3484_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7f353032f9e244a79ac3d8435c9b3484' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'1331deb25aab458da74e589315237abc' AND `account_users`.`user_id` = x'224d218ca9f54eebb143fc83cf8d91e4' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7f353032f9e244a79ac3d8435c9b3484' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 12.9ms | ActiveRecord: 2.3ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:20', 'teste@teste.com', '$2a$04$pnNHcYceY0T4Ab8hvg48RuIyg2E0kjI8CNuK6cvqPZhS5mFjRpZCa', NULL, x'62a3c0bc72dc43b1b60f0175535a66b6', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'62a3c0bc72dc43b1b60f0175535a66b6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:20', 'User', x'd69d0700a1574be388e95e5076bf8481', '30414b0b648a61944714cf8934a63c3a', x'62a3c0bc72dc43b1b60f0175535a66b6', 'User', '2012-12-31 12:46:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'62a3c0bc72dc43b1b60f0175535a66b6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'94aac20fa02d40e1b92ba8c7d6d711da', NULL, NULL, NULL, '2012-12-31 12:46:20')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'account94aac20f-a02d-40e1-b92b-a8c7d6d711da' WHERE `accounts`.`id` = x'94aac20fa02d40e1b92ba8c7d6d711da' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'94aac20fa02d40e1b92ba8c7d6d711da' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'94aac20fa02d40e1b92ba8c7d6d711da', x'6a38acfca5ac48e5882d27a6cf61c60e', x'62a3c0bc72dc43b1b60f0175535a66b6') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6a38acfca5ac48e5882d27a6cf61c60e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6a38acfca5ac48e5882d27a6cf61c60e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6a38acfca5ac48e5882d27a6cf61c60e', x'31d7db1c364d450083d27256179c3f6d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6a38acfca5ac48e5882d27a6cf61c60e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6a38acfca5ac48e5882d27a6cf61c60e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6a38acfca5ac48e5882d27a6cf61c60e', x'fe49e655a2f24d84be0d06952849ecfa', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:20 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891cdb00c_f6180435d483404b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62a3c0bc72dc43b1b60f0175535a66b6' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'62a3c0bc72dc43b1b60f0175535a66b6' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62a3c0bc72dc43b1b60f0175535a66b6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62a3c0bc72dc43b1b60f0175535a66b6' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'62a3c0bc72dc43b1b60f0175535a66b6' LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/settings/account/94aac20f-a02d-40e1-b92b-a8c7d6d711da/users" for 127.0.0.1 at 2012-12-31 10:46:20 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"94aac20f-a02d-40e1-b92b-a8c7d6d711da"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'62a3c0bc72dc43b1b60f0175535a66b6' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'94aac20fa02d40e1b92ba8c7d6d711da' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_94aac20f-a02d-40e1-b92b-a8c7d6d711da_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'94aac20fa02d40e1b92ba8c7d6d711da' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'94aac20fa02d40e1b92ba8c7d6d711da' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'62a3c0bc72dc43b1b60f0175535a66b6' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'94aac20fa02d40e1b92ba8c7d6d711da' AND `account_users`.`user_id` = x'62a3c0bc72dc43b1b60f0175535a66b6' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6a38acfca5ac48e5882d27a6cf61c60e' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_6a38acfc-a5ac-48e5-882d-27a6cf61c60e_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6a38acfca5ac48e5882d27a6cf61c60e' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'94aac20fa02d40e1b92ba8c7d6d711da' AND `account_users`.`user_id` = x'62a3c0bc72dc43b1b60f0175535a66b6' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6a38acfca5ac48e5882d27a6cf61c60e' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 12.6ms | ActiveRecord: 2.1ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:20', 'teste@teste.com', '$2a$04$l9r77CD1.SDiL4N/Yr2AdeTDXYLBxgJKUKSzuXfgCqZe.AUFx99gS', NULL, x'a70d9a4853ce4f339de0e5765f99c581', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a70d9a4853ce4f339de0e5765f99c581' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:20', 'User', x'e80579ea8d67400fbe8b57b3dec53ea7', '1a5cd4ad1c434075752bd388b3784e30', x'a70d9a4853ce4f339de0e5765f99c581', 'User', '2012-12-31 12:46:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a70d9a4853ce4f339de0e5765f99c581' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:20', x'd70f034f62d34d3db093665a2dfcb806', NULL, NULL, NULL, '2012-12-31 12:46:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:20', `updated_at` = '2012-12-31 12:46:20', `subdomain` = 'accountd70f034f-62d3-4d3d-b093-665a2dfcb806' WHERE `accounts`.`id` = x'd70f034f62d34d3db093665a2dfcb806' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd70f034f62d34d3db093665a2dfcb806' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd70f034f62d34d3db093665a2dfcb806', x'996dfa8337e64ce5910d2159945e65b9', x'a70d9a4853ce4f339de0e5765f99c581') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'996dfa8337e64ce5910d2159945e65b9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'996dfa8337e64ce5910d2159945e65b9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'996dfa8337e64ce5910d2159945e65b9', x'14854b1014f14f6abce058d4b1280188', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'996dfa8337e64ce5910d2159945e65b9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'996dfa8337e64ce5910d2159945e65b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'996dfa8337e64ce5910d2159945e65b9', x'f281ef85e39e4bccb87a9c2e95ce1189', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891d3354_f6180435d48341c3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a70d9a4853ce4f339de0e5765f99c581' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a70d9a4853ce4f339de0e5765f99c581' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.6ms) Completed 200 OK in 131ms (Views: 129.5ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a70d9a4853ce4f339de0e5765f99c581' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a70d9a4853ce4f339de0e5765f99c581' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a70d9a4853ce4f339de0e5765f99c581' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/account/d70f034f-62d3-4d3d-b093-665a2dfcb806/users" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"d70f034f-62d3-4d3d-b093-665a2dfcb806"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a70d9a4853ce4f339de0e5765f99c581' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd70f034f62d34d3db093665a2dfcb806' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d70f034f-62d3-4d3d-b093-665a2dfcb806_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd70f034f62d34d3db093665a2dfcb806' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd70f034f62d34d3db093665a2dfcb806' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a70d9a4853ce4f339de0e5765f99c581' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd70f034f62d34d3db093665a2dfcb806' AND `account_users`.`user_id` = x'a70d9a4853ce4f339de0e5765f99c581' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'996dfa8337e64ce5910d2159945e65b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_996dfa83-37e6-4ce5-910d-2159945e65b9_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'996dfa8337e64ce5910d2159945e65b9' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd70f034f62d34d3db093665a2dfcb806' AND `account_users`.`user_id` = x'a70d9a4853ce4f339de0e5765f99c581' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'996dfa8337e64ce5910d2159945e65b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 12.7ms | ActiveRecord: 1.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:21', 'teste@teste.com', '$2a$04$FH1pzpOu4eNN.f4jfDM8g.nyjj5en7sODRYFe2rqHC3MAOMfbYWKK', NULL, x'da849921dfcb4723b3134213cfe91e2b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'da849921dfcb4723b3134213cfe91e2b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:21', 'User', x'96f1f3a545054f57bc75ce181ddc0f3f', '935542ac3d4d7be9a71ac57677732dd1', x'da849921dfcb4723b3134213cfe91e2b', 'User', '2012-12-31 12:46:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'da849921dfcb4723b3134213cfe91e2b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:21', x'19d660e87fe7448da4a5e65e92ab8485', NULL, NULL, NULL, '2012-12-31 12:46:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:21', `updated_at` = '2012-12-31 12:46:21', `subdomain` = 'account19d660e8-7fe7-448d-a4a5-e65e92ab8485' WHERE `accounts`.`id` = x'19d660e87fe7448da4a5e65e92ab8485' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'19d660e87fe7448da4a5e65e92ab8485' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'19d660e87fe7448da4a5e65e92ab8485', x'afba8caf5af34f249e0c7591c89c72d1', x'da849921dfcb4723b3134213cfe91e2b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'afba8caf5af34f249e0c7591c89c72d1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'afba8caf5af34f249e0c7591c89c72d1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'afba8caf5af34f249e0c7591c89c72d1', x'e63db8af691c447b814d74ebb3fe7e29', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'afba8caf5af34f249e0c7591c89c72d1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'afba8caf5af34f249e0c7591c89c72d1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'afba8caf5af34f249e0c7591c89c72d1', x'f2fed2b0415a417f8be2b69b07e17aa0', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891d3cc27_f6180435d483425f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da849921dfcb4723b3134213cfe91e2b' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'da849921dfcb4723b3134213cfe91e2b' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da849921dfcb4723b3134213cfe91e2b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da849921dfcb4723b3134213cfe91e2b' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'da849921dfcb4723b3134213cfe91e2b' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/account/19d660e8-7fe7-448d-a4a5-e65e92ab8485/users" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"19d660e8-7fe7-448d-a4a5-e65e92ab8485"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'da849921dfcb4723b3134213cfe91e2b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'19d660e87fe7448da4a5e65e92ab8485' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_19d660e8-7fe7-448d-a4a5-e65e92ab8485_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'19d660e87fe7448da4a5e65e92ab8485' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'19d660e87fe7448da4a5e65e92ab8485' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'da849921dfcb4723b3134213cfe91e2b' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'19d660e87fe7448da4a5e65e92ab8485' AND `account_users`.`user_id` = x'da849921dfcb4723b3134213cfe91e2b' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'afba8caf5af34f249e0c7591c89c72d1' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_afba8caf-5af3-4f24-9e0c-7591c89c72d1_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'afba8caf5af34f249e0c7591c89c72d1' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'19d660e87fe7448da4a5e65e92ab8485' AND `account_users`.`user_id` = x'da849921dfcb4723b3134213cfe91e2b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'afba8caf5af34f249e0c7591c89c72d1' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 13.1ms | ActiveRecord: 2.6ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:21', 'teste@teste.com', '$2a$04$Ue5D9UtNkydvj1i7f/mXyOGBD2b6jnjlSVHzbaY4ZsRXFIOOJFv6W', NULL, x'f3d1b63a89954098978afd841042164e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f3d1b63a89954098978afd841042164e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:21', 'User', x'aebd61a7aca244bd9a0865ba467338f0', '0e890bca7aa5965ffb1d93c922006c5d', x'f3d1b63a89954098978afd841042164e', 'User', '2012-12-31 12:46:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f3d1b63a89954098978afd841042164e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:21', x'07bd377079004923b14f2f06bad2c978', NULL, NULL, NULL, '2012-12-31 12:46:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:21', `updated_at` = '2012-12-31 12:46:21', `subdomain` = 'account07bd3770-7900-4923-b14f-2f06bad2c978' WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'07bd377079004923b14f2f06bad2c978', x'101d4577742b4e4aa89a14077a1c2d0d', x'f3d1b63a89954098978afd841042164e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'101d4577742b4e4aa89a14077a1c2d0d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'101d4577742b4e4aa89a14077a1c2d0d', x'618670884eb34697bd3fe716d2920141', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'101d4577742b4e4aa89a14077a1c2d0d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'101d4577742b4e4aa89a14077a1c2d0d', x'0334da5f99f1466794ac41bc71b473de', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891d5972c_f6180435d483432b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.6ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:21', 'xpto@account.test', '$2a$04$aR/wKAY3u/Ny6JxOjkWR7ujfinCCdoYOKCjTJfbbrr14EwiK78Ez.', NULL, x'c500d22edef34787a19090b8d547bd52', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c500d22edef34787a19090b8d547bd52' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:21', 'User', x'831b27f653a74322afea2c5232fcaa1f', 'd35c2f85ed47d54e23826a8df67a0135', x'c500d22edef34787a19090b8d547bd52', 'User', '2012-12-31 12:46:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c500d22edef34787a19090b8d547bd52' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (13.8ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:21', x'35e6143438634a35867eccf7c84fcaa3', NULL, NULL, NULL, '2012-12-31 12:46:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:21', `updated_at` = '2012-12-31 12:46:21', `subdomain` = 'account35e61434-3863-4a35-867e-ccf7c84fcaa3' WHERE `accounts`.`id` = x'35e6143438634a35867eccf7c84fcaa3' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'35e6143438634a35867eccf7c84fcaa3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'35e6143438634a35867eccf7c84fcaa3', x'917b812d06e0436485ec17b11891de00', x'c500d22edef34787a19090b8d547bd52') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'917b812d06e0436485ec17b11891de00') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'917b812d06e0436485ec17b11891de00' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'917b812d06e0436485ec17b11891de00', x'24e75cd6ef1f4cf3b5e3965115466b6c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'917b812d06e0436485ec17b11891de00') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'917b812d06e0436485ec17b11891de00' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'917b812d06e0436485ec17b11891de00', x'a535ef82512b43bab46281ae928f0f76', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:21 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891d905a3_f6180435d4834437@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:21', x'2d844dfa7cd644f1a4e5ad0d678eec1a', 'jabanilson', NULL, 1, '2012-12-31 12:46:21')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:21', `updated_at` = '2012-12-31 12:46:21', `subdomain` = 'account2d844dfa-7cd6-44f1-a4e5-ad0d678eec1a' WHERE `accounts`.`id` = x'2d844dfa7cd644f1a4e5ad0d678eec1a'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2d844dfa7cd644f1a4e5ad0d678eec1a', x'03a2c8e8cda341409ab0a0c46b0868b5', x'c500d22edef34787a19090b8d547bd52') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'03a2c8e8cda341409ab0a0c46b0868b5') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03a2c8e8cda341409ab0a0c46b0868b5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03a2c8e8cda341409ab0a0c46b0868b5', x'0e10559c54514b269a75c91e8226ae34', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'03a2c8e8cda341409ab0a0c46b0868b5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03a2c8e8cda341409ab0a0c46b0868b5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03a2c8e8cda341409ab0a0c46b0868b5', x'a5dddff9cbb24e52898df876419e77eb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'07bd377079004923b14f2f06bad2c978' WHERE `account_users`.`id` = x'03a2c8e8cda341409ab0a0c46b0868b5'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'03a2c8e8cda341409ab0a0c46b0868b5'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03a2c8e8cda341409ab0a0c46b0868b5' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0e10559c54514b269a75c91e8226ae34' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a5dddff9cbb24e52898df876419e77eb'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'03a2c8e8cda341409ab0a0c46b0868b5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03a2c8e8cda341409ab0a0c46b0868b5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03a2c8e8cda341409ab0a0c46b0868b5', x'deb4ff5f1f2647458e7809f32d926a41', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/07bd3770-7900-4923-b14f-2f06bad2c978/users" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"07bd3770-7900-4923-b14f-2f06bad2c978"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_07bd3770-7900-4923-b14f-2f06bad2c978_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c500d22edef34787a19090b8d547bd52' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' AND `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_03a2c8e8-cda3-4140-9ab0-a0c46b0868b5_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'03a2c8e8cda341409ab0a0c46b0868b5' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' AND `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_101d4577-742b-4e4a-a89a-14077a1c2d0d_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' AND `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 27ms (Views: 19.4ms | ActiveRecord: 3.1ms) Started DELETE "/settings/account/07bd3770-7900-4923-b14f-2f06bad2c978/user/c500d22e-def3-4787-a190-90b8d547bd52" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"07bd3770-7900-4923-b14f-2f06bad2c978", "user_id"=>"c500d22e-def3-4787-a190-90b8d547bd52"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_07bd3770-7900-4923-b14f-2f06bad2c978_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' AND `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' AND `account_users`.`user_id` = x'c500d22edef34787a19090b8d547bd52' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c500d22edef34787a19090b8d547bd52' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'03a2c8e8cda341409ab0a0c46b0868b5' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:21', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 03a2c8e8-cda3-4140-9ab0-a0c46b0868b5\n', NULL, NULL, NULL, 0, 'account_user_03a2c8e8-cda3-4140-9ab0-a0c46b0868b5_destroy', '2012-12-31 12:46:21', '2012-12-31 12:46:21')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_03a2c8e8-cda3-4140-9ab0-a0c46b0868b5_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/07bd3770-7900-4923-b14f-2f06bad2c978/users Completed 302 Found in 22ms (ActiveRecord: 3.6ms) Started GET "/settings/account/07bd3770-7900-4923-b14f-2f06bad2c978/users" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"07bd3770-7900-4923-b14f-2f06bad2c978"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_07bd3770-7900-4923-b14f-2f06bad2c978_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07bd377079004923b14f2f06bad2c978' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c500d22edef34787a19090b8d547bd52' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' AND `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_03a2c8e8-cda3-4140-9ab0-a0c46b0868b5_destroy' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' AND `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_101d4577-742b-4e4a-a89a-14077a1c2d0d_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07bd377079004923b14f2f06bad2c978' AND `account_users`.`user_id` = x'f3d1b63a89954098978afd841042164e' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'101d4577742b4e4aa89a14077a1c2d0d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 24ms (Views: 17.5ms | ActiveRecord: 2.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:21', 'teste@teste.com', '$2a$04$eXaJGDolBALeZnn/F3IkUeQOXpM3CsAfjOvc18a5AvjXQMwSVmzdC', NULL, x'2c4dd2a7b0df4f57835b3e0820056376', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2c4dd2a7b0df4f57835b3e0820056376' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:21', 'User', x'55f3bff3ae1f491e88c6f27fd38a0bff', 'c31f5842bf914180741632181f3c0637', x'2c4dd2a7b0df4f57835b3e0820056376', 'User', '2012-12-31 12:46:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2c4dd2a7b0df4f57835b3e0820056376' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:21', x'e9d7ff4180544657b002eea6b15a22b8', NULL, NULL, NULL, '2012-12-31 12:46:21')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:21', `updated_at` = '2012-12-31 12:46:21', `subdomain` = 'accounte9d7ff41-8054-4657-b002-eea6b15a22b8' WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e9d7ff4180544657b002eea6b15a22b8', x'd16a3bf4f95a43ffba38fb360858189a', x'2c4dd2a7b0df4f57835b3e0820056376') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd16a3bf4f95a43ffba38fb360858189a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd16a3bf4f95a43ffba38fb360858189a', x'f9f2f4c6792c433d91cd870e9440d618', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd16a3bf4f95a43ffba38fb360858189a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd16a3bf4f95a43ffba38fb360858189a', x'540bc49048424cf293dec5e5c334c6c0', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:21 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891dba3ef_f6180435d483454d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:21 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:21', 'xpto@account.test', '$2a$04$f79dX1k5ppPD9pD00ySkl.efGz8IfjbW5oRwS7.Op1KBYaQrjHhfy', NULL, x'664a0843a10a45d3b0ca55686eb280c5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'664a0843a10a45d3b0ca55686eb280c5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:21', 'User', x'c3357ceff3e64f10af2e70f422a20e62', 'b88d33a385bd065f34e7396f90eca55e', x'664a0843a10a45d3b0ca55686eb280c5', 'User', '2012-12-31 12:46:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'664a0843a10a45d3b0ca55686eb280c5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:21', x'4ee6f15d4cb5441092dcb55801149fe6', NULL, NULL, NULL, '2012-12-31 12:46:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:21', `updated_at` = '2012-12-31 12:46:21', `subdomain` = 'account4ee6f15d-4cb5-4410-92dc-b55801149fe6' WHERE `accounts`.`id` = x'4ee6f15d4cb5441092dcb55801149fe6' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4ee6f15d4cb5441092dcb55801149fe6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4ee6f15d4cb5441092dcb55801149fe6', x'631104dc9a5a424b960233b58f6a664a', x'664a0843a10a45d3b0ca55686eb280c5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'631104dc9a5a424b960233b58f6a664a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'631104dc9a5a424b960233b58f6a664a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'631104dc9a5a424b960233b58f6a664a', x'eca467d60a41448aa51a1de4554a792b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'631104dc9a5a424b960233b58f6a664a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'631104dc9a5a424b960233b58f6a664a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'631104dc9a5a424b960233b58f6a664a', x'5592913d78234de4a67c250c5bec1873', 'admin') Sent mail to xpto@account.test (6ms) Date: Mon, 31 Dec 2012 10:46:21 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891dedb7c_f6180435d48346ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:21', x'6f8b0642cc9c491081f921bfcd6d9082', 'jabanilson', NULL, 1, '2012-12-31 12:46:21')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:21', `updated_at` = '2012-12-31 12:46:21', `subdomain` = 'account6f8b0642-cc9c-4910-81f9-21bfcd6d9082' WHERE `accounts`.`id` = x'6f8b0642cc9c491081f921bfcd6d9082'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6f8b0642cc9c491081f921bfcd6d9082', x'ecfaafb64134486cae218e6ae69c41d3', x'664a0843a10a45d3b0ca55686eb280c5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ecfaafb64134486cae218e6ae69c41d3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecfaafb64134486cae218e6ae69c41d3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ecfaafb64134486cae218e6ae69c41d3', x'4d288b43ca4040e5b2b3b0818e7ce249', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ecfaafb64134486cae218e6ae69c41d3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecfaafb64134486cae218e6ae69c41d3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ecfaafb64134486cae218e6ae69c41d3', x'272983aa9e9f4a9dba6c5d3b5647bb61', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'e9d7ff4180544657b002eea6b15a22b8' WHERE `account_users`.`id` = x'ecfaafb64134486cae218e6ae69c41d3'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecfaafb64134486cae218e6ae69c41d3'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'272983aa9e9f4a9dba6c5d3b5647bb61' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecfaafb64134486cae218e6ae69c41d3' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4d288b43ca4040e5b2b3b0818e7ce249'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'ecfaafb64134486cae218e6ae69c41d3') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecfaafb64134486cae218e6ae69c41d3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ecfaafb64134486cae218e6ae69c41d3', x'c52d4b5654b74b10871b0ad5a1a38c3c', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/e9d7ff41-8054-4657-b002-eea6b15a22b8/users" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"e9d7ff41-8054-4657-b002-eea6b15a22b8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e9d7ff41-8054-4657-b002-eea6b15a22b8_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' AND `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_d16a3bf4-f95a-43ff-ba38-fb360858189a_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'664a0843a10a45d3b0ca55686eb280c5' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' AND `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ecfaafb6-4134-486c-ae21-8e6ae69c41d3_destroy' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecfaafb64134486cae218e6ae69c41d3' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' AND `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 19.5ms | ActiveRecord: 2.8ms) Started DELETE "/settings/account/e9d7ff41-8054-4657-b002-eea6b15a22b8/user/664a0843-a10a-45d3-b0ca-55686eb280c5" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"e9d7ff41-8054-4657-b002-eea6b15a22b8", "user_id"=>"664a0843-a10a-45d3-b0ca-55686eb280c5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e9d7ff41-8054-4657-b002-eea6b15a22b8_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' AND `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' AND `account_users`.`user_id` = x'664a0843a10a45d3b0ca55686eb280c5' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'664a0843a10a45d3b0ca55686eb280c5' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecfaafb64134486cae218e6ae69c41d3' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:22', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: ecfaafb6-4134-486c-ae21-8e6ae69c41d3\n', NULL, NULL, NULL, 0, 'account_user_ecfaafb6-4134-486c-ae21-8e6ae69c41d3_destroy', '2012-12-31 12:46:22', '2012-12-31 12:46:22')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ecfaafb6-4134-486c-ae21-8e6ae69c41d3_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/e9d7ff41-8054-4657-b002-eea6b15a22b8/users Completed 302 Found in 22ms (ActiveRecord: 3.3ms) Started GET "/settings/account/e9d7ff41-8054-4657-b002-eea6b15a22b8/users" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"e9d7ff41-8054-4657-b002-eea6b15a22b8"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e9d7ff41-8054-4657-b002-eea6b15a22b8_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9d7ff4180544657b002eea6b15a22b8' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' AND `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_d16a3bf4-f95a-43ff-ba38-fb360858189a_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'664a0843a10a45d3b0ca55686eb280c5' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' AND `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ecfaafb6-4134-486c-ae21-8e6ae69c41d3_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e9d7ff4180544657b002eea6b15a22b8' AND `account_users`.`user_id` = x'2c4dd2a7b0df4f57835b3e0820056376' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd16a3bf4f95a43ffba38fb360858189a' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.8ms | ActiveRecord: 3.2ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:22', 'teste@teste.com', '$2a$04$T7/LgC52MiAau1VVqOSQEOgJjoFy9rlYB3HtwugLRGj1KieSxoJ0S', NULL, x'43d40ff957f74992be41269066ffc01d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'43d40ff957f74992be41269066ffc01d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:22', 'User', x'2cfd6b87d5b64651b1190df9e4d4112b', '00efa365e8ab3d708e49462de8694db5', x'43d40ff957f74992be41269066ffc01d', 'User', '2012-12-31 12:46:22') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'43d40ff957f74992be41269066ffc01d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:22', x'882a57fe21194818bceb03f0303595f0', NULL, NULL, NULL, '2012-12-31 12:46:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:22', `updated_at` = '2012-12-31 12:46:22', `subdomain` = 'account882a57fe-2119-4818-bceb-03f0303595f0' WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'882a57fe21194818bceb03f0303595f0', x'429fb634f5e640ad97f5cbc97f0fb899', x'43d40ff957f74992be41269066ffc01d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'429fb634f5e640ad97f5cbc97f0fb899' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'429fb634f5e640ad97f5cbc97f0fb899', x'328be49724774161af80d122be6976e4', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'429fb634f5e640ad97f5cbc97f0fb899' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'429fb634f5e640ad97f5cbc97f0fb899', x'e568170397324c00a819f88c06608691', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891e21f1e_f6180435d483473e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by DashboardController#index as HTML User Load (123.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 Completed 200 OK in 128ms (Views: 2.6ms | ActiveRecord: 123.4ms)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:22', 'xpto@account.test', '$2a$04$c8/to83ePV5eZlBpc5EeXOAZFWVBY9ZvIphZpWdf5IzXrF796Bsze', NULL, x'214b849bd37b471bb14655fa507ea36c', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'214b849bd37b471bb14655fa507ea36c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:22', 'User', x'55cfcb450fae40ed9cfd22aeb50389ac', '4e1dac1ebb5e1f0afac2dc6129ca494d', x'214b849bd37b471bb14655fa507ea36c', 'User', '2012-12-31 12:46:22') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'214b849bd37b471bb14655fa507ea36c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:22', x'ae520adb7ef54d46ac1e9f495cbc43b1', NULL, NULL, NULL, '2012-12-31 12:46:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:22', `updated_at` = '2012-12-31 12:46:22', `subdomain` = 'accountae520adb-7ef5-4d46-ac1e-9f495cbc43b1' WHERE `accounts`.`id` = x'ae520adb7ef54d46ac1e9f495cbc43b1' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ae520adb7ef54d46ac1e9f495cbc43b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ae520adb7ef54d46ac1e9f495cbc43b1', x'8538d611f8ba4658a99d6f4983b7aafe', x'214b849bd37b471bb14655fa507ea36c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8538d611f8ba4658a99d6f4983b7aafe') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8538d611f8ba4658a99d6f4983b7aafe' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8538d611f8ba4658a99d6f4983b7aafe', x'470d8f00045a489fa665d971b8fe433f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8538d611f8ba4658a99d6f4983b7aafe') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8538d611f8ba4658a99d6f4983b7aafe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8538d611f8ba4658a99d6f4983b7aafe', x'8461b3f4c80747b68859e3e10c258365', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:22 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891e55b81_f6180435d48348b4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:22', x'22276120937c48a2bfaf1fa9a525ccc1', 'jabanilson', NULL, 1, '2012-12-31 12:46:22')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:22', `updated_at` = '2012-12-31 12:46:22', `subdomain` = 'account22276120-937c-48a2-bfaf-1fa9a525ccc1' WHERE `accounts`.`id` = x'22276120937c48a2bfaf1fa9a525ccc1'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'22276120937c48a2bfaf1fa9a525ccc1', x'41fff24bef04475294e3a195e41f97a6', x'214b849bd37b471bb14655fa507ea36c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'41fff24bef04475294e3a195e41f97a6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41fff24bef04475294e3a195e41f97a6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41fff24bef04475294e3a195e41f97a6', x'ace41665dd594642bacd89452047e4c9', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'41fff24bef04475294e3a195e41f97a6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41fff24bef04475294e3a195e41f97a6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41fff24bef04475294e3a195e41f97a6', x'28dccb929e28473f9e8f806bd0a05794', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'882a57fe21194818bceb03f0303595f0' WHERE `account_users`.`id` = x'41fff24bef04475294e3a195e41f97a6'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'41fff24bef04475294e3a195e41f97a6'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'28dccb929e28473f9e8f806bd0a05794' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41fff24bef04475294e3a195e41f97a6' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ˆ*Wþ!H¼ëð05•ð' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ace41665dd594642bacd89452047e4c9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'41fff24bef04475294e3a195e41f97a6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'41fff24bef04475294e3a195e41f97a6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'41fff24bef04475294e3a195e41f97a6', x'a56bf21c9db942d7984d713fa5b1d507', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/882a57fe-2119-4818-bceb-03f0303595f0/users" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"882a57fe-2119-4818-bceb-03f0303595f0"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_882a57fe-2119-4818-bceb-03f0303595f0_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'214b849bd37b471bb14655fa507ea36c' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' AND `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_41fff24b-ef04-4752-94e3-a195e41f97a6_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'41fff24bef04475294e3a195e41f97a6' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' AND `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_429fb634-f5e6-40ad-97f5-cbc97f0fb899_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' AND `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 27ms (Views: 19.6ms | ActiveRecord: 3.5ms) Started DELETE "/settings/account/882a57fe-2119-4818-bceb-03f0303595f0/user/214b849b-d37b-471b-b146-55fa507ea36c" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"882a57fe-2119-4818-bceb-03f0303595f0", "user_id"=>"214b849b-d37b-471b-b146-55fa507ea36c"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_882a57fe-2119-4818-bceb-03f0303595f0_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' AND `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' AND `account_users`.`user_id` = x'214b849bd37b471bb14655fa507ea36c' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'214b849bd37b471bb14655fa507ea36c' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'41fff24bef04475294e3a195e41f97a6' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:22', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 41fff24b-ef04-4752-94e3-a195e41f97a6\n', NULL, NULL, NULL, 0, 'account_user_41fff24b-ef04-4752-94e3-a195e41f97a6_destroy', '2013-01-01 12:46:22', '2012-12-31 12:46:22')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_41fff24b-ef04-4752-94e3-a195e41f97a6_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/882a57fe-2119-4818-bceb-03f0303595f0/users Completed 302 Found in 22ms (ActiveRecord: 4.1ms) Started GET "/settings/account/882a57fe-2119-4818-bceb-03f0303595f0/users" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"882a57fe-2119-4818-bceb-03f0303595f0"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_882a57fe-2119-4818-bceb-03f0303595f0_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'882a57fe21194818bceb03f0303595f0' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'214b849bd37b471bb14655fa507ea36c' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' AND `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_41fff24b-ef04-4752-94e3-a195e41f97a6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' AND `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_429fb634-f5e6-40ad-97f5-cbc97f0fb899_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'882a57fe21194818bceb03f0303595f0' AND `account_users`.`user_id` = x'43d40ff957f74992be41269066ffc01d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'429fb634f5e640ad97f5cbc97f0fb899' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 25ms (Views: 18.2ms | ActiveRecord: 2.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:22', 'teste@teste.com', '$2a$04$RzH4YI/Bj1kid9wXIhRUFugvDnjk/jlB.CK.ZbDYks8n5JYu9eufK', NULL, x'00cdf60e8a534d02ba343ecb24c13134', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'00cdf60e8a534d02ba343ecb24c13134' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:22', 'User', x'50dd0f541aea4a5881915cff1be3d628', 'e24b6aaf662cae183ebc3cf45bd159aa', x'00cdf60e8a534d02ba343ecb24c13134', 'User', '2012-12-31 12:46:22') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'00cdf60e8a534d02ba343ecb24c13134' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:22', x'ecbb5b8fe64a48dcbe49ff26514f4f7c', NULL, NULL, NULL, '2012-12-31 12:46:22')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:22', `updated_at` = '2012-12-31 12:46:22', `subdomain` = 'accountecbb5b8f-e64a-48dc-be49-ff26514f4f7c' WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ecbb5b8fe64a48dcbe49ff26514f4f7c', x'1584a583703c43658c8eea9e6c77b0b9', x'00cdf60e8a534d02ba343ecb24c13134') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1584a583703c43658c8eea9e6c77b0b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1584a583703c43658c8eea9e6c77b0b9', x'6274f78e851349e2bfa0bd1024194d6a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1584a583703c43658c8eea9e6c77b0b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1584a583703c43658c8eea9e6c77b0b9', x'f813947e9179418cb9050463a84162aa', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:22 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e1891e7df13_f6180435d4834910@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.4ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:22', 'xpto@account.test', '$2a$04$cZaEgiAU3lpMz3VfeZkjvewdZXskjOH1PIJINnB96XqmLrPxSC6Vm', NULL, x'd0489a6774324edeb51ffc6b2a5edfa0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd0489a6774324edeb51ffc6b2a5edfa0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:22', 'User', x'2adfae7b6cd34b47a5c67f9158f13361', 'd8930d8ab555123d2e685f10e24c91fc', x'd0489a6774324edeb51ffc6b2a5edfa0', 'User', '2012-12-31 12:46:22') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd0489a6774324edeb51ffc6b2a5edfa0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:22', x'f6f8061ba1c646aaa322e402d27c4a25', NULL, NULL, NULL, '2012-12-31 12:46:22')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:22', `updated_at` = '2012-12-31 12:46:22', `subdomain` = 'accountf6f8061b-a1c6-46aa-a322-e402d27c4a25' WHERE `accounts`.`id` = x'f6f8061ba1c646aaa322e402d27c4a25' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f6f8061ba1c646aaa322e402d27c4a25' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f6f8061ba1c646aaa322e402d27c4a25', x'3504e9d81e824ca9860ecd3c8cefadf9', x'd0489a6774324edeb51ffc6b2a5edfa0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3504e9d81e824ca9860ecd3c8cefadf9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3504e9d81e824ca9860ecd3c8cefadf9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3504e9d81e824ca9860ecd3c8cefadf9', x'32cf127bae29475aa5c6fc572222d634', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3504e9d81e824ca9860ecd3c8cefadf9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3504e9d81e824ca9860ecd3c8cefadf9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3504e9d81e824ca9860ecd3c8cefadf9', x'5005e3332da549faab9badee61527aeb', 'admin') Sent mail to xpto@account.test (7ms) Date: Mon, 31 Dec 2012 10:46:22 -0200 From: Iugu Reply-To: Iugu To: xpto@account.test Message-ID: <50e1891eb29dc_f6180435d4835054@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:22', x'688c601c0fb345d0aa42f1f7b49bbdb3', 'jabanilson', NULL, 1, '2012-12-31 12:46:22')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:22', `updated_at` = '2012-12-31 12:46:22', `subdomain` = 'account688c601c-0fb3-45d0-aa42-f1f7b49bbdb3' WHERE `accounts`.`id` = x'688c601c0fb345d0aa42f1f7b49bbdb3'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'688c601c0fb345d0aa42f1f7b49bbdb3', x'3d17479de1524dbfa0f4a8372af34043', x'd0489a6774324edeb51ffc6b2a5edfa0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3d17479de1524dbfa0f4a8372af34043') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d17479de1524dbfa0f4a8372af34043' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d17479de1524dbfa0f4a8372af34043', x'f5d4e160503243c29d4fefa50c6b23c5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3d17479de1524dbfa0f4a8372af34043') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d17479de1524dbfa0f4a8372af34043' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d17479de1524dbfa0f4a8372af34043', x'e2d4c6f3f78c4ba19b6bf40765040000', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' WHERE `account_users`.`id` = x'3d17479de1524dbfa0f4a8372af34043'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3d17479de1524dbfa0f4a8372af34043'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e2d4c6f3f78c4ba19b6bf40765040000' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d17479de1524dbfa0f4a8372af34043' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ì»[æJHܾIÿ&QOO|' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f5d4e160503243c29d4fefa50c6b23c5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'3d17479de1524dbfa0f4a8372af34043') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d17479de1524dbfa0f4a8372af34043' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d17479de1524dbfa0f4a8372af34043', x'5d54a5682d40410ea94be8ffae09fdf5', 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/ecbb5b8f-e64a-48dc-be49-ff26514f4f7c/users" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"ecbb5b8f-e64a-48dc-be49-ff26514f4f7c"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ecbb5b8f-e64a-48dc-be49-ff26514f4f7c_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' AND `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_1584a583-703c-4365-8c8e-ea9e6c77b0b9_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd0489a6774324edeb51ffc6b2a5edfa0' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' AND `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_3d17479d-e152-4dbf-a0f4-a8372af34043_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3d17479de1524dbfa0f4a8372af34043' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' AND `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 19.2ms | ActiveRecord: 3.1ms) Started DELETE "/settings/account/ecbb5b8f-e64a-48dc-be49-ff26514f4f7c/user/d0489a67-7432-4ede-b51f-fc6b2a5edfa0" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"ecbb5b8f-e64a-48dc-be49-ff26514f4f7c", "user_id"=>"d0489a67-7432-4ede-b51f-fc6b2a5edfa0"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ecbb5b8f-e64a-48dc-be49-ff26514f4f7c_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' AND `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' AND `account_users`.`user_id` = x'd0489a6774324edeb51ffc6b2a5edfa0' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd0489a6774324edeb51ffc6b2a5edfa0' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3d17479de1524dbfa0f4a8372af34043' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:22', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 3d17479d-e152-4dbf-a0f4-a8372af34043\n', NULL, NULL, NULL, 0, 'account_user_3d17479d-e152-4dbf-a0f4-a8372af34043_destroy', '2013-01-01 12:46:22', '2012-12-31 12:46:22')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_3d17479d-e152-4dbf-a0f4-a8372af34043_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/ecbb5b8f-e64a-48dc-be49-ff26514f4f7c/users Completed 302 Found in 22ms (ActiveRecord: 3.5ms) Started GET "/settings/account/ecbb5b8f-e64a-48dc-be49-ff26514f4f7c/users" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"ecbb5b8f-e64a-48dc-be49-ff26514f4f7c"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ecbb5b8f-e64a-48dc-be49-ff26514f4f7c_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' AND `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_1584a583-703c-4365-8c8e-ea9e6c77b0b9_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd0489a6774324edeb51ffc6b2a5edfa0' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' AND `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_3d17479d-e152-4dbf-a0f4-a8372af34043_destroy' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ecbb5b8fe64a48dcbe49ff26514f4f7c' AND `account_users`.`user_id` = x'00cdf60e8a534d02ba343ecb24c13134' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1584a583703c43658c8eea9e6c77b0b9' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 25ms (Views: 18.6ms | ActiveRecord: 2.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/orkut" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::OmniauthCallbacksController#passthru as HTML Parameters: {"provider"=>"orkut"} Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:22', '2012-12-31 12:46:22', 'facebook@test.test', '', NULL, x'7568122fa99b4e45b8f13e4c81643d92', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:22') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7568122fa99b4e45b8f13e4c81643d92' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:22', 'User', x'e4e2af554c5a46c7b854017339cedbff', '3e29fac6c750febdfb393d7261b75eb2', x'7568122fa99b4e45b8f13e4c81643d92', 'User', '2012-12-31 12:46:22') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7568122fa99b4e45b8f13e4c81643d92' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:22', x'a5d6a8ca42a24f70b684190cf52f0de6', NULL, NULL, NULL, '2012-12-31 12:46:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:22', `updated_at` = '2012-12-31 12:46:22', `subdomain` = 'accounta5d6a8ca-42a2-4f70-b684-190cf52f0de6' WHERE `accounts`.`id` = x'a5d6a8ca42a24f70b684190cf52f0de6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a5d6a8ca42a24f70b684190cf52f0de6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a5d6a8ca42a24f70b684190cf52f0de6', x'83c76f7cfafe435e8aaf13bd46b73efb', x'7568122fa99b4e45b8f13e4c81643d92') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'83c76f7cfafe435e8aaf13bd46b73efb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83c76f7cfafe435e8aaf13bd46b73efb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83c76f7cfafe435e8aaf13bd46b73efb', x'60245c4ba5bf4bdcbea8619c2f942277', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'83c76f7cfafe435e8aaf13bd46b73efb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'83c76f7cfafe435e8aaf13bd46b73efb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'83c76f7cfafe435e8aaf13bd46b73efb', x'5934c5d96fd14ef3ba0c4fce6875bc38', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:22 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1891ee0a59_f6180435d4835198@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'4cdd9ccba68b45819338a39e5c6df2ab', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'7568122fa99b4e45b8f13e4c81643d92')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7568122fa99b4e45b8f13e4c81643d92' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7568122fa99b4e45b8f13e4c81643d92' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 61ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7568122fa99b4e45b8f13e4c81643d92' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7568122fa99b4e45b8f13e4c81643d92' LIMIT 1 Completed 404 Not Found in 2ms  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:23', '2012-12-31 12:46:23', 'facebook@test.test', '', NULL, x'09223b08c1e9437092771ceda6ccfe68', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'09223b08c1e9437092771ceda6ccfe68' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:23', 'User', x'2219235ecc1644cb9d16dedd680db65e', 'c6da21e5802e86d3feaa01dc3736058a', x'09223b08c1e9437092771ceda6ccfe68', 'User', '2012-12-31 12:46:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'09223b08c1e9437092771ceda6ccfe68' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:23', x'38d2d70f1db54d17b60595ed0fbc8dc2', NULL, NULL, NULL, '2012-12-31 12:46:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:23', `updated_at` = '2012-12-31 12:46:23', `subdomain` = 'account38d2d70f-1db5-4d17-b605-95ed0fbc8dc2' WHERE `accounts`.`id` = x'38d2d70f1db54d17b60595ed0fbc8dc2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'38d2d70f1db54d17b60595ed0fbc8dc2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'38d2d70f1db54d17b60595ed0fbc8dc2', x'c29feffef3e3432b9353c32ac69c2e36', x'09223b08c1e9437092771ceda6ccfe68') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c29feffef3e3432b9353c32ac69c2e36') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c29feffef3e3432b9353c32ac69c2e36' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c29feffef3e3432b9353c32ac69c2e36', x'93548c8ad4df4a51810ed6ea1ffc9b80', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c29feffef3e3432b9353c32ac69c2e36') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c29feffef3e3432b9353c32ac69c2e36' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c29feffef3e3432b9353c32ac69c2e36', x'287b02d6130640e7b90baa3b7049fd2e', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1891f1eb64_f6180435d48352d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'e106e10c32644aa0b0d58a32ae4d73b4', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'09223b08c1e9437092771ceda6ccfe68')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'09223b08c1e9437092771ceda6ccfe68' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'09223b08c1e9437092771ceda6ccfe68' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 61ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'09223b08c1e9437092771ceda6ccfe68' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.5ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:23', 'test@test.test', '$2a$04$M5fkGvaWmtS45L.4J.wzVu2dywI2Uyo72svkULh/Ryh4mEHtaGjGG', NULL, x'd1391293ba354208802dc3623b441846', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:23') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd1391293ba354208802dc3623b441846' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:23', 'User', x'c029ecf0097044d0b1cd90341dde2775', '33e94a4fdf4378ae56e253b7bbc95b88', x'd1391293ba354208802dc3623b441846', 'User', '2012-12-31 12:46:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd1391293ba354208802dc3623b441846' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:23', x'78fc7f1f3d564bb995ff19cb0b259d62', NULL, NULL, NULL, '2012-12-31 12:46:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:23', `updated_at` = '2012-12-31 12:46:23', `subdomain` = 'account78fc7f1f-3d56-4bb9-95ff-19cb0b259d62' WHERE `accounts`.`id` = x'78fc7f1f3d564bb995ff19cb0b259d62' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'78fc7f1f3d564bb995ff19cb0b259d62' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'78fc7f1f3d564bb995ff19cb0b259d62', x'c7b96a43dc6d4aeaa54c1d3120320ca0', x'd1391293ba354208802dc3623b441846') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c7b96a43dc6d4aeaa54c1d3120320ca0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c7b96a43dc6d4aeaa54c1d3120320ca0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c7b96a43dc6d4aeaa54c1d3120320ca0', x'8ef661778d5d413d8d128c6b0e934daa', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c7b96a43dc6d4aeaa54c1d3120320ca0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c7b96a43dc6d4aeaa54c1d3120320ca0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c7b96a43dc6d4aeaa54c1d3120320ca0', x'82e4aafa3e6b484b8228bd957a0a9dfa', 'admin') Sent mail to test@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:23 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e1891f33abd_f6180435d4835330@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd1391293ba354208802dc3623b441846' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd1391293ba354208802dc3623b441846' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd1391293ba354208802dc3623b441846' LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd1391293ba354208802dc3623b441846' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd1391293ba354208802dc3623b441846' AND (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'f5e7c13108f9457fb48e385a32f41091', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'd1391293ba354208802dc3623b441846')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.3ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd1391293ba354208802dc3623b441846' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd1391293ba354208802dc3623b441846' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd1391293ba354208802dc3623b441846' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_d1391293-ba35-4208-802d-c3623b441846_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd1391293ba354208802dc3623b441846' SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd1391293ba354208802dc3623b441846' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'd1391293ba354208802dc3623b441846' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 167ms (Views: 162.9ms | ActiveRecord: 1.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'facebook@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:23', 'facebook@test.test', '$2a$04$UCcMAFitptBVSS9b2ajUWuITMpiGlXsTcYdkSYzfTrgLuMtKCtSqy', NULL, x'84d6d68b2dd549b0a483c1f366d640d4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:23') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'84d6d68b2dd549b0a483c1f366d640d4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:23', 'User', x'8efb9060d8264cb0b016cb993326aa1f', '04ca7cbd748e23420446a0fa7577ae8a', x'84d6d68b2dd549b0a483c1f366d640d4', 'User', '2012-12-31 12:46:23') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'84d6d68b2dd549b0a483c1f366d640d4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:23', x'1f842b1651ab4a94b213819df45f2598', NULL, NULL, NULL, '2012-12-31 12:46:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:23', `updated_at` = '2012-12-31 12:46:23', `subdomain` = 'account1f842b16-51ab-4a94-b213-819df45f2598' WHERE `accounts`.`id` = x'1f842b1651ab4a94b213819df45f2598' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1f842b1651ab4a94b213819df45f2598' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1f842b1651ab4a94b213819df45f2598', x'84539dcf62d34c0b9961263831856fb2', x'84d6d68b2dd549b0a483c1f366d640d4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'84539dcf62d34c0b9961263831856fb2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84539dcf62d34c0b9961263831856fb2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84539dcf62d34c0b9961263831856fb2', x'35e93765dc0d4a5496d54548b1556c3d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'84539dcf62d34c0b9961263831856fb2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84539dcf62d34c0b9961263831856fb2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84539dcf62d34c0b9961263831856fb2', x'ba74996c3ad647d28b75c5bc2a469fbc', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1891f75ca7_f6180435d48354ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test' Redirected to http://iugusdk.dev/ Completed 302 Found in 4ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:23', '2012-12-31 12:46:23', '', '', NULL, x'f1d89ef9048a43e7b059c83ac97f5c48', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:23') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f1d89ef9048a43e7b059c83ac97f5c48' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:23', 'User', x'2f2bb23350b34013bdcb82da609e7198', '2ceb7447fadc9cdb5a757036981fbb23', x'f1d89ef9048a43e7b059c83ac97f5c48', 'User', '2012-12-31 12:46:23') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f1d89ef9048a43e7b059c83ac97f5c48' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:23', x'62af3804ba6a437eb48b2624cdf7a847', NULL, NULL, NULL, '2012-12-31 12:46:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:23', `updated_at` = '2012-12-31 12:46:23', `subdomain` = 'account62af3804-ba6a-437e-b48b-2624cdf7a847' WHERE `accounts`.`id` = x'62af3804ba6a437eb48b2624cdf7a847' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'62af3804ba6a437eb48b2624cdf7a847' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'62af3804ba6a437eb48b2624cdf7a847', x'c0c3a99b3a34447c9253091b32b3d9ba', x'f1d89ef9048a43e7b059c83ac97f5c48') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c0c3a99b3a34447c9253091b32b3d9ba') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0c3a99b3a34447c9253091b32b3d9ba' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0c3a99b3a34447c9253091b32b3d9ba', x'2b74af0d84bd4bafa4946d80cdbed80c', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c0c3a99b3a34447c9253091b32b3d9ba') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0c3a99b3a34447c9253091b32b3d9ba' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0c3a99b3a34447c9253091b32b3d9ba', x'f7cc608f3002483592930bf99b931147', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'21a6faceaaa44fb2917c7f7a48e032e5', 'twitter', NULL, '1234', 'newtoken', x'f1d89ef9048a43e7b059c83ac97f5c48')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1d89ef9048a43e7b059c83ac97f5c48' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f1d89ef9048a43e7b059c83ac97f5c48' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 39ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f1d89ef9048a43e7b059c83ac97f5c48' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.5ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.6ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:23', 'test@test.test', '$2a$04$3bfGWo2.PmBUYUjDP1B0ruveKz6neeV59fzydC03lWr7RumOzVHqG', NULL, x'9573fd5dfe274518857bb60507b7cf08', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:23') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9573fd5dfe274518857bb60507b7cf08' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:23', 'User', x'c60191e8e1f54c01a266460ccab7a805', '7b9ab16d5a35aeb737b3d0a928250b00', x'9573fd5dfe274518857bb60507b7cf08', 'User', '2012-12-31 12:46:23') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9573fd5dfe274518857bb60507b7cf08' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:23', x'c775d3b305eb41f996abdc39682de865', NULL, NULL, NULL, '2012-12-31 12:46:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:23', `updated_at` = '2012-12-31 12:46:23', `subdomain` = 'accountc775d3b3-05eb-41f9-96ab-dc39682de865' WHERE `accounts`.`id` = x'c775d3b305eb41f996abdc39682de865' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c775d3b305eb41f996abdc39682de865' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c775d3b305eb41f996abdc39682de865', x'fe6779e77125419aa98c4e0cfb90be0d', x'9573fd5dfe274518857bb60507b7cf08') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fe6779e77125419aa98c4e0cfb90be0d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe6779e77125419aa98c4e0cfb90be0d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe6779e77125419aa98c4e0cfb90be0d', x'3b38271206f9487e951ce92addc85551', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fe6779e77125419aa98c4e0cfb90be0d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe6779e77125419aa98c4e0cfb90be0d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe6779e77125419aa98c4e0cfb90be0d', x'92fd6b019ded49d3a0f29b96225ae4bc', 'admin') Sent mail to test@test.test (6ms) Date: Mon, 31 Dec 2012 10:46:23 -0200 From: Iugu Reply-To: Iugu To: test@test.test Message-ID: <50e1891fb5b28_f6180435d4835530@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9573fd5dfe274518857bb60507b7cf08' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9573fd5dfe274518857bb60507b7cf08' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9573fd5dfe274518857bb60507b7cf08' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/account/auth/twitter" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9573fd5dfe274518857bb60507b7cf08' LIMIT 1 SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'9573fd5dfe274518857bb60507b7cf08' AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ab8779baae554d2e82c84a53b7b34329', 'twitter', NULL, '1234', 'newtoken', x'9573fd5dfe274518857bb60507b7cf08')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9573fd5dfe274518857bb60507b7cf08' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9573fd5dfe274518857bb60507b7cf08' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9573fd5dfe274518857bb60507b7cf08' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_9573fd5d-fe27-4518-857b-b60507b7cf08_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'9573fd5dfe274518857bb60507b7cf08' SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'9573fd5dfe274518857bb60507b7cf08' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'9573fd5dfe274518857bb60507b7cf08' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 2.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:23', '2012-12-31 12:46:23', 'facebook@test.test', '', NULL, x'545f6ef98a594e78be471b2930350adb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:23') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'545f6ef98a594e78be471b2930350adb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:23', 'User', x'10f050bc228b4c8a940163ffe2e40731', 'd85eb9794a8f24cb32a7e75d62b12374', x'545f6ef98a594e78be471b2930350adb', 'User', '2012-12-31 12:46:23') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'545f6ef98a594e78be471b2930350adb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:23', x'2e4cef89b36a4c5698f2c29b5b2cf378', NULL, NULL, NULL, '2012-12-31 12:46:23')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:23', `updated_at` = '2012-12-31 12:46:23', `subdomain` = 'account2e4cef89-b36a-4c56-98f2-c29b5b2cf378' WHERE `accounts`.`id` = x'2e4cef89b36a4c5698f2c29b5b2cf378' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2e4cef89b36a4c5698f2c29b5b2cf378' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2e4cef89b36a4c5698f2c29b5b2cf378', x'74747df266a347d3854dccadd9c144e7', x'545f6ef98a594e78be471b2930350adb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'74747df266a347d3854dccadd9c144e7') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74747df266a347d3854dccadd9c144e7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74747df266a347d3854dccadd9c144e7', x'02bb9a90dc4f40a0aa315528a30c652a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'74747df266a347d3854dccadd9c144e7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74747df266a347d3854dccadd9c144e7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74747df266a347d3854dccadd9c144e7', x'0c7cf8ed3dd94a83856f9b53fb527f48', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:23 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1891ff34bd_f6180435d483562@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'3d97e3a36619422898e5af5fe5e71974', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'545f6ef98a594e78be471b2930350adb')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'545f6ef98a594e78be471b2930350adb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'545f6ef98a594e78be471b2930350adb' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 178ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'545f6ef98a594e78be471b2930350adb' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'545f6ef98a594e78be471b2930350adb'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'545f6ef98a594e78be471b2930350adb' AND `account_users`.`account_id` = x'2e4cef89b36a4c5698f2c29b5b2cf378' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:24', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 74747df2-66a3-47d3-854d-ccadd9c144e7\n', NULL, NULL, NULL, 0, 'account_user_74747df2-66a3-47d3-854d-ccadd9c144e7_destroy', '2013-01-01 12:46:24', '2012-12-31 12:46:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'0afce16dc3af42dba236ece71ea00fa0', 'jabanilson', NULL, 1, '2012-12-31 12:46:24')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account0afce16d-c3af-42db-a236-ece71ea00fa0' WHERE `accounts`.`id` = x'0afce16dc3af42dba236ece71ea00fa0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'545f6ef98a594e78be471b2930350adb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0afce16dc3af42dba236ece71ea00fa0', x'c427d20238244f9290303f77e1dfc2a9', x'545f6ef98a594e78be471b2930350adb') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c427d20238244f9290303f77e1dfc2a9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c427d20238244f9290303f77e1dfc2a9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c427d20238244f9290303f77e1dfc2a9', x'c56393f59ecd43748fca3bd817f08b04', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c427d20238244f9290303f77e1dfc2a9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c427d20238244f9290303f77e1dfc2a9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c427d20238244f9290303f77e1dfc2a9', x'df7941bca6834d8694d47fae4d0eca13', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'545f6ef98a594e78be471b2930350adb' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'545f6ef98a594e78be471b2930350adb' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'545f6ef98a594e78be471b2930350adb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_545f6ef9-8a59-4e78-be47-1b2930350adb_destroy' LIMIT 1 SocialAccount Load (0.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'545f6ef98a594e78be471b2930350adb' SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'545f6ef98a594e78be471b2930350adb' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'545f6ef98a594e78be471b2930350adb' AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'545f6ef98a594e78be471b2930350adb' Completed 200 OK in 24ms (Views: 20.6ms | ActiveRecord: 2.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:24', '2012-12-31 12:46:24', 'facebook@test.test', '', NULL, x'cdb9b698b4274c499c101c844a2c5d5b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cdb9b698b4274c499c101c844a2c5d5b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:24', 'User', x'c0214311625a4006b735e1defad6e142', 'f3d2fb926b1b5075733f064ab7072e9c', x'cdb9b698b4274c499c101c844a2c5d5b', 'User', '2012-12-31 12:46:24') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cdb9b698b4274c499c101c844a2c5d5b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'f7f71bcef359425ba23ebad29d684dd5', NULL, NULL, NULL, '2012-12-31 12:46:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'accountf7f71bce-f359-425b-a23e-bad29d684dd5' WHERE `accounts`.`id` = x'f7f71bcef359425ba23ebad29d684dd5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f7f71bcef359425ba23ebad29d684dd5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f7f71bcef359425ba23ebad29d684dd5', x'559f005928204237b4194fdec936a0b7', x'cdb9b698b4274c499c101c844a2c5d5b') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'559f005928204237b4194fdec936a0b7') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'559f005928204237b4194fdec936a0b7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'559f005928204237b4194fdec936a0b7', x'1b079320f392460ca8d3529dde674356', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'559f005928204237b4194fdec936a0b7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'559f005928204237b4194fdec936a0b7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'559f005928204237b4194fdec936a0b7', x'ec0cc61a9995406aab73a2817ea75592', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18920209f2_f6180435d483574a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'9b2022dfae9f44158b93c778eed6749c', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'cdb9b698b4274c499c101c844a2c5d5b')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cdb9b698b4274c499c101c844a2c5d5b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cdb9b698b4274c499c101c844a2c5d5b' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cdb9b698b4274c499c101c844a2c5d5b' LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cdb9b698b4274c499c101c844a2c5d5b'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cdb9b698b4274c499c101c844a2c5d5b' AND `account_users`.`account_id` = x'f7f71bcef359425ba23ebad29d684dd5' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:24', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 559f0059-2820-4237-b419-4fdec936a0b7\n', NULL, NULL, NULL, 0, 'account_user_559f0059-2820-4237-b419-4fdec936a0b7_destroy', '2013-01-01 12:46:24', '2012-12-31 12:46:24')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'5a8399033bad4428b34ffbef3a6d0e0f', 'jabanilson', NULL, 1, '2012-12-31 12:46:24')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account5a839903-3bad-4428-b34f-fbef3a6d0e0f' WHERE `accounts`.`id` = x'5a8399033bad4428b34ffbef3a6d0e0f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cdb9b698b4274c499c101c844a2c5d5b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5a8399033bad4428b34ffbef3a6d0e0f', x'4df7d2a4e88f423c902eced8c45a9a72', x'cdb9b698b4274c499c101c844a2c5d5b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4df7d2a4e88f423c902eced8c45a9a72') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4df7d2a4e88f423c902eced8c45a9a72' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4df7d2a4e88f423c902eced8c45a9a72', x'248538bac46a42bbbb7c364615bcfbbc', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4df7d2a4e88f423c902eced8c45a9a72') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4df7d2a4e88f423c902eced8c45a9a72' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4df7d2a4e88f423c902eced8c45a9a72', x'3ef8584f03af42abb853c0598aa89af3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'19070b1bf7514783a7fca564d4d8b2ec', 'jabanilson', NULL, 1, '2012-12-31 12:46:24')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account19070b1b-f751-4783-a7fc-a564d4d8b2ec' WHERE `accounts`.`id` = x'19070b1bf7514783a7fca564d4d8b2ec'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cdb9b698b4274c499c101c844a2c5d5b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'19070b1bf7514783a7fca564d4d8b2ec', x'8c373e67c5c940259ab0193e197b8931', x'cdb9b698b4274c499c101c844a2c5d5b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8c373e67c5c940259ab0193e197b8931') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c373e67c5c940259ab0193e197b8931' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8c373e67c5c940259ab0193e197b8931', x'5265599f4e4d47c2bc96690326289236', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8c373e67c5c940259ab0193e197b8931') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8c373e67c5c940259ab0193e197b8931' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8c373e67c5c940259ab0193e197b8931', x'8e4326fcfc4b40809737bfd9c64568ca', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cdb9b698b4274c499c101c844a2c5d5b' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cdb9b698b4274c499c101c844a2c5d5b' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cdb9b698b4274c499c101c844a2c5d5b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_cdb9b698-b427-4c49-9c10-1c844a2c5d5b_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'cdb9b698b4274c499c101c844a2c5d5b' SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'cdb9b698b4274c499c101c844a2c5d5b' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'cdb9b698b4274c499c101c844a2c5d5b' AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cdb9b698b4274c499c101c844a2c5d5b' Completed 200 OK in 150ms (Views: 145.9ms | ActiveRecord: 2.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:24', '2012-12-31 12:46:24', 'facebook@test.test', '', NULL, x'1ef213f7ebae471f92422dc1a7750569', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:24') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1ef213f7ebae471f92422dc1a7750569' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:24', 'User', x'ed3908aff58e47d890c0db0f0dbdb646', '77f684979eec5e2c41efe5ee247b109d', x'1ef213f7ebae471f92422dc1a7750569', 'User', '2012-12-31 12:46:24') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1ef213f7ebae471f92422dc1a7750569' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'7bc5afc0ac8d465bbe400d85be3fef77', NULL, NULL, NULL, '2012-12-31 12:46:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account7bc5afc0-ac8d-465b-be40-0d85be3fef77' WHERE `accounts`.`id` = x'7bc5afc0ac8d465bbe400d85be3fef77' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7bc5afc0ac8d465bbe400d85be3fef77' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7bc5afc0ac8d465bbe400d85be3fef77', x'84e456acdf2744609dd7c484cc577eb0', x'1ef213f7ebae471f92422dc1a7750569') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'84e456acdf2744609dd7c484cc577eb0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84e456acdf2744609dd7c484cc577eb0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84e456acdf2744609dd7c484cc577eb0', x'f92789ca976d43deb039c9e0a2eb55bb', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'84e456acdf2744609dd7c484cc577eb0') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84e456acdf2744609dd7c484cc577eb0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84e456acdf2744609dd7c484cc577eb0', x'26bfbce048a4418b87150a4cc06f229a', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189206392e_f6180435d4835862@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'329b7a6fcc784a84aab325949ae65cb9', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'1ef213f7ebae471f92422dc1a7750569')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1ef213f7ebae471f92422dc1a7750569' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1ef213f7ebae471f92422dc1a7750569' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1ef213f7ebae471f92422dc1a7750569' LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET "/settings" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1ef213f7ebae471f92422dc1a7750569' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1ef213f7ebae471f92422dc1a7750569' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1ef213f7ebae471f92422dc1a7750569' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1ef213f7-ebae-471f-9242-2dc1a7750569_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1ef213f7ebae471f92422dc1a7750569' SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1ef213f7ebae471f92422dc1a7750569' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1ef213f7ebae471f92422dc1a7750569' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 1.7ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:24', '2012-12-31 12:46:24', 'facebook@test.test', '', NULL, x'bedfbc83533d4fc89397521fda29fadb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bedfbc83533d4fc89397521fda29fadb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:24', 'User', x'85be36522a514a2fbd077cfa0e20f81f', '26d2e3a80cad9524128684b6d7505c4c', x'bedfbc83533d4fc89397521fda29fadb', 'User', '2012-12-31 12:46:24') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bedfbc83533d4fc89397521fda29fadb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'38302a5f2e1e4d68b76e0317ea6c1015', NULL, NULL, NULL, '2012-12-31 12:46:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account38302a5f-2e1e-4d68-b76e-0317ea6c1015' WHERE `accounts`.`id` = x'38302a5f2e1e4d68b76e0317ea6c1015' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'38302a5f2e1e4d68b76e0317ea6c1015' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'38302a5f2e1e4d68b76e0317ea6c1015', x'c32f8aefb0ed406d8681b3f3c37a7819', x'bedfbc83533d4fc89397521fda29fadb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c32f8aefb0ed406d8681b3f3c37a7819') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c32f8aefb0ed406d8681b3f3c37a7819' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c32f8aefb0ed406d8681b3f3c37a7819', x'ddbf93de9da44903b04ef6b470fde3dd', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c32f8aefb0ed406d8681b3f3c37a7819') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c32f8aefb0ed406d8681b3f3c37a7819' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c32f8aefb0ed406d8681b3f3c37a7819', x'249cd948495d4d13a4037eebd9b44abe', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189209c09e_f6180435d483592b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'59eb383d66e74d91a9d07e2d9f76f514', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'bedfbc83533d4fc89397521fda29fadb')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bedfbc83533d4fc89397521fda29fadb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bedfbc83533d4fc89397521fda29fadb' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 179ms (ActiveRecord: 6.3ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bedfbc83533d4fc89397521fda29fadb' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:24', 'teste@teste.com', '$2a$04$JOXm0gpNkUzaxAMM.PheROtWeBFje9cQq2ghsVte/eiVTUCWNbQBq', NULL, x'fd98bbc3b8bc47caa55740274b38a03a', 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-12-31 12:46:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fd98bbc3b8bc47caa55740274b38a03a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:24', 'User', x'f73a8d2544684bcd99d9323fa53c61a6', 'd454cdc79df944ef4f2d69dc0bd0362c', x'fd98bbc3b8bc47caa55740274b38a03a', 'User', '2012-12-31 12:46:24') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fd98bbc3b8bc47caa55740274b38a03a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'7cb321a087cc48abb2db696cd0bb04f8', NULL, NULL, NULL, '2012-12-31 12:46:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account7cb321a0-87cc-48ab-b2db-696cd0bb04f8' WHERE `accounts`.`id` = x'7cb321a087cc48abb2db696cd0bb04f8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7cb321a087cc48abb2db696cd0bb04f8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7cb321a087cc48abb2db696cd0bb04f8', x'95b6515811034f7f9a4eb2ba86db44b8', x'fd98bbc3b8bc47caa55740274b38a03a') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'95b6515811034f7f9a4eb2ba86db44b8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95b6515811034f7f9a4eb2ba86db44b8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95b6515811034f7f9a4eb2ba86db44b8', x'8fa4f2e9f0b3423a9eb7c4e844d39cd7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'95b6515811034f7f9a4eb2ba86db44b8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'95b6515811034f7f9a4eb2ba86db44b8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'95b6515811034f7f9a4eb2ba86db44b8', x'cd500a960ace4d4ab7bcc4a394db246e', 'admin') Sent mail to teste@teste.com (6ms) Date: Mon, 31 Dec 2012 10:46:24 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e18920abfc0_f6180435d483609e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'ea0ecab7ad8a475b92783de6f710a30f', 'jabanilson', NULL, 1, '2012-12-31 12:46:24')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'accountea0ecab7-ad8a-475b-9278-3de6f710a30f' WHERE `accounts`.`id` = x'ea0ecab7ad8a475b92783de6f710a30f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'821e347868f44b449baea8615c507636', 'jabanilson', NULL, 1, '2012-12-31 12:46:24')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account821e3478-68f4-4b44-9bae-a8615c507636' WHERE `accounts`.`id` = x'821e347868f44b449baea8615c507636'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'821e347868f44b449baea8615c507636' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'821e347868f44b449baea8615c507636', 'teste@teste.teste', x'4de0a6ccb7af4024a79ab8671c7d5bde', NULL, NULL, '2012-12-31 12:46:24', 'LoFvcG49wQcpTSZOo3C402TvQ2g') Sent mail to teste@teste.teste (7ms) Date: Mon, 31 Dec 2012 10:46:24 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18920b3cc9_f6180435d4836171@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4de0a6cc-b7af-4024-a79a-b8671c7d5bdeLoFvcG49wQcpTSZOo3C402TvQ2g  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'ea0ecab7ad8a475b92783de6f710a30f' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) UPDATE `user_invitations` SET `account_id` = x'ea0ecab7ad8a475b92783de6f710a30f', `invited_by` = x'fd98bbc3b8bc47caa55740274b38a03a' WHERE `user_invitations`.`id` = x'4de0a6ccb7af4024a79ab8671c7d5bde'  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/4de0a6cc-b7af-4024-a79a-b8671c7d5bdeLoFvcG49wQcpTSZOo3C402TvQ2g" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"4de0a6cc-b7af-4024-a79a-b8671c7d5bdeLoFvcG49wQcpTSZOo3C402TvQ2g"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bedfbc83533d4fc89397521fda29fadb' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'4de0a6ccb7af4024a79ab8671c7d5bde' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fd98bbc3b8bc47caa55740274b38a03a' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ea0ecab7ad8a475b92783de6f710a30f' LIMIT 1 Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 1.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:24', '2012-12-31 12:46:24', 'facebook@test.test', '', NULL, x'66f3d7dc5b174b60b145ae18d627d1a0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:24') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'66f3d7dc5b174b60b145ae18d627d1a0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:24', 'User', x'f8004bed8ce84e529325ae5a11567bc7', '9e98b856f817dfd8938976be4c63fcb4', x'66f3d7dc5b174b60b145ae18d627d1a0', 'User', '2012-12-31 12:46:24') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'66f3d7dc5b174b60b145ae18d627d1a0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'4d6a141690e0441da0fe674e963b05a2', NULL, NULL, NULL, '2012-12-31 12:46:24')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account4d6a1416-90e0-441d-a0fe-674e963b05a2' WHERE `accounts`.`id` = x'4d6a141690e0441da0fe674e963b05a2' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d6a141690e0441da0fe674e963b05a2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4d6a141690e0441da0fe674e963b05a2', x'37d7c1b9b1274092ac7ae5e07210a8cd', x'66f3d7dc5b174b60b145ae18d627d1a0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'37d7c1b9b1274092ac7ae5e07210a8cd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37d7c1b9b1274092ac7ae5e07210a8cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37d7c1b9b1274092ac7ae5e07210a8cd', x'50a306d3a898492d9784a40aaefbf2f6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'37d7c1b9b1274092ac7ae5e07210a8cd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37d7c1b9b1274092ac7ae5e07210a8cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37d7c1b9b1274092ac7ae5e07210a8cd', x'6c0d86065bda4ad0b752710c505b37a9', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:24 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18920c77d5_f6180435d4836226@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'f806230efa244a65bdd7d707c277567c', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'66f3d7dc5b174b60b145ae18d627d1a0')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'66f3d7dc5b174b60b145ae18d627d1a0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'66f3d7dc5b174b60b145ae18d627d1a0' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 60ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'66f3d7dc5b174b60b145ae18d627d1a0' LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:24', 'teste@teste.com', '$2a$04$I8XM.ckwQ3jDPGO.Z0MYC.BBCHjhDnr5bNVi2pp//QeM9IUeVTC.y', NULL, x'91476af355104155b1725cca92fa7a08', 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-12-31 12:46:24') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'91476af355104155b1725cca92fa7a08' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:24', 'User', x'12c254f50c5a4aac986efa073ab0ebfc', 'a7d335d34d19d628e5500f25a219885d', x'91476af355104155b1725cca92fa7a08', 'User', '2012-12-31 12:46:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'91476af355104155b1725cca92fa7a08' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:24', x'644246ca19e64cb788fb451ae9f347c2', NULL, NULL, NULL, '2012-12-31 12:46:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:24', `updated_at` = '2012-12-31 12:46:24', `subdomain` = 'account644246ca-19e6-4cb7-88fb-451ae9f347c2' WHERE `accounts`.`id` = x'644246ca19e64cb788fb451ae9f347c2' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'644246ca19e64cb788fb451ae9f347c2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'644246ca19e64cb788fb451ae9f347c2', x'9a36750816644b2c8a5974470293ca00', x'91476af355104155b1725cca92fa7a08') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9a36750816644b2c8a5974470293ca00') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a36750816644b2c8a5974470293ca00' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a36750816644b2c8a5974470293ca00', x'94a7d8d8a20b4d0aa3f243cb30e85c76', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9a36750816644b2c8a5974470293ca00') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9a36750816644b2c8a5974470293ca00' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9a36750816644b2c8a5974470293ca00', x'88b7adee9d2f4eb3b833103624758321', 'admin') Sent mail to teste@teste.com (8ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189219524_f6180435d48363e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'a1caf560c9d34ee5a91fb40f32961d77', 'jabanilson', NULL, 1, '2012-12-31 12:46:25')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'accounta1caf560-c9d3-4ee5-a91f-b40f32961d77' WHERE `accounts`.`id` = x'a1caf560c9d34ee5a91fb40f32961d77'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'728b97ed25fe470da207c284bf9a4124', 'jabanilson', NULL, 1, '2012-12-31 12:46:25')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'account728b97ed-25fe-470d-a207-c284bf9a4124' WHERE `accounts`.`id` = x'728b97ed25fe470da207c284bf9a4124'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'728b97ed25fe470da207c284bf9a4124' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'728b97ed25fe470da207c284bf9a4124', 'teste@teste.teste', x'1100d17dad5b4dfbbf8351333e4dcc8e', NULL, NULL, '2012-12-31 12:46:25', 'FTUZfriPOMpteO0Wo2BchxLI_5w') Sent mail to teste@teste.teste (10ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e18921133d7_f6180435d48364d2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1100d17d-ad5b-4dfb-bf83-51333e4dcc8eFTUZfriPOMpteO0Wo2BchxLI_5w  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'a1caf560c9d34ee5a91fb40f32961d77' AND `users`.`email` = 'teste@teste.teste'  (0.3ms) UPDATE `user_invitations` SET `account_id` = x'a1caf560c9d34ee5a91fb40f32961d77', `invited_by` = x'91476af355104155b1725cca92fa7a08' WHERE `user_invitations`.`id` = x'1100d17dad5b4dfbbf8351333e4dcc8e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/1100d17d-ad5b-4dfb-bf83-51333e4dcc8eFTUZfriPOMpteO0Wo2BchxLI_5w" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"1100d17d-ad5b-4dfb-bf83-51333e4dcc8eFTUZfriPOMpteO0Wo2BchxLI_5w"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'66f3d7dc5b174b60b145ae18d627d1a0' LIMIT 1 UserInvitation Load (0.5ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'1100d17dad5b4dfbbf8351333e4dcc8e' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'91476af355104155b1725cca92fa7a08' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a1caf560c9d34ee5a91fb40f32961d77' LIMIT 1 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:25', '2012-12-31 12:46:25', 'facebook@test.test', '', NULL, x'58f3c1f457e34058a16382318d3e5883', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'58f3c1f457e34058a16382318d3e5883' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:25', 'User', x'd9887b65b2c54ece89920b4d60f54f9f', 'd91c627c0c63a8ea62060fb564533da7', x'58f3c1f457e34058a16382318d3e5883', 'User', '2012-12-31 12:46:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'58f3c1f457e34058a16382318d3e5883' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'9c9600260d634ed3aff4ea33256db157', NULL, NULL, NULL, '2012-12-31 12:46:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'account9c960026-0d63-4ed3-aff4-ea33256db157' WHERE `accounts`.`id` = x'9c9600260d634ed3aff4ea33256db157' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9c9600260d634ed3aff4ea33256db157' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9c9600260d634ed3aff4ea33256db157', x'758590065e574237a20e0cfa5ebd497f', x'58f3c1f457e34058a16382318d3e5883') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'758590065e574237a20e0cfa5ebd497f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'758590065e574237a20e0cfa5ebd497f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'758590065e574237a20e0cfa5ebd497f', x'ce9f7a05b5764fe3a837cfddc589f2c0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'758590065e574237a20e0cfa5ebd497f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'758590065e574237a20e0cfa5ebd497f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'758590065e574237a20e0cfa5ebd497f', x'ec74015d41a44b5ababf78b78a3296c8', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18921297bc_f6180435d4836577@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'0198ab3b5e644ceabd9f8b2585e32ba0', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'58f3c1f457e34058a16382318d3e5883')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'58f3c1f457e34058a16382318d3e5883' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'58f3c1f457e34058a16382318d3e5883' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 67ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'58f3c1f457e34058a16382318d3e5883' LIMIT 1 Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:25', 'teste@teste.com', '$2a$04$KbsfdIyd5IxuaaZrhzHRge9DEi6/p59reK3pvOycW40oY4Ag/xSnG', NULL, x'8c6f4e65c08e4edd841a79e7ebfd0fdf', 'en', 'fulano', NULL, NULL, NULL, NULL, '2012-12-31 12:46:25') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8c6f4e65c08e4edd841a79e7ebfd0fdf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:25', 'User', x'6c26b1c1a49a44c2a50efad061cd83b6', 'c16675bb26affa51d8971a5e1abd5f4f', x'8c6f4e65c08e4edd841a79e7ebfd0fdf', 'User', '2012-12-31 12:46:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8c6f4e65c08e4edd841a79e7ebfd0fdf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'b12755b124c74572b8dd168154981de3', NULL, NULL, NULL, '2012-12-31 12:46:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'accountb12755b1-24c7-4572-b8dd-168154981de3' WHERE `accounts`.`id` = x'b12755b124c74572b8dd168154981de3' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b12755b124c74572b8dd168154981de3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b12755b124c74572b8dd168154981de3', x'9d440223e1904aa491efe2827e05031b', x'8c6f4e65c08e4edd841a79e7ebfd0fdf') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9d440223e1904aa491efe2827e05031b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d440223e1904aa491efe2827e05031b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d440223e1904aa491efe2827e05031b', x'0c4bdac1360a468881f43cdb860426f6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9d440223e1904aa491efe2827e05031b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d440223e1904aa491efe2827e05031b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d440223e1904aa491efe2827e05031b', x'7018e4bcb042404b91c365c0b0af4bd8', 'admin') Sent mail to teste@teste.com (7ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.com Message-ID: <50e189213c195_f6180435d483662d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'bb4ed57395bd4476b41a1e7083ac5ddd', 'jabanilson', NULL, 1, '2012-12-31 12:46:25')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'accountbb4ed573-95bd-4476-b41a-1e7083ac5ddd' WHERE `accounts`.`id` = x'bb4ed57395bd4476b41a1e7083ac5ddd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'40b04f63bcfc412ca91ec005c1fa0339', 'jabanilson', NULL, 1, '2012-12-31 12:46:25')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'account40b04f63-bcfc-412c-a91e-c005c1fa0339' WHERE `accounts`.`id` = x'40b04f63bcfc412ca91ec005c1fa0339'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'40b04f63bcfc412ca91ec005c1fa0339' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'40b04f63bcfc412ca91ec005c1fa0339', 'teste@teste.teste', x'1aeeeee3bd264a0db5790883d67f067f', NULL, NULL, '2012-12-31 12:46:25', 'i3vldBVOyswbjmRYY44cU2tEJIs') Sent mail to teste@teste.teste (9ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: teste@teste.teste Message-ID: <50e1892147335_f6180435d4836753@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/1aeeeee3-bd26-4a0d-b579-0883d67f067fi3vldBVOyswbjmRYY44cU2tEJIs  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'bb4ed57395bd4476b41a1e7083ac5ddd' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = x'bb4ed57395bd4476b41a1e7083ac5ddd', `invited_by` = x'8c6f4e65c08e4edd841a79e7ebfd0fdf' WHERE `user_invitations`.`id` = x'1aeeeee3bd264a0db5790883d67f067f'  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/1aeeeee3-bd26-4a0d-b579-0883d67f067fi3vldBVOyswbjmRYY44cU2tEJIs" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"1aeeeee3-bd26-4a0d-b579-0883d67f067fi3vldBVOyswbjmRYY44cU2tEJIs"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'58f3c1f457e34058a16382318d3e5883' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'1aeeeee3bd264a0db5790883d67f067f' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8c6f4e65c08e4edd841a79e7ebfd0fdf' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bb4ed57395bd4476b41a1e7083ac5ddd' LIMIT 1 Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 1.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:25', '2012-12-31 12:46:25', 'facebook@test.test', '', NULL, x'f78a6c143cce4e53818088d7227ccaf4', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:25') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f78a6c143cce4e53818088d7227ccaf4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:25', 'User', x'2b72cffb875947ecace89c05fc969bf8', 'c854fc62a3ae999fb0b662ed99cc2880', x'f78a6c143cce4e53818088d7227ccaf4', 'User', '2012-12-31 12:46:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f78a6c143cce4e53818088d7227ccaf4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'3956702296054a2297ec39634adf8367', NULL, NULL, NULL, '2012-12-31 12:46:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'account39567022-9605-4a22-97ec-39634adf8367' WHERE `accounts`.`id` = x'3956702296054a2297ec39634adf8367' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3956702296054a2297ec39634adf8367' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3956702296054a2297ec39634adf8367', x'5f6f5181bd9d40f7933d0d04f71ba513', x'f78a6c143cce4e53818088d7227ccaf4') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5f6f5181bd9d40f7933d0d04f71ba513') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f6f5181bd9d40f7933d0d04f71ba513' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f6f5181bd9d40f7933d0d04f71ba513', x'7b66bf30bdda4e23be66ab8069fd3afd', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5f6f5181bd9d40f7933d0d04f71ba513') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f6f5181bd9d40f7933d0d04f71ba513' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f6f5181bd9d40f7933d0d04f71ba513', x'dd8364d941f14f2c940401743d8d0605', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18921820d2_f6180435d48368c3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'e444fb27d73b4f9e9bc1a4b8f2b31fdd', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'f78a6c143cce4e53818088d7227ccaf4')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f78a6c143cce4e53818088d7227ccaf4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f78a6c143cce4e53818088d7227ccaf4' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 212ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f78a6c143cce4e53818088d7227ccaf4' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f78a6c143cce4e53818088d7227ccaf4' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:25', 'tester@roles.test', '$2a$04$CyJcLnsi5jGeEWJirHSic.TA0DT8OWje.wBr9zBw9a85wpyAOqqIe', NULL, x'3de05238f0744b10b75aa1712ec51f20', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:25') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3de05238f0744b10b75aa1712ec51f20' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:25', 'User', x'293b473244804a1cb07ddd07c5cb5675', 'f62217ec12363545359053e1a4de71b8', x'3de05238f0744b10b75aa1712ec51f20', 'User', '2012-12-31 12:46:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3de05238f0744b10b75aa1712ec51f20' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'83d0d81991f3442d8921fda5c516ee1f', NULL, NULL, NULL, '2012-12-31 12:46:25')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'account83d0d819-91f3-442d-8921-fda5c516ee1f' WHERE `accounts`.`id` = x'83d0d81991f3442d8921fda5c516ee1f' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'83d0d81991f3442d8921fda5c516ee1f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'83d0d81991f3442d8921fda5c516ee1f', x'cd335fa340534f46830e105d2e256aff', x'3de05238f0744b10b75aa1712ec51f20') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cd335fa340534f46830e105d2e256aff') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd335fa340534f46830e105d2e256aff' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd335fa340534f46830e105d2e256aff', x'9472b8652acd46f9a2f441439f5d381c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cd335fa340534f46830e105d2e256aff') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd335fa340534f46830e105d2e256aff' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd335fa340534f46830e105d2e256aff', x'047b1b6d60a941058f4aa35de7c126cb', 'admin') Sent mail to tester@roles.test (7ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e1892192720_f6180435d48369d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3956702296054a2297ec39634adf8367' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3956702296054a2297ec39634adf8367', x'6891e53a7fd0404f9b7dffc2cf17aca0', x'3de05238f0744b10b75aa1712ec51f20') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6891e53a7fd0404f9b7dffc2cf17aca0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6891e53a7fd0404f9b7dffc2cf17aca0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6891e53a7fd0404f9b7dffc2cf17aca0', x'e5750a4319f24c89a9647c0bf5430823', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6891e53a7fd0404f9b7dffc2cf17aca0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6891e53a7fd0404f9b7dffc2cf17aca0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6891e53a7fd0404f9b7dffc2cf17aca0', x'e5aa6f81d2924756967c1530e3ba08b8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/3956702296054A2297EC39634ADF8367/invite" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"3956702296054A2297EC39634ADF8367"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f78a6c143cce4e53818088d7227ccaf4' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f78a6c143cce4e53818088d7227ccaf4' AND `account_users`.`account_id` = x'3956702296054a2297ec39634adf8367' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f6f5181bd9d40f7933d0d04f71ba513' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f6f5181bd9d40f7933d0d04f71ba513' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3956702296054a2297ec39634adf8367' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3956702296054a2297ec39634adf8367' AND `account_users`.`user_id` = x'f78a6c143cce4e53818088d7227ccaf4' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f6f5181bd9d40f7933d0d04f71ba513' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 23ms (Views: 14.6ms | ActiveRecord: 1.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:25', '2012-12-31 12:46:25', 'facebook@test.test', '', NULL, x'd9bda360bd544725b5661ae3889b3c67', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd9bda360bd544725b5661ae3889b3c67' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:25', 'User', x'dc3f49f24d4f4ae8b9d99fb81bcf786b', '9e40a01ba78d43d1a1d4650a90a27a2d', x'd9bda360bd544725b5661ae3889b3c67', 'User', '2012-12-31 12:46:25') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd9bda360bd544725b5661ae3889b3c67' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'88d6fbfcf26c4bcd8365743fa75bbdbb', NULL, NULL, NULL, '2012-12-31 12:46:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'account88d6fbfc-f26c-4bcd-8365-743fa75bbdbb' WHERE `accounts`.`id` = x'88d6fbfcf26c4bcd8365743fa75bbdbb' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'88d6fbfcf26c4bcd8365743fa75bbdbb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'88d6fbfcf26c4bcd8365743fa75bbdbb', x'0e4a74361e1a4137a39ee31602232308', x'd9bda360bd544725b5661ae3889b3c67') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0e4a74361e1a4137a39ee31602232308') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e4a74361e1a4137a39ee31602232308' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e4a74361e1a4137a39ee31602232308', x'8ab26d4d0cca45b8bfb0ebc3b11b3ef8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e4a74361e1a4137a39ee31602232308') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e4a74361e1a4137a39ee31602232308' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e4a74361e1a4137a39ee31602232308', x'2a60d22a21894dd5844711d88800b862', 'admin') Sent mail to facebook@test.test (155ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18921ac531_f6180435d4837020@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'5432dbe56368442191d2b968767418e1', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'd9bda360bd544725b5661ae3889b3c67')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd9bda360bd544725b5661ae3889b3c67' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd9bda360bd544725b5661ae3889b3c67' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 216ms (ActiveRecord: 6.1ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd9bda360bd544725b5661ae3889b3c67' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd9bda360bd544725b5661ae3889b3c67' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:25', 'tester@roles.test', '$2a$04$7vT1xVJUgADVpZf/Gg/ume3LtKKRelY4QPPTvxv0bVyf2A.qgM/nO', NULL, x'0443e99d4e034c94969f3efb3b07ec2b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:25') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0443e99d4e034c94969f3efb3b07ec2b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:25', 'User', x'6871d4446c2f4ffe89837e0e1f5591d1', '5f67745f0169f8217f346db5405b06a0', x'0443e99d4e034c94969f3efb3b07ec2b', 'User', '2012-12-31 12:46:25') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0443e99d4e034c94969f3efb3b07ec2b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'095dd4a32e1d4b78abd82aaee5cc1f15', NULL, NULL, NULL, '2012-12-31 12:46:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'account095dd4a3-2e1d-4b78-abd8-2aaee5cc1f15' WHERE `accounts`.`id` = x'095dd4a32e1d4b78abd82aaee5cc1f15' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'095dd4a32e1d4b78abd82aaee5cc1f15' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'095dd4a32e1d4b78abd82aaee5cc1f15', x'50571226f12d41bb8d416d9291f1dae8', x'0443e99d4e034c94969f3efb3b07ec2b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'50571226f12d41bb8d416d9291f1dae8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50571226f12d41bb8d416d9291f1dae8' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50571226f12d41bb8d416d9291f1dae8', x'f4ac93c5cdd744aaa3ebf8aeba5aea5a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'50571226f12d41bb8d416d9291f1dae8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'50571226f12d41bb8d416d9291f1dae8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'50571226f12d41bb8d416d9291f1dae8', x'90da4b0044774f518795ab9d6237f666', 'admin') Sent mail to tester@roles.test (7ms) Date: Mon, 31 Dec 2012 10:46:25 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e18921e2c27_f6180435d483718e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'88d6fbfcf26c4bcd8365743fa75bbdbb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'88d6fbfcf26c4bcd8365743fa75bbdbb', x'400d7fe3780b4824821222aca1198323', x'0443e99d4e034c94969f3efb3b07ec2b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'400d7fe3780b4824821222aca1198323') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'400d7fe3780b4824821222aca1198323' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'400d7fe3780b4824821222aca1198323', x'b24851539458418bb60bdd9f38cdef64', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'400d7fe3780b4824821222aca1198323') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'400d7fe3780b4824821222aca1198323' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'400d7fe3780b4824821222aca1198323', x'397967b7966447b6917d4dfcd1a95934', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/88D6FBFCF26C4BCD8365743FA75BBDBB/invite" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"88D6FBFCF26C4BCD8365743FA75BBDBB"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd9bda360bd544725b5661ae3889b3c67' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd9bda360bd544725b5661ae3889b3c67' AND `account_users`.`account_id` = x'88d6fbfcf26c4bcd8365743fa75bbdbb' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e4a74361e1a4137a39ee31602232308' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e4a74361e1a4137a39ee31602232308' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'88d6fbfcf26c4bcd8365743fa75bbdbb' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'88d6fbfcf26c4bcd8365743fa75bbdbb' AND `account_users`.`user_id` = x'd9bda360bd544725b5661ae3889b3c67' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0e4a74361e1a4137a39ee31602232308' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.3ms | ActiveRecord: 1.6ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:25', '2012-12-31 12:46:25', 'facebook@test.test', '', NULL, x'0ecc9148f09d4d14acb285dddfe0b279', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0ecc9148f09d4d14acb285dddfe0b279' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:25', 'User', x'd077660d263c4b8896f6e7159c0ef475', '8a1c65ae1ba1fc9f38000544ebf7a684', x'0ecc9148f09d4d14acb285dddfe0b279', 'User', '2012-12-31 12:46:25') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0ecc9148f09d4d14acb285dddfe0b279' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:25', x'b1bf4ac350454bb2b3f64e4a9709e685', NULL, NULL, NULL, '2012-12-31 12:46:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:25', `updated_at` = '2012-12-31 12:46:25', `subdomain` = 'accountb1bf4ac3-5045-4bb2-b3f6-4e4a9709e685' WHERE `accounts`.`id` = x'b1bf4ac350454bb2b3f64e4a9709e685' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b1bf4ac350454bb2b3f64e4a9709e685' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b1bf4ac350454bb2b3f64e4a9709e685', x'bb452ff19d5747ad845f5f074cf7002e', x'0ecc9148f09d4d14acb285dddfe0b279') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bb452ff19d5747ad845f5f074cf7002e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb452ff19d5747ad845f5f074cf7002e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb452ff19d5747ad845f5f074cf7002e', x'98be7c0c305a436da404338637b58c0f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bb452ff19d5747ad845f5f074cf7002e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb452ff19d5747ad845f5f074cf7002e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb452ff19d5747ad845f5f074cf7002e', x'03d99dc966174b4d87c5e022a5a6affb', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18922532c_f6180435d48372e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'9e2743f5247946d9a6d65f81b91d97ae', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'0ecc9148f09d4d14acb285dddfe0b279')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0ecc9148f09d4d14acb285dddfe0b279' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0ecc9148f09d4d14acb285dddfe0b279' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 60ms (ActiveRecord: 5.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0ecc9148f09d4d14acb285dddfe0b279' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0ecc9148f09d4d14acb285dddfe0b279' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:26', 'tester@roles.test', '$2a$04$sLTXHywnIrKEpPLQa.dQ8uDJ8HpTz0mE1Ha/o5gflHxdxkxR/g.z6', NULL, x'6937950a5aa846fabb9318c2632b1bfa', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6937950a5aa846fabb9318c2632b1bfa' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:26', 'User', x'bb35cba3901c41dd817defa64ad8be52', '8f51f8ba330c57c9f283f3f596a0b7f5', x'6937950a5aa846fabb9318c2632b1bfa', 'User', '2012-12-31 12:46:26') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6937950a5aa846fabb9318c2632b1bfa' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:26', x'3a3cda2de93343d187b0c699181195cd', NULL, NULL, NULL, '2012-12-31 12:46:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:26', `updated_at` = '2012-12-31 12:46:26', `subdomain` = 'account3a3cda2d-e933-43d1-87b0-c699181195cd' WHERE `accounts`.`id` = x'3a3cda2de93343d187b0c699181195cd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a3cda2de93343d187b0c699181195cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3a3cda2de93343d187b0c699181195cd', x'cc18f96b3deb437d9105962d6c28822e', x'6937950a5aa846fabb9318c2632b1bfa') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cc18f96b3deb437d9105962d6c28822e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc18f96b3deb437d9105962d6c28822e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc18f96b3deb437d9105962d6c28822e', x'b5a56b74ceff42ec836760ef818071a1', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cc18f96b3deb437d9105962d6c28822e') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cc18f96b3deb437d9105962d6c28822e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cc18f96b3deb437d9105962d6c28822e', x'5a5139952e3b429e80d3342e989523b9', 'admin') Sent mail to tester@roles.test (6ms) Date: Mon, 31 Dec 2012 10:46:26 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e1892215db6_f6180435d483737c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b1bf4ac350454bb2b3f64e4a9709e685' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b1bf4ac350454bb2b3f64e4a9709e685', x'c4c26f41c56e43309e2af165a44dff6e', x'6937950a5aa846fabb9318c2632b1bfa') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c4c26f41c56e43309e2af165a44dff6e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4c26f41c56e43309e2af165a44dff6e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4c26f41c56e43309e2af165a44dff6e', x'7ea07abecc894e6fbece3fb79a70abaf', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c4c26f41c56e43309e2af165a44dff6e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4c26f41c56e43309e2af165a44dff6e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4c26f41c56e43309e2af165a44dff6e', x'fbec710bd47847c7bb88c42f7d93de89', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/B1BF4AC350454BB2B3F64E4A9709E685/invite" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"B1BF4AC350454BB2B3F64E4A9709E685"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0ecc9148f09d4d14acb285dddfe0b279' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0ecc9148f09d4d14acb285dddfe0b279' AND `account_users`.`account_id` = x'b1bf4ac350454bb2b3f64e4a9709e685' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bb452ff19d5747ad845f5f074cf7002e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bb452ff19d5747ad845f5f074cf7002e' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b1bf4ac350454bb2b3f64e4a9709e685' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b1bf4ac350454bb2b3f64e4a9709e685' AND `account_users`.`user_id` = x'0ecc9148f09d4d14acb285dddfe0b279' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bb452ff19d5747ad845f5f074cf7002e' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 142ms (Views: 133.5ms | ActiveRecord: 1.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:26', '2012-12-31 12:46:26', 'facebook@test.test', '', NULL, x'1aef3974c7bb4b89925d338cfbd46172', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1aef3974c7bb4b89925d338cfbd46172' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:26', 'User', x'fccb2bb8a54f4d35a67db1d667ff1814', '8fd7bbf96aa74c12eb9865b76055fd2f', x'1aef3974c7bb4b89925d338cfbd46172', 'User', '2012-12-31 12:46:26') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1aef3974c7bb4b89925d338cfbd46172' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:26', x'dd6a762e3fa5480c8708465ef2af1b7a', NULL, NULL, NULL, '2012-12-31 12:46:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:26', `updated_at` = '2012-12-31 12:46:26', `subdomain` = 'accountdd6a762e-3fa5-480c-8708-465ef2af1b7a' WHERE `accounts`.`id` = x'dd6a762e3fa5480c8708465ef2af1b7a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dd6a762e3fa5480c8708465ef2af1b7a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dd6a762e3fa5480c8708465ef2af1b7a', x'290b44e336864e63b8df3c0db3a1d72c', x'1aef3974c7bb4b89925d338cfbd46172') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'290b44e336864e63b8df3c0db3a1d72c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'290b44e336864e63b8df3c0db3a1d72c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'290b44e336864e63b8df3c0db3a1d72c', x'c826cb4f8a4245dc8da54e06e927766f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'290b44e336864e63b8df3c0db3a1d72c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'290b44e336864e63b8df3c0db3a1d72c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'290b44e336864e63b8df3c0db3a1d72c', x'379f81f86477497b8caca9d68602321a', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189224aa24_f6180435d4837468@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'856fdcb625134f5887b88fc061709f76', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'1aef3974c7bb4b89925d338cfbd46172')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1aef3974c7bb4b89925d338cfbd46172' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1aef3974c7bb4b89925d338cfbd46172' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 60ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1aef3974c7bb4b89925d338cfbd46172' LIMIT 1 Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1aef3974c7bb4b89925d338cfbd46172' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:26', 'tester@roles.test', '$2a$04$lQr7fUtwYua/gy/J.ok9UON5KHRc8M2nxWi5CW9QxODKhmjPWjCH2', NULL, x'bf16dca7c3d242baa5071d6a51f157f8', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bf16dca7c3d242baa5071d6a51f157f8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:26', 'User', x'57df97bc2aff43f095096ba3e5cd7e2f', '50487850b5bb9611c95bac4de720e8c7', x'bf16dca7c3d242baa5071d6a51f157f8', 'User', '2012-12-31 12:46:26') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bf16dca7c3d242baa5071d6a51f157f8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:26', x'4d13019c28fe4d49b8564934038339ed', NULL, NULL, NULL, '2012-12-31 12:46:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:26', `updated_at` = '2012-12-31 12:46:26', `subdomain` = 'account4d13019c-28fe-4d49-b856-4934038339ed' WHERE `accounts`.`id` = x'4d13019c28fe4d49b8564934038339ed' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4d13019c28fe4d49b8564934038339ed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4d13019c28fe4d49b8564934038339ed', x'ed30d0fe39454de8b0b281c432780630', x'bf16dca7c3d242baa5071d6a51f157f8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ed30d0fe39454de8b0b281c432780630') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed30d0fe39454de8b0b281c432780630' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed30d0fe39454de8b0b281c432780630', x'123ad6c2e28145a8924111f38862bd0d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ed30d0fe39454de8b0b281c432780630') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed30d0fe39454de8b0b281c432780630' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed30d0fe39454de8b0b281c432780630', x'3c650ddac42a48259094836aaa8ec452', 'admin') Sent mail to tester@roles.test (9ms) Date: Mon, 31 Dec 2012 10:46:26 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e189225e303_f6180435d483757@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dd6a762e3fa5480c8708465ef2af1b7a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dd6a762e3fa5480c8708465ef2af1b7a', x'17d0d44fd83d4150990a3d9854ed1586', x'bf16dca7c3d242baa5071d6a51f157f8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'17d0d44fd83d4150990a3d9854ed1586') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17d0d44fd83d4150990a3d9854ed1586' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17d0d44fd83d4150990a3d9854ed1586', x'197347fc9d0e4ff99c6a4fede59a04c6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'17d0d44fd83d4150990a3d9854ed1586') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17d0d44fd83d4150990a3d9854ed1586' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17d0d44fd83d4150990a3d9854ed1586', x'0b3668ecb2f14bfaa51ed51086119338', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/DD6A762E3FA5480C8708465EF2AF1B7A/invite" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"DD6A762E3FA5480C8708465EF2AF1B7A"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1aef3974c7bb4b89925d338cfbd46172' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1aef3974c7bb4b89925d338cfbd46172' AND `account_users`.`account_id` = x'dd6a762e3fa5480c8708465ef2af1b7a' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'290b44e336864e63b8df3c0db3a1d72c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'290b44e336864e63b8df3c0db3a1d72c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dd6a762e3fa5480c8708465ef2af1b7a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'dd6a762e3fa5480c8708465ef2af1b7a' AND `account_users`.`user_id` = x'1aef3974c7bb4b89925d338cfbd46172' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'290b44e336864e63b8df3c0db3a1d72c' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 10.8ms | ActiveRecord: 1.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:26', '2012-12-31 12:46:26', 'facebook@test.test', '', NULL, x'16b249f448b74c26b23cf4e954a6c96d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:26') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'16b249f448b74c26b23cf4e954a6c96d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:26', 'User', x'5ae10854ee804aa2a6dc796e73762759', 'bdbb2c15fdfe3d619e7543f0e2f2bcee', x'16b249f448b74c26b23cf4e954a6c96d', 'User', '2012-12-31 12:46:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'16b249f448b74c26b23cf4e954a6c96d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:26', x'1278de50f24044ab8a4dae4f67ef138d', NULL, NULL, NULL, '2012-12-31 12:46:26')  (0.5ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:26', `updated_at` = '2012-12-31 12:46:26', `subdomain` = 'account1278de50-f240-44ab-8a4d-ae4f67ef138d' WHERE `accounts`.`id` = x'1278de50f24044ab8a4dae4f67ef138d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1278de50f24044ab8a4dae4f67ef138d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1278de50f24044ab8a4dae4f67ef138d', x'3c37f6ba86a6488aa2c92c5e97df815a', x'16b249f448b74c26b23cf4e954a6c96d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c37f6ba86a6488aa2c92c5e97df815a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c37f6ba86a6488aa2c92c5e97df815a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c37f6ba86a6488aa2c92c5e97df815a', x'40cf3c5fb37648c19b53339ac4856b38', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c37f6ba86a6488aa2c92c5e97df815a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c37f6ba86a6488aa2c92c5e97df815a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c37f6ba86a6488aa2c92c5e97df815a', x'fbdbd058e10544da934f0ad1c0e6f5ac', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189229bb4b_f6180435d48376c1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'5601e650dace498181aa843da4a40041', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'16b249f448b74c26b23cf4e954a6c96d')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'16b249f448b74c26b23cf4e954a6c96d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'16b249f448b74c26b23cf4e954a6c96d' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 207ms (ActiveRecord: 6.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'16b249f448b74c26b23cf4e954a6c96d' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'16b249f448b74c26b23cf4e954a6c96d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:26', 'tester@roles.test', '$2a$04$YAOZVkbM1vE5rmJfM6uGGe5ciniQop/9G2Ss05hsiqhBHkTY6gdu.', NULL, x'85e0f1180ac44073be600f38c5982c07', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:26') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'85e0f1180ac44073be600f38c5982c07' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:26', 'User', x'a06acb231bc24e41b8fa6f556790c571', 'aaa584703893ed840d23b28cc58aeb82', x'85e0f1180ac44073be600f38c5982c07', 'User', '2012-12-31 12:46:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'85e0f1180ac44073be600f38c5982c07' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:26', x'eadf7a72063c45b89fdcf567b7c849ef', NULL, NULL, NULL, '2012-12-31 12:46:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:26', `updated_at` = '2012-12-31 12:46:26', `subdomain` = 'accounteadf7a72-063c-45b8-9fdc-f567b7c849ef' WHERE `accounts`.`id` = x'eadf7a72063c45b89fdcf567b7c849ef' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eadf7a72063c45b89fdcf567b7c849ef' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eadf7a72063c45b89fdcf567b7c849ef', x'1a7c694c554d467da769add2aa7bccf6', x'85e0f1180ac44073be600f38c5982c07') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1a7c694c554d467da769add2aa7bccf6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a7c694c554d467da769add2aa7bccf6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a7c694c554d467da769add2aa7bccf6', x'd7c0e936fa26442ba00a20718541debf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1a7c694c554d467da769add2aa7bccf6') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a7c694c554d467da769add2aa7bccf6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a7c694c554d467da769add2aa7bccf6', x'6b3ee84bf54f4f93b714f12baba709b7', 'admin') Sent mail to tester@roles.test (6ms) Date: Mon, 31 Dec 2012 10:46:26 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e18922ac614_f6180435d4837755@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1278de50f24044ab8a4dae4f67ef138d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1278de50f24044ab8a4dae4f67ef138d', x'2ce7f4adbeae4b2a9748f8eb0a34188e', x'85e0f1180ac44073be600f38c5982c07') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2ce7f4adbeae4b2a9748f8eb0a34188e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ce7f4adbeae4b2a9748f8eb0a34188e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ce7f4adbeae4b2a9748f8eb0a34188e', x'd71136941f9349f2b98a21e715430bc7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2ce7f4adbeae4b2a9748f8eb0a34188e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ce7f4adbeae4b2a9748f8eb0a34188e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ce7f4adbeae4b2a9748f8eb0a34188e', x'4dfa43ae683f482a9d439de0ed34147a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/1278DE50F24044AB8A4DAE4F67EF138D/invite" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"1278DE50F24044AB8A4DAE4F67EF138D"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'16b249f448b74c26b23cf4e954a6c96d' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'16b249f448b74c26b23cf4e954a6c96d' AND `account_users`.`account_id` = x'1278de50f24044ab8a4dae4f67ef138d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c37f6ba86a6488aa2c92c5e97df815a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c37f6ba86a6488aa2c92c5e97df815a' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1278de50f24044ab8a4dae4f67ef138d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'1278de50f24044ab8a4dae4f67ef138d' AND `account_users`.`user_id` = x'16b249f448b74c26b23cf4e954a6c96d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c37f6ba86a6488aa2c92c5e97df815a' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.8ms | ActiveRecord: 1.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:26', '2012-12-31 12:46:26', 'facebook@test.test', '', NULL, x'1c675185cd4d4fb1a8cfe76bfd248fb0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:26', 'User', x'2a335b10fff346e780abd85531ed8ff0', '754cec4388ea682623c4f9a8005cf6e9', x'1c675185cd4d4fb1a8cfe76bfd248fb0', 'User', '2012-12-31 12:46:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:26', x'f41fe507660e4040a4cdf28d9496266d', NULL, NULL, NULL, '2012-12-31 12:46:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:26', `updated_at` = '2012-12-31 12:46:26', `subdomain` = 'accountf41fe507-660e-4040-a4cd-f28d9496266d' WHERE `accounts`.`id` = x'f41fe507660e4040a4cdf28d9496266d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f41fe507660e4040a4cdf28d9496266d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f41fe507660e4040a4cdf28d9496266d', x'252d4698172c4ed6a9879fa99ca2902f', x'1c675185cd4d4fb1a8cfe76bfd248fb0') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'252d4698172c4ed6a9879fa99ca2902f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'252d4698172c4ed6a9879fa99ca2902f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'252d4698172c4ed6a9879fa99ca2902f', x'82845836ced74ae3ac5b3f19a89a8c2d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'252d4698172c4ed6a9879fa99ca2902f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'252d4698172c4ed6a9879fa99ca2902f' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'252d4698172c4ed6a9879fa99ca2902f', x'6add3440b7df46eeb95958ca8ea416f7', 'admin') Sent mail to facebook@test.test (9ms) Date: Mon, 31 Dec 2012 10:46:26 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18922c2947_f6180435d4837818@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'802323472aed466e96179873a63da33c', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'1c675185cd4d4fb1a8cfe76bfd248fb0')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:26 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:26', 'tester@roles.test', '$2a$04$wXFFp7Ry5zNTHgbbwMOuwuCuQi1gERmZakhkekv3mBG4jS5LD3Sga', NULL, x'10103891fcc24aa19a1f82326be5a52d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:26') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'10103891fcc24aa19a1f82326be5a52d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:26', 'User', x'2c3b75f98db1429fb01149706088da5f', '5440bcd524efb586e520fc819c52dc56', x'10103891fcc24aa19a1f82326be5a52d', 'User', '2012-12-31 12:46:26') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'10103891fcc24aa19a1f82326be5a52d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:26', x'2bdf402019cf484e998e835b3eaa5c58', NULL, NULL, NULL, '2012-12-31 12:46:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:26', `updated_at` = '2012-12-31 12:46:26', `subdomain` = 'account2bdf4020-19cf-484e-998e-835b3eaa5c58' WHERE `accounts`.`id` = x'2bdf402019cf484e998e835b3eaa5c58' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2bdf402019cf484e998e835b3eaa5c58' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2bdf402019cf484e998e835b3eaa5c58', x'b5aebc016d2c45aa81c0dce2df61c651', x'10103891fcc24aa19a1f82326be5a52d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b5aebc016d2c45aa81c0dce2df61c651') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b5aebc016d2c45aa81c0dce2df61c651' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b5aebc016d2c45aa81c0dce2df61c651', x'f31b1d00d5d54a19baa63f91a365e71f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b5aebc016d2c45aa81c0dce2df61c651') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b5aebc016d2c45aa81c0dce2df61c651' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b5aebc016d2c45aa81c0dce2df61c651', x'ee8120a5fee444c28faf3b1bb4ff1674', 'admin') Sent mail to tester@roles.test (7ms) Date: Mon, 31 Dec 2012 10:46:26 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e18922d32c1_f6180435d4837924@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f41fe507660e4040a4cdf28d9496266d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f41fe507660e4040a4cdf28d9496266d', x'3fcc4bf97fcb40fbb760bfc80de4f546', x'10103891fcc24aa19a1f82326be5a52d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3fcc4bf97fcb40fbb760bfc80de4f546') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3fcc4bf97fcb40fbb760bfc80de4f546' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3fcc4bf97fcb40fbb760bfc80de4f546', x'4a851f1849ae46bebb3b5b37df482085', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3fcc4bf97fcb40fbb760bfc80de4f546') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3fcc4bf97fcb40fbb760bfc80de4f546' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3fcc4bf97fcb40fbb760bfc80de4f546', x'7b5b32d97481430d969c0b492cae1e03', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/F41FE507660E4040A4CDF28D9496266D/invite" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"F41FE507660E4040A4CDF28D9496266D"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' AND `account_users`.`account_id` = x'f41fe507660e4040a4cdf28d9496266d' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'252d4698172c4ed6a9879fa99ca2902f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'252d4698172c4ed6a9879fa99ca2902f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f41fe507660e4040a4cdf28d9496266d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f41fe507660e4040a4cdf28d9496266d' AND `account_users`.`user_id` = x'1c675185cd4d4fb1a8cfe76bfd248fb0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'252d4698172c4ed6a9879fa99ca2902f' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 10.5ms | ActiveRecord: 2.2ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:27', '2012-12-31 12:46:27', 'facebook@test.test', '', NULL, x'3f770ce93f4c44c286d026c57fd90276', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3f770ce93f4c44c286d026c57fd90276' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:27', 'User', x'e478e17b039d4e3a922b4ee593326ae9', '30bc45120f6fbcf62584d7415c1dd2ec', x'3f770ce93f4c44c286d026c57fd90276', 'User', '2012-12-31 12:46:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3f770ce93f4c44c286d026c57fd90276' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:27', x'd908f853eb7e479592970c7c6af1ec0e', NULL, NULL, NULL, '2012-12-31 12:46:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:27', `updated_at` = '2012-12-31 12:46:27', `subdomain` = 'accountd908f853-eb7e-4795-9297-0c7c6af1ec0e' WHERE `accounts`.`id` = x'd908f853eb7e479592970c7c6af1ec0e' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd908f853eb7e479592970c7c6af1ec0e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd908f853eb7e479592970c7c6af1ec0e', x'7e1f9a4187c24d89979378c0fd723adf', x'3f770ce93f4c44c286d026c57fd90276') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7e1f9a4187c24d89979378c0fd723adf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7e1f9a4187c24d89979378c0fd723adf', x'f492b411c2454c64b80d563ea782e585', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7e1f9a4187c24d89979378c0fd723adf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7e1f9a4187c24d89979378c0fd723adf', x'7774a47842a84d6e8601133c936beb42', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189231baf4_f6180435d48380cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'2d22c37c0c0e4ce4b19c6382cd0e99b1', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'3f770ce93f4c44c286d026c57fd90276')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3f770ce93f4c44c286d026c57fd90276' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3f770ce93f4c44c286d026c57fd90276' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 69ms (ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3f770ce93f4c44c286d026c57fd90276' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3f770ce93f4c44c286d026c57fd90276' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:27', 'tester@roles.test', '$2a$04$YrGp/FX9LadbAZLzfjJTzuY8tA1UfRvnH/uBqwkNzHu0fT9RrXvQ.', NULL, x'cc1478edaf5f45b48590c710c5b5572d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:27') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cc1478edaf5f45b48590c710c5b5572d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:27', 'User', x'1f2cfe76980f43af9463a2929c9acf25', 'adf751da28cd5b213baf46be2694a911', x'cc1478edaf5f45b48590c710c5b5572d', 'User', '2012-12-31 12:46:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cc1478edaf5f45b48590c710c5b5572d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:27', x'1d604c67499d41259a459b2497c274ad', NULL, NULL, NULL, '2012-12-31 12:46:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:27', `updated_at` = '2012-12-31 12:46:27', `subdomain` = 'account1d604c67-499d-4125-9a45-9b2497c274ad' WHERE `accounts`.`id` = x'1d604c67499d41259a459b2497c274ad' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1d604c67499d41259a459b2497c274ad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1d604c67499d41259a459b2497c274ad', x'b1fa4e98a9c445d9a031019162aecca7', x'cc1478edaf5f45b48590c710c5b5572d') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b1fa4e98a9c445d9a031019162aecca7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1fa4e98a9c445d9a031019162aecca7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1fa4e98a9c445d9a031019162aecca7', x'b96b357d30a8433884677e5f5e398907', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b1fa4e98a9c445d9a031019162aecca7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b1fa4e98a9c445d9a031019162aecca7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b1fa4e98a9c445d9a031019162aecca7', x'ab6d51449aa84ea689141248d5473549', 'admin') Sent mail to tester@roles.test (7ms) Date: Mon, 31 Dec 2012 10:46:27 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e189232eb6f_f6180435d483814a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd908f853eb7e479592970c7c6af1ec0e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd908f853eb7e479592970c7c6af1ec0e', x'45333ff1127448a7b39e02744a949313', x'cc1478edaf5f45b48590c710c5b5572d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'45333ff1127448a7b39e02744a949313') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45333ff1127448a7b39e02744a949313' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45333ff1127448a7b39e02744a949313', x'385b9a8f71a64717a5488d470420bb15', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'45333ff1127448a7b39e02744a949313') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'45333ff1127448a7b39e02744a949313' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'45333ff1127448a7b39e02744a949313', x'11d1af34c3ff4497ba25c2cc03f33832', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/D908F853EB7E479592970C7C6AF1EC0E/invite" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"D908F853EB7E479592970C7C6AF1EC0E"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3f770ce93f4c44c286d026c57fd90276' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3f770ce93f4c44c286d026c57fd90276' AND `account_users`.`account_id` = x'd908f853eb7e479592970c7c6af1ec0e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd908f853eb7e479592970c7c6af1ec0e' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd908f853eb7e479592970c7c6af1ec0e' AND `account_users`.`user_id` = x'3f770ce93f4c44c286d026c57fd90276' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 10.6ms | ActiveRecord: 2.2ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3f770ce93f4c44c286d026c57fd90276' AND `account_users`.`account_id` = x'd908f853eb7e479592970c7c6af1ec0e' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7774a47842a84d6e8601133c936beb42' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7e1f9a4187c24d89979378c0fd723adf' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ÙøSë~G•’— |jñì' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f492b411c2454c64b80d563ea782e585'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7e1f9a4187c24d89979378c0fd723adf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7e1f9a4187c24d89979378c0fd723adf', x'2115cdbcd77a435e9d86f843a0ec0741', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/D908F853EB7E479592970C7C6AF1EC0E/invite" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"D908F853EB7E479592970C7C6AF1EC0E"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3f770ce93f4c44c286d026c57fd90276' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3f770ce93f4c44c286d026c57fd90276' AND `account_users`.`account_id` = x'd908f853eb7e479592970c7c6af1ec0e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd908f853eb7e479592970c7c6af1ec0e' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd908f853eb7e479592970c7c6af1ec0e' AND `account_users`.`user_id` = x'3f770ce93f4c44c286d026c57fd90276' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7e1f9a4187c24d89979378c0fd723adf' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 10.8ms | ActiveRecord: 2.0ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:27', '2012-12-31 12:46:27', 'facebook@test.test', '', NULL, x'da4647443c9f4ce9b082fa1fb12fff97', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:27') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'da4647443c9f4ce9b082fa1fb12fff97' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:27', 'User', x'32ee096f21fc4945b14aec32387f10d2', 'b1865cac7fb4b585a234ae785d187d67', x'da4647443c9f4ce9b082fa1fb12fff97', 'User', '2012-12-31 12:46:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'da4647443c9f4ce9b082fa1fb12fff97' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:27', x'4bf09255690b47199b95043e54bf9da8', NULL, NULL, NULL, '2012-12-31 12:46:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:27', `updated_at` = '2012-12-31 12:46:27', `subdomain` = 'account4bf09255-690b-4719-9b95-043e54bf9da8' WHERE `accounts`.`id` = x'4bf09255690b47199b95043e54bf9da8' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4bf09255690b47199b95043e54bf9da8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4bf09255690b47199b95043e54bf9da8', x'859700e7e0794719b6c228be326b8970', x'da4647443c9f4ce9b082fa1fb12fff97') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'859700e7e0794719b6c228be326b8970' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'859700e7e0794719b6c228be326b8970', x'99da8102466c493dabce8ada1276d863', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'859700e7e0794719b6c228be326b8970' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'859700e7e0794719b6c228be326b8970', x'b53406577d084899ae83396328c08fac', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1892377c86_f6180435d48382e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'e731c989eec343ae8958ab09a8d6cb86', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'da4647443c9f4ce9b082fa1fb12fff97')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da4647443c9f4ce9b082fa1fb12fff97' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da4647443c9f4ce9b082fa1fb12fff97' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 215ms (ActiveRecord: 6.5ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'da4647443c9f4ce9b082fa1fb12fff97' LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.3ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'da4647443c9f4ce9b082fa1fb12fff97' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:27', 'tester@roles.test', '$2a$04$uc352gcyXH1tNUI0y8T32uz512GnfHg68tsJc8peBfJiNdZJwMne.', NULL, x'8b04824056554c1280393cc894c6df21', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:27') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8b04824056554c1280393cc894c6df21' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:27', 'User', x'f81f12e0265844f592121328c5adb6bc', '8b2876b8daae1bc8c93c84515cf14154', x'8b04824056554c1280393cc894c6df21', 'User', '2012-12-31 12:46:27') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8b04824056554c1280393cc894c6df21' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:27', x'866d78c92f014dbfac7585237ff0c83b', NULL, NULL, NULL, '2012-12-31 12:46:27')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:27', `updated_at` = '2012-12-31 12:46:27', `subdomain` = 'account866d78c9-2f01-4dbf-ac75-85237ff0c83b' WHERE `accounts`.`id` = x'866d78c92f014dbfac7585237ff0c83b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'866d78c92f014dbfac7585237ff0c83b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'866d78c92f014dbfac7585237ff0c83b', x'07ea415409c74d1d99c36f8e7f82fcb2', x'8b04824056554c1280393cc894c6df21') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'07ea415409c74d1d99c36f8e7f82fcb2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'07ea415409c74d1d99c36f8e7f82fcb2' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'07ea415409c74d1d99c36f8e7f82fcb2', x'a44be9ba85184905a045da5551365a09', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'07ea415409c74d1d99c36f8e7f82fcb2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'07ea415409c74d1d99c36f8e7f82fcb2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'07ea415409c74d1d99c36f8e7f82fcb2', x'eed7445837a44da6a101a371d454453d', 'admin') Sent mail to tester@roles.test (9ms) Date: Mon, 31 Dec 2012 10:46:27 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e18923896b3_f6180435d4838364@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4bf09255690b47199b95043e54bf9da8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4bf09255690b47199b95043e54bf9da8', x'8e7a91c5fe9c49d88c955f30a7c5072f', x'8b04824056554c1280393cc894c6df21') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8e7a91c5fe9c49d88c955f30a7c5072f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8e7a91c5fe9c49d88c955f30a7c5072f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8e7a91c5fe9c49d88c955f30a7c5072f', x'ef3a37568451408f91db225fd3a49386', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8e7a91c5fe9c49d88c955f30a7c5072f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8e7a91c5fe9c49d88c955f30a7c5072f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8e7a91c5fe9c49d88c955f30a7c5072f', x'9150f3a3a18a493fa526b74a7e49f1de', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4BF09255690B47199B95043E54BF9DA8/invite" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"4BF09255690B47199B95043E54BF9DA8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'da4647443c9f4ce9b082fa1fb12fff97' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'da4647443c9f4ce9b082fa1fb12fff97' AND `account_users`.`account_id` = x'4bf09255690b47199b95043e54bf9da8' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4bf09255690b47199b95043e54bf9da8' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4bf09255690b47199b95043e54bf9da8' AND `account_users`.`user_id` = x'da4647443c9f4ce9b082fa1fb12fff97' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 9.2ms | ActiveRecord: 1.7ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'da4647443c9f4ce9b082fa1fb12fff97' AND `account_users`.`account_id` = x'4bf09255690b47199b95043e54bf9da8' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'859700e7e0794719b6c228be326b8970' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Kð’Ui G›•>T¿¨' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'99da8102466c493dabce8ada1276d863' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b53406577d084899ae83396328c08fac'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'859700e7e0794719b6c228be326b8970' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'859700e7e0794719b6c228be326b8970', x'e96ce05273cc4765ba23c3945a5b0740', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4BF09255690B47199B95043E54BF9DA8/invite" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"4BF09255690B47199B95043E54BF9DA8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'da4647443c9f4ce9b082fa1fb12fff97' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'da4647443c9f4ce9b082fa1fb12fff97' AND `account_users`.`account_id` = x'4bf09255690b47199b95043e54bf9da8' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4bf09255690b47199b95043e54bf9da8' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4bf09255690b47199b95043e54bf9da8' AND `account_users`.`user_id` = x'da4647443c9f4ce9b082fa1fb12fff97' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'859700e7e0794719b6c228be326b8970' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 11.9ms | ActiveRecord: 1.9ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:27', '2012-12-31 12:46:27', 'facebook@test.test', '', NULL, x'6467106c6ed14494859fc55fee81198d', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:27') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6467106c6ed14494859fc55fee81198d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:27', 'User', x'2291877e4f834e199c6c50ed98ad0f57', 'e46812a4da1f0489affcf24444c7e94c', x'6467106c6ed14494859fc55fee81198d', 'User', '2012-12-31 12:46:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6467106c6ed14494859fc55fee81198d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:27', x'bff47a7da98b448a88ff1bcd4b831e3c', NULL, NULL, NULL, '2012-12-31 12:46:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:27', `updated_at` = '2012-12-31 12:46:27', `subdomain` = 'accountbff47a7d-a98b-448a-88ff-1bcd4b831e3c' WHERE `accounts`.`id` = x'bff47a7da98b448a88ff1bcd4b831e3c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bff47a7da98b448a88ff1bcd4b831e3c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bff47a7da98b448a88ff1bcd4b831e3c', x'd0dea79c4f1b4398af93681ba13e8cf4', x'6467106c6ed14494859fc55fee81198d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0dea79c4f1b4398af93681ba13e8cf4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0dea79c4f1b4398af93681ba13e8cf4', x'12035d985a3d4665a1c12c5098b7acbb', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0dea79c4f1b4398af93681ba13e8cf4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0dea79c4f1b4398af93681ba13e8cf4', x'be180d0ba4ec42e09cdd9db777b57c35', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:27 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18923c8732_f6180435d48384d4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'9260888922c640429450ad80f83834c0', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'6467106c6ed14494859fc55fee81198d')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6467106c6ed14494859fc55fee81198d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6467106c6ed14494859fc55fee81198d' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 187ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6467106c6ed14494859fc55fee81198d' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6467106c6ed14494859fc55fee81198d' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:27', 'tester@roles.test', '$2a$04$mN6TshJRG4KmiP4ocvdEeuhjTYvzjK5h.YvpLfWRwk9gLW.FmUoMi', NULL, x'623dc89a53d74d099aedc11c7c698400', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:27') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'623dc89a53d74d099aedc11c7c698400' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:27', 'User', x'fa67089c71be4679a10265b844f9850f', '10f04483579a59534e6b7330850ef56b', x'623dc89a53d74d099aedc11c7c698400', 'User', '2012-12-31 12:46:27') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'623dc89a53d74d099aedc11c7c698400' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:27', x'56f37853c34d4498a42f26af0babb830', NULL, NULL, NULL, '2012-12-31 12:46:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:27', `updated_at` = '2012-12-31 12:46:27', `subdomain` = 'account56f37853-c34d-4498-a42f-26af0babb830' WHERE `accounts`.`id` = x'56f37853c34d4498a42f26af0babb830' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'56f37853c34d4498a42f26af0babb830' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'56f37853c34d4498a42f26af0babb830', x'd4d724368ecb4a359c07499dc63e9b47', x'623dc89a53d74d099aedc11c7c698400') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd4d724368ecb4a359c07499dc63e9b47') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd4d724368ecb4a359c07499dc63e9b47' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd4d724368ecb4a359c07499dc63e9b47', x'9de7eeeab0f04ffc8fba4fb703ab6b9c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd4d724368ecb4a359c07499dc63e9b47') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd4d724368ecb4a359c07499dc63e9b47' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd4d724368ecb4a359c07499dc63e9b47', x'26c8646dbb6343139d2fd62cda9e1862', 'admin') Sent mail to tester@roles.test (7ms) Date: Mon, 31 Dec 2012 10:46:27 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e18923d8d58_f6180435d4838599@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bff47a7da98b448a88ff1bcd4b831e3c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bff47a7da98b448a88ff1bcd4b831e3c', x'90b0232d611c4c62acbc2ad834571a65', x'623dc89a53d74d099aedc11c7c698400') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'90b0232d611c4c62acbc2ad834571a65') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90b0232d611c4c62acbc2ad834571a65' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90b0232d611c4c62acbc2ad834571a65', x'c4e841faa7ad4228aaed451b789bf661', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'90b0232d611c4c62acbc2ad834571a65') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90b0232d611c4c62acbc2ad834571a65' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90b0232d611c4c62acbc2ad834571a65', x'0732d0caef914deb9412af2966838097', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/BFF47A7DA98B448A88FF1BCD4B831E3C/invite" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"BFF47A7DA98B448A88FF1BCD4B831E3C"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6467106c6ed14494859fc55fee81198d' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6467106c6ed14494859fc55fee81198d' AND `account_users`.`account_id` = x'bff47a7da98b448a88ff1bcd4b831e3c' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bff47a7da98b448a88ff1bcd4b831e3c' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bff47a7da98b448a88ff1bcd4b831e3c' AND `account_users`.`user_id` = x'6467106c6ed14494859fc55fee81198d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 9.0ms | ActiveRecord: 1.7ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6467106c6ed14494859fc55fee81198d' AND `account_users`.`account_id` = x'bff47a7da98b448a88ff1bcd4b831e3c' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0dea79c4f1b4398af93681ba13e8cf4' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¿ôz}©‹DŠˆÿÍKƒ<' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'12035d985a3d4665a1c12c5098b7acbb' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'be180d0ba4ec42e09cdd9db777b57c35'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0dea79c4f1b4398af93681ba13e8cf4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0dea79c4f1b4398af93681ba13e8cf4', x'cf99c1361ef1449abdf0df4d14406291', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/BFF47A7DA98B448A88FF1BCD4B831E3C/invite" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"BFF47A7DA98B448A88FF1BCD4B831E3C"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6467106c6ed14494859fc55fee81198d' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6467106c6ed14494859fc55fee81198d' AND `account_users`.`account_id` = x'bff47a7da98b448a88ff1bcd4b831e3c' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bff47a7da98b448a88ff1bcd4b831e3c' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bff47a7da98b448a88ff1bcd4b831e3c' AND `account_users`.`user_id` = x'6467106c6ed14494859fc55fee81198d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0dea79c4f1b4398af93681ba13e8cf4' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 9.2ms | ActiveRecord: 1.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:27 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:27', '2012-12-31 12:46:27', 'facebook@test.test', '', NULL, x'4f5915a9e4cf4605a1757107b15c069a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4f5915a9e4cf4605a1757107b15c069a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:27', 'User', x'9fb2d807e9854aa28d52014218511fde', 'cbdedf24dcd1c870b01f499df415bde3', x'4f5915a9e4cf4605a1757107b15c069a', 'User', '2012-12-31 12:46:27') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4f5915a9e4cf4605a1757107b15c069a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:27', x'9f005b9b17df4279986b5b6f67ac3418', NULL, NULL, NULL, '2012-12-31 12:46:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:27', `updated_at` = '2012-12-31 12:46:27', `subdomain` = 'account9f005b9b-17df-4279-986b-5b6f67ac3418' WHERE `accounts`.`id` = x'9f005b9b17df4279986b5b6f67ac3418' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f005b9b17df4279986b5b6f67ac3418' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9f005b9b17df4279986b5b6f67ac3418', x'65fb310a4bf84971ade0c4e070f2ab2b', x'4f5915a9e4cf4605a1757107b15c069a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65fb310a4bf84971ade0c4e070f2ab2b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65fb310a4bf84971ade0c4e070f2ab2b', x'f2a63c05f68f42daa98593053453842d', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65fb310a4bf84971ade0c4e070f2ab2b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65fb310a4bf84971ade0c4e070f2ab2b', x'50ad6bbccb6a4bcd9ade5aa410139fb8', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:28 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189244d42_f6180435d4838685@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'fef6ef33578841e49059193cb9803d6d', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'4f5915a9e4cf4605a1757107b15c069a')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f5915a9e4cf4605a1757107b15c069a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f5915a9e4cf4605a1757107b15c069a' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 67ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4f5915a9e4cf4605a1757107b15c069a' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4f5915a9e4cf4605a1757107b15c069a' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:28', 'tester@roles.test', '$2a$04$FXrNfZhFW4XtJ8B0ei50e.yaJEmI85tdMTvLKGqtYbUOuBHwTSvyO', NULL, x'f523a8e726ec4c94b124641d58333a70', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f523a8e726ec4c94b124641d58333a70' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:28', 'User', x'9aae8149e01147958ebedd564af724bd', '8a968880cf8c78eb0541edc8a9558116', x'f523a8e726ec4c94b124641d58333a70', 'User', '2012-12-31 12:46:28') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f523a8e726ec4c94b124641d58333a70' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:28', x'81f44340eeb9403b86d85eb32b6242cc', NULL, NULL, NULL, '2012-12-31 12:46:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:28', `updated_at` = '2012-12-31 12:46:28', `subdomain` = 'account81f44340-eeb9-403b-86d8-5eb32b6242cc' WHERE `accounts`.`id` = x'81f44340eeb9403b86d85eb32b6242cc' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'81f44340eeb9403b86d85eb32b6242cc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'81f44340eeb9403b86d85eb32b6242cc', x'ee7e2a5865c648a8afb042c7c9d92985', x'f523a8e726ec4c94b124641d58333a70') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ee7e2a5865c648a8afb042c7c9d92985') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ee7e2a5865c648a8afb042c7c9d92985' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ee7e2a5865c648a8afb042c7c9d92985', x'ab86c6ef40554b709bc170dd188b06fd', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ee7e2a5865c648a8afb042c7c9d92985') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ee7e2a5865c648a8afb042c7c9d92985' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ee7e2a5865c648a8afb042c7c9d92985', x'24d5250fc1b048fd91ddb8994d006093', 'admin') Sent mail to tester@roles.test (7ms) Date: Mon, 31 Dec 2012 10:46:28 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e1892438a54_f6180435d483871b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f005b9b17df4279986b5b6f67ac3418' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9f005b9b17df4279986b5b6f67ac3418', x'c55ee2d630bb4ca19b9fc28483e4c53b', x'f523a8e726ec4c94b124641d58333a70') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c55ee2d630bb4ca19b9fc28483e4c53b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c55ee2d630bb4ca19b9fc28483e4c53b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c55ee2d630bb4ca19b9fc28483e4c53b', x'cbc7b89d60f9462c853fcb7710c9286f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c55ee2d630bb4ca19b9fc28483e4c53b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c55ee2d630bb4ca19b9fc28483e4c53b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c55ee2d630bb4ca19b9fc28483e4c53b', x'93e509bd3781489fab110a3e5f255130', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/9F005B9B17DF4279986B5B6F67AC3418/invite" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"9F005B9B17DF4279986B5B6F67AC3418"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4f5915a9e4cf4605a1757107b15c069a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4f5915a9e4cf4605a1757107b15c069a' AND `account_users`.`account_id` = x'9f005b9b17df4279986b5b6f67ac3418' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f005b9b17df4279986b5b6f67ac3418' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9f005b9b17df4279986b5b6f67ac3418' AND `account_users`.`user_id` = x'4f5915a9e4cf4605a1757107b15c069a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.8ms | ActiveRecord: 2.0ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4f5915a9e4cf4605a1757107b15c069a' AND `account_users`.`account_id` = x'9f005b9b17df4279986b5b6f67ac3418' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'50ad6bbccb6a4bcd9ade5aa410139fb8' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65fb310a4bf84971ade0c4e070f2ab2b' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f2a63c05f68f42daa98593053453842d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'65fb310a4bf84971ade0c4e070f2ab2b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'65fb310a4bf84971ade0c4e070f2ab2b', x'b7bbbf4479a64f69abf97fa17ed40c1b', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/9F005B9B17DF4279986B5B6F67AC3418/invite" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"9F005B9B17DF4279986B5B6F67AC3418"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4f5915a9e4cf4605a1757107b15c069a' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4f5915a9e4cf4605a1757107b15c069a' AND `account_users`.`account_id` = x'9f005b9b17df4279986b5b6f67ac3418' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f005b9b17df4279986b5b6f67ac3418' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9f005b9b17df4279986b5b6f67ac3418' AND `account_users`.`user_id` = x'4f5915a9e4cf4605a1757107b15c069a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'65fb310a4bf84971ade0c4e070f2ab2b' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 9.0ms | ActiveRecord: 1.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:28', '2012-12-31 12:46:28', 'facebook@test.test', '', NULL, x'cb78e01ee89545d49cfcea7e781a3032', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:28') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cb78e01ee89545d49cfcea7e781a3032' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:28', 'User', x'56e00710155f446b98f2f3a24fe525ae', '8ac4a189cb6ce7ed068d5571091ba3c0', x'cb78e01ee89545d49cfcea7e781a3032', 'User', '2012-12-31 12:46:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cb78e01ee89545d49cfcea7e781a3032' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:28', x'68e25d72c56e422d9f090bcaeb6eff92', NULL, NULL, NULL, '2012-12-31 12:46:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:28', `updated_at` = '2012-12-31 12:46:28', `subdomain` = 'account68e25d72-c56e-422d-9f09-0bcaeb6eff92' WHERE `accounts`.`id` = x'68e25d72c56e422d9f090bcaeb6eff92' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68e25d72c56e422d9f090bcaeb6eff92' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'68e25d72c56e422d9f090bcaeb6eff92', x'711fd20cbb4c447ebb486abdf9db452d', x'cb78e01ee89545d49cfcea7e781a3032') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'711fd20cbb4c447ebb486abdf9db452d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'711fd20cbb4c447ebb486abdf9db452d', x'c46d65a7837c4a9e9ea714ff1c046f61', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'711fd20cbb4c447ebb486abdf9db452d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'711fd20cbb4c447ebb486abdf9db452d', x'70218472c71749e08cfda9a5d0bddc11', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:28 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1892456a77_f6180435d48388e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'f5bc5fd8df87457ba456f0fa149b97a8', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'cb78e01ee89545d49cfcea7e781a3032')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cb78e01ee89545d49cfcea7e781a3032' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:28', 'tester@roles.test', '$2a$04$Ozp51pi5lFZqfxasoGcCT.oh7DTgkdQCC.poiwFoIWeyVtCKvM7oy', NULL, x'1277d5ae8a114f29998e0f01ecdc377e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:28') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1277d5ae8a114f29998e0f01ecdc377e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:28', 'User', x'24808273a099436d846c396894b90ee6', '71321f5ef1e998ca1647b95884917a0e', x'1277d5ae8a114f29998e0f01ecdc377e', 'User', '2012-12-31 12:46:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1277d5ae8a114f29998e0f01ecdc377e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:28', x'102cc4c48ad7436284662079595aa922', NULL, NULL, NULL, '2012-12-31 12:46:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:28', `updated_at` = '2012-12-31 12:46:28', `subdomain` = 'account102cc4c4-8ad7-4362-8466-2079595aa922' WHERE `accounts`.`id` = x'102cc4c48ad7436284662079595aa922' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'102cc4c48ad7436284662079595aa922' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'102cc4c48ad7436284662079595aa922', x'4b51a9e74f914ed599ca9162205e67b1', x'1277d5ae8a114f29998e0f01ecdc377e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4b51a9e74f914ed599ca9162205e67b1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b51a9e74f914ed599ca9162205e67b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b51a9e74f914ed599ca9162205e67b1', x'7824602721e3416d8feac24a3bf8335a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4b51a9e74f914ed599ca9162205e67b1') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b51a9e74f914ed599ca9162205e67b1' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b51a9e74f914ed599ca9162205e67b1', x'f2c2c71dfcc24be094d98caf5913b180', 'admin') Sent mail to tester@roles.test (6ms) Date: Mon, 31 Dec 2012 10:46:28 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e18924674b9_f6180435d48389d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68e25d72c56e422d9f090bcaeb6eff92' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'68e25d72c56e422d9f090bcaeb6eff92', x'344c12c8a4574f55a62e0b4a48d8d38e', x'1277d5ae8a114f29998e0f01ecdc377e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'344c12c8a4574f55a62e0b4a48d8d38e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'344c12c8a4574f55a62e0b4a48d8d38e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'344c12c8a4574f55a62e0b4a48d8d38e', x'3193697ba743465aa11255be7e57ab36', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'344c12c8a4574f55a62e0b4a48d8d38e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'344c12c8a4574f55a62e0b4a48d8d38e' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'344c12c8a4574f55a62e0b4a48d8d38e', x'46090d6c28754c8bb88164ff5df78542', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/68E25D72C56E422D9F090BCAEB6EFF92/invite" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"68E25D72C56E422D9F090BCAEB6EFF92"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cb78e01ee89545d49cfcea7e781a3032' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' AND `account_users`.`account_id` = x'68e25d72c56e422d9f090bcaeb6eff92' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68e25d72c56e422d9f090bcaeb6eff92' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'68e25d72c56e422d9f090bcaeb6eff92' AND `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 9.1ms | ActiveRecord: 1.7ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' AND `account_users`.`account_id` = x'68e25d72c56e422d9f090bcaeb6eff92' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'70218472c71749e08cfda9a5d0bddc11' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'711fd20cbb4c447ebb486abdf9db452d' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'hâ]rÅnB-Ÿ Êënÿ’' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c46d65a7837c4a9e9ea714ff1c046f61'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'711fd20cbb4c447ebb486abdf9db452d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'711fd20cbb4c447ebb486abdf9db452d', x'6c6446214a784375a0da35a88540a3d6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/68E25D72C56E422D9F090BCAEB6EFF92/invite" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"68E25D72C56E422D9F090BCAEB6EFF92"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cb78e01ee89545d49cfcea7e781a3032' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' AND `account_users`.`account_id` = x'68e25d72c56e422d9f090bcaeb6eff92' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68e25d72c56e422d9f090bcaeb6eff92' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'68e25d72c56e422d9f090bcaeb6eff92' AND `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'68e25d72c56e422d9f090bcaeb6eff92' AND `account_users`.`user_id` = x'cb78e01ee89545d49cfcea7e781a3032' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'711fd20cbb4c447ebb486abdf9db452d' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 147ms (Views: 139.3ms | ActiveRecord: 1.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:28', '2012-12-31 12:46:28', 'facebook@test.test', '', NULL, x'f544a60bcc68442499c42fb918d6aef2', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f544a60bcc68442499c42fb918d6aef2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:28', 'User', x'b821802eb88240e2b90c119a3d310c2f', '5e0f82e61549eaffee46fb6a0cbf1d7c', x'f544a60bcc68442499c42fb918d6aef2', 'User', '2012-12-31 12:46:28') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f544a60bcc68442499c42fb918d6aef2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:28', x'be2cec551a1740f2b0a96e50cec370dd', NULL, NULL, NULL, '2012-12-31 12:46:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:28', `updated_at` = '2012-12-31 12:46:28', `subdomain` = 'accountbe2cec55-1a17-40f2-b0a9-6e50cec370dd' WHERE `accounts`.`id` = x'be2cec551a1740f2b0a96e50cec370dd' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'be2cec551a1740f2b0a96e50cec370dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'be2cec551a1740f2b0a96e50cec370dd', x'fe45793cb399402fbb4b77be428a7497', x'f544a60bcc68442499c42fb918d6aef2') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe45793cb399402fbb4b77be428a7497' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe45793cb399402fbb4b77be428a7497', x'c8954aa3c48f472a99b2f2fe153b13e5', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe45793cb399402fbb4b77be428a7497' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe45793cb399402fbb4b77be428a7497', x'bc7d5966073f44ff828e5604a28e5b5b', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:28 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18924a4c17_f6180435d4839065@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8898426d9dc04937a13e255c8f994c4d', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'f544a60bcc68442499c42fb918d6aef2')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 5.8ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f544a60bcc68442499c42fb918d6aef2' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:28', 'tester@roles.test', '$2a$04$5GbcAotjgercDYsgbRlNYee/LHcmY93QiGuOM3ySMyelYasjR6mYS', NULL, x'f01267fa0f0849f0a746cb8ee42eea96', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:28') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f01267fa0f0849f0a746cb8ee42eea96' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:28', 'User', x'255d5303265e4dc1acda48f110a24e8b', 'cb5554c6fd661fdef234ca3777a5ccd2', x'f01267fa0f0849f0a746cb8ee42eea96', 'User', '2012-12-31 12:46:28') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f01267fa0f0849f0a746cb8ee42eea96' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:28', x'd2578eaae8d344108e544af90b236806', NULL, NULL, NULL, '2012-12-31 12:46:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:28', `updated_at` = '2012-12-31 12:46:28', `subdomain` = 'accountd2578eaa-e8d3-4410-8e54-4af90b236806' WHERE `accounts`.`id` = x'd2578eaae8d344108e544af90b236806' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd2578eaae8d344108e544af90b236806' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd2578eaae8d344108e544af90b236806', x'82d1071897df4f0c9fc06a353a808be4', x'f01267fa0f0849f0a746cb8ee42eea96') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'82d1071897df4f0c9fc06a353a808be4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'82d1071897df4f0c9fc06a353a808be4' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'82d1071897df4f0c9fc06a353a808be4', x'88a9dcfb9c524a6f905a75f6cac71440', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'82d1071897df4f0c9fc06a353a808be4') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'82d1071897df4f0c9fc06a353a808be4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'82d1071897df4f0c9fc06a353a808be4', x'7274b06979e945deae8e2ed7727fec18', 'admin') Sent mail to tester@roles.test (6ms) Date: Mon, 31 Dec 2012 10:46:28 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e18924b5bf8_f6180435d4839181@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'be2cec551a1740f2b0a96e50cec370dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'be2cec551a1740f2b0a96e50cec370dd', x'b3828d1f53b9430c8af2e591dde9ec86', x'f01267fa0f0849f0a746cb8ee42eea96') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b3828d1f53b9430c8af2e591dde9ec86') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3828d1f53b9430c8af2e591dde9ec86' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3828d1f53b9430c8af2e591dde9ec86', x'b7544556e1de472eb44388c77285e8ef', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b3828d1f53b9430c8af2e591dde9ec86') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3828d1f53b9430c8af2e591dde9ec86' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3828d1f53b9430c8af2e591dde9ec86', x'406c9cf0c5b54583bb0f5d68a77ff909', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/BE2CEC551A1740F2B0A96E50CEC370DD/invite" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"BE2CEC551A1740F2B0A96E50CEC370DD"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f544a60bcc68442499c42fb918d6aef2' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' AND `account_users`.`account_id` = x'be2cec551a1740f2b0a96e50cec370dd' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'be2cec551a1740f2b0a96e50cec370dd' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'be2cec551a1740f2b0a96e50cec370dd' AND `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 9.2ms | ActiveRecord: 1.9ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' AND `account_users`.`account_id` = x'be2cec551a1740f2b0a96e50cec370dd' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'bc7d5966073f44ff828e5604a28e5b5b' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe45793cb399402fbb4b77be428a7497' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c8954aa3c48f472a99b2f2fe153b13e5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe45793cb399402fbb4b77be428a7497' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe45793cb399402fbb4b77be428a7497', x'021fb7cdff1a4ee7806fa4e4ea95d946', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/BE2CEC551A1740F2B0A96E50CEC370DD/invite" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"BE2CEC551A1740F2B0A96E50CEC370DD"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f544a60bcc68442499c42fb918d6aef2' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' AND `account_users`.`account_id` = x'be2cec551a1740f2b0a96e50cec370dd' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'be2cec551a1740f2b0a96e50cec370dd' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'be2cec551a1740f2b0a96e50cec370dd' AND `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'be2cec551a1740f2b0a96e50cec370dd' AND `account_users`.`user_id` = x'f544a60bcc68442499c42fb918d6aef2' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'fe45793cb399402fbb4b77be428a7497' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 19ms (Views: 11.0ms | ActiveRecord: 1.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:28 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:28', '2012-12-31 12:46:28', 'facebook@test.test', '', NULL, x'62f81230a6fe40089bcf246ed1e65c0b', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:28') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'62f81230a6fe40089bcf246ed1e65c0b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:28', 'User', x'44093551b5c7481aa2d6c50380e479fa', '5d7eca050bbbe33f5c7ca0cb4a148640', x'62f81230a6fe40089bcf246ed1e65c0b', 'User', '2012-12-31 12:46:28') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'62f81230a6fe40089bcf246ed1e65c0b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:28', x'369dbb53a5d244149fa0708f4ee40ec7', NULL, NULL, NULL, '2012-12-31 12:46:28')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:28', `updated_at` = '2012-12-31 12:46:28', `subdomain` = 'account369dbb53-a5d2-4414-9fa0-708f4ee40ec7' WHERE `accounts`.`id` = x'369dbb53a5d244149fa0708f4ee40ec7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'369dbb53a5d244149fa0708f4ee40ec7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'369dbb53a5d244149fa0708f4ee40ec7', x'0bbf2e537583491380c58fe4b9c48333', x'62f81230a6fe40089bcf246ed1e65c0b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0bbf2e537583491380c58fe4b9c48333' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0bbf2e537583491380c58fe4b9c48333', x'01f6d512d2fa4a81967fa575fc2f0fa9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0bbf2e537583491380c58fe4b9c48333' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0bbf2e537583491380c58fe4b9c48333', x'f6c8fe493609475088429b0a7bc03c8b', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189255db2_f6180435d4839294@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'4cbea597a0a74a59bc1eefa6bac4338e', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'62f81230a6fe40089bcf246ed1e65c0b')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 215ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'62f81230a6fe40089bcf246ed1e65c0b' LIMIT 1 Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:29', 'tester@roles.test', '$2a$04$w3lS4ULUG9HFAES9xDqgCOZw9MEU.xW1zQNwpmK2wl7ANE.WWvFGS', NULL, x'8c44493435a146bf975f7f2c4821347a', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8c44493435a146bf975f7f2c4821347a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:29', 'User', x'c9026cde3a6048e598281bcee30101a2', 'e3eb58b54c96c0afb205d7b37dc68d1b', x'8c44493435a146bf975f7f2c4821347a', 'User', '2012-12-31 12:46:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8c44493435a146bf975f7f2c4821347a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:29', x'ac9e2efccc214c9ab6c370f366cdba45', NULL, NULL, NULL, '2012-12-31 12:46:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:29', `updated_at` = '2012-12-31 12:46:29', `subdomain` = 'accountac9e2efc-cc21-4c9a-b6c3-70f366cdba45' WHERE `accounts`.`id` = x'ac9e2efccc214c9ab6c370f366cdba45' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ac9e2efccc214c9ab6c370f366cdba45' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ac9e2efccc214c9ab6c370f366cdba45', x'aecd714118954c129d8992ca49387fab', x'8c44493435a146bf975f7f2c4821347a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aecd714118954c129d8992ca49387fab') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aecd714118954c129d8992ca49387fab' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aecd714118954c129d8992ca49387fab', x'42c9218b80254ca5b24b26221e192972', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aecd714118954c129d8992ca49387fab') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aecd714118954c129d8992ca49387fab' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aecd714118954c129d8992ca49387fab', x'e74f772c15cf44468bba57297d04dfb6', 'admin') Sent mail to tester@roles.test (7ms) Date: Mon, 31 Dec 2012 10:46:29 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e189251a594_f6180435d4839380@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'369dbb53a5d244149fa0708f4ee40ec7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'369dbb53a5d244149fa0708f4ee40ec7', x'8b039ddc75f9469cacb2a5c54f52d690', x'8c44493435a146bf975f7f2c4821347a') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8b039ddc75f9469cacb2a5c54f52d690') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b039ddc75f9469cacb2a5c54f52d690' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b039ddc75f9469cacb2a5c54f52d690', x'c5761a8d2d29451580659557df651507', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8b039ddc75f9469cacb2a5c54f52d690') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b039ddc75f9469cacb2a5c54f52d690' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b039ddc75f9469cacb2a5c54f52d690', x'0b82d008186a49d8b15b642c02f8b62f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/369DBB53A5D244149FA0708F4EE40EC7/invite" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"369DBB53A5D244149FA0708F4EE40EC7"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'62f81230a6fe40089bcf246ed1e65c0b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' AND `account_users`.`account_id` = x'369dbb53a5d244149fa0708f4ee40ec7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'369dbb53a5d244149fa0708f4ee40ec7' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'369dbb53a5d244149fa0708f4ee40ec7' AND `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.8ms | ActiveRecord: 1.7ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' AND `account_users`.`account_id` = x'369dbb53a5d244149fa0708f4ee40ec7' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0bbf2e537583491380c58fe4b9c48333' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '6»S¥ÒDŸ pNäÇ' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'01f6d512d2fa4a81967fa575fc2f0fa9' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f6c8fe493609475088429b0a7bc03c8b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0bbf2e537583491380c58fe4b9c48333' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0bbf2e537583491380c58fe4b9c48333', x'115aec63708a410c96b106b873907cea', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/369DBB53A5D244149FA0708F4EE40EC7/invite" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"369DBB53A5D244149FA0708F4EE40EC7"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'62f81230a6fe40089bcf246ed1e65c0b' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' AND `account_users`.`account_id` = x'369dbb53a5d244149fa0708f4ee40ec7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'369dbb53a5d244149fa0708f4ee40ec7' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'369dbb53a5d244149fa0708f4ee40ec7' AND `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'369dbb53a5d244149fa0708f4ee40ec7' AND `account_users`.`user_id` = x'62f81230a6fe40089bcf246ed1e65c0b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0bbf2e537583491380c58fe4b9c48333' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 19ms (Views: 11.2ms | ActiveRecord: 1.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:29', '2012-12-31 12:46:29', 'facebook@test.test', '', NULL, x'83499ca7d205407f97eb8fc873580903', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'83499ca7d205407f97eb8fc873580903' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:29', 'User', x'67fe425ca1d84baa8e5010bf43abf37b', '55ab4020dd7428bcdecb84896c6c36fb', x'83499ca7d205407f97eb8fc873580903', 'User', '2012-12-31 12:46:29') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'83499ca7d205407f97eb8fc873580903' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:29', x'4343674e8fa34ed8906a7e2ad3d33d3a', NULL, NULL, NULL, '2012-12-31 12:46:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:29', `updated_at` = '2012-12-31 12:46:29', `subdomain` = 'account4343674e-8fa3-4ed8-906a-7e2ad3d33d3a' WHERE `accounts`.`id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4343674e8fa34ed8906a7e2ad3d33d3a', x'f0ae67b3edcf4263b6a10624eef112f2', x'83499ca7d205407f97eb8fc873580903') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0ae67b3edcf4263b6a10624eef112f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0ae67b3edcf4263b6a10624eef112f2', x'c94eae8188d446b8b8beffde22fc40ca', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0ae67b3edcf4263b6a10624eef112f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0ae67b3edcf4263b6a10624eef112f2', x'c1e739514378467dbf10c6810b36043e', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1892538715_f6180435d48394ae@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'301b185ed75240fd92409ebea7de2ef2', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'83499ca7d205407f97eb8fc873580903')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 5.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'83499ca7d205407f97eb8fc873580903' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:29', 'tester@roles.test', '$2a$04$4zlvH3OzGXmzu/wmok8zoOvQw0kdipL5faDY/g8ATovV4HnzuJoEG', NULL, x'ebdca790023242a197ac0bb018cdc413', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ebdca790023242a197ac0bb018cdc413' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:29', 'User', x'120018dc166c41af88c95ee7256a524f', '745b543bbd6a38f82a820f1a18907d57', x'ebdca790023242a197ac0bb018cdc413', 'User', '2012-12-31 12:46:29') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ebdca790023242a197ac0bb018cdc413' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:29', x'cc686418490b4eb3b4356f3c972aa57c', NULL, NULL, NULL, '2012-12-31 12:46:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:29', `updated_at` = '2012-12-31 12:46:29', `subdomain` = 'accountcc686418-490b-4eb3-b435-6f3c972aa57c' WHERE `accounts`.`id` = x'cc686418490b4eb3b4356f3c972aa57c' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cc686418490b4eb3b4356f3c972aa57c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cc686418490b4eb3b4356f3c972aa57c', x'6059e3a7b7d048559a96503c67462edb', x'ebdca790023242a197ac0bb018cdc413') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6059e3a7b7d048559a96503c67462edb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6059e3a7b7d048559a96503c67462edb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6059e3a7b7d048559a96503c67462edb', x'72385afa993c447f864295b54881b12e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6059e3a7b7d048559a96503c67462edb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6059e3a7b7d048559a96503c67462edb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6059e3a7b7d048559a96503c67462edb', x'd3803b66bac7442cb4ead23150592e66', 'admin') Sent mail to tester@roles.test (7ms) Date: Mon, 31 Dec 2012 10:46:29 -0200 From: Iugu Reply-To: Iugu To: tester@roles.test Message-ID: <50e189256895b_f6180435d48395b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4343674e8fa34ed8906a7e2ad3d33d3a', x'e72ebe95989a463a8eb919f9d452771c', x'ebdca790023242a197ac0bb018cdc413') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e72ebe95989a463a8eb919f9d452771c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e72ebe95989a463a8eb919f9d452771c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e72ebe95989a463a8eb919f9d452771c', x'e47151e002224a219a62224ff4618a1f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e72ebe95989a463a8eb919f9d452771c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e72ebe95989a463a8eb919f9d452771c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e72ebe95989a463a8eb919f9d452771c', x'de78f4cc19504cc6b3389a59366a1894', 'admin')  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4343674E8FA34ED8906A7E2AD3D33D3A/invite" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"4343674E8FA34ED8906A7E2AD3D33D3A"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'83499ca7d205407f97eb8fc873580903' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' AND `account_users`.`account_id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' AND `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.8ms | ActiveRecord: 1.6ms) AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' AND `account_users`.`account_id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c1e739514378467dbf10c6810b36043e' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0ae67b3edcf4263b6a10624eef112f2' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'CCgN£NØj~*ÓÓ=:' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c94eae8188d446b8b8beffde22fc40ca'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0ae67b3edcf4263b6a10624eef112f2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0ae67b3edcf4263b6a10624eef112f2', x'85a2b67895384345a6246c96df414c8c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4343674E8FA34ED8906A7E2AD3D33D3A/invite" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"4343674E8FA34ED8906A7E2AD3D33D3A"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'83499ca7d205407f97eb8fc873580903' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' AND `account_users`.`account_id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' AND `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4343674e8fa34ed8906a7e2ad3d33d3a' AND `account_users`.`user_id` = x'83499ca7d205407f97eb8fc873580903' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0ae67b3edcf4263b6a10624eef112f2' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 19ms (Views: 10.8ms | ActiveRecord: 2.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:29', '2012-12-31 12:46:29', 'facebook@test.test', '', NULL, x'882bf1a83c4540e4b18ba50fd7fa44eb', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:29', 'User', x'143d9b9f321a4401aa3b411773c1ac66', 'b214f038347a44cc6f01503b7950a5b9', x'882bf1a83c4540e4b18ba50fd7fa44eb', 'User', '2012-12-31 12:46:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:29', x'3676da8931db4c23a38982962a4b353b', NULL, NULL, NULL, '2012-12-31 12:46:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:29', `updated_at` = '2012-12-31 12:46:29', `subdomain` = 'account3676da89-31db-4c23-a389-82962a4b353b' WHERE `accounts`.`id` = x'3676da8931db4c23a38982962a4b353b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3676da8931db4c23a38982962a4b353b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3676da8931db4c23a38982962a4b353b', x'c126e5c36033449bb2e3188d8ac9dd61', x'882bf1a83c4540e4b18ba50fd7fa44eb') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c126e5c36033449bb2e3188d8ac9dd61') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c126e5c36033449bb2e3188d8ac9dd61' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c126e5c36033449bb2e3188d8ac9dd61', x'f0bf8f598a204fe5b9a2550f04f769a3', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c126e5c36033449bb2e3188d8ac9dd61') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c126e5c36033449bb2e3188d8ac9dd61' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c126e5c36033449bb2e3188d8ac9dd61', x'c3ebacad8495455cbcafb34a77dce1dd', 'admin') Sent mail to facebook@test.test (9ms) Date: Mon, 31 Dec 2012 10:46:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1892586e73_f6180435d4839665@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'60801ec372e544cba0258a3244753a4a', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'882bf1a83c4540e4b18ba50fd7fa44eb')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 5.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_882bf1a8-3c45-40e4-b18b-a50fd7fa44eb_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'882bf1a83c4540e4b18ba50fd7fa44eb' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 39ms (Views: 34.2ms | ActiveRecord: 2.3ms)  (13.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:29', '2012-12-31 12:46:29', 'facebook@test.test', '', NULL, x'5ede75c62ecf479cbe79dcd8ac189025', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:29', 'User', x'5fee03fc6af34edcbb5c94540056d735', '550f253a6de5fd5ba22a8fe19cfbd11e', x'5ede75c62ecf479cbe79dcd8ac189025', 'User', '2012-12-31 12:46:29') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:29', x'0d893721311140c3823c0da3b48ec43d', NULL, NULL, NULL, '2012-12-31 12:46:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:29', `updated_at` = '2012-12-31 12:46:29', `subdomain` = 'account0d893721-3111-40c3-823c-0da3b48ec43d' WHERE `accounts`.`id` = x'0d893721311140c3823c0da3b48ec43d' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0d893721311140c3823c0da3b48ec43d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0d893721311140c3823c0da3b48ec43d', x'4b3b6e2f659f4cf084f75afacdf4ab49', x'5ede75c62ecf479cbe79dcd8ac189025') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4b3b6e2f659f4cf084f75afacdf4ab49') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b3b6e2f659f4cf084f75afacdf4ab49' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b3b6e2f659f4cf084f75afacdf4ab49', x'ecccdf9539ce4cfa952efe91ff20f46e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4b3b6e2f659f4cf084f75afacdf4ab49') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b3b6e2f659f4cf084f75afacdf4ab49' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b3b6e2f659f4cf084f75afacdf4ab49', x'8f62b3f1eed1412a9f88b3276599f6c6', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:29 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18925c8706_f6180435d4839781@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ef3acfa82226494b8cee0859b86d748e', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'5ede75c62ecf479cbe79dcd8ac189025')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ede75c62ecf479cbe79dcd8ac189025' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 6.0ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5ede75c62ecf479cbe79dcd8ac189025' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5ede75c62ecf479cbe79dcd8ac189025' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5ede75c6-2ecf-479c-be79-dcd8ac189025_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5ede75c62ecf479cbe79dcd8ac189025' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 19.7ms | ActiveRecord: 2.1ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5ede75c62ecf479cbe79dcd8ac189025' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5ede75c6-2ecf-479c-be79-dcd8ac189025_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5ede75c62ecf479cbe79dcd8ac189025' SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5ede75c62ecf479cbe79dcd8ac189025' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 20.3ms | ActiveRecord: 1.7ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:29 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:29', '2012-12-31 12:46:29', 'facebook@test.test', '', NULL, x'b2fa6c0b2edf47cfae0445de015e53e7', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:29') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:29', 'User', x'9c4049d80338483c89978047f69d9869', '610899b1ad5602bf6413f51f14776d7a', x'b2fa6c0b2edf47cfae0445de015e53e7', 'User', '2012-12-31 12:46:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:29', x'97888d65c779404f884ad7ea65d0594e', NULL, NULL, NULL, '2012-12-31 12:46:29')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:29', `updated_at` = '2012-12-31 12:46:29', `subdomain` = 'account97888d65-c779-404f-884a-d7ea65d0594e' WHERE `accounts`.`id` = x'97888d65c779404f884ad7ea65d0594e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'97888d65c779404f884ad7ea65d0594e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'97888d65c779404f884ad7ea65d0594e', x'f88c3c2bce5c47c7838d96063ebcc499', x'b2fa6c0b2edf47cfae0445de015e53e7') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f88c3c2bce5c47c7838d96063ebcc499') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f88c3c2bce5c47c7838d96063ebcc499' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f88c3c2bce5c47c7838d96063ebcc499', x'1df2555a7e774bab80168ca934124e3a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f88c3c2bce5c47c7838d96063ebcc499') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f88c3c2bce5c47c7838d96063ebcc499' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f88c3c2bce5c47c7838d96063ebcc499', x'71d23db2498346db9f9af450a26327d6', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189261426f_f6180435d48398e6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'd4e46677808a41f3ac55255a95a07eba', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'b2fa6c0b2edf47cfae0445de015e53e7')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 189ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b2fa6c0b2edf47cfae0445de015e53e7' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b2fa6c0b2edf47cfae0445de015e53e7' LIMIT 1 ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_b2fa6c0b-2edf-47cf-ae04-45de015e53e7_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 1.8ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b2fa6c0b2edf47cfae0445de015e53e7' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_b2fa6c0b-2edf-47cf-ae04-45de015e53e7_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2fa6c0b2edf47cfae0445de015e53e7' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 1.9ms)  (7.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:30', '2012-12-31 12:46:30', 'facebook@test.test', '', NULL, x'1412e9e2c5a44a0ea3d4e4a5666c6600', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:30', 'User', x'6d646dec9e9c4a95a3555b2c3f2794b1', '36e25633db94de09844b496350262948', x'1412e9e2c5a44a0ea3d4e4a5666c6600', 'User', '2012-12-31 12:46:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:30', x'69a9ea9b3c444b6ea4877d49480901e5', NULL, NULL, NULL, '2012-12-31 12:46:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:30', `updated_at` = '2012-12-31 12:46:30', `subdomain` = 'account69a9ea9b-3c44-4b6e-a487-7d49480901e5' WHERE `accounts`.`id` = x'69a9ea9b3c444b6ea4877d49480901e5' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'69a9ea9b3c444b6ea4877d49480901e5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'69a9ea9b3c444b6ea4877d49480901e5', x'510bcab3f704454397119962681c6477', x'1412e9e2c5a44a0ea3d4e4a5666c6600') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'510bcab3f704454397119962681c6477') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'510bcab3f704454397119962681c6477' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'510bcab3f704454397119962681c6477', x'5fb8a2df158c4b4fa95d879580eb79c2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'510bcab3f704454397119962681c6477') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'510bcab3f704454397119962681c6477' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'510bcab3f704454397119962681c6477', x'9741010081cf4c6fb1317be89c7947fa', 'admin') Sent mail to facebook@test.test (8ms) Date: Mon, 31 Dec 2012 10:46:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18926357c1_f6180435d48399d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'bab3be075ece4fa39f29e44113cdde4f', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'1412e9e2c5a44a0ea3d4e4a5666c6600')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 5.4ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1412e9e2-c5a4-4a0e-a3d4-e4a5666c6600_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 154ms (Views: 150.0ms | ActiveRecord: 2.2ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:30', NULL, '--- !ruby/struct:DestroyUserJob\nid: 1412e9e2-c5a4-4a0e-a3d4-e4a5666c6600\n', NULL, NULL, NULL, 0, 'user_1412e9e2-c5a4-4a0e-a3d4-e4a5666c6600_destroy', '2012-12-31 12:46:30', '2012-12-31 12:46:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1412e9e2-c5a4-4a0e-a3d4-e4a5666c6600_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 10ms (ActiveRecord: 1.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1412e9e2-c5a4-4a0e-a3d4-e4a5666c6600_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1412e9e2-c5a4-4a0e-a3d4-e4a5666c6600_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1412e9e2-c5a4-4a0e-a3d4-e4a5666c6600_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'1412e9e2c5a44a0ea3d4e4a5666c6600' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 25ms (Views: 21.1ms | ActiveRecord: 1.7ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:30', '2012-12-31 12:46:30', 'facebook@test.test', '', NULL, x'390625d270844dd9aff614c6b7106eb0', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'390625d270844dd9aff614c6b7106eb0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:30', 'User', x'896c9f6e45034eceaf3ad4a257a2a3b7', '371093fa7922e40de6309acde9ad06b7', x'390625d270844dd9aff614c6b7106eb0', 'User', '2012-12-31 12:46:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'390625d270844dd9aff614c6b7106eb0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:30', x'4dbdf50e71e849759ae117b2f9d943ea', NULL, NULL, NULL, '2012-12-31 12:46:30')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:30', `updated_at` = '2012-12-31 12:46:30', `subdomain` = 'account4dbdf50e-71e8-4975-9ae1-17b2f9d943ea' WHERE `accounts`.`id` = x'4dbdf50e71e849759ae117b2f9d943ea' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4dbdf50e71e849759ae117b2f9d943ea' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4dbdf50e71e849759ae117b2f9d943ea', x'1a2101f5f7034773bd972bf52986e1b3', x'390625d270844dd9aff614c6b7106eb0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1a2101f5f7034773bd972bf52986e1b3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a2101f5f7034773bd972bf52986e1b3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a2101f5f7034773bd972bf52986e1b3', x'90aa46ca673c4ef295cda123d1202e55', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1a2101f5f7034773bd972bf52986e1b3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a2101f5f7034773bd972bf52986e1b3' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a2101f5f7034773bd972bf52986e1b3', x'b0562a6592d64497bd703687b7eb0147', 'admin') Sent mail to facebook@test.test (6ms) Date: Mon, 31 Dec 2012 10:46:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1892679066_f6180435d484003c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8bc35e136ef94e5db79f5ac8ccdb0d36', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'390625d270844dd9aff614c6b7106eb0')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'390625d270844dd9aff614c6b7106eb0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'390625d270844dd9aff614c6b7106eb0' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 5.3ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'390625d270844dd9aff614c6b7106eb0' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'390625d270844dd9aff614c6b7106eb0' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'390625d270844dd9aff614c6b7106eb0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_390625d2-7084-4dd9-aff6-14c6b7106eb0_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'390625d270844dd9aff614c6b7106eb0' SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'390625d270844dd9aff614c6b7106eb0' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'390625d270844dd9aff614c6b7106eb0' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 152ms (Views: 148.0ms | ActiveRecord: 2.1ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'390625d270844dd9aff614c6b7106eb0' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:30', NULL, '--- !ruby/struct:DestroyUserJob\nid: 390625d2-7084-4dd9-aff6-14c6b7106eb0\n', NULL, NULL, NULL, 0, 'user_390625d2-7084-4dd9-aff6-14c6b7106eb0_destroy', '2012-12-31 12:46:30', '2012-12-31 12:46:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_390625d2-7084-4dd9-aff6-14c6b7106eb0_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 11ms (ActiveRecord: 1.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'390625d270844dd9aff614c6b7106eb0' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'390625d270844dd9aff614c6b7106eb0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_390625d2-7084-4dd9-aff6-14c6b7106eb0_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_390625d2-7084-4dd9-aff6-14c6b7106eb0_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_390625d2-7084-4dd9-aff6-14c6b7106eb0_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'390625d270844dd9aff614c6b7106eb0' SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'390625d270844dd9aff614c6b7106eb0' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'390625d270844dd9aff614c6b7106eb0' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 25ms (Views: 20.9ms | ActiveRecord: 2.1ms)  (0.8ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:30', '2012-12-31 12:46:30', 'facebook@test.test', '', NULL, x'f7866f893fb94186983b4cf9d80bd29e', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:30') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:30', 'User', x'ef47a2493258495cae10c3dbbb4f4891', '4aaaa25e6bd17c72d53724be156c375f', x'f7866f893fb94186983b4cf9d80bd29e', 'User', '2012-12-31 12:46:30') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:30', x'3ec29ff48eb24dc7a070dc6731ddcc0a', NULL, NULL, NULL, '2012-12-31 12:46:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:30', `updated_at` = '2012-12-31 12:46:30', `subdomain` = 'account3ec29ff4-8eb2-4dc7-a070-dc6731ddcc0a' WHERE `accounts`.`id` = x'3ec29ff48eb24dc7a070dc6731ddcc0a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3ec29ff48eb24dc7a070dc6731ddcc0a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3ec29ff48eb24dc7a070dc6731ddcc0a', x'd5d1b6fdc98c4ff48bec720c70d7d934', x'f7866f893fb94186983b4cf9d80bd29e') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd5d1b6fdc98c4ff48bec720c70d7d934') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd5d1b6fdc98c4ff48bec720c70d7d934' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd5d1b6fdc98c4ff48bec720c70d7d934', x'ee46e52523ef4298959eeae4a0d3fcd4', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd5d1b6fdc98c4ff48bec720c70d7d934') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd5d1b6fdc98c4ff48bec720c70d7d934' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd5d1b6fdc98c4ff48bec720c70d7d934', x'd906d55db5b6472dbe2cfc4fbeda3798', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:30 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e18926bc472_f6180435d48401c8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'3a7e49ef46b8476ea7db8691ce657e5b', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'f7866f893fb94186983b4cf9d80bd29e')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f7866f893fb94186983b4cf9d80bd29e' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 5.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f7866f893fb94186983b4cf9d80bd29e' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f7866f893fb94186983b4cf9d80bd29e' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_f7866f89-3fb9-4186-983b-4cf9d80bd29e_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7866f893fb94186983b4cf9d80bd29e' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 2.0ms) User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:30', NULL, '--- !ruby/struct:DestroyUserJob\nid: f7866f89-3fb9-4186-983b-4cf9d80bd29e\n', NULL, NULL, NULL, 0, 'user_f7866f89-3fb9-4186-983b-4cf9d80bd29e_destroy', '2012-12-31 12:46:30', '2012-12-31 12:46:30')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_f7866f89-3fb9-4186-983b-4cf9d80bd29e_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2012-12-31 12:46:30', `updated_at` = '2012-12-31 12:46:30' WHERE `delayed_jobs`.`id` = 68  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:30 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f7866f893fb94186983b4cf9d80bd29e' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_f7866f89-3fb9-4186-983b-4cf9d80bd29e_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_f7866f89-3fb9-4186-983b-4cf9d80bd29e_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_f7866f89-3fb9-4186-983b-4cf9d80bd29e_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7866f893fb94186983b4cf9d80bd29e' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'f7866f893fb94186983b4cf9d80bd29e' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 171ms (Views: 167.4ms | ActiveRecord: 2.1ms)  (5.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:31', '2012-12-31 12:46:31', 'facebook@test.test', '', NULL, x'aa8a8bcd6988409cb7bb785d5973b710', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'aa8a8bcd6988409cb7bb785d5973b710' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:31', 'User', x'34677efe06364f7799a2260e07d11d11', '6e75bb23fc56add6f523ca0975b9cfef', x'aa8a8bcd6988409cb7bb785d5973b710', 'User', '2012-12-31 12:46:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'aa8a8bcd6988409cb7bb785d5973b710' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:31', x'a7b13fbb50104cc7b02decb16136936c', NULL, NULL, NULL, '2012-12-31 12:46:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:31', `updated_at` = '2012-12-31 12:46:31', `subdomain` = 'accounta7b13fbb-5010-4cc7-b02d-ecb16136936c' WHERE `accounts`.`id` = x'a7b13fbb50104cc7b02decb16136936c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a7b13fbb50104cc7b02decb16136936c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a7b13fbb50104cc7b02decb16136936c', x'820cbaec9c3247dca6ba634454035fc7', x'aa8a8bcd6988409cb7bb785d5973b710') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'820cbaec9c3247dca6ba634454035fc7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820cbaec9c3247dca6ba634454035fc7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'820cbaec9c3247dca6ba634454035fc7', x'3175bac385624693aa383709c457d9e7', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'820cbaec9c3247dca6ba634454035fc7') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820cbaec9c3247dca6ba634454035fc7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'820cbaec9c3247dca6ba634454035fc7', x'7eb73193f03a4d118baa64289c80c970', 'admin') Sent mail to facebook@test.test (10ms) Date: Mon, 31 Dec 2012 10:46:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e1892712e82_f6180435d48402d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'd5a9397ac8864b09b9ef74dae53ebc0d', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'aa8a8bcd6988409cb7bb785d5973b710')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'aa8a8bcd6988409cb7bb785d5973b710' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'aa8a8bcd6988409cb7bb785d5973b710' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 70ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'aa8a8bcd6988409cb7bb785d5973b710' LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'aa8a8bcd6988409cb7bb785d5973b710' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'aa8a8bcd6988409cb7bb785d5973b710' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_aa8a8bcd-6988-409c-b7bb-785d5973b710_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'aa8a8bcd6988409cb7bb785d5973b710' SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'aa8a8bcd6988409cb7bb785d5973b710' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'aa8a8bcd6988409cb7bb785d5973b710' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 20.1ms | ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'aa8a8bcd6988409cb7bb785d5973b710' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'aa8a8bcd6988409cb7bb785d5973b710' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_aa8a8bcd-6988-409c-b7bb-785d5973b710_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 17.2ms | ActiveRecord: 1.3ms)  (0.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:31', '2012-12-31 12:46:31', 'facebook@test.test', '', NULL, x'22093fe4998b4fd5965a5612aada8e57', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'22093fe4998b4fd5965a5612aada8e57' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:31', 'User', x'61018b0e4ad4401b8c54d2560c37055a', '5876559bd4b433d9511beddebe29473f', x'22093fe4998b4fd5965a5612aada8e57', 'User', '2012-12-31 12:46:31') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'22093fe4998b4fd5965a5612aada8e57' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:31', x'1ab4af82a0134f4e8566a925f6676cda', NULL, NULL, NULL, '2012-12-31 12:46:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:31', `updated_at` = '2012-12-31 12:46:31', `subdomain` = 'account1ab4af82-a013-4f4e-8566-a925f6676cda' WHERE `accounts`.`id` = x'1ab4af82a0134f4e8566a925f6676cda' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1ab4af82a0134f4e8566a925f6676cda' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1ab4af82a0134f4e8566a925f6676cda', x'dcc8b6e061fa4db8b12b81c6f85afb27', x'22093fe4998b4fd5965a5612aada8e57') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dcc8b6e061fa4db8b12b81c6f85afb27') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dcc8b6e061fa4db8b12b81c6f85afb27' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dcc8b6e061fa4db8b12b81c6f85afb27', x'6900da153be14f83b3ca64834cf961d9', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dcc8b6e061fa4db8b12b81c6f85afb27') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dcc8b6e061fa4db8b12b81c6f85afb27' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dcc8b6e061fa4db8b12b81c6f85afb27', x'5c952b3d50d94df38014b2847f475fd3', 'admin') Sent mail to facebook@test.test (7ms) Date: Mon, 31 Dec 2012 10:46:31 -0200 From: Iugu Reply-To: Iugu To: facebook@test.test Message-ID: <50e189275561f_f6180435d48403d5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a3ca382f86b44a729db7a237bf51c5c0', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'22093fe4998b4fd5965a5612aada8e57')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22093fe4998b4fd5965a5612aada8e57' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22093fe4998b4fd5965a5612aada8e57' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 196ms (ActiveRecord: 6.6ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22093fe4998b4fd5965a5612aada8e57' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22093fe4998b4fd5965a5612aada8e57' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'22093fe4998b4fd5965a5612aada8e57' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_22093fe4-998b-4fd5-965a-5612aada8e57_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'22093fe4998b4fd5965a5612aada8e57' SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'22093fe4998b4fd5965a5612aada8e57' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'22093fe4998b4fd5965a5612aada8e57' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 19.6ms | ActiveRecord: 2.1ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22093fe4998b4fd5965a5612aada8e57' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22093fe4998b4fd5965a5612aada8e57' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `updated_at` = '2012-12-31 12:46:31' WHERE `users`.`id` = x'22093fe4998b4fd5965a5612aada8e57'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.7ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (1.8ms) Completed 200 OK in 40ms (Views: 38.4ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:46:31', '2012-12-31 12:46:31', '', '', 1, x'1e2cda68183c40c3a0ca5f64eb07a53a', 'en', 'Guest', NULL, NULL, NULL, NULL, '2012-12-31 12:46:31') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1e2cda68183c40c3a0ca5f64eb07a53a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:31', 'User', x'72c8c6bdb3a240a39f79ffee75feea76', '1658e435899242db6d9f0db1527dbd91', x'1e2cda68183c40c3a0ca5f64eb07a53a', 'User', '2012-12-31 12:46:31') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1e2cda68183c40c3a0ca5f64eb07a53a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:31', x'228979024940438ebd799e05c63c6902', NULL, NULL, NULL, '2012-12-31 12:46:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:31', `updated_at` = '2012-12-31 12:46:31', `subdomain` = 'account22897902-4940-438e-bd79-9e05c63c6902' WHERE `accounts`.`id` = x'228979024940438ebd799e05c63c6902' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'228979024940438ebd799e05c63c6902' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'228979024940438ebd799e05c63c6902', x'a994581aed3f4b5eac7cc1595854b029', x'1e2cda68183c40c3a0ca5f64eb07a53a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a994581aed3f4b5eac7cc1595854b029') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a994581aed3f4b5eac7cc1595854b029' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a994581aed3f4b5eac7cc1595854b029', x'4f0ea00f557b4c97b0404bb5fc807063', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a994581aed3f4b5eac7cc1595854b029') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a994581aed3f4b5eac7cc1595854b029' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a994581aed3f4b5eac7cc1595854b029', x'abe3e9176e7c4997ad0514edae6d9884', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2012-12-31 12:46:31', NULL, '--- !ruby/struct:DestroyUserJob\nid: 1e2cda68-183c-40c3-a0ca-5f64eb07a53a\n', NULL, NULL, NULL, 0, 'guest_1e2cda68-183c-40c3-a0ca-5f64eb07a53a_destroy', '2013-01-07 12:46:31', '2012-12-31 12:46:31')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `users` SET `remember_created_at` = '2012-12-31 12:46:31', `updated_at` = '2012-12-31 12:46:31' WHERE `users`.`id` = x'1e2cda68183c40c3a0ca5f64eb07a53a'  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1e2cda68183c40c3a0ca5f64eb07a53a' AND (accounts.id = '1ab4af82-a013-4f4e-8566-a925f6676cda') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1e2cda68183c40c3a0ca5f64eb07a53a' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 192ms (ActiveRecord: 5.3ms) Started GET "/" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1e2cda68183c40c3a0ca5f64eb07a53a' LIMIT 1 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-12-31 10:46:31 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1e2cda68183c40c3a0ca5f64eb07a53a' LIMIT 1 Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.4ms)  (24.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'good@email.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-12-31 12:45:41', '2012-12-31 12:46:31', 'good@email.com', '$2a$04$AyluOej.Co5mPzirN0qvLejxeMBvUKc.Cf2dJjzbWOI7LzJtfcwzC', NULL, x'0d249936bb80487b89bba5afbacaebd5', 'en', NULL, NULL, NULL, NULL, NULL, '2012-12-31 12:46:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0d249936bb80487b89bba5afbacaebd5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (1.6ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2012-12-31 12:46:31', 'User', x'97abed48835848649ed24ee9dc0391ae', '5093b8edb74e67038c68567c19d0965a', x'0d249936bb80487b89bba5afbacaebd5', 'User', '2012-12-31 12:46:31') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0d249936bb80487b89bba5afbacaebd5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2012-12-31 12:46:31', x'65a747722c454bb485ffa97fc2f7eaa7', NULL, NULL, NULL, '2012-12-31 12:46:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2012-12-31 12:46:31', `updated_at` = '2012-12-31 12:46:31', `subdomain` = 'account65a74772-2c45-4bb4-85ff-a97fc2f7eaa7' WHERE `accounts`.`id` = x'65a747722c454bb485ffa97fc2f7eaa7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'65a747722c454bb485ffa97fc2f7eaa7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'65a747722c454bb485ffa97fc2f7eaa7', x'0e9a5c5048c24a19960483d6a46b9a7b', x'0d249936bb80487b89bba5afbacaebd5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0e9a5c5048c24a19960483d6a46b9a7b') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e9a5c5048c24a19960483d6a46b9a7b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e9a5c5048c24a19960483d6a46b9a7b', x'b80eee79b27140f08f90376afa241304', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e9a5c5048c24a19960483d6a46b9a7b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e9a5c5048c24a19960483d6a46b9a7b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e9a5c5048c24a19960483d6a46b9a7b', x'dcbf6fff2b644c628df721070c77b053', 'admin') Sent mail to good@email.com (7ms) Date: Mon, 31 Dec 2012 10:46:31 -0200 From: Iugu Reply-To: Iugu To: good@email.com Message-ID: <50e18927bccfe_f6180435d48404c1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0d249936bb80487b89bba5afbacaebd5'  (0.7ms) ROLLBACK  (0.1ms) BEGIN User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notanemail' LIMIT 1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (51.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (170.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateAccount (20120528164634)  (112.1ms) CREATE TABLE `accounts` (`id` binary(16) PRIMARY KEY, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (127.2ms) CREATE INDEX `index_accounts_on_id` ON `accounts` (`id`)  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120528164634') Migrating to AddDeviseToUsers (20120529134109)  (135.3ms) CREATE TABLE `users` (`id` binary(16) PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (126.7ms) CREATE INDEX `index_users_on_id` ON `users` (`id`)  (117.6ms) CREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)  (149.1ms) CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)  (132.1ms) CREATE UNIQUE INDEX `index_users_on_confirmation_token` ON `users` (`confirmation_token`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529134109') Migrating to AddBirthdateAndNameToUser (20120529162901)  (139.6ms) ALTER TABLE `users` ADD `birthdate` date  (131.4ms) ALTER TABLE `users` ADD `name` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529162901') Migrating to AddNameAndSubscriptionIdAndUserIdToAccount (20120529174755)  (95.8ms) ALTER TABLE `accounts` ADD `name` varchar(255)  (124.3ms) ALTER TABLE `accounts` ADD `subscription_id` int(11)  (117.1ms) ALTER TABLE `accounts` ADD `user_id` blob(16)  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529174755') Migrating to CreateAccountUsers (20120529180814)  (110.3ms) CREATE TABLE `account_users` (`id` binary(16) PRIMARY KEY, `account_id` binary(16), `user_id` binary(16)) ENGINE=InnoDB  (128.0ms) CREATE INDEX `index_account_users_on_id` ON `account_users` (`id`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529180814') Migrating to RemoveUserIdFromAccounts (20120530114709)  (123.3ms) ALTER TABLE `accounts` DROP `user_id`  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120530114709') Migrating to CreateAccountRoles (20120531171438)  (143.8ms) CREATE TABLE `account_roles` (`id` binary(16) PRIMARY KEY, `name` varchar(255), `account_user_id` binary(16)) ENGINE=InnoDB  (119.3ms) CREATE INDEX `index_account_roles_on_id` ON `account_roles` (`id`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120531171438') Migrating to AddLocaleToUser (20120604131034)  (132.4ms) ALTER TABLE `users` ADD `locale` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120604131034') Migrating to CreateSocialAccount (20120605142527)  (124.9ms) CREATE TABLE `social_accounts` (`id` binary(16) PRIMARY KEY, `social_id` varchar(255), `user_id` binary(16), `provider` varchar(255), `token` varchar(255), `secret` varchar(255)) ENGINE=InnoDB  (135.7ms) CREATE INDEX `index_social_accounts_on_id` ON `social_accounts` (`id`)  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120605142527') Migrating to SetLocale (20120612141130) SQL (0.2ms) UPDATE `users` SET locale = 'en' WHERE `users`.`locale` IS NULL  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120612141130') Migrating to RemoveUniqueFromUserEmail (20120613173114)  (101.3ms) DROP INDEX `index_users_on_email` ON `users`  (125.6ms) CREATE INDEX `index_users_on_email` ON `users` (`email`)  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120613173114') Migrating to CreateDelayedJobs (20120615180728)  (99.7ms) CREATE TABLE `delayed_jobs` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `priority` int(11) DEFAULT 0, `attempts` int(11) DEFAULT 0, `handler` text, `last_error` text, `run_at` datetime, `locked_at` datetime, `failed_at` datetime, `locked_by` varchar(255), `queue` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (134.3ms) CREATE INDEX `delayed_jobs_priority` ON `delayed_jobs` (`priority`, `run_at`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120615180728') Migrating to CreateUserInvitations (20120629154429)  (112.4ms) CREATE TABLE `user_invitations` (`id` binary(16) PRIMARY KEY, `invited_by` binary(16), `email` varchar(255), `sent_at` datetime, `account_id` binary(16)) ENGINE=InnoDB  (150.7ms) CREATE INDEX `index_user_invitations_on_id` ON `user_invitations` (`id`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120629154429') Migrating to AddTokenToUserInvitations (20120629195345)  (107.4ms) ALTER TABLE `user_invitations` ADD `token` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120629195345') Migrating to AddRolesToUserInvitations (20120705202827)  (152.4ms) ALTER TABLE `user_invitations` ADD `roles` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120705202827') Migrating to CreateAccountDomain (20120716145846)  (119.5ms) CREATE TABLE `account_domains` (`id` binary(16) PRIMARY KEY, `account_id` binary(16), `url` varchar(255), `verified` tinyint(1), `primary` tinyint(1)) ENGINE=InnoDB  (118.8ms) CREATE INDEX `index_account_domains_on_id` ON `account_domains` (`id`)  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120716145846') Migrating to AddSubdomainToAccount (20120719162426)  (140.7ms) ALTER TABLE `accounts` ADD `subdomain` varchar(255)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120719162426') Migrating to AddApiTokenToAccount (20120725170859)  (128.9ms) ALTER TABLE `accounts` ADD `api_token` varchar(255)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120725170859') Migrating to AddGuestToUsers (20120803172545)  (133.9ms) ALTER TABLE `users` ADD `guest` tinyint(1)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120803172545') Migrating to CreateApiToken (20121023113304)  (123.5ms) CREATE TABLE `api_tokens` (`id` binary(16) PRIMARY KEY, `token` varchar(255), `description` varchar(255), `api_type` varchar(255), `tokenable_id` binary(16), `tokenable_type` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (128.2ms) CREATE INDEX `index_api_tokens_on_id` ON `api_tokens` (`id`)  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121023113304') Migrating to RemoveApiTokenFromAccount (20121108115535)  (171.5ms) ALTER TABLE `accounts` DROP `api_token`  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121108115535')  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (25.2ms) SELECT DATABASE() as db  (1.5ms) select table_name from information_schema.views where table_schema = 'iugusdk_test'  (11.1ms) TRUNCATE TABLE `account_domains`;  (3.4ms) TRUNCATE TABLE `account_roles`;  (0.9ms) TRUNCATE TABLE `account_users`;  (0.9ms) TRUNCATE TABLE `accounts`;  (1.1ms) TRUNCATE TABLE `api_tokens`;  (1.0ms) TRUNCATE TABLE `delayed_jobs`;  (1.2ms) TRUNCATE TABLE `social_accounts`;  (0.9ms) TRUNCATE TABLE `user_invitations`;  (1.2ms) TRUNCATE TABLE `users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:54', 'teste@teste.com', '$2a$04$uiF0.23N3GLDtC.c0.pyPeflaOOk2ilVovRpujeSRbzqzBJiWEsbi', NULL, x'ea3d972b63cd4472b31bf330c9603c0a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:54') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ea3d972b63cd4472b31bf330c9603c0a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:54', 'User', x'fee2f9f9e0524b4f82cb9f39b4307a92', '7518fd88cb9bd8acea343432bb950705', x'ea3d972b63cd4472b31bf330c9603c0a', 'User', '2013-01-02 11:05:54') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ea3d972b63cd4472b31bf330c9603c0a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:55', x'ac35d98e5c60422bbe666c4b9fdb09e9', NULL, NULL, NULL, '2013-01-02 11:05:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:55', `updated_at` = '2013-01-02 11:05:55', `subdomain` = 'accountac35d98e-5c60-422b-be66-6c4b9fdb09e9' WHERE `accounts`.`id` = x'ac35d98e5c60422bbe666c4b9fdb09e9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ac35d98e5c60422bbe666c4b9fdb09e9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ac35d98e5c60422bbe666c4b9fdb09e9', x'd4069416a79c42278858f4ff07198095', x'ea3d972b63cd4472b31bf330c9603c0a') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd4069416a79c42278858f4ff07198095') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd4069416a79c42278858f4ff07198095' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd4069416a79c42278858f4ff07198095', x'9e7ee32148284c68af0a3c9ae09f1d68', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd4069416a79c42278858f4ff07198095') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd4069416a79c42278858f4ff07198095' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd4069416a79c42278858f4ff07198095', x'87d28a331f9f4846ad67d445a8117dc3', 'admin') Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/mailer/welcome.html.haml (1.2ms) Sent mail to teste@teste.com (187ms) Date: Wed, 02 Jan 2013 09:05:55 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41493ad03c_107080435d48446e8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:55', x'ddb917f909ba4ba6816ecfeb99462319', 'jabanilson', NULL, 1, '2013-01-02 11:05:55')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:55', `updated_at` = '2013-01-02 11:05:55', `subdomain` = 'accountddb917f9-09ba-4ba6-816e-cfeb99462319' WHERE `accounts`.`id` = x'ddb917f909ba4ba6816ecfeb99462319'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ddb917f909ba4ba6816ecfeb99462319', x'515428d624fb4256ab559257f96d73dd', x'ea3d972b63cd4472b31bf330c9603c0a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'515428d624fb4256ab559257f96d73dd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'515428d624fb4256ab559257f96d73dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'515428d624fb4256ab559257f96d73dd', x'242ffb92b44f495cbdde53470feeaa62', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'515428d624fb4256ab559257f96d73dd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'515428d624fb4256ab559257f96d73dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'515428d624fb4256ab559257f96d73dd', x'4006a22ba3b448e78a33b14cd2d919d8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ea3d972b63cd4472b31bf330c9603c0a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ea3d972b63cd4472b31bf330c9603c0a' LIMIT 1 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ea3d972b63cd4472b31bf330c9603c0a' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (0.6ms) Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.5ms)  (0.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:55', 'teste@teste.com', '$2a$04$q4NoV7ik1r2VrS7FJmxnKO.YbRfZOLQ4kc/YdB41o8Qns4/azixtW', NULL, x'48c3b2542e384c05ac2fb063f3312918', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:55') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'48c3b2542e384c05ac2fb063f3312918' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:55', 'User', x'f0c58e6748ea4e87a824f5021158ede8', '722b5624d8f1fce9d405272f22f51d97', x'48c3b2542e384c05ac2fb063f3312918', 'User', '2013-01-02 11:05:55') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'48c3b2542e384c05ac2fb063f3312918' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:55', x'64df56abe94f468ab52025c6e3fcd511', NULL, NULL, NULL, '2013-01-02 11:05:55')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:55', `updated_at` = '2013-01-02 11:05:55', `subdomain` = 'account64df56ab-e94f-468a-b520-25c6e3fcd511' WHERE `accounts`.`id` = x'64df56abe94f468ab52025c6e3fcd511' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'64df56abe94f468ab52025c6e3fcd511' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'64df56abe94f468ab52025c6e3fcd511', x'03342831a588413ea4fe92d9da42f39c', x'48c3b2542e384c05ac2fb063f3312918') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'03342831a588413ea4fe92d9da42f39c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03342831a588413ea4fe92d9da42f39c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03342831a588413ea4fe92d9da42f39c', x'e9f1d2536aa74a9f845e058db92d31b5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'03342831a588413ea4fe92d9da42f39c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03342831a588413ea4fe92d9da42f39c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03342831a588413ea4fe92d9da42f39c', x'bb47b57328d34d5bad7f68dd8e5842f6', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:55 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41493f30c2_107080435d48447c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'cfc5ea0eb1354cbd93ecad12646b3ee3', 'jabanilson', NULL, 1, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'accountcfc5ea0e-b135-4cbd-93ec-ad12646b3ee3' WHERE `accounts`.`id` = x'cfc5ea0eb1354cbd93ecad12646b3ee3'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cfc5ea0eb1354cbd93ecad12646b3ee3', x'954b8a5293944fe49658e554bf63d1a2', x'48c3b2542e384c05ac2fb063f3312918') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'954b8a5293944fe49658e554bf63d1a2') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'954b8a5293944fe49658e554bf63d1a2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'954b8a5293944fe49658e554bf63d1a2', x'6dffb236420b4149b065b31f8b9faa27', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'954b8a5293944fe49658e554bf63d1a2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'954b8a5293944fe49658e554bf63d1a2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'954b8a5293944fe49658e554bf63d1a2', x'f724db95461f4959b1f5d4db0e0510c7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48c3b2542e384c05ac2fb063f3312918' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48c3b2542e384c05ac2fb063f3312918' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48c3b2542e384c05ac2fb063f3312918' LIMIT 1 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"64DF56ABE94F468AB52025C6E3FCD511"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48c3b2542e384c05ac2fb063f3312918' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48c3b2542e384c05ac2fb063f3312918' AND `accounts`.`id` = x'64df56abe94f468ab52025c6e3fcd511' LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'64df56abe94f468ab52025c6e3fcd511' AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 14ms (Views: 3.0ms | ActiveRecord: 4.1ms)  (1.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:56', 'teste@teste.com', '$2a$04$ekGOoy4tIf6.ayge9CpHWuJYbbzy.G/9Sq89bJ8frpr4umXY37D12', NULL, x'20d81614d6314a6fb9a14c587fd8bd6a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'20d81614d6314a6fb9a14c587fd8bd6a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:56', 'User', x'bcbaf410ba2e4870b4d61b85bcc96e76', '6cb1d83962acdd38ebc40dc806dd6f95', x'20d81614d6314a6fb9a14c587fd8bd6a', 'User', '2013-01-02 11:05:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'20d81614d6314a6fb9a14c587fd8bd6a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'78429f413743416c879344fe865f2cf5', NULL, NULL, NULL, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account78429f41-3743-416c-8793-44fe865f2cf5' WHERE `accounts`.`id` = x'78429f413743416c879344fe865f2cf5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'78429f413743416c879344fe865f2cf5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'78429f413743416c879344fe865f2cf5', x'05189860596946e2817f8382078b3175', x'20d81614d6314a6fb9a14c587fd8bd6a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'05189860596946e2817f8382078b3175') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'05189860596946e2817f8382078b3175' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'05189860596946e2817f8382078b3175', x'fbb5d1a806704125902c409b1e9aace8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'05189860596946e2817f8382078b3175') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'05189860596946e2817f8382078b3175' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'05189860596946e2817f8382078b3175', x'63c4585429c74e45a3d5f6ef8bc4d0fa', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:56 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149414b3e_107080435d484481a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'5e121667460540a8b7523d89c1199bbe', 'jabanilson', NULL, 1, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account5e121667-4605-40a8-b752-3d89c1199bbe' WHERE `accounts`.`id` = x'5e121667460540a8b7523d89c1199bbe'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e121667460540a8b7523d89c1199bbe', x'9f727cf78ccc491ebebb75a020915799', x'20d81614d6314a6fb9a14c587fd8bd6a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9f727cf78ccc491ebebb75a020915799') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f727cf78ccc491ebebb75a020915799' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f727cf78ccc491ebebb75a020915799', x'39032175ba0c4a5eac0436b8f00e38b3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9f727cf78ccc491ebebb75a020915799') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f727cf78ccc491ebebb75a020915799' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f727cf78ccc491ebebb75a020915799', x'90ee0061b0144a86b8d7a0544fcc16da', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'20d81614d6314a6fb9a14c587fd8bd6a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'20d81614d6314a6fb9a14c587fd8bd6a' LIMIT 1 Processing by Iugu::AccountController#view as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'20d81614d6314a6fb9a14c587fd8bd6a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'20d81614d6314a6fb9a14c587fd8bd6a' AND `account_users`.`account_id` = x'78429f413743416c879344fe865f2cf5' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'78429f413743416c879344fe865f2cf5' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'78429f413743416c879344fe865f2cf5' AND `account_domains`.`primary` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:56', 'teste@teste.com', '$2a$04$sbU8sqrRFP0JuUQrr8fiCOY05sfoNr5xZ1ZJ.1oSFTJ4QlZLwpoGS', NULL, x'1eac0c5cff45498cb237caebbaf44376', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1eac0c5cff45498cb237caebbaf44376' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:56', 'User', x'1bf6cee0c5c3498db9cc1dcedf4cbb86', '7309c34df916186101e6a8e155f734ca', x'1eac0c5cff45498cb237caebbaf44376', 'User', '2013-01-02 11:05:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1eac0c5cff45498cb237caebbaf44376' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'dcdde876a51943418c345e8d8671d448', NULL, NULL, NULL, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'accountdcdde876-a519-4341-8c34-5e8d8671d448' WHERE `accounts`.`id` = x'dcdde876a51943418c345e8d8671d448' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dcdde876a51943418c345e8d8671d448' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dcdde876a51943418c345e8d8671d448', x'ec8aecd0cf3e4530b5cb163d75d6dc80', x'1eac0c5cff45498cb237caebbaf44376') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ec8aecd0cf3e4530b5cb163d75d6dc80') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ec8aecd0cf3e4530b5cb163d75d6dc80' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ec8aecd0cf3e4530b5cb163d75d6dc80', x'1ad00439dadf41a692f46b6236d1d5d5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ec8aecd0cf3e4530b5cb163d75d6dc80') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ec8aecd0cf3e4530b5cb163d75d6dc80' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ec8aecd0cf3e4530b5cb163d75d6dc80', x'083659f692ed4efd83e38d01b8f0a82e', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:56 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41494283e6_107080435d4844983@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'e1a1be540ea14870b60150bb648fcba8', 'jabanilson', NULL, 1, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'accounte1a1be54-0ea1-4870-b601-50bb648fcba8' WHERE `accounts`.`id` = x'e1a1be540ea14870b60150bb648fcba8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e1a1be540ea14870b60150bb648fcba8', x'e00eddc0191540b9a1878d0783174838', x'1eac0c5cff45498cb237caebbaf44376') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e00eddc0191540b9a1878d0783174838') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e00eddc0191540b9a1878d0783174838' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e00eddc0191540b9a1878d0783174838', x'bfc85718768542dd97ee071f7d2a4dee', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e00eddc0191540b9a1878d0783174838') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e00eddc0191540b9a1878d0783174838' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e00eddc0191540b9a1878d0783174838', x'4ad642b36778427789bc46023b71f9cf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1eac0c5cff45498cb237caebbaf44376' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1eac0c5cff45498cb237caebbaf44376' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1eac0c5cff45498cb237caebbaf44376' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"E1A1BE540EA14870B60150BB648FCBA8"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1eac0c5cff45498cb237caebbaf44376' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1eac0c5cff45498cb237caebbaf44376' AND `account_users`.`account_id` = x'e1a1be540ea14870b60150bb648fcba8' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e00eddc0191540b9a1878d0783174838' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1eac0c5cff45498cb237caebbaf44376' AND `accounts`.`id` = x'e1a1be540ea14870b60150bb648fcba8' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:05:56', NULL, '--- !ruby/struct:DestroyAccountJob\nid: e1a1be54-0ea1-4870-b601-50bb648fcba8\n', NULL, NULL, NULL, 0, 'account_e1a1be54-0ea1-4870-b601-50bb648fcba8_destroy', '2013-01-02 11:05:56', '2013-01-02 11:05:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e1a1be54-0ea1-4870-b601-50bb648fcba8_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 124ms (ActiveRecord: 5.9ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:56', 'teste@teste.com', '$2a$04$5QHs6VEZsCd98p1cB4qlLehXPCr1WeXiyiXEoV0ejjWjzMtl23jWS', NULL, x'9260694d16944eebb3544da94889e4f3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9260694d16944eebb3544da94889e4f3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:56', 'User', x'e03b4345976b4d51b7b544695d95a72b', 'd6d84f8e3d51b19f2e3668c72cf495ca', x'9260694d16944eebb3544da94889e4f3', 'User', '2013-01-02 11:05:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9260694d16944eebb3544da94889e4f3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'72b318228fd947c99fbf0d9b4e869b10', NULL, NULL, NULL, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account72b31822-8fd9-47c9-9fbf-0d9b4e869b10' WHERE `accounts`.`id` = x'72b318228fd947c99fbf0d9b4e869b10' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72b318228fd947c99fbf0d9b4e869b10' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'72b318228fd947c99fbf0d9b4e869b10', x'5d786b2f4a6946b4823d6f199a28c259', x'9260694d16944eebb3544da94889e4f3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5d786b2f4a6946b4823d6f199a28c259') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d786b2f4a6946b4823d6f199a28c259' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d786b2f4a6946b4823d6f199a28c259', x'f34ebc6267664bad8341ac155331393a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5d786b2f4a6946b4823d6f199a28c259') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d786b2f4a6946b4823d6f199a28c259' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d786b2f4a6946b4823d6f199a28c259', x'df434fcef9744a158d9b2a5552a13389', 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 02 Jan 2013 09:05:56 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414945a2bc_107080435d4845075@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'd74d3af8c09e4589a0f79dc60e75bd56', 'jabanilson', NULL, 1, '2013-01-02 11:05:56')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'accountd74d3af8-c09e-4589-a0f7-9dc60e75bd56' WHERE `accounts`.`id` = x'd74d3af8c09e4589a0f79dc60e75bd56'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd74d3af8c09e4589a0f79dc60e75bd56', x'8ca26f95c28846c1a6cbfae10af5434c', x'9260694d16944eebb3544da94889e4f3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8ca26f95c28846c1a6cbfae10af5434c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8ca26f95c28846c1a6cbfae10af5434c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8ca26f95c28846c1a6cbfae10af5434c', x'b353f4262d7f4fcd993ae811252edffa', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8ca26f95c28846c1a6cbfae10af5434c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8ca26f95c28846c1a6cbfae10af5434c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8ca26f95c28846c1a6cbfae10af5434c', x'3b2d26f7531e4c41848e0e2022c9fb3b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9260694d16944eebb3544da94889e4f3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9260694d16944eebb3544da94889e4f3' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9260694d16944eebb3544da94889e4f3' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"72B318228FD947C99FBF0D9B4E869B10"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9260694d16944eebb3544da94889e4f3' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9260694d16944eebb3544da94889e4f3' AND `account_users`.`account_id` = x'72b318228fd947c99fbf0d9b4e869b10' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5d786b2f4a6946b4823d6f199a28c259' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9260694d16944eebb3544da94889e4f3' AND `accounts`.`id` = x'72b318228fd947c99fbf0d9b4e869b10' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:05:56', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 72b31822-8fd9-47c9-9fbf-0d9b4e869b10\n', NULL, NULL, NULL, 0, 'account_72b31822-8fd9-47c9-9fbf-0d9b4e869b10_destroy', '2013-01-02 11:05:56', '2013-01-02 11:05:56')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_72b31822-8fd9-47c9-9fbf-0d9b4e869b10_destroy' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9260694d16944eebb3544da94889e4f3' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_72b31822-8fd9-47c9-9fbf-0d9b4e869b10_destroy' LIMIT 1  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:56', 'teste@teste.com', '$2a$04$GKjxmD8lBQK0gpM5zF1SjeVHbxf.G2OFuH540c5sj/Nzz7Iy9dvtC', NULL, x'e55311c9fd274583b5faa455fea234ae', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e55311c9fd274583b5faa455fea234ae' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:56', 'User', x'6fbbb9bf71f14713b943bdce671bb53f', '5cebea2c93b255a91042aca47c4303cf', x'e55311c9fd274583b5faa455fea234ae', 'User', '2013-01-02 11:05:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e55311c9fd274583b5faa455fea234ae' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'339d9a77530c4af796954cd06a94d880', NULL, NULL, NULL, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account339d9a77-530c-4af7-9695-4cd06a94d880' WHERE `accounts`.`id` = x'339d9a77530c4af796954cd06a94d880' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'339d9a77530c4af796954cd06a94d880' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'339d9a77530c4af796954cd06a94d880', x'6b31e7f4f7e045908cec74dd1e74639f', x'e55311c9fd274583b5faa455fea234ae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6b31e7f4f7e045908cec74dd1e74639f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b31e7f4f7e045908cec74dd1e74639f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6b31e7f4f7e045908cec74dd1e74639f', x'39a5894e679b49de933adaa4fdfa7154', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6b31e7f4f7e045908cec74dd1e74639f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b31e7f4f7e045908cec74dd1e74639f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6b31e7f4f7e045908cec74dd1e74639f', x'adc96ebc0d9f44a6bf330631cb9cfaa0', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:56 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149489b03_107080435d48451e3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'78ac84cb21ac4a3cbde721bb063bf46b', 'jabanilson', NULL, 1, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account78ac84cb-21ac-4a3c-bde7-21bb063bf46b' WHERE `accounts`.`id` = x'78ac84cb21ac4a3cbde721bb063bf46b'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'78ac84cb21ac4a3cbde721bb063bf46b', x'09e0a18c5d76444887c1c5defc4f3f17', x'e55311c9fd274583b5faa455fea234ae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'09e0a18c5d76444887c1c5defc4f3f17') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09e0a18c5d76444887c1c5defc4f3f17' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09e0a18c5d76444887c1c5defc4f3f17', x'833a60335b5b4c688508223122a88d2a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'09e0a18c5d76444887c1c5defc4f3f17') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09e0a18c5d76444887c1c5defc4f3f17' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09e0a18c5d76444887c1c5defc4f3f17', x'7d730a887dfa4f9d8aa51a062f2586c8', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e55311c9fd274583b5faa455fea234ae' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e55311c9fd274583b5faa455fea234ae' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e55311c9fd274583b5faa455fea234ae' LIMIT 1 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"78AC84CB21AC4A3CBDE721BB063BF46B"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e55311c9fd274583b5faa455fea234ae' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e55311c9fd274583b5faa455fea234ae' AND `account_users`.`account_id` = x'78ac84cb21ac4a3cbde721bb063bf46b' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'09e0a18c5d76444887c1c5defc4f3f17' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:56', 'teste@teste.com', '$2a$04$lFOwQ1rf4Vv16tlERbLwmOs4eyo3RtFImDOOa5VQcQA.LZiyis3uS', NULL, x'6cc37040712e424fbc065f70c3b564e4', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:56') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6cc37040712e424fbc065f70c3b564e4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:56', 'User', x'e05a97320f994d1d97398f9f9bd05355', 'b71808d9f975aa223efffe52fa0194c4', x'6cc37040712e424fbc065f70c3b564e4', 'User', '2013-01-02 11:05:56') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6cc37040712e424fbc065f70c3b564e4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'4c7929c2560e4df7b50f6bd29e6c1343', NULL, NULL, NULL, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account4c7929c2-560e-4df7-b50f-6bd29e6c1343' WHERE `accounts`.`id` = x'4c7929c2560e4df7b50f6bd29e6c1343' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c7929c2560e4df7b50f6bd29e6c1343' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4c7929c2560e4df7b50f6bd29e6c1343', x'820314d83b4b422b997a61ac4a130fcf', x'6cc37040712e424fbc065f70c3b564e4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'820314d83b4b422b997a61ac4a130fcf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820314d83b4b422b997a61ac4a130fcf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'820314d83b4b422b997a61ac4a130fcf', x'1ce249fecfcc4730aac844744adbefad', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'820314d83b4b422b997a61ac4a130fcf') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820314d83b4b422b997a61ac4a130fcf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'820314d83b4b422b997a61ac4a130fcf', x'022d96e89163470fbd858be465df3972', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:56 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41494b36d9_107080435d4845298@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'888ee79d3481466985227f3c58cfea32', 'jabanilson', NULL, 1, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account888ee79d-3481-4669-8522-7f3c58cfea32' WHERE `accounts`.`id` = x'888ee79d3481466985227f3c58cfea32'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'888ee79d3481466985227f3c58cfea32', x'e34b98812ada4ca9a08c487e71782fb3', x'6cc37040712e424fbc065f70c3b564e4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e34b98812ada4ca9a08c487e71782fb3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e34b98812ada4ca9a08c487e71782fb3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e34b98812ada4ca9a08c487e71782fb3', x'477468a3c88d4e40b0be437bb531a144', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e34b98812ada4ca9a08c487e71782fb3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e34b98812ada4ca9a08c487e71782fb3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e34b98812ada4ca9a08c487e71782fb3', x'd5fcc238b78144b48a34c04faece6db6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6cc37040712e424fbc065f70c3b564e4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6cc37040712e424fbc065f70c3b564e4' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6cc37040712e424fbc065f70c3b564e4' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:05:56', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 4c7929c2-560e-4df7-b50f-6bd29e6c1343\n', NULL, NULL, NULL, 0, 'account_4c7929c2-560e-4df7-b50f-6bd29e6c1343_destroy', '2013-01-02 11:05:56', '2013-01-02 11:05:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6cc37040712e424fbc065f70c3b564e4' LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"4C7929C2560E4DF7B50F6BD29E6C1343"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6cc37040712e424fbc065f70c3b564e4' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6cc37040712e424fbc065f70c3b564e4' AND `account_users`.`account_id` = x'4c7929c2560e4df7b50f6bd29e6c1343' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'820314d83b4b422b997a61ac4a130fcf' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6cc37040712e424fbc065f70c3b564e4' AND `accounts`.`id` = x'4c7929c2560e4df7b50f6bd29e6c1343' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4c7929c2-560e-4df7-b50f-6bd29e6c1343_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4c7929c2-560e-4df7-b50f-6bd29e6c1343_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 11ms (ActiveRecord: 2.8ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:56', 'teste@teste.com', '$2a$04$VE//vzywoZBlKBj6sF2FNuAXf8wjL0e2tumJ4g3IHEd/yc6RxDbGG', NULL, x'6d538679f67b4e3fac0cd8130d46948f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:56') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6d538679f67b4e3fac0cd8130d46948f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:56', 'User', x'bacc9c9b4fd1412ba6b47b2e89c846e7', '2496e56c86de4bc5e3c0f2ad9b637272', x'6d538679f67b4e3fac0cd8130d46948f', 'User', '2013-01-02 11:05:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6d538679f67b4e3fac0cd8130d46948f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'60a5275168af4046b6dd87e491f25f05', NULL, NULL, NULL, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account60a52751-68af-4046-b6dd-87e491f25f05' WHERE `accounts`.`id` = x'60a5275168af4046b6dd87e491f25f05' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'60a5275168af4046b6dd87e491f25f05' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'60a5275168af4046b6dd87e491f25f05', x'5808a534e3aa4364a733210ece1c7982', x'6d538679f67b4e3fac0cd8130d46948f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5808a534e3aa4364a733210ece1c7982') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5808a534e3aa4364a733210ece1c7982' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5808a534e3aa4364a733210ece1c7982', x'0d780a26b12646dcb8df58a3c2fb06bb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5808a534e3aa4364a733210ece1c7982') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5808a534e3aa4364a733210ece1c7982' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5808a534e3aa4364a733210ece1c7982', x'9430c5b94fac407886f8b98527206fc9', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:56 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41494c9b3c_107080435d484539b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'4f7751864bca47f1b26a4a39fa1d2c64', 'jabanilson', NULL, 1, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account4f775186-4bca-47f1-b26a-4a39fa1d2c64' WHERE `accounts`.`id` = x'4f7751864bca47f1b26a4a39fa1d2c64'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4f7751864bca47f1b26a4a39fa1d2c64', x'7a18a0e8fb47434eabad93f14380258b', x'6d538679f67b4e3fac0cd8130d46948f') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7a18a0e8fb47434eabad93f14380258b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a18a0e8fb47434eabad93f14380258b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a18a0e8fb47434eabad93f14380258b', x'33101927718947be8e752e4cb5b0382a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7a18a0e8fb47434eabad93f14380258b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a18a0e8fb47434eabad93f14380258b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a18a0e8fb47434eabad93f14380258b', x'0e62fd6d1ebc411dbf8183f6d75b7db6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d538679f67b4e3fac0cd8130d46948f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d538679f67b4e3fac0cd8130d46948f' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d538679f67b4e3fac0cd8130d46948f' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:05:56', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 60a52751-68af-4046-b6dd-87e491f25f05\n', NULL, NULL, NULL, 0, 'account_60a52751-68af-4046-b6dd-87e491f25f05_destroy', '2013-01-02 11:05:56', '2013-01-02 11:05:56')  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d538679f67b4e3fac0cd8130d46948f' LIMIT 1 Processing by Iugu::AccountController#cancel_destruction as HTML Parameters: {"id"=>"60A5275168AF4046B6DD87E491F25F05"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6d538679f67b4e3fac0cd8130d46948f' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6d538679f67b4e3fac0cd8130d46948f' AND `account_users`.`account_id` = x'60a5275168af4046b6dd87e491f25f05' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5808a534e3aa4364a733210ece1c7982' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d538679f67b4e3fac0cd8130d46948f' AND `accounts`.`id` = x'60a5275168af4046b6dd87e491f25f05' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_60a52751-68af-4046-b6dd-87e491f25f05_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_60a52751-68af-4046-b6dd-87e491f25f05_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d538679f67b4e3fac0cd8130d46948f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_60a52751-68af-4046-b6dd-87e491f25f05_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:56', 'teste@teste.com', '$2a$04$DKPZLUOlGgCcb5qOO4Z08OyFy/wVDJ0EhW4ZrF8VYbOuha/tXvXK2', NULL, x'8fd7dcf86b2344fdaf56514fc33b4f2d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:56') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8fd7dcf86b2344fdaf56514fc33b4f2d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:56', 'User', x'4c8615ce12c24208bc7183b63f255535', '1bf16f876bfd551de3462126cb01422b', x'8fd7dcf86b2344fdaf56514fc33b4f2d', 'User', '2013-01-02 11:05:56') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8fd7dcf86b2344fdaf56514fc33b4f2d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'26a4a10eb66e49ae9a064975ac43ff8a', NULL, NULL, NULL, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'account26a4a10e-b66e-49ae-9a06-4975ac43ff8a' WHERE `accounts`.`id` = x'26a4a10eb66e49ae9a064975ac43ff8a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'26a4a10eb66e49ae9a064975ac43ff8a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'26a4a10eb66e49ae9a064975ac43ff8a', x'0a47c5ff766244bfa4a46550fddba669', x'8fd7dcf86b2344fdaf56514fc33b4f2d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0a47c5ff766244bfa4a46550fddba669') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a47c5ff766244bfa4a46550fddba669' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a47c5ff766244bfa4a46550fddba669', x'0858aac7c53240dda7eaf5820057944d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0a47c5ff766244bfa4a46550fddba669') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a47c5ff766244bfa4a46550fddba669' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a47c5ff766244bfa4a46550fddba669', x'94a70a6bc62e40df8fd31bdd553c0922', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:56 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41494e0959_107080435d4845487@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:56', x'a23a4f94fa4b44c9905bfe04e6e6226d', 'jabanilson', NULL, 1, '2013-01-02 11:05:56')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:56', `updated_at` = '2013-01-02 11:05:56', `subdomain` = 'accounta23a4f94-fa4b-44c9-905b-fe04e6e6226d' WHERE `accounts`.`id` = x'a23a4f94fa4b44c9905bfe04e6e6226d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a23a4f94fa4b44c9905bfe04e6e6226d', x'6df3bb24fa654b189d08be82072f96a4', x'8fd7dcf86b2344fdaf56514fc33b4f2d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6df3bb24fa654b189d08be82072f96a4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6df3bb24fa654b189d08be82072f96a4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6df3bb24fa654b189d08be82072f96a4', x'99565a30c8de43aea760b2feada238d1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6df3bb24fa654b189d08be82072f96a4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6df3bb24fa654b189d08be82072f96a4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6df3bb24fa654b189d08be82072f96a4', x'8837a81dff8545fb949ada30b8b06cb3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8fd7dcf86b2344fdaf56514fc33b4f2d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8fd7dcf86b2344fdaf56514fc33b4f2d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8fd7dcf86b2344fdaf56514fc33b4f2d' LIMIT 1 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"26A4A10EB66E49AE9A064975AC43FF8A"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8fd7dcf86b2344fdaf56514fc33b4f2d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8fd7dcf86b2344fdaf56514fc33b4f2d' AND (accounts.id = '26A4A10EB66E49AE9A064975AC43FF8A') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8fd7dcf86b2344fdaf56514fc33b4f2d' LIMIT 1 Redirected to http://test.host/settings/accounts Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$k11xw74H1ZZYcKowUY2KweS/uQXx0WcmXjNVcuNXomN0J/O4d5OQe', NULL, x'f369fe06834844708cb1e8995c50a06d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f369fe06834844708cb1e8995c50a06d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'57f228ef372e4518a1613461344464a1', '3d8351b9faf32d59df339a5773cc6cf2', x'f369fe06834844708cb1e8995c50a06d', 'User', '2013-01-02 11:05:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f369fe06834844708cb1e8995c50a06d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'175dbdea4e2d44fab2e022ea24160554', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account175dbdea-4e2d-44fa-b2e0-22ea24160554' WHERE `accounts`.`id` = x'175dbdea4e2d44fab2e022ea24160554' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'175dbdea4e2d44fab2e022ea24160554' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'175dbdea4e2d44fab2e022ea24160554', x'be13ac363024429896401f32f08e1c71', x'f369fe06834844708cb1e8995c50a06d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'be13ac363024429896401f32f08e1c71') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be13ac363024429896401f32f08e1c71' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be13ac363024429896401f32f08e1c71', x'577107c2ba414ef28a02d262c72942ce', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'be13ac363024429896401f32f08e1c71') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be13ac363024429896401f32f08e1c71' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be13ac363024429896401f32f08e1c71', x'3482644460c84121972078e37a1459d5', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:57 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414951401e_107080435d48455b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'ca72134fad224d2691694f162de263a5', 'jabanilson', NULL, 1, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'accountca72134f-ad22-4d26-9169-4f162de263a5' WHERE `accounts`.`id` = x'ca72134fad224d2691694f162de263a5'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ca72134fad224d2691694f162de263a5', x'e1b2e2147b42495ea052d1123eb03891', x'f369fe06834844708cb1e8995c50a06d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e1b2e2147b42495ea052d1123eb03891') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1b2e2147b42495ea052d1123eb03891' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1b2e2147b42495ea052d1123eb03891', x'f22165dc9d6242f9ab0d6a19e6486a3c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e1b2e2147b42495ea052d1123eb03891') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1b2e2147b42495ea052d1123eb03891' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1b2e2147b42495ea052d1123eb03891', x'bf5132a8643f4624a2cec9c58c77562d', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f369fe06834844708cb1e8995c50a06d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f369fe06834844708cb1e8995c50a06d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f369fe06834844708cb1e8995c50a06d' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"175DBDEA4E2D44FAB2E022EA24160554"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f369fe06834844708cb1e8995c50a06d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f369fe06834844708cb1e8995c50a06d' AND `account_users`.`account_id` = x'175dbdea4e2d44fab2e022ea24160554' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be13ac363024429896401f32f08e1c71' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'175dbdea4e2d44fab2e022ea24160554' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account175dbdea-4e2d-44fa-b2e0-22ea24160554' AND `accounts`.`id` != x'175dbdea4e2d44fab2e022ea24160554') LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2013-01-02 11:05:57' WHERE `accounts`.`id` = x'175dbdea4e2d44fab2e022ea24160554'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/175DBDEA4E2D44FAB2E022EA24160554 Completed 302 Found in 12ms (ActiveRecord: 2.5ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f369fe06834844708cb1e8995c50a06d' LIMIT 1  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$BxcHfYfK2zs72MP8AaD2gO/YD79d8ZPzusyDWlvmqGN6IUr2kW2uW', NULL, x'df71a7b3ebc34e4fbffec66161818a64', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'df71a7b3ebc34e4fbffec66161818a64' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'd85929582e6d408eb1be3a662c955b31', '0a3f4b05aa756c4461a7cd8ae30aaa3a', x'df71a7b3ebc34e4fbffec66161818a64', 'User', '2013-01-02 11:05:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'df71a7b3ebc34e4fbffec66161818a64' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'5df6a284248149e8ba7ff4765aded0aa', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account5df6a284-2481-49e8-ba7f-f4765aded0aa' WHERE `accounts`.`id` = x'5df6a284248149e8ba7ff4765aded0aa' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5df6a284248149e8ba7ff4765aded0aa' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5df6a284248149e8ba7ff4765aded0aa', x'43f686f2f2e14935b353db41b242ee8a', x'df71a7b3ebc34e4fbffec66161818a64') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'43f686f2f2e14935b353db41b242ee8a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'43f686f2f2e14935b353db41b242ee8a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'43f686f2f2e14935b353db41b242ee8a', x'b98f5b127efd48ca8dab6cad8574c5da', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'43f686f2f2e14935b353db41b242ee8a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'43f686f2f2e14935b353db41b242ee8a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'43f686f2f2e14935b353db41b242ee8a', x'bf6708b9f2cf49968c2ebb1d73302b2a', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:57 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41495293c2_107080435d4845628@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'fcdb05b890724118aa292aaf82b79527', 'jabanilson', NULL, 1, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'accountfcdb05b8-9072-4118-aa29-2aaf82b79527' WHERE `accounts`.`id` = x'fcdb05b890724118aa292aaf82b79527'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fcdb05b890724118aa292aaf82b79527', x'06e2f8729de4401a914979b9cf526a66', x'df71a7b3ebc34e4fbffec66161818a64') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'06e2f8729de4401a914979b9cf526a66') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06e2f8729de4401a914979b9cf526a66' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'06e2f8729de4401a914979b9cf526a66', x'59cd0b2b6d4947fc9b61a4f3d3dc85cf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'06e2f8729de4401a914979b9cf526a66') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06e2f8729de4401a914979b9cf526a66' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'06e2f8729de4401a914979b9cf526a66', x'091528bea6684801b1220e5d88eec2e8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'df71a7b3ebc34e4fbffec66161818a64' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'df71a7b3ebc34e4fbffec66161818a64' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'df71a7b3ebc34e4fbffec66161818a64' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"5DF6A284248149E8BA7FF4765ADED0AA"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'df71a7b3ebc34e4fbffec66161818a64' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'df71a7b3ebc34e4fbffec66161818a64' AND `account_users`.`account_id` = x'5df6a284248149e8ba7ff4765aded0aa' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'43f686f2f2e14935b353db41b242ee8a' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5df6a284248149e8ba7ff4765aded0aa' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account5df6a284-2481-49e8-ba7f-f4765aded0aa' AND `accounts`.`id` != x'5df6a284248149e8ba7ff4765aded0aa') LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2013-01-02 11:05:57' WHERE `accounts`.`id` = x'5df6a284248149e8ba7ff4765aded0aa'  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/5DF6A284248149E8BA7FF4765ADED0AA Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (8.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$YsEGEMOKS0LiZmkaoqgF/uAmvnwTTi4M5wD8869RWFn8glULCi71m', NULL, x'2c852e39a69549adad6b4f30ce60e72b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2c852e39a69549adad6b4f30ce60e72b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'dda8c637e3bb47db9af97f4792fdf877', '0781dec13da1323491e889a321ef35be', x'2c852e39a69549adad6b4f30ce60e72b', 'User', '2013-01-02 11:05:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2c852e39a69549adad6b4f30ce60e72b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'5b948a7f56bb4aca988fc91d07d79a13', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account5b948a7f-56bb-4aca-988f-c91d07d79a13' WHERE `accounts`.`id` = x'5b948a7f56bb4aca988fc91d07d79a13' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5b948a7f56bb4aca988fc91d07d79a13' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5b948a7f56bb4aca988fc91d07d79a13', x'b7b69b560b2b485a91092e9011e4bb86', x'2c852e39a69549adad6b4f30ce60e72b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b7b69b560b2b485a91092e9011e4bb86') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b7b69b560b2b485a91092e9011e4bb86' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b7b69b560b2b485a91092e9011e4bb86', x'a21e4cd8e499476cab207e6c81b1bf47', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b7b69b560b2b485a91092e9011e4bb86') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b7b69b560b2b485a91092e9011e4bb86' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b7b69b560b2b485a91092e9011e4bb86', x'92f9794313f04996b3c9144df482d74a', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:57 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414953fa89_107080435d48457d7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'abf7c2eebf564e12a6d954571398e952', 'jabanilson', NULL, 1, '2013-01-02 11:05:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'accountabf7c2ee-bf56-4e12-a6d9-54571398e952' WHERE `accounts`.`id` = x'abf7c2eebf564e12a6d954571398e952'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'abf7c2eebf564e12a6d954571398e952', x'9f96a4e89ea04175ac105de6a7ca908f', x'2c852e39a69549adad6b4f30ce60e72b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9f96a4e89ea04175ac105de6a7ca908f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f96a4e89ea04175ac105de6a7ca908f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f96a4e89ea04175ac105de6a7ca908f', x'7e69b0b9fd304fe1b0743f4f186b9405', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9f96a4e89ea04175ac105de6a7ca908f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f96a4e89ea04175ac105de6a7ca908f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f96a4e89ea04175ac105de6a7ca908f', x'34aa80776760431b947c6a6fe6d66d76', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c852e39a69549adad6b4f30ce60e72b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c852e39a69549adad6b4f30ce60e72b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c852e39a69549adad6b4f30ce60e72b' LIMIT 1 Processing by Iugu::AccountController#update as HTML Parameters: {"account"=>{"name"=>"fudum"}, "id"=>"ABF7C2EEBF564E12A6D954571398E952"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c852e39a69549adad6b4f30ce60e72b' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2c852e39a69549adad6b4f30ce60e72b' AND `account_users`.`account_id` = x'abf7c2eebf564e12a6d954571398e952' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f96a4e89ea04175ac105de6a7ca908f' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'abf7c2eebf564e12a6d954571398e952' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'accountabf7c2ee-bf56-4e12-a6d9-54571398e952' AND `accounts`.`id` != x'abf7c2eebf564e12a6d954571398e952') LIMIT 1  (0.4ms) UPDATE `accounts` SET `name` = 'fudum', `updated_at` = '2013-01-02 11:05:57' WHERE `accounts`.`id` = x'abf7c2eebf564e12a6d954571398e952'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/ABF7C2EEBF564E12A6D954571398E952 Completed 302 Found in 10ms (ActiveRecord: 2.3ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c852e39a69549adad6b4f30ce60e72b' LIMIT 1  (0.7ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$YPw.TRtLh8DaizK.4OF/m.xKc.G/Exaglf826c9PgbNbg7otAmjQK', NULL, x'3068095e05fe46409c220ebadb2b47bd', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3068095e05fe46409c220ebadb2b47bd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'9434c81e328d49dbb62af6921f87e6c7', '2fdf204161330ac000e1e5cd0da158f3', x'3068095e05fe46409c220ebadb2b47bd', 'User', '2013-01-02 11:05:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3068095e05fe46409c220ebadb2b47bd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'86d668480c774879ac67af356b0a1973', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account86d66848-0c77-4879-ac67-af356b0a1973' WHERE `accounts`.`id` = x'86d668480c774879ac67af356b0a1973' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'86d668480c774879ac67af356b0a1973' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'86d668480c774879ac67af356b0a1973', x'74801fd1e7984083b0a91319c6a4a749', x'3068095e05fe46409c220ebadb2b47bd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'74801fd1e7984083b0a91319c6a4a749') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74801fd1e7984083b0a91319c6a4a749' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74801fd1e7984083b0a91319c6a4a749', x'786b9188a39946a18d8514325b07f9ab', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'74801fd1e7984083b0a91319c6a4a749') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74801fd1e7984083b0a91319c6a4a749' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74801fd1e7984083b0a91319c6a4a749', x'2c30886549cb4b3697e3b26a03e6af4b', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:57 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149566e88_107080435d4845851@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'0d4f7f12eac14af0b4ff00c39ba74523', 'jabanilson', NULL, 1, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account0d4f7f12-eac1-4af0-b4ff-00c39ba74523' WHERE `accounts`.`id` = x'0d4f7f12eac14af0b4ff00c39ba74523'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0d4f7f12eac14af0b4ff00c39ba74523', x'404f57aa0ae846aa860b7166916d6c66', x'3068095e05fe46409c220ebadb2b47bd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'404f57aa0ae846aa860b7166916d6c66') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'404f57aa0ae846aa860b7166916d6c66' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'404f57aa0ae846aa860b7166916d6c66', x'832951117e224cf9b715fd6ed45168e3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'404f57aa0ae846aa860b7166916d6c66') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'404f57aa0ae846aa860b7166916d6c66' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'404f57aa0ae846aa860b7166916d6c66', x'efe94b12ed8a46a4832210d35f310949', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3068095e05fe46409c220ebadb2b47bd' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3068095e05fe46409c220ebadb2b47bd' LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3068095e05fe46409c220ebadb2b47bd' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'7fc48c0998f24634ba930b6498f52bca', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account7fc48c09-98f2-4634-ba93-0b6498f52bca' WHERE `accounts`.`id` = x'7fc48c0998f24634ba930b6498f52bca'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3068095e05fe46409c220ebadb2b47bd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7fc48c0998f24634ba930b6498f52bca', x'd4188d0d242545489ca8ce1fafb29201', x'3068095e05fe46409c220ebadb2b47bd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd4188d0d242545489ca8ce1fafb29201') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd4188d0d242545489ca8ce1fafb29201' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd4188d0d242545489ca8ce1fafb29201', x'f9c8ee345b774baca2813b41742d79d7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd4188d0d242545489ca8ce1fafb29201') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd4188d0d242545489ca8ce1fafb29201' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd4188d0d242545489ca8ce1fafb29201', x'8dbabf49a8984f96ba9c4ab1110b3b45', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 19ms (ActiveRecord: 4.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$Fu3S3TwaUUgH0BgG7xxf9uVI8h/qbUZo614buqqn2Rr7YvjUFc.oq', NULL, x'2d7a9e80b39a426ebff67417f61689d6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2d7a9e80b39a426ebff67417f61689d6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'8e74892a53b34e5d94fc28cf42160f72', 'bf67111904d3178f5ae1e67b915ad44b', x'2d7a9e80b39a426ebff67417f61689d6', 'User', '2013-01-02 11:05:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2d7a9e80b39a426ebff67417f61689d6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'0aba78fbdef34246b7f8b6d999aff68d', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account0aba78fb-def3-4246-b7f8-b6d999aff68d' WHERE `accounts`.`id` = x'0aba78fbdef34246b7f8b6d999aff68d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0aba78fbdef34246b7f8b6d999aff68d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0aba78fbdef34246b7f8b6d999aff68d', x'a9f7581d504442bfbf4cae246f1bfa0a', x'2d7a9e80b39a426ebff67417f61689d6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a9f7581d504442bfbf4cae246f1bfa0a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9f7581d504442bfbf4cae246f1bfa0a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9f7581d504442bfbf4cae246f1bfa0a', x'0b61c21237884c859fe997de1f0ffccd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a9f7581d504442bfbf4cae246f1bfa0a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9f7581d504442bfbf4cae246f1bfa0a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9f7581d504442bfbf4cae246f1bfa0a', x'455ca49e69fe4bbf96c0e4729582f3c1', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:57 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414957da21_107080435d4845951@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'71150ece32a949ea9f38e57cf5bc52cc', 'jabanilson', NULL, 1, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account71150ece-32a9-49ea-9f38-e57cf5bc52cc' WHERE `accounts`.`id` = x'71150ece32a949ea9f38e57cf5bc52cc'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'71150ece32a949ea9f38e57cf5bc52cc', x'afbe79b053894b69a5639ade4432b4be', x'2d7a9e80b39a426ebff67417f61689d6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'afbe79b053894b69a5639ade4432b4be') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'afbe79b053894b69a5639ade4432b4be' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'afbe79b053894b69a5639ade4432b4be', x'26a2ef24a6a244b28e2ec320c61af6e8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'afbe79b053894b69a5639ade4432b4be') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'afbe79b053894b69a5639ade4432b4be' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'afbe79b053894b69a5639ade4432b4be', x'4eb7bd947c64492aab93363c0cf92374', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2d7a9e80b39a426ebff67417f61689d6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2d7a9e80b39a426ebff67417f61689d6' LIMIT 1 Processing by Iugu::AccountController#create as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2d7a9e80b39a426ebff67417f61689d6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'134e2c5c60674ea999d5060fbc83d1da', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account134e2c5c-6067-4ea9-99d5-060fbc83d1da' WHERE `accounts`.`id` = x'134e2c5c60674ea999d5060fbc83d1da'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2d7a9e80b39a426ebff67417f61689d6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'134e2c5c60674ea999d5060fbc83d1da', x'32513c5e592e4256a850dccbf38783f9', x'2d7a9e80b39a426ebff67417f61689d6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'32513c5e592e4256a850dccbf38783f9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'32513c5e592e4256a850dccbf38783f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'32513c5e592e4256a850dccbf38783f9', x'188be15330a447d1a7f0fcc0ddcffe60', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'32513c5e592e4256a850dccbf38783f9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'32513c5e592e4256a850dccbf38783f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'32513c5e592e4256a850dccbf38783f9', x'366c9dd077d246c9b1860384ba44b2fc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 19ms (ActiveRecord: 4.3ms)  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2d7a9e80b39a426ebff67417f61689d6' Processing by Iugu::AccountController#create as HTML  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'c953be9f6b32459995ca749421444700', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'accountc953be9f-6b32-4599-95ca-749421444700' WHERE `accounts`.`id` = x'c953be9f6b32459995ca749421444700'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2d7a9e80b39a426ebff67417f61689d6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c953be9f6b32459995ca749421444700', x'd35bb9a312e441eda87754a228abf7dd', x'2d7a9e80b39a426ebff67417f61689d6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd35bb9a312e441eda87754a228abf7dd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd35bb9a312e441eda87754a228abf7dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd35bb9a312e441eda87754a228abf7dd', x'71bde9506bae43ffb378cd907657bc13', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd35bb9a312e441eda87754a228abf7dd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd35bb9a312e441eda87754a228abf7dd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd35bb9a312e441eda87754a228abf7dd', x'ae36842f4a3c4bd8b1331f2e48e02d8f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/accounts Completed 302 Found in 17ms (ActiveRecord: 4.0ms)  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2d7a9e80b39a426ebff67417f61689d6'  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$hWjRw1z08RRokSjO6tU41.Xnd5RlgUdhtSAZKnd7hVlEcEEpQkjd.', NULL, x'2c540872c603462b863d6aedf2cbd04f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2c540872c603462b863d6aedf2cbd04f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'cb5014443c3147e292f2494dd812e087', 'a000985c9b6b04df44bd05b1d8e277a5', x'2c540872c603462b863d6aedf2cbd04f', 'User', '2013-01-02 11:05:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2c540872c603462b863d6aedf2cbd04f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'e58d0af4d9db4e91a82b223fc3751aff', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'accounte58d0af4-d9db-4e91-a82b-223fc3751aff' WHERE `accounts`.`id` = x'e58d0af4d9db4e91a82b223fc3751aff' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e58d0af4d9db4e91a82b223fc3751aff' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e58d0af4d9db4e91a82b223fc3751aff', x'c74905d998e2449b863113064b509d50', x'2c540872c603462b863d6aedf2cbd04f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c74905d998e2449b863113064b509d50') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c74905d998e2449b863113064b509d50' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c74905d998e2449b863113064b509d50', x'0066ebc5708d41978ac7dafb990a01de', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c74905d998e2449b863113064b509d50') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c74905d998e2449b863113064b509d50' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c74905d998e2449b863113064b509d50', x'54c94631f99742f7910e194edc508956', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:57 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414959e640_107080435d4846083@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'9ca6fb16bf97496b97454775b0d0e316', 'jabanilson', NULL, 1, '2013-01-02 11:05:57')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account9ca6fb16-bf97-496b-9745-4775b0d0e316' WHERE `accounts`.`id` = x'9ca6fb16bf97496b97454775b0d0e316'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9ca6fb16bf97496b97454775b0d0e316', x'a9cd4b5aac9b426bb46c176df8ad3090', x'2c540872c603462b863d6aedf2cbd04f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a9cd4b5aac9b426bb46c176df8ad3090') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9cd4b5aac9b426bb46c176df8ad3090' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9cd4b5aac9b426bb46c176df8ad3090', x'139d2215f2fa4566baa10488aa28b2a7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a9cd4b5aac9b426bb46c176df8ad3090') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a9cd4b5aac9b426bb46c176df8ad3090' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a9cd4b5aac9b426bb46c176df8ad3090', x'd34025ffe3874d16941ff97bd40e8c02', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c540872c603462b863d6aedf2cbd04f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c540872c603462b863d6aedf2cbd04f' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c540872c603462b863d6aedf2cbd04f' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"E58D0AF4D9DB4E91A82B223FC3751AFF"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2c540872c603462b863d6aedf2cbd04f' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e58d0af4d9db4e91a82b223fc3751aff' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e58d0af4-d9db-4e91-a82b-223fc3751aff_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2c540872c603462b863d6aedf2cbd04f' AND `account_users`.`account_id` = x'e58d0af4d9db4e91a82b223fc3751aff' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c74905d998e2449b863113064b509d50' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c540872c603462b863d6aedf2cbd04f' AND `accounts`.`id` = x'e58d0af4d9db4e91a82b223fc3751aff' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'e58d0af4d9db4e91a82b223fc3751aff' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e58d0af4d9db4e91a82b223fc3751aff' LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:05:57', 'token x', x'b6449ad4640243b7bd4285d3ed2754d2', '8c0ba9a48e3154aa8bd4ef3ebcf3ab4a', x'e58d0af4d9db4e91a82b223fc3751aff', 'Account', '2013-01-02 11:05:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/E58D0AF4D9DB4E91A82B223FC3751AFF Completed 302 Found in 96ms (ActiveRecord: 4.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$1EGkDUNtNrze4M3ZdHYVHuBomqJWDy9gPXkPB3eKz.wl8QFfVcs0.', NULL, x'f3f4add1a441481db59cd48669d7f40a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f3f4add1a441481db59cd48669d7f40a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'dbe3d43a9c96447ab46e2ca74b82cbe0', 'd87ab929deb4cc90fadfe6fc337b8796', x'f3f4add1a441481db59cd48669d7f40a', 'User', '2013-01-02 11:05:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f3f4add1a441481db59cd48669d7f40a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'd6d48fcd081049f6a7824b16666137a0', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'accountd6d48fcd-0810-49f6-a782-4b16666137a0' WHERE `accounts`.`id` = x'd6d48fcd081049f6a7824b16666137a0' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd6d48fcd081049f6a7824b16666137a0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd6d48fcd081049f6a7824b16666137a0', x'525ed0403fe3453995391dde7205d72e', x'f3f4add1a441481db59cd48669d7f40a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'525ed0403fe3453995391dde7205d72e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'525ed0403fe3453995391dde7205d72e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'525ed0403fe3453995391dde7205d72e', x'617a5b833ae04a3dac77dac273d199cf', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'525ed0403fe3453995391dde7205d72e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'525ed0403fe3453995391dde7205d72e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'525ed0403fe3453995391dde7205d72e', x'25d77cfebf214c889d2a61ae0b772b05', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:57 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41495c7a2b_107080435d484616a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'11d6067fa9ed49c8996d300ae752cda6', 'jabanilson', NULL, 1, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account11d6067f-a9ed-49c8-996d-300ae752cda6' WHERE `accounts`.`id` = x'11d6067fa9ed49c8996d300ae752cda6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'11d6067fa9ed49c8996d300ae752cda6', x'8fc42af8d9aa4fa0a0621eb84666ca56', x'f3f4add1a441481db59cd48669d7f40a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8fc42af8d9aa4fa0a0621eb84666ca56') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8fc42af8d9aa4fa0a0621eb84666ca56' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8fc42af8d9aa4fa0a0621eb84666ca56', x'7efd300175e44885a3088fe42406d177', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8fc42af8d9aa4fa0a0621eb84666ca56') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8fc42af8d9aa4fa0a0621eb84666ca56' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8fc42af8d9aa4fa0a0621eb84666ca56', x'9057ee616dea4543a2121d22104d592a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3f4add1a441481db59cd48669d7f40a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3f4add1a441481db59cd48669d7f40a' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3f4add1a441481db59cd48669d7f40a' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"D6D48FCD081049F6A7824B16666137A0"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3f4add1a441481db59cd48669d7f40a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd6d48fcd081049f6a7824b16666137a0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d6d48fcd-0810-49f6-a782-4b16666137a0_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f3f4add1a441481db59cd48669d7f40a' AND `account_users`.`account_id` = x'd6d48fcd081049f6a7824b16666137a0' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'525ed0403fe3453995391dde7205d72e' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3f4add1a441481db59cd48669d7f40a' AND `accounts`.`id` = x'd6d48fcd081049f6a7824b16666137a0' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'd6d48fcd081049f6a7824b16666137a0' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd6d48fcd081049f6a7824b16666137a0' LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:05:57', 'token x', x'8aec235cbf2346169e060b9f7f179221', '079f362753b7ffb9c52f8a84d2ff61e2', x'd6d48fcd081049f6a7824b16666137a0', 'Account', '2013-01-02 11:05:57')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/D6D48FCD081049F6A7824B16666137A0 Completed 302 Found in 16ms (ActiveRecord: 3.7ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$mmAmWLF4vOVmzZNzfipPXe18q2bYN41EU2x1NQtiZngMQemYVXUpe', NULL, x'78e14de65938451f96aeb93367ab81a6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'78e14de65938451f96aeb93367ab81a6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'7340057db8294ce7b11921b1f394082e', '8be3c958fa1dde0aaa21147a48f56f3a', x'78e14de65938451f96aeb93367ab81a6', 'User', '2013-01-02 11:05:57') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'78e14de65938451f96aeb93367ab81a6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'69501dbc8aa2421f9bc1751bb4cd59dc', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account69501dbc-8aa2-421f-9bc1-751bb4cd59dc' WHERE `accounts`.`id` = x'69501dbc8aa2421f9bc1751bb4cd59dc' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'69501dbc8aa2421f9bc1751bb4cd59dc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'69501dbc8aa2421f9bc1751bb4cd59dc', x'eb7a0c1aed764edbbae0a8a9564b34c4', x'78e14de65938451f96aeb93367ab81a6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eb7a0c1aed764edbbae0a8a9564b34c4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb7a0c1aed764edbbae0a8a9564b34c4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb7a0c1aed764edbbae0a8a9564b34c4', x'0639f5eef96b4d0a8795fb550e39a530', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eb7a0c1aed764edbbae0a8a9564b34c4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb7a0c1aed764edbbae0a8a9564b34c4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb7a0c1aed764edbbae0a8a9564b34c4', x'845c65d9aa9f4e80b739cac4f395e1cc', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:57 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41495dd4e1_107080435d48462a3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'964234f121d34772ba03ac427e3ed131', 'jabanilson', NULL, 1, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account964234f1-21d3-4772-ba03-ac427e3ed131' WHERE `accounts`.`id` = x'964234f121d34772ba03ac427e3ed131'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'964234f121d34772ba03ac427e3ed131', x'4524f5c558c94e99bd8c3333263fafc7', x'78e14de65938451f96aeb93367ab81a6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4524f5c558c94e99bd8c3333263fafc7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4524f5c558c94e99bd8c3333263fafc7' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4524f5c558c94e99bd8c3333263fafc7', x'4983b297cd5d4800975a54a6b34f666a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4524f5c558c94e99bd8c3333263fafc7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4524f5c558c94e99bd8c3333263fafc7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4524f5c558c94e99bd8c3333263fafc7', x'1972f56544ab4d07b7b9565ab26cf494', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'78e14de65938451f96aeb93367ab81a6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'78e14de65938451f96aeb93367ab81a6' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'78e14de65938451f96aeb93367ab81a6' ORDER BY `accounts`.`id` DESC LIMIT 1 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"964234F121D34772BA03AC427E3ED131"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'78e14de65938451f96aeb93367ab81a6' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'964234f121d34772ba03ac427e3ed131' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_964234f1-21d3-4772-ba03-ac427e3ed131_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'78e14de65938451f96aeb93367ab81a6' AND `account_users`.`account_id` = x'964234f121d34772ba03ac427e3ed131' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4524f5c558c94e99bd8c3333263fafc7' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'78e14de65938451f96aeb93367ab81a6' AND `accounts`.`id` = x'964234f121d34772ba03ac427e3ed131' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token x' AND `api_tokens`.`tokenable_id` = x'964234f121d34772ba03ac427e3ed131' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'964234f121d34772ba03ac427e3ed131' LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:05:57', 'token x', x'202aed3abbab483686da2e34ac23eede', '4c90bcf9dee8a6d4a2ae8fa0e145f8bf', x'964234f121d34772ba03ac427e3ed131', 'Account', '2013-01-02 11:05:57')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/964234F121D34772BA03AC427E3ED131 Completed 302 Found in 15ms (ActiveRecord: 3.6ms) Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"description"=>"token x", "api_type"=>"test", "account_id"=>"964234F121D34772BA03AC427E3ED131"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'964234f121d34772ba03ac427e3ed131' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_964234f1-21d3-4772-ba03-ac427e3ed131_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'78e14de65938451f96aeb93367ab81a6' AND `account_users`.`account_id` = x'964234f121d34772ba03ac427e3ed131' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4524f5c558c94e99bd8c3333263fafc7' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 6ms  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:57', 'teste@teste.com', '$2a$04$VQ6LGZ8VjbRBeGk2G6Asc.0EZhtk6t0TT3idyO4.WtppFLFjEO8BO', NULL, x'b5f536bf7703438fa4f6e29274881101', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:57') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b5f536bf7703438fa4f6e29274881101' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:57', 'User', x'b6cb615c020e4731be8b903f99d3f629', '46fb2b541c86487398627c1d39cda424', x'b5f536bf7703438fa4f6e29274881101', 'User', '2013-01-02 11:05:57') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b5f536bf7703438fa4f6e29274881101' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:57', x'392f508ec2f340e5be49b780e3e06b2e', NULL, NULL, NULL, '2013-01-02 11:05:57')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:57', `updated_at` = '2013-01-02 11:05:57', `subdomain` = 'account392f508e-c2f3-40e5-be49-b780e3e06b2e' WHERE `accounts`.`id` = x'392f508ec2f340e5be49b780e3e06b2e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'392f508ec2f340e5be49b780e3e06b2e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'392f508ec2f340e5be49b780e3e06b2e', x'0d3deb134d4f470681f58d0bcd5110fe', x'b5f536bf7703438fa4f6e29274881101') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0d3deb134d4f470681f58d0bcd5110fe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d3deb134d4f470681f58d0bcd5110fe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d3deb134d4f470681f58d0bcd5110fe', x'4e8de98a2cb14038b5ddf45365cfe189', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0d3deb134d4f470681f58d0bcd5110fe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d3deb134d4f470681f58d0bcd5110fe' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d3deb134d4f470681f58d0bcd5110fe', x'1b355bfcfc654fc598660e19cc13f903', 'admin') Sent mail to teste@teste.com (8ms) Date: Wed, 02 Jan 2013 09:05:58 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414962356_107080435d48463be@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'68f0f56547ab49cbae39e82543ef813c', 'jabanilson', NULL, 1, '2013-01-02 11:05:58')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account68f0f565-47ab-49cb-ae39-e82543ef813c' WHERE `accounts`.`id` = x'68f0f56547ab49cbae39e82543ef813c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'68f0f56547ab49cbae39e82543ef813c', x'5d6913e495ce4d299f9308a9fd9b861f', x'b5f536bf7703438fa4f6e29274881101') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5d6913e495ce4d299f9308a9fd9b861f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d6913e495ce4d299f9308a9fd9b861f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d6913e495ce4d299f9308a9fd9b861f', x'55dc4deb15994648b64ea7ac1dddcceb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5d6913e495ce4d299f9308a9fd9b861f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d6913e495ce4d299f9308a9fd9b861f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d6913e495ce4d299f9308a9fd9b861f', x'bd37eaf5248d4292a4bce5e80ef4830b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b5f536bf7703438fa4f6e29274881101' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b5f536bf7703438fa4f6e29274881101' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b5f536bf7703438fa4f6e29274881101' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'392f508ec2f340e5be49b780e3e06b2e' AND `account_domains`.`url` = 'controller.test.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'392f508ec2f340e5be49b780e3e06b2e', x'fd0d5521e4424e9da205af2912e070b1', NULL, 'controller.test.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"392F508EC2F340E5BE49B780E3E06B2E"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b5f536bf7703438fa4f6e29274881101' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'392f508ec2f340e5be49b780e3e06b2e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_392f508e-c2f3-40e5-be49-b780e3e06b2e_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b5f536bf7703438fa4f6e29274881101' AND `account_users`.`account_id` = x'392f508ec2f340e5be49b780e3e06b2e' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d3deb134d4f470681f58d0bcd5110fe' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d3deb134d4f470681f58d0bcd5110fe' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b5f536bf7703438fa4f6e29274881101' AND `accounts`.`id` = x'392f508ec2f340e5be49b780e3e06b2e' LIMIT 1 Completed 200 OK in 123ms (Views: 109.8ms | ActiveRecord: 2.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:58', 'teste@teste.com', '$2a$04$N/gwXi9kG/I6TuQIMV6FLeGCG/Rqz8sJ86axL2sQKTCpKZXwv3nVG', NULL, x'd80066e8acc7453195e0f94109c70934', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd80066e8acc7453195e0f94109c70934' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:58', 'User', x'6f38610b9cf34d219f19c13f1f12def1', '334b656de78ec6355cee54f1d9f0788d', x'd80066e8acc7453195e0f94109c70934', 'User', '2013-01-02 11:05:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd80066e8acc7453195e0f94109c70934' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'7d92910e60c542fba26ebcd69ea537b9', NULL, NULL, NULL, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account7d92910e-60c5-42fb-a26e-bcd69ea537b9' WHERE `accounts`.`id` = x'7d92910e60c542fba26ebcd69ea537b9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7d92910e60c542fba26ebcd69ea537b9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7d92910e60c542fba26ebcd69ea537b9', x'bf036ed88e9d406c8b238ec65cd4cc04', x'd80066e8acc7453195e0f94109c70934') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bf036ed88e9d406c8b238ec65cd4cc04') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bf036ed88e9d406c8b238ec65cd4cc04' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bf036ed88e9d406c8b238ec65cd4cc04', x'd1c787b1c11a499db7fdea82aad8d678', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bf036ed88e9d406c8b238ec65cd4cc04') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bf036ed88e9d406c8b238ec65cd4cc04' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bf036ed88e9d406c8b238ec65cd4cc04', x'cd5fbe3701374097a7926f0b7e79650a', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:58 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149639537_107080435d48464f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'fd07a3e0455a418493bee70ab668ebf3', 'jabanilson', NULL, 1, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'accountfd07a3e0-455a-4184-93be-e70ab668ebf3' WHERE `accounts`.`id` = x'fd07a3e0455a418493bee70ab668ebf3'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fd07a3e0455a418493bee70ab668ebf3', x'b07afd65da864b29adc4362e461ff5ee', x'd80066e8acc7453195e0f94109c70934') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b07afd65da864b29adc4362e461ff5ee') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b07afd65da864b29adc4362e461ff5ee' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b07afd65da864b29adc4362e461ff5ee', x'3f956256dbe348c887087134d823e8cf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b07afd65da864b29adc4362e461ff5ee') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b07afd65da864b29adc4362e461ff5ee' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b07afd65da864b29adc4362e461ff5ee', x'79d9bd6b2e8545ae8a36f5b8333cf2f8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd80066e8acc7453195e0f94109c70934' AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd80066e8acc7453195e0f94109c70934' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd80066e8acc7453195e0f94109c70934' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"7D92910E60C542FBA26EBCD69EA537B9"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd80066e8acc7453195e0f94109c70934' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7d92910e60c542fba26ebcd69ea537b9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7d92910e-60c5-42fb-a26e-bcd69ea537b9_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd80066e8acc7453195e0f94109c70934' AND `account_users`.`account_id` = x'7d92910e60c542fba26ebcd69ea537b9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bf036ed88e9d406c8b238ec65cd4cc04' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bf036ed88e9d406c8b238ec65cd4cc04' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd80066e8acc7453195e0f94109c70934' AND `accounts`.`id` = x'7d92910e60c542fba26ebcd69ea537b9' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7d92910e60c542fba26ebcd69ea537b9' AND `account_domains`.`url` = 'new.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7d92910e60c542fba26ebcd69ea537b9', x'dc00276cf1ef49058a9b65499829c4a9', NULL, 'new.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/7D92910E60C542FBA26EBCD69EA537B9/domain/DC00276CF1EF49058A9B65499829C4A9 Completed 302 Found in 16ms (ActiveRecord: 3.9ms) AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` ORDER BY `account_domains`.`id` DESC LIMIT 1  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:58', 'teste@teste.com', '$2a$04$am.Hi1rECMAgZIT3x.dJWuOPMURQ6B.jOABT3uth2KlHwg0ZLXMTK', NULL, x'ebacea5e0df74ae5b0f0fbaf8880b4a5', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:58', 'User', x'da7dc0e9f2934c0198c49a3adfff78bb', '03678f0533241e9201c2d3516c7545a7', x'ebacea5e0df74ae5b0f0fbaf8880b4a5', 'User', '2013-01-02 11:05:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'e38ac6f5d25c4bd596c669085b4de046', NULL, NULL, NULL, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'accounte38ac6f5-d25c-4bd5-96c6-69085b4de046' WHERE `accounts`.`id` = x'e38ac6f5d25c4bd596c669085b4de046' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e38ac6f5d25c4bd596c669085b4de046' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e38ac6f5d25c4bd596c669085b4de046', x'd8b70af7ef9c4390ae695df46c5b58ed', x'ebacea5e0df74ae5b0f0fbaf8880b4a5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd8b70af7ef9c4390ae695df46c5b58ed') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8b70af7ef9c4390ae695df46c5b58ed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8b70af7ef9c4390ae695df46c5b58ed', x'a06857c5f7f2444b81d2858c7f6b5960', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd8b70af7ef9c4390ae695df46c5b58ed') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd8b70af7ef9c4390ae695df46c5b58ed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd8b70af7ef9c4390ae695df46c5b58ed', x'723b3c153b544eeb94f374e72b3a1934', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:05:58 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414965098d_107080435d4846549@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'7acf63c199cf4856b080d54f6c5f3c91', 'jabanilson', NULL, 1, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account7acf63c1-99cf-4856-b080-d54f6c5f3c91' WHERE `accounts`.`id` = x'7acf63c199cf4856b080d54f6c5f3c91'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7acf63c199cf4856b080d54f6c5f3c91', x'1437327d46b644588bada0542cbde833', x'ebacea5e0df74ae5b0f0fbaf8880b4a5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1437327d46b644588bada0542cbde833') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1437327d46b644588bada0542cbde833' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1437327d46b644588bada0542cbde833', x'18bbf251446f47b4bae48604ff10a28a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1437327d46b644588bada0542cbde833') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1437327d46b644588bada0542cbde833' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1437327d46b644588bada0542cbde833', x'4ffd8e97cf2d4703ba2adf9b9668bed8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"7ACF63C199CF4856B080D54F6C5F3C91"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7acf63c199cf4856b080d54f6c5f3c91' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7acf63c1-99cf-4856-b080-d54f6c5f3c91_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' AND `account_users`.`account_id` = x'7acf63c199cf4856b080d54f6c5f3c91' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1437327d46b644588bada0542cbde833' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1437327d46b644588bada0542cbde833' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' AND `accounts`.`id` = x'7acf63c199cf4856b080d54f6c5f3c91' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7acf63c199cf4856b080d54f6c5f3c91' AND `account_domains`.`url` = 'new.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7acf63c199cf4856b080d54f6c5f3c91', x'9d875b3a1fce4f6588d271976c90e383', NULL, 'new.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/7ACF63C199CF4856B080D54F6C5F3C91/domain/9D875B3A1FCE4F6588D271976C90E383 Completed 302 Found in 16ms (ActiveRecord: 4.2ms) Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"7ACF63C199CF4856B080D54F6C5F3C91"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7acf63c199cf4856b080d54f6c5f3c91' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7acf63c1-99cf-4856-b080-d54f6c5f3c91_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' AND `account_users`.`account_id` = x'7acf63c199cf4856b080d54f6c5f3c91' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1437327d46b644588bada0542cbde833' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1437327d46b644588bada0542cbde833' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebacea5e0df74ae5b0f0fbaf8880b4a5' AND `accounts`.`id` = x'7acf63c199cf4856b080d54f6c5f3c91' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 15ms (Views: 1.8ms | ActiveRecord: 3.1ms)  (0.9ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:58', 'teste@teste.com', '$2a$04$bTFBRmGl8KZZN3/57wLmDufQh.FDuDXPU1U/kBcHVT3IAWpLN9Rjm', NULL, x'5f02a3ead27e4219a528dfbcb43f16e1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5f02a3ead27e4219a528dfbcb43f16e1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:58', 'User', x'e73a995412e7439190f37d741e1fe80a', '71747d2d2fb82335ca7b544f9eed0903', x'5f02a3ead27e4219a528dfbcb43f16e1', 'User', '2013-01-02 11:05:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5f02a3ead27e4219a528dfbcb43f16e1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'7dac58e289ce4cb192de033819819055', NULL, NULL, NULL, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account7dac58e2-89ce-4cb1-92de-033819819055' WHERE `accounts`.`id` = x'7dac58e289ce4cb192de033819819055' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7dac58e289ce4cb192de033819819055' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7dac58e289ce4cb192de033819819055', x'f277bf24f6f34dc3ac7ad5270a58cef8', x'5f02a3ead27e4219a528dfbcb43f16e1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f277bf24f6f34dc3ac7ad5270a58cef8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f277bf24f6f34dc3ac7ad5270a58cef8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f277bf24f6f34dc3ac7ad5270a58cef8', x'2fd771277e3f40bd9d3fd401e0d14eec', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f277bf24f6f34dc3ac7ad5270a58cef8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f277bf24f6f34dc3ac7ad5270a58cef8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f277bf24f6f34dc3ac7ad5270a58cef8', x'c2d66cb81d0d4e17a2cf80abed244660', 'admin') Sent mail to teste@teste.com (9ms) Date: Wed, 02 Jan 2013 09:05:58 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414966aea2_107080435d4846613@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'95e847be62c241c8999def30574de285', 'jabanilson', NULL, 1, '2013-01-02 11:05:58')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account95e847be-62c2-41c8-999d-ef30574de285' WHERE `accounts`.`id` = x'95e847be62c241c8999def30574de285'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'95e847be62c241c8999def30574de285', x'cb8968cec42c4a7bb7a4b4a28d1114d6', x'5f02a3ead27e4219a528dfbcb43f16e1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cb8968cec42c4a7bb7a4b4a28d1114d6') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cb8968cec42c4a7bb7a4b4a28d1114d6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cb8968cec42c4a7bb7a4b4a28d1114d6', x'c5c5422995f94155a875510aeeecef60', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cb8968cec42c4a7bb7a4b4a28d1114d6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cb8968cec42c4a7bb7a4b4a28d1114d6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cb8968cec42c4a7bb7a4b4a28d1114d6', x'5edba8c798a74595a563de3f72c34ffa', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5f02a3ead27e4219a528dfbcb43f16e1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5f02a3ead27e4219a528dfbcb43f16e1' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5f02a3ead27e4219a528dfbcb43f16e1' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'95e847be62c241c8999def30574de285' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'95e847be62c241c8999def30574de285', x'c39c0aaf46df4d98aa5ba32f657bfdd9', NULL, 'destroy.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'95e847be62c241c8999def30574de285' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"95E847BE62C241C8999DEF30574DE285", "domain_id"=>"C39C0AAF46DF4D98AA5BA32F657BFDD9"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5f02a3ead27e4219a528dfbcb43f16e1' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'95e847be62c241c8999def30574de285' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_95e847be-62c2-41c8-999d-ef30574de285_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5f02a3ead27e4219a528dfbcb43f16e1' AND `account_users`.`account_id` = x'95e847be62c241c8999def30574de285' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cb8968cec42c4a7bb7a4b4a28d1114d6' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cb8968cec42c4a7bb7a4b4a28d1114d6' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5f02a3ead27e4219a528dfbcb43f16e1' AND `accounts`.`id` = x'95e847be62c241c8999def30574de285' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'95e847be62c241c8999def30574de285' AND `account_domains`.`id` = x'c39c0aaf46df4d98aa5ba32f657bfdd9' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'c39c0aaf46df4d98aa5ba32f657bfdd9'  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'95e847be62c241c8999def30574de285' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'95e847be62c241c8999def30574de285' AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'c39c0aaf46df4d98aa5ba32f657bfdd9'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/95E847BE62C241C8999DEF30574DE285/domains Completed 302 Found in 17ms (ActiveRecord: 4.2ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:58', 'teste@teste.com', '$2a$04$0XfGLjnJ8t0j0py0.fUM8.teSB1oggfdTWHdW3cxEWtBu3Jyl9vN.', NULL, x'47e9b3fa40ad44e5b8f0abec8caa0148', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'47e9b3fa40ad44e5b8f0abec8caa0148' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:58', 'User', x'20ed24425c464a558b057de008fa0e7d', '4b0f5175744c6c53aed9a380de2390c3', x'47e9b3fa40ad44e5b8f0abec8caa0148', 'User', '2013-01-02 11:05:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'47e9b3fa40ad44e5b8f0abec8caa0148' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'3748d4ed532c48ae9d860326f46619c6', NULL, NULL, NULL, '2013-01-02 11:05:58')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account3748d4ed-532c-48ae-9d86-0326f46619c6' WHERE `accounts`.`id` = x'3748d4ed532c48ae9d860326f46619c6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3748d4ed532c48ae9d860326f46619c6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3748d4ed532c48ae9d860326f46619c6', x'49e128bbc7f142cb929260e8acbec65d', x'47e9b3fa40ad44e5b8f0abec8caa0148') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'49e128bbc7f142cb929260e8acbec65d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'49e128bbc7f142cb929260e8acbec65d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'49e128bbc7f142cb929260e8acbec65d', x'dce575f0e48144b3aa034672732024fe', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'49e128bbc7f142cb929260e8acbec65d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'49e128bbc7f142cb929260e8acbec65d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'49e128bbc7f142cb929260e8acbec65d', x'51f0c14826594cb9974653deadcf5726', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:58 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149696f83_107080435d484674f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'b7028af39b054b5cba4747464d9e0bc4', 'jabanilson', NULL, 1, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'accountb7028af3-9b05-4b5c-ba47-47464d9e0bc4' WHERE `accounts`.`id` = x'b7028af39b054b5cba4747464d9e0bc4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b7028af39b054b5cba4747464d9e0bc4', x'bd5045b0b5db44a38d16b2e14a2b2294', x'47e9b3fa40ad44e5b8f0abec8caa0148') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bd5045b0b5db44a38d16b2e14a2b2294') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd5045b0b5db44a38d16b2e14a2b2294' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd5045b0b5db44a38d16b2e14a2b2294', x'ec817826357246d3899fd3dc33cd42a4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bd5045b0b5db44a38d16b2e14a2b2294') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd5045b0b5db44a38d16b2e14a2b2294' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd5045b0b5db44a38d16b2e14a2b2294', x'13990e90121d46cd8961c42ace6e36b3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'47e9b3fa40ad44e5b8f0abec8caa0148' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'47e9b3fa40ad44e5b8f0abec8caa0148' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'47e9b3fa40ad44e5b8f0abec8caa0148' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3748d4ed532c48ae9d860326f46619c6' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'3748d4ed532c48ae9d860326f46619c6', x'b24265464fc3466e9f5bff67f34d7ecd', NULL, 'destroy.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'3748d4ed532c48ae9d860326f46619c6' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"3748D4ED532C48AE9D860326F46619C6", "domain_id"=>"B24265464FC3466E9F5BFF67F34D7ECD"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'47e9b3fa40ad44e5b8f0abec8caa0148' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3748d4ed532c48ae9d860326f46619c6' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3748d4ed-532c-48ae-9d86-0326f46619c6_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'47e9b3fa40ad44e5b8f0abec8caa0148' AND `account_users`.`account_id` = x'3748d4ed532c48ae9d860326f46619c6' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'49e128bbc7f142cb929260e8acbec65d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'49e128bbc7f142cb929260e8acbec65d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'47e9b3fa40ad44e5b8f0abec8caa0148' AND `accounts`.`id` = x'3748d4ed532c48ae9d860326f46619c6' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'3748d4ed532c48ae9d860326f46619c6' AND `account_domains`.`id` = x'b24265464fc3466e9f5bff67f34d7ecd' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'b24265464fc3466e9f5bff67f34d7ecd'  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'3748d4ed532c48ae9d860326f46619c6' AND `account_domains`.`primary` = 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'3748d4ed532c48ae9d860326f46619c6' AND `account_domains`.`verified` = 1 LIMIT 1 SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'b24265464fc3466e9f5bff67f34d7ecd'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/3748D4ED532C48AE9D860326F46619C6/domains Completed 302 Found in 16ms (ActiveRecord: 4.4ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:58', 'teste@teste.com', '$2a$04$nAnf4pmYVAkcDIj66R0iyOFyLBK8w0WU/xkpiCQYY/mPkJAd0QSjq', NULL, x'5b10224736b84be98cd6ce18b9ff75f6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5b10224736b84be98cd6ce18b9ff75f6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:58', 'User', x'5a4739f231e64ddcb6ad688b06970df3', 'd984b60e5ed17adc2e5f43e04b8984e2', x'5b10224736b84be98cd6ce18b9ff75f6', 'User', '2013-01-02 11:05:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5b10224736b84be98cd6ce18b9ff75f6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'9603163f53c548cb9b3a1cce8daa692d', NULL, NULL, NULL, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account9603163f-53c5-48cb-9b3a-1cce8daa692d' WHERE `accounts`.`id` = x'9603163f53c548cb9b3a1cce8daa692d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9603163f53c548cb9b3a1cce8daa692d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9603163f53c548cb9b3a1cce8daa692d', x'1db3f1f3df13474ebea4f6b486f61012', x'5b10224736b84be98cd6ce18b9ff75f6') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1db3f1f3df13474ebea4f6b486f61012') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1db3f1f3df13474ebea4f6b486f61012' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1db3f1f3df13474ebea4f6b486f61012', x'0e9e8d55095743ac834965f3548ec5b3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1db3f1f3df13474ebea4f6b486f61012') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1db3f1f3df13474ebea4f6b486f61012' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1db3f1f3df13474ebea4f6b486f61012', x'5429689748c84ea9a88a68319d81a9ea', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:58 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41496ae600_107080435d4846894@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'5f543f1d603c4b018ecf2ca3374a91ab', 'jabanilson', NULL, 1, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account5f543f1d-603c-4b01-8ecf-2ca3374a91ab' WHERE `accounts`.`id` = x'5f543f1d603c4b018ecf2ca3374a91ab'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5f543f1d603c4b018ecf2ca3374a91ab', x'f5f3971ba9fe42a1afdf2b159176d746', x'5b10224736b84be98cd6ce18b9ff75f6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f5f3971ba9fe42a1afdf2b159176d746') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5f3971ba9fe42a1afdf2b159176d746' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5f3971ba9fe42a1afdf2b159176d746', x'59f8265c237b4966b2f82cca6a37b526', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f5f3971ba9fe42a1afdf2b159176d746') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5f3971ba9fe42a1afdf2b159176d746' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5f3971ba9fe42a1afdf2b159176d746', x'63e4071d512747a087cf38c3262ad06e', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5b10224736b84be98cd6ce18b9ff75f6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5b10224736b84be98cd6ce18b9ff75f6' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5b10224736b84be98cd6ce18b9ff75f6' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9603163f53c548cb9b3a1cce8daa692d' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9603163f53c548cb9b3a1cce8daa692d', x'623ed02f41964b65af8c7ff7f07dbbdd', NULL, 'destroy.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'9603163f53c548cb9b3a1cce8daa692d' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"9603163F53C548CB9B3A1CCE8DAA692D", "domain_id"=>"1273816283761238716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5b10224736b84be98cd6ce18b9ff75f6' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9603163f53c548cb9b3a1cce8daa692d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_9603163f-53c5-48cb-9b3a-1cce8daa692d_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5b10224736b84be98cd6ce18b9ff75f6' AND `account_users`.`account_id` = x'9603163f53c548cb9b3a1cce8daa692d' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1db3f1f3df13474ebea4f6b486f61012' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1db3f1f3df13474ebea4f6b486f61012' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5b10224736b84be98cd6ce18b9ff75f6' AND `accounts`.`id` = x'9603163f53c548cb9b3a1cce8daa692d' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'9603163f53c548cb9b3a1cce8daa692d' AND `account_domains`.`id` = x'33383136323833373631323338373136' LIMIT 1 Redirected to http://test.host/settings/account/9603163F53C548CB9B3A1CCE8DAA692D/domains Completed 302 Found in 12ms (ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:58', 'teste@teste.com', '$2a$04$czRo.g11IxnmqOt56ZwSMOBrzynOI.RG0TrZorvPoJ.LzhZHpLYvK', NULL, x'acabcaeb2c734b76bfe4c47fbe06ab5b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:58') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'acabcaeb2c734b76bfe4c47fbe06ab5b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:58', 'User', x'51b1aa44115c4741b446a1fa0af92313', '98f8771486572ec42832bd610e1593c2', x'acabcaeb2c734b76bfe4c47fbe06ab5b', 'User', '2013-01-02 11:05:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'acabcaeb2c734b76bfe4c47fbe06ab5b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'b42a1c9559df46cbae6cd08381b3f71b', NULL, NULL, NULL, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'accountb42a1c95-59df-46cb-ae6c-d08381b3f71b' WHERE `accounts`.`id` = x'b42a1c9559df46cbae6cd08381b3f71b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b42a1c9559df46cbae6cd08381b3f71b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b42a1c9559df46cbae6cd08381b3f71b', x'245fe5d0ec9e49a6ac83e3fa78a71446', x'acabcaeb2c734b76bfe4c47fbe06ab5b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'245fe5d0ec9e49a6ac83e3fa78a71446') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'245fe5d0ec9e49a6ac83e3fa78a71446' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'245fe5d0ec9e49a6ac83e3fa78a71446', x'90beb2dd529c45eca8a87f1f8ff81ac5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'245fe5d0ec9e49a6ac83e3fa78a71446') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'245fe5d0ec9e49a6ac83e3fa78a71446' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'245fe5d0ec9e49a6ac83e3fa78a71446', x'78ed90def2b448b7a5e37edce3134fc1', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:58 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41496c4f59_107080435d484697@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'785a0c0f9c8143f381a88a8531b89029', 'jabanilson', NULL, 1, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account785a0c0f-9c81-43f3-81a8-8a8531b89029' WHERE `accounts`.`id` = x'785a0c0f9c8143f381a88a8531b89029'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'785a0c0f9c8143f381a88a8531b89029', x'430a42114fc44f689f4cc3b2e3de5503', x'acabcaeb2c734b76bfe4c47fbe06ab5b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'430a42114fc44f689f4cc3b2e3de5503') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'430a42114fc44f689f4cc3b2e3de5503' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'430a42114fc44f689f4cc3b2e3de5503', x'cf940e5296e447ad9501b4a8ffd947ec', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'430a42114fc44f689f4cc3b2e3de5503') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'430a42114fc44f689f4cc3b2e3de5503' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'430a42114fc44f689f4cc3b2e3de5503', x'964f93834ed04e408faffc14058df127', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'acabcaeb2c734b76bfe4c47fbe06ab5b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'acabcaeb2c734b76bfe4c47fbe06ab5b' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'acabcaeb2c734b76bfe4c47fbe06ab5b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b42a1c9559df46cbae6cd08381b3f71b' AND `account_domains`.`url` = 'destroy.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b42a1c9559df46cbae6cd08381b3f71b', x'eaaf31b577d74048adabbcf1dc0c2e2c', NULL, 'destroy.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b42a1c9559df46cbae6cd08381b3f71b' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"B42A1C9559DF46CBAE6CD08381B3F71B", "domain_id"=>"1273816283761238716"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'acabcaeb2c734b76bfe4c47fbe06ab5b' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b42a1c9559df46cbae6cd08381b3f71b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b42a1c95-59df-46cb-ae6c-d08381b3f71b_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'acabcaeb2c734b76bfe4c47fbe06ab5b' AND `account_users`.`account_id` = x'b42a1c9559df46cbae6cd08381b3f71b' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'245fe5d0ec9e49a6ac83e3fa78a71446' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'245fe5d0ec9e49a6ac83e3fa78a71446' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'acabcaeb2c734b76bfe4c47fbe06ab5b' AND `accounts`.`id` = x'b42a1c9559df46cbae6cd08381b3f71b' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b42a1c9559df46cbae6cd08381b3f71b' AND `account_domains`.`id` = x'33383136323833373631323338373136' LIMIT 1 Redirected to http://test.host/settings/account/B42A1C9559DF46CBAE6CD08381B3F71B/domains Completed 302 Found in 11ms (ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:58', 'teste@teste.com', '$2a$04$nq1ho7rZJCJJ.krHx4Q/mOsHz5P31VIfd0aJiuMI3iS7xx6ZeyHg2', NULL, x'9b3e18d6b26a4d6e97049aa3292f30b3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:58') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9b3e18d6b26a4d6e97049aa3292f30b3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:58', 'User', x'208dcc3ca067485b94744802bbd85b1c', 'f42f8ee54ff92f08f7d2f5b7a72d8069', x'9b3e18d6b26a4d6e97049aa3292f30b3', 'User', '2013-01-02 11:05:58') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9b3e18d6b26a4d6e97049aa3292f30b3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'70f63f13d4764a549ed18c96b5f1fda0', NULL, NULL, NULL, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account70f63f13-d476-4a54-9ed1-8c96b5f1fda0' WHERE `accounts`.`id` = x'70f63f13d4764a549ed18c96b5f1fda0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'70f63f13d4764a549ed18c96b5f1fda0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'70f63f13d4764a549ed18c96b5f1fda0', x'52edce83ed2641aab0b1e0f2569f4c90', x'9b3e18d6b26a4d6e97049aa3292f30b3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'52edce83ed2641aab0b1e0f2569f4c90') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52edce83ed2641aab0b1e0f2569f4c90' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52edce83ed2641aab0b1e0f2569f4c90', x'3d23d1af3a06449280bd183fd5ee7c62', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'52edce83ed2641aab0b1e0f2569f4c90') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52edce83ed2641aab0b1e0f2569f4c90' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52edce83ed2641aab0b1e0f2569f4c90', x'f5d4616f56e4495a89fecdf31537e822', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:58 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41496ef20b_107080435d484704d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:58', x'2192b251ac774c978421701d9d8d3c40', 'jabanilson', NULL, 1, '2013-01-02 11:05:58')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:58', `updated_at` = '2013-01-02 11:05:58', `subdomain` = 'account2192b251-ac77-4c97-8421-701d9d8d3c40' WHERE `accounts`.`id` = x'2192b251ac774c978421701d9d8d3c40'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2192b251ac774c978421701d9d8d3c40', x'9e739366990d48d283a8e2d5e00ae52c', x'9b3e18d6b26a4d6e97049aa3292f30b3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9e739366990d48d283a8e2d5e00ae52c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e739366990d48d283a8e2d5e00ae52c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e739366990d48d283a8e2d5e00ae52c', x'c24571fce3e348c58eff211c4e1b79b0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9e739366990d48d283a8e2d5e00ae52c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e739366990d48d283a8e2d5e00ae52c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e739366990d48d283a8e2d5e00ae52c', x'86e56904631744f2bf29dfaa9c10e42b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b3e18d6b26a4d6e97049aa3292f30b3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b3e18d6b26a4d6e97049aa3292f30b3' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b3e18d6b26a4d6e97049aa3292f30b3' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'70f63f13d4764a549ed18c96b5f1fda0' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'70f63f13d4764a549ed18c96b5f1fda0', x'f3904d6a279e4881b8d1a4f804e4bbb9', NULL, 'instructions.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'70f63f13d4764a549ed18c96b5f1fda0' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"70F63F13D4764A549ED18C96B5F1FDA0", "domain_id"=>"F3904D6A279E4881B8D1A4F804E4BBB9"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9b3e18d6b26a4d6e97049aa3292f30b3' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'70f63f13d4764a549ed18c96b5f1fda0' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_70f63f13-d476-4a54-9ed1-8c96b5f1fda0_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9b3e18d6b26a4d6e97049aa3292f30b3' AND `accounts`.`id` = x'70f63f13d4764a549ed18c96b5f1fda0' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'70f63f13d4764a549ed18c96b5f1fda0' AND `account_domains`.`id` = x'f3904d6a279e4881b8d1a4f804e4bbb9' LIMIT 1 Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 1.9ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$QHXZlEAM9UgMFc2oY5C8seP2/30tniziA14sJpalCPj1ll7iglBUu', NULL, x'73b4f0e4a15843dcb4f39b17f64fe34d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'73b4f0e4a15843dcb4f39b17f64fe34d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'6e39b622cf0e4cad9ac8b23dafa08993', '9e522ec763997ffcfb078f7649d64d8b', x'73b4f0e4a15843dcb4f39b17f64fe34d', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'73b4f0e4a15843dcb4f39b17f64fe34d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'847d3e7810d34ee0a797ac50c3f1a50e', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account847d3e78-10d3-4ee0-a797-ac50c3f1a50e' WHERE `accounts`.`id` = x'847d3e7810d34ee0a797ac50c3f1a50e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'847d3e7810d34ee0a797ac50c3f1a50e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'847d3e7810d34ee0a797ac50c3f1a50e', x'8f78a1a7fea74b77ba1c37d92de67c16', x'73b4f0e4a15843dcb4f39b17f64fe34d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8f78a1a7fea74b77ba1c37d92de67c16') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f78a1a7fea74b77ba1c37d92de67c16' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f78a1a7fea74b77ba1c37d92de67c16', x'480fde7dfa5b42feb18eee4ea1afeea3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8f78a1a7fea74b77ba1c37d92de67c16') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8f78a1a7fea74b77ba1c37d92de67c16' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8f78a1a7fea74b77ba1c37d92de67c16', x'f5e337c817354297ae6b0f99336d03e7', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:59 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149711665_107080435d48471dd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'b324af7171bb4889b1040c1831c6c34f', 'jabanilson', NULL, 1, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'accountb324af71-71bb-4889-b104-0c1831c6c34f' WHERE `accounts`.`id` = x'b324af7171bb4889b1040c1831c6c34f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b324af7171bb4889b1040c1831c6c34f', x'3736af7ab6894502a7b70186f36e8a8e', x'73b4f0e4a15843dcb4f39b17f64fe34d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3736af7ab6894502a7b70186f36e8a8e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3736af7ab6894502a7b70186f36e8a8e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3736af7ab6894502a7b70186f36e8a8e', x'f1b289311c354fd98ac5d110782adf2e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3736af7ab6894502a7b70186f36e8a8e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3736af7ab6894502a7b70186f36e8a8e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3736af7ab6894502a7b70186f36e8a8e', x'0048e6a2b15c492ea5cab3cd39541e98', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'73b4f0e4a15843dcb4f39b17f64fe34d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'73b4f0e4a15843dcb4f39b17f64fe34d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'73b4f0e4a15843dcb4f39b17f64fe34d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b324af7171bb4889b1040c1831c6c34f' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b324af7171bb4889b1040c1831c6c34f', x'7c1fac4215d1476e97361cae45b645ea', NULL, 'instructions.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b324af7171bb4889b1040c1831c6c34f' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"B324AF7171BB4889B1040C1831C6C34F", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'73b4f0e4a15843dcb4f39b17f64fe34d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b324af7171bb4889b1040c1831c6c34f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b324af71-71bb-4889-b104-0c1831c6c34f_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'73b4f0e4a15843dcb4f39b17f64fe34d' AND `accounts`.`id` = x'b324af7171bb4889b1040c1831c6c34f' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b324af7171bb4889b1040c1831c6c34f' AND `account_domains`.`id` = x'31323039333731393233383132323338' LIMIT 1 Redirected to http://test.host/settings/account/B324AF7171BB4889B1040C1831C6C34F/domains Completed 302 Found in 7ms (ActiveRecord: 1.9ms)  (10.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$ZCFTQAe0t3uEg5uJa/A8nOp0XqxSmBmSPl5PgJzFKM3RJA1HoPrMG', NULL, x'82e4d71d89954deb882a6b98d5d6acdb', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'82e4d71d89954deb882a6b98d5d6acdb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'c058c25d10a745398e8cae5beca84eaf', '6c18d1282c6ee3596f6385e46f1a72a4', x'82e4d71d89954deb882a6b98d5d6acdb', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'82e4d71d89954deb882a6b98d5d6acdb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'ab414deb54a24fb3b67ea7903f2fe2ff', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'accountab414deb-54a2-4fb3-b67e-a7903f2fe2ff' WHERE `accounts`.`id` = x'ab414deb54a24fb3b67ea7903f2fe2ff' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ab414deb54a24fb3b67ea7903f2fe2ff' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ab414deb54a24fb3b67ea7903f2fe2ff', x'6db976bfe38248bfa1f6d3329b899434', x'82e4d71d89954deb882a6b98d5d6acdb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6db976bfe38248bfa1f6d3329b899434') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6db976bfe38248bfa1f6d3329b899434' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6db976bfe38248bfa1f6d3329b899434', x'fd072cddff654a7f8e167af75715af14', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6db976bfe38248bfa1f6d3329b899434') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6db976bfe38248bfa1f6d3329b899434' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6db976bfe38248bfa1f6d3329b899434', x'fecd2d613a6f4306b1af7b03f7804020', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:59 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149728f61_107080435d48472e6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'e64fbdc1c2554029be203436fc083799', 'jabanilson', NULL, 1, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'accounte64fbdc1-c255-4029-be20-3436fc083799' WHERE `accounts`.`id` = x'e64fbdc1c2554029be203436fc083799'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e64fbdc1c2554029be203436fc083799', x'9fd8c0d772264c17aebc4363fabe98e1', x'82e4d71d89954deb882a6b98d5d6acdb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9fd8c0d772264c17aebc4363fabe98e1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9fd8c0d772264c17aebc4363fabe98e1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9fd8c0d772264c17aebc4363fabe98e1', x'039d9f46ad624be9a5fc6c9b1767d404', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9fd8c0d772264c17aebc4363fabe98e1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9fd8c0d772264c17aebc4363fabe98e1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9fd8c0d772264c17aebc4363fabe98e1', x'f4ca0c0fa5174f23b8e82ed97ae4a498', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82e4d71d89954deb882a6b98d5d6acdb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82e4d71d89954deb882a6b98d5d6acdb' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82e4d71d89954deb882a6b98d5d6acdb' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ab414deb54a24fb3b67ea7903f2fe2ff' AND `account_domains`.`url` = 'instructions.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ab414deb54a24fb3b67ea7903f2fe2ff', x'b0be17c434bb4ce9b6d106a9e5ec8b38', NULL, 'instructions.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'ab414deb54a24fb3b67ea7903f2fe2ff' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#instructions as HTML Parameters: {"account_id"=>"AB414DEB54A24FB3B67EA7903F2FE2FF", "domain_id"=>"1209371923812238"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'82e4d71d89954deb882a6b98d5d6acdb' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ab414deb54a24fb3b67ea7903f2fe2ff' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ab414deb-54a2-4fb3-b67e-a7903f2fe2ff_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'82e4d71d89954deb882a6b98d5d6acdb' AND `accounts`.`id` = x'ab414deb54a24fb3b67ea7903f2fe2ff' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'ab414deb54a24fb3b67ea7903f2fe2ff' AND `account_domains`.`id` = x'31323039333731393233383132323338' LIMIT 1 Redirected to http://test.host/settings/account/AB414DEB54A24FB3B67EA7903F2FE2FF/domains Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (7.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$IPXSupyuREBayAKrOP7An.sq30AGHns.Dslz2vQZAJzik8ypBFgCi', NULL, x'a67a956e2736458090e35cc27aac82fe', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a67a956e2736458090e35cc27aac82fe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'41e7c098d68c48f19f11ce21fc1d0e31', 'fca4c684284b6d3b95f1e1679e305389', x'a67a956e2736458090e35cc27aac82fe', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a67a956e2736458090e35cc27aac82fe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'ce0f90ca52754ff68f860ceac5b8de52', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'accountce0f90ca-5275-4ff6-8f86-0ceac5b8de52' WHERE `accounts`.`id` = x'ce0f90ca52754ff68f860ceac5b8de52' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ce0f90ca52754ff68f860ceac5b8de52' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ce0f90ca52754ff68f860ceac5b8de52', x'9241460546404faaac824b732b917ace', x'a67a956e2736458090e35cc27aac82fe') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9241460546404faaac824b732b917ace') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9241460546404faaac824b732b917ace' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9241460546404faaac824b732b917ace', x'2a0729d202484cb094ac414badf388e3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9241460546404faaac824b732b917ace') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9241460546404faaac824b732b917ace' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9241460546404faaac824b732b917ace', x'5f447b72522643c9acd4146aebbafe86', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:59 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414973f759_107080435d48473c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'68fb96ded92a41748fab3c38d0896051', 'jabanilson', NULL, 1, '2013-01-02 11:05:59')  (0.6ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account68fb96de-d92a-4174-8fab-3c38d0896051' WHERE `accounts`.`id` = x'68fb96ded92a41748fab3c38d0896051'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'68fb96ded92a41748fab3c38d0896051', x'94103c2c7f7c444bab32894b986a3dd8', x'a67a956e2736458090e35cc27aac82fe') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'94103c2c7f7c444bab32894b986a3dd8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'94103c2c7f7c444bab32894b986a3dd8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'94103c2c7f7c444bab32894b986a3dd8', x'5f55dae77ec14e4f812fdc3fbf86dd9f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'94103c2c7f7c444bab32894b986a3dd8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'94103c2c7f7c444bab32894b986a3dd8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'94103c2c7f7c444bab32894b986a3dd8', x'97a5f927a9644e5ba0c011a2a47f6a86', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a67a956e2736458090e35cc27aac82fe' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a67a956e2736458090e35cc27aac82fe' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a67a956e2736458090e35cc27aac82fe' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'68fb96ded92a41748fab3c38d0896051' AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'68fb96ded92a41748fab3c38d0896051', x'c8c6f38a30a04013a6d7f848481bea7e', NULL, 'verify.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'68fb96ded92a41748fab3c38d0896051' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"68FB96DED92A41748FAB3C38D0896051", "domain_id"=>"C8C6F38A30A04013A6D7F848481BEA7E"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a67a956e2736458090e35cc27aac82fe' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68fb96ded92a41748fab3c38d0896051' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_68fb96de-d92a-4174-8fab-3c38d0896051_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a67a956e2736458090e35cc27aac82fe' AND `account_users`.`account_id` = x'68fb96ded92a41748fab3c38d0896051' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'94103c2c7f7c444bab32894b986a3dd8' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'94103c2c7f7c444bab32894b986a3dd8' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a67a956e2736458090e35cc27aac82fe' AND `accounts`.`id` = x'68fb96ded92a41748fab3c38d0896051' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'68fb96ded92a41748fab3c38d0896051' AND `account_domains`.`id` = x'c8c6f38a30a04013a6d7f848481bea7e' LIMIT 1 Redirected to http://test.host/settings/account/68FB96DED92A41748FAB3C38D0896051/domains Completed 302 Found in 13ms (ActiveRecord: 2.9ms)  (4.1ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$7X2gRralOUMKeuJCPdZc9.f/frTjFicEjQUKMnaLr/hHMKNBX2/di', NULL, x'ebac5a70c08349ba8188aeaebabb4b5e', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ebac5a70c08349ba8188aeaebabb4b5e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'8a554772db114d4a9950bde7300e0394', 'f736e921ccad5ad43eacb971ab5f67f0', x'ebac5a70c08349ba8188aeaebabb4b5e', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ebac5a70c08349ba8188aeaebabb4b5e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'457d080296aa47f3b1239df6af878973', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account457d0802-96aa-47f3-b123-9df6af878973' WHERE `accounts`.`id` = x'457d080296aa47f3b1239df6af878973' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'457d080296aa47f3b1239df6af878973' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'457d080296aa47f3b1239df6af878973', x'66100a091ccf45f2963a94e904979499', x'ebac5a70c08349ba8188aeaebabb4b5e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'66100a091ccf45f2963a94e904979499') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66100a091ccf45f2963a94e904979499' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66100a091ccf45f2963a94e904979499', x'13d6f0b18db344bdbcb2097e73aab939', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'66100a091ccf45f2963a94e904979499') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'66100a091ccf45f2963a94e904979499' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'66100a091ccf45f2963a94e904979499', x'bdea04c2f32e451cb67902fa1aa9147d', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:59 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414976ccfb_107080435d48474c6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'99c140187dba48dda5f93ddc3954d246', 'jabanilson', NULL, 1, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account99c14018-7dba-48dd-a5f9-3ddc3954d246' WHERE `accounts`.`id` = x'99c140187dba48dda5f93ddc3954d246'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'99c140187dba48dda5f93ddc3954d246', x'4907b251cdcb437a87b7279c1b50f3bf', x'ebac5a70c08349ba8188aeaebabb4b5e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4907b251cdcb437a87b7279c1b50f3bf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4907b251cdcb437a87b7279c1b50f3bf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4907b251cdcb437a87b7279c1b50f3bf', x'09ba11fcf7434d8286695b960cb35d43', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4907b251cdcb437a87b7279c1b50f3bf') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4907b251cdcb437a87b7279c1b50f3bf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4907b251cdcb437a87b7279c1b50f3bf', x'c94e00bd45814839bcee64e611219f00', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebac5a70c08349ba8188aeaebabb4b5e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebac5a70c08349ba8188aeaebabb4b5e' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebac5a70c08349ba8188aeaebabb4b5e' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'99c140187dba48dda5f93ddc3954d246' AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'99c140187dba48dda5f93ddc3954d246', x'6ce3c58e58464a7191a28f1af9dfefed', NULL, 'verify.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'99c140187dba48dda5f93ddc3954d246' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"99C140187DBA48DDA5F93DDC3954D246", "domain_id"=>"6CE3C58E58464A7191A28F1AF9DFEFED"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ebac5a70c08349ba8188aeaebabb4b5e' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'99c140187dba48dda5f93ddc3954d246' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_99c14018-7dba-48dd-a5f9-3ddc3954d246_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ebac5a70c08349ba8188aeaebabb4b5e' AND `account_users`.`account_id` = x'99c140187dba48dda5f93ddc3954d246' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4907b251cdcb437a87b7279c1b50f3bf' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4907b251cdcb437a87b7279c1b50f3bf' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebac5a70c08349ba8188aeaebabb4b5e' AND `accounts`.`id` = x'99c140187dba48dda5f93ddc3954d246' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'99c140187dba48dda5f93ddc3954d246' AND `account_domains`.`id` = x'6ce3c58e58464a7191a28f1af9dfefed' LIMIT 1 Redirected to http://test.host/settings/account/99C140187DBA48DDA5F93DDC3954D246/domains Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (12.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$f1Mkkk4wXV3CWsUNId47c.Rno04fl.T.hoTwfoR/GdWKRc6JsmcZa', NULL, x'68fa67a5715949eab968252bc304436e', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'68fa67a5715949eab968252bc304436e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'cdf9e094914a400ba321b9db344afb0a', '12835eea8390d6942d35928846bbd7c4', x'68fa67a5715949eab968252bc304436e', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'68fa67a5715949eab968252bc304436e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'b5cbbfd5e58544e28bb65ab21b914da5', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'accountb5cbbfd5-e585-44e2-8bb6-5ab21b914da5' WHERE `accounts`.`id` = x'b5cbbfd5e58544e28bb65ab21b914da5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b5cbbfd5e58544e28bb65ab21b914da5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b5cbbfd5e58544e28bb65ab21b914da5', x'61dfa6af9cc54821bd3dd04df746461f', x'68fa67a5715949eab968252bc304436e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'61dfa6af9cc54821bd3dd04df746461f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61dfa6af9cc54821bd3dd04df746461f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61dfa6af9cc54821bd3dd04df746461f', x'7b4ec116692d4d05acf62bf47ca3e8c2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'61dfa6af9cc54821bd3dd04df746461f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'61dfa6af9cc54821bd3dd04df746461f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'61dfa6af9cc54821bd3dd04df746461f', x'6fc657cfe41744c3a4fb7ba1642ca2e2', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:59 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149786b29_107080435d4847544@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'1e962383fa4443ddb6d24beff985f854', 'jabanilson', NULL, 1, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account1e962383-fa44-43dd-b6d2-4beff985f854' WHERE `accounts`.`id` = x'1e962383fa4443ddb6d24beff985f854'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1e962383fa4443ddb6d24beff985f854', x'bae8617455754ef6a8144fcb0d6a9578', x'68fa67a5715949eab968252bc304436e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bae8617455754ef6a8144fcb0d6a9578') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bae8617455754ef6a8144fcb0d6a9578' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bae8617455754ef6a8144fcb0d6a9578', x'35ae23a1ae654c48b3987a80c1f12940', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bae8617455754ef6a8144fcb0d6a9578') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bae8617455754ef6a8144fcb0d6a9578' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bae8617455754ef6a8144fcb0d6a9578', x'f8b24acac7e14c0f84f4209af37bdb95', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'68fa67a5715949eab968252bc304436e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'68fa67a5715949eab968252bc304436e' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'68fa67a5715949eab968252bc304436e' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'b5cbbfd5e58544e28bb65ab21b914da5' AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'b5cbbfd5e58544e28bb65ab21b914da5', x'5b7e04ca66a44dc4a0c9e5c2ace7a02f', NULL, 'verify.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b5cbbfd5e58544e28bb65ab21b914da5' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"B5CBBFD5E58544E28BB65AB21B914DA5", "domain_id"=>"5B7E04CA66A44DC4A0C9E5C2ACE7A02F"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'68fa67a5715949eab968252bc304436e' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b5cbbfd5e58544e28bb65ab21b914da5' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b5cbbfd5-e585-44e2-8bb6-5ab21b914da5_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'68fa67a5715949eab968252bc304436e' AND `account_users`.`account_id` = x'b5cbbfd5e58544e28bb65ab21b914da5' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'61dfa6af9cc54821bd3dd04df746461f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'61dfa6af9cc54821bd3dd04df746461f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'68fa67a5715949eab968252bc304436e' AND `accounts`.`id` = x'b5cbbfd5e58544e28bb65ab21b914da5' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'b5cbbfd5e58544e28bb65ab21b914da5' AND `account_domains`.`id` = x'5b7e04ca66a44dc4a0c9e5c2ace7a02f' LIMIT 1 Redirected to http://test.host/settings/account/B5CBBFD5E58544E28BB65AB21B914DA5/domain/5B7E04CA66A44DC4A0C9E5C2ACE7A02F Completed 302 Found in 13ms (ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$e3Vq14miaIcAJBdcan7lvuOJrJ0hxx/RqSBrVKutMh36RaFf4KSV2', NULL, x'0c58d61e30f5410aafd84366a60b08ef', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0c58d61e30f5410aafd84366a60b08ef' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'b71f7befbf414408b8041ae315b1c759', '5d7898d861547fc2ac97844872b6687b', x'0c58d61e30f5410aafd84366a60b08ef', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0c58d61e30f5410aafd84366a60b08ef' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'f44fff70a44949af9cd4e9d3253ce79f', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'accountf44fff70-a449-49af-9cd4-e9d3253ce79f' WHERE `accounts`.`id` = x'f44fff70a44949af9cd4e9d3253ce79f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f44fff70a44949af9cd4e9d3253ce79f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f44fff70a44949af9cd4e9d3253ce79f', x'32c88acae1014adca4d76218b2348dc9', x'0c58d61e30f5410aafd84366a60b08ef') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'32c88acae1014adca4d76218b2348dc9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'32c88acae1014adca4d76218b2348dc9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'32c88acae1014adca4d76218b2348dc9', x'853629b645bb4509b0b9b047a689b765', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'32c88acae1014adca4d76218b2348dc9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'32c88acae1014adca4d76218b2348dc9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'32c88acae1014adca4d76218b2348dc9', x'df19200b6582438d913aaae06140aa2b', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:59 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414979dabb_107080435d484765f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'17338b23170242898052b15753c5246e', 'jabanilson', NULL, 1, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account17338b23-1702-4289-8052-b15753c5246e' WHERE `accounts`.`id` = x'17338b23170242898052b15753c5246e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'17338b23170242898052b15753c5246e', x'5062f9271b4c4497b78a5f516165179e', x'0c58d61e30f5410aafd84366a60b08ef') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5062f9271b4c4497b78a5f516165179e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5062f9271b4c4497b78a5f516165179e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5062f9271b4c4497b78a5f516165179e', x'fa89621ec59840ca8be37cf96105d700', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5062f9271b4c4497b78a5f516165179e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5062f9271b4c4497b78a5f516165179e' LIMIT 1 SQL (0.6ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5062f9271b4c4497b78a5f516165179e', x'67932314d02a4a3a8bc922ebe4de9388', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c58d61e30f5410aafd84366a60b08ef' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c58d61e30f5410aafd84366a60b08ef' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c58d61e30f5410aafd84366a60b08ef' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f44fff70a44949af9cd4e9d3253ce79f' AND `account_domains`.`url` = 'verify.test.net' SQL (0.4ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f44fff70a44949af9cd4e9d3253ce79f', x'48d425aba8404a8d91168c0eef0875f4', NULL, 'verify.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f44fff70a44949af9cd4e9d3253ce79f' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"F44FFF70A44949AF9CD4E9D3253CE79F", "domain_id"=>"48D425ABA8404A8D91168C0EEF0875F4"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0c58d61e30f5410aafd84366a60b08ef' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f44fff70a44949af9cd4e9d3253ce79f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f44fff70-a449-49af-9cd4-e9d3253ce79f_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0c58d61e30f5410aafd84366a60b08ef' AND `account_users`.`account_id` = x'f44fff70a44949af9cd4e9d3253ce79f' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'32c88acae1014adca4d76218b2348dc9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'32c88acae1014adca4d76218b2348dc9' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c58d61e30f5410aafd84366a60b08ef' AND `accounts`.`id` = x'f44fff70a44949af9cd4e9d3253ce79f' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f44fff70a44949af9cd4e9d3253ce79f' AND `account_domains`.`id` = x'48d425aba8404a8d91168c0eef0875f4' LIMIT 1 Redirected to http://test.host/settings/account/F44FFF70A44949AF9CD4E9D3253CE79F/domain/48D425ABA8404A8D91168C0EEF0875F4 Completed 302 Found in 12ms (ActiveRecord: 2.7ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.8ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$0gzQoPXVvkRtI8ETTtYQkOT1bExPg/tpPduDRO/8PLp34/JSdZ4Sq', NULL, x'0c7506000ff84870b1e82558cbe4c84c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0c7506000ff84870b1e82558cbe4c84c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'd303552aaafd4fb7b68fee63c3ff2663', '891b43c219c4d9b674ac5c74dbff2d9d', x'0c7506000ff84870b1e82558cbe4c84c', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0c7506000ff84870b1e82558cbe4c84c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'076190ef22834d8784a4607141c20f23', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account076190ef-2283-4d87-84a4-607141c20f23' WHERE `accounts`.`id` = x'076190ef22834d8784a4607141c20f23' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'076190ef22834d8784a4607141c20f23' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'076190ef22834d8784a4607141c20f23', x'3213531b9bcc438d94764f4989c7da9a', x'0c7506000ff84870b1e82558cbe4c84c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3213531b9bcc438d94764f4989c7da9a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3213531b9bcc438d94764f4989c7da9a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3213531b9bcc438d94764f4989c7da9a', x'ec8e192fbf17494d8417904ed95826c3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3213531b9bcc438d94764f4989c7da9a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3213531b9bcc438d94764f4989c7da9a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3213531b9bcc438d94764f4989c7da9a', x'0fa270d540cc45a7a9db71fa7155f084', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:59 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41497c902c_107080435d4847786@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'd00019f6dc5b42d3a74050d631607a4a', 'jabanilson', NULL, 1, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'accountd00019f6-dc5b-42d3-a740-50d631607a4a' WHERE `accounts`.`id` = x'd00019f6dc5b42d3a74050d631607a4a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd00019f6dc5b42d3a74050d631607a4a', x'2520a2d9df104504ac24d1a34880708d', x'0c7506000ff84870b1e82558cbe4c84c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2520a2d9df104504ac24d1a34880708d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2520a2d9df104504ac24d1a34880708d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2520a2d9df104504ac24d1a34880708d', x'5fae8ab31eb04117886200aeec775a16', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2520a2d9df104504ac24d1a34880708d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2520a2d9df104504ac24d1a34880708d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2520a2d9df104504ac24d1a34880708d', x'b33a757096a64b19b5e9a0774435dde4', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c7506000ff84870b1e82558cbe4c84c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c7506000ff84870b1e82558cbe4c84c' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c7506000ff84870b1e82558cbe4c84c' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd00019f6dc5b42d3a74050d631607a4a' AND `account_domains`.`url` = 'verify.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd00019f6dc5b42d3a74050d631607a4a', x'ee41e82b609f4b5080e0ae9f5f9d2f90', NULL, 'verify.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd00019f6dc5b42d3a74050d631607a4a' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"D00019F6DC5B42D3A74050D631607A4A", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0c7506000ff84870b1e82558cbe4c84c' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd00019f6dc5b42d3a74050d631607a4a' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d00019f6-dc5b-42d3-a740-50d631607a4a_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0c7506000ff84870b1e82558cbe4c84c' AND `account_users`.`account_id` = x'd00019f6dc5b42d3a74050d631607a4a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2520a2d9df104504ac24d1a34880708d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2520a2d9df104504ac24d1a34880708d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0c7506000ff84870b1e82558cbe4c84c' AND `accounts`.`id` = x'd00019f6dc5b42d3a74050d631607a4a' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd00019f6dc5b42d3a74050d631607a4a' AND `account_domains`.`id` = x'31323431323331323431323331323334' LIMIT 1 Redirected to http://test.host/settings/account/D00019F6DC5B42D3A74050D631607A4A/domains Completed 302 Found in 12ms (ActiveRecord: 2.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$UNHF6uBVHtNoVcnsiNZz9Ozo8jLGMDzeqX31fNjcHDKnE62tSVMWW', NULL, x'c1732709735d4c5b95b3c1824a85c039', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c1732709735d4c5b95b3c1824a85c039' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'7fe2b7ac9b4342908f1054005d3615c8', 'f5556a6ee6c358e59d67ef9278d3929b', x'c1732709735d4c5b95b3c1824a85c039', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c1732709735d4c5b95b3c1824a85c039' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'75b633dd25a34893bde74b8ab17baae2', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account75b633dd-25a3-4893-bde7-4b8ab17baae2' WHERE `accounts`.`id` = x'75b633dd25a34893bde74b8ab17baae2' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'75b633dd25a34893bde74b8ab17baae2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'75b633dd25a34893bde74b8ab17baae2', x'bb1bf48eae5946ee82457f65ee97a068', x'c1732709735d4c5b95b3c1824a85c039') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bb1bf48eae5946ee82457f65ee97a068') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb1bf48eae5946ee82457f65ee97a068' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb1bf48eae5946ee82457f65ee97a068', x'74693843a6d1410d8db18c08166bfb94', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bb1bf48eae5946ee82457f65ee97a068') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb1bf48eae5946ee82457f65ee97a068' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb1bf48eae5946ee82457f65ee97a068', x'143ca46f58e34efda0b302c32010b59a', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:05:59 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41497df0df_107080435d4847888@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'd3c0599b11984a7fa4e58eac5c0a0f93', 'jabanilson', NULL, 1, '2013-01-02 11:05:59')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'accountd3c0599b-1198-4a7f-a4e5-8eac5c0a0f93' WHERE `accounts`.`id` = x'd3c0599b11984a7fa4e58eac5c0a0f93'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd3c0599b11984a7fa4e58eac5c0a0f93', x'd5a649cc901940db8af25f0f96909421', x'c1732709735d4c5b95b3c1824a85c039') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd5a649cc901940db8af25f0f96909421') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd5a649cc901940db8af25f0f96909421' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd5a649cc901940db8af25f0f96909421', x'cf4cb17552c74838ae216862c7f583cb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd5a649cc901940db8af25f0f96909421') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd5a649cc901940db8af25f0f96909421' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd5a649cc901940db8af25f0f96909421', x'fe47a7a5e22e44e6baddfb8dccf2dac6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1732709735d4c5b95b3c1824a85c039' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1732709735d4c5b95b3c1824a85c039' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1732709735d4c5b95b3c1824a85c039' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'75b633dd25a34893bde74b8ab17baae2' AND `account_domains`.`url` = 'verify.test.net' SQL (0.4ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'75b633dd25a34893bde74b8ab17baae2', x'8b0306d5762d413b83c6251738c90e24', NULL, 'verify.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'75b633dd25a34893bde74b8ab17baae2' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#verify as HTML Parameters: {"account_id"=>"75B633DD25A34893BDE74B8AB17BAAE2", "domain_id"=>"1231241241231241231234"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c1732709735d4c5b95b3c1824a85c039' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'75b633dd25a34893bde74b8ab17baae2' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_75b633dd-25a3-4893-bde7-4b8ab17baae2_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c1732709735d4c5b95b3c1824a85c039' AND `account_users`.`account_id` = x'75b633dd25a34893bde74b8ab17baae2' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bb1bf48eae5946ee82457f65ee97a068' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bb1bf48eae5946ee82457f65ee97a068' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c1732709735d4c5b95b3c1824a85c039' AND `accounts`.`id` = x'75b633dd25a34893bde74b8ab17baae2' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'75b633dd25a34893bde74b8ab17baae2' AND `account_domains`.`id` = x'31323431323331323431323331323334' LIMIT 1 Redirected to http://test.host/settings/account/75B633DD25A34893BDE74B8AB17BAAE2/domains Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:05:59', 'teste@teste.com', '$2a$04$EYypgB1pj3WKoBA4OPKSVOdBe1iuBEhsdMLtoquiJixDcAjdUrW8y', NULL, x'072bc89215a34b0e8b68c8d3377a4c54', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:05:59') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'072bc89215a34b0e8b68c8d3377a4c54' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:05:59', 'User', x'5bea845385a64944a27261107475eccf', '15b99bc1144ff83c7e778f639f6891f2', x'072bc89215a34b0e8b68c8d3377a4c54', 'User', '2013-01-02 11:05:59') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'072bc89215a34b0e8b68c8d3377a4c54' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:05:59', x'020c7f7a590f498299f78a4fd38b7bd9', NULL, NULL, NULL, '2013-01-02 11:05:59')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:05:59', `updated_at` = '2013-01-02 11:05:59', `subdomain` = 'account020c7f7a-590f-4982-99f7-8a4fd38b7bd9' WHERE `accounts`.`id` = x'020c7f7a590f498299f78a4fd38b7bd9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'020c7f7a590f498299f78a4fd38b7bd9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'020c7f7a590f498299f78a4fd38b7bd9', x'2604cc7230a7442f810a171f1859c8c1', x'072bc89215a34b0e8b68c8d3377a4c54') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2604cc7230a7442f810a171f1859c8c1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2604cc7230a7442f810a171f1859c8c1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2604cc7230a7442f810a171f1859c8c1', x'2d4f437cb89d4271a1143233ae9f07c2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2604cc7230a7442f810a171f1859c8c1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2604cc7230a7442f810a171f1859c8c1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2604cc7230a7442f810a171f1859c8c1', x'd1b2e0b1a34141199ffdf1eff201a048', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414981faf_107080435d4847916@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'e0252aede28b442d9bcfe456e472d039', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'accounte0252aed-e28b-442d-9bcf-e456e472d039' WHERE `accounts`.`id` = x'e0252aede28b442d9bcfe456e472d039'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e0252aede28b442d9bcfe456e472d039', x'3fd0d44995da47d6ac0b03077fdee236', x'072bc89215a34b0e8b68c8d3377a4c54') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3fd0d44995da47d6ac0b03077fdee236') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3fd0d44995da47d6ac0b03077fdee236' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3fd0d44995da47d6ac0b03077fdee236', x'7b33f94d2770468faa312a56c200a192', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3fd0d44995da47d6ac0b03077fdee236') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3fd0d44995da47d6ac0b03077fdee236' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3fd0d44995da47d6ac0b03077fdee236', x'b456c21319a843c7b7fb913b3e56fec2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'072bc89215a34b0e8b68c8d3377a4c54' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'072bc89215a34b0e8b68c8d3377a4c54' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'072bc89215a34b0e8b68c8d3377a4c54' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'020c7f7a590f498299f78a4fd38b7bd9' AND `account_domains`.`url` = 'primary.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'020c7f7a590f498299f78a4fd38b7bd9', x'112c56494bba4e888e4930736094dfa1', NULL, 'primary.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'020c7f7a590f498299f78a4fd38b7bd9' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"020C7F7A590F498299F78A4FD38B7BD9", "domain_id"=>"112C56494BBA4E888E4930736094DFA1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'072bc89215a34b0e8b68c8d3377a4c54' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'020c7f7a590f498299f78a4fd38b7bd9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_020c7f7a-590f-4982-99f7-8a4fd38b7bd9_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'072bc89215a34b0e8b68c8d3377a4c54' AND `account_users`.`account_id` = x'020c7f7a590f498299f78a4fd38b7bd9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2604cc7230a7442f810a171f1859c8c1' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2604cc7230a7442f810a171f1859c8c1' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'072bc89215a34b0e8b68c8d3377a4c54' AND `accounts`.`id` = x'020c7f7a590f498299f78a4fd38b7bd9' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'020c7f7a590f498299f78a4fd38b7bd9' AND `account_domains`.`id` = x'112c56494bba4e888e4930736094dfa1' LIMIT 1 Redirected to http://test.host/settings/account/020C7F7A590F498299F78A4FD38B7BD9/domains Completed 302 Found in 12ms (ActiveRecord: 2.8ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:00', 'teste@teste.com', '$2a$04$CEL4zLhGWMg61SgCXeQmb.QniW2tf0zJYEHhYtXtF0mkTAphXzYY.', NULL, x'55984aa393834dd8868b0ba5ffde623a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'55984aa393834dd8868b0ba5ffde623a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.6ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:00', 'User', x'd213906ebebf47d9b23ad4c8650cc026', 'e1c25c4b002cbf1c447415f815f5600c', x'55984aa393834dd8868b0ba5ffde623a', 'User', '2013-01-02 11:06:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'55984aa393834dd8868b0ba5ffde623a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'e78046eea8054a5bb856f7a0b57e4f2c', NULL, NULL, NULL, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'accounte78046ee-a805-4a5b-b856-f7a0b57e4f2c' WHERE `accounts`.`id` = x'e78046eea8054a5bb856f7a0b57e4f2c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e78046eea8054a5bb856f7a0b57e4f2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e78046eea8054a5bb856f7a0b57e4f2c', x'91442e2ee3864876b36f981147cc573b', x'55984aa393834dd8868b0ba5ffde623a') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'91442e2ee3864876b36f981147cc573b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91442e2ee3864876b36f981147cc573b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91442e2ee3864876b36f981147cc573b', x'745d7f8d699d4f2bafe118cdffde02ca', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'91442e2ee3864876b36f981147cc573b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91442e2ee3864876b36f981147cc573b' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91442e2ee3864876b36f981147cc573b', x'9fade37bd91c4a34bcf2126ded8fd136', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414982d137_107080435d48480cb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'f1be20d1eeee48c5af6c0397cf32696f', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'accountf1be20d1-eeee-48c5-af6c-0397cf32696f' WHERE `accounts`.`id` = x'f1be20d1eeee48c5af6c0397cf32696f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f1be20d1eeee48c5af6c0397cf32696f', x'5da7ee082f5e4cf888a2290c7d8d164f', x'55984aa393834dd8868b0ba5ffde623a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5da7ee082f5e4cf888a2290c7d8d164f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5da7ee082f5e4cf888a2290c7d8d164f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5da7ee082f5e4cf888a2290c7d8d164f', x'dcf5fac487c24cb5bf1e818864a1fe7c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5da7ee082f5e4cf888a2290c7d8d164f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5da7ee082f5e4cf888a2290c7d8d164f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5da7ee082f5e4cf888a2290c7d8d164f', x'5fc47d1666814f79a3c7b00623ede9a3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'55984aa393834dd8868b0ba5ffde623a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'55984aa393834dd8868b0ba5ffde623a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'55984aa393834dd8868b0ba5ffde623a' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f1be20d1eeee48c5af6c0397cf32696f' AND `account_domains`.`url` = 'primary.test.net' SQL (0.4ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f1be20d1eeee48c5af6c0397cf32696f', x'4bbd7bfe6d8a475b96854c6d83484cfb', NULL, 'primary.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f1be20d1eeee48c5af6c0397cf32696f' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"F1BE20D1EEEE48C5AF6C0397CF32696F", "domain_id"=>"4BBD7BFE6D8A475B96854C6D83484CFB"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'55984aa393834dd8868b0ba5ffde623a' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f1be20d1eeee48c5af6c0397cf32696f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f1be20d1-eeee-48c5-af6c-0397cf32696f_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'55984aa393834dd8868b0ba5ffde623a' AND `account_users`.`account_id` = x'f1be20d1eeee48c5af6c0397cf32696f' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5da7ee082f5e4cf888a2290c7d8d164f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5da7ee082f5e4cf888a2290c7d8d164f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'55984aa393834dd8868b0ba5ffde623a' AND `accounts`.`id` = x'f1be20d1eeee48c5af6c0397cf32696f' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f1be20d1eeee48c5af6c0397cf32696f' AND `account_domains`.`id` = x'4bbd7bfe6d8a475b96854c6d83484cfb' LIMIT 1 Redirected to http://test.host/settings/account/F1BE20D1EEEE48C5AF6C0397CF32696F/domains Completed 302 Found in 12ms (ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:00', 'teste@teste.com', '$2a$04$Bs4x/i971LBMpwD.yndPPOvstqhCSDfv9X7GfheMBsroBDbOi7meW', NULL, x'f967805e52634596aa5b0ab947ba1f4f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f967805e52634596aa5b0ab947ba1f4f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:00', 'User', x'd54aeee48211409c9ad1c0bda96735db', '9adeef29ca25ddb5d27b68148c59160d', x'f967805e52634596aa5b0ab947ba1f4f', 'User', '2013-01-02 11:06:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f967805e52634596aa5b0ab947ba1f4f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'4c42ac8dc967424f871d1c6145a17a07', NULL, NULL, NULL, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account4c42ac8d-c967-424f-871d-1c6145a17a07' WHERE `accounts`.`id` = x'4c42ac8dc967424f871d1c6145a17a07' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c42ac8dc967424f871d1c6145a17a07' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4c42ac8dc967424f871d1c6145a17a07', x'287cc0d7b3ac4c3b92ba71e50b50875e', x'f967805e52634596aa5b0ab947ba1f4f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'287cc0d7b3ac4c3b92ba71e50b50875e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'287cc0d7b3ac4c3b92ba71e50b50875e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'287cc0d7b3ac4c3b92ba71e50b50875e', x'2e64d8e2fa9f4ba19b4f546885dc2b4f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'287cc0d7b3ac4c3b92ba71e50b50875e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'287cc0d7b3ac4c3b92ba71e50b50875e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'287cc0d7b3ac4c3b92ba71e50b50875e', x'7154bce3dcdb48ff83738ede1563ae31', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41498435fc_107080435d4848199@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'970e1bea22a143fab8f2435869b0791b', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account970e1bea-22a1-43fa-b8f2-435869b0791b' WHERE `accounts`.`id` = x'970e1bea22a143fab8f2435869b0791b'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'970e1bea22a143fab8f2435869b0791b', x'666b18fabd1d442c80d4a9bf6c8f43d6', x'f967805e52634596aa5b0ab947ba1f4f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'666b18fabd1d442c80d4a9bf6c8f43d6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'666b18fabd1d442c80d4a9bf6c8f43d6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'666b18fabd1d442c80d4a9bf6c8f43d6', x'9a7ae50918ce4403a3f52a24625a9d87', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'666b18fabd1d442c80d4a9bf6c8f43d6') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'666b18fabd1d442c80d4a9bf6c8f43d6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'666b18fabd1d442c80d4a9bf6c8f43d6', x'ba69caceffc1474fbfc6ca1bacc384aa', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f967805e52634596aa5b0ab947ba1f4f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f967805e52634596aa5b0ab947ba1f4f' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f967805e52634596aa5b0ab947ba1f4f' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c42ac8dc967424f871d1c6145a17a07' AND `account_domains`.`url` = 'primary.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4c42ac8dc967424f871d1c6145a17a07', x'df84caaa2a6549919576e183166bcd7d', NULL, 'primary.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c42ac8dc967424f871d1c6145a17a07' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"4C42AC8DC967424F871D1C6145A17A07", "domain_id"=>"1231241243141314"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f967805e52634596aa5b0ab947ba1f4f' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c42ac8dc967424f871d1c6145a17a07' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4c42ac8d-c967-424f-871d-1c6145a17a07_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f967805e52634596aa5b0ab947ba1f4f' AND `account_users`.`account_id` = x'4c42ac8dc967424f871d1c6145a17a07' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'287cc0d7b3ac4c3b92ba71e50b50875e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'287cc0d7b3ac4c3b92ba71e50b50875e' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f967805e52634596aa5b0ab947ba1f4f' AND `accounts`.`id` = x'4c42ac8dc967424f871d1c6145a17a07' LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c42ac8dc967424f871d1c6145a17a07' AND `account_domains`.`id` = x'31323331323431323433313431333134' LIMIT 1 Redirected to http://test.host/settings/account/4C42AC8DC967424F871D1C6145A17A07/domains Completed 302 Found in 12ms (ActiveRecord: 2.9ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:00', 'teste@teste.com', '$2a$04$0jm3.iUo8XIIg6vqg00.yOdW.MgG58Wxf1HtB11ra3ctroqpwrw3y', NULL, x'5288a9e6a83e4efc9e6e86ac59d9bcd3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5288a9e6a83e4efc9e6e86ac59d9bcd3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:00', 'User', x'5b1902ef46ab47c2bfab4280368bdaf0', '6c3dce04d3aa96c995425fbf05ea0f9e', x'5288a9e6a83e4efc9e6e86ac59d9bcd3', 'User', '2013-01-02 11:06:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5288a9e6a83e4efc9e6e86ac59d9bcd3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'3a23232afa4c42b8bb562553481343d6', NULL, NULL, NULL, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account3a23232a-fa4c-42b8-bb56-2553481343d6' WHERE `accounts`.`id` = x'3a23232afa4c42b8bb562553481343d6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a23232afa4c42b8bb562553481343d6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3a23232afa4c42b8bb562553481343d6', x'cd2e5bf7cf7d4abd9d1a4c0afe47292e', x'5288a9e6a83e4efc9e6e86ac59d9bcd3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cd2e5bf7cf7d4abd9d1a4c0afe47292e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd2e5bf7cf7d4abd9d1a4c0afe47292e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd2e5bf7cf7d4abd9d1a4c0afe47292e', x'edb4d82329e54830ae4b4d23517dcf4e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cd2e5bf7cf7d4abd9d1a4c0afe47292e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd2e5bf7cf7d4abd9d1a4c0afe47292e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd2e5bf7cf7d4abd9d1a4c0afe47292e', x'8690b83706ac4e8aaae99177eebdae24', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41498597d9_107080435d48482cf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'366f94b52a71497fb9a983785750c625', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account366f94b5-2a71-497f-b9a9-83785750c625' WHERE `accounts`.`id` = x'366f94b52a71497fb9a983785750c625'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'366f94b52a71497fb9a983785750c625', x'2b328bd84874401388b827b2a3943aeb', x'5288a9e6a83e4efc9e6e86ac59d9bcd3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2b328bd84874401388b827b2a3943aeb') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b328bd84874401388b827b2a3943aeb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b328bd84874401388b827b2a3943aeb', x'28d79fffc9784e99889896ce4e1cc38d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2b328bd84874401388b827b2a3943aeb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b328bd84874401388b827b2a3943aeb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b328bd84874401388b827b2a3943aeb', x'8ed81d0b8b6f4a43af61dceba6500f02', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5288a9e6a83e4efc9e6e86ac59d9bcd3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5288a9e6a83e4efc9e6e86ac59d9bcd3' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5288a9e6a83e4efc9e6e86ac59d9bcd3' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'366f94b52a71497fb9a983785750c625' AND `account_domains`.`url` = 'primary.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'366f94b52a71497fb9a983785750c625', x'0918fd7fab65492ba97b304a4449a37e', NULL, 'primary.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'366f94b52a71497fb9a983785750c625' ORDER BY `account_domains`.`id` DESC LIMIT 1 Processing by Iugu::AccountDomainsController#primary as HTML Parameters: {"account_id"=>"366F94B52A71497FB9A983785750C625", "domain_id"=>"1231241243141314"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5288a9e6a83e4efc9e6e86ac59d9bcd3' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'366f94b52a71497fb9a983785750c625' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_366f94b5-2a71-497f-b9a9-83785750c625_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5288a9e6a83e4efc9e6e86ac59d9bcd3' AND `account_users`.`account_id` = x'366f94b52a71497fb9a983785750c625' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b328bd84874401388b827b2a3943aeb' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b328bd84874401388b827b2a3943aeb' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5288a9e6a83e4efc9e6e86ac59d9bcd3' AND `accounts`.`id` = x'366f94b52a71497fb9a983785750c625' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'366f94b52a71497fb9a983785750c625' AND `account_domains`.`id` = x'31323331323431323433313431333134' LIMIT 1 Redirected to http://test.host/settings/account/366F94B52A71497FB9A983785750C625/domains Completed 302 Found in 12ms (ActiveRecord: 2.8ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:00', 'teste@teste.com', '$2a$04$9KFwC90LewVQGsFhUSKlaOgnQxPNk7TPlE.jWfFR2EpbcQSFeKdmy', NULL, x'78b5a6ba395e4dcb803f1c27b86dbc4d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'78b5a6ba395e4dcb803f1c27b86dbc4d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:00', 'User', x'd94271bdb0a54743ae918a463500d732', '00c4dcfd714b19efe32e18f8d1639047', x'78b5a6ba395e4dcb803f1c27b86dbc4d', 'User', '2013-01-02 11:06:00') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'78b5a6ba395e4dcb803f1c27b86dbc4d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'5db94da9d751453eb50290924cc621f7', NULL, NULL, NULL, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account5db94da9-d751-453e-b502-90924cc621f7' WHERE `accounts`.`id` = x'5db94da9d751453eb50290924cc621f7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5db94da9d751453eb50290924cc621f7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5db94da9d751453eb50290924cc621f7', x'13442c7d1157453eb48390ba0bca7a0b', x'78b5a6ba395e4dcb803f1c27b86dbc4d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'13442c7d1157453eb48390ba0bca7a0b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'13442c7d1157453eb48390ba0bca7a0b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'13442c7d1157453eb48390ba0bca7a0b', x'659fdf3444e240e4a518b051ff07fa95', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'13442c7d1157453eb48390ba0bca7a0b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'13442c7d1157453eb48390ba0bca7a0b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'13442c7d1157453eb48390ba0bca7a0b', x'4cb1dde4d5514576a9fc1b0c3bb58fc0', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149884002_107080435d48483be@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'630fe24d2ff14764a8cc0a3355d87ca0', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account630fe24d-2ff1-4764-a8cc-0a3355d87ca0' WHERE `accounts`.`id` = x'630fe24d2ff14764a8cc0a3355d87ca0'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'630fe24d2ff14764a8cc0a3355d87ca0', x'122c3697721948308c4947609baa5155', x'78b5a6ba395e4dcb803f1c27b86dbc4d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'122c3697721948308c4947609baa5155') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'122c3697721948308c4947609baa5155' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'122c3697721948308c4947609baa5155', x'0994385bd8d44917949ea49d80d41568', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'122c3697721948308c4947609baa5155') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'122c3697721948308c4947609baa5155' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'122c3697721948308c4947609baa5155', x'582f5ab2ddd4481cad933d6330abd48c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'78b5a6ba395e4dcb803f1c27b86dbc4d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'78b5a6ba395e4dcb803f1c27b86dbc4d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'78b5a6ba395e4dcb803f1c27b86dbc4d' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"5DB94DA9D751453EB50290924CC621F7"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'78b5a6ba395e4dcb803f1c27b86dbc4d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5db94da9d751453eb50290924cc621f7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5db94da9-d751-453e-b502-90924cc621f7_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'78b5a6ba395e4dcb803f1c27b86dbc4d' AND `account_users`.`account_id` = x'5db94da9d751453eb50290924cc621f7' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'13442c7d1157453eb48390ba0bca7a0b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'13442c7d1157453eb48390ba0bca7a0b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'78b5a6ba395e4dcb803f1c27b86dbc4d' AND `accounts`.`id` = x'5db94da9d751453eb50290924cc621f7' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'5db94da9d751453eb50290924cc621f7') LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2013-01-02 11:06:00' WHERE `accounts`.`id` = x'5db94da9d751453eb50290924cc621f7'  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/5DB94DA9D751453EB50290924CC621F7/domains Completed 302 Found in 14ms (ActiveRecord: 3.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:00', 'teste@teste.com', '$2a$04$vD.G/CeqN.wBZ5FjxbEfRe.EnAN/g9/atv1cYfKUz2IjsUQc.3G9e', NULL, x'0b5af0a1f67e4cb3ac99ecfb4d15aaff', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0b5af0a1f67e4cb3ac99ecfb4d15aaff' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:00', 'User', x'ce4f0aa29e3d48a1990bd15697eda4b5', '7b4944e851beabc4759aca034b76dd0e', x'0b5af0a1f67e4cb3ac99ecfb4d15aaff', 'User', '2013-01-02 11:06:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0b5af0a1f67e4cb3ac99ecfb4d15aaff' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'97105b553f3c4f32898d91f87d687fb2', NULL, NULL, NULL, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account97105b55-3f3c-4f32-898d-91f87d687fb2' WHERE `accounts`.`id` = x'97105b553f3c4f32898d91f87d687fb2' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'97105b553f3c4f32898d91f87d687fb2' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'97105b553f3c4f32898d91f87d687fb2', x'a441465e3d5d4cdf9ca32f102cce2bca', x'0b5af0a1f67e4cb3ac99ecfb4d15aaff') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a441465e3d5d4cdf9ca32f102cce2bca') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a441465e3d5d4cdf9ca32f102cce2bca' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a441465e3d5d4cdf9ca32f102cce2bca', x'270268cbac8247e88ebe3cb268a98f73', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a441465e3d5d4cdf9ca32f102cce2bca') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a441465e3d5d4cdf9ca32f102cce2bca' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a441465e3d5d4cdf9ca32f102cce2bca', x'b013e225b4b544e6bd5de920545d9a7a', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414989937d_107080435d484841a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'2a115d7e4f6b4dfa983a72d1dde3ccc3', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account2a115d7e-4f6b-4dfa-983a-72d1dde3ccc3' WHERE `accounts`.`id` = x'2a115d7e4f6b4dfa983a72d1dde3ccc3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2a115d7e4f6b4dfa983a72d1dde3ccc3', x'06fb23a222e8414484108a87d0b7aac0', x'0b5af0a1f67e4cb3ac99ecfb4d15aaff') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'06fb23a222e8414484108a87d0b7aac0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06fb23a222e8414484108a87d0b7aac0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'06fb23a222e8414484108a87d0b7aac0', x'd74f307be63449f8b5e423e0c8766151', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'06fb23a222e8414484108a87d0b7aac0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06fb23a222e8414484108a87d0b7aac0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'06fb23a222e8414484108a87d0b7aac0', x'd4e178083cbe4ba0bcb07eae3557ec02', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0b5af0a1f67e4cb3ac99ecfb4d15aaff' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0b5af0a1f67e4cb3ac99ecfb4d15aaff' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0b5af0a1f67e4cb3ac99ecfb4d15aaff' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"2A115D7E4F6B4DFA983A72D1DDE3CCC3"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0b5af0a1f67e4cb3ac99ecfb4d15aaff' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2a115d7e4f6b4dfa983a72d1dde3ccc3' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2a115d7e-4f6b-4dfa-983a-72d1dde3ccc3_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0b5af0a1f67e4cb3ac99ecfb4d15aaff' AND `account_users`.`account_id` = x'2a115d7e4f6b4dfa983a72d1dde3ccc3' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'06fb23a222e8414484108a87d0b7aac0' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'06fb23a222e8414484108a87d0b7aac0' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0b5af0a1f67e4cb3ac99ecfb4d15aaff' AND `accounts`.`id` = x'2a115d7e4f6b4dfa983a72d1dde3ccc3' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'2a115d7e4f6b4dfa983a72d1dde3ccc3') LIMIT 1  (0.3ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2013-01-02 11:06:00' WHERE `accounts`.`id` = x'2a115d7e4f6b4dfa983a72d1dde3ccc3'  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/2A115D7E4F6B4DFA983A72D1DDE3CCC3/domains Completed 302 Found in 14ms (ActiveRecord: 3.9ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:00', 'teste@teste.com', '$2a$04$jsga/cJhQese0nAD/G80yeZTghc/fbZ3mckUmKCwnP8fEsdK.3OKW', NULL, x'31e826195bb947f28a057bb0b53c0639', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'31e826195bb947f28a057bb0b53c0639' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:00', 'User', x'568b0bca9ba648248d6edfd081ac842b', 'e1b312e8c87d0bf041681dc36075dcd1', x'31e826195bb947f28a057bb0b53c0639', 'User', '2013-01-02 11:06:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'31e826195bb947f28a057bb0b53c0639' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'84c17ca08dbe408f898a9cc1742540a0', NULL, NULL, NULL, '2013-01-02 11:06:00')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account84c17ca0-8dbe-408f-898a-9cc1742540a0' WHERE `accounts`.`id` = x'84c17ca08dbe408f898a9cc1742540a0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'84c17ca08dbe408f898a9cc1742540a0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'84c17ca08dbe408f898a9cc1742540a0', x'd84e6bb35cbd4ac595eb9f6336fda5ca', x'31e826195bb947f28a057bb0b53c0639') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd84e6bb35cbd4ac595eb9f6336fda5ca') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd84e6bb35cbd4ac595eb9f6336fda5ca' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd84e6bb35cbd4ac595eb9f6336fda5ca', x'79cc76620b484a57a509f0bdc86e8cbe', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd84e6bb35cbd4ac595eb9f6336fda5ca') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd84e6bb35cbd4ac595eb9f6336fda5ca' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd84e6bb35cbd4ac595eb9f6336fda5ca', x'2a3173ce60f5491ba15672dcd612c0fa', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41498ae807_107080435d48485ed@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'bc613b6f2a124dcaa107fbf21927981d', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'accountbc613b6f-2a12-4dca-a107-fbf21927981d' WHERE `accounts`.`id` = x'bc613b6f2a124dcaa107fbf21927981d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bc613b6f2a124dcaa107fbf21927981d', x'91270ec99ab949e490daa359c22b474d', x'31e826195bb947f28a057bb0b53c0639') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'91270ec99ab949e490daa359c22b474d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91270ec99ab949e490daa359c22b474d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91270ec99ab949e490daa359c22b474d', x'a502e3a0a2464ecbb83fa7b32162f908', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'91270ec99ab949e490daa359c22b474d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91270ec99ab949e490daa359c22b474d' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91270ec99ab949e490daa359c22b474d', x'bb5432c0638f4d1ea8ea23d6d54786c1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e826195bb947f28a057bb0b53c0639' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e826195bb947f28a057bb0b53c0639' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e826195bb947f28a057bb0b53c0639' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"BC613B6F2A124DCAA107FBF21927981D"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'31e826195bb947f28a057bb0b53c0639' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bc613b6f2a124dcaa107fbf21927981d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bc613b6f-2a12-4dca-a107-fbf21927981d_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'31e826195bb947f28a057bb0b53c0639' AND `account_users`.`account_id` = x'bc613b6f2a124dcaa107fbf21927981d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91270ec99ab949e490daa359c22b474d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91270ec99ab949e490daa359c22b474d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e826195bb947f28a057bb0b53c0639' AND `accounts`.`id` = x'bc613b6f2a124dcaa107fbf21927981d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'subdomain' AND `accounts`.`id` != x'bc613b6f2a124dcaa107fbf21927981d') LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = 'subdomain', `updated_at` = '2013-01-02 11:06:00' WHERE `accounts`.`id` = x'bc613b6f2a124dcaa107fbf21927981d'  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/BC613B6F2A124DCAA107FBF21927981D/domains Completed 302 Found in 14ms (ActiveRecord: 3.6ms) Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"BC613B6F2A124DCAA107FBF21927981D"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bc613b6f2a124dcaa107fbf21927981d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bc613b6f-2a12-4dca-a107-fbf21927981d_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'31e826195bb947f28a057bb0b53c0639' AND `account_users`.`account_id` = x'bc613b6f2a124dcaa107fbf21927981d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91270ec99ab949e490daa359c22b474d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91270ec99ab949e490daa359c22b474d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'31e826195bb947f28a057bb0b53c0639' AND `accounts`.`id` = x'bc613b6f2a124dcaa107fbf21927981d' LIMIT 1 Completed 200 OK in 11ms (Views: 1.7ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:00', 'teste@teste.com', '$2a$04$/PdOC8dPL2AsH3Y4EckpEeRda/vi69DWQoDsU6lsGlKDnXO/nIruW', NULL, x'5aa0c56627254151bcaac35b45abebda', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:00') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5aa0c56627254151bcaac35b45abebda' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:00', 'User', x'818ef8ef9c1747d586b665656b1ff4d0', '5f30088feebd0517612ea04466339dcf', x'5aa0c56627254151bcaac35b45abebda', 'User', '2013-01-02 11:06:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5aa0c56627254151bcaac35b45abebda' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'f2d2d6fdb73a413c86a7be13804633d0', NULL, NULL, NULL, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'accountf2d2d6fd-b73a-413c-86a7-be13804633d0' WHERE `accounts`.`id` = x'f2d2d6fdb73a413c86a7be13804633d0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f2d2d6fdb73a413c86a7be13804633d0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f2d2d6fdb73a413c86a7be13804633d0', x'fe51c090cddb40448a81f477137c3911', x'5aa0c56627254151bcaac35b45abebda') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fe51c090cddb40448a81f477137c3911') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe51c090cddb40448a81f477137c3911' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe51c090cddb40448a81f477137c3911', x'8b81aede063743ad9287999f30c19f50', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fe51c090cddb40448a81f477137c3911') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fe51c090cddb40448a81f477137c3911' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fe51c090cddb40448a81f477137c3911', x'71c2f85926334bcb8e6572ef0539c562', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41498c7148_107080435d4848692@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'1618dbcc6aeb406fa03f91b171711eff', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account1618dbcc-6aeb-406f-a03f-91b171711eff' WHERE `accounts`.`id` = x'1618dbcc6aeb406fa03f91b171711eff'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1618dbcc6aeb406fa03f91b171711eff', x'72231abf48024f2e92a777ca15234e36', x'5aa0c56627254151bcaac35b45abebda') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'72231abf48024f2e92a777ca15234e36') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'72231abf48024f2e92a777ca15234e36' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'72231abf48024f2e92a777ca15234e36', x'7acf1bcc4e38444aa80c029eb040d6c0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'72231abf48024f2e92a777ca15234e36') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'72231abf48024f2e92a777ca15234e36' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'72231abf48024f2e92a777ca15234e36', x'4eca23ec28684dbbbee3ed1e38eab642', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5aa0c56627254151bcaac35b45abebda' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5aa0c56627254151bcaac35b45abebda' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5aa0c56627254151bcaac35b45abebda' LIMIT 1 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"account"=>{"subdomain"=>"subdomain"}, "account_id"=>"1618DBCC6AEB406FA03F91B171711EFF"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5aa0c56627254151bcaac35b45abebda' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1618dbcc6aeb406fa03f91b171711eff' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1618dbcc-6aeb-406f-a03f-91b171711eff_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5aa0c56627254151bcaac35b45abebda' AND `account_users`.`account_id` = x'1618dbcc6aeb406fa03f91b171711eff' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'72231abf48024f2e92a777ca15234e36' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'72231abf48024f2e92a777ca15234e36' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:00', 'teste@teste.com', '$2a$04$BsECRZh0lmz14vMtlVEAYudfLt1kHF7LCBaKz8gbnQJ.qhKsAyz1m', NULL, x'5515008a7fac4c5293e785f08d845a1b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:00') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5515008a7fac4c5293e785f08d845a1b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:00', 'User', x'42d669cadacd421ea036f99c21339a4c', 'a89ff5d01ef34f08746cc937f53ccfeb', x'5515008a7fac4c5293e785f08d845a1b', 'User', '2013-01-02 11:06:00') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5515008a7fac4c5293e785f08d845a1b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'6f7a86633cf44a3683e47fb375d0728c', NULL, NULL, NULL, '2013-01-02 11:06:00')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account6f7a8663-3cf4-4a36-83e4-7fb375d0728c' WHERE `accounts`.`id` = x'6f7a86633cf44a3683e47fb375d0728c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6f7a86633cf44a3683e47fb375d0728c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6f7a86633cf44a3683e47fb375d0728c', x'7edc7d58f8b640319c99382a636aa301', x'5515008a7fac4c5293e785f08d845a1b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7edc7d58f8b640319c99382a636aa301') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7edc7d58f8b640319c99382a636aa301' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7edc7d58f8b640319c99382a636aa301', x'73e7aa9c873b48cfa5eb3f0b34c2da73', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7edc7d58f8b640319c99382a636aa301') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7edc7d58f8b640319c99382a636aa301' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7edc7d58f8b640319c99382a636aa301', x'caa50e28bd684bb39c2aac72c38629d6', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:00 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41498efcaa_107080435d4848770@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:00', x'17c68a024f5f42808db191a00f196a1d', 'jabanilson', NULL, 1, '2013-01-02 11:06:00')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:00', `updated_at` = '2013-01-02 11:06:00', `subdomain` = 'account17c68a02-4f5f-4280-8db1-91a00f196a1d' WHERE `accounts`.`id` = x'17c68a024f5f42808db191a00f196a1d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'17c68a024f5f42808db191a00f196a1d', x'a5e7856444ab4510bb0413904dc7c7e4', x'5515008a7fac4c5293e785f08d845a1b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a5e7856444ab4510bb0413904dc7c7e4') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5e7856444ab4510bb0413904dc7c7e4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5e7856444ab4510bb0413904dc7c7e4', x'4f32b1e49d5d40a490c7dfab54ee3ffa', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a5e7856444ab4510bb0413904dc7c7e4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5e7856444ab4510bb0413904dc7c7e4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5e7856444ab4510bb0413904dc7c7e4', x'4aca23ea6f4c466187a8b95fea2230c0', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5515008a7fac4c5293e785f08d845a1b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5515008a7fac4c5293e785f08d845a1b' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5515008a7fac4c5293e785f08d845a1b' LIMIT 1 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"account_domain"=>{"url"=>"new.test.net"}, "account_id"=>"6F7A86633CF44A3683E47FB375D0728C"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5515008a7fac4c5293e785f08d845a1b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6f7a86633cf44a3683e47fb375d0728c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6f7a8663-3cf4-4a36-83e4-7fb375d0728c_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$Q.fhT0Y3HNnB9pmOB/z1guK/sLmg5QZvWaek6s5QVaaxfN8CqyiFO', NULL, x'3b0394e30c664283a33c2a744a2e6dbb', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3b0394e30c664283a33c2a744a2e6dbb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'b6680420fde1431c93a729b0234226f0', '1068459300c8fe11ce491633c45c6975', x'3b0394e30c664283a33c2a744a2e6dbb', 'User', '2013-01-02 11:06:01') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3b0394e30c664283a33c2a744a2e6dbb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'ed082d0bb5314890852e07c86ce625be', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'accounted082d0b-b531-4890-852e-07c86ce625be' WHERE `accounts`.`id` = x'ed082d0bb5314890852e07c86ce625be' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ed082d0bb5314890852e07c86ce625be' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ed082d0bb5314890852e07c86ce625be', x'ef2789ddc66f4e468e14bcc9d2d986dc', x'3b0394e30c664283a33c2a744a2e6dbb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ef2789ddc66f4e468e14bcc9d2d986dc') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ef2789ddc66f4e468e14bcc9d2d986dc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ef2789ddc66f4e468e14bcc9d2d986dc', x'd03e212b0ecd47fd8035325cc6243bd3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ef2789ddc66f4e468e14bcc9d2d986dc') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ef2789ddc66f4e468e14bcc9d2d986dc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ef2789ddc66f4e468e14bcc9d2d986dc', x'dbd76fa95b8347c09d72a74a9c266af5', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:01 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41499e7bb_107080435d48488c5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'8c09032e79fd4045876a620b3c9265d7', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account8c09032e-79fd-4045-876a-620b3c9265d7' WHERE `accounts`.`id` = x'8c09032e79fd4045876a620b3c9265d7'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8c09032e79fd4045876a620b3c9265d7', x'f99d2a9dd2ea479982e488204bc89c1e', x'3b0394e30c664283a33c2a744a2e6dbb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f99d2a9dd2ea479982e488204bc89c1e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f99d2a9dd2ea479982e488204bc89c1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f99d2a9dd2ea479982e488204bc89c1e', x'036a5048ffc546b7ba81f593e3448c75', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f99d2a9dd2ea479982e488204bc89c1e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f99d2a9dd2ea479982e488204bc89c1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f99d2a9dd2ea479982e488204bc89c1e', x'342312a7cc9d426ca210193aa7355dd3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3b0394e30c664283a33c2a744a2e6dbb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3b0394e30c664283a33c2a744a2e6dbb' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3b0394e30c664283a33c2a744a2e6dbb' LIMIT 1 Processing by Iugu::AccountDomainsController#destroy as HTML Parameters: {"account_id"=>"ED082D0BB5314890852E07C86CE625BE", "domain_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3b0394e30c664283a33c2a744a2e6dbb' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ed082d0bb5314890852e07c86ce625be' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ed082d0b-b531-4890-852e-07c86ce625be_destroy' LIMIT 1 Completed 404 Not Found in 4ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$o5I9yoS26V1GGCnNzhDd4.52g/WFN02KppCG6QVQ.AZywzxZ9NHfy', NULL, x'a4caa35b40404996b75ef67f92431c8e', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a4caa35b40404996b75ef67f92431c8e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'6da32b4328804837a2210447d2a370b1', '6d175f3504a29a41a4c6a7668bb21e1a', x'a4caa35b40404996b75ef67f92431c8e', 'User', '2013-01-02 11:06:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a4caa35b40404996b75ef67f92431c8e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'a277164f94714047926fb519e83db422', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'accounta277164f-9471-4047-926f-b519e83db422' WHERE `accounts`.`id` = x'a277164f94714047926fb519e83db422' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a277164f94714047926fb519e83db422' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a277164f94714047926fb519e83db422', x'c62e9642517f4d9b9d075deb62ad7a44', x'a4caa35b40404996b75ef67f92431c8e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c62e9642517f4d9b9d075deb62ad7a44') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c62e9642517f4d9b9d075deb62ad7a44' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c62e9642517f4d9b9d075deb62ad7a44', x'337f27a8105c460c91bf68756ca21f11', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c62e9642517f4d9b9d075deb62ad7a44') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c62e9642517f4d9b9d075deb62ad7a44' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c62e9642517f4d9b9d075deb62ad7a44', x'2743ff0692184ee3b5067e6e0f17fabc', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:01 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149920c33_107080435d48489e4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'186bdd7e8dc7481d931e29b690cd9b17', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account186bdd7e-8dc7-481d-931e-29b690cd9b17' WHERE `accounts`.`id` = x'186bdd7e8dc7481d931e29b690cd9b17'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'186bdd7e8dc7481d931e29b690cd9b17', x'252683f35d32459c9f9b9ddd899f02f9', x'a4caa35b40404996b75ef67f92431c8e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'252683f35d32459c9f9b9ddd899f02f9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'252683f35d32459c9f9b9ddd899f02f9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'252683f35d32459c9f9b9ddd899f02f9', x'fbc3285654b04a18a9896ed0c0311920', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'252683f35d32459c9f9b9ddd899f02f9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'252683f35d32459c9f9b9ddd899f02f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'252683f35d32459c9f9b9ddd899f02f9', x'56153b646b744ce681685ac0a49fd7cc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a4caa35b40404996b75ef67f92431c8e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a4caa35b40404996b75ef67f92431c8e' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a4caa35b40404996b75ef67f92431c8e' LIMIT 1 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"186BDD7E8DC7481D931E29B690CD9B17"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a4caa35b40404996b75ef67f92431c8e' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'186bdd7e8dc7481d931e29b690cd9b17' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_186bdd7e-8dc7-481d-931e-29b690cd9b17_destroy' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a4caa35b40404996b75ef67f92431c8e' AND `account_users`.`account_id` = x'186bdd7e8dc7481d931e29b690cd9b17' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'252683f35d32459c9f9b9ddd899f02f9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'252683f35d32459c9f9b9ddd899f02f9' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$BONonay6w4n687APMrJS8e.AKKQbYoKTj5/Q23J8rJvGOd5BILN.C', NULL, x'1a7596b0ba9c4b49b1067ba646c65ade', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1a7596b0ba9c4b49b1067ba646c65ade' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'f1c66f5225854429ba35c9b2303ebe66', '04ebe93f82c53f69dc793db3302e501b', x'1a7596b0ba9c4b49b1067ba646c65ade', 'User', '2013-01-02 11:06:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1a7596b0ba9c4b49b1067ba646c65ade' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'7f83e007d5184f68be614468b9030c63', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account7f83e007-d518-4f68-be61-4468b9030c63' WHERE `accounts`.`id` = x'7f83e007d5184f68be614468b9030c63' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7f83e007d5184f68be614468b9030c63' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7f83e007d5184f68be614468b9030c63', x'122773ccbaaa4e3e977d7fcecb2a6bb1', x'1a7596b0ba9c4b49b1067ba646c65ade') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'122773ccbaaa4e3e977d7fcecb2a6bb1', x'3ff158da86a045008f9a5ae4c31f0773', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'122773ccbaaa4e3e977d7fcecb2a6bb1', x'085e781b35ed4990ba352e7c890a2b8c', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:01 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149948aa0_107080435d48490ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'761f666d406542dcba77e6a5696b460a', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account761f666d-4065-42dc-ba77-e6a5696b460a' WHERE `accounts`.`id` = x'761f666d406542dcba77e6a5696b460a'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'761f666d406542dcba77e6a5696b460a', x'de24211c836f498bb0887882be8a1ef7', x'1a7596b0ba9c4b49b1067ba646c65ade') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'de24211c836f498bb0887882be8a1ef7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de24211c836f498bb0887882be8a1ef7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de24211c836f498bb0887882be8a1ef7', x'f7f1fee71dd04b15bd1c2940925f123f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'de24211c836f498bb0887882be8a1ef7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de24211c836f498bb0887882be8a1ef7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de24211c836f498bb0887882be8a1ef7', x'115e45ea1eaa4770925bf1bb62e131c3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a7596b0ba9c4b49b1067ba646c65ade' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a7596b0ba9c4b49b1067ba646c65ade' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1a7596b0ba9c4b49b1067ba646c65ade' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'085e781b35ed4990ba352e7c890a2b8c' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ƒàÕOh¾aDh¹ c' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7f83e007d5184f68be614468b9030c63' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1a7596b0ba9c4b49b1067ba646c65ade' LIMIT 1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"7f83e007-d518-4f68-be61-4468b9030c63", "user_id"=>"1a7596b0-ba9c-4b49-b106-7ba646c65ade"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1a7596b0ba9c4b49b1067ba646c65ade' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1a7596b0ba9c4b49b1067ba646c65ade' AND `account_users`.`account_id` = x'7f83e007d5184f68be614468b9030c63' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'122773ccbaaa4e3e977d7fcecb2a6bb1' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a7596b0ba9c4b49b1067ba646c65ade' AND `accounts`.`id` = x'7f83e007d5184f68be614468b9030c63' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7f83e007d5184f68be614468b9030c63' AND `account_users`.`user_id` = x'1a7596b0ba9c4b49b1067ba646c65ade' LIMIT 1 Completed 200 OK in 14ms (Views: 4.0ms | ActiveRecord: 2.2ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$YQ/GFs0o6nZmdtCMSTxCZe1klJEHppr1xF9c9k8zhNQOUiXh2f9BK', NULL, x'5f493784aa454634b0a3e3cfa2591882', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5f493784aa454634b0a3e3cfa2591882' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'b266b29ced364f82bbcf0cc42fd6d322', '89aed62480cc9e1216f41118a490c1d2', x'5f493784aa454634b0a3e3cfa2591882', 'User', '2013-01-02 11:06:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5f493784aa454634b0a3e3cfa2591882' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'b9dcd29cb66a48d7a3003354f9baa438', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'accountb9dcd29c-b66a-48d7-a300-3354f9baa438' WHERE `accounts`.`id` = x'b9dcd29cb66a48d7a3003354f9baa438' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b9dcd29cb66a48d7a3003354f9baa438' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b9dcd29cb66a48d7a3003354f9baa438', x'01c485b0418d44d4b4a08e9e27966d20', x'5f493784aa454634b0a3e3cfa2591882') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'01c485b0418d44d4b4a08e9e27966d20') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01c485b0418d44d4b4a08e9e27966d20' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01c485b0418d44d4b4a08e9e27966d20', x'832be7d03cd54fefa833d6b88e11a621', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'01c485b0418d44d4b4a08e9e27966d20') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01c485b0418d44d4b4a08e9e27966d20' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'01c485b0418d44d4b4a08e9e27966d20', x'960b8b1ed8a4430da7d74fca429f5a52', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:01 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149960f61_107080435d4849113@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'02c12308b3a545f98edb33ab128eb272', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account02c12308-b3a5-45f9-8edb-33ab128eb272' WHERE `accounts`.`id` = x'02c12308b3a545f98edb33ab128eb272'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'02c12308b3a545f98edb33ab128eb272', x'bf283745603d4ff598dd0441e3ebc9a4', x'5f493784aa454634b0a3e3cfa2591882') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bf283745603d4ff598dd0441e3ebc9a4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bf283745603d4ff598dd0441e3ebc9a4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bf283745603d4ff598dd0441e3ebc9a4', x'ced349b038a54865acb83954f78642bd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bf283745603d4ff598dd0441e3ebc9a4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bf283745603d4ff598dd0441e3ebc9a4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bf283745603d4ff598dd0441e3ebc9a4', x'7b4ea46781994e09b54dabeda51a06b9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5f493784aa454634b0a3e3cfa2591882' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5f493784aa454634b0a3e3cfa2591882' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5f493784aa454634b0a3e3cfa2591882' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'01c485b0418d44d4b4a08e9e27966d20'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01c485b0418d44d4b4a08e9e27966d20' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'960b8b1ed8a4430da7d74fca429f5a52'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'01c485b0418d44d4b4a08e9e27966d20') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'01c485b0418d44d4b4a08e9e27966d20' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b9dcd29cb66a48d7a3003354f9baa438' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5f493784aa454634b0a3e3cfa2591882' LIMIT 1 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"b9dcd29c-b66a-48d7-a300-3354f9baa438", "user_id"=>"5f493784-aa45-4634-b0a3-e3cfa2591882"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5f493784aa454634b0a3e3cfa2591882' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5f493784aa454634b0a3e3cfa2591882' AND `account_users`.`account_id` = x'b9dcd29cb66a48d7a3003354f9baa438' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'01c485b0418d44d4b4a08e9e27966d20' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'01c485b0418d44d4b4a08e9e27966d20' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5f493784aa454634b0a3e3cfa2591882' AND `accounts`.`id` = x'b9dcd29cb66a48d7a3003354f9baa438' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b9dcd29cb66a48d7a3003354f9baa438' AND `account_users`.`user_id` = x'5f493784aa454634b0a3e3cfa2591882' LIMIT 1 Completed 200 OK in 11ms (Views: 1.7ms | ActiveRecord: 2.2ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$PdZtficjkle8tXLsIJ22suvEkYOsioNcBG7wpt1YiMRfv5pU2x8Xq', NULL, x'509884fa27df42e89c46318207cead6a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'509884fa27df42e89c46318207cead6a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'513a2f616a82438fb5437b1aeb3dc95b', 'bdd4ed31c6eed19142fd0afe0ebef311', x'509884fa27df42e89c46318207cead6a', 'User', '2013-01-02 11:06:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'509884fa27df42e89c46318207cead6a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'07dd6c03be1d404b89624208dc2df82d', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account07dd6c03-be1d-404b-8962-4208dc2df82d' WHERE `accounts`.`id` = x'07dd6c03be1d404b89624208dc2df82d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07dd6c03be1d404b89624208dc2df82d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'07dd6c03be1d404b89624208dc2df82d', x'a1d977eaca714bdd9bd3a03e1469e663', x'509884fa27df42e89c46318207cead6a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a1d977eaca714bdd9bd3a03e1469e663') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a1d977eaca714bdd9bd3a03e1469e663' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a1d977eaca714bdd9bd3a03e1469e663', x'8c4ec50913064f7b89ae2a288319e94f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a1d977eaca714bdd9bd3a03e1469e663') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a1d977eaca714bdd9bd3a03e1469e663' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a1d977eaca714bdd9bd3a03e1469e663', x'10e1e79d5fe5485ab624d1e0d0773e40', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:01 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149978451_107080435d48492ce@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'05de05e545a04480a1d84389ec09ea84', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account05de05e5-45a0-4480-a1d8-4389ec09ea84' WHERE `accounts`.`id` = x'05de05e545a04480a1d84389ec09ea84'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'05de05e545a04480a1d84389ec09ea84', x'be431565d7f44912b2f89e0fe73b0184', x'509884fa27df42e89c46318207cead6a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'be431565d7f44912b2f89e0fe73b0184') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be431565d7f44912b2f89e0fe73b0184' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be431565d7f44912b2f89e0fe73b0184', x'f206ca13b5ec498fb0e7070cc3e9e2fb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'be431565d7f44912b2f89e0fe73b0184') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be431565d7f44912b2f89e0fe73b0184' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be431565d7f44912b2f89e0fe73b0184', x'cb09632e33ba45b397c873338c883207', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'509884fa27df42e89c46318207cead6a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'509884fa27df42e89c46318207cead6a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'509884fa27df42e89c46318207cead6a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'07dd6c03be1d404b89624208dc2df82d' LIMIT 1 Processing by Iugu::AccountRolesController#update as HTML Parameters: {"roles"=>[], "id"=>"07dd6c03-be1d-404b-8962-4208dc2df82d", "user_id"=>"509884fa-27df-42e8-9c46-318207cead6a"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'509884fa27df42e89c46318207cead6a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'509884fa27df42e89c46318207cead6a' AND `account_users`.`account_id` = x'07dd6c03be1d404b89624208dc2df82d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a1d977eaca714bdd9bd3a03e1469e663' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a1d977eaca714bdd9bd3a03e1469e663' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'509884fa27df42e89c46318207cead6a' AND `accounts`.`id` = x'07dd6c03be1d404b89624208dc2df82d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'07dd6c03be1d404b89624208dc2df82d' AND `account_users`.`user_id` = x'509884fa27df42e89c46318207cead6a' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a1d977eaca714bdd9bd3a03e1469e663'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'10e1e79d5fe5485ab624d1e0d0773e40' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a1d977eaca714bdd9bd3a03e1469e663' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Ýl¾@K‰bBÜ-ø-' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/07dd6c03-be1d-404b-8962-4208dc2df82d/users Completed 302 Found in 15ms (ActiveRecord: 3.5ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'a072aaa1af5647cfaa3c7f00c6212414', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'accounta072aaa1-af56-47cf-aa3c-7f00c6212414' WHERE `accounts`.`id` = x'a072aaa1af5647cfaa3c7f00c6212414'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$pNEEeLueVxam1DklvJrVYOJGsA5tpuWvHpF6JDLegbtIeyKtPxSe6', NULL, x'6df043c7640340ce8b8753ea3d3fbf41', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6df043c7640340ce8b8753ea3d3fbf41' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'b56a487cdcce4e5fa2adab00cae982ba', '012b609bdcd0dee49328374b3fcbdc05', x'6df043c7640340ce8b8753ea3d3fbf41', 'User', '2013-01-02 11:06:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6df043c7640340ce8b8753ea3d3fbf41' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'd791563f43ca43e68131d5f2d8615957', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'accountd791563f-43ca-43e6-8131-d5f2d8615957' WHERE `accounts`.`id` = x'd791563f43ca43e68131d5f2d8615957' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd791563f43ca43e68131d5f2d8615957' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd791563f43ca43e68131d5f2d8615957', x'4e49da710ef44bc9b3ed7f0f7951df00', x'6df043c7640340ce8b8753ea3d3fbf41') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4e49da710ef44bc9b3ed7f0f7951df00') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e49da710ef44bc9b3ed7f0f7951df00' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e49da710ef44bc9b3ed7f0f7951df00', x'674f2ac41a4d4afdb3cb63f7739b87b7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4e49da710ef44bc9b3ed7f0f7951df00') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4e49da710ef44bc9b3ed7f0f7951df00' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4e49da710ef44bc9b3ed7f0f7951df00', x'2a59c352aae44332a91a145bed37b598', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:01 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41499a3d2e_107080435d4849372@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'b628e99c82d44a8bb1b71ef15368ddcd', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'accountb628e99c-82d4-4a8b-b1b7-1ef15368ddcd' WHERE `accounts`.`id` = x'b628e99c82d44a8bb1b71ef15368ddcd'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b628e99c82d44a8bb1b71ef15368ddcd', x'f77f2ec2671641bfaa9fdcc13c7a30a1', x'6df043c7640340ce8b8753ea3d3fbf41') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f77f2ec2671641bfaa9fdcc13c7a30a1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f77f2ec2671641bfaa9fdcc13c7a30a1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f77f2ec2671641bfaa9fdcc13c7a30a1', x'1b6436525913426bb4fecfe17aa25488', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f77f2ec2671641bfaa9fdcc13c7a30a1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f77f2ec2671641bfaa9fdcc13c7a30a1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f77f2ec2671641bfaa9fdcc13c7a30a1', x'3ab280b9dd6d45249c3518afe714ad75', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6df043c7640340ce8b8753ea3d3fbf41' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6df043c7640340ce8b8753ea3d3fbf41' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:01', NULL, '--- !ruby/struct:DestroyAccountJob\nid: a072aaa1-af56-47cf-aa3c-7f00c6212414\n', NULL, NULL, NULL, 0, 'account_a072aaa1-af56-47cf-aa3c-7f00c6212414_destroy', '2013-01-02 11:06:01', '2013-01-02 11:06:01')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"A072AAA1AF5647CFAA3C7F00C6212414"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6df043c7640340ce8b8753ea3d3fbf41' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a072aaa1af5647cfaa3c7f00c6212414' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a072aaa1-af56-47cf-aa3c-7f00c6212414_destroy' LIMIT 1 Filter chain halted as :block_removing rendered or redirected Completed 550 in 15ms (Views: 10.3ms | ActiveRecord: 1.3ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'9b56d9c1af1a48da981069a7f9d9011c', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account9b56d9c1-af1a-48da-9810-69a7f9d9011c' WHERE `accounts`.`id` = x'9b56d9c1af1a48da981069a7f9d9011c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$o5a9YqOBPkVOaBN4zL.fhOS2lqGxmTz4pOiPO7tI.mGfbZpDlYybu', NULL, x'9af726f034b547f9ac4eed97bfb0ca02', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9af726f034b547f9ac4eed97bfb0ca02' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'95d34561e94b4973bbad80faf91928ef', '431d398bfa2b9067aa6ad3bf7299901d', x'9af726f034b547f9ac4eed97bfb0ca02', 'User', '2013-01-02 11:06:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9af726f034b547f9ac4eed97bfb0ca02' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'27024b9807274401a5bd6ece9800a394', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account27024b98-0727-4401-a5bd-6ece9800a394' WHERE `accounts`.`id` = x'27024b9807274401a5bd6ece9800a394' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'27024b9807274401a5bd6ece9800a394' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'27024b9807274401a5bd6ece9800a394', x'0baf1a5251d54d6c8b2391bfb4cb7f0e', x'9af726f034b547f9ac4eed97bfb0ca02') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0baf1a5251d54d6c8b2391bfb4cb7f0e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0baf1a5251d54d6c8b2391bfb4cb7f0e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0baf1a5251d54d6c8b2391bfb4cb7f0e', x'43d7c57291d1485cb74d40b22fab84b0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0baf1a5251d54d6c8b2391bfb4cb7f0e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0baf1a5251d54d6c8b2391bfb4cb7f0e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0baf1a5251d54d6c8b2391bfb4cb7f0e', x'5cca0ba9f2d54ee296fb7be80d83bd3e', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:01 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41499bced3_107080435d48494df@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'eb6a2f2686044f2d8d432385fd1c712c', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'accounteb6a2f26-8604-4f2d-8d43-2385fd1c712c' WHERE `accounts`.`id` = x'eb6a2f2686044f2d8d432385fd1c712c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eb6a2f2686044f2d8d432385fd1c712c', x'4d4216f890d44bbe95da9795cdeb5d42', x'9af726f034b547f9ac4eed97bfb0ca02') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4d4216f890d44bbe95da9795cdeb5d42') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d4216f890d44bbe95da9795cdeb5d42' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4d4216f890d44bbe95da9795cdeb5d42', x'ec467648281543be91ea9dbd53749bb7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4d4216f890d44bbe95da9795cdeb5d42') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4d4216f890d44bbe95da9795cdeb5d42' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4d4216f890d44bbe95da9795cdeb5d42', x'9e13779d3ae64121b01e2e927b219159', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9af726f034b547f9ac4eed97bfb0ca02' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9af726f034b547f9ac4eed97bfb0ca02' LIMIT 1 Processing by StubAccountSettingsController#index as HTML Parameters: {"account_id"=>"9B56D9C1AF1A48DA981069A7F9D9011C"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9af726f034b547f9ac4eed97bfb0ca02' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9b56d9c1af1a48da981069a7f9d9011c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_9b56d9c1-af1a-48da-9810-69a7f9d9011c_destroy' LIMIT 1 Completed 200 OK in 46ms (Views: 41.5ms | ActiveRecord: 1.2ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$bBZ6YpPQwpuI/IcgycY52OqeTHR3LLI2.Rv9W.rbpPerzB7jFByvS', NULL, x'4ec3f4fa02dc42c7a926ea8db405760b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4ec3f4fa02dc42c7a926ea8db405760b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'd8b0ac397544499baf7e816d126f8a1d', 'fca6e4d0b85cafe84b7e8c5e127ee7aa', x'4ec3f4fa02dc42c7a926ea8db405760b', 'User', '2013-01-02 11:06:01') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4ec3f4fa02dc42c7a926ea8db405760b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'b96ba4adba9b4871976fc1b8f717b7ca', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'accountb96ba4ad-ba9b-4871-976f-c1b8f717b7ca' WHERE `accounts`.`id` = x'b96ba4adba9b4871976fc1b8f717b7ca' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b96ba4adba9b4871976fc1b8f717b7ca' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b96ba4adba9b4871976fc1b8f717b7ca', x'5c1887a9f13041c180bced8193da0c2c', x'4ec3f4fa02dc42c7a926ea8db405760b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5c1887a9f13041c180bced8193da0c2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c1887a9f13041c180bced8193da0c2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c1887a9f13041c180bced8193da0c2c', x'c553892da5434bf2ab69ca59e67cf9b7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5c1887a9f13041c180bced8193da0c2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c1887a9f13041c180bced8193da0c2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c1887a9f13041c180bced8193da0c2c', x'e8ea43ddabd440ccb00ecbbf41fcf5a8', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:01 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e41499db442_107080435d4849571@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'1d17864b220b4e8eb6a9dfb1d2d1de4c', 'jabanilson', NULL, 1, '2013-01-02 11:06:01')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account1d17864b-220b-4e8e-b6a9-dfb1d2d1de4c' WHERE `accounts`.`id` = x'1d17864b220b4e8eb6a9dfb1d2d1de4c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1d17864b220b4e8eb6a9dfb1d2d1de4c', x'714e9735b3c8484a9b7fd9d06a2370ba', x'4ec3f4fa02dc42c7a926ea8db405760b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'714e9735b3c8484a9b7fd9d06a2370ba') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'714e9735b3c8484a9b7fd9d06a2370ba' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'714e9735b3c8484a9b7fd9d06a2370ba', x'd5b9be234b434e7aa0f02aa6e04d7e0e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'714e9735b3c8484a9b7fd9d06a2370ba') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'714e9735b3c8484a9b7fd9d06a2370ba' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'714e9735b3c8484a9b7fd9d06a2370ba', x'7b9c419382bc475186c2427ed9a23ae4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4ec3f4fa02dc42c7a926ea8db405760b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4ec3f4fa02dc42c7a926ea8db405760b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4ec3f4fa02dc42c7a926ea8db405760b' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"B96BA4ADBA9B4871976FC1B8F717B7CA"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4ec3f4fa02dc42c7a926ea8db405760b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b96ba4adba9b4871976fc1b8f717b7ca' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b96ba4ad-ba9b-4871-976f-c1b8f717b7ca_destroy' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b96ba4adba9b4871976fc1b8f717b7ca' LIMIT 1 Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 1.2ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:01', 'teste@teste.com', '$2a$04$9zA.ZoheUNE2HYuRFcv7GOnxlVEDGRLBUNdP5qHwM7DGVwxyfySOO', NULL, x'b469c3f1658a46d49ae5acf6c298de82', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:01') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b469c3f1658a46d49ae5acf6c298de82' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:01', 'User', x'd1c6dbc5f0ab426ca8a3afa235193982', 'f785b912d256bee79e8f156d5dfa72b1', x'b469c3f1658a46d49ae5acf6c298de82', 'User', '2013-01-02 11:06:01') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b469c3f1658a46d49ae5acf6c298de82' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:01', x'976e9a3b70b34e8289d09c3b949579e0', NULL, NULL, NULL, '2013-01-02 11:06:01')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:01', `updated_at` = '2013-01-02 11:06:01', `subdomain` = 'account976e9a3b-70b3-4e82-89d0-9c3b949579e0' WHERE `accounts`.`id` = x'976e9a3b70b34e8289d09c3b949579e0' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'976e9a3b70b34e8289d09c3b949579e0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'976e9a3b70b34e8289d09c3b949579e0', x'd2fb231a86d8486dbf55a6b35c058e89', x'b469c3f1658a46d49ae5acf6c298de82') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd2fb231a86d8486dbf55a6b35c058e89') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd2fb231a86d8486dbf55a6b35c058e89' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd2fb231a86d8486dbf55a6b35c058e89', x'25c9286d68e44217b9a579664521be37', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd2fb231a86d8486dbf55a6b35c058e89') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd2fb231a86d8486dbf55a6b35c058e89' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd2fb231a86d8486dbf55a6b35c058e89', x'10b3626ec23a4a078c4604f56c2864e2', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149a109db_107080435d48496b6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'838ef3d6d61e4ee6a3b60819877d7dae', 'jabanilson', NULL, 1, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account838ef3d6-d61e-4ee6-a3b6-0819877d7dae' WHERE `accounts`.`id` = x'838ef3d6d61e4ee6a3b60819877d7dae'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'838ef3d6d61e4ee6a3b60819877d7dae', x'c6e9297fbbd14c2993d5199811f90a1c', x'b469c3f1658a46d49ae5acf6c298de82') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c6e9297fbbd14c2993d5199811f90a1c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c6e9297fbbd14c2993d5199811f90a1c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c6e9297fbbd14c2993d5199811f90a1c', x'd93f754bf0fc4ba8b35f70a8b9f5839c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c6e9297fbbd14c2993d5199811f90a1c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c6e9297fbbd14c2993d5199811f90a1c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c6e9297fbbd14c2993d5199811f90a1c', x'264fd70a40ca4f81910d81ab60358223', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b469c3f1658a46d49ae5acf6c298de82' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b469c3f1658a46d49ae5acf6c298de82' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b469c3f1658a46d49ae5acf6c298de82' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"838EF3D6D61E4EE6A3B60819877D7DAE"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b469c3f1658a46d49ae5acf6c298de82' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'838ef3d6d61e4ee6a3b60819877d7dae' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_838ef3d6-d61e-4ee6-a3b6-0819877d7dae_destroy' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'838ef3d6d61e4ee6a3b60819877d7dae' LIMIT 1 Completed 200 OK in 7ms (Views: 1.7ms | ActiveRecord: 1.5ms) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b469c3f1658a46d49ae5acf6c298de82' LIMIT 1 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"838EF3D6D61E4EE6A3B60819877D7DAE"} Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'838ef3d6d61e4ee6a3b60819877d7dae' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_838ef3d6-d61e-4ee6-a3b6-0819877d7dae_destroy' LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'teste@teste.com', '$2a$04$bKQYNtIQYaMgbPgdiDP.Pulxop7LqCaYr.SjXxo.NcsdoRXdZzshC', NULL, x'18a9ee4421524006a88cf8c12ac9aa31', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'18a9ee4421524006a88cf8c12ac9aa31' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'ce5bb3f5ed104e688ad73016512a4ee1', '263997c21fd141284d903784049f52bc', x'18a9ee4421524006a88cf8c12ac9aa31', 'User', '2013-01-02 11:06:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'18a9ee4421524006a88cf8c12ac9aa31' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'93945719aa53403f81b5c2662d47b3ec', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account93945719-aa53-403f-81b5-c2662d47b3ec' WHERE `accounts`.`id` = x'93945719aa53403f81b5c2662d47b3ec' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'93945719aa53403f81b5c2662d47b3ec' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'93945719aa53403f81b5c2662d47b3ec', x'1bb3bcec76204890ab9f5a574ccafe2c', x'18a9ee4421524006a88cf8c12ac9aa31') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1bb3bcec76204890ab9f5a574ccafe2c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1bb3bcec76204890ab9f5a574ccafe2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1bb3bcec76204890ab9f5a574ccafe2c', x'e8be1e9c43f6432db85a9cc3a7638e8c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1bb3bcec76204890ab9f5a574ccafe2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1bb3bcec76204890ab9f5a574ccafe2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1bb3bcec76204890ab9f5a574ccafe2c', x'd265b4f3d0b847d79fa6ca371e1f011d', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149a2562d_107080435d4849775@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'cf7740d9727f4413a757390c9f8e1d45', 'jabanilson', NULL, 1, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'accountcf7740d9-727f-4413-a757-390c9f8e1d45' WHERE `accounts`.`id` = x'cf7740d9727f4413a757390c9f8e1d45'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cf7740d9727f4413a757390c9f8e1d45', x'7c4ea6dad3364f36930835acfdf5343d', x'18a9ee4421524006a88cf8c12ac9aa31') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7c4ea6dad3364f36930835acfdf5343d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c4ea6dad3364f36930835acfdf5343d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c4ea6dad3364f36930835acfdf5343d', x'8f1b146b5e5e43f1bb246a38d07d6b43', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7c4ea6dad3364f36930835acfdf5343d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c4ea6dad3364f36930835acfdf5343d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c4ea6dad3364f36930835acfdf5343d', x'1bcfc04c17874cfba9c757ef10b7a9d0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'18a9ee4421524006a88cf8c12ac9aa31' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'18a9ee4421524006a88cf8c12ac9aa31' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'18a9ee4421524006a88cf8c12ac9aa31' LIMIT 1 Processing by Iugu::AccountUsersController#view as HTML Parameters: {"account_id"=>"93945719AA53403F81B5C2662D47B3EC", "user_id"=>"18A9EE4421524006A88CF8C12AC9AA31"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'18a9ee4421524006a88cf8c12ac9aa31' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'93945719aa53403f81b5c2662d47b3ec' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_93945719-aa53-403f-81b5-c2662d47b3ec_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'93945719aa53403f81b5c2662d47b3ec' AND `account_users`.`user_id` = x'18a9ee4421524006a88cf8c12ac9aa31' LIMIT 1 Completed 200 OK in 8ms (Views: 2.5ms | ActiveRecord: 1.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'teste@teste.com', '$2a$04$bIACxWz9l76KzLjbQaK3gujkEtLcuzJas2PBQ/YRYEYf1wZrV0JdC', NULL, x'6a990793e76249d49bd563bfd896a86f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6a990793e76249d49bd563bfd896a86f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'c6ad98ed88cd4a4ba641409ca8642451', 'd39d5f00d7b17e7748493c5ef0e88144', x'6a990793e76249d49bd563bfd896a86f', 'User', '2013-01-02 11:06:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6a990793e76249d49bd563bfd896a86f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'd9956f3316644ee3973df85bfc0b9e51', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'accountd9956f33-1664-4ee3-973d-f85bfc0b9e51' WHERE `accounts`.`id` = x'd9956f3316644ee3973df85bfc0b9e51' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd9956f3316644ee3973df85bfc0b9e51' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd9956f3316644ee3973df85bfc0b9e51', x'38b219bc4e104fe0947e184bff9aef11', x'6a990793e76249d49bd563bfd896a86f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'38b219bc4e104fe0947e184bff9aef11') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'38b219bc4e104fe0947e184bff9aef11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'38b219bc4e104fe0947e184bff9aef11', x'8760709f50054c26b2f08a5a7c0c1f05', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'38b219bc4e104fe0947e184bff9aef11') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'38b219bc4e104fe0947e184bff9aef11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'38b219bc4e104fe0947e184bff9aef11', x'69603421fc244d0c9479a480dd7e73d7', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149a39452_107080435d48498ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'261e8d1571f541ea86917f8780f92d2a', 'jabanilson', NULL, 1, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account261e8d15-71f5-41ea-8691-7f8780f92d2a' WHERE `accounts`.`id` = x'261e8d1571f541ea86917f8780f92d2a'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'261e8d1571f541ea86917f8780f92d2a', x'b0787b265e344e25b9dfbd28d67f9628', x'6a990793e76249d49bd563bfd896a86f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b0787b265e344e25b9dfbd28d67f9628') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0787b265e344e25b9dfbd28d67f9628' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0787b265e344e25b9dfbd28d67f9628', x'1f373448e5c4499e966bf432ffba2205', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b0787b265e344e25b9dfbd28d67f9628') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0787b265e344e25b9dfbd28d67f9628' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0787b265e344e25b9dfbd28d67f9628', x'817ed0ae9de34466b2e4048c5cad1f27', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6a990793e76249d49bd563bfd896a86f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6a990793e76249d49bd563bfd896a86f' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6a990793e76249d49bd563bfd896a86f' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'targetdestroy@teste.teste', '$2a$04$n5VxdBYaGTVLKfFkaCHnWOkK4/wvmMfYCShaMZYTt8s5inss4tgPq', NULL, x'96d45cc68a104861b037520bc510f60b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'96d45cc68a104861b037520bc510f60b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'8938caceab1043a19a93254b7e7bf300', '6dc2721e86762ff7dc9297d68942ad0c', x'96d45cc68a104861b037520bc510f60b', 'User', '2013-01-02 11:06:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'96d45cc68a104861b037520bc510f60b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'73d25b27b16a4317be0a15e16c6e6009', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account73d25b27-b16a-4317-be0a-15e16c6e6009' WHERE `accounts`.`id` = x'73d25b27b16a4317be0a15e16c6e6009' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'73d25b27b16a4317be0a15e16c6e6009' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'73d25b27b16a4317be0a15e16c6e6009', x'e4b090a9e95647a1aa28f53ec689d672', x'96d45cc68a104861b037520bc510f60b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e4b090a9e95647a1aa28f53ec689d672') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e4b090a9e95647a1aa28f53ec689d672' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e4b090a9e95647a1aa28f53ec689d672', x'fce53a8033794d1ea97ac5299904d066', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e4b090a9e95647a1aa28f53ec689d672') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e4b090a9e95647a1aa28f53ec689d672' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e4b090a9e95647a1aa28f53ec689d672', x'ce26fcb338cd4de780bf5a349e41571c', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: targetdestroy@teste.teste Message-ID: <50e4149a4987d_107080435d4849934@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd9956f3316644ee3973df85bfc0b9e51' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd9956f3316644ee3973df85bfc0b9e51', x'0272eb8034314d5f941372c73871dd55', x'96d45cc68a104861b037520bc510f60b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0272eb8034314d5f941372c73871dd55') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0272eb8034314d5f941372c73871dd55' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0272eb8034314d5f941372c73871dd55', x'0b17c2396f7145c098c18b2685a54631', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0272eb8034314d5f941372c73871dd55') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0272eb8034314d5f941372c73871dd55' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0272eb8034314d5f941372c73871dd55', x'ebda70fea34149e18d7ba484eee457cd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"96D45CC68A104861B037520BC510F60B"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6a990793e76249d49bd563bfd896a86f' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31383932373331383932333731323733' LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'teste@teste.com', '$2a$04$UuWLUGhrTKUgZHKuMqM.juKV5yfX99LSY.AeWSvsN.ynOGsKdVLFe', NULL, x'76262295d041497db82a4371c87f5176', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'76262295d041497db82a4371c87f5176' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'82de465465374566b0520ac83a1e8557', '439302a69d06c0112451c98bec28884b', x'76262295d041497db82a4371c87f5176', 'User', '2013-01-02 11:06:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'76262295d041497db82a4371c87f5176' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'b9d671ecf25647609f848ae08641fdfb', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'accountb9d671ec-f256-4760-9f84-8ae08641fdfb' WHERE `accounts`.`id` = x'b9d671ecf25647609f848ae08641fdfb' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b9d671ecf25647609f848ae08641fdfb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b9d671ecf25647609f848ae08641fdfb', x'3df95517fbaf48ce8cb6b252a559b7ee', x'76262295d041497db82a4371c87f5176') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3df95517fbaf48ce8cb6b252a559b7ee') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3df95517fbaf48ce8cb6b252a559b7ee' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3df95517fbaf48ce8cb6b252a559b7ee', x'9afea2ff7e2b4e4ba198fabdbb584e2e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3df95517fbaf48ce8cb6b252a559b7ee') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3df95517fbaf48ce8cb6b252a559b7ee' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3df95517fbaf48ce8cb6b252a559b7ee', x'8b1a10ce0a79442e8b5f7323ffdda7a0', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149a70488_107080435d48500e6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'bf6a151dee86458b814eaf3d9f5dcdc2', 'jabanilson', NULL, 1, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'accountbf6a151d-ee86-458b-814e-af3d9f5dcdc2' WHERE `accounts`.`id` = x'bf6a151dee86458b814eaf3d9f5dcdc2'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bf6a151dee86458b814eaf3d9f5dcdc2', x'f30734254f0d44d7881f1c5fed0e7399', x'76262295d041497db82a4371c87f5176') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f30734254f0d44d7881f1c5fed0e7399') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f30734254f0d44d7881f1c5fed0e7399' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f30734254f0d44d7881f1c5fed0e7399', x'fddc33210cb54735b671ed9ff2b76900', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f30734254f0d44d7881f1c5fed0e7399') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f30734254f0d44d7881f1c5fed0e7399' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f30734254f0d44d7881f1c5fed0e7399', x'c6f72f88311440bea185776cf39d25fb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'76262295d041497db82a4371c87f5176' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'76262295d041497db82a4371c87f5176' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'76262295d041497db82a4371c87f5176' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'targetdestroy@teste.teste', '$2a$04$1Y4MEYX9DT6UPjQUaICfY.WJgFbATMqVttRLKDSXA1ZB0RmUOEwuK', NULL, x'162e4a2110624e459a4f32a9b5bab523', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'162e4a2110624e459a4f32a9b5bab523' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'9239070ce0a947d3b01c2b1809f26784', 'ad9bdf3982d0c515803e132c2e7a4cfe', x'162e4a2110624e459a4f32a9b5bab523', 'User', '2013-01-02 11:06:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'162e4a2110624e459a4f32a9b5bab523' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'688409137092457f88f4c6615bfdf8cd', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account68840913-7092-457f-88f4-c6615bfdf8cd' WHERE `accounts`.`id` = x'688409137092457f88f4c6615bfdf8cd' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'688409137092457f88f4c6615bfdf8cd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'688409137092457f88f4c6615bfdf8cd', x'22ac862ee86a4bbf9b500c669d77ac18', x'162e4a2110624e459a4f32a9b5bab523') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'22ac862ee86a4bbf9b500c669d77ac18') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'22ac862ee86a4bbf9b500c669d77ac18' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'22ac862ee86a4bbf9b500c669d77ac18', x'7e4319fd716241978cf749577f471878', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'22ac862ee86a4bbf9b500c669d77ac18') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'22ac862ee86a4bbf9b500c669d77ac18' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'22ac862ee86a4bbf9b500c669d77ac18', x'000979d0239b43f5bcf6a457b0494858', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: targetdestroy@teste.teste Message-ID: <50e4149a80a01_107080435d48501f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b9d671ecf25647609f848ae08641fdfb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b9d671ecf25647609f848ae08641fdfb', x'c927fd75f6ba40679d105f4474f90b4b', x'162e4a2110624e459a4f32a9b5bab523') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c927fd75f6ba40679d105f4474f90b4b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c927fd75f6ba40679d105f4474f90b4b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c927fd75f6ba40679d105f4474f90b4b', x'84427aeb0b284654976583923a32ceb1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c927fd75f6ba40679d105f4474f90b4b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c927fd75f6ba40679d105f4474f90b4b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c927fd75f6ba40679d105f4474f90b4b', x'22e892b36a8c4702bedf420f24ac7ccb', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"B9D671ECF25647609F848AE08641FDFB", "user_id"=>"18237198237192837"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'76262295d041497db82a4371c87f5176' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b9d671ecf25647609f848ae08641fdfb' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_b9d671ec-f256-4760-9f84-8ae08641fdfb_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'76262295d041497db82a4371c87f5176' AND `account_users`.`account_id` = x'b9d671ecf25647609f848ae08641fdfb' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3df95517fbaf48ce8cb6b252a559b7ee' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3df95517fbaf48ce8cb6b252a559b7ee' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b9d671ecf25647609f848ae08641fdfb' AND `account_users`.`user_id` = x'38323337313938323337313932383337' LIMIT 1 Completed 404 Not Found in 9ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'teste@teste.com', '$2a$04$aNHQineZIENcGV.6oxVmMO2U20yzUFsViv6gIomvzu4IQCcwTyrXK', NULL, x'45ed24eae801435ca5e764bca8d22d73', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'45ed24eae801435ca5e764bca8d22d73' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'57188a506a9b4457b568fcdf6e20a9ef', 'b3249b1ca89829131c19707cc9e965da', x'45ed24eae801435ca5e764bca8d22d73', 'User', '2013-01-02 11:06:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'45ed24eae801435ca5e764bca8d22d73' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'2ccac1a647584e7fb9bb8bc33170a59e', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account2ccac1a6-4758-4e7f-b9bb-8bc33170a59e' WHERE `accounts`.`id` = x'2ccac1a647584e7fb9bb8bc33170a59e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2ccac1a647584e7fb9bb8bc33170a59e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2ccac1a647584e7fb9bb8bc33170a59e', x'6e741c1124664754bef588fb392f91fd', x'45ed24eae801435ca5e764bca8d22d73') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6e741c1124664754bef588fb392f91fd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e741c1124664754bef588fb392f91fd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e741c1124664754bef588fb392f91fd', x'44655d1c335b4ba9a70117fd1fdf34fe', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6e741c1124664754bef588fb392f91fd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e741c1124664754bef588fb392f91fd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e741c1124664754bef588fb392f91fd', x'a897e14c37c04a52aa0f5e2f79865c63', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149a92d06_107080435d4850280@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'9c4a3684c04c44b493a676507a6508ef', 'jabanilson', NULL, 1, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account9c4a3684-c04c-44b4-93a6-76507a6508ef' WHERE `accounts`.`id` = x'9c4a3684c04c44b493a676507a6508ef'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9c4a3684c04c44b493a676507a6508ef', x'f5caae40211442a8976e76ed1a61e306', x'45ed24eae801435ca5e764bca8d22d73') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f5caae40211442a8976e76ed1a61e306') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5caae40211442a8976e76ed1a61e306' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5caae40211442a8976e76ed1a61e306', x'8b372f0010e94c759930e2cee65cedbc', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f5caae40211442a8976e76ed1a61e306') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f5caae40211442a8976e76ed1a61e306' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f5caae40211442a8976e76ed1a61e306', x'29c1788b69d04ec5802a228863cc1a57', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45ed24eae801435ca5e764bca8d22d73' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45ed24eae801435ca5e764bca8d22d73' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'45ed24eae801435ca5e764bca8d22d73' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'targetdestroy@teste.teste', '$2a$04$ZGdzLxSrRu20jap4n8FQ1Ow0.vhYeBNbx1JLUrfPVX/KEq0HPCUi6', NULL, x'41d666d0ed1148b9b91f20c87b7c4f1d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'41d666d0ed1148b9b91f20c87b7c4f1d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'c82ddfd72b0b45d3940df9867ef54eb1', 'a414415f2ed588887ec144c6bea30feb', x'41d666d0ed1148b9b91f20c87b7c4f1d', 'User', '2013-01-02 11:06:02') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'41d666d0ed1148b9b91f20c87b7c4f1d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'4f517daf24cc46c88238f448c1c666fc', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account4f517daf-24cc-46c8-8238-f448c1c666fc' WHERE `accounts`.`id` = x'4f517daf24cc46c88238f448c1c666fc' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f517daf24cc46c88238f448c1c666fc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4f517daf24cc46c88238f448c1c666fc', x'8cc93f0fe17f433ea60c9555d05e5a26', x'41d666d0ed1148b9b91f20c87b7c4f1d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8cc93f0fe17f433ea60c9555d05e5a26') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cc93f0fe17f433ea60c9555d05e5a26' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cc93f0fe17f433ea60c9555d05e5a26', x'e2f295c0925e4e6d8ed12b3c4dbe6b56', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8cc93f0fe17f433ea60c9555d05e5a26') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cc93f0fe17f433ea60c9555d05e5a26' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cc93f0fe17f433ea60c9555d05e5a26', x'bf221e89afb04b3b8547ef0497b4b7c9', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: targetdestroy@teste.teste Message-ID: <50e4149aa303c_107080435d48503d8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2ccac1a647584e7fb9bb8bc33170a59e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2ccac1a647584e7fb9bb8bc33170a59e', x'e6ddd0e977934278900b6e4b744de63c', x'41d666d0ed1148b9b91f20c87b7c4f1d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e6ddd0e977934278900b6e4b744de63c') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e6ddd0e977934278900b6e4b744de63c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e6ddd0e977934278900b6e4b744de63c', x'a66072ac2c5e4e5db29f36ef3704ceaa', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e6ddd0e977934278900b6e4b744de63c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e6ddd0e977934278900b6e4b744de63c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e6ddd0e977934278900b6e4b744de63c', x'33321e7e47a949939e7794c8024b32c9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e6ddd0e977934278900b6e4b744de63c'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'33321e7e47a949939e7794c8024b32c9' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e6ddd0e977934278900b6e4b744de63c' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = ',ÊÁ¦GXN¹»‹Ã1p¥ž' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a66072ac2c5e4e5db29f36ef3704ceaa'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'e6ddd0e977934278900b6e4b744de63c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e6ddd0e977934278900b6e4b744de63c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e6ddd0e977934278900b6e4b744de63c', x'b097043b0a0a41e486141045870d149c', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"2CCAC1A647584E7FB9BB8BC33170A59E", "user_id"=>"41D666D0ED1148B9B91F20C87B7C4F1D"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'45ed24eae801435ca5e764bca8d22d73' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2ccac1a647584e7fb9bb8bc33170a59e' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2ccac1a6-4758-4e7f-b9bb-8bc33170a59e_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'45ed24eae801435ca5e764bca8d22d73' AND `account_users`.`account_id` = x'2ccac1a647584e7fb9bb8bc33170a59e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6e741c1124664754bef588fb392f91fd' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6e741c1124664754bef588fb392f91fd' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2ccac1a647584e7fb9bb8bc33170a59e' AND `account_users`.`user_id` = x'41d666d0ed1148b9b91f20c87b7c4f1d' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2ccac1a647584e7fb9bb8bc33170a59e' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'41d666d0ed1148b9b91f20c87b7c4f1d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e6ddd0e977934278900b6e4b744de63c' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:02', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: e6ddd0e9-7793-4278-900b-6e4b744de63c\n', NULL, NULL, NULL, 0, 'account_user_e6ddd0e9-7793-4278-900b-6e4b744de63c_destroy', '2013-01-02 11:06:02', '2013-01-02 11:06:02')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_e6ddd0e9-7793-4278-900b-6e4b744de63c_destroy' LIMIT 1 Redirected to http://test.host/settings/account/2CCAC1A647584E7FB9BB8BC33170A59E/users Completed 302 Found in 20ms (ActiveRecord: 4.3ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'teste@teste.com', '$2a$04$yIu0XzOw.waUKakgdegZCuuRzaDtQtlgYqp1XKGTC3rV.pyuuxthi', NULL, x'eaecf22a08d744d4af26d8c811296333', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'eaecf22a08d744d4af26d8c811296333' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'397d7e7338234384a96091bcb81cff97', 'ece97ca20f540310bdc013e26a5126f6', x'eaecf22a08d744d4af26d8c811296333', 'User', '2013-01-02 11:06:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'eaecf22a08d744d4af26d8c811296333' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'61bf666d19a24d0ea7a146f5c4f17aab', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account61bf666d-19a2-4d0e-a7a1-46f5c4f17aab' WHERE `accounts`.`id` = x'61bf666d19a24d0ea7a146f5c4f17aab' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'61bf666d19a24d0ea7a146f5c4f17aab' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'61bf666d19a24d0ea7a146f5c4f17aab', x'39dcb2b18b694881a3842568603f400a', x'eaecf22a08d744d4af26d8c811296333') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'39dcb2b18b694881a3842568603f400a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'39dcb2b18b694881a3842568603f400a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'39dcb2b18b694881a3842568603f400a', x'dd546a13bea64ade996ad0b9f989bc6d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'39dcb2b18b694881a3842568603f400a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'39dcb2b18b694881a3842568603f400a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'39dcb2b18b694881a3842568603f400a', x'3e06634251194b889b12093c07f3f9aa', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149acfc4c_107080435d485045a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'6c743be759954b8f8b5c29b40979ab76', 'jabanilson', NULL, 1, '2013-01-02 11:06:02')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account6c743be7-5995-4b8f-8b5c-29b40979ab76' WHERE `accounts`.`id` = x'6c743be759954b8f8b5c29b40979ab76'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6c743be759954b8f8b5c29b40979ab76', x'6221b7ba9eca4a79aded6bd8142ae613', x'eaecf22a08d744d4af26d8c811296333') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6221b7ba9eca4a79aded6bd8142ae613') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6221b7ba9eca4a79aded6bd8142ae613' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6221b7ba9eca4a79aded6bd8142ae613', x'6db345c1601e405cad3b047a2e844236', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6221b7ba9eca4a79aded6bd8142ae613') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6221b7ba9eca4a79aded6bd8142ae613' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6221b7ba9eca4a79aded6bd8142ae613', x'ecd853b72531451bbdda2450a2e85f2d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eaecf22a08d744d4af26d8c811296333' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eaecf22a08d744d4af26d8c811296333' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eaecf22a08d744d4af26d8c811296333' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'targetdestroy@teste.teste', '$2a$04$fh5.bqbAN8/XfHrR0QMKIOK4e6g6JI.dtl4GAEnqZQc0on6k5/GOC', NULL, x'd190c92bb1e74cc2952d8da31270fde1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd190c92bb1e74cc2952d8da31270fde1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'9658886cf90d42ea958ac6ee5812783d', '9d9011119bebdb87905985d32b8c8837', x'd190c92bb1e74cc2952d8da31270fde1', 'User', '2013-01-02 11:06:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd190c92bb1e74cc2952d8da31270fde1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'eddbe3c84546400daa40f4055f13a9f8', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'accounteddbe3c8-4546-400d-aa40-f4055f13a9f8' WHERE `accounts`.`id` = x'eddbe3c84546400daa40f4055f13a9f8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eddbe3c84546400daa40f4055f13a9f8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eddbe3c84546400daa40f4055f13a9f8', x'eebf8dc5e5c641ecb96fb54d5ed182fa', x'd190c92bb1e74cc2952d8da31270fde1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eebf8dc5e5c641ecb96fb54d5ed182fa') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eebf8dc5e5c641ecb96fb54d5ed182fa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eebf8dc5e5c641ecb96fb54d5ed182fa', x'cf04d1ebf49a43be84dc44a5dae10e96', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eebf8dc5e5c641ecb96fb54d5ed182fa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eebf8dc5e5c641ecb96fb54d5ed182fa' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eebf8dc5e5c641ecb96fb54d5ed182fa', x'5593f44355be40a4a1972b0dcd8bde67', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:02 -0200 From: iugu Reply-To: iugu To: targetdestroy@teste.teste Message-ID: <50e4149adf8c5_107080435d48505aa@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'61bf666d19a24d0ea7a146f5c4f17aab' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'61bf666d19a24d0ea7a146f5c4f17aab', x'd0bb4e41c6ee4ad58c611ea222c28d74', x'd190c92bb1e74cc2952d8da31270fde1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd0bb4e41c6ee4ad58c611ea222c28d74') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0bb4e41c6ee4ad58c611ea222c28d74' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0bb4e41c6ee4ad58c611ea222c28d74', x'c182fd585269478a98c8d78d4748a2ee', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd0bb4e41c6ee4ad58c611ea222c28d74') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0bb4e41c6ee4ad58c611ea222c28d74' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0bb4e41c6ee4ad58c611ea222c28d74', x'ee73a4e0627b473d91b97ffeb21039e1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0bb4e41c6ee4ad58c611ea222c28d74'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0bb4e41c6ee4ad58c611ea222c28d74' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'a¿fm¢M§¡FõÄñz«' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c182fd585269478a98c8d78d4748a2ee' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ee73a4e0627b473d91b97ffeb21039e1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd0bb4e41c6ee4ad58c611ea222c28d74') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd0bb4e41c6ee4ad58c611ea222c28d74' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd0bb4e41c6ee4ad58c611ea222c28d74', x'8ca2620ac6a549198f9402ac77fc2fad', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"61BF666D19A24D0EA7A146F5C4F17AAB", "user_id"=>"D190C92BB1E74CC2952D8DA31270FDE1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'eaecf22a08d744d4af26d8c811296333' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'61bf666d19a24d0ea7a146f5c4f17aab' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_61bf666d-19a2-4d0e-a7a1-46f5c4f17aab_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'eaecf22a08d744d4af26d8c811296333' AND `account_users`.`account_id` = x'61bf666d19a24d0ea7a146f5c4f17aab' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'39dcb2b18b694881a3842568603f400a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'39dcb2b18b694881a3842568603f400a' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'61bf666d19a24d0ea7a146f5c4f17aab' AND `account_users`.`user_id` = x'd190c92bb1e74cc2952d8da31270fde1' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'61bf666d19a24d0ea7a146f5c4f17aab' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd190c92bb1e74cc2952d8da31270fde1' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd0bb4e41c6ee4ad58c611ea222c28d74' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 13ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:02', 'teste@teste.com', '$2a$04$UaPNkF31y82jMkTYSOkFPOGq/Qs7sjUTv2AHJEzJJcCdwO3FLf2BO', NULL, x'1f4053b15568403caabb021133ad23d9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:02') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1f4053b15568403caabb021133ad23d9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:02', 'User', x'fc5e4a45cf4b422ba4c9caef3dd2f51e', '41375e934424632b6c56362dd4e760a3', x'1f4053b15568403caabb021133ad23d9', 'User', '2013-01-02 11:06:02') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1f4053b15568403caabb021133ad23d9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:02', x'9d0a57a16e3c488bb2e21402c88644fb', NULL, NULL, NULL, '2013-01-02 11:06:02')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:02', `updated_at` = '2013-01-02 11:06:02', `subdomain` = 'account9d0a57a1-6e3c-488b-b2e2-1402c88644fb' WHERE `accounts`.`id` = x'9d0a57a16e3c488bb2e21402c88644fb' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9d0a57a16e3c488bb2e21402c88644fb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9d0a57a16e3c488bb2e21402c88644fb', x'fcbe574576c74f4bae4b41c808344eef', x'1f4053b15568403caabb021133ad23d9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fcbe574576c74f4bae4b41c808344eef') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fcbe574576c74f4bae4b41c808344eef' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fcbe574576c74f4bae4b41c808344eef', x'3c681c732f884d9384fa6823cbed722f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fcbe574576c74f4bae4b41c808344eef') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fcbe574576c74f4bae4b41c808344eef' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fcbe574576c74f4bae4b41c808344eef', x'22ef2830486d4432bc33b5985eddaa3c', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149bc92_107080435d4850690@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'ded916ab7feb4e37886039df708b6868', 'jabanilson', NULL, 1, '2013-01-02 11:06:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'accountded916ab-7feb-4e37-8860-39df708b6868' WHERE `accounts`.`id` = x'ded916ab7feb4e37886039df708b6868'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ded916ab7feb4e37886039df708b6868', x'2a42f55e5323479f9bab8f24467b3f1c', x'1f4053b15568403caabb021133ad23d9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2a42f55e5323479f9bab8f24467b3f1c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a42f55e5323479f9bab8f24467b3f1c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a42f55e5323479f9bab8f24467b3f1c', x'06e7711809d64c18a24c9e35f654da42', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2a42f55e5323479f9bab8f24467b3f1c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a42f55e5323479f9bab8f24467b3f1c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a42f55e5323479f9bab8f24467b3f1c', x'6b9d69cdf901482bbb87ac82c17b1ddd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1f4053b15568403caabb021133ad23d9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1f4053b15568403caabb021133ad23d9' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1f4053b15568403caabb021133ad23d9' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'targetdestroy@teste.teste' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'targetdestroy@teste.teste', '$2a$04$N/5.KXtQqaLGXNnhEAKQVuItWSg/LI3p9/uU/rf2P6d4XjfwUJJ8m', NULL, x'edf67ebbc397480f888c8cb6723a0e74', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'edf67ebbc397480f888c8cb6723a0e74' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'c4b50968ea634f09a6cf7d49dbeaea7e', 'e689b4450019c0b40ca0d04032be3505', x'edf67ebbc397480f888c8cb6723a0e74', 'User', '2013-01-02 11:06:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'edf67ebbc397480f888c8cb6723a0e74' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'93793d0faa1045e696169caf055d6b85', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account93793d0f-aa10-45e6-9616-9caf055d6b85' WHERE `accounts`.`id` = x'93793d0faa1045e696169caf055d6b85' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'93793d0faa1045e696169caf055d6b85' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'93793d0faa1045e696169caf055d6b85', x'88e4596341e546eda4f0b2268ff56b4a', x'edf67ebbc397480f888c8cb6723a0e74') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'88e4596341e546eda4f0b2268ff56b4a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'88e4596341e546eda4f0b2268ff56b4a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'88e4596341e546eda4f0b2268ff56b4a', x'c83581b41b5a4eaba83bad9289922bca', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'88e4596341e546eda4f0b2268ff56b4a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'88e4596341e546eda4f0b2268ff56b4a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'88e4596341e546eda4f0b2268ff56b4a', x'4144eefb330b4ed3bb6342a1956e85d8', 'admin') Sent mail to targetdestroy@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: targetdestroy@teste.teste Message-ID: <50e4149b268aa_107080435d485071d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ded916ab7feb4e37886039df708b6868' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ded916ab7feb4e37886039df708b6868', x'd67fec67c6af4d699b50328095fe6187', x'edf67ebbc397480f888c8cb6723a0e74') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd67fec67c6af4d699b50328095fe6187') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd67fec67c6af4d699b50328095fe6187' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd67fec67c6af4d699b50328095fe6187', x'fd75b47477e64b4dae5da88ae68503b2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd67fec67c6af4d699b50328095fe6187') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd67fec67c6af4d699b50328095fe6187' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd67fec67c6af4d699b50328095fe6187', x'9b367746ffbf44f28551ba5208a209a3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ded916ab7feb4e37886039df708b6868' AND `account_users`.`user_id` = x'1f4053b15568403caabb021133ad23d9' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a42f55e5323479f9bab8f24467b3f1c'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a42f55e5323479f9bab8f24467b3f1c' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ÞÙ«ëN7ˆ`9ßp‹hh' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'06e7711809d64c18a24c9e35f654da42' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'6b9d69cdf901482bbb87ac82c17b1ddd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2a42f55e5323479f9bab8f24467b3f1c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2a42f55e5323479f9bab8f24467b3f1c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2a42f55e5323479f9bab8f24467b3f1c', x'bf18284d0fad417daddd9978d1856f40', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"ded916ab-7feb-4e37-8860-39df708b6868", "user_id"=>"1f4053b1-5568-403c-aabb-021133ad23d9"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1f4053b15568403caabb021133ad23d9' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ded916ab7feb4e37886039df708b6868' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ded916ab-7feb-4e37-8860-39df708b6868_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1f4053b15568403caabb021133ad23d9' AND `account_users`.`account_id` = x'ded916ab7feb4e37886039df708b6868' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a42f55e5323479f9bab8f24467b3f1c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2a42f55e5323479f9bab8f24467b3f1c' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ded916ab7feb4e37886039df708b6868' AND `account_users`.`user_id` = x'1f4053b15568403caabb021133ad23d9' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ded916ab7feb4e37886039df708b6868' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1f4053b15568403caabb021133ad23d9' LIMIT 1 Completed 404 Not Found in 11ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'teste@teste.com', '$2a$04$kgaJFw2o6.aHfgF4reLv7OXctzFhEKdxrRvkiRhXKxNtouD3943TW', NULL, x'438ef3b2c7a54e2386a2984a237af435', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'438ef3b2c7a54e2386a2984a237af435' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'253d672e8eb3492bba7313cee14d1032', 'c9af092984137fab0f79483e4a0c51c1', x'438ef3b2c7a54e2386a2984a237af435', 'User', '2013-01-02 11:06:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'438ef3b2c7a54e2386a2984a237af435' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'27f67286b0004aca99a7f217476d6e47', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account27f67286-b000-4aca-99a7-f217476d6e47' WHERE `accounts`.`id` = x'27f67286b0004aca99a7f217476d6e47' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'27f67286b0004aca99a7f217476d6e47' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'27f67286b0004aca99a7f217476d6e47', x'f4f34cb8bc084127a0de20853a559bbf', x'438ef3b2c7a54e2386a2984a237af435') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f4f34cb8bc084127a0de20853a559bbf') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4f34cb8bc084127a0de20853a559bbf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f4f34cb8bc084127a0de20853a559bbf', x'127bdd0d3a9e425d9cf3f333ae9a743c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f4f34cb8bc084127a0de20853a559bbf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4f34cb8bc084127a0de20853a559bbf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f4f34cb8bc084127a0de20853a559bbf', x'301ebf0e2c8d4b80894bef74cf3d9630', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149b3c168_107080435d48508c7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'ef78c5c198d6466481fe568d43918c4e', 'jabanilson', NULL, 1, '2013-01-02 11:06:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'accountef78c5c1-98d6-4664-81fe-568d43918c4e' WHERE `accounts`.`id` = x'ef78c5c198d6466481fe568d43918c4e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ef78c5c198d6466481fe568d43918c4e', x'29c7f4ae68b74aa1a856d2f253650ae6', x'438ef3b2c7a54e2386a2984a237af435') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'29c7f4ae68b74aa1a856d2f253650ae6') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'29c7f4ae68b74aa1a856d2f253650ae6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'29c7f4ae68b74aa1a856d2f253650ae6', x'406ce668f958465b99d180d807194057', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'29c7f4ae68b74aa1a856d2f253650ae6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'29c7f4ae68b74aa1a856d2f253650ae6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'29c7f4ae68b74aa1a856d2f253650ae6', x'baffc3cc8fc04ddd9554c4fc83cf218d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'438ef3b2c7a54e2386a2984a237af435' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'438ef3b2c7a54e2386a2984a237af435' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'438ef3b2c7a54e2386a2984a237af435' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'target@test.test', '$2a$04$5dhyeEk7F8RaZ.q0cPLw0OlGYyzxgQPwhrkrlYWcC/890svgT7ymu', NULL, x'd01972684b824e33bc74be5709f58b5f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd01972684b824e33bc74be5709f58b5f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'fb26e85c22a44718afa10faf70d13a99', '8d8bc282aab38564c61edfa7ea761164', x'd01972684b824e33bc74be5709f58b5f', 'User', '2013-01-02 11:06:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd01972684b824e33bc74be5709f58b5f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'01c48abda2ec4c7cad43090b484c5089', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account01c48abd-a2ec-4c7c-ad43-090b484c5089' WHERE `accounts`.`id` = x'01c48abda2ec4c7cad43090b484c5089' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'01c48abda2ec4c7cad43090b484c5089' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'01c48abda2ec4c7cad43090b484c5089', x'e6d98b114c2044a593728e9209dcd202', x'd01972684b824e33bc74be5709f58b5f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e6d98b114c2044a593728e9209dcd202') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e6d98b114c2044a593728e9209dcd202' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e6d98b114c2044a593728e9209dcd202', x'b7d191e21a244c2faf3d31ea5dd18ef0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e6d98b114c2044a593728e9209dcd202') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e6d98b114c2044a593728e9209dcd202' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e6d98b114c2044a593728e9209dcd202', x'2257e548cfb34f7d8fcdbaf8267593dc', 'admin') Sent mail to target@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: target@test.test Message-ID: <50e4149b4c63c_107080435d48509b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ef78c5c198d6466481fe568d43918c4e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ef78c5c198d6466481fe568d43918c4e', x'187e3cbfd7394f28b12d4fe35450ecd2', x'd01972684b824e33bc74be5709f58b5f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'187e3cbfd7394f28b12d4fe35450ecd2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'187e3cbfd7394f28b12d4fe35450ecd2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'187e3cbfd7394f28b12d4fe35450ecd2', x'31113ced71af4247b2cfcfbd7792cb37', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'187e3cbfd7394f28b12d4fe35450ecd2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'187e3cbfd7394f28b12d4fe35450ecd2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'187e3cbfd7394f28b12d4fe35450ecd2', x'8700efc0ead34654aa853d90d111db6a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'187e3cbfd7394f28b12d4fe35450ecd2'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'187e3cbfd7394f28b12d4fe35450ecd2' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ïxÅÁ˜ÖFdþVC‘ŒN' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'31113ced71af4247b2cfcfbd7792cb37' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8700efc0ead34654aa853d90d111db6a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'187e3cbfd7394f28b12d4fe35450ecd2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'187e3cbfd7394f28b12d4fe35450ecd2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'187e3cbfd7394f28b12d4fe35450ecd2', x'4eed9cb7d0d749b7bbc14e96a4b1d115', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:03', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 187e3cbf-d739-4f28-b12d-4fe35450ecd2\n', NULL, NULL, NULL, 0, 'account_user_187e3cbf-d739-4f28-b12d-4fe35450ecd2_destroy', '2013-01-02 11:06:03', '2013-01-02 11:06:03')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"1892731892371273", "user_id"=>"D01972684B824E33BC74BE5709F58B5F"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'438ef3b2c7a54e2386a2984a237af435' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'31383932373331383932333731323733' LIMIT 1 Completed 404 Not Found in 3ms  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'teste@teste.com', '$2a$04$VxS86MoZOlKjVSXAbF7vJ.RmpYgaRdganPw6J7wnqb5.DAgzkJKjW', NULL, x'b9e57b61d7184a9db1e22fe824ad2c5b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b9e57b61d7184a9db1e22fe824ad2c5b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'6368b49d83114f8fba014db9732364a4', 'bfb77110c4989a005eb3429da9f7b3ad', x'b9e57b61d7184a9db1e22fe824ad2c5b', 'User', '2013-01-02 11:06:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b9e57b61d7184a9db1e22fe824ad2c5b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'fdbb2ba86bae4525901c240c8091c974', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'accountfdbb2ba8-6bae-4525-901c-240c8091c974' WHERE `accounts`.`id` = x'fdbb2ba86bae4525901c240c8091c974' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fdbb2ba86bae4525901c240c8091c974' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fdbb2ba86bae4525901c240c8091c974', x'47f13fe76cb845cf9fbdb5ec045daa7a', x'b9e57b61d7184a9db1e22fe824ad2c5b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'47f13fe76cb845cf9fbdb5ec045daa7a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'47f13fe76cb845cf9fbdb5ec045daa7a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'47f13fe76cb845cf9fbdb5ec045daa7a', x'91112fdf72b847b58d3e7d70630e4c56', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'47f13fe76cb845cf9fbdb5ec045daa7a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'47f13fe76cb845cf9fbdb5ec045daa7a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'47f13fe76cb845cf9fbdb5ec045daa7a', x'ca34d10a9b59463f82ddc36aa51e2add', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149b609c3_107080435d4851062@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'a50ece27695f4f09a9a44bd21dff11de', 'jabanilson', NULL, 1, '2013-01-02 11:06:03')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'accounta50ece27-695f-4f09-a9a4-4bd21dff11de' WHERE `accounts`.`id` = x'a50ece27695f4f09a9a44bd21dff11de'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a50ece27695f4f09a9a44bd21dff11de', x'74cb8da940de4032acef412a194d7223', x'b9e57b61d7184a9db1e22fe824ad2c5b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'74cb8da940de4032acef412a194d7223') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74cb8da940de4032acef412a194d7223' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74cb8da940de4032acef412a194d7223', x'64fd358650784b0bbafdcedd668bf01b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'74cb8da940de4032acef412a194d7223') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'74cb8da940de4032acef412a194d7223' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'74cb8da940de4032acef412a194d7223', x'59a031091eb141a09aa1042832bc5a3b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b9e57b61d7184a9db1e22fe824ad2c5b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b9e57b61d7184a9db1e22fe824ad2c5b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b9e57b61d7184a9db1e22fe824ad2c5b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'target@test.test', '$2a$04$styKDPYWfDCjlhDbKyTKReznlkuDuGhK5.5VTa.Zu8RHjExfyMFDS', NULL, x'dd1703f5f55344fdb43de73eed0bdecc', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dd1703f5f55344fdb43de73eed0bdecc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'a344a72e8b9a4cd3b6e22ae4fc1b62d9', '8ffe75ddf0d50ad544e7b880c740423b', x'dd1703f5f55344fdb43de73eed0bdecc', 'User', '2013-01-02 11:06:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dd1703f5f55344fdb43de73eed0bdecc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'6326fdf1fcf94818890b05161b932d38', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account6326fdf1-fcf9-4818-890b-05161b932d38' WHERE `accounts`.`id` = x'6326fdf1fcf94818890b05161b932d38' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6326fdf1fcf94818890b05161b932d38' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6326fdf1fcf94818890b05161b932d38', x'5e1d6e4584534b22afecaaf570039593', x'dd1703f5f55344fdb43de73eed0bdecc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5e1d6e4584534b22afecaaf570039593') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5e1d6e4584534b22afecaaf570039593' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5e1d6e4584534b22afecaaf570039593', x'7f4f757d479343afba0f5bd5fa42ea35', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5e1d6e4584534b22afecaaf570039593') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5e1d6e4584534b22afecaaf570039593' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5e1d6e4584534b22afecaaf570039593', x'5edd0576ac1e4edbac05306f6bba06d5', 'admin') Sent mail to target@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: target@test.test Message-ID: <50e4149b8647a_107080435d485111a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fdbb2ba86bae4525901c240c8091c974' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fdbb2ba86bae4525901c240c8091c974', x'5c107cf51a62421bae17808634fcdd32', x'dd1703f5f55344fdb43de73eed0bdecc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5c107cf51a62421bae17808634fcdd32') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c107cf51a62421bae17808634fcdd32' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c107cf51a62421bae17808634fcdd32', x'fbc6fcc6629c4feaa31e7e0a35f6d658', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5c107cf51a62421bae17808634fcdd32') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c107cf51a62421bae17808634fcdd32' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c107cf51a62421bae17808634fcdd32', x'78c09e842ea24665b3daa3e41da8e39b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5c107cf51a62421bae17808634fcdd32'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'78c09e842ea24665b3daa3e41da8e39b' AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c107cf51a62421bae17808634fcdd32' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ý»+¨k®E%$ €‘Ét' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fbc6fcc6629c4feaa31e7e0a35f6d658'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'5c107cf51a62421bae17808634fcdd32') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5c107cf51a62421bae17808634fcdd32' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5c107cf51a62421bae17808634fcdd32', x'd78c8bbdab9b488597725a3f8f0db1b3', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:03', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 5c107cf5-1a62-421b-ae17-808634fcdd32\n', NULL, NULL, NULL, 0, 'account_user_5c107cf5-1a62-421b-ae17-808634fcdd32_destroy', '2013-01-02 11:06:03', '2013-01-02 11:06:03')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"FDBB2BA86BAE4525901C240C8091C974", "user_id"=>"18237198237192837"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b9e57b61d7184a9db1e22fe824ad2c5b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fdbb2ba86bae4525901c240c8091c974' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_fdbb2ba8-6bae-4525-901c-240c8091c974_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b9e57b61d7184a9db1e22fe824ad2c5b' AND `account_users`.`account_id` = x'fdbb2ba86bae4525901c240c8091c974' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'47f13fe76cb845cf9fbdb5ec045daa7a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'47f13fe76cb845cf9fbdb5ec045daa7a' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fdbb2ba86bae4525901c240c8091c974' AND `account_users`.`user_id` = x'38323337313938323337313932383337' LIMIT 1 Completed 404 Not Found in 9ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'teste@teste.com', '$2a$04$fDiem/8TfVsfSCY4PSgag.Tpf6wIcMp1WMW/pW4R9FZTUJD7OUScO', NULL, x'ca17c7ac9fd74b7892cdc3732718e26b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ca17c7ac9fd74b7892cdc3732718e26b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'a59071bcddc049a2a03b2ecd07ea486f', '57120cd59697e4f15864726e88e71474', x'ca17c7ac9fd74b7892cdc3732718e26b', 'User', '2013-01-02 11:06:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ca17c7ac9fd74b7892cdc3732718e26b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'3810f76005764d6eb021e7993f72e13c', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account3810f760-0576-4d6e-b021-e7993f72e13c' WHERE `accounts`.`id` = x'3810f76005764d6eb021e7993f72e13c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3810f76005764d6eb021e7993f72e13c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3810f76005764d6eb021e7993f72e13c', x'62ca8298db834cb9b5437d4026baa1e0', x'ca17c7ac9fd74b7892cdc3732718e26b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'62ca8298db834cb9b5437d4026baa1e0') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'62ca8298db834cb9b5437d4026baa1e0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'62ca8298db834cb9b5437d4026baa1e0', x'ffc6f56f318d4a1fb4aabbffc40b818a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'62ca8298db834cb9b5437d4026baa1e0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'62ca8298db834cb9b5437d4026baa1e0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'62ca8298db834cb9b5437d4026baa1e0', x'e0d2d49cbe914a08aec6ec93af7d0b4d', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149b9c846_107080435d485125b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'48283b07c85b4add87eb3fb8c600ba06', 'jabanilson', NULL, 1, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account48283b07-c85b-4add-87eb-3fb8c600ba06' WHERE `accounts`.`id` = x'48283b07c85b4add87eb3fb8c600ba06'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'48283b07c85b4add87eb3fb8c600ba06', x'9d8325c5d5784ec080dec92373604924', x'ca17c7ac9fd74b7892cdc3732718e26b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9d8325c5d5784ec080dec92373604924') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d8325c5d5784ec080dec92373604924' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d8325c5d5784ec080dec92373604924', x'39ed25f87d2540a4940cc579788e4c4f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9d8325c5d5784ec080dec92373604924') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d8325c5d5784ec080dec92373604924' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d8325c5d5784ec080dec92373604924', x'53e7f23663554603b29b3ff108214881', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ca17c7ac9fd74b7892cdc3732718e26b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ca17c7ac9fd74b7892cdc3732718e26b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ca17c7ac9fd74b7892cdc3732718e26b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'target@test.test', '$2a$04$KL7qZ.akU4ollElPXHI/GeJ58PY9dwSPj6lsKtpu07TZF4SxZTZH6', NULL, x'0d562938eac74c4391610451a2ef3a78', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0d562938eac74c4391610451a2ef3a78' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'78d2de4c39f64099a8e608d071d619bb', '2f04ea80c72f3870b62697a31905c9dc', x'0d562938eac74c4391610451a2ef3a78', 'User', '2013-01-02 11:06:03') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0d562938eac74c4391610451a2ef3a78' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'201a6d50b37f4d0aa860e58b62128c79', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account201a6d50-b37f-4d0a-a860-e58b62128c79' WHERE `accounts`.`id` = x'201a6d50b37f4d0aa860e58b62128c79' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'201a6d50b37f4d0aa860e58b62128c79' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'201a6d50b37f4d0aa860e58b62128c79', x'e7faa65b7a85407681c8873a099817c1', x'0d562938eac74c4391610451a2ef3a78') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e7faa65b7a85407681c8873a099817c1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e7faa65b7a85407681c8873a099817c1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e7faa65b7a85407681c8873a099817c1', x'de68570c37b04307b82a38461ebdff09', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e7faa65b7a85407681c8873a099817c1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e7faa65b7a85407681c8873a099817c1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e7faa65b7a85407681c8873a099817c1', x'8af102e01bcd4f0bac5ed88ba6564698', 'admin') Sent mail to target@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: target@test.test Message-ID: <50e4149bacc0a_107080435d48513ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3810f76005764d6eb021e7993f72e13c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3810f76005764d6eb021e7993f72e13c', x'0138b7eaef4e4d74bb88a68344346302', x'0d562938eac74c4391610451a2ef3a78') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0138b7eaef4e4d74bb88a68344346302') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0138b7eaef4e4d74bb88a68344346302' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0138b7eaef4e4d74bb88a68344346302', x'82240f08d2524bfc8ecf46fba4582ade', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0138b7eaef4e4d74bb88a68344346302') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0138b7eaef4e4d74bb88a68344346302' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0138b7eaef4e4d74bb88a68344346302', x'242265d1b73446c689b3fc3c356bf9fa', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0138b7eaef4e4d74bb88a68344346302'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'242265d1b73446c689b3fc3c356bf9fa' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0138b7eaef4e4d74bb88a68344346302' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '8÷`vMn°!ç™?rá<' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'82240f08d2524bfc8ecf46fba4582ade'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'0138b7eaef4e4d74bb88a68344346302') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0138b7eaef4e4d74bb88a68344346302' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0138b7eaef4e4d74bb88a68344346302', x'357e86053a7144d5a0cc89536cdb2627', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:03', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 0138b7ea-ef4e-4d74-bb88-a68344346302\n', NULL, NULL, NULL, 0, 'account_user_0138b7ea-ef4e-4d74-bb88-a68344346302_destroy', '2013-01-02 11:06:03', '2013-01-02 11:06:03')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ca17c7ac9fd74b7892cdc3732718e26b' AND `account_users`.`account_id` = x'3810f76005764d6eb021e7993f72e13c' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'62ca8298db834cb9b5437d4026baa1e0'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e0d2d49cbe914a08aec6ec93af7d0b4d' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'62ca8298db834cb9b5437d4026baa1e0' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '8÷`vMn°!ç™?rá<' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'62ca8298db834cb9b5437d4026baa1e0') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'62ca8298db834cb9b5437d4026baa1e0' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"3810F76005764D6EB021E7993F72E13C", "user_id"=>"0D562938EAC74C4391610451A2EF3A78"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ca17c7ac9fd74b7892cdc3732718e26b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3810f76005764d6eb021e7993f72e13c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3810f760-0576-4d6e-b021-e7993f72e13c_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ca17c7ac9fd74b7892cdc3732718e26b' AND `account_users`.`account_id` = x'3810f76005764d6eb021e7993f72e13c' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'62ca8298db834cb9b5437d4026baa1e0' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'62ca8298db834cb9b5437d4026baa1e0' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3810f76005764d6eb021e7993f72e13c' AND `account_users`.`user_id` = x'0d562938eac74c4391610451a2ef3a78' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3810f76005764d6eb021e7993f72e13c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_0138b7ea-ef4e-4d74-bb88-a68344346302_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_0138b7ea-ef4e-4d74-bb88-a68344346302_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/3810F76005764D6EB021E7993F72E13C/users Completed 302 Found in 13ms (ActiveRecord: 3.4ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_0138b7ea-ef4e-4d74-bb88-a68344346302_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'teste@teste.com', '$2a$04$HUWg.aqOiZn87scVkXyC2OMQOYI71is9utXJKpSZF4LIsEWGuNebK', NULL, x'ce3d4d782de1487ca31d1ee14ab84f25', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ce3d4d782de1487ca31d1ee14ab84f25' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'4f79fcae6e4046fc85bfef0aab624390', '20561c268a3f552ce78969cc43ebd5d8', x'ce3d4d782de1487ca31d1ee14ab84f25', 'User', '2013-01-02 11:06:03') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ce3d4d782de1487ca31d1ee14ab84f25' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'a10e7f65de5d45e68333806041a1a61f', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'accounta10e7f65-de5d-45e6-8333-806041a1a61f' WHERE `accounts`.`id` = x'a10e7f65de5d45e68333806041a1a61f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a10e7f65de5d45e68333806041a1a61f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a10e7f65de5d45e68333806041a1a61f', x'781eba3de0614b1eb67efcc2a2019f41', x'ce3d4d782de1487ca31d1ee14ab84f25') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'781eba3de0614b1eb67efcc2a2019f41') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'781eba3de0614b1eb67efcc2a2019f41' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'781eba3de0614b1eb67efcc2a2019f41', x'1e1b3b2f5aa24c90bf93f42db91ba03a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'781eba3de0614b1eb67efcc2a2019f41') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'781eba3de0614b1eb67efcc2a2019f41' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'781eba3de0614b1eb67efcc2a2019f41', x'd9ebd89d63034980920161dd7007c256', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149bc5a69_107080435d48514a7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'7171b8693b504ccb827f46572b827326', 'jabanilson', NULL, 1, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account7171b869-3b50-4ccb-827f-46572b827326' WHERE `accounts`.`id` = x'7171b8693b504ccb827f46572b827326'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7171b8693b504ccb827f46572b827326', x'6d21eef627364e37af269769b773455e', x'ce3d4d782de1487ca31d1ee14ab84f25') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6d21eef627364e37af269769b773455e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d21eef627364e37af269769b773455e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d21eef627364e37af269769b773455e', x'6b14725c8b124a1b847b5611ce749c94', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6d21eef627364e37af269769b773455e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d21eef627364e37af269769b773455e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d21eef627364e37af269769b773455e', x'2a15d84bc3cd4525899309aa07c08087', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ce3d4d782de1487ca31d1ee14ab84f25' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ce3d4d782de1487ca31d1ee14ab84f25' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ce3d4d782de1487ca31d1ee14ab84f25' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:03', 'target@test.test', '$2a$04$q2jp6Tu0dxkzgC4khhdrH..zGAv.W9P.2ZvBhiKxUeAU2t9oDGUtW', NULL, x'ccbc3cbf496a44c7ab6e4196910bd381', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:03') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ccbc3cbf496a44c7ab6e4196910bd381' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:03', 'User', x'4256fec9c32c4809ba3727472342fa55', 'd2f1130499fc73f6e6a5a649546d0b54', x'ccbc3cbf496a44c7ab6e4196910bd381', 'User', '2013-01-02 11:06:03') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ccbc3cbf496a44c7ab6e4196910bd381' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:03', x'6898aab221d2456eac3dc2d3d43446cf', NULL, NULL, NULL, '2013-01-02 11:06:03')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:03', `updated_at` = '2013-01-02 11:06:03', `subdomain` = 'account6898aab2-21d2-456e-ac3d-c2d3d43446cf' WHERE `accounts`.`id` = x'6898aab221d2456eac3dc2d3d43446cf' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6898aab221d2456eac3dc2d3d43446cf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6898aab221d2456eac3dc2d3d43446cf', x'18fb3b116348440488b2a56e87e523ad', x'ccbc3cbf496a44c7ab6e4196910bd381') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'18fb3b116348440488b2a56e87e523ad') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'18fb3b116348440488b2a56e87e523ad' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'18fb3b116348440488b2a56e87e523ad', x'c66b61988a504e148df41377a1b684dd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'18fb3b116348440488b2a56e87e523ad') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'18fb3b116348440488b2a56e87e523ad' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'18fb3b116348440488b2a56e87e523ad', x'c5cf8857f1f9416bb0f032413148154e', 'admin') Sent mail to target@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:03 -0200 From: iugu Reply-To: iugu To: target@test.test Message-ID: <50e4149bec0fc_107080435d4851560@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7171b8693b504ccb827f46572b827326' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7171b8693b504ccb827f46572b827326', x'8cc0c210ade7484887b4888c9b8940ea', x'ccbc3cbf496a44c7ab6e4196910bd381') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8cc0c210ade7484887b4888c9b8940ea') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cc0c210ade7484887b4888c9b8940ea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cc0c210ade7484887b4888c9b8940ea', x'feeea391fa4e4eecaf9a7787c8770001', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8cc0c210ade7484887b4888c9b8940ea') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cc0c210ade7484887b4888c9b8940ea' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cc0c210ade7484887b4888c9b8940ea', x'5ff6ce70e795492999c7a438575572cc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8cc0c210ade7484887b4888c9b8940ea'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'5ff6ce70e795492999c7a438575572cc' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cc0c210ade7484887b4888c9b8940ea' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'qq¸i;PLË‚FW+‚s&' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'feeea391fa4e4eecaf9a7787c8770001'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'8cc0c210ade7484887b4888c9b8940ea') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cc0c210ade7484887b4888c9b8940ea' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cc0c210ade7484887b4888c9b8940ea', x'acc92ab500484b7d9eea2e6541a52cba', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:03', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 8cc0c210-ade7-4848-87b4-888c9b8940ea\n', NULL, NULL, NULL, 0, 'account_user_8cc0c210-ade7-4848-87b4-888c9b8940ea_destroy', '2013-01-02 11:06:03', '2013-01-02 11:06:03')  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ce3d4d782de1487ca31d1ee14ab84f25' AND `account_users`.`account_id` = x'7171b8693b504ccb827f46572b827326' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6d21eef627364e37af269769b773455e'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2a15d84bc3cd4525899309aa07c08087' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d21eef627364e37af269769b773455e' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'qq¸i;PLË‚FW+‚s&' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6d21eef627364e37af269769b773455e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d21eef627364e37af269769b773455e' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"7171B8693B504CCB827F46572B827326", "user_id"=>"CCBC3CBF496A44C7AB6E4196910BD381"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ce3d4d782de1487ca31d1ee14ab84f25' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7171b8693b504ccb827f46572b827326' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7171b869-3b50-4ccb-827f-46572b827326_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ce3d4d782de1487ca31d1ee14ab84f25' AND `account_users`.`account_id` = x'7171b8693b504ccb827f46572b827326' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6d21eef627364e37af269769b773455e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6d21eef627364e37af269769b773455e' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7171b8693b504ccb827f46572b827326' AND `account_users`.`user_id` = x'ccbc3cbf496a44c7ab6e4196910bd381' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7171b8693b504ccb827f46572b827326' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_8cc0c210-ade7-4848-87b4-888c9b8940ea_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_8cc0c210-ade7-4848-87b4-888c9b8940ea_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/7171B8693B504CCB827F46572B827326/users Completed 302 Found in 14ms (ActiveRecord: 3.4ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:04', 'teste@teste.com', '$2a$04$wvLXNhxg/.shB97HmIF5ROH95PrPfoO6hddZ7N9UYS4MDsabXD.fK', NULL, x'6f7c5ea7148a4bf0bd1ecb0683170c36', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6f7c5ea7148a4bf0bd1ecb0683170c36' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:04', 'User', x'4f2cdcc9dd7048d2aa655a23d9e42b70', '005fce07ea2dc60d6e798763427487a4', x'6f7c5ea7148a4bf0bd1ecb0683170c36', 'User', '2013-01-02 11:06:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6f7c5ea7148a4bf0bd1ecb0683170c36' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'346233bd8a8e4c98aba87bb5ac599c35', NULL, NULL, NULL, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account346233bd-8a8e-4c98-aba8-7bb5ac599c35' WHERE `accounts`.`id` = x'346233bd8a8e4c98aba87bb5ac599c35' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'346233bd8a8e4c98aba87bb5ac599c35' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'346233bd8a8e4c98aba87bb5ac599c35', x'f7a1f369667f4c47888c15e7f7e8f990', x'6f7c5ea7148a4bf0bd1ecb0683170c36') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f7a1f369667f4c47888c15e7f7e8f990') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7a1f369667f4c47888c15e7f7e8f990' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7a1f369667f4c47888c15e7f7e8f990', x'0ae2c44bc42a40a49ded0d1b2e24ca14', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f7a1f369667f4c47888c15e7f7e8f990') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7a1f369667f4c47888c15e7f7e8f990' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7a1f369667f4c47888c15e7f7e8f990', x'c7b554f5c0f74f9c81b0e813572e94a1', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149c11a8f_107080435d48516eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'13f17d3b1d5b421e8801aebc989372e9', 'jabanilson', NULL, 1, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account13f17d3b-1d5b-421e-8801-aebc989372e9' WHERE `accounts`.`id` = x'13f17d3b1d5b421e8801aebc989372e9'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'13f17d3b1d5b421e8801aebc989372e9', x'368fd926ec774149bc6952cd0baefa1e', x'6f7c5ea7148a4bf0bd1ecb0683170c36') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'368fd926ec774149bc6952cd0baefa1e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'368fd926ec774149bc6952cd0baefa1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'368fd926ec774149bc6952cd0baefa1e', x'28ca352dce72471990be2fff308afc6f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'368fd926ec774149bc6952cd0baefa1e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'368fd926ec774149bc6952cd0baefa1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'368fd926ec774149bc6952cd0baefa1e', x'fc1a820de01b4bab920b8b521dd731e0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6f7c5ea7148a4bf0bd1ecb0683170c36' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6f7c5ea7148a4bf0bd1ecb0683170c36' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6f7c5ea7148a4bf0bd1ecb0683170c36' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'target@test.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:04', 'target@test.test', '$2a$04$aRGXJfAHzhFBwuxN0z88Ie5cGxIT8RGnoI3W.nfn/5o5GSUnbE4QS', NULL, x'3da6b89c05c94fff99a284b63c12b6c0', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3da6b89c05c94fff99a284b63c12b6c0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:04', 'User', x'feb8e4eed51840a4b3fc506a84e56a87', 'cfae4c22dc0ce19ce2e05ec7668aa794', x'3da6b89c05c94fff99a284b63c12b6c0', 'User', '2013-01-02 11:06:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3da6b89c05c94fff99a284b63c12b6c0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'5e8cc5e141974d3392f2eb9d14579afe', NULL, NULL, NULL, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account5e8cc5e1-4197-4d33-92f2-eb9d14579afe' WHERE `accounts`.`id` = x'5e8cc5e141974d3392f2eb9d14579afe' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5e8cc5e141974d3392f2eb9d14579afe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e8cc5e141974d3392f2eb9d14579afe', x'6e2b4d97d1b440df807f7126d95b29ab', x'3da6b89c05c94fff99a284b63c12b6c0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6e2b4d97d1b440df807f7126d95b29ab') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e2b4d97d1b440df807f7126d95b29ab' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e2b4d97d1b440df807f7126d95b29ab', x'b0a7192e30ed4a2988d71356652cfe1f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6e2b4d97d1b440df807f7126d95b29ab') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e2b4d97d1b440df807f7126d95b29ab' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e2b4d97d1b440df807f7126d95b29ab', x'0b6e84fbe6ae41f19616bbd92a83a3bf', 'admin') Sent mail to target@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: target@test.test Message-ID: <50e4149c21b80_107080435d48517b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'13f17d3b1d5b421e8801aebc989372e9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'13f17d3b1d5b421e8801aebc989372e9', x'bc921ed8a884479f9e69ba6e08ea6c19', x'3da6b89c05c94fff99a284b63c12b6c0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bc921ed8a884479f9e69ba6e08ea6c19') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc921ed8a884479f9e69ba6e08ea6c19' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc921ed8a884479f9e69ba6e08ea6c19', x'1e1d81622f1942e5b6de5105407da54e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bc921ed8a884479f9e69ba6e08ea6c19') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc921ed8a884479f9e69ba6e08ea6c19' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc921ed8a884479f9e69ba6e08ea6c19', x'a26b218b200f497298473e300a22b649', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'bc921ed8a884479f9e69ba6e08ea6c19'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc921ed8a884479f9e69ba6e08ea6c19' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ñ};[Bˆ®¼˜“ré' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1e1d81622f1942e5b6de5105407da54e' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a26b218b200f497298473e300a22b649'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'bc921ed8a884479f9e69ba6e08ea6c19') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bc921ed8a884479f9e69ba6e08ea6c19' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bc921ed8a884479f9e69ba6e08ea6c19', x'e0109e1ad7514b22bc0c9b00c29072d9', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:04', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: bc921ed8-a884-479f-9e69-ba6e08ea6c19\n', NULL, NULL, NULL, 0, 'account_user_bc921ed8-a884-479f-9e69-ba6e08ea6c19_destroy', '2013-01-02 11:06:04', '2013-01-02 11:06:04')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:04', 'notowner@account.test', '$2a$04$rI51AkuUMe9tHUVGOxFycex0SSCDue3v87184e62/8PJzASOMbn72', NULL, x'c460e124e02146058b8fcab7e66853e9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c460e124e02146058b8fcab7e66853e9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:04', 'User', x'181aa08622d949b78d5893247fe82be5', '60a2376c7ba7b7996b40f2893e9cfe8e', x'c460e124e02146058b8fcab7e66853e9', 'User', '2013-01-02 11:06:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c460e124e02146058b8fcab7e66853e9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'2e0d4cc1c2b24154a27501c84d8d1cd8', NULL, NULL, NULL, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account2e0d4cc1-c2b2-4154-a275-01c84d8d1cd8' WHERE `accounts`.`id` = x'2e0d4cc1c2b24154a27501c84d8d1cd8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2e0d4cc1c2b24154a27501c84d8d1cd8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2e0d4cc1c2b24154a27501c84d8d1cd8', x'42889e3f01c744b69ed9c716f199acaf', x'c460e124e02146058b8fcab7e66853e9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'42889e3f01c744b69ed9c716f199acaf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'42889e3f01c744b69ed9c716f199acaf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'42889e3f01c744b69ed9c716f199acaf', x'258e4bb9fefc4586a9d6aa8b16a1a144', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'42889e3f01c744b69ed9c716f199acaf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'42889e3f01c744b69ed9c716f199acaf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'42889e3f01c744b69ed9c716f199acaf', x'695fff052da14c5995bb52941fdb785a', 'admin') Sent mail to notowner@account.test (7ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e4149c33b2b_107080435d48518b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'9dce8778d3d942d482b2bdff58092a51', 'jabanilson', NULL, 1, '2013-01-02 11:06:04')  (6.7ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account9dce8778-d3d9-42d4-82b2-bdff58092a51' WHERE `accounts`.`id` = x'9dce8778d3d942d482b2bdff58092a51'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9dce8778d3d942d482b2bdff58092a51', x'316436da070447fb9138224bda11b37c', x'c460e124e02146058b8fcab7e66853e9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'316436da070447fb9138224bda11b37c') LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'316436da070447fb9138224bda11b37c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'316436da070447fb9138224bda11b37c', x'1bdd3edbb91144e490111b10c9b9f95d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'316436da070447fb9138224bda11b37c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'316436da070447fb9138224bda11b37c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'316436da070447fb9138224bda11b37c', x'5cf095fd48f64b43a66074e477e7e876', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'13f17d3b1d5b421e8801aebc989372e9' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'13f17d3b1d5b421e8801aebc989372e9' WHERE `account_users`.`id` = x'316436da070447fb9138224bda11b37c'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6f7c5ea7148a4bf0bd1ecb0683170c36' AND `account_users`.`account_id` = x'13f17d3b1d5b421e8801aebc989372e9' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'368fd926ec774149bc6952cd0baefa1e'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'368fd926ec774149bc6952cd0baefa1e' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ñ};[Bˆ®¼˜“ré' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'28ca352dce72471990be2fff308afc6f' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fc1a820de01b4bab920b8b521dd731e0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'368fd926ec774149bc6952cd0baefa1e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'368fd926ec774149bc6952cd0baefa1e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'368fd926ec774149bc6952cd0baefa1e', x'fecc09ce386b47f8b6e882037aa5e8a6', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::AccountUsersController#cancel_destruction as HTML Parameters: {"account_id"=>"13F17D3B1D5B421E8801AEBC989372E9", "user_id"=>"3DA6B89C05C94FFF99A284B63C12B6C0"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6f7c5ea7148a4bf0bd1ecb0683170c36' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'13f17d3b1d5b421e8801aebc989372e9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_13f17d3b-1d5b-421e-8801-aebc989372e9_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6f7c5ea7148a4bf0bd1ecb0683170c36' AND `account_users`.`account_id` = x'13f17d3b1d5b421e8801aebc989372e9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'368fd926ec774149bc6952cd0baefa1e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'368fd926ec774149bc6952cd0baefa1e' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 8ms  (6.7ms) ROLLBACK  (0.2ms) BEGIN Processing by StubApplicationDomainController#index as HTML Completed 200 OK in 22ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:04', 'teste@teste.com', '$2a$04$soQ5.7UKTw/5KwTCVP/DoOzOO4u0a4FxVLnJOplGeq2ayQOo1bUZ.', NULL, x'156153f39c184791bd910c9eac5a7224', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:04') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'156153f39c184791bd910c9eac5a7224' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:04', 'User', x'c548babd071a441cb238e172c61f3cd7', 'f48c8d871309301f3454322d4838afcd', x'156153f39c184791bd910c9eac5a7224', 'User', '2013-01-02 11:06:04') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'156153f39c184791bd910c9eac5a7224' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'8b580f13283e4f04867c04d4a5bda093', NULL, NULL, NULL, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account8b580f13-283e-4f04-867c-04d4a5bda093' WHERE `accounts`.`id` = x'8b580f13283e4f04867c04d4a5bda093' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8b580f13283e4f04867c04d4a5bda093' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8b580f13283e4f04867c04d4a5bda093', x'ed1e4a13984d4c9d8d3ebe3aac04c987', x'156153f39c184791bd910c9eac5a7224') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ed1e4a13984d4c9d8d3ebe3aac04c987') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed1e4a13984d4c9d8d3ebe3aac04c987' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed1e4a13984d4c9d8d3ebe3aac04c987', x'a1dd6e9da0614536a04ad9b88b0e6bc4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ed1e4a13984d4c9d8d3ebe3aac04c987') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed1e4a13984d4c9d8d3ebe3aac04c987' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed1e4a13984d4c9d8d3ebe3aac04c987', x'7c93d9697e02486285422207e86570b2', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149c6b317_107080435d485194f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'ca001cf9a23f46babdb1ab9547074a0e', 'jabanilson', NULL, 1, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'accountca001cf9-a23f-46ba-bdb1-ab9547074a0e' WHERE `accounts`.`id` = x'ca001cf9a23f46babdb1ab9547074a0e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ca001cf9a23f46babdb1ab9547074a0e', x'1180056f864d4cde9cae3c870a087800', x'156153f39c184791bd910c9eac5a7224') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1180056f864d4cde9cae3c870a087800') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1180056f864d4cde9cae3c870a087800' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1180056f864d4cde9cae3c870a087800', x'554ce67493e743658c12ed5e13be5225', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1180056f864d4cde9cae3c870a087800') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1180056f864d4cde9cae3c870a087800' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1180056f864d4cde9cae3c870a087800', x'e13bb742a2ff445bb458e7d9dc963221', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'156153f39c184791bd910c9eac5a7224' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'156153f39c184791bd910c9eac5a7224' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'886119c0fa0148838287c8694355a96e', 'jabanilson', NULL, 1, '2013-01-02 11:06:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account886119c0-fa01-4883-8287-c8694355a96e' WHERE `accounts`.`id` = x'886119c0fa0148838287c8694355a96e'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"886119c0-fa01-4883-8287-c8694355a96e"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'156153f39c184791bd910c9eac5a7224' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'156153f39c184791bd910c9eac5a7224' AND `account_users`.`account_id` = x'886119c0fa0148838287c8694355a96e' LIMIT 1 Completed 404 Not Found in 4ms  (1.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:04', 'teste@teste.com', '$2a$04$siaEgu8kaeSHHk6maRqW2efLvnQVVUnghjvu82H9uMiJIjd1KTnq6', NULL, x'de4a9a05d0484ac29528639df8413686', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'de4a9a05d0484ac29528639df8413686' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:04', 'User', x'22568017d88a49f7a22272763be20889', '3bc53fe1f857537d570b63aa70071b2d', x'de4a9a05d0484ac29528639df8413686', 'User', '2013-01-02 11:06:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'de4a9a05d0484ac29528639df8413686' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'0e568fda7b0746ee82a1dacd9f340574', NULL, NULL, NULL, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account0e568fda-7b07-46ee-82a1-dacd9f340574' WHERE `accounts`.`id` = x'0e568fda7b0746ee82a1dacd9f340574' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0e568fda7b0746ee82a1dacd9f340574' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0e568fda7b0746ee82a1dacd9f340574', x'370ac1dd617745139f79cd05fde25b65', x'de4a9a05d0484ac29528639df8413686') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'370ac1dd617745139f79cd05fde25b65') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'370ac1dd617745139f79cd05fde25b65' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'370ac1dd617745139f79cd05fde25b65', x'f67332b322e446bd96f54ae460d12c76', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'370ac1dd617745139f79cd05fde25b65') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'370ac1dd617745139f79cd05fde25b65' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'370ac1dd617745139f79cd05fde25b65', x'84f63f41a9474893a5e63fe4cff23252', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149c7ede8_107080435d485209a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'5cb9f8bd0e4a40b887a2f97a0ee2c94b', 'jabanilson', NULL, 1, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account5cb9f8bd-0e4a-40b8-87a2-f97a0ee2c94b' WHERE `accounts`.`id` = x'5cb9f8bd0e4a40b887a2f97a0ee2c94b'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5cb9f8bd0e4a40b887a2f97a0ee2c94b', x'da821e28a9aa44eca81efe28b8427e63', x'de4a9a05d0484ac29528639df8413686') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da821e28a9aa44eca81efe28b8427e63') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da821e28a9aa44eca81efe28b8427e63' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da821e28a9aa44eca81efe28b8427e63', x'691d30c0a1094b2ea803e7b06d557967', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'da821e28a9aa44eca81efe28b8427e63') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da821e28a9aa44eca81efe28b8427e63' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da821e28a9aa44eca81efe28b8427e63', x'4e2f9949d4774ec9a31690c96ada31bc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'de4a9a05d0484ac29528639df8413686' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'de4a9a05d0484ac29528639df8413686' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'de4a9a05d0484ac29528639df8413686' LIMIT 1 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"0E568FDA7B0746EE82A1DACD9F340574"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'de4a9a05d0484ac29528639df8413686' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'de4a9a05d0484ac29528639df8413686' AND `account_users`.`account_id` = x'0e568fda7b0746ee82a1dacd9f340574' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'370ac1dd617745139f79cd05fde25b65' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'370ac1dd617745139f79cd05fde25b65' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0e568fda7b0746ee82a1dacd9f340574' LIMIT 1 Completed 200 OK in 22ms (Views: 4.3ms | ActiveRecord: 5.0ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:04', 'teste@teste.com', '$2a$04$Oj/O28fS2LWi3LJ8OKg34e649bJbE0M.03NdDF0kPP/OUGdUQ882W', NULL, x'2e01a4cb0d594fe09badf53b0df9c16b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2e01a4cb0d594fe09badf53b0df9c16b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:04', 'User', x'13a2797b62694c6684aa32b518048446', '055da1649c67e2b8f81c07dd11f74d04', x'2e01a4cb0d594fe09badf53b0df9c16b', 'User', '2013-01-02 11:06:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2e01a4cb0d594fe09badf53b0df9c16b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'a69ac5d9f23742c9b6927a1080f403d5', NULL, NULL, NULL, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'accounta69ac5d9-f237-42c9-b692-7a1080f403d5' WHERE `accounts`.`id` = x'a69ac5d9f23742c9b6927a1080f403d5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a69ac5d9f23742c9b6927a1080f403d5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a69ac5d9f23742c9b6927a1080f403d5', x'00c50124fb5c4ab7abb6564547020a1d', x'2e01a4cb0d594fe09badf53b0df9c16b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'00c50124fb5c4ab7abb6564547020a1d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'00c50124fb5c4ab7abb6564547020a1d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'00c50124fb5c4ab7abb6564547020a1d', x'b9f57050fd5c43c0a1bf322e6174f427', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'00c50124fb5c4ab7abb6564547020a1d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'00c50124fb5c4ab7abb6564547020a1d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'00c50124fb5c4ab7abb6564547020a1d', x'1430de26a44a47b3818aa896c03113a4', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149cac4e7_107080435d4852113@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'f72fa0e7a6f84a1c9705b49fba04f223', 'jabanilson', NULL, 1, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'accountf72fa0e7-a6f8-4a1c-9705-b49fba04f223' WHERE `accounts`.`id` = x'f72fa0e7a6f84a1c9705b49fba04f223'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f72fa0e7a6f84a1c9705b49fba04f223', x'86751416a91644879b7ca43fa81adf2c', x'2e01a4cb0d594fe09badf53b0df9c16b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'86751416a91644879b7ca43fa81adf2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86751416a91644879b7ca43fa81adf2c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86751416a91644879b7ca43fa81adf2c', x'771b9bfbe50e4273b87a6b6e77bdb440', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'86751416a91644879b7ca43fa81adf2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'86751416a91644879b7ca43fa81adf2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'86751416a91644879b7ca43fa81adf2c', x'0198f115e65d4331917a59dc640b92d7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e01a4cb0d594fe09badf53b0df9c16b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e01a4cb0d594fe09badf53b0df9c16b' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2e01a4cb0d594fe09badf53b0df9c16b' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"A69AC5D9F23742C9B6927A1080F403D5"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2e01a4cb0d594fe09badf53b0df9c16b' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'2e01a4cb0d594fe09badf53b0df9c16b' AND `account_users`.`account_id` = x'a69ac5d9f23742c9b6927a1080f403d5' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'00c50124fb5c4ab7abb6564547020a1d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'00c50124fb5c4ab7abb6564547020a1d' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'a69ac5d9f23742c9b6927a1080f403d5' AND `users`.`email` = 'create@controller.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'a69ac5d9f23742c9b6927a1080f403d5', 'create@controller.teste', x'144726a5af99480e83b022487867d431', x'2e01a4cb0d594fe09badf53b0df9c16b', NULL, '2013-01-02 11:06:04', 'l18OXW3YVBLb0_dqGi_w2IRmIuE') Sent mail to create@controller.teste (6ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: create@controller.teste Message-ID: <50e4149cbcd93_107080435d4852224@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/144726a5-af99-480e-83b0-22487867d431l18OXW3YVBLb0_dqGi_w2IRmIuE  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/A69AC5D9F23742C9B6927A1080F403D5/users Completed 302 Found in 46ms (ActiveRecord: 2.9ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:04', 'teste@teste.com', '$2a$04$NBf3J95vdEjhmC90vjRz/u/leJh/E6IyQZphCZi0fWKHGyOfrfKa2', NULL, x'93ab5bcfbede4e1d9b98031bc6037f06', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'93ab5bcfbede4e1d9b98031bc6037f06' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:04', 'User', x'd0c25565fa52490e82d08a9616233ef9', '976908d689d3e6ae3d9f25037c7ff282', x'93ab5bcfbede4e1d9b98031bc6037f06', 'User', '2013-01-02 11:06:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'93ab5bcfbede4e1d9b98031bc6037f06' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'095221eb71f7429c8c99a7233474080e', NULL, NULL, NULL, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account095221eb-71f7-429c-8c99-a7233474080e' WHERE `accounts`.`id` = x'095221eb71f7429c8c99a7233474080e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'095221eb71f7429c8c99a7233474080e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'095221eb71f7429c8c99a7233474080e', x'b0ad67d66af045d7abfd36a4e0547964', x'93ab5bcfbede4e1d9b98031bc6037f06') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b0ad67d66af045d7abfd36a4e0547964') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0ad67d66af045d7abfd36a4e0547964' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0ad67d66af045d7abfd36a4e0547964', x'de8c5d3639be43a7aa4b4ccb5c08133c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b0ad67d66af045d7abfd36a4e0547964') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b0ad67d66af045d7abfd36a4e0547964' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b0ad67d66af045d7abfd36a4e0547964', x'd03382aca7764b8b9ac20b5838ba1b94', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149cc9486_107080435d48523e9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'16b5951c5fc84a4fbfa0e3b6b1fc148d', 'jabanilson', NULL, 1, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account16b5951c-5fc8-4a4f-bfa0-e3b6b1fc148d' WHERE `accounts`.`id` = x'16b5951c5fc84a4fbfa0e3b6b1fc148d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'16b5951c5fc84a4fbfa0e3b6b1fc148d', x'6425b0ee702b4365aa512f4f7d8aacfe', x'93ab5bcfbede4e1d9b98031bc6037f06') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6425b0ee702b4365aa512f4f7d8aacfe') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6425b0ee702b4365aa512f4f7d8aacfe' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6425b0ee702b4365aa512f4f7d8aacfe', x'7145f0ee6f1842369deb67dc76d9c6e5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6425b0ee702b4365aa512f4f7d8aacfe') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6425b0ee702b4365aa512f4f7d8aacfe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6425b0ee702b4365aa512f4f7d8aacfe', x'ced874259d094d1f931a90f0fa9c043c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93ab5bcfbede4e1d9b98031bc6037f06' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93ab5bcfbede4e1d9b98031bc6037f06' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93ab5bcfbede4e1d9b98031bc6037f06' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"16B5951C5FC84A4FBFA0E3B6B1FC148D"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'93ab5bcfbede4e1d9b98031bc6037f06' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'93ab5bcfbede4e1d9b98031bc6037f06' AND `account_users`.`account_id` = x'16b5951c5fc84a4fbfa0e3b6b1fc148d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6425b0ee702b4365aa512f4f7d8aacfe' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6425b0ee702b4365aa512f4f7d8aacfe' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'16b5951c5fc84a4fbfa0e3b6b1fc148d' AND `users`.`email` = 'create@controller.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'16b5951c5fc84a4fbfa0e3b6b1fc148d', 'create@controller.teste', x'9aa24f0c46db4dd6915ae5d64e1225b6', x'93ab5bcfbede4e1d9b98031bc6037f06', NULL, '2013-01-02 11:06:04', 'ctgApwJe7tMPG8UYOQ9yFFuqF3I') Sent mail to create@controller.teste (6ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: create@controller.teste Message-ID: <50e4149cd6b28_107080435d4852422@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/9aa24f0c-46db-4dd6-915a-e5d64e1225b6ctgApwJe7tMPG8UYOQ9yFFuqF3I  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/16B5951C5FC84A4FBFA0E3B6B1FC148D/users Completed 302 Found in 31ms (ActiveRecord: 2.9ms) UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` ORDER BY `user_invitations`.`id` DESC LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:04', 'teste@teste.com', '$2a$04$iDfX1dkKnAtCpsf5YoTfQ.04wvLggM5oipDVPIoT/55JTuAosKIeS', NULL, x'abb64826da474813b79b638feac2ae83', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:04') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'abb64826da474813b79b638feac2ae83' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:04', 'User', x'9949d4ca633b40c7b37ea785164fc4cd', '1df913e3804b8abdf5396d838d4ca4c0', x'abb64826da474813b79b638feac2ae83', 'User', '2013-01-02 11:06:04') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'abb64826da474813b79b638feac2ae83' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'9589af237d834fe9852f24467d2a6366', NULL, NULL, NULL, '2013-01-02 11:06:04')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account9589af23-7d83-4fe9-852f-24467d2a6366' WHERE `accounts`.`id` = x'9589af237d834fe9852f24467d2a6366' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9589af237d834fe9852f24467d2a6366' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9589af237d834fe9852f24467d2a6366', x'4b64bbbcdaf14491acaa3f3b23f08015', x'abb64826da474813b79b638feac2ae83') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4b64bbbcdaf14491acaa3f3b23f08015') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b64bbbcdaf14491acaa3f3b23f08015' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b64bbbcdaf14491acaa3f3b23f08015', x'c4f3e9dede744ff39fab45c8ab54746f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4b64bbbcdaf14491acaa3f3b23f08015') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b64bbbcdaf14491acaa3f3b23f08015' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b64bbbcdaf14491acaa3f3b23f08015', x'888f33661c0143d6b0fae9f8053f7f51', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:04 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149ce33bf_107080435d48525a4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:04', x'04038c3ffcf04b95a486ed310f731e52', 'jabanilson', NULL, 1, '2013-01-02 11:06:04')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:04', `updated_at` = '2013-01-02 11:06:04', `subdomain` = 'account04038c3f-fcf0-4b95-a486-ed310f731e52' WHERE `accounts`.`id` = x'04038c3ffcf04b95a486ed310f731e52'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'04038c3ffcf04b95a486ed310f731e52', x'4b0c56fa287b43899ea984a17fbbfe4d', x'abb64826da474813b79b638feac2ae83') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4b0c56fa287b43899ea984a17fbbfe4d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b0c56fa287b43899ea984a17fbbfe4d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b0c56fa287b43899ea984a17fbbfe4d', x'13fae48064524a18b1173c39081d9cb5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4b0c56fa287b43899ea984a17fbbfe4d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b0c56fa287b43899ea984a17fbbfe4d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b0c56fa287b43899ea984a17fbbfe4d', x'86e626a136de46cca0457c6b8a254af8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abb64826da474813b79b638feac2ae83' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abb64826da474813b79b638feac2ae83' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'abb64826da474813b79b638feac2ae83' LIMIT 1 Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"04038C3FFCF04B95A486ED310F731E52"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'abb64826da474813b79b638feac2ae83' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'abb64826da474813b79b638feac2ae83' AND `account_users`.`account_id` = x'04038c3ffcf04b95a486ed310f731e52' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b0c56fa287b43899ea984a17fbbfe4d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b0c56fa287b43899ea984a17fbbfe4d' AND `account_roles`.`name` = 'admin' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'04038c3ffcf04b95a486ed310f731e52' AND `users`.`email` = 'create@controller.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'04038c3ffcf04b95a486ed310f731e52', 'create@controller.teste', x'f92245660fbc46748fab26cc3e4d9cdd', x'abb64826da474813b79b638feac2ae83', NULL, '2013-01-02 11:06:05', 'aHfV-BSc2WUiCAPViSEMt2sQmn0') Sent mail to create@controller.teste (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: create@controller.teste Message-ID: <50e4149d13261_107080435d48526e0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/f9224566-0fbc-4674-8fab-26cc3e4d9cddaHfV-BSc2WUiCAPViSEMt2sQmn0  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/account/04038C3FFCF04B95A486ED310F731E52/users Completed 302 Found in 125ms (ActiveRecord: 2.9ms) Processing by Iugu::InvitationsController#create as HTML Parameters: {"user_invitation"=>{"email"=>"create@controller.teste"}, "account_id"=>"04038C3FFCF04B95A486ED310F731E52"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'abb64826da474813b79b638feac2ae83' AND `account_users`.`account_id` = x'04038c3ffcf04b95a486ed310f731e52' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b0c56fa287b43899ea984a17fbbfe4d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b0c56fa287b43899ea984a17fbbfe4d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'04038c3ffcf04b95a486ed310f731e52' LIMIT 1 Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:05', 'teste@teste.com', '$2a$04$dNH7pgnAufFCBCtTr1UP6.nUyxqP3TICbFEHGuhI9cWRo2ECfATy6', NULL, x'ec79976d8f8144b98cac4bda6137b6ac', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ec79976d8f8144b98cac4bda6137b6ac' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:05', 'User', x'6f8464a4360d4224949b7ac71cf1096e', '362bae37a5b5b54bc69f8d177ee8a064', x'ec79976d8f8144b98cac4bda6137b6ac', 'User', '2013-01-02 11:06:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ec79976d8f8144b98cac4bda6137b6ac' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'eeacff2b978d476a96be714d1ae9482f', NULL, NULL, NULL, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accounteeacff2b-978d-476a-96be-714d1ae9482f' WHERE `accounts`.`id` = x'eeacff2b978d476a96be714d1ae9482f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'eeacff2b978d476a96be714d1ae9482f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'eeacff2b978d476a96be714d1ae9482f', x'a8bdf72099d24e77a23e64110cba1a65', x'ec79976d8f8144b98cac4bda6137b6ac') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a8bdf72099d24e77a23e64110cba1a65') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a8bdf72099d24e77a23e64110cba1a65' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a8bdf72099d24e77a23e64110cba1a65', x'ce2d711a7e764b8b919b9953d2730af8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a8bdf72099d24e77a23e64110cba1a65') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a8bdf72099d24e77a23e64110cba1a65' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a8bdf72099d24e77a23e64110cba1a65', x'91f7a7ae8d544ed0b5be372d277be464', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149d22b3d_107080435d485275f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'd363a639f2ca47d29d2bc36d6135e6e1', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accountd363a639-f2ca-47d2-9d2b-c36d6135e6e1' WHERE `accounts`.`id` = x'd363a639f2ca47d29d2bc36d6135e6e1'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd363a639f2ca47d29d2bc36d6135e6e1', x'c4d067ae15474c9586b6687eb19e41fb', x'ec79976d8f8144b98cac4bda6137b6ac') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c4d067ae15474c9586b6687eb19e41fb') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4d067ae15474c9586b6687eb19e41fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4d067ae15474c9586b6687eb19e41fb', x'ef902ef06ee24154b09362a6d0973981', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c4d067ae15474c9586b6687eb19e41fb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4d067ae15474c9586b6687eb19e41fb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4d067ae15474c9586b6687eb19e41fb', x'd8785d3ba5a24cdcaa6e080bd7042e0b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec79976d8f8144b98cac4bda6137b6ac' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ec79976d8f8144b98cac4bda6137b6ac' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'a44c4f9f8a5a40e5a2bb5c6de4e9252b', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accounta44c4f9f-8a5a-40e5-a2bb-5c6de4e9252b' WHERE `accounts`.`id` = x'a44c4f9f8a5a40e5a2bb5c6de4e9252b'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'a44c4f9f8a5a40e5a2bb5c6de4e9252b' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'a44c4f9f8a5a40e5a2bb5c6de4e9252b', 'teste@teste.teste', x'f11ee431e0174091b3fe5191609f3226', NULL, NULL, '2013-01-02 11:06:05', 'dgKz24b0vTMQdASmhFViRxGUf0I') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e4149d2ee1e_107080435d4852844@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/f11ee431-e017-4091-b3fe-5191609f3226dgKz24b0vTMQdASmhFViRxGUf0I  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `user_invitations` SET `invited_by` = x'ec79976d8f8144b98cac4bda6137b6ac' WHERE `user_invitations`.`id` = x'f11ee431e0174091b3fe5191609f3226'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ec79976d8f8144b98cac4bda6137b6ac' LIMIT 1 UserInvitation Load (0.3ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'61626262626261616161616363636363' LIMIT 1 Completed 404 Not Found in 3ms  (1.2ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:05', 'teste@teste.com', '$2a$04$fDEDVPZl/I1sQ/YfHgTWCeKt9ZuK/TaFXLKcTB8dbpOhjvo23yOHG', NULL, x'd7f36a813d3b4cf792109585882cafda', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd7f36a813d3b4cf792109585882cafda' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:05', 'User', x'650d3ea224f14406a9ab6585d1f879b9', 'a148d9d41b378d4cb7fedc9b032efed9', x'd7f36a813d3b4cf792109585882cafda', 'User', '2013-01-02 11:06:05') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd7f36a813d3b4cf792109585882cafda' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'4f03f1239f94473f957c12e7888bf10d', NULL, NULL, NULL, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account4f03f123-9f94-473f-957c-12e7888bf10d' WHERE `accounts`.`id` = x'4f03f1239f94473f957c12e7888bf10d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4f03f1239f94473f957c12e7888bf10d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4f03f1239f94473f957c12e7888bf10d', x'27ea6e17027240fe9ce417fe81307ab0', x'd7f36a813d3b4cf792109585882cafda') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'27ea6e17027240fe9ce417fe81307ab0') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'27ea6e17027240fe9ce417fe81307ab0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'27ea6e17027240fe9ce417fe81307ab0', x'a3a569df2f944610b8d8d2420eca1895', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'27ea6e17027240fe9ce417fe81307ab0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'27ea6e17027240fe9ce417fe81307ab0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'27ea6e17027240fe9ce417fe81307ab0', x'41b22fedcc334728884be5380d90572b', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149d3c9b6_107080435d48529e6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'6772250bb6d347e48377595418beefb5', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account6772250b-b6d3-47e4-8377-595418beefb5' WHERE `accounts`.`id` = x'6772250bb6d347e48377595418beefb5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6772250bb6d347e48377595418beefb5', x'b9cc5f8e5afb4cef8577572bf965363f', x'd7f36a813d3b4cf792109585882cafda') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b9cc5f8e5afb4cef8577572bf965363f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9cc5f8e5afb4cef8577572bf965363f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9cc5f8e5afb4cef8577572bf965363f', x'90c4c9f0de0a4d3cafb065a1eb0e570b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b9cc5f8e5afb4cef8577572bf965363f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9cc5f8e5afb4cef8577572bf965363f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9cc5f8e5afb4cef8577572bf965363f', x'184c2e1637d146f1a009a1c7ffd92601', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd7f36a813d3b4cf792109585882cafda' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd7f36a813d3b4cf792109585882cafda' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'2e16f79054aa418e8546f9c91620cda4', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account2e16f790-54aa-418e-8546-f9c91620cda4' WHERE `accounts`.`id` = x'2e16f79054aa418e8546f9c91620cda4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'2e16f79054aa418e8546f9c91620cda4' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'2e16f79054aa418e8546f9c91620cda4', 'teste@teste.teste', x'2db5f7dd1b5e43188d3fc395e8f5b274', NULL, NULL, '2013-01-02 11:06:05', 'wI05YfQRgLhL4ppNcV6tAaLm9pw') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e4149d48092_107080435d48530d5@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2db5f7dd-1b5e-4318-8d3f-c395e8f5b274wI05YfQRgLhL4ppNcV6tAaLm9pw  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `user_invitations` SET `invited_by` = x'd7f36a813d3b4cf792109585882cafda' WHERE `user_invitations`.`id` = x'2db5f7dd1b5e43188d3fc395e8f5b274'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"2db5f7dd-1b5e-4318-8d3f-c395e8f5b274wI05YfQRgLhL4ppNcV6tAaLm9pw"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd7f36a813d3b4cf792109585882cafda' LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'2db5f7dd1b5e43188d3fc395e8f5b274' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd7f36a813d3b4cf792109585882cafda' LIMIT 1 Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 1.1ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:05', 'teste@teste.com', '$2a$04$H4FG1jdcxLZQw8A2.q63h.XfWmhrYaHTscnx/ruvfqS.v23iRmvly', NULL, x'7e84402f686948e58b41cf75a5e586dc', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7e84402f686948e58b41cf75a5e586dc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:05', 'User', x'787108b84b704e9fbe79ecfda3d5c7e6', '714f39d638ad860b2f5e0f7f7c35258c', x'7e84402f686948e58b41cf75a5e586dc', 'User', '2013-01-02 11:06:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7e84402f686948e58b41cf75a5e586dc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'fad1ba1e2cae4216a6e8d1c8246677a2', NULL, NULL, NULL, '2013-01-02 11:06:05')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accountfad1ba1e-2cae-4216-a6e8-d1c8246677a2' WHERE `accounts`.`id` = x'fad1ba1e2cae4216a6e8d1c8246677a2' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fad1ba1e2cae4216a6e8d1c8246677a2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fad1ba1e2cae4216a6e8d1c8246677a2', x'6f3ca38e3ba44208ad32512f78ecb11d', x'7e84402f686948e58b41cf75a5e586dc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6f3ca38e3ba44208ad32512f78ecb11d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f3ca38e3ba44208ad32512f78ecb11d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f3ca38e3ba44208ad32512f78ecb11d', x'38287857e2604b5fb24f712b8a6a1012', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6f3ca38e3ba44208ad32512f78ecb11d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f3ca38e3ba44208ad32512f78ecb11d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f3ca38e3ba44208ad32512f78ecb11d', x'78085672d2274e2f95e8e13922730aa1', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149d6e586_107080435d485318c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'27c749659a424e4f80c1ffd752828e10', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account27c74965-9a42-4e4f-80c1-ffd752828e10' WHERE `accounts`.`id` = x'27c749659a424e4f80c1ffd752828e10'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'27c749659a424e4f80c1ffd752828e10', x'09825e32949c4ef7b3275fccf64addd8', x'7e84402f686948e58b41cf75a5e586dc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'09825e32949c4ef7b3275fccf64addd8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09825e32949c4ef7b3275fccf64addd8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09825e32949c4ef7b3275fccf64addd8', x'3d3a6c1601284034890509dc5d03585d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'09825e32949c4ef7b3275fccf64addd8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09825e32949c4ef7b3275fccf64addd8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09825e32949c4ef7b3275fccf64addd8', x'90b51162e3f742b682cab8ace6c3f500', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7e84402f686948e58b41cf75a5e586dc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7e84402f686948e58b41cf75a5e586dc' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'e5107259ba0b4fc8865b7f7c454f9a35', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accounte5107259-ba0b-4fc8-865b-7f7c454f9a35' WHERE `accounts`.`id` = x'e5107259ba0b4fc8865b7f7c454f9a35'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'0605419c90da42148577c01a84342aa0', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account0605419c-90da-4214-8577-c01a84342aa0' WHERE `accounts`.`id` = x'0605419c90da42148577c01a84342aa0'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0605419c90da42148577c01a84342aa0' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'0605419c90da42148577c01a84342aa0', 'teste@teste.teste', x'a0628128fde743439dcab8dc344bc1af', NULL, NULL, '2013-01-02 11:06:05', 'ot8_yCL_AXxCsOx8D9tEtPmM3v8') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e4149d7ac4c_107080435d485327d@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/a0628128-fde7-4343-9dca-b8dc344bc1afot8_yCL_AXxCsOx8D9tEtPmM3v8  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'e5107259ba0b4fc8865b7f7c454f9a35' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = x'e5107259ba0b4fc8865b7f7c454f9a35' WHERE `user_invitations`.`id` = x'a0628128fde743439dcab8dc344bc1af'  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"9821aaaaabbbbbaaaaaccccc"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7e84402f686948e58b41cf75a5e586dc' LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'61626262626261616161616363636363' LIMIT 1 Completed 404 Not Found in 3ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:05', 'teste@teste.com', '$2a$04$0SdxxIMFnvM1gmewh83ssOodBgLLgeIuBTAkn5qkH7h2cSvU5DMpi', NULL, x'a93b0749465e4e68951a7e2648e9faae', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a93b0749465e4e68951a7e2648e9faae' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:05', 'User', x'1d4a4aabbceb476c9f62930fa8650bb7', 'd458dc70b88eb8f7e63fa8a3c563598d', x'a93b0749465e4e68951a7e2648e9faae', 'User', '2013-01-02 11:06:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a93b0749465e4e68951a7e2648e9faae' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'10517a746b9745e4907cae1dea32d5dd', NULL, NULL, NULL, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account10517a74-6b97-45e4-907c-ae1dea32d5dd' WHERE `accounts`.`id` = x'10517a746b9745e4907cae1dea32d5dd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'10517a746b9745e4907cae1dea32d5dd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'10517a746b9745e4907cae1dea32d5dd', x'8290cbfdfaa34ac08fbeefa83b096f3a', x'a93b0749465e4e68951a7e2648e9faae') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8290cbfdfaa34ac08fbeefa83b096f3a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8290cbfdfaa34ac08fbeefa83b096f3a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8290cbfdfaa34ac08fbeefa83b096f3a', x'fc277c93327b46a6a828f53f79e2b0f7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8290cbfdfaa34ac08fbeefa83b096f3a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8290cbfdfaa34ac08fbeefa83b096f3a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8290cbfdfaa34ac08fbeefa83b096f3a', x'29fc1be212e84e8b9e50015a8ab61b08', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149d89c82_107080435d485333f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'82093368c6dd42e1a2162ac8bec982fa', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account82093368-c6dd-42e1-a216-2ac8bec982fa' WHERE `accounts`.`id` = x'82093368c6dd42e1a2162ac8bec982fa'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'82093368c6dd42e1a2162ac8bec982fa', x'10c61f70f9c74b1cade62783d0ef60f8', x'a93b0749465e4e68951a7e2648e9faae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'10c61f70f9c74b1cade62783d0ef60f8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10c61f70f9c74b1cade62783d0ef60f8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10c61f70f9c74b1cade62783d0ef60f8', x'f1a8b89ebd9b4f16a8852b80d07b3565', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'10c61f70f9c74b1cade62783d0ef60f8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10c61f70f9c74b1cade62783d0ef60f8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10c61f70f9c74b1cade62783d0ef60f8', x'32aed1c25e0543d1a2fef19af810288e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a93b0749465e4e68951a7e2648e9faae' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a93b0749465e4e68951a7e2648e9faae' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'e1d26c2eeb1f4374b1c4ca83970c067d', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accounte1d26c2e-eb1f-4374-b1c4-ca83970c067d' WHERE `accounts`.`id` = x'e1d26c2eeb1f4374b1c4ca83970c067d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'ac9a6733c43444cfa8690c7be20b10f8', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accountac9a6733-c434-44cf-a869-0c7be20b10f8' WHERE `accounts`.`id` = x'ac9a6733c43444cfa8690c7be20b10f8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'ac9a6733c43444cfa8690c7be20b10f8' AND `users`.`email` = 'teste@teste.teste' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'ac9a6733c43444cfa8690c7be20b10f8', 'teste@teste.teste', x'24aa5c73d2984fbc980508131be8cc14', NULL, NULL, '2013-01-02 11:06:05', 'N2wuCDUKcmFuMD4Qyj4tmljmd4Y') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e4149d966fd_107080435d4853474@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/24aa5c73-d298-4fbc-9805-08131be8cc14N2wuCDUKcmFuMD4Qyj4tmljmd4Y  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'e1d26c2eeb1f4374b1c4ca83970c067d' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = x'e1d26c2eeb1f4374b1c4ca83970c067d' WHERE `user_invitations`.`id` = x'24aa5c73d2984fbc980508131be8cc14'  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"24aa5c73-d298-4fbc-9805-08131be8cc14N2wuCDUKcmFuMD4Qyj4tmljmd4Y"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a93b0749465e4e68951a7e2648e9faae' LIMIT 1 UserInvitation Load (0.2ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'24aa5c73d2984fbc980508131be8cc14' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e1d26c2eeb1f4374b1c4ca83970c067d' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'e1d26c2eeb1f4374b1c4ca83970c067d' AND `account_users`.`user_id` = x'a93b0749465e4e68951a7e2648e9faae'  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e1d26c2eeb1f4374b1c4ca83970c067d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e1d26c2eeb1f4374b1c4ca83970c067d', x'891702b756db48168a0ad71dfaea6f83', x'a93b0749465e4e68951a7e2648e9faae') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'891702b756db48168a0ad71dfaea6f83') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'891702b756db48168a0ad71dfaea6f83' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'891702b756db48168a0ad71dfaea6f83', x'69498bb5825248419b734a780b4c1485', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'891702b756db48168a0ad71dfaea6f83') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'891702b756db48168a0ad71dfaea6f83' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'891702b756db48168a0ad71dfaea6f83', x'004fcb80fbe345ed8433bbc54c0da3a1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/ Completed 302 Found in 18ms (ActiveRecord: 4.1ms)  (2.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:05', 'teste@teste.com', '$2a$04$jVE2CBFUS5KRTvVzY2AnveFnkKsfCJ8XFHFHQDn4teB0JSR2emtJy', NULL, x'de75289cd7fa42cf96ea5483ec13fc81', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'de75289cd7fa42cf96ea5483ec13fc81' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:05', 'User', x'71af83ac4d234b82aa5927450be0cb0a', '68306f17ab89c18ab377c0f5bcc75c18', x'de75289cd7fa42cf96ea5483ec13fc81', 'User', '2013-01-02 11:06:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'de75289cd7fa42cf96ea5483ec13fc81' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'4dea77bcd13e4826996744c887edf232', NULL, NULL, NULL, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account4dea77bc-d13e-4826-9967-44c887edf232' WHERE `accounts`.`id` = x'4dea77bcd13e4826996744c887edf232' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4dea77bcd13e4826996744c887edf232' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4dea77bcd13e4826996744c887edf232', x'730aa5089039463d90c1734cdcd5e07a', x'de75289cd7fa42cf96ea5483ec13fc81') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'730aa5089039463d90c1734cdcd5e07a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'730aa5089039463d90c1734cdcd5e07a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'730aa5089039463d90c1734cdcd5e07a', x'5190891bbed04885aff20cb694e0f990', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'730aa5089039463d90c1734cdcd5e07a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'730aa5089039463d90c1734cdcd5e07a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'730aa5089039463d90c1734cdcd5e07a', x'ab96178c3b504650a450db372bb3e666', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149da9547_107080435d485352d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'e10ff15f22704b7ba8ec608907d16d8f', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accounte10ff15f-2270-4b7b-a8ec-608907d16d8f' WHERE `accounts`.`id` = x'e10ff15f22704b7ba8ec608907d16d8f'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e10ff15f22704b7ba8ec608907d16d8f', x'4cd5eddecc584110bbf5196a6da169d3', x'de75289cd7fa42cf96ea5483ec13fc81') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4cd5eddecc584110bbf5196a6da169d3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4cd5eddecc584110bbf5196a6da169d3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4cd5eddecc584110bbf5196a6da169d3', x'64702d9b148b40dead83fe18a66cdf2b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4cd5eddecc584110bbf5196a6da169d3') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4cd5eddecc584110bbf5196a6da169d3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4cd5eddecc584110bbf5196a6da169d3', x'217fd974575a497ebf85c4f656310dc0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'de75289cd7fa42cf96ea5483ec13fc81' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'de75289cd7fa42cf96ea5483ec13fc81' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'79eecb13bb2c483cbab28898c64cd408', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account79eecb13-bb2c-483c-bab2-8898c64cd408' WHERE `accounts`.`id` = x'79eecb13bb2c483cbab28898c64cd408'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'8a2201c01a5c4ae0983f7ef0a0d9630f', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account8a2201c0-1a5c-4ae0-983f-7ef0a0d9630f' WHERE `accounts`.`id` = x'8a2201c01a5c4ae0983f7ef0a0d9630f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'8a2201c01a5c4ae0983f7ef0a0d9630f' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'8a2201c01a5c4ae0983f7ef0a0d9630f', 'teste@teste.teste', x'ca1aff9ca7cc40cf9d770143748aa234', NULL, NULL, '2013-01-02 11:06:05', 'SbOEmyZiLcMxvq8_aHp4uwQDdV8') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e4149dcd17a_107080435d48536dc@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/ca1aff9c-a7cc-40cf-9d77-0143748aa234SbOEmyZiLcMxvq8_aHp4uwQDdV8  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'79eecb13bb2c483cbab28898c64cd408' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = x'79eecb13bb2c483cbab28898c64cd408' WHERE `user_invitations`.`id` = x'ca1aff9ca7cc40cf9d770143748aa234'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'79eecb13bb2c483cbab28898c64cd408' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'79eecb13bb2c483cbab28898c64cd408', x'1b7f0731de1d4c64ae26fc239ee45183', x'de75289cd7fa42cf96ea5483ec13fc81') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1b7f0731de1d4c64ae26fc239ee45183') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b7f0731de1d4c64ae26fc239ee45183' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b7f0731de1d4c64ae26fc239ee45183', x'c3f324721bc0465c9eaac9bcc248dd09', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1b7f0731de1d4c64ae26fc239ee45183') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b7f0731de1d4c64ae26fc239ee45183' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b7f0731de1d4c64ae26fc239ee45183', x'711abc6304e84fccbc5e3279c0d9bcb9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"ca1aff9c-a7cc-40cf-9d77-0143748aa234SbOEmyZiLcMxvq8_aHp4uwQDdV8"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'de75289cd7fa42cf96ea5483ec13fc81' LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'ca1aff9ca7cc40cf9d770143748aa234' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'79eecb13bb2c483cbab28898c64cd408' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'79eecb13bb2c483cbab28898c64cd408' AND `account_users`.`user_id` = x'de75289cd7fa42cf96ea5483ec13fc81' Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:05', 'teste@teste.com', '$2a$04$VH/SET8w8uSoGLIc4N/ypeno9Yttbjbt6hAygR7RtRpvarAaLx4bW', NULL, x'7528f4b84df54f6db8d98a772f36728b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:05') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7528f4b84df54f6db8d98a772f36728b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:05', 'User', x'1c0655027dd54d5bb6f33587da3f4049', 'c02e0241f51789f0fab7d256afbbcd59', x'7528f4b84df54f6db8d98a772f36728b', 'User', '2013-01-02 11:06:05') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7528f4b84df54f6db8d98a772f36728b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'a94d73de188541febcfaed4a9a2d047c', NULL, NULL, NULL, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accounta94d73de-1885-41fe-bcfa-ed4a9a2d047c' WHERE `accounts`.`id` = x'a94d73de188541febcfaed4a9a2d047c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a94d73de188541febcfaed4a9a2d047c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a94d73de188541febcfaed4a9a2d047c', x'3e77c462e9444808a2808b438cdd7169', x'7528f4b84df54f6db8d98a772f36728b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3e77c462e9444808a2808b438cdd7169') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3e77c462e9444808a2808b438cdd7169' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3e77c462e9444808a2808b438cdd7169', x'4fc07e91be2b4adeb7a753582ce8015d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3e77c462e9444808a2808b438cdd7169') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3e77c462e9444808a2808b438cdd7169' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3e77c462e9444808a2808b438cdd7169', x'b5bbc24f5bc54582b08d894236e2cc67', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149de015e_107080435d4853798@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'41735317dee64758a5d307401c104fe9', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'account41735317-dee6-4758-a5d3-07401c104fe9' WHERE `accounts`.`id` = x'41735317dee64758a5d307401c104fe9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'41735317dee64758a5d307401c104fe9', x'da98129a726a40c6bf476e0f594a9a5e', x'7528f4b84df54f6db8d98a772f36728b') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da98129a726a40c6bf476e0f594a9a5e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da98129a726a40c6bf476e0f594a9a5e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da98129a726a40c6bf476e0f594a9a5e', x'1cb01a783a444b86b11844f3c42b7bfe', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'da98129a726a40c6bf476e0f594a9a5e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da98129a726a40c6bf476e0f594a9a5e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da98129a726a40c6bf476e0f594a9a5e', x'0ecaf5a8051d4d8dbef2def651fa457f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7528f4b84df54f6db8d98a772f36728b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7528f4b84df54f6db8d98a772f36728b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'f3a83000aab0448a927c21c46884344a', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accountf3a83000-aab0-448a-927c-21c46884344a' WHERE `accounts`.`id` = x'f3a83000aab0448a927c21c46884344a'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:05', x'cfc8b4a4f1ce4a2981508eb489752852', 'jabanilson', NULL, 1, '2013-01-02 11:06:05')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:05', `updated_at` = '2013-01-02 11:06:05', `subdomain` = 'accountcfc8b4a4-f1ce-4a29-8150-8eb489752852' WHERE `accounts`.`id` = x'cfc8b4a4f1ce4a2981508eb489752852'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'cfc8b4a4f1ce4a2981508eb489752852' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'cfc8b4a4f1ce4a2981508eb489752852', 'teste@teste.teste', x'cc2fb49bf57d41d8bf1f2e38f663f7fa', NULL, NULL, '2013-01-02 11:06:05', 'xIYnePQmOWnqfffgvbYYLfOedfE') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:05 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e4149decaf0_107080435d48538d3@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/cc2fb49b-f57d-41d8-bf1f-2e38f663f7faxIYnePQmOWnqfffgvbYYLfOedfE  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'f3a83000aab0448a927c21c46884344a' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = x'f3a83000aab0448a927c21c46884344a' WHERE `user_invitations`.`id` = x'cc2fb49bf57d41d8bf1f2e38f663f7fa'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f3a83000aab0448a927c21c46884344a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f3a83000aab0448a927c21c46884344a', x'31efe1764caf4a949f95944f22f8dd8a', x'7528f4b84df54f6db8d98a772f36728b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'31efe1764caf4a949f95944f22f8dd8a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'31efe1764caf4a949f95944f22f8dd8a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'31efe1764caf4a949f95944f22f8dd8a', x'22d90d36aa60425b9e928bce6e99f9f2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'31efe1764caf4a949f95944f22f8dd8a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'31efe1764caf4a949f95944f22f8dd8a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'31efe1764caf4a949f95944f22f8dd8a', x'f273f34360014d099b7572e08a02fde5', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::InvitationsController#update as HTML Parameters: {"invitation_token"=>"cc2fb49b-f57d-41d8-bf1f-2e38f663f7faxIYnePQmOWnqfffgvbYYLfOedfE"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7528f4b84df54f6db8d98a772f36728b' LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'cc2fb49bf57d41d8bf1f2e38f663f7fa' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f3a83000aab0448a927c21c46884344a' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'f3a83000aab0448a927c21c46884344a' AND `account_users`.`user_id` = x'7528f4b84df54f6db8d98a772f36728b' Redirected to http://test.host/ Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$h5VfrfuzlWim0P/h3v8al.ruF/aCemwWc4stXdoh09JDcfRuUNIUO', NULL, x'f37fba47c565497e821eaf77404f6b73', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f37fba47c565497e821eaf77404f6b73' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'9e8da1fb46d447baa34175ae396e14fd', '7abfa4df8c6d4e9dcfd7ec61a63c3653', x'f37fba47c565497e821eaf77404f6b73', 'User', '2013-01-02 11:06:06') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f37fba47c565497e821eaf77404f6b73' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'c581d9e2d9ab431e9b87aa4b6720a0ff', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'accountc581d9e2-d9ab-431e-9b87-aa4b6720a0ff' WHERE `accounts`.`id` = x'c581d9e2d9ab431e9b87aa4b6720a0ff' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c581d9e2d9ab431e9b87aa4b6720a0ff' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c581d9e2d9ab431e9b87aa4b6720a0ff', x'6426cc08eb724bf29e268b3cad766186', x'f37fba47c565497e821eaf77404f6b73') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6426cc08eb724bf29e268b3cad766186') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6426cc08eb724bf29e268b3cad766186' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6426cc08eb724bf29e268b3cad766186', x'687bbdb039194edab27df81d7a36f89b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6426cc08eb724bf29e268b3cad766186') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6426cc08eb724bf29e268b3cad766186' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6426cc08eb724bf29e268b3cad766186', x'a53e16fb12a44321bfcc66ee0f77646e', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:06 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149eb511_107080435d48539e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'36e24a000b6644fabb974c48b9d71122', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account36e24a00-0b66-44fa-bb97-4c48b9d71122' WHERE `accounts`.`id` = x'36e24a000b6644fabb974c48b9d71122'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'36e24a000b6644fabb974c48b9d71122', x'17d0e8d574f74e0391644b65713326f5', x'f37fba47c565497e821eaf77404f6b73') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'17d0e8d574f74e0391644b65713326f5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17d0e8d574f74e0391644b65713326f5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17d0e8d574f74e0391644b65713326f5', x'cd49497376154d0080fe298db81fd25a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'17d0e8d574f74e0391644b65713326f5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'17d0e8d574f74e0391644b65713326f5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'17d0e8d574f74e0391644b65713326f5', x'8274942d5cc84d358638ad546bc3090d', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f37fba47c565497e821eaf77404f6b73' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f37fba47c565497e821eaf77404f6b73' LIMIT 1 Processing by Iugu::PricingController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f37fba47c565497e821eaf77404f6b73' LIMIT 1 Completed 404 Not Found in 2ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$KPlfkwGO4IfVccKd0K80CuvsyIuatC0MEOY.jX1s9ScfcerEKjo8O', NULL, x'2a36dda817a74616b80732aba9103838', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2a36dda817a74616b80732aba9103838' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'8f388d53ef5e432297a573722a2edb37', 'c966e180862a30a6fc68031fbf473ae3', x'2a36dda817a74616b80732aba9103838', 'User', '2013-01-02 11:06:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2a36dda817a74616b80732aba9103838' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'c5fb1b08f5fa412684decd90192d56d1', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'accountc5fb1b08-f5fa-4126-84de-cd90192d56d1' WHERE `accounts`.`id` = x'c5fb1b08f5fa412684decd90192d56d1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c5fb1b08f5fa412684decd90192d56d1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c5fb1b08f5fa412684decd90192d56d1', x'9163934355ee42129971019dcf6f365c', x'2a36dda817a74616b80732aba9103838') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9163934355ee42129971019dcf6f365c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9163934355ee42129971019dcf6f365c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9163934355ee42129971019dcf6f365c', x'338843c2efb344bc979426890b8bd0c8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9163934355ee42129971019dcf6f365c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9163934355ee42129971019dcf6f365c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9163934355ee42129971019dcf6f365c', x'683ed218491041569438653ffffaf9ef', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:06 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149e354f6_107080435d4854026@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'3b46aecd81a042568b5ac8486a885668', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account3b46aecd-81a0-4256-8b5a-c8486a885668' WHERE `accounts`.`id` = x'3b46aecd81a042568b5ac8486a885668'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3b46aecd81a042568b5ac8486a885668', x'7e9127da332f4253a15055e3ff381945', x'2a36dda817a74616b80732aba9103838') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7e9127da332f4253a15055e3ff381945') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7e9127da332f4253a15055e3ff381945' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7e9127da332f4253a15055e3ff381945', x'6d9ee91fa0fb49f5b08e9ff7858a408e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7e9127da332f4253a15055e3ff381945') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7e9127da332f4253a15055e3ff381945' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7e9127da332f4253a15055e3ff381945', x'6b1edc5bad554918b2f90d5fd73d9281', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2a36dda817a74616b80732aba9103838' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2a36dda817a74616b80732aba9103838' LIMIT 1 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2a36dda817a74616b80732aba9103838' LIMIT 1 Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)  (1.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$Wmik1FUzPL4Z6Mgc.AXH3OJSaQVjogUOcrVJQy8AVHicCId.QRpUy', NULL, x'77f0f011f42d43f782677900ebc47ba9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'77f0f011f42d43f782677900ebc47ba9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'b44e125b129f4408afbe936421a7b254', '64c32e887a7d732db0751fd77568d1ab', x'77f0f011f42d43f782677900ebc47ba9', 'User', '2013-01-02 11:06:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'77f0f011f42d43f782677900ebc47ba9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'aca413fa3e154006b77abac6b8e3e11d', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'accountaca413fa-3e15-4006-b77a-bac6b8e3e11d' WHERE `accounts`.`id` = x'aca413fa3e154006b77abac6b8e3e11d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aca413fa3e154006b77abac6b8e3e11d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aca413fa3e154006b77abac6b8e3e11d', x'84e71b348b024a6d850316bc844986e9', x'77f0f011f42d43f782677900ebc47ba9') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'84e71b348b024a6d850316bc844986e9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84e71b348b024a6d850316bc844986e9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84e71b348b024a6d850316bc844986e9', x'4a55e30686b84176984f3dd7ecd7bde3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'84e71b348b024a6d850316bc844986e9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'84e71b348b024a6d850316bc844986e9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'84e71b348b024a6d850316bc844986e9', x'305bcc0079ed40c1bb8d381f268cfb61', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:06 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149e48c59_107080435d48541f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'50ffaba23ab940d9a6b24b8450dc6db5', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account50ffaba2-3ab9-40d9-a6b2-4b8450dc6db5' WHERE `accounts`.`id` = x'50ffaba23ab940d9a6b24b8450dc6db5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'50ffaba23ab940d9a6b24b8450dc6db5', x'304ac03455c44df0b4c21ea6eb50939c', x'77f0f011f42d43f782677900ebc47ba9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'304ac03455c44df0b4c21ea6eb50939c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'304ac03455c44df0b4c21ea6eb50939c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'304ac03455c44df0b4c21ea6eb50939c', x'24b4db4fd22143a182c96d363cfc42b2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'304ac03455c44df0b4c21ea6eb50939c') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'304ac03455c44df0b4c21ea6eb50939c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'304ac03455c44df0b4c21ea6eb50939c', x'650d1f530b394100866a4ae98b5307f0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'77f0f011f42d43f782677900ebc47ba9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'77f0f011f42d43f782677900ebc47ba9' LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'77f0f011f42d43f782677900ebc47ba9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'77f0f011f42d43f782677900ebc47ba9'  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2013-01-02 11:06:06' WHERE `users`.`id` = x'77f0f011f42d43f782677900ebc47ba9'  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 14ms (Views: 1.7ms | ActiveRecord: 3.9ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$PlrKw8YyuyKfDK.xlzslN.iIyHvLFGoo.Qk9w/p3ZMmXRaIPCP2ca', NULL, x'48466a747b2b433ab38423258dc83603', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'48466a747b2b433ab38423258dc83603' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'0df9160bcee54b23a7ad9e84d80f852e', '2a75b5ba1ccba38a5918d723aa834b94', x'48466a747b2b433ab38423258dc83603', 'User', '2013-01-02 11:06:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'48466a747b2b433ab38423258dc83603' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'bbcf3b6c87374f88a773326f442572fe', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'accountbbcf3b6c-8737-4f88-a773-326f442572fe' WHERE `accounts`.`id` = x'bbcf3b6c87374f88a773326f442572fe' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bbcf3b6c87374f88a773326f442572fe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bbcf3b6c87374f88a773326f442572fe', x'688ea043b49b407d953a392ab13bb8b8', x'48466a747b2b433ab38423258dc83603') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'688ea043b49b407d953a392ab13bb8b8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'688ea043b49b407d953a392ab13bb8b8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'688ea043b49b407d953a392ab13bb8b8', x'e40466698d474feea0bbd295fdcbc735', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'688ea043b49b407d953a392ab13bb8b8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'688ea043b49b407d953a392ab13bb8b8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'688ea043b49b407d953a392ab13bb8b8', x'7487255fa82e4d648126ca092a29c1c8', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:06 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149e5e3b2_107080435d4854288@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'b928f3958e804b80922a414763e5620c', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'accountb928f395-8e80-4b80-922a-414763e5620c' WHERE `accounts`.`id` = x'b928f3958e804b80922a414763e5620c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b928f3958e804b80922a414763e5620c', x'6dc8560012ea4db59dd777f1d85029ea', x'48466a747b2b433ab38423258dc83603') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6dc8560012ea4db59dd777f1d85029ea') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6dc8560012ea4db59dd777f1d85029ea' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6dc8560012ea4db59dd777f1d85029ea', x'97413eb396e74141b09331c40192f67e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6dc8560012ea4db59dd777f1d85029ea') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6dc8560012ea4db59dd777f1d85029ea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6dc8560012ea4db59dd777f1d85029ea', x'68c8117bc9d944d6b21da5e32a82512c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48466a747b2b433ab38423258dc83603' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48466a747b2b433ab38423258dc83603' LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'48466a747b2b433ab38423258dc83603' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'48466a747b2b433ab38423258dc83603'  (0.4ms) UPDATE `users` SET `name` = 'Testname', `updated_at` = '2013-01-02 11:06:06' WHERE `users`.`id` = x'48466a747b2b433ab38423258dc83603'  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 10ms (Views: 1.7ms | ActiveRecord: 1.6ms)  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'7ec0dade36714256a68acd5b59f0129f', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account7ec0dade-3671-4256-a68a-cd5b59f0129f' WHERE `accounts`.`id` = x'7ec0dade36714256a68acd5b59f0129f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7ec0dade36714256a68acd5b59f0129f', x'a4326b86b61c4d8fbb2efd94a3068925', x'48466a747b2b433ab38423258dc83603') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a4326b86b61c4d8fbb2efd94a3068925') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a4326b86b61c4d8fbb2efd94a3068925' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a4326b86b61c4d8fbb2efd94a3068925', x'90a654cb5aba45ac92f12017051b0a20', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a4326b86b61c4d8fbb2efd94a3068925') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a4326b86b61c4d8fbb2efd94a3068925' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a4326b86b61c4d8fbb2efd94a3068925', x'4903be27002245c796b4d5a682afbcd8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'48466a747b2b433ab38423258dc83603' AND (accounts.id = x'bbcf3b6c87374f88a773326f442572fe') LIMIT 1 Processing by Iugu::ProfileController#update as HTML Parameters: {"user"=>{"name"=>"Testname"}}  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 200 OK in 9ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$sc0rOop2i1CLKkBbH58f8uRs7FwbQCcUSJejBJVehUrzYH2JcG5i.', NULL, x'8910988a6f3c4ca29b13514fc393ff9c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8910988a6f3c4ca29b13514fc393ff9c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'180340113d1a468ca21379dcb08b6d76', '27f6a668d812cdd8e020dc93dbcb00f6', x'8910988a6f3c4ca29b13514fc393ff9c', 'User', '2013-01-02 11:06:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8910988a6f3c4ca29b13514fc393ff9c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'ccd4121d3721495aa1d5efc2193e3a3a', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'accountccd4121d-3721-495a-a1d5-efc2193e3a3a' WHERE `accounts`.`id` = x'ccd4121d3721495aa1d5efc2193e3a3a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ccd4121d3721495aa1d5efc2193e3a3a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ccd4121d3721495aa1d5efc2193e3a3a', x'9769cd4e7e9e48bc892b530d74666885', x'8910988a6f3c4ca29b13514fc393ff9c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9769cd4e7e9e48bc892b530d74666885') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9769cd4e7e9e48bc892b530d74666885' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9769cd4e7e9e48bc892b530d74666885', x'3b534c12d1aa4e328e8bd5344f0aec37', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9769cd4e7e9e48bc892b530d74666885') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9769cd4e7e9e48bc892b530d74666885' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9769cd4e7e9e48bc892b530d74666885', x'd480cd81aefd4a168cd31f3fc8ee1f26', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:06 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149e90f8c_107080435d485434a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'ffb9001d05614b4fba3c959fc27db846', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'accountffb9001d-0561-4b4f-ba3c-959fc27db846' WHERE `accounts`.`id` = x'ffb9001d05614b4fba3c959fc27db846'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ffb9001d05614b4fba3c959fc27db846', x'2fcbb89437f540efb52d6ad773c55c5c', x'8910988a6f3c4ca29b13514fc393ff9c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2fcbb89437f540efb52d6ad773c55c5c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2fcbb89437f540efb52d6ad773c55c5c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2fcbb89437f540efb52d6ad773c55c5c', x'8b8a09e08b1b4edc809a13f5b184d68e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2fcbb89437f540efb52d6ad773c55c5c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2fcbb89437f540efb52d6ad773c55c5c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2fcbb89437f540efb52d6ad773c55c5c', x'2738eb30f0de4d4e89cd6000c69ec204', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8910988a6f3c4ca29b13514fc393ff9c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8910988a6f3c4ca29b13514fc393ff9c' LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8910988a6f3c4ca29b13514fc393ff9c' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: 8910988a-6f3c-4ca2-9b13-514fc393ff9c\n', NULL, NULL, NULL, 0, 'user_8910988a-6f3c-4ca2-9b13-514fc393ff9c_destroy', '2013-01-02 11:06:06', '2013-01-02 11:06:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8910988a-6f3c-4ca2-9b13-514fc393ff9c_destroy' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 1.8ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8910988a-6f3c-4ca2-9b13-514fc393ff9c_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$fOLPdrLZjVCGttLulOPPfu8ZL8rzoUOGnQ0qnwVfq5RGwZpcNEt.2', NULL, x'724cbab6d8c24170b7f934b9d579a161', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'724cbab6d8c24170b7f934b9d579a161' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'e9d87b30bc2347e88c927e9f0aeecd3f', '6243c1888cbc71c58fa0dd2ffc91b926', x'724cbab6d8c24170b7f934b9d579a161', 'User', '2013-01-02 11:06:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'724cbab6d8c24170b7f934b9d579a161' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'2f83501d54ad4d0484c9c561efa81040', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account2f83501d-54ad-4d04-84c9-c561efa81040' WHERE `accounts`.`id` = x'2f83501d54ad4d0484c9c561efa81040' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2f83501d54ad4d0484c9c561efa81040' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2f83501d54ad4d0484c9c561efa81040', x'f7418ea9c2134abab2e1f5a97683d6e9', x'724cbab6d8c24170b7f934b9d579a161') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f7418ea9c2134abab2e1f5a97683d6e9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7418ea9c2134abab2e1f5a97683d6e9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7418ea9c2134abab2e1f5a97683d6e9', x'39e1e9af880b4eecbdfa2bcea5ea581c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f7418ea9c2134abab2e1f5a97683d6e9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f7418ea9c2134abab2e1f5a97683d6e9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f7418ea9c2134abab2e1f5a97683d6e9', x'323a0b4d8d514c26bd3e29eef3c10ca3', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:06 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149ea5121_107080435d4854457@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'1526094b20d14376ae272ecd7d6b629b', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account1526094b-20d1-4376-ae27-2ecd7d6b629b' WHERE `accounts`.`id` = x'1526094b20d14376ae272ecd7d6b629b'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1526094b20d14376ae272ecd7d6b629b', x'7eef82f9f46e4d1d8343a18bb29ccf8a', x'724cbab6d8c24170b7f934b9d579a161') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7eef82f9f46e4d1d8343a18bb29ccf8a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7eef82f9f46e4d1d8343a18bb29ccf8a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7eef82f9f46e4d1d8343a18bb29ccf8a', x'd63ce8d1a27343c080453cbf02509e94', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7eef82f9f46e4d1d8343a18bb29ccf8a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7eef82f9f46e4d1d8343a18bb29ccf8a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7eef82f9f46e4d1d8343a18bb29ccf8a', x'd52d13da62a5491299119b27e2a34aac', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'724cbab6d8c24170b7f934b9d579a161' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'724cbab6d8c24170b7f934b9d579a161' LIMIT 1 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'724cbab6d8c24170b7f934b9d579a161' LIMIT 1 Completed 404 Not Found in 2ms  (1.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$KSYauT4J71wbIoyzalCfculkbCcLXFLphbgtNai8hnAy1nwLcRNey', NULL, x'b1c74c74b7864649b9f6fbef4493c92b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b1c74c74b7864649b9f6fbef4493c92b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'b4ea72c639aa449daa7e087cd6a11fa6', 'd225fb1bc6d95bba4edd3a7a834ed08c', x'b1c74c74b7864649b9f6fbef4493c92b', 'User', '2013-01-02 11:06:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b1c74c74b7864649b9f6fbef4493c92b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'8f9518b098dd4d158b5bd98fef53629e', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account8f9518b0-98dd-4d15-8b5b-d98fef53629e' WHERE `accounts`.`id` = x'8f9518b098dd4d158b5bd98fef53629e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f9518b098dd4d158b5bd98fef53629e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8f9518b098dd4d158b5bd98fef53629e', x'77bd77489abb4a59bf0064b39befe4d8', x'b1c74c74b7864649b9f6fbef4493c92b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'77bd77489abb4a59bf0064b39befe4d8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'77bd77489abb4a59bf0064b39befe4d8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'77bd77489abb4a59bf0064b39befe4d8', x'617740d34ea34f968cf38ce71931b41c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'77bd77489abb4a59bf0064b39befe4d8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'77bd77489abb4a59bf0064b39befe4d8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'77bd77489abb4a59bf0064b39befe4d8', x'53fd93e7425a4b5ba135d64869c7ef45', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:06 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149eb7187_107080435d485456c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'63b7a2310d6747359acfbfd62e88f7aa', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account63b7a231-0d67-4735-9acf-bfd62e88f7aa' WHERE `accounts`.`id` = x'63b7a2310d6747359acfbfd62e88f7aa'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'63b7a2310d6747359acfbfd62e88f7aa', x'09128b8ca3544d1580845ddb07616e85', x'b1c74c74b7864649b9f6fbef4493c92b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'09128b8ca3544d1580845ddb07616e85') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09128b8ca3544d1580845ddb07616e85' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09128b8ca3544d1580845ddb07616e85', x'aded0629203f455596cde283eca6ec04', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'09128b8ca3544d1580845ddb07616e85') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09128b8ca3544d1580845ddb07616e85' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09128b8ca3544d1580845ddb07616e85', x'f58e2322cc26410097ef5128d27fb8dc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b1c74c74b7864649b9f6fbef4493c92b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b1c74c74b7864649b9f6fbef4493c92b' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:06', NULL, '--- !ruby/struct:DestroyUserJob\nid: b1c74c74-b786-4649-b9f6-fbef4493c92b\n', NULL, NULL, NULL, 0, 'user_b1c74c74-b786-4649-b9f6-fbef4493c92b_destroy', '2013-01-02 11:06:06', '2013-01-02 11:06:06')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#cancel_destruction as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b1c74c74b7864649b9f6fbef4493c92b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_b1c74c74-b786-4649-b9f6-fbef4493c92b_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_b1c74c74-b786-4649-b9f6-fbef4493c92b_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 13  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_b1c74c74-b786-4649-b9f6-fbef4493c92b_destroy' LIMIT 1  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$m3FknPLuO1plR6cT6vfbbunJU2BudNE8PA69ggZcGSjI5DzF6IQf.', NULL, x'6d75947a73644b1c962ab775a6785f51', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6d75947a73644b1c962ab775a6785f51' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'0661c6e98260420084b72a77dedc8cc4', 'cf09a3c51e162874746962f1b5647e2d', x'6d75947a73644b1c962ab775a6785f51', 'User', '2013-01-02 11:06:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6d75947a73644b1c962ab775a6785f51' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'5cb0762a5b3648c0b7d45897280253ba', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account5cb0762a-5b36-48c0-b7d4-5897280253ba' WHERE `accounts`.`id` = x'5cb0762a5b3648c0b7d45897280253ba' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5cb0762a5b3648c0b7d45897280253ba' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5cb0762a5b3648c0b7d45897280253ba', x'e68f46747d8e49c5beccd2cdc4607226', x'6d75947a73644b1c962ab775a6785f51') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e68f46747d8e49c5beccd2cdc4607226') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e68f46747d8e49c5beccd2cdc4607226' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e68f46747d8e49c5beccd2cdc4607226', x'8ff9a89448e04bbfa9ab0c276685a5e7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e68f46747d8e49c5beccd2cdc4607226') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e68f46747d8e49c5beccd2cdc4607226' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e68f46747d8e49c5beccd2cdc4607226', x'9b0b53d653194852b4cb668056e85e72', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:06 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149ecb95e_107080435d485462f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'8feb26f4d42443eaa151a1fa56230fdf', 'jabanilson', NULL, 1, '2013-01-02 11:06:06')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account8feb26f4-d424-43ea-a151-a1fa56230fdf' WHERE `accounts`.`id` = x'8feb26f4d42443eaa151a1fa56230fdf'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8feb26f4d42443eaa151a1fa56230fdf', x'426fdeb303824d1b867b9eda78cf51cf', x'6d75947a73644b1c962ab775a6785f51') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'426fdeb303824d1b867b9eda78cf51cf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'426fdeb303824d1b867b9eda78cf51cf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'426fdeb303824d1b867b9eda78cf51cf', x'a4f45da293634078b3892850e742e8b4', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'426fdeb303824d1b867b9eda78cf51cf') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'426fdeb303824d1b867b9eda78cf51cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'426fdeb303824d1b867b9eda78cf51cf', x'6eba64bf68b04bdea63ed7082a40c48f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d75947a73644b1c962ab775a6785f51' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6d75947a73644b1c962ab775a6785f51' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'29d441f6c90e4e7b919d3d388a34b395', 'twitter', NULL, '123123123', NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = x'6d75947a73644b1c962ab775a6785f51' WHERE `social_accounts`.`id` = x'29d441f6c90e4e7b919d3d388a34b395'  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'6d75947a73644b1c962ab775a6785f51' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"29D441F6C90E4E7B919D3D388A34B395"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6d75947a73644b1c962ab775a6785f51' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'6d75947a73644b1c962ab775a6785f51' AND `social_accounts`.`id` = x'29d441f6c90e4e7b919d3d388a34b395' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6d75947a73644b1c962ab775a6785f51' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'6d75947a73644b1c962ab775a6785f51'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'29d441f6c90e4e7b919d3d388a34b395'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:06', 'teste@teste.com', '$2a$04$PbTVRZ/AT0xUMA2bV9kJu.pgLEbTsxRNYqVtof.XlAk8xpx0D13Gy', NULL, x'01e91deeec694f3a9587ee7df550801c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:06') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'01e91deeec694f3a9587ee7df550801c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:06', 'User', x'1b2d2e47c3e34802bc136c32ec67579a', 'b71f44a13f7f05dbb313f5c19a9e487f', x'01e91deeec694f3a9587ee7df550801c', 'User', '2013-01-02 11:06:06') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'01e91deeec694f3a9587ee7df550801c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:06', x'0cf89c539b0841e78b02332a64ee6b71', NULL, NULL, NULL, '2013-01-02 11:06:06')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:06', `updated_at` = '2013-01-02 11:06:06', `subdomain` = 'account0cf89c53-9b08-41e7-8b02-332a64ee6b71' WHERE `accounts`.`id` = x'0cf89c539b0841e78b02332a64ee6b71' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0cf89c539b0841e78b02332a64ee6b71' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0cf89c539b0841e78b02332a64ee6b71', x'd2b8820f9c8a4e67984fe8bda3b7ae68', x'01e91deeec694f3a9587ee7df550801c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd2b8820f9c8a4e67984fe8bda3b7ae68') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd2b8820f9c8a4e67984fe8bda3b7ae68' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd2b8820f9c8a4e67984fe8bda3b7ae68', x'd69dfbad2c1e49fe9e795e79d3cead38', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd2b8820f9c8a4e67984fe8bda3b7ae68') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd2b8820f9c8a4e67984fe8bda3b7ae68' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd2b8820f9c8a4e67984fe8bda3b7ae68', x'0516c7b06c6748e7bb79ba312457b1d5', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149f52f9_107080435d48547cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'9129f43e27a643da8c459600c3465099', 'jabanilson', NULL, 1, '2013-01-02 11:06:07')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account9129f43e-27a6-43da-8c45-9600c3465099' WHERE `accounts`.`id` = x'9129f43e27a643da8c459600c3465099'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9129f43e27a643da8c459600c3465099', x'f600a67785554cd98972b43b123cd159', x'01e91deeec694f3a9587ee7df550801c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f600a67785554cd98972b43b123cd159') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f600a67785554cd98972b43b123cd159' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f600a67785554cd98972b43b123cd159', x'434e69f41b82465c93ed5d7d34ecacea', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f600a67785554cd98972b43b123cd159') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f600a67785554cd98972b43b123cd159' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f600a67785554cd98972b43b123cd159', x'e9c069f1fa144fada32c6a07a13a50fd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'01e91deeec694f3a9587ee7df550801c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'01e91deeec694f3a9587ee7df550801c' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'0abe584bd75c427e8c278f9098e977f9', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'01e91deeec694f3a9587ee7df550801c' WHERE `social_accounts`.`id` = x'0abe584bd75c427e8c278f9098e977f9'  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'01e91deeec694f3a9587ee7df550801c' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"0ABE584BD75C427E8C278F9098E977F9"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'01e91deeec694f3a9587ee7df550801c' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'01e91deeec694f3a9587ee7df550801c' AND `social_accounts`.`id` = x'0abe584bd75c427e8c278f9098e977f9' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'01e91deeec694f3a9587ee7df550801c' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'01e91deeec694f3a9587ee7df550801c'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'0abe584bd75c427e8c278f9098e977f9'  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/settings/profile Completed 302 Found in 8ms (ActiveRecord: 2.0ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:07', 'teste@teste.com', '$2a$04$jIHASpoe3b.LsXVM5uhlbOBTydMWzUVpWG/by.jdOgbgB60bQXmDK', NULL, x'b3970bad3f60488b82bbbfac39793796', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b3970bad3f60488b82bbbfac39793796' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'7fd1ad1a8fac464884dc7759e97a403a', 'b253a247a1c94e048ce87553165ced5c', x'b3970bad3f60488b82bbbfac39793796', 'User', '2013-01-02 11:06:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b3970bad3f60488b82bbbfac39793796' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'384bea93e7b14f5cb4d46ffee8b05332', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account384bea93-e7b1-4f5c-b4d4-6ffee8b05332' WHERE `accounts`.`id` = x'384bea93e7b14f5cb4d46ffee8b05332' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'384bea93e7b14f5cb4d46ffee8b05332' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'384bea93e7b14f5cb4d46ffee8b05332', x'156271d6c85a459e8c04c142e4a2c5c5', x'b3970bad3f60488b82bbbfac39793796') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'156271d6c85a459e8c04c142e4a2c5c5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'156271d6c85a459e8c04c142e4a2c5c5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'156271d6c85a459e8c04c142e4a2c5c5', x'b32a1faceb194aa9b62e1642ce903d6a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'156271d6c85a459e8c04c142e4a2c5c5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'156271d6c85a459e8c04c142e4a2c5c5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'156271d6c85a459e8c04c142e4a2c5c5', x'780484b3ad9c4864816b3b5a183ce2ef', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149f1f176_107080435d48548c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'b89f4557dbfe48a7941823484c6ecf26', 'jabanilson', NULL, 1, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accountb89f4557-dbfe-48a7-9418-23484c6ecf26' WHERE `accounts`.`id` = x'b89f4557dbfe48a7941823484c6ecf26'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b89f4557dbfe48a7941823484c6ecf26', x'1d9b22ced5fb4b2b9e551141c785c7cf', x'b3970bad3f60488b82bbbfac39793796') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1d9b22ced5fb4b2b9e551141c785c7cf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1d9b22ced5fb4b2b9e551141c785c7cf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1d9b22ced5fb4b2b9e551141c785c7cf', x'c24ddc029945409189a1c0f4bc7985b2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1d9b22ced5fb4b2b9e551141c785c7cf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1d9b22ced5fb4b2b9e551141c785c7cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1d9b22ced5fb4b2b9e551141c785c7cf', x'ac498ff5e72d44aca185fddf72965fe3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b3970bad3f60488b82bbbfac39793796' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b3970bad3f60488b82bbbfac39793796' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'b45eb48258ce4469b7832485b90eda3e', 'twitter', NULL, '123123123', NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'b3970bad3f60488b82bbbfac39793796' WHERE `social_accounts`.`id` = x'b45eb48258ce4469b7832485b90eda3e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'e2fd199f1765476cad229797a2240bdc', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:07', '2013-01-02 11:06:07', '', '$2a$04$arey5ArHgEotZhkF18lD8upIPTr6vPdCuViit1nCAO30umv6tCDy.', NULL, x'138fb66858e14e0f845c87a9920ed251', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.3ms) UPDATE `social_accounts` SET `user_id` = x'138fb66858e14e0f845c87a9920ed251' WHERE `social_accounts`.`id` = x'e2fd199f1765476cad229797a2240bdc' ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'138fb66858e14e0f845c87a9920ed251' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'adbcedb10f29451fba8f735d3107681e', '977c290d0411c0bbda7d0152f9d81d49', x'138fb66858e14e0f845c87a9920ed251', 'User', '2013-01-02 11:06:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'138fb66858e14e0f845c87a9920ed251' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'f2256ef1b8764566a2f56126b0a16c39', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accountf2256ef1-b876-4566-a2f5-6126b0a16c39' WHERE `accounts`.`id` = x'f2256ef1b8764566a2f56126b0a16c39' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f2256ef1b8764566a2f56126b0a16c39' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f2256ef1b8764566a2f56126b0a16c39', x'c1b51e35e1454e168250412598f964dc', x'138fb66858e14e0f845c87a9920ed251') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c1b51e35e1454e168250412598f964dc') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c1b51e35e1454e168250412598f964dc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c1b51e35e1454e168250412598f964dc', x'c2a1c2e0657742e2beeb84e97ac1c102', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c1b51e35e1454e168250412598f964dc') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c1b51e35e1454e168250412598f964dc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c1b51e35e1454e168250412598f964dc', x'dd77e276b8e64d0d831df94cf89e500b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'138fb66858e14e0f845c87a9920ed251' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'138fb66858e14e0f845c87a9920ed251' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"E2FD199F1765476CAD229797A2240BDC"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'138fb66858e14e0f845c87a9920ed251' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'138fb66858e14e0f845c87a9920ed251' AND `social_accounts`.`id` = x'e2fd199f1765476cad229797a2240bdc' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'138fb66858e14e0f845c87a9920ed251' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'138fb66858e14e0f845c87a9920ed251' Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:07', 'teste@teste.com', '$2a$04$eGGjO3GerRknXU4uwU3f3ukBhR7nuHR7v/y4TOrwOihgO52bAuFSe', NULL, x'60a408d08c4744df9ef15fc4be3aa1f1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'60a408d08c4744df9ef15fc4be3aa1f1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'065aed764b58474ba0ac75272ca01ceb', '0c8f5efc270ac843f4653187f973391c', x'60a408d08c4744df9ef15fc4be3aa1f1', 'User', '2013-01-02 11:06:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'60a408d08c4744df9ef15fc4be3aa1f1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'0371b749e2fa4fddb6a50b53168ddbac', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account0371b749-e2fa-4fdd-b6a5-0b53168ddbac' WHERE `accounts`.`id` = x'0371b749e2fa4fddb6a50b53168ddbac' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0371b749e2fa4fddb6a50b53168ddbac' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0371b749e2fa4fddb6a50b53168ddbac', x'ae4e4a47a345428d92dc2c98ff135312', x'60a408d08c4744df9ef15fc4be3aa1f1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ae4e4a47a345428d92dc2c98ff135312') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae4e4a47a345428d92dc2c98ff135312' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae4e4a47a345428d92dc2c98ff135312', x'faf01184f5ec4c8891f2bc6259811137', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ae4e4a47a345428d92dc2c98ff135312') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ae4e4a47a345428d92dc2c98ff135312' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ae4e4a47a345428d92dc2c98ff135312', x'cc5a03d2664d4fbea70e8929d94e892c', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149f51991_107080435d48549ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'a52fa5e11fe54312a78dc2a97bd134a4', 'jabanilson', NULL, 1, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accounta52fa5e1-1fe5-4312-a78d-c2a97bd134a4' WHERE `accounts`.`id` = x'a52fa5e11fe54312a78dc2a97bd134a4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a52fa5e11fe54312a78dc2a97bd134a4', x'0d8131cb2c52410e93ac2c247b3b2f54', x'60a408d08c4744df9ef15fc4be3aa1f1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0d8131cb2c52410e93ac2c247b3b2f54') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d8131cb2c52410e93ac2c247b3b2f54' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d8131cb2c52410e93ac2c247b3b2f54', x'1ac6a1a0a72245e4a97577a5111461d6', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0d8131cb2c52410e93ac2c247b3b2f54') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d8131cb2c52410e93ac2c247b3b2f54' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d8131cb2c52410e93ac2c247b3b2f54', x'60e4a2e872d24fe29330fe82c7d207e3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60a408d08c4744df9ef15fc4be3aa1f1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'60a408d08c4744df9ef15fc4be3aa1f1' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'd8006c67e67c4a5ab14e0c4ece045f31', 'twitter', NULL, '123123123', NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'60a408d08c4744df9ef15fc4be3aa1f1' WHERE `social_accounts`.`id` = x'd8006c67e67c4a5ab14e0c4ece045f31'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'088b2370296243fd811b65859374e17b', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:07', '2013-01-02 11:06:07', '', '$2a$04$AXbMRjdFZGPSkRkT864IYeV.Fu1yvDAox/CCFxEo/NXY.V/WtGIgi', NULL, x'0b61786f79ef4ffca891e4c54c315a70', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `social_accounts` SET `user_id` = x'0b61786f79ef4ffca891e4c54c315a70' WHERE `social_accounts`.`id` = x'088b2370296243fd811b65859374e17b' ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0b61786f79ef4ffca891e4c54c315a70' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'a6154186451249de89b1130971b4e088', 'bf74985e86c5f3fed9b5c9e95eed1631', x'0b61786f79ef4ffca891e4c54c315a70', 'User', '2013-01-02 11:06:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0b61786f79ef4ffca891e4c54c315a70' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'e493ebd6cf64431b8f3081425be94ee6', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accounte493ebd6-cf64-431b-8f30-81425be94ee6' WHERE `accounts`.`id` = x'e493ebd6cf64431b8f3081425be94ee6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e493ebd6cf64431b8f3081425be94ee6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e493ebd6cf64431b8f3081425be94ee6', x'47753cc5838b4a38bb547fa94e88e0c5', x'0b61786f79ef4ffca891e4c54c315a70') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'47753cc5838b4a38bb547fa94e88e0c5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'47753cc5838b4a38bb547fa94e88e0c5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'47753cc5838b4a38bb547fa94e88e0c5', x'9ad18d52c09b42ca80400af0b047155c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'47753cc5838b4a38bb547fa94e88e0c5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'47753cc5838b4a38bb547fa94e88e0c5' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'47753cc5838b4a38bb547fa94e88e0c5', x'bec572e415044405a04de4d091e54ef7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0b61786f79ef4ffca891e4c54c315a70' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0b61786f79ef4ffca891e4c54c315a70' LIMIT 1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"088B2370296243FD811B65859374E17B"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0b61786f79ef4ffca891e4c54c315a70' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0b61786f79ef4ffca891e4c54c315a70' AND `social_accounts`.`id` = x'088b2370296243fd811b65859374e17b' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0b61786f79ef4ffca891e4c54c315a70' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0b61786f79ef4ffca891e4c54c315a70' Redirected to http://test.host/settings/profile Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:07', 'teste@teste.com', '$2a$04$K1.0K0/WgjD4HYrwiuVHjOP2SYl1p/4s6fwUA1/MczjZXpJHAN1Um', NULL, x'ae1956a1583e41ebb7805bdf18c69be7', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ae1956a1583e41ebb7805bdf18c69be7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'c84bc432e6b541c29af7e4b6caa30d3a', '05a6a76a5b2e2152e8cd17e99c4445b0', x'ae1956a1583e41ebb7805bdf18c69be7', 'User', '2013-01-02 11:06:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ae1956a1583e41ebb7805bdf18c69be7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'9284cd371adc49b7a35d89ebdd52313b', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account9284cd37-1adc-49b7-a35d-89ebdd52313b' WHERE `accounts`.`id` = x'9284cd371adc49b7a35d89ebdd52313b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9284cd371adc49b7a35d89ebdd52313b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9284cd371adc49b7a35d89ebdd52313b', x'076d257a9164415d89043b0ae3297731', x'ae1956a1583e41ebb7805bdf18c69be7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'076d257a9164415d89043b0ae3297731') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'076d257a9164415d89043b0ae3297731' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'076d257a9164415d89043b0ae3297731', x'31e662eea50e40df96555291d91a7d1f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'076d257a9164415d89043b0ae3297731') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'076d257a9164415d89043b0ae3297731' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'076d257a9164415d89043b0ae3297731', x'fa4be6ae571140e68dd4127e7eca49f2', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149f6cc11_107080435d485506a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'3de7d198de984406b4f025721967b1f4', 'jabanilson', NULL, 1, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account3de7d198-de98-4406-b4f0-25721967b1f4' WHERE `accounts`.`id` = x'3de7d198de984406b4f025721967b1f4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3de7d198de984406b4f025721967b1f4', x'12062b2ab9754b68ac5f162e694f6b72', x'ae1956a1583e41ebb7805bdf18c69be7') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'12062b2ab9754b68ac5f162e694f6b72') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'12062b2ab9754b68ac5f162e694f6b72' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'12062b2ab9754b68ac5f162e694f6b72', x'c46064c6b1314933ae1ac990b0378af6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'12062b2ab9754b68ac5f162e694f6b72') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'12062b2ab9754b68ac5f162e694f6b72' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'12062b2ab9754b68ac5f162e694f6b72', x'527feb125d8340349042f24f7cb165e8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ae1956a1583e41ebb7805bdf18c69be7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ae1956a1583e41ebb7805bdf18c69be7' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'b3b10148048f4cfb9281ac534fa12daa', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `social_accounts` SET `user_id` = x'ae1956a1583e41ebb7805bdf18c69be7' WHERE `social_accounts`.`id` = x'b3b10148048f4cfb9281ac534fa12daa'  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ae1956a1583e41ebb7805bdf18c69be7' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ae1956a1583e41ebb7805bdf18c69be7' AND `social_accounts`.`id` = x'00000000000039313238373339313237' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:07', 'teste@teste.com', '$2a$04$zJI8jUDt.KsfPDxVX98DJeomjB4JIxSTNIRihSkMzzDJxHnsBpwQG', NULL, x'155cf27ebea842cead4d2db2ab2bd8a0', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'155cf27ebea842cead4d2db2ab2bd8a0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'5015a3050bfc4e8f926021072f0b8b43', '22382eb101cde656738c5745eb3f6344', x'155cf27ebea842cead4d2db2ab2bd8a0', 'User', '2013-01-02 11:06:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'155cf27ebea842cead4d2db2ab2bd8a0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'121e7ae6dab54c24bd83bb4cd801ea9e', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account121e7ae6-dab5-4c24-bd83-bb4cd801ea9e' WHERE `accounts`.`id` = x'121e7ae6dab54c24bd83bb4cd801ea9e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'121e7ae6dab54c24bd83bb4cd801ea9e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'121e7ae6dab54c24bd83bb4cd801ea9e', x'32b2b833943b4d9694f02af6ff0ec56e', x'155cf27ebea842cead4d2db2ab2bd8a0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'32b2b833943b4d9694f02af6ff0ec56e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'32b2b833943b4d9694f02af6ff0ec56e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'32b2b833943b4d9694f02af6ff0ec56e', x'2eabafda740f4a9a934d9536bbd198b9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'32b2b833943b4d9694f02af6ff0ec56e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'32b2b833943b4d9694f02af6ff0ec56e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'32b2b833943b4d9694f02af6ff0ec56e', x'c0fdabf7342b445d8a5a2ecc7abae907', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149f803ad_107080435d4855120@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'd8c57b801a134a70a98007d9075845c8', 'jabanilson', NULL, 1, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accountd8c57b80-1a13-4a70-a980-07d9075845c8' WHERE `accounts`.`id` = x'd8c57b801a134a70a98007d9075845c8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd8c57b801a134a70a98007d9075845c8', x'b26262ab42c34962873f79e9fbc6e112', x'155cf27ebea842cead4d2db2ab2bd8a0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b26262ab42c34962873f79e9fbc6e112') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b26262ab42c34962873f79e9fbc6e112' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b26262ab42c34962873f79e9fbc6e112', x'efc069163a984483858fda2542eb8f7a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b26262ab42c34962873f79e9fbc6e112') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b26262ab42c34962873f79e9fbc6e112' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b26262ab42c34962873f79e9fbc6e112', x'8d60caeafa784b9ebb4ec8e6d650b0e4', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'155cf27ebea842cead4d2db2ab2bd8a0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'155cf27ebea842cead4d2db2ab2bd8a0' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8387f9f2ce4c4e7d800b716e3c764658', 'twitter', NULL, '123123123', NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `social_accounts` SET `user_id` = x'155cf27ebea842cead4d2db2ab2bd8a0' WHERE `social_accounts`.`id` = x'8387f9f2ce4c4e7d800b716e3c764658'  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#destroy_social as HTML Parameters: {"id"=>"9128739127"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'155cf27ebea842cead4d2db2ab2bd8a0' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'155cf27ebea842cead4d2db2ab2bd8a0' AND `social_accounts`.`id` = x'00000000000039313238373339313237' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (1.3ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:07', 'teste@teste.com', '$2a$04$YCOtbouIqH6JOCsTrX1hd.TgdW.EMBUr1yeVQwtKnTKHmVCCq4/CG', NULL, x'02b8392e2ef34e43b75b4a89da5a3ed4', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'02b8392e2ef34e43b75b4a89da5a3ed4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'55b5291565594734bbe86c2fa890ec48', 'aadd83ed721598762ed53f5c66d1ff45', x'02b8392e2ef34e43b75b4a89da5a3ed4', 'User', '2013-01-02 11:06:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'02b8392e2ef34e43b75b4a89da5a3ed4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'746244cc0d28496e8639aee410e2a8b9', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account746244cc-0d28-496e-8639-aee410e2a8b9' WHERE `accounts`.`id` = x'746244cc0d28496e8639aee410e2a8b9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'746244cc0d28496e8639aee410e2a8b9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'746244cc0d28496e8639aee410e2a8b9', x'1efd2f6f8de84e86b8ffe892b064ed83', x'02b8392e2ef34e43b75b4a89da5a3ed4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1efd2f6f8de84e86b8ffe892b064ed83') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1efd2f6f8de84e86b8ffe892b064ed83' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1efd2f6f8de84e86b8ffe892b064ed83', x'5f1f88ee18284c5fa67561418414f306', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1efd2f6f8de84e86b8ffe892b064ed83') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1efd2f6f8de84e86b8ffe892b064ed83' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1efd2f6f8de84e86b8ffe892b064ed83', x'fc77819941b5434aae5d75b6e50ef4e8', 'admin') Sent mail to teste@teste.com (103ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149f939f5_107080435d485522a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'ef968c5a49fa40baab94ef1d1ce1066c', 'jabanilson', NULL, 1, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accountef968c5a-49fa-40ba-ab94-ef1d1ce1066c' WHERE `accounts`.`id` = x'ef968c5a49fa40baab94ef1d1ce1066c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ef968c5a49fa40baab94ef1d1ce1066c', x'26d18e166de0454db1797d9183d21140', x'02b8392e2ef34e43b75b4a89da5a3ed4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'26d18e166de0454db1797d9183d21140') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'26d18e166de0454db1797d9183d21140' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'26d18e166de0454db1797d9183d21140', x'db2f9edc1e404f9692672df7f51f3221', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'26d18e166de0454db1797d9183d21140') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'26d18e166de0454db1797d9183d21140' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'26d18e166de0454db1797d9183d21140', x'cd56e78d4bc94be28c02bd9eaf395385', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'02b8392e2ef34e43b75b4a89da5a3ed4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'02b8392e2ef34e43b75b4a89da5a3ed4' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ec5755345a6a4f63b0868343d2bac623', 'twitter', NULL, '123123123', NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'02b8392e2ef34e43b75b4a89da5a3ed4' WHERE `social_accounts`.`id` = x'ec5755345a6a4f63b0868343d2bac623'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:07', '2013-01-02 11:06:07', '', '', 1, x'59e9a6ac036b475fae1f532eb90a3dfc', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'59e9a6ac036b475fae1f532eb90a3dfc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'6434e2d8e79946e480065abe8bf78644', '1d2b0538c15b6d7c0cb0b3579ce4fd86', x'59e9a6ac036b475fae1f532eb90a3dfc', 'User', '2013-01-02 11:06:07') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'59e9a6ac036b475fae1f532eb90a3dfc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'c057114f280e44e2885e61696849d5a8', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accountc057114f-280e-44e2-885e-61696849d5a8' WHERE `accounts`.`id` = x'c057114f280e44e2885e61696849d5a8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c057114f280e44e2885e61696849d5a8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c057114f280e44e2885e61696849d5a8', x'519f06b2a4a5467993f342c703a1a8c7', x'59e9a6ac036b475fae1f532eb90a3dfc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'519f06b2a4a5467993f342c703a1a8c7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'519f06b2a4a5467993f342c703a1a8c7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'519f06b2a4a5467993f342c703a1a8c7', x'e98febb3d4704ee68a56d749980a5ced', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'519f06b2a4a5467993f342c703a1a8c7') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'519f06b2a4a5467993f342c703a1a8c7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'519f06b2a4a5467993f342c703a1a8c7', x'773724e1d0c3480fbb00b3ce80e676b7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:07', NULL, '--- !ruby/struct:DestroyUserJob\nid: 59e9a6ac-036b-475f-ae1f-532eb90a3dfc\n', NULL, NULL, NULL, 0, 'guest_59e9a6ac-036b-475f-ae1f-532eb90a3dfc_destroy', '2013-01-09 11:06:07', '2013-01-02 11:06:07')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'59e9a6ac036b475fae1f532eb90a3dfc' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'59e9a6ac036b475fae1f532eb90a3dfc' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'59e9a6ac036b475fae1f532eb90a3dfc') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$Flk1YMMMcPILc7ezAdnsrOm194U2IQ/ZIu/WsFjjzIOTslpQOrMAC', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2013-01-02 11:06:07' WHERE `users`.`id` = x'59e9a6ac036b475fae1f532eb90a3dfc' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'YpyHyEBheqcnpyNNms5P' LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$Flk1YMMMcPILc7ezAdnsrOm194U2IQ/ZIu/WsFjjzIOTslpQOrMAC', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2013-01-02 11:06:07', `confirmation_token` = 'YpyHyEBheqcnpyNNms5P', `confirmation_sent_at` = '2013-01-02 11:06:07' WHERE `users`.`id` = x'59e9a6ac036b475fae1f532eb90a3dfc' Sent mail to regular@user.email (6ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: regular@user.email Message-ID: <50e4149fc2331_107080435d485539@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_59e9a6ac-036b-475f-ae1f-532eb90a3dfc_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'59e9a6ac036b475fae1f532eb90a3dfc' AND (accounts.id = x'746244cc0d28496e8639aee410e2a8b9') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'59e9a6ac036b475fae1f532eb90a3dfc' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 45ms (ActiveRecord: 4.4ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:07', 'teste@teste.com', '$2a$04$8odTSBHV9BLuZCIFJnjKl.dODFd2NLI7VyvCc8hPBniQFr4QaS/hS', NULL, x'079f83b38cea4eecab4b448aff50be6d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'079f83b38cea4eecab4b448aff50be6d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'2faec1c8cbd44c0ba9413a97a9bf592d', '07c9c1c1b71488bc70f5403f39d14c55', x'079f83b38cea4eecab4b448aff50be6d', 'User', '2013-01-02 11:06:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'079f83b38cea4eecab4b448aff50be6d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'fd1098f391064cf99fffd43b920f989f', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accountfd1098f3-9106-4cf9-9fff-d43b920f989f' WHERE `accounts`.`id` = x'fd1098f391064cf99fffd43b920f989f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fd1098f391064cf99fffd43b920f989f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fd1098f391064cf99fffd43b920f989f', x'8dbbc2ff2b164f3191827c147b6bc169', x'079f83b38cea4eecab4b448aff50be6d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8dbbc2ff2b164f3191827c147b6bc169') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8dbbc2ff2b164f3191827c147b6bc169' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8dbbc2ff2b164f3191827c147b6bc169', x'15f5816acb5348738e127302cd9e8a0f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8dbbc2ff2b164f3191827c147b6bc169') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8dbbc2ff2b164f3191827c147b6bc169' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8dbbc2ff2b164f3191827c147b6bc169', x'1bbfc4269c97486c80f9332412140fb0', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e4149fd02a8_107080435d485543f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'4791da1bc1b24556bb6710b53b4bc06f', 'jabanilson', NULL, 1, '2013-01-02 11:06:07')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account4791da1b-c1b2-4556-bb67-10b53b4bc06f' WHERE `accounts`.`id` = x'4791da1bc1b24556bb6710b53b4bc06f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4791da1bc1b24556bb6710b53b4bc06f', x'e0a9251717ef4d5e891c7a10f7104ddd', x'079f83b38cea4eecab4b448aff50be6d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e0a9251717ef4d5e891c7a10f7104ddd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e0a9251717ef4d5e891c7a10f7104ddd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e0a9251717ef4d5e891c7a10f7104ddd', x'f85e2c0166b24ff38d3035f16cefd229', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e0a9251717ef4d5e891c7a10f7104ddd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e0a9251717ef4d5e891c7a10f7104ddd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e0a9251717ef4d5e891c7a10f7104ddd', x'1d3dbd8da1884a34ac8f26dd63e0e699', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'079f83b38cea4eecab4b448aff50be6d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'079f83b38cea4eecab4b448aff50be6d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'b53946ee12924df6a1f59cf4054aa437', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'079f83b38cea4eecab4b448aff50be6d' WHERE `social_accounts`.`id` = x'b53946ee12924df6a1f59cf4054aa437'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:07', '2013-01-02 11:06:07', '', '', 1, x'498d9a7647044db1a5848c5ac4812f29', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'498d9a7647044db1a5848c5ac4812f29' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'b3f9152b5bf141228707ac563177e630', '5aba4dfdb32139da18f23e8b7303a663', x'498d9a7647044db1a5848c5ac4812f29', 'User', '2013-01-02 11:06:07') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'498d9a7647044db1a5848c5ac4812f29' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'fffc44e8477545e78096aa9508058876', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'accountfffc44e8-4775-45e7-8096-aa9508058876' WHERE `accounts`.`id` = x'fffc44e8477545e78096aa9508058876' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fffc44e8477545e78096aa9508058876' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fffc44e8477545e78096aa9508058876', x'b5e0219738034eb6b1ee1dc8c8ee5f6c', x'498d9a7647044db1a5848c5ac4812f29') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b5e0219738034eb6b1ee1dc8c8ee5f6c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b5e0219738034eb6b1ee1dc8c8ee5f6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b5e0219738034eb6b1ee1dc8c8ee5f6c', x'f0817408d9b046aa83fc65eaa481608f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b5e0219738034eb6b1ee1dc8c8ee5f6c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b5e0219738034eb6b1ee1dc8c8ee5f6c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b5e0219738034eb6b1ee1dc8c8ee5f6c', x'9b4c5438f79b48b1b53b2f6b9adacf5e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:07', NULL, '--- !ruby/struct:DestroyUserJob\nid: 498d9a76-4704-4db1-a584-8c5ac4812f29\n', NULL, NULL, NULL, 0, 'guest_498d9a76-4704-4db1-a584-8c5ac4812f29_destroy', '2013-01-09 11:06:07', '2013-01-02 11:06:07')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'498d9a7647044db1a5848c5ac4812f29' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'498d9a7647044db1a5848c5ac4812f29' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'498d9a7647044db1a5848c5ac4812f29') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$fA8uVAUr0R64WCPoJdbemuK03d8K719kG06zf6N3D3bGhBV6qF9U6', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2013-01-02 11:06:07' WHERE `users`.`id` = x'498d9a7647044db1a5848c5ac4812f29' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'yrGhghNXqAWfaW584vwT' LIMIT 1  (0.3ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$fA8uVAUr0R64WCPoJdbemuK03d8K719kG06zf6N3D3bGhBV6qF9U6', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2013-01-02 11:06:07', `confirmation_token` = 'yrGhghNXqAWfaW584vwT', `confirmation_sent_at` = '2013-01-02 11:06:07' WHERE `users`.`id` = x'498d9a7647044db1a5848c5ac4812f29' Sent mail to regular@user.email (6ms) Date: Wed, 02 Jan 2013 09:06:07 -0200 From: iugu Reply-To: iugu To: regular@user.email Message-ID: <50e4149fe4f80_107080435d4855569@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_498d9a76-4704-4db1-a584-8c5ac4812f29_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'498d9a7647044db1a5848c5ac4812f29' AND (accounts.id = x'fd1098f391064cf99fffd43b920f989f') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'498d9a7647044db1a5848c5ac4812f29' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 37ms (ActiveRecord: 4.8ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:07', 'teste@teste.com', '$2a$04$qlT8BMdvnPABK0oBnOWzoe/Vs9jxBKQq0S6tQFmgINfKINhZtEeui', NULL, x'de6cf74ffba14ae38a253466938259d2', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:07') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'de6cf74ffba14ae38a253466938259d2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:07', 'User', x'3820b43df69e4d5ca3c67fc00cc52e8a', 'b22d901826a4c95069040f8d735865fd', x'de6cf74ffba14ae38a253466938259d2', 'User', '2013-01-02 11:06:07') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'de6cf74ffba14ae38a253466938259d2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:07', x'2411b33abd854addb9563fa02206d83b', NULL, NULL, NULL, '2013-01-02 11:06:07')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:07', `updated_at` = '2013-01-02 11:06:07', `subdomain` = 'account2411b33a-bd85-4add-b956-3fa02206d83b' WHERE `accounts`.`id` = x'2411b33abd854addb9563fa02206d83b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2411b33abd854addb9563fa02206d83b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2411b33abd854addb9563fa02206d83b', x'c11f1374f71f484e9671b7b51dce1b69', x'de6cf74ffba14ae38a253466938259d2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c11f1374f71f484e9671b7b51dce1b69') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c11f1374f71f484e9671b7b51dce1b69' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c11f1374f71f484e9671b7b51dce1b69', x'7177f536e32d4ad28c0cb6baf05f5d58', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c11f1374f71f484e9671b7b51dce1b69') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c11f1374f71f484e9671b7b51dce1b69' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c11f1374f71f484e9671b7b51dce1b69', x'c93f3eecffb147a09c1813f110179a7b', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:08 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a01621e_107080435d4855658@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:08', x'186c235ad828420e850545b0a45b2373', 'jabanilson', NULL, 1, '2013-01-02 11:06:08')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:08', `updated_at` = '2013-01-02 11:06:08', `subdomain` = 'account186c235a-d828-420e-8505-45b0a45b2373' WHERE `accounts`.`id` = x'186c235ad828420e850545b0a45b2373'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'186c235ad828420e850545b0a45b2373', x'e8772c9346d54878b038eed52856c4bb', x'de6cf74ffba14ae38a253466938259d2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e8772c9346d54878b038eed52856c4bb') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e8772c9346d54878b038eed52856c4bb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e8772c9346d54878b038eed52856c4bb', x'92fc8103a17f45bcb9ef61c6f1c3a379', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e8772c9346d54878b038eed52856c4bb') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e8772c9346d54878b038eed52856c4bb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e8772c9346d54878b038eed52856c4bb', x'cd6bc4d9d8b544e4bcdef4a1bb562009', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'de6cf74ffba14ae38a253466938259d2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'de6cf74ffba14ae38a253466938259d2' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'c900141e90234e458a85ca3df10d8607', 'twitter', NULL, '123123123', NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'de6cf74ffba14ae38a253466938259d2' WHERE `social_accounts`.`id` = x'c900141e90234e458a85ca3df10d8607'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:08', '2013-01-02 11:06:08', '', '', 1, x'7ba846a0897f43989e3ab4e042f0d67f', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7ba846a0897f43989e3ab4e042f0d67f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:08', 'User', x'cd124bbc39604374a8148adbe7186892', '16cb5b1092896680a4f12ce890e3c551', x'7ba846a0897f43989e3ab4e042f0d67f', 'User', '2013-01-02 11:06:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7ba846a0897f43989e3ab4e042f0d67f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:08', x'54b1e1b60025405e950558b7ab8bb9d0', NULL, NULL, NULL, '2013-01-02 11:06:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:08', `updated_at` = '2013-01-02 11:06:08', `subdomain` = 'account54b1e1b6-0025-405e-9505-58b7ab8bb9d0' WHERE `accounts`.`id` = x'54b1e1b60025405e950558b7ab8bb9d0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'54b1e1b60025405e950558b7ab8bb9d0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'54b1e1b60025405e950558b7ab8bb9d0', x'7a6e32702d674f1392503869d5326e8f', x'7ba846a0897f43989e3ab4e042f0d67f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7a6e32702d674f1392503869d5326e8f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a6e32702d674f1392503869d5326e8f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a6e32702d674f1392503869d5326e8f', x'024a360200454de1aa76ad49df91f40d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7a6e32702d674f1392503869d5326e8f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a6e32702d674f1392503869d5326e8f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a6e32702d674f1392503869d5326e8f', x'01669c6dd81648c590ff30e15cd56249', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:08', NULL, '--- !ruby/struct:DestroyUserJob\nid: 7ba846a0-897f-4398-9e3a-b4e042f0d67f\n', NULL, NULL, NULL, 0, 'guest_7ba846a0-897f-4398-9e3a-b4e042f0d67f_destroy', '2013-01-09 11:06:08', '2013-01-02 11:06:08')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7ba846a0897f43989e3ab4e042f0d67f' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7ba846a0897f43989e3ab4e042f0d67f' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.email' AND `users`.`id` != x'7ba846a0897f43989e3ab4e042f0d67f') LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$yda..V9NACd2zfBgn6w8cuAB0hBGJlFaxS0Au3zktzn4/xrVAl60.', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2013-01-02 11:06:08' WHERE `users`.`id` = x'7ba846a0897f43989e3ab4e042f0d67f' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'CsqWWwxKwb1ywKe8sqFv' LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$yda..V9NACd2zfBgn6w8cuAB0hBGJlFaxS0Au3zktzn4/xrVAl60.', `unconfirmed_email` = 'regular@user.email', `updated_at` = '2013-01-02 11:06:08', `confirmation_token` = 'CsqWWwxKwb1ywKe8sqFv', `confirmation_sent_at` = '2013-01-02 11:06:08' WHERE `users`.`id` = x'7ba846a0897f43989e3ab4e042f0d67f' Sent mail to regular@user.email (6ms) Date: Wed, 02 Jan 2013 09:06:08 -0200 From: iugu Reply-To: iugu To: regular@user.email Message-ID: <50e414a02ae8d_107080435d4855780@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_7ba846a0-897f-4398-9e3a-b4e042f0d67f_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 16  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7ba846a0897f43989e3ab4e042f0d67f' AND (accounts.id = x'186c235ad828420e850545b0a45b2373') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7ba846a0897f43989e3ab4e042f0d67f' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 37ms (ActiveRecord: 4.9ms) Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} Completed 404 Not Found in 1ms  (1.5ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:08', 'teste@teste.com', '$2a$04$9jTonLJUFArm9KARa9M3GOrUWmhrZxM8CShdAb2tD999cGlh/bTrC', NULL, x'745abd02fa7d4b2d8147b4845d751a5c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'745abd02fa7d4b2d8147b4845d751a5c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:08', 'User', x'6e07213d6e684a8794e4efe66fcd5e04', '356d0c536227169391ec3fa126da3c1c', x'745abd02fa7d4b2d8147b4845d751a5c', 'User', '2013-01-02 11:06:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'745abd02fa7d4b2d8147b4845d751a5c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:08', x'7f74b8be591b46c9a929f5f152ce8529', NULL, NULL, NULL, '2013-01-02 11:06:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:08', `updated_at` = '2013-01-02 11:06:08', `subdomain` = 'account7f74b8be-591b-46c9-a929-f5f152ce8529' WHERE `accounts`.`id` = x'7f74b8be591b46c9a929f5f152ce8529' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7f74b8be591b46c9a929f5f152ce8529' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7f74b8be591b46c9a929f5f152ce8529', x'8cf96248cee64a54b09522c93f8f4328', x'745abd02fa7d4b2d8147b4845d751a5c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8cf96248cee64a54b09522c93f8f4328') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cf96248cee64a54b09522c93f8f4328' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cf96248cee64a54b09522c93f8f4328', x'845829ae8a564eeaaefdfc718c564487', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8cf96248cee64a54b09522c93f8f4328') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8cf96248cee64a54b09522c93f8f4328' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8cf96248cee64a54b09522c93f8f4328', x'da957024d92d4ae0a0c34016aadc3c48', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:08 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a0398ad_107080435d485588@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:08', x'4874b52aa0da40408adb899c8f90597e', 'jabanilson', NULL, 1, '2013-01-02 11:06:08')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:08', `updated_at` = '2013-01-02 11:06:08', `subdomain` = 'account4874b52a-a0da-4040-8adb-899c8f90597e' WHERE `accounts`.`id` = x'4874b52aa0da40408adb899c8f90597e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4874b52aa0da40408adb899c8f90597e', x'd087cbec9a784728a7ca3eec6efe7475', x'745abd02fa7d4b2d8147b4845d751a5c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd087cbec9a784728a7ca3eec6efe7475') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd087cbec9a784728a7ca3eec6efe7475' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd087cbec9a784728a7ca3eec6efe7475', x'98a944828fbd40c6844833879642d71d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd087cbec9a784728a7ca3eec6efe7475') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd087cbec9a784728a7ca3eec6efe7475' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd087cbec9a784728a7ca3eec6efe7475', x'7e9de266aeb74b97b5a8f48d49911147', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'745abd02fa7d4b2d8147b4845d751a5c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'745abd02fa7d4b2d8147b4845d751a5c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'971d0259fc254b33a120daf34a58d14c', 'twitter', NULL, '123123123', NULL, NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'745abd02fa7d4b2d8147b4845d751a5c' WHERE `social_accounts`.`id` = x'971d0259fc254b33a120daf34a58d14c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:08', '2013-01-02 11:06:08', '', '', 1, x'4c4d43c8774c43d4916054b4e55e1023', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4c4d43c8774c43d4916054b4e55e1023' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:08', 'User', x'5b8d19cda7764a4c9f2543003f492632', '751fb278eea1b5c5e47549abc9c825f4', x'4c4d43c8774c43d4916054b4e55e1023', 'User', '2013-01-02 11:06:08') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4c4d43c8774c43d4916054b4e55e1023' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:08', x'34be7ac37b7846f39850e5d6fa6599e6', NULL, NULL, NULL, '2013-01-02 11:06:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:08', `updated_at` = '2013-01-02 11:06:08', `subdomain` = 'account34be7ac3-7b78-46f3-9850-e5d6fa6599e6' WHERE `accounts`.`id` = x'34be7ac37b7846f39850e5d6fa6599e6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'34be7ac37b7846f39850e5d6fa6599e6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'34be7ac37b7846f39850e5d6fa6599e6', x'a3a13358713d4a99888f09e686403a83', x'4c4d43c8774c43d4916054b4e55e1023') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a3a13358713d4a99888f09e686403a83') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3a13358713d4a99888f09e686403a83' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a3a13358713d4a99888f09e686403a83', x'6fc58aabfbeb4d3d8c5da44dca17ab63', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a3a13358713d4a99888f09e686403a83') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a3a13358713d4a99888f09e686403a83' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a3a13358713d4a99888f09e686403a83', x'acd37b11274f4fc28db6abbd2ad1eeba', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:08', NULL, '--- !ruby/struct:DestroyUserJob\nid: 4c4d43c8-774c-43d4-9160-54b4e55e1023\n', NULL, NULL, NULL, 0, 'guest_4c4d43c8-774c-43d4-9160-54b4e55e1023_destroy', '2013-01-09 11:06:08', '2013-01-02 11:06:08')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by Iugu::ProfileController#become_user as HTML Parameters: {"user"=>{"email"=>"regular@user.email", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4c4d43c8774c43d4916054b4e55e1023' LIMIT 1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.5ms)  (1.4ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:08', '2013-01-02 11:06:08', '', '', 1, x'4dba378af4f64015a7c6175e056133ab', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:08') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4dba378af4f64015a7c6175e056133ab' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:08', 'User', x'24d676f2c55f42de9e30bdfaccb09b6f', '6b3c1deb0484464a701e0f290c65f121', x'4dba378af4f64015a7c6175e056133ab', 'User', '2013-01-02 11:06:08') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4dba378af4f64015a7c6175e056133ab' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:08', x'9e4d4af489a64937a44f69ceb7c81365', NULL, NULL, NULL, '2013-01-02 11:06:08')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:08', `updated_at` = '2013-01-02 11:06:08', `subdomain` = 'account9e4d4af4-89a6-4937-a44f-69ceb7c81365' WHERE `accounts`.`id` = x'9e4d4af489a64937a44f69ceb7c81365' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9e4d4af489a64937a44f69ceb7c81365' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9e4d4af489a64937a44f69ceb7c81365', x'21187052c02f44168630162e629f7557', x'4dba378af4f64015a7c6175e056133ab') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'21187052c02f44168630162e629f7557') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21187052c02f44168630162e629f7557' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21187052c02f44168630162e629f7557', x'd980b3c8a06d409ea157c4e6bcb2b9ac', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'21187052c02f44168630162e629f7557') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21187052c02f44168630162e629f7557' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21187052c02f44168630162e629f7557', x'f340e8e5e52c41f78ea65e02af46168c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:08', NULL, '--- !ruby/struct:DestroyUserJob\nid: 4dba378a-f4f6-4015-a7c6-175e056133ab\n', NULL, NULL, NULL, 0, 'guest_4dba378a-f4f6-4015-a7c6-175e056133ab_destroy', '2013-01-09 11:06:08', '2013-01-02 11:06:08')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `remember_created_at` = '2013-01-02 11:06:08', `updated_at` = '2013-01-02 11:06:08' WHERE `users`.`id` = x'4dba378af4f64015a7c6175e056133ab'  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4dba378af4f64015a7c6175e056133ab' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4dba378af4f64015a7c6175e056133ab' LIMIT 1 Redirected to http://test.host/ Completed 302 Found in 172ms (ActiveRecord: 7.7ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Iugu::RegistrationsController#try_first as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Redirected to http://test.host/pricing Completed 302 Found in 1ms (ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Iugu::RegistrationsController#new as HTML Parameters: {"plan"=>"test"} Completed 500 Internal Server Error in 1479ms  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:09', 'teste@teste.com', '$2a$04$/Ih7/wmbnXn8v2nYYy7UYeuBPK57fqlsdYLyYhKsmtnV12cZe2wDq', NULL, x'23db19ca0c524b258a08f8b343d7dd50', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:09') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'23db19ca0c524b258a08f8b343d7dd50' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:09', 'User', x'9dd7931652164373a4ad875169556b70', '8f440be0ca5f08f76e9edddfa632a718', x'23db19ca0c524b258a08f8b343d7dd50', 'User', '2013-01-02 11:06:09') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'23db19ca0c524b258a08f8b343d7dd50' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:09', x'a273365086aa49789df6122779e4b82f', NULL, NULL, NULL, '2013-01-02 11:06:09')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:09', `updated_at` = '2013-01-02 11:06:09', `subdomain` = 'accounta2733650-86aa-4978-9df6-122779e4b82f' WHERE `accounts`.`id` = x'a273365086aa49789df6122779e4b82f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a273365086aa49789df6122779e4b82f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a273365086aa49789df6122779e4b82f', x'766e25e7ea1f4373b929f2397a1d745c', x'23db19ca0c524b258a08f8b343d7dd50') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'766e25e7ea1f4373b929f2397a1d745c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'766e25e7ea1f4373b929f2397a1d745c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'766e25e7ea1f4373b929f2397a1d745c', x'887fac542ed94e02be375d3d8aa6b293', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'766e25e7ea1f4373b929f2397a1d745c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'766e25e7ea1f4373b929f2397a1d745c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'766e25e7ea1f4373b929f2397a1d745c', x'6c4c73de23424150b799c39102f62fe2', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a25292_107080435d4855953@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'4d53696b3ae0495aa7bbf05488e1a70f', 'jabanilson', NULL, 1, '2013-01-02 11:06:10')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account4d53696b-3ae0-495a-a7bb-f05488e1a70f' WHERE `accounts`.`id` = x'4d53696b3ae0495aa7bbf05488e1a70f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4d53696b3ae0495aa7bbf05488e1a70f', x'77bdd990f9954eceae3dbb3eeb9c5395', x'23db19ca0c524b258a08f8b343d7dd50') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'77bdd990f9954eceae3dbb3eeb9c5395') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'77bdd990f9954eceae3dbb3eeb9c5395' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'77bdd990f9954eceae3dbb3eeb9c5395', x'3156050c1aad4d8f9b525d0e7a27e939', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'77bdd990f9954eceae3dbb3eeb9c5395') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'77bdd990f9954eceae3dbb3eeb9c5395' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'77bdd990f9954eceae3dbb3eeb9c5395', x'a74c7b5f40084fcda97f1ced722f124d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'23db19ca0c524b258a08f8b343d7dd50' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'23db19ca0c524b258a08f8b343d7dd50' LIMIT 1 Processing by Iugu::SettingsController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'23db19ca0c524b258a08f8b343d7dd50' LIMIT 1 Redirected to http://test.host/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (11.0ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'teste@teste.com', '$2a$04$.j7mrWwzkfq3QAlAcR4XM.MqPPHFZYK0Dnk2kSoF7XQT6aN2knyJ.', NULL, x'e879f77f069c449797c8abe466fff8f3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e879f77f069c449797c8abe466fff8f3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'2c55a463e11e4cd1be178163122cc455', '07a0286e779a57355004fdc87be88cbd', x'e879f77f069c449797c8abe466fff8f3', 'User', '2013-01-02 11:06:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e879f77f069c449797c8abe466fff8f3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'183edd597eb14713868729006476d39a', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account183edd59-7eb1-4713-8687-29006476d39a' WHERE `accounts`.`id` = x'183edd597eb14713868729006476d39a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'183edd597eb14713868729006476d39a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'183edd597eb14713868729006476d39a', x'9ce42956dff746c5bce1017475b6ee95', x'e879f77f069c449797c8abe466fff8f3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9ce42956dff746c5bce1017475b6ee95') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9ce42956dff746c5bce1017475b6ee95' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9ce42956dff746c5bce1017475b6ee95', x'698b7e6d8b494368981f4eb8b42789a6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9ce42956dff746c5bce1017475b6ee95') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9ce42956dff746c5bce1017475b6ee95' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9ce42956dff746c5bce1017475b6ee95', x'd28eda89f83c4afeb8736aba96554d24', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a21a666_107080435d48560b5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'8d10075c3cce4ecf849b2cd74f4c500d', 'jabanilson', NULL, 1, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account8d10075c-3cce-4ecf-849b-2cd74f4c500d' WHERE `accounts`.`id` = x'8d10075c3cce4ecf849b2cd74f4c500d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8d10075c3cce4ecf849b2cd74f4c500d', x'9cd9796d0f004707822c0564bf7e9d2c', x'e879f77f069c449797c8abe466fff8f3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9cd9796d0f004707822c0564bf7e9d2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9cd9796d0f004707822c0564bf7e9d2c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9cd9796d0f004707822c0564bf7e9d2c', x'5fa911ee2cde4bd081136385ecceefce', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9cd9796d0f004707822c0564bf7e9d2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9cd9796d0f004707822c0564bf7e9d2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9cd9796d0f004707822c0564bf7e9d2c', x'd4aa21b163f44df5ad4235913e9e2cb8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e879f77f069c449797c8abe466fff8f3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e879f77f069c449797c8abe466fff8f3' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'user2@email.email', '$2a$04$Y7jvz2mB8iqti0dLlo9x0O9qhtrvG9Wbr4yTq1/iTJLx8GL.4s0cW', NULL, x'ae41e5cedfda4fa388ab4e2033511c7a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ae41e5cedfda4fa388ab4e2033511c7a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'01db9876ec944b44960524abe1e33de2', '9ac05db7d4f9be1f0618529be96abb07', x'ae41e5cedfda4fa388ab4e2033511c7a', 'User', '2013-01-02 11:06:10') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ae41e5cedfda4fa388ab4e2033511c7a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'ff4c9d2940a84312ab66a32691568feb', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'accountff4c9d29-40a8-4312-ab66-a32691568feb' WHERE `accounts`.`id` = x'ff4c9d2940a84312ab66a32691568feb' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ff4c9d2940a84312ab66a32691568feb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ff4c9d2940a84312ab66a32691568feb', x'ad251979a53146e7bf983570f6fc2c84', x'ae41e5cedfda4fa388ab4e2033511c7a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ad251979a53146e7bf983570f6fc2c84') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad251979a53146e7bf983570f6fc2c84' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad251979a53146e7bf983570f6fc2c84', x'aec05f57017442d4950352c08bae2282', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ad251979a53146e7bf983570f6fc2c84') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad251979a53146e7bf983570f6fc2c84' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad251979a53146e7bf983570f6fc2c84', x'0f29ebc314d1408dbef6cf9f2e1df7c3', 'admin') Sent mail to user2@email.email (6ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: user2@email.email Message-ID: <50e414a22a307_107080435d4856173@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e879f77f069c449797c8abe466fff8f3' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8d10075c3cce4ecf849b2cd74f4c500d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8d10075c3cce4ecf849b2cd74f4c500d', x'c3ac0ee9e62e46c6819286472b28f020', x'ae41e5cedfda4fa388ab4e2033511c7a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c3ac0ee9e62e46c6819286472b28f020') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3ac0ee9e62e46c6819286472b28f020' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3ac0ee9e62e46c6819286472b28f020', x'4af1b85cb14b46ea8cd96f3ce1ccd47a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c3ac0ee9e62e46c6819286472b28f020') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3ac0ee9e62e46c6819286472b28f020' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3ac0ee9e62e46c6819286472b28f020', x'67fc82886cec47b2ab181b39e9965e47', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e879f77f069c449797c8abe466fff8f3' AND `account_users`.`account_id` = x'8d10075c3cce4ecf849b2cd74f4c500d' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9cd9796d0f004707822c0564bf7e9d2c'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9cd9796d0f004707822c0564bf7e9d2c' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'5fa911ee2cde4bd081136385ecceefce' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd4aa21b163f44df5ad4235913e9e2cb8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9cd9796d0f004707822c0564bf7e9d2c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9cd9796d0f004707822c0564bf7e9d2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9cd9796d0f004707822c0564bf7e9d2c', x'9545297e3fc24d94b2c9015a2b5b88b0', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"8D10075C3CCE4ECF849B2CD74F4C500D"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e879f77f069c449797c8abe466fff8f3' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e879f77f069c449797c8abe466fff8f3' AND `account_users`.`account_id` = x'8d10075c3cce4ecf849b2cd74f4c500d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9cd9796d0f004707822c0564bf7e9d2c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9cd9796d0f004707822c0564bf7e9d2c' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 105ms (Views: 0.5ms | ActiveRecord: 1.6ms) Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"8D10075C3CCE4ECF849B2CD74F4C500D"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e879f77f069c449797c8abe466fff8f3' AND `account_users`.`account_id` = x'8d10075c3cce4ecf849b2cd74f4c500d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9cd9796d0f004707822c0564bf7e9d2c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9cd9796d0f004707822c0564bf7e9d2c' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'teste@teste.com', '$2a$04$qiJGSVPb5U8LTiwHhJhV3OwIaxlTLQqweg868ZuLnRRSUYFIAtO/.', NULL, x'd8edc95003e44561aeee218ce20deecd', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd8edc95003e44561aeee218ce20deecd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'379ed75ce4eb4373940f6c2556f781c3', '8f334f7e3dfafd8435633db8f4ea5fe7', x'd8edc95003e44561aeee218ce20deecd', 'User', '2013-01-02 11:06:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd8edc95003e44561aeee218ce20deecd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'28d9608ffde5481cbb6246fd66376e21', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account28d9608f-fde5-481c-bb62-46fd66376e21' WHERE `accounts`.`id` = x'28d9608ffde5481cbb6246fd66376e21' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'28d9608ffde5481cbb6246fd66376e21' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'28d9608ffde5481cbb6246fd66376e21', x'eb531e93e31544cf8f2e152591826fce', x'd8edc95003e44561aeee218ce20deecd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eb531e93e31544cf8f2e152591826fce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb531e93e31544cf8f2e152591826fce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb531e93e31544cf8f2e152591826fce', x'cc808434cac04661b71434d05042be09', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eb531e93e31544cf8f2e152591826fce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb531e93e31544cf8f2e152591826fce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb531e93e31544cf8f2e152591826fce', x'74cb4537ad3746a49973f84df17b94c4', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a25bce0_107080435d485624@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'80424b6fb97745d78ee8a439530e62b3', 'jabanilson', NULL, 1, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account80424b6f-b977-45d7-8ee8-a439530e62b3' WHERE `accounts`.`id` = x'80424b6fb97745d78ee8a439530e62b3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'80424b6fb97745d78ee8a439530e62b3', x'6f4919ae65ff4febb1ba0978cfacd2ce', x'd8edc95003e44561aeee218ce20deecd') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f4919ae65ff4febb1ba0978cfacd2ce', x'8ca21009cf3046859ac508b77a910ea1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f4919ae65ff4febb1ba0978cfacd2ce', x'ed0b7d976fb84f1c844bf56f1d3c9f08', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd8edc95003e44561aeee218ce20deecd' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd8edc95003e44561aeee218ce20deecd' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'user2@email.email', '$2a$04$4d/aT9aO6E6bIOhe8zQbne7oaqAod.aRDFmbpcLsEYVUBtvoIYG76', NULL, x'828a34fa4a0d474bb323ca907df18ec2', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'828a34fa4a0d474bb323ca907df18ec2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'552dbc62b0d9467ba9368766d7e34bc3', '8db66ecb69d4ac19d858845cfc5fa9fb', x'828a34fa4a0d474bb323ca907df18ec2', 'User', '2013-01-02 11:06:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'828a34fa4a0d474bb323ca907df18ec2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'e8e5078cb8434208bc6b8f7edcf695df', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'accounte8e5078c-b843-4208-bc6b-8f7edcf695df' WHERE `accounts`.`id` = x'e8e5078cb8434208bc6b8f7edcf695df' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e8e5078cb8434208bc6b8f7edcf695df' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e8e5078cb8434208bc6b8f7edcf695df', x'c557b1b421d7423c8466fc791673523f', x'828a34fa4a0d474bb323ca907df18ec2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c557b1b421d7423c8466fc791673523f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c557b1b421d7423c8466fc791673523f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c557b1b421d7423c8466fc791673523f', x'277970e82a45413d97a32cdce2f1106e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c557b1b421d7423c8466fc791673523f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c557b1b421d7423c8466fc791673523f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c557b1b421d7423c8466fc791673523f', x'aa7de141b25a4ccaa32b07f88677f9a8', 'admin') Sent mail to user2@email.email (6ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: user2@email.email Message-ID: <50e414a26bd03_107080435d48563ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd8edc95003e44561aeee218ce20deecd' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'80424b6fb97745d78ee8a439530e62b3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'80424b6fb97745d78ee8a439530e62b3', x'fc624c26e10e47e897ec93124a5a697b', x'828a34fa4a0d474bb323ca907df18ec2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fc624c26e10e47e897ec93124a5a697b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fc624c26e10e47e897ec93124a5a697b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fc624c26e10e47e897ec93124a5a697b', x'a2a9b24be30644ecbaeb46ddccc78d12', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fc624c26e10e47e897ec93124a5a697b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fc624c26e10e47e897ec93124a5a697b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fc624c26e10e47e897ec93124a5a697b', x'da621b324e054668b43d8265c2a1c805', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd8edc95003e44561aeee218ce20deecd' AND `account_users`.`account_id` = x'80424b6fb97745d78ee8a439530e62b3' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '€BKo¹wE׎è¤9Sb³' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8ca21009cf3046859ac508b77a910ea1' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ed0b7d976fb84f1c844bf56f1d3c9f08'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f4919ae65ff4febb1ba0978cfacd2ce', x'a2597368f274463fb99e475f2bb3b17f', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"80424B6FB97745D78EE8A439530E62B3"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd8edc95003e44561aeee218ce20deecd' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd8edc95003e44561aeee218ce20deecd' AND `account_users`.`account_id` = x'80424b6fb97745d78ee8a439530e62b3' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms)  (0.3ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '€BKo¹wE׎è¤9Sb³' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a2597368f274463fb99e475f2bb3b17f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f4919ae65ff4febb1ba0978cfacd2ce', x'aefa5770bf854716afdfc68d65fdaec9', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"80424B6FB97745D78EE8A439530E62B3"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd8edc95003e44561aeee218ce20deecd' AND `account_users`.`account_id` = x'80424b6fb97745d78ee8a439530e62b3' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6f4919ae65ff4febb1ba0978cfacd2ce' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'teste@teste.com', '$2a$04$RMGm.w63SvEwzqVfGK37FutRGN.buPsf6OxiV6QfDgkExqF4lS5Gm', NULL, x'197bf504cea14fa6a0b730cc5aee602e', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'197bf504cea14fa6a0b730cc5aee602e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'b08aa73383d74e82b7234612695390c9', 'fda09f3676c7fa08936679db694004be', x'197bf504cea14fa6a0b730cc5aee602e', 'User', '2013-01-02 11:06:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'197bf504cea14fa6a0b730cc5aee602e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'65cef06b48334bd190b217997c6ef4b4', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account65cef06b-4833-4bd1-90b2-17997c6ef4b4' WHERE `accounts`.`id` = x'65cef06b48334bd190b217997c6ef4b4' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'65cef06b48334bd190b217997c6ef4b4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'65cef06b48334bd190b217997c6ef4b4', x'eedeac84c563496794ce713fd0f722f6', x'197bf504cea14fa6a0b730cc5aee602e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eedeac84c563496794ce713fd0f722f6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eedeac84c563496794ce713fd0f722f6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eedeac84c563496794ce713fd0f722f6', x'1cc9aaceeb6746febfb67e9b91249505', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eedeac84c563496794ce713fd0f722f6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eedeac84c563496794ce713fd0f722f6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eedeac84c563496794ce713fd0f722f6', x'f57e7f73d75e417d8e78d5cb0755140b', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a2865a2_107080435d48564eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'3a5b3c8c57a54643aa461d248e232d73', 'jabanilson', NULL, 1, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account3a5b3c8c-57a5-4643-aa46-1d248e232d73' WHERE `accounts`.`id` = x'3a5b3c8c57a54643aa461d248e232d73'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3a5b3c8c57a54643aa461d248e232d73', x'a10ede5634af4d7589b5bf7d5659fabe', x'197bf504cea14fa6a0b730cc5aee602e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a10ede5634af4d7589b5bf7d5659fabe') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a10ede5634af4d7589b5bf7d5659fabe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a10ede5634af4d7589b5bf7d5659fabe', x'e894a29fa5e041e18ef562d6f3ad1bf6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a10ede5634af4d7589b5bf7d5659fabe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a10ede5634af4d7589b5bf7d5659fabe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a10ede5634af4d7589b5bf7d5659fabe', x'0041f5a161f14d3aaff28208e3c6ffa0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'197bf504cea14fa6a0b730cc5aee602e' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'197bf504cea14fa6a0b730cc5aee602e' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'user2@email.email', '$2a$04$y32Hc8UU2Taqo6/1XsuH2.hR/wFqgFgg2E0ztakfrNpIpG3k5vNPq', NULL, x'fa6815fecccf4643879ca1086293f4ff', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fa6815fecccf4643879ca1086293f4ff' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'1e09e37e6a724c30b249a8ad44faf354', '7c48817c27c95c77930be54e03c102e3', x'fa6815fecccf4643879ca1086293f4ff', 'User', '2013-01-02 11:06:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fa6815fecccf4643879ca1086293f4ff' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'f00baa585aa6447c880c0cc2f489ece8', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.6ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'accountf00baa58-5aa6-447c-880c-0cc2f489ece8' WHERE `accounts`.`id` = x'f00baa585aa6447c880c0cc2f489ece8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f00baa585aa6447c880c0cc2f489ece8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f00baa585aa6447c880c0cc2f489ece8', x'3e87073db78e44a496a758d5b0a07b11', x'fa6815fecccf4643879ca1086293f4ff') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3e87073db78e44a496a758d5b0a07b11') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3e87073db78e44a496a758d5b0a07b11' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3e87073db78e44a496a758d5b0a07b11', x'a55c5b0f46e64e0a9c13374ce5b68372', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3e87073db78e44a496a758d5b0a07b11') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3e87073db78e44a496a758d5b0a07b11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3e87073db78e44a496a758d5b0a07b11', x'11304a3434f94d6b96ef5a2246d0ef3d', 'admin') Sent mail to user2@email.email (6ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: user2@email.email Message-ID: <50e414a2af185_107080435d48565d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'197bf504cea14fa6a0b730cc5aee602e' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a5b3c8c57a54643aa461d248e232d73' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3a5b3c8c57a54643aa461d248e232d73', x'f6d0f7ed58a044a3bba5ef6214a31944', x'fa6815fecccf4643879ca1086293f4ff') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f6d0f7ed58a044a3bba5ef6214a31944') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f6d0f7ed58a044a3bba5ef6214a31944' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f6d0f7ed58a044a3bba5ef6214a31944', x'3831c263aaee45ceb52a6daf73ca06cb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f6d0f7ed58a044a3bba5ef6214a31944') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f6d0f7ed58a044a3bba5ef6214a31944' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f6d0f7ed58a044a3bba5ef6214a31944', x'f3a04fb444e14c4e826d7b02f9f2ad15', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'197bf504cea14fa6a0b730cc5aee602e' AND `account_users`.`account_id` = x'3a5b3c8c57a54643aa461d248e232d73' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a10ede5634af4d7589b5bf7d5659fabe'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0041f5a161f14d3aaff28208e3c6ffa0' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a10ede5634af4d7589b5bf7d5659fabe' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = ':[<ŒW¥FCªF$Ž#-s' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e894a29fa5e041e18ef562d6f3ad1bf6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a10ede5634af4d7589b5bf7d5659fabe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a10ede5634af4d7589b5bf7d5659fabe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a10ede5634af4d7589b5bf7d5659fabe', x'd539cc23387743a7b7df994f530270bb', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"3A5B3C8C57A54643AA461D248E232D73"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'197bf504cea14fa6a0b730cc5aee602e' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'197bf504cea14fa6a0b730cc5aee602e' AND `account_users`.`account_id` = x'3a5b3c8c57a54643aa461d248e232d73' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a10ede5634af4d7589b5bf7d5659fabe' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a10ede5634af4d7589b5bf7d5659fabe' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 1.7ms) Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"3A5B3C8C57A54643AA461D248E232D73"} AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'197bf504cea14fa6a0b730cc5aee602e' AND `account_users`.`account_id` = x'3a5b3c8c57a54643aa461d248e232d73' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a10ede5634af4d7589b5bf7d5659fabe' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'teste@teste.com', '$2a$04$CFNEKGo.lgb45rdmFEUxw.uMJSG1Cv52ijyLfZ7.YzSRN9DGprQFi', NULL, x'527ffdd3f3e645d5b1c6a9c6fe1dac1d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'527ffdd3f3e645d5b1c6a9c6fe1dac1d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'1375e8daae2d4357b339016db3752959', '058f243a00de67369b288bc53dd21087', x'527ffdd3f3e645d5b1c6a9c6fe1dac1d', 'User', '2013-01-02 11:06:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'527ffdd3f3e645d5b1c6a9c6fe1dac1d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'1655bc3d46974390b1f825ee57aa98a6', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account1655bc3d-4697-4390-b1f8-25ee57aa98a6' WHERE `accounts`.`id` = x'1655bc3d46974390b1f825ee57aa98a6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1655bc3d46974390b1f825ee57aa98a6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1655bc3d46974390b1f825ee57aa98a6', x'a8106ec044314faf8c7dfa0c6c2aa451', x'527ffdd3f3e645d5b1c6a9c6fe1dac1d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a8106ec044314faf8c7dfa0c6c2aa451') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a8106ec044314faf8c7dfa0c6c2aa451' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a8106ec044314faf8c7dfa0c6c2aa451', x'0499fea70d884c00a4a70877aa03585a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a8106ec044314faf8c7dfa0c6c2aa451') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a8106ec044314faf8c7dfa0c6c2aa451' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a8106ec044314faf8c7dfa0c6c2aa451', x'2bb251af6e8d4e8b92150b10ad9bc3cc', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a2c7daf_107080435d48566b8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'5d6c47fe3b904a16a905dfd9af907c2e', 'jabanilson', NULL, 1, '2013-01-02 11:06:10')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'account5d6c47fe-3b90-4a16-a905-dfd9af907c2e' WHERE `accounts`.`id` = x'5d6c47fe3b904a16a905dfd9af907c2e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5d6c47fe3b904a16a905dfd9af907c2e', x'40b14219ee4f44ac95e9f37280c93c3a', x'527ffdd3f3e645d5b1c6a9c6fe1dac1d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'40b14219ee4f44ac95e9f37280c93c3a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'40b14219ee4f44ac95e9f37280c93c3a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'40b14219ee4f44ac95e9f37280c93c3a', x'df351da5023446e6a5d3ad2726207f1b', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'40b14219ee4f44ac95e9f37280c93c3a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'40b14219ee4f44ac95e9f37280c93c3a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'40b14219ee4f44ac95e9f37280c93c3a', x'e97eb3d28c544e30a2565b24c95b048b', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'527ffdd3f3e645d5b1c6a9c6fe1dac1d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'527ffdd3f3e645d5b1c6a9c6fe1dac1d' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'user2@email.email', '$2a$04$FsVb0Qz/LIWO4LzeAXxFWOGqFd2Fh27MAgSP4os5nomtXwkgyu3wC', NULL, x'd64363639cac4284ada892da24b6a1a3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd64363639cac4284ada892da24b6a1a3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'52e080d5ad544c9f8b2db626d470a082', 'cf0c3a78b070887818ac4e6862b0be15', x'd64363639cac4284ada892da24b6a1a3', 'User', '2013-01-02 11:06:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd64363639cac4284ada892da24b6a1a3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'cb3cc7e7a0f9474fbdd68d7d5cff9855', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'accountcb3cc7e7-a0f9-474f-bdd6-8d7d5cff9855' WHERE `accounts`.`id` = x'cb3cc7e7a0f9474fbdd68d7d5cff9855' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cb3cc7e7a0f9474fbdd68d7d5cff9855' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cb3cc7e7a0f9474fbdd68d7d5cff9855', x'dcf9dad0813a494984145c9606a1f96d', x'd64363639cac4284ada892da24b6a1a3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dcf9dad0813a494984145c9606a1f96d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dcf9dad0813a494984145c9606a1f96d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dcf9dad0813a494984145c9606a1f96d', x'158cce73da814287a8822bb348b22457', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dcf9dad0813a494984145c9606a1f96d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dcf9dad0813a494984145c9606a1f96d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dcf9dad0813a494984145c9606a1f96d', x'664a0e24a24a4714bf399989e7bce3bf', 'admin') Sent mail to user2@email.email (6ms) Date: Wed, 02 Jan 2013 09:06:10 -0200 From: iugu Reply-To: iugu To: user2@email.email Message-ID: <50e414a2d7bb2_107080435d4856763@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'527ffdd3f3e645d5b1c6a9c6fe1dac1d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5d6c47fe3b904a16a905dfd9af907c2e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5d6c47fe3b904a16a905dfd9af907c2e', x'7a085e1a5d834dcd858149c77f31c133', x'd64363639cac4284ada892da24b6a1a3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7a085e1a5d834dcd858149c77f31c133') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a085e1a5d834dcd858149c77f31c133' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a085e1a5d834dcd858149c77f31c133', x'1b1a4ead51f24405a49ce979e7a518b7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7a085e1a5d834dcd858149c77f31c133') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a085e1a5d834dcd858149c77f31c133' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a085e1a5d834dcd858149c77f31c133', x'2acdf3282efc40d59b96797feac8555f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'527ffdd3f3e645d5b1c6a9c6fe1dac1d' AND `account_users`.`account_id` = x'5d6c47fe3b904a16a905dfd9af907c2e' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'40b14219ee4f44ac95e9f37280c93c3a'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'40b14219ee4f44ac95e9f37280c93c3a' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = ']lGþ;J©ßÙ¯|.' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'df351da5023446e6a5d3ad2726207f1b' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e97eb3d28c544e30a2565b24c95b048b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'40b14219ee4f44ac95e9f37280c93c3a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'40b14219ee4f44ac95e9f37280c93c3a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'40b14219ee4f44ac95e9f37280c93c3a', x'57ac68c52e544422aa1a1de4df922898', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"5D6C47FE3B904A16A905DFD9AF907C2E"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'527ffdd3f3e645d5b1c6a9c6fe1dac1d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'527ffdd3f3e645d5b1c6a9c6fe1dac1d' AND `account_users`.`account_id` = x'5d6c47fe3b904a16a905dfd9af907c2e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'40b14219ee4f44ac95e9f37280c93c3a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'40b14219ee4f44ac95e9f37280c93c3a' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 404 Not Found in 7ms  (1.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:10', 'teste@teste.com', '$2a$04$Xv7xKRfwzbmFpO3E5vGd3udpayBGO3222JsoEMA3f1gDJKy5nqhU6', NULL, x'9f348155a76d4291865336e66b5a94a9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:10') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9f348155a76d4291865336e66b5a94a9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:10', 'User', x'244baa47edd14838b8bad77d3c8179d8', 'a618387ed449929021010af996b52149', x'9f348155a76d4291865336e66b5a94a9', 'User', '2013-01-02 11:06:10') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9f348155a76d4291865336e66b5a94a9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:10', x'd614e6ffe8cb4f7eac520b80acfbe448', NULL, NULL, NULL, '2013-01-02 11:06:10')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:10', `updated_at` = '2013-01-02 11:06:10', `subdomain` = 'accountd614e6ff-e8cb-4f7e-ac52-0b80acfbe448' WHERE `accounts`.`id` = x'd614e6ffe8cb4f7eac520b80acfbe448' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd614e6ffe8cb4f7eac520b80acfbe448' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd614e6ffe8cb4f7eac520b80acfbe448', x'552948cffe2546b4b9c2b46991b20756', x'9f348155a76d4291865336e66b5a94a9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'552948cffe2546b4b9c2b46991b20756') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'552948cffe2546b4b9c2b46991b20756' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'552948cffe2546b4b9c2b46991b20756', x'b2394789ef6b4612bf69bfec27618ea0', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'552948cffe2546b4b9c2b46991b20756') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'552948cffe2546b4b9c2b46991b20756' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'552948cffe2546b4b9c2b46991b20756', x'b0a684a5ab7e4e6aa08133bdad9671c0', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:11 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a311b9d_107080435d48568a8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'97b964aed621456b8d8930b93667474d', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account97b964ae-d621-456b-8d89-30b93667474d' WHERE `accounts`.`id` = x'97b964aed621456b8d8930b93667474d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'97b964aed621456b8d8930b93667474d', x'55095feac0be48119ae9f76f1d1979b7', x'9f348155a76d4291865336e66b5a94a9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'55095feac0be48119ae9f76f1d1979b7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55095feac0be48119ae9f76f1d1979b7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55095feac0be48119ae9f76f1d1979b7', x'fd09ee084aab48139f0e3515e6fa3606', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'55095feac0be48119ae9f76f1d1979b7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55095feac0be48119ae9f76f1d1979b7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55095feac0be48119ae9f76f1d1979b7', x'4ea0e53f3e5b466781593f9e05ea11d7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9f348155a76d4291865336e66b5a94a9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9f348155a76d4291865336e66b5a94a9' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:11', 'user2@email.email', '$2a$04$WikSpGg8Pbdm4vzavDrnbOwfs2II6lsyPjQxeOHjoRJKWGmE4Cf4q', NULL, x'57b957dd4b084957af4a1a9826e1970c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'57b957dd4b084957af4a1a9826e1970c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:11', 'User', x'0c862188ede64321b5c75508849396d3', 'bbc1622d9ae8d93d7d23517190cc2de3', x'57b957dd4b084957af4a1a9826e1970c', 'User', '2013-01-02 11:06:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'57b957dd4b084957af4a1a9826e1970c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'ac8cc89d695b4db3b5b2492497306877', NULL, NULL, NULL, '2013-01-02 11:06:11')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'accountac8cc89d-695b-4db3-b5b2-492497306877' WHERE `accounts`.`id` = x'ac8cc89d695b4db3b5b2492497306877' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ac8cc89d695b4db3b5b2492497306877' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ac8cc89d695b4db3b5b2492497306877', x'a89eb911bcf741ad921025c219afde2a', x'57b957dd4b084957af4a1a9826e1970c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a89eb911bcf741ad921025c219afde2a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a89eb911bcf741ad921025c219afde2a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a89eb911bcf741ad921025c219afde2a', x'062c850a1ed6469183657c5efbf78617', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a89eb911bcf741ad921025c219afde2a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a89eb911bcf741ad921025c219afde2a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a89eb911bcf741ad921025c219afde2a', x'e97a290bd9c34325849c71035c945a21', 'admin') Sent mail to user2@email.email (6ms) Date: Wed, 02 Jan 2013 09:06:11 -0200 From: iugu Reply-To: iugu To: user2@email.email Message-ID: <50e414a321bdb_107080435d48569af@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'9f348155a76d4291865336e66b5a94a9' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'97b964aed621456b8d8930b93667474d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'97b964aed621456b8d8930b93667474d', x'9c9f242c07ac40b88cf9de2f44b6ad3c', x'57b957dd4b084957af4a1a9826e1970c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9c9f242c07ac40b88cf9de2f44b6ad3c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9c9f242c07ac40b88cf9de2f44b6ad3c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9c9f242c07ac40b88cf9de2f44b6ad3c', x'20536c05a25e4714aa38881af0491bd2', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9c9f242c07ac40b88cf9de2f44b6ad3c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9c9f242c07ac40b88cf9de2f44b6ad3c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9c9f242c07ac40b88cf9de2f44b6ad3c', x'4f9cf482140e40bfbbfdc3986d1ec0c1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9f348155a76d4291865336e66b5a94a9' AND `account_users`.`account_id` = x'97b964aed621456b8d8930b93667474d' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'55095feac0be48119ae9f76f1d1979b7'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4ea0e53f3e5b466781593f9e05ea11d7' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55095feac0be48119ae9f76f1d1979b7' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '—¹d®Ö!Ek‰0¹6gGM' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'fd09ee084aab48139f0e3515e6fa3606'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'55095feac0be48119ae9f76f1d1979b7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55095feac0be48119ae9f76f1d1979b7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55095feac0be48119ae9f76f1d1979b7', x'78bcb876948c460fbcfd97be89cc465d', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'78bcb876948c460fbcfd97be89cc465d'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'55095feac0be48119ae9f76f1d1979b7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55095feac0be48119ae9f76f1d1979b7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55095feac0be48119ae9f76f1d1979b7', x'90806656927448878cfebe3cc2b45f57', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by StubPermissionsController#stub2 as HTML Parameters: {"id"=>"97B964AED621456B8D8930B93667474D"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9f348155a76d4291865336e66b5a94a9' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'9f348155a76d4291865336e66b5a94a9' AND `account_users`.`account_id` = x'97b964aed621456b8d8930b93667474d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'55095feac0be48119ae9f76f1d1979b7' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 404 Not Found in 5ms  (1.4ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:11', 'teste@teste.com', '$2a$04$9YK2w2hfLi0iv7/psAizl.xUDHrN83YNI8Ec00FwdHbRHWYugKe2q', NULL, x'3bae2e48480c414caedf296cae884f85', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:11') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3bae2e48480c414caedf296cae884f85' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:11', 'User', x'36c96d747ffc4afaae1a963daec38885', '5d84fce066f3cc568f95542ce082b2da', x'3bae2e48480c414caedf296cae884f85', 'User', '2013-01-02 11:06:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3bae2e48480c414caedf296cae884f85' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'2f7a5f8071634125a861b696d8cd37cc', NULL, NULL, NULL, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account2f7a5f80-7163-4125-a861-b696d8cd37cc' WHERE `accounts`.`id` = x'2f7a5f8071634125a861b696d8cd37cc' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2f7a5f8071634125a861b696d8cd37cc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2f7a5f8071634125a861b696d8cd37cc', x'81bb9ebfc5e74137ba3cf84587fc534e', x'3bae2e48480c414caedf296cae884f85') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'81bb9ebfc5e74137ba3cf84587fc534e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'81bb9ebfc5e74137ba3cf84587fc534e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'81bb9ebfc5e74137ba3cf84587fc534e', x'451129fbe4e2412ebfed39b6b19651e8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'81bb9ebfc5e74137ba3cf84587fc534e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'81bb9ebfc5e74137ba3cf84587fc534e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'81bb9ebfc5e74137ba3cf84587fc534e', x'1bab30f4aecc438b918b330386dfd37f', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:11 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a337aab_107080435d485708c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'554531ba0abd4f4d9515428e8591261a', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account554531ba-0abd-4f4d-9515-428e8591261a' WHERE `accounts`.`id` = x'554531ba0abd4f4d9515428e8591261a'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'554531ba0abd4f4d9515428e8591261a', x'8573c800b8944eb1864e212a3e0d99a8', x'3bae2e48480c414caedf296cae884f85') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8573c800b8944eb1864e212a3e0d99a8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8573c800b8944eb1864e212a3e0d99a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8573c800b8944eb1864e212a3e0d99a8', x'2bede9a9ce194d9893e8508bb47c8666', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8573c800b8944eb1864e212a3e0d99a8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8573c800b8944eb1864e212a3e0d99a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8573c800b8944eb1864e212a3e0d99a8', x'a90530a3668549448c29aade03c5de87', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3bae2e48480c414caedf296cae884f85' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3bae2e48480c414caedf296cae884f85' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'user2@email.email' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:11', 'user2@email.email', '$2a$04$Qa8h6G00LoNJcoBdCB5.G.58TmmbwF70mU0czES5A4exJVM77xdl.', NULL, x'b0a99d72cd984ea083f32d41c91f3d6a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:11') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b0a99d72cd984ea083f32d41c91f3d6a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:11', 'User', x'822e656383174737b37a3156ed47162b', '72bc9ffe1d43c47ff24bc19f36dbf612', x'b0a99d72cd984ea083f32d41c91f3d6a', 'User', '2013-01-02 11:06:11') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b0a99d72cd984ea083f32d41c91f3d6a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'c16dd08cbd664da789db10063c5cd541', NULL, NULL, NULL, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'accountc16dd08c-bd66-4da7-89db-10063c5cd541' WHERE `accounts`.`id` = x'c16dd08cbd664da789db10063c5cd541' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c16dd08cbd664da789db10063c5cd541' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c16dd08cbd664da789db10063c5cd541', x'5a15c08fcb4d44cdb2595ec865f7c19e', x'b0a99d72cd984ea083f32d41c91f3d6a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5a15c08fcb4d44cdb2595ec865f7c19e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5a15c08fcb4d44cdb2595ec865f7c19e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5a15c08fcb4d44cdb2595ec865f7c19e', x'05bcf1abf1e8475885020b2ae1b41e5a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5a15c08fcb4d44cdb2595ec865f7c19e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5a15c08fcb4d44cdb2595ec865f7c19e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5a15c08fcb4d44cdb2595ec865f7c19e', x'454b535fccbb4ceea550aa606ecb08ee', 'admin') Sent mail to user2@email.email (6ms) Date: Wed, 02 Jan 2013 09:06:11 -0200 From: iugu Reply-To: iugu To: user2@email.email Message-ID: <50e414a3478cf_107080435d4857169@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3bae2e48480c414caedf296cae884f85' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2f7a5f8071634125a861b696d8cd37cc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2f7a5f8071634125a861b696d8cd37cc', x'28bd2da499764a0793202df8a608d207', x'b0a99d72cd984ea083f32d41c91f3d6a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'28bd2da499764a0793202df8a608d207') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'28bd2da499764a0793202df8a608d207' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'28bd2da499764a0793202df8a608d207', x'5ad9106e9ecd44ba97437d5d61167e7e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'28bd2da499764a0793202df8a608d207') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'28bd2da499764a0793202df8a608d207' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'28bd2da499764a0793202df8a608d207', x'6764f3cc8ce7455391a658deedbb929d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3bae2e48480c414caedf296cae884f85' AND `account_users`.`account_id` = x'2f7a5f8071634125a861b696d8cd37cc' LIMIT 1 Processing by StubPermissionsController#stub as HTML Parameters: {"id"=>"231213231231312312341"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3bae2e48480c414caedf296cae884f85' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3bae2e48480c414caedf296cae884f85' AND `account_users`.`account_id` = x'33323331323331333132333132333431' LIMIT 1 Completed 404 Not Found in 3ms  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'1643c419154f4338a01864c9e2e9fed4', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account1643c419-154f-4338-a018-64c9e2e9fed4' WHERE `accounts`.`id` = x'1643c419154f4338a01864c9e2e9fed4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'1643c419154f4338a01864c9e2e9fed4' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'1643c419154f4338a01864c9e2e9fed4', 'teste@teste.teste', x'a15a3781550545b69a83bc69c1bfa21d', NULL, NULL, '2013-01-02 11:06:11', 'ie8-WeLJlss0QpNsZIvu9UZ1SQc') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:11 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414a375f4f_107080435d4857240@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/a15a3781-5505-45b6-9a83-bc69c1bfa21die8-WeLJlss0QpNsZIvu9UZ1SQc  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'22a0bc6e95e347cc97285ca99c35b473', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account22a0bc6e-95e3-47cc-9728-5ca99c35b473' WHERE `accounts`.`id` = x'22a0bc6e95e347cc97285ca99c35b473'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'22a0bc6e95e347cc97285ca99c35b473' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'22a0bc6e95e347cc97285ca99c35b473', 'teste@teste.teste', x'bc66314f16ed4800a78e84bf53a9eff3', NULL, NULL, '2013-01-02 11:06:11', 'IngtwvT9kagre6DeTfwyZqKkdo4') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:11 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414a380505_107080435d48573a3@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/bc66314f-16ed-4800-a78e-84bf53a9eff3IngtwvT9kagre6DeTfwyZqKkdo4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'81dfa62ab8a24e0ea93d386dc9258545', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account81dfa62a-b8a2-4e0e-a93d-386dc9258545' WHERE `accounts`.`id` = x'81dfa62ab8a24e0ea93d386dc9258545'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'81dfa62ab8a24e0ea93d386dc9258545' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'81dfa62ab8a24e0ea93d386dc9258545', x'513712898412424595d9a5a53bb51937', NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'9553de9db96f462391d443e8dd24b75f', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account9553de9d-b96f-4623-91d4-43e8dd24b75f' WHERE `accounts`.`id` = x'9553de9db96f462391d443e8dd24b75f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9553de9db96f462391d443e8dd24b75f' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9553de9db96f462391d443e8dd24b75f', x'2144737458b34e39a4011237a6cf4b1a', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'4c731795dfe748b49dce0f239e96909e', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account4c731795-dfe7-48b4-9dce-0f239e96909e' WHERE `accounts`.`id` = x'4c731795dfe748b49dce0f239e96909e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4c731795dfe748b49dce0f239e96909e' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4c731795dfe748b49dce0f239e96909e', x'f6dc03b039c14fe593f3f959384afdd4', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'f3e395c6bd664590853e3bbeb342a079', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.6ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'accountf3e395c6-bd66-4590-853e-3bbeb342a079' WHERE `accounts`.`id` = x'f3e395c6bd664590853e3bbeb342a079'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'f3e395c6bd664590853e3bbeb342a079' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'f3e395c6bd664590853e3bbeb342a079', x'ba281b0fcd954dfa8a4e25e62918f5a0', NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'0138c86e52b84c3babd611402278fda9', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account0138c86e-52b8-4c3b-abd6-11402278fda9' WHERE `accounts`.`id` = x'0138c86e52b84c3babd611402278fda9'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0138c86e52b84c3babd611402278fda9' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0138c86e52b84c3babd611402278fda9', x'f45e0d2703634ea08b2ab8747ecd7671', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'598a7d4201ba4b7fb24dbc288e05d753', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account598a7d42-01ba-4b7f-b24d-bc288e05d753' WHERE `accounts`.`id` = x'598a7d4201ba4b7fb24dbc288e05d753'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'598a7d4201ba4b7fb24dbc288e05d753' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'598a7d4201ba4b7fb24dbc288e05d753', x'dc16e39eb0ba40cc9bc43510f53daa0a', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'fcca3447f02949c899247bf8447199ee', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'accountfcca3447-f029-49c8-9924-7bf8447199ee' WHERE `accounts`.`id` = x'fcca3447f02949c899247bf8447199ee'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'305740c0c17f4b66ad8b6aedd9554567', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account305740c0-c17f-4b66-ad8b-6aedd9554567' WHERE `accounts`.`id` = x'305740c0c17f4b66ad8b6aedd9554567'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'305740c0c17f4b66ad8b6aedd9554567' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'305740c0c17f4b66ad8b6aedd9554567', x'58970f9b4c92424ead71d55da5f3e78b', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'aecd038778c64422a5944d7256ff4e0c', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'accountaecd0387-78c6-4422-a594-4d7256ff4e0c' WHERE `accounts`.`id` = x'aecd038778c64422a5944d7256ff4e0c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'aecd038778c64422a5944d7256ff4e0c' AND `account_domains`.`url` = 'valid.url.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'aecd038778c64422a5944d7256ff4e0c', x'95aa7218716e4c40ab5440ed9e9bc2e0', NULL, 'valid.url.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'aecd038778c64422a5944d7256ff4e0c' AND `account_domains`.`url` = 'valid.url.test'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'4fa77e5f2364422788a004805d939924', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account4fa77e5f-2364-4227-88a0-04805d939924' WHERE `accounts`.`id` = x'4fa77e5f2364422788a004805d939924'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4fa77e5f2364422788a004805d939924' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4fa77e5f2364422788a004805d939924', x'ad68aeb959a84d639658138e192a2f01', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'27dc9b0cce9744ea9a7204872c999114', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account27dc9b0c-ce97-44ea-9a72-04872c999114' WHERE `accounts`.`id` = x'27dc9b0cce9744ea9a7204872c999114'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'27dc9b0cce9744ea9a7204872c999114' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'27dc9b0cce9744ea9a7204872c999114', x'776adb68c4144cbcb4de465dc0aa14d0', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:11', x'32ae1be7c70548299de1b6f78a6da904', 'jabanilson', NULL, 1, '2013-01-02 11:06:11')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:11', `updated_at` = '2013-01-02 11:06:11', `subdomain` = 'account32ae1be7-c705-4829-9de1-b6f78a6da904' WHERE `accounts`.`id` = x'32ae1be7c70548299de1b6f78a6da904'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'32ae1be7c70548299de1b6f78a6da904' AND `account_domains`.`url` = 'url1.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'32ae1be7c70548299de1b6f78a6da904', x'087b7d95722348d093ab523d77ed3dd7', NULL, 'url1.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'32ae1be7c70548299de1b6f78a6da904' AND `account_domains`.`url` = 'url2.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'32ae1be7c70548299de1b6f78a6da904', x'2696eb119f3744009a3394f0d17a88b1', NULL, 'url2.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'087b7d95722348d093ab523d77ed3dd7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'2696eb119f3744009a3394f0d17a88b1'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'32ae1be7c70548299de1b6f78a6da904'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'087b7d95722348d093ab523d77ed3dd7'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0, `primary` = 0 WHERE `account_domains`.`id` = x'087b7d95722348d093ab523d77ed3dd7'  (0.1ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'32ae1be7c70548299de1b6f78a6da904' AND `account_domains`.`primary` = 1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'32ae1be7c70548299de1b6f78a6da904' AND `account_domains`.`verified` = 1 LIMIT 1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'2696eb119f3744009a3394f0d17a88b1' SQL (0.2ms) DELETE FROM `account_domains` WHERE `account_domains`.`id` = x'087b7d95722348d093ab523d77ed3dd7'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'2696eb119f3744009a3394f0d17a88b1' LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:12', x'673ddbb3abc5451c8cc22e16b3d326b6', 'jabanilson', NULL, 1, '2013-01-02 11:06:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:12', `updated_at` = '2013-01-02 11:06:12', `subdomain` = 'account673ddbb3-abc5-451c-8cc2-2e16b3d326b6' WHERE `accounts`.`id` = x'673ddbb3abc5451c8cc22e16b3d326b6'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'673ddbb3abc5451c8cc22e16b3d326b6' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'673ddbb3abc5451c8cc22e16b3d326b6', x'8c1c644fc5f1453bbd40d9269a14101e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:12', x'da24d5b38a824fdf9f3cb3cb088a2c0f', 'jabanilson', NULL, 1, '2013-01-02 11:06:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:12', `updated_at` = '2013-01-02 11:06:12', `subdomain` = 'accountda24d5b3-8a82-4fdf-9f3c-b3cb088a2c0f' WHERE `accounts`.`id` = x'da24d5b38a824fdf9f3cb3cb088a2c0f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'da24d5b38a824fdf9f3cb3cb088a2c0f' AND `account_domains`.`url` = 'www.normal.host' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'da24d5b38a824fdf9f3cb3cb088a2c0f', x'faf88643b569470da511783895bb899b', NULL, 'www.normal.host', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:12', x'fb5563cfae5342d2986f29cb216ad98e', 'jabanilson', NULL, 1, '2013-01-02 11:06:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:12', `updated_at` = '2013-01-02 11:06:12', `subdomain` = 'accountfb5563cf-ae53-42d2-986f-29cb216ad98e' WHERE `accounts`.`id` = x'fb5563cfae5342d2986f29cb216ad98e'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'fb5563cfae5342d2986f29cb216ad98e' AND `account_domains`.`url` = 'www.testing.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'fb5563cfae5342d2986f29cb216ad98e', x'fc7381dc595c4eb3baee8a1ac1385a65', NULL, 'www.testing.net', NULL)  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:12', x'bae38034167244b990194e98d67124e5', 'jabanilson', NULL, 1, '2013-01-02 11:06:12')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:12', `updated_at` = '2013-01-02 11:06:12', `subdomain` = 'accountbae38034-1672-44b9-9019-4e98d67124e5' WHERE `accounts`.`id` = x'bae38034167244b990194e98d67124e5'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'bae38034167244b990194e98d67124e5' AND `account_domains`.`url` = 'www.normal.net' SQL (0.1ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'bae38034167244b990194e98d67124e5', x'414ee21097a04250846f452bb9ed825d', NULL, 'www.normal.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:12', x'7dc720b08b754cd8aea1bfd78e57218e', 'jabanilson', NULL, 1, '2013-01-02 11:06:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:12', `updated_at` = '2013-01-02 11:06:12', `subdomain` = 'account7dc720b0-8b75-4cd8-aea1-bfd78e57218e' WHERE `accounts`.`id` = x'7dc720b08b754cd8aea1bfd78e57218e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'7dc720b08b754cd8aea1bfd78e57218e' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'7dc720b08b754cd8aea1bfd78e57218e', x'6aa72d8b1cee4e9fbf303a116f33213a', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:12', x'8de6e4d53e804b2dbafcc89a7fd0882e', 'jabanilson', NULL, 1, '2013-01-02 11:06:12')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:12', `updated_at` = '2013-01-02 11:06:12', `subdomain` = 'account8de6e4d5-3e80-4b2d-bafc-c89a7fd0882e' WHERE `accounts`.`id` = x'8de6e4d53e804b2dbafcc89a7fd0882e'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8de6e4d53e804b2dbafcc89a7fd0882e' AND `account_domains`.`url` = 'test.com' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8de6e4d53e804b2dbafcc89a7fd0882e', x'4640673a5e454b7fadea6586a00271e1', NULL, 'test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'test.com'  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'4640673a5e454b7fadea6586a00271e1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8de6e4d53e804b2dbafcc89a7fd0882e' AND `account_domains`.`primary` = 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8de6e4d53e804b2dbafcc89a7fd0882e' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'4640673a5e454b7fadea6586a00271e1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:12', x'2bfc5297f33245abad2f8e457b32ca14', 'jabanilson', NULL, 1, '2013-01-02 11:06:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:12', `updated_at` = '2013-01-02 11:06:12', `subdomain` = 'account2bfc5297-f332-45ab-ad2f-8e457b32ca14' WHERE `accounts`.`id` = x'2bfc5297f33245abad2f8e457b32ca14'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2bfc5297f33245abad2f8e457b32ca14' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2bfc5297f33245abad2f8e457b32ca14', x'4a683933d6ee476d9472548f8d3d30d8', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:12', x'8f3c686586444125827dd1cfb14a40a2', 'jabanilson', NULL, 1, '2013-01-02 11:06:12')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:12', `updated_at` = '2013-01-02 11:06:12', `subdomain` = 'account8f3c6865-8644-4125-827d-d1cfb14a40a2' WHERE `accounts`.`id` = x'8f3c686586444125827dd1cfb14a40a2'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8f3c686586444125827dd1cfb14a40a2' AND `account_domains`.`url` = 'invalid.url.false' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8f3c686586444125827dd1cfb14a40a2', x'fffb702eacfb4557825debd412bb6f59', NULL, 'invalid.url.false', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'fffb702eacfb4557825debd412bb6f59'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8f3c686586444125827dd1cfb14a40a2' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8f3c686586444125827dd1cfb14a40a2' AND `account_domains`.`verified` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:13', x'a5fd3cc3ef6d4aebb7ab6ca9178fa1a5', 'jabanilson', NULL, 1, '2013-01-02 11:06:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:13', `updated_at` = '2013-01-02 11:06:13', `subdomain` = 'accounta5fd3cc3-ef6d-4aeb-b7ab-6ca9178fa1a5' WHERE `accounts`.`id` = x'a5fd3cc3ef6d4aebb7ab6ca9178fa1a5'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a5fd3cc3ef6d4aebb7ab6ca9178fa1a5' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a5fd3cc3ef6d4aebb7ab6ca9178fa1a5', x'2d6aadf07576434cb4a7443a182ef291', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:13', x'5ee5b8c0f58f4f2c82f1d3a9b4a50d30', 'jabanilson', NULL, 1, '2013-01-02 11:06:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:13', `updated_at` = '2013-01-02 11:06:13', `subdomain` = 'account5ee5b8c0-f58f-4f2c-82f1-d3a9b4a50d30' WHERE `accounts`.`id` = x'5ee5b8c0f58f4f2c82f1d3a9b4a50d30'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'5ee5b8c0f58f4f2c82f1d3a9b4a50d30' AND `account_domains`.`url` = 'www.test.com' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'5ee5b8c0f58f4f2c82f1d3a9b4a50d30', x'34f9fad3bd2f450aa701c3e62750e481', NULL, 'www.test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'34f9fad3bd2f450aa701c3e62750e481'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:13', x'0cf18a9d958441a9b1d35ea0f1f58661', 'jabanilson', NULL, 1, '2013-01-02 11:06:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:13', `updated_at` = '2013-01-02 11:06:13', `subdomain` = 'account0cf18a9d-9584-41a9-b1d3-5ea0f1f58661' WHERE `accounts`.`id` = x'0cf18a9d958441a9b1d35ea0f1f58661'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0cf18a9d958441a9b1d35ea0f1f58661' AND `account_domains`.`url` = 'www.test.com' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'0cf18a9d958441a9b1d35ea0f1f58661', x'e4aca6edd0184cb8b5d536c11408c0e1', NULL, 'www.test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.com'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'e4aca6edd0184cb8b5d536c11408c0e1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'0cf18a9d958441a9b1d35ea0f1f58661' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'0cf18a9d958441a9b1d35ea0f1f58661' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'e4aca6edd0184cb8b5d536c11408c0e1'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'34f9fad3bd2f450aa701c3e62750e481' LIMIT 1  (1.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:13', x'784243354dc94080b62faa156af4b349', 'jabanilson', NULL, 1, '2013-01-02 11:06:13')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:13', `updated_at` = '2013-01-02 11:06:13', `subdomain` = 'account78424335-4dc9-4080-b62f-aa156af4b349' WHERE `accounts`.`id` = x'784243354dc94080b62faa156af4b349'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'784243354dc94080b62faa156af4b349' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'784243354dc94080b62faa156af4b349', x'97e7df7cf8ef48b4952fe70e913825d3', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:13', x'7354d8569a6a4486a34474ad5d6e1146', 'jabanilson', NULL, 1, '2013-01-02 11:06:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:13', `updated_at` = '2013-01-02 11:06:13', `subdomain` = 'account7354d856-9a6a-4486-a344-74ad5d6e1146' WHERE `accounts`.`id` = x'7354d8569a6a4486a34474ad5d6e1146'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:13', x'641cc1a19cf2463f8ea44e455528ad49', 'jabanilson', NULL, 1, '2013-01-02 11:06:13')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:13', `updated_at` = '2013-01-02 11:06:13', `subdomain` = 'account641cc1a1-9cf2-463f-8ea4-4e455528ad49' WHERE `accounts`.`id` = x'641cc1a19cf2463f8ea44e455528ad49'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'641cc1a19cf2463f8ea44e455528ad49' AND `account_domains`.`url` = 'www.test.com' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'641cc1a19cf2463f8ea44e455528ad49', x'63e96254bca54682bf3d8868f5bb7a60', NULL, 'www.test.com', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.5ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`url` = 'www.test.com'  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'63e96254bca54682bf3d8868f5bb7a60'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'641cc1a19cf2463f8ea44e455528ad49' AND `account_domains`.`primary` = 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'641cc1a19cf2463f8ea44e455528ad49' AND `account_domains`.`verified` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'63e96254bca54682bf3d8868f5bb7a60'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'63e96254bca54682bf3d8868f5bb7a60' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'148e893686c749c2912684538e36f1a1', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account148e8936-86c7-49c2-9126-84538e36f1a1' WHERE `accounts`.`id` = x'148e893686c749c2912684538e36f1a1'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'148e893686c749c2912684538e36f1a1' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'148e893686c749c2912684538e36f1a1', x'82164caf013d45099e0940ad63404bae', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'4d021f8169474782800bd8cfbb68bde4', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account4d021f81-6947-4782-800b-d8cfbb68bde4' WHERE `accounts`.`id` = x'4d021f8169474782800bd8cfbb68bde4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'fe49b7c2556d43f0a52660098cb0eb78', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accountfe49b7c2-556d-43f0-a526-60098cb0eb78' WHERE `accounts`.`id` = x'fe49b7c2556d43f0a52660098cb0eb78'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'fe49b7c2556d43f0a52660098cb0eb78' AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'fe49b7c2556d43f0a52660098cb0eb78', x'8903d4ce20cb4e57984a0d1888f08725', 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'09ab55fcd6c14b51926a7f051200c7f0', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account09ab55fc-d6c1-4b51-926a-7f051200c7f0' WHERE `accounts`.`id` = x'09ab55fcd6c14b51926a7f051200c7f0'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'09ab55fcd6c14b51926a7f051200c7f0' AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'09ab55fcd6c14b51926a7f051200c7f0', x'bebfc8da2c2f4cf28b4912b965d9bd96', 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `account_id` = x'4d021f8169474782800bd8cfbb68bde4' WHERE `account_domains`.`id` = x'8903d4ce20cb4e57984a0d1888f08725'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'4d021f8169474782800bd8cfbb68bde4' WHERE `account_domains`.`id` = x'bebfc8da2c2f4cf28b4912b965d9bd96'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'4d021f8169474782800bd8cfbb68bde4'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'bebfc8da2c2f4cf28b4912b965d9bd96'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'a79bda26da7448d8befc21ac9edeaf15', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accounta79bda26-da74-48d8-befc-21ac9edeaf15' WHERE `accounts`.`id` = x'a79bda26da7448d8befc21ac9edeaf15'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'a79bda26da7448d8befc21ac9edeaf15' AND `account_domains`.`url` = 'www.testing.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'a79bda26da7448d8befc21ac9edeaf15', x'6aa27c278e724c179f2f1674f097fd73', NULL, 'www.testing.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'64b28dfd7bef4709aad83a948d3b206b', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account64b28dfd-7bef-4709-aad8-3a948d3b206b' WHERE `accounts`.`id` = x'64b28dfd7bef4709aad83a948d3b206b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'fd1d77cef666499a9030a44fccf4e111', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accountfd1d77ce-f666-499a-9030-a44fccf4e111' WHERE `accounts`.`id` = x'fd1d77cef666499a9030a44fccf4e111'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'fd1d77cef666499a9030a44fccf4e111' AND `account_domains`.`url` = 'www.url1.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'fd1d77cef666499a9030a44fccf4e111', x'd8daadb25a01418da0c5a38d78c9b258', 1, 'www.url1.net', 1)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'9a841b43977c45ccaf42aba1d15827c7', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account9a841b43-977c-45cc-af42-aba1d15827c7' WHERE `accounts`.`id` = x'9a841b43977c45ccaf42aba1d15827c7'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'9a841b43977c45ccaf42aba1d15827c7' AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'9a841b43977c45ccaf42aba1d15827c7', x'45e844809c4149edaee53e226644cbcd', 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'64b28dfd7bef4709aad83a948d3b206b' WHERE `account_domains`.`id` = x'd8daadb25a01418da0c5a38d78c9b258'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'64b28dfd7bef4709aad83a948d3b206b' WHERE `account_domains`.`id` = x'45e844809c4149edaee53e226644cbcd'  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.1ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`account_id` = x'64b28dfd7bef4709aad83a948d3b206b'  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'45e844809c4149edaee53e226644cbcd'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`id` = x'd8daadb25a01418da0c5a38d78c9b258' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'cdf2c09bf2414550bf26e8af6414cc06', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accountcdf2c09b-f241-4550-bf26-e8af6414cc06' WHERE `accounts`.`id` = x'cdf2c09bf2414550bf26e8af6414cc06'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'cdf2c09bf2414550bf26e8af6414cc06' AND `account_domains`.`url` = 'www.testing.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'cdf2c09bf2414550bf26e8af6414cc06', x'6b6a7dc94f4f482697f085d5d98de03e', NULL, 'www.testing.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'8eaa20e122254679b4cb9ff2e2358d2a', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account8eaa20e1-2225-4679-b4cb-9ff2e2358d2a' WHERE `accounts`.`id` = x'8eaa20e122254679b4cb9ff2e2358d2a'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'018ecfa071a6432abc7ee60db7bdad7c', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account018ecfa0-71a6-432a-bc7e-e60db7bdad7c' WHERE `accounts`.`id` = x'018ecfa071a6432abc7ee60db7bdad7c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'018ecfa071a6432abc7ee60db7bdad7c' AND `account_domains`.`url` = 'www.url1.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'018ecfa071a6432abc7ee60db7bdad7c', x'22a882908ad04d1480cac8cb6751ad3f', 1, 'www.url1.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'ecc8c7745ce04bfe898ba10110409b85', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accountecc8c774-5ce0-4bfe-898b-a10110409b85' WHERE `accounts`.`id` = x'ecc8c7745ce04bfe898ba10110409b85'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ecc8c7745ce04bfe898ba10110409b85' AND `account_domains`.`url` = 'www.url2.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ecc8c7745ce04bfe898ba10110409b85', x'643942c7d2e842c5a1c76d5d59464f91', 0, 'www.url2.net', 1)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'8eaa20e122254679b4cb9ff2e2358d2a' WHERE `account_domains`.`id` = x'22a882908ad04d1480cac8cb6751ad3f'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `account_id` = x'8eaa20e122254679b4cb9ff2e2358d2a' WHERE `account_domains`.`id` = x'643942c7d2e842c5a1c76d5d59464f91'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'643942c7d2e842c5a1c76d5d59464f91'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:14', 'teste@teste.com', '$2a$04$aTrOlI38Ie7uecLm/1iu1usRIs8.8iWuwR48aVJnOW8r7nhp/NXPS', NULL, x'd219c012f4ab4a66982401305304fef0', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd219c012f4ab4a66982401305304fef0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:14', 'User', x'902725eb731a48d28dc27ebb37d35ccb', 'f0fec2042b98cacb7945b99cc332293a', x'd219c012f4ab4a66982401305304fef0', 'User', '2013-01-02 11:06:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd219c012f4ab4a66982401305304fef0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'e107939ecd594a7faa034cf85504f0a4', NULL, NULL, NULL, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accounte107939e-cd59-4a7f-aa03-4cf85504f0a4' WHERE `accounts`.`id` = x'e107939ecd594a7faa034cf85504f0a4' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e107939ecd594a7faa034cf85504f0a4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e107939ecd594a7faa034cf85504f0a4', x'f54b49d04fe14ad0bd78829232a8c92d', x'd219c012f4ab4a66982401305304fef0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f54b49d04fe14ad0bd78829232a8c92d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f54b49d04fe14ad0bd78829232a8c92d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f54b49d04fe14ad0bd78829232a8c92d', x'c097330aadb144dab8b32c495668a996', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f54b49d04fe14ad0bd78829232a8c92d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f54b49d04fe14ad0bd78829232a8c92d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f54b49d04fe14ad0bd78829232a8c92d', x'cc97baf338f74bffa35cb1302156fc52', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:14 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a66288a_107080435d485749d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd219c012f4ab4a66982401305304fef0' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f54b49d04fe14ad0bd78829232a8c92d'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f54b49d04fe14ad0bd78829232a8c92d' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'á“žÍYJªLøUð¤' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'cc97baf338f74bffa35cb1302156fc52'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd219c012f4ab4a66982401305304fef0' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'f54b49d04fe14ad0bd78829232a8c92d') LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f54b49d04fe14ad0bd78829232a8c92d', x'4724878058d944b49a4ece7d975f5fa2', 'guest')  (0.2ms) RELEASE SAVEPOINT active_record_1  (11.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (5.6ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:14', 'teste@teste.com', '$2a$04$4XV99pIY6m0HnqQmYAH2M.f/L/BQ.iMevWUIRhQn087brK19ixxFi', NULL, x'b563e079e39a4d058334dbd35b6e62da', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b563e079e39a4d058334dbd35b6e62da' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:14', 'User', x'661ebc4f0ab946ada4bbf5da25eddb3b', 'df704094c73cc39d502fb3301b7b961e', x'b563e079e39a4d058334dbd35b6e62da', 'User', '2013-01-02 11:06:14') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b563e079e39a4d058334dbd35b6e62da' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'f37fdf57d4b5415e9842e0886a138af6', NULL, NULL, NULL, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accountf37fdf57-d4b5-415e-9842-e0886a138af6' WHERE `accounts`.`id` = x'f37fdf57d4b5415e9842e0886a138af6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f37fdf57d4b5415e9842e0886a138af6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f37fdf57d4b5415e9842e0886a138af6', x'f0e1071d025c477798c4befe4b451e90', x'b563e079e39a4d058334dbd35b6e62da') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f0e1071d025c477798c4befe4b451e90') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0e1071d025c477798c4befe4b451e90' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0e1071d025c477798c4befe4b451e90', x'149e2fd1c51c47dc8ccbf5e1110129fe', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f0e1071d025c477798c4befe4b451e90') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0e1071d025c477798c4befe4b451e90' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0e1071d025c477798c4befe4b451e90', x'ff1120d808ad4e039643cc8a8dff08c1', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:14 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a675b8d_107080435d48575bc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b563e079e39a4d058334dbd35b6e62da' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f0e1071d025c477798c4befe4b451e90'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0e1071d025c477798c4befe4b451e90' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'óßWÔµA^˜BàˆjŠö' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ff1120d808ad4e039643cc8a8dff08c1'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b563e079e39a4d058334dbd35b6e62da' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'f0e1071d025c477798c4befe4b451e90') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0e1071d025c477798c4befe4b451e90', x'e28906db3d0548678030ec313fe6a575', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f0e1071d025c477798c4befe4b451e90') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0e1071d025c477798c4befe4b451e90' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f0e1071d025c477798c4befe4b451e90') LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f0e1071d025c477798c4befe4b461e90') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0e1071d025c477798c4befe4b461e90' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f0e1071d025c477798c4befe4b461e90') LIMIT 1  (23.7ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:14', 'teste@teste.com', '$2a$04$7jqQMjOA2.xUqaWubXfPBu4kEzsQZzBhkBwdLgnFPCcFgAEqn6Nqq', NULL, x'914299a77ead40dc930cd005dc38b9ef', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'914299a77ead40dc930cd005dc38b9ef' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:14', 'User', x'48e3c072299c43669b28abfdcd9717fc', '7c3836e0435d891e114284a9fb71fd37', x'914299a77ead40dc930cd005dc38b9ef', 'User', '2013-01-02 11:06:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'914299a77ead40dc930cd005dc38b9ef' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'e9e34aea43a84422a5c2766aeb9e9496', NULL, NULL, NULL, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accounte9e34aea-43a8-4422-a5c2-766aeb9e9496' WHERE `accounts`.`id` = x'e9e34aea43a84422a5c2766aeb9e9496' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e9e34aea43a84422a5c2766aeb9e9496' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e9e34aea43a84422a5c2766aeb9e9496', x'a5537df832704fae8edbd029dbfb0412', x'914299a77ead40dc930cd005dc38b9ef') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a5537df832704fae8edbd029dbfb0412') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5537df832704fae8edbd029dbfb0412' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5537df832704fae8edbd029dbfb0412', x'cbeb8d1a72004224857d858daec641ed', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a5537df832704fae8edbd029dbfb0412') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5537df832704fae8edbd029dbfb0412' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5537df832704fae8edbd029dbfb0412', x'9a43af614faa441594303594e6956c75', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:14 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a68c54b_107080435d48576b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'914299a77ead40dc930cd005dc38b9ef' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a5537df832704fae8edbd029dbfb0412'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9a43af614faa441594303594e6956c75' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a5537df832704fae8edbd029dbfb0412' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'914299a77ead40dc930cd005dc38b9ef' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'a5537df832704fae8edbd029dbfb0412') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a5537df832704fae8edbd029dbfb0412', x'6991fdc0f4ea4b41889bc3c510e08208', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != x'6991fdc0f4ea4b41889bc3c510e08208' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`id` != x'6991fdc0f4ea4b41889bc3c510e08208' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:14', 'teste@teste.com', '$2a$04$IaibSLlyv9S1fn2kQwB.v.d8hdUhvtlG505xq8C/tpX5aoGUJe18e', NULL, x'3396ea77d1ca43d989588fbeb1206d51', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:14') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3396ea77d1ca43d989588fbeb1206d51' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:14', 'User', x'56625e6073af4095813153c8ca4eabea', 'f10a353e0517ac3605e2c77fe2eedacc', x'3396ea77d1ca43d989588fbeb1206d51', 'User', '2013-01-02 11:06:14') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3396ea77d1ca43d989588fbeb1206d51' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'400a8c63d34a41de90e6f7080c0a5667', NULL, NULL, NULL, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account400a8c63-d34a-41de-90e6-f7080c0a5667' WHERE `accounts`.`id` = x'400a8c63d34a41de90e6f7080c0a5667' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'400a8c63d34a41de90e6f7080c0a5667' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'400a8c63d34a41de90e6f7080c0a5667', x'cd541d364cc243268df9966166f53000', x'3396ea77d1ca43d989588fbeb1206d51') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cd541d364cc243268df9966166f53000') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd541d364cc243268df9966166f53000' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd541d364cc243268df9966166f53000', x'db97f415690d4c60bf6a5a45a33f7df0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cd541d364cc243268df9966166f53000') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd541d364cc243268df9966166f53000' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd541d364cc243268df9966166f53000', x'e682c5f9cdff4d629a50cd38fab06cee', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:14 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a69b496_107080435d485779c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3396ea77d1ca43d989588fbeb1206d51' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cd541d364cc243268df9966166f53000'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd541d364cc243268df9966166f53000' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e682c5f9cdff4d629a50cd38fab06cee'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3396ea77d1ca43d989588fbeb1206d51' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'cd541d364cc243268df9966166f53000') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd541d364cc243268df9966166f53000', x'5f62aaaf583e41b698bb44bea845b125', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'not a role' AND `account_roles`.`id` != x'5f62aaaf583e41b698bb44bea845b125' AND `account_roles`.`account_user_id` = x'cd541d364cc243268df9966166f53000') LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'91911de6a16e497b8fefdc64c36fe276', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.5ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'9e27446e600c495f9c7230e60b1ba18c', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'eac98774d0ca46f7b1a509997d512ee9', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'4a145a08bee84a0092ab84baa8a38890', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` LIMIT 1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'3c51b52e881c42cb94842413063a20f8', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'me@me.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:14', 'me@me.com', '$2a$04$0TH47i1Vgd22GTjxoJUCjev/CygAlQHlDF5ZyHvhkN8NDA7cefdce', NULL, x'e63728b57f2b460784b7e47286a4cbdc', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:14') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e63728b57f2b460784b7e47286a4cbdc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:14', 'User', x'a64e725c810f494fa6a63dd769996848', 'd574b8613bf74eaaafc74aa1858c0a6f', x'e63728b57f2b460784b7e47286a4cbdc', 'User', '2013-01-02 11:06:14') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e63728b57f2b460784b7e47286a4cbdc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'c532d06dba0a415c8495b362b5c4085a', NULL, NULL, NULL, '2013-01-02 11:06:14')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accountc532d06d-ba0a-415c-8495-b362b5c4085a' WHERE `accounts`.`id` = x'c532d06dba0a415c8495b362b5c4085a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c532d06dba0a415c8495b362b5c4085a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c532d06dba0a415c8495b362b5c4085a', x'25dfa21d904c4fd4822c295969ab5ec3', x'e63728b57f2b460784b7e47286a4cbdc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'25dfa21d904c4fd4822c295969ab5ec3') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25dfa21d904c4fd4822c295969ab5ec3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25dfa21d904c4fd4822c295969ab5ec3', x'795a8c185a6947bfb1a946e2ad53647f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'25dfa21d904c4fd4822c295969ab5ec3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25dfa21d904c4fd4822c295969ab5ec3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25dfa21d904c4fd4822c295969ab5ec3', x'69d976165c4a4fe6b6837e41e9f7434c', 'admin') Sent mail to me@me.com (6ms) Date: Wed, 02 Jan 2013 09:06:14 -0200 From: iugu Reply-To: iugu To: me@me.com Message-ID: <50e414a6c8294_107080435d4857852@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'0a1f5f99ed0b44d88155abe4019f953b', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account0a1f5f99-ed0b-44d8-8155-abe4019f953b' WHERE `accounts`.`id` = x'0a1f5f99ed0b44d88155abe4019f953b'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'0adbe87fd3404623a33b27115b7f1e49', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account0adbe87f-d340-4623-a33b-27115b7f1e49' WHERE `accounts`.`id` = x'0adbe87fd3404623a33b27115b7f1e49'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0adbe87fd3404623a33b27115b7f1e49', x'8510df1d5be94f87b548b73ea93edc71', x'e63728b57f2b460784b7e47286a4cbdc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8510df1d5be94f87b548b73ea93edc71') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8510df1d5be94f87b548b73ea93edc71' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8510df1d5be94f87b548b73ea93edc71', x'5bc39907503e4aec92f5bfe54701fe07', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8510df1d5be94f87b548b73ea93edc71') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8510df1d5be94f87b548b73ea93edc71' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8510df1d5be94f87b548b73ea93edc71', x'd83eb6bbd4f94b33a7eaf5531f2d4e1c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0a1f5f99ed0b44d88155abe4019f953b' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'0a1f5f99ed0b44d88155abe4019f953b' WHERE `account_users`.`id` = x'8510df1d5be94f87b548b73ea93edc71'  (0.1ms) RELEASE SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` INNER JOIN `account_users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0a1f5f99ed0b44d88155abe4019f953b' AND `users`.`id` = x'e63728b57f2b460784b7e47286a4cbdc' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'045c8e49cbd74122bdb4742674cd74f9', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdominio' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'b9e3801047084d2685adfb4e3336738c', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'e84856520442450eb02dba904ec3a459', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accounte8485652-0442-450e-b02d-ba904ec3a459' WHERE `accounts`.`id` = x'e84856520442450eb02dba904ec3a459'  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e84856520442450eb02dba904ec3a459' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'f1e9350f15404e25b7d9b0db40d78e5f', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'5f14f9101b884dcf91c5588da344eed1', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account5f14f910-1b88-4dcf-91c5-588da344eed1' WHERE `accounts`.`id` = x'5f14f9101b884dcf91c5588da344eed1'  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5f14f9101b884dcf91c5588da344eed1' LIMIT 1  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'd42e9b875676414b910696a441673e14', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'e55a1127b62843858b66533c9bc129ea', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accounte55a1127-b628-4385-8b66-533c9bc129ea' WHERE `accounts`.`id` = x'e55a1127b62843858b66533c9bc129ea'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:14', NULL, '--- !ruby/struct:DestroyAccountJob\nid: e55a1127-b628-4385-8b66-533c9bc129ea\n', NULL, NULL, NULL, 0, 'account_e55a1127-b628-4385-8b66-533c9bc129ea_destroy', '2013-01-02 11:06:14', '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e55a1127-b628-4385-8b66-533c9bc129ea_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'2250137bc98c4767a744af3a2480c2b3', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'e8675dfea3ae480f99c8d40f7e45af88', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accounte8675dfe-a3ae-480f-99c8-d40f7e45af88' WHERE `accounts`.`id` = x'e8675dfea3ae480f99c8d40f7e45af88'  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_e8675dfe-a3ae-480f-99c8-d40f7e45af88_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'ed5bca40c9fc46fd84f2e6a685218978', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'92cd7d38677f43cd8fb2875119e4f58a', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account92cd7d38-677f-43cd-8fb2-875119e4f58a' WHERE `accounts`.`id` = x'92cd7d38677f43cd8fb2875119e4f58a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:14', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 92cd7d38-677f-43cd-8fb2-875119e4f58a\n', NULL, NULL, NULL, 0, 'account_92cd7d38-677f-43cd-8fb2-875119e4f58a_destroy', '2013-01-02 11:06:14', '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_92cd7d38-677f-43cd-8fb2-875119e4f58a_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'a8bf6a53a3d149099d862c953569eb54', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'5ce11f893ce441c4b4b7d3bab0d6fdaa', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account5ce11f89-3ce4-41c4-b4b7-d3bab0d6fdaa' WHERE `accounts`.`id` = x'5ce11f893ce441c4b4b7d3bab0d6fdaa'  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5ce11f89-3ce4-41c4-b4b7-d3bab0d6fdaa_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'77bab397bff649348fb3cfe98fbd71cf', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'd3ced985123941f1951ec93b1247966b', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'accountd3ced985-1239-41f1-951e-c93b1247966b' WHERE `accounts`.`id` = x'd3ced985123941f1951ec93b1247966b'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:14', NULL, '--- !ruby/struct:DestroyAccountJob\nid: d3ced985-1239-41f1-951e-c93b1247966b\n', NULL, NULL, NULL, 0, 'account_d3ced985-1239-41f1-951e-c93b1247966b_destroy', '2013-01-02 11:06:14', '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d3ced985-1239-41f1-951e-c93b1247966b_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d3ced985-1239-41f1-951e-c93b1247966b_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d3ced985-1239-41f1-951e-c93b1247966b_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'7225b5b63b284fc48ddbb2419459b07e', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'09da60269f344dc188602ff133a74a00', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account09da6026-9f34-4dc1-8860-2ff133a74a00' WHERE `accounts`.`id` = x'09da60269f344dc188602ff133a74a00'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:14', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 09da6026-9f34-4dc1-8860-2ff133a74a00\n', NULL, NULL, NULL, 0, 'account_09da6026-9f34-4dc1-8860-2ff133a74a00_destroy', '2013-01-02 11:06:14', '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_09da6026-9f34-4dc1-8860-2ff133a74a00_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_09da6026-9f34-4dc1-8860-2ff133a74a00_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'c1b8f882c3ea4fb08f220b9ccec13b47', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'9ca26055ffbc47ee8aa6aeb26ad8c7b2', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account9ca26055-ffbc-47ee-8aa6-aeb26ad8c7b2' WHERE `accounts`.`id` = x'9ca26055ffbc47ee8aa6aeb26ad8c7b2'  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_9ca26055-ffbc-47ee-8aa6-aeb26ad8c7b2_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_9ca26055-ffbc-47ee-8aa6-aeb26ad8c7b2_destroy' LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'c50baf0c87f448d1acd0b57f64992394', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'02f5f0619c0e4226a5a013f915901bc2', 'jabanilson', NULL, 1, '2013-01-02 11:06:14')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14', `subdomain` = 'account02f5f061-9c0e-4226-a5a0-13f915901bc2' WHERE `accounts`.`id` = x'02f5f0619c0e4226a5a013f915901bc2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:14', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 02f5f061-9c0e-4226-a5a0-13f915901bc2\n', NULL, NULL, NULL, 0, 'account_02f5f061-9c0e-4226-a5a0-13f915901bc2_destroy', '2013-01-02 11:06:14', '2013-01-02 11:06:14')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_02f5f061-9c0e-4226-a5a0-13f915901bc2_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `delayed_jobs` SET `locked_at` = '2013-01-02 11:06:14', `updated_at` = '2013-01-02 11:06:14' WHERE `delayed_jobs`.`id` = 23  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_02f5f061-9c0e-4226-a5a0-13f915901bc2_destroy' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:14', x'b827e39327ee4af0bbd1ee536f8c7836', 'jabanilson', 'unico', 1, '2013-01-02 11:06:14')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'teste@teste.com', '$2a$04$LgEW5Nacf4kyp.yL4EP2VekCgx.t5OEe/ecqo39U6B/LEc1495QJ6', NULL, x'185a468799b149d88a7dd021757b707d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'185a468799b149d88a7dd021757b707d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'2a6ae339c6d34da6873085a1533c9c83', 'fdfb412d52fb863aefe7038e6a131c23', x'185a468799b149d88a7dd021757b707d', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'185a468799b149d88a7dd021757b707d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'2c89681537eb46bdad5dc25a3b052cb5', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account2c896815-37eb-46bd-ad5d-c25a3b052cb5' WHERE `accounts`.`id` = x'2c89681537eb46bdad5dc25a3b052cb5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2c89681537eb46bdad5dc25a3b052cb5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2c89681537eb46bdad5dc25a3b052cb5', x'91cdf710430c498a81c08677193b047d', x'185a468799b149d88a7dd021757b707d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'91cdf710430c498a81c08677193b047d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91cdf710430c498a81c08677193b047d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91cdf710430c498a81c08677193b047d', x'a8970defd7de4b39839edf44cd00e81a', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'91cdf710430c498a81c08677193b047d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91cdf710430c498a81c08677193b047d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91cdf710430c498a81c08677193b047d', x'690dce9dac0449aeacf57a5b3ddb8e7e', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a71ecd3_107080435d485795f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'185a468799b149d88a7dd021757b707d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2c89681537eb46bdad5dc25a3b052cb5' AND `account_users`.`user_id` = x'185a468799b149d88a7dd021757b707d' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91cdf710430c498a81c08677193b047d'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'690dce9dac0449aeacf57a5b3ddb8e7e' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91cdf710430c498a81c08677193b047d' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = ',‰h7ëF½­]ÂZ;,µ' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'91cdf710430c498a81c08677193b047d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91cdf710430c498a81c08677193b047d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91cdf710430c498a81c08677193b047d', x'ea51a8cb66414d36a7c8cc6c9846ea30', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2c89681537eb46bdad5dc25a3b052cb5' AND `account_users`.`user_id` = x'185a468799b149d88a7dd021757b707d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91cdf710430c498a81c08677193b047d' AND `account_roles`.`name` = 'user' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'3fbf38b0c729415bbc2ff953838489fe', 'jabanilson', 'unico', 1, '2013-01-02 11:06:15')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'teste@teste.com', '$2a$04$MgcfRkirxch3Qp3Z/1kz1OrFMKVuOU1atuiTmy4DHR7aQOgpQxLsS', NULL, x'f921349370c34f6298cd90a91aca03be', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f921349370c34f6298cd90a91aca03be' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'28de8973625a4406892eeefe852dfe23', 'c82e0ed5ca542f6530d85fe4aa81d979', x'f921349370c34f6298cd90a91aca03be', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f921349370c34f6298cd90a91aca03be' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'9110e9e8d27a430897774b5a338773e2', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account9110e9e8-d27a-4308-9777-4b5a338773e2' WHERE `accounts`.`id` = x'9110e9e8d27a430897774b5a338773e2' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9110e9e8d27a430897774b5a338773e2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9110e9e8d27a430897774b5a338773e2', x'25b4e293caff4829a36aba325f4c532a', x'f921349370c34f6298cd90a91aca03be') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'25b4e293caff4829a36aba325f4c532a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25b4e293caff4829a36aba325f4c532a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25b4e293caff4829a36aba325f4c532a', x'8984d9f38ade40429252b366dbe012a8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'25b4e293caff4829a36aba325f4c532a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25b4e293caff4829a36aba325f4c532a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25b4e293caff4829a36aba325f4c532a', x'd318f1f606334de8aeda62eb61e62df2', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a72fbca_107080435d4858099@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f921349370c34f6298cd90a91aca03be' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9110e9e8d27a430897774b5a338773e2' AND `account_users`.`user_id` = x'f921349370c34f6298cd90a91aca03be' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'25b4e293caff4829a36aba325f4c532a'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25b4e293caff4829a36aba325f4c532a' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '‘éèÒzC—wKZ3‡sâ' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd318f1f606334de8aeda62eb61e62df2'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'25b4e293caff4829a36aba325f4c532a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25b4e293caff4829a36aba325f4c532a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25b4e293caff4829a36aba325f4c532a', x'0967fe4b44b64840a14b3b49bb7a2e10', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9110e9e8d27a430897774b5a338773e2' AND `account_users`.`user_id` = x'f921349370c34f6298cd90a91aca03be' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'25b4e293caff4829a36aba325f4c532a' AND `account_roles`.`name` = 'admin' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'bcb0bfc889384becb781e54e185129b0', 'jabanilson', 'unico', 1, '2013-01-02 11:06:15')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'af9594242cc54f0dbd95763649336a99', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'accountaf959424-2cc5-4f0d-bd95-763649336a99' WHERE `accounts`.`id` = x'af9594242cc54f0dbd95763649336a99'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'accountaf959424-2cc5-4f0d-bd95-763649336a99' AND `accounts`.`id` != x'af9594242cc54f0dbd95763649336a99') LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = 'Named', `updated_at` = '2013-01-02 11:06:15' WHERE `accounts`.`id` = x'af9594242cc54f0dbd95763649336a99'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'90e177965ab04b41bf37cb469df7f176', 'jabanilson', 'unico', 1, '2013-01-02 11:06:15')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'49cfcf9b57304c03a150fe469d02c0f2', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account49cfcf9b-5730-4c03-a150-fe469d02c0f2' WHERE `accounts`.`id` = x'49cfcf9b57304c03a150fe469d02c0f2'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account49cfcf9b-5730-4c03-a150-fe469d02c0f2' AND `accounts`.`id` != x'49cfcf9b57304c03a150fe469d02c0f2') LIMIT 1  (0.2ms) UPDATE `accounts` SET `name` = NULL, `updated_at` = '2013-01-02 11:06:15' WHERE `accounts`.`id` = x'49cfcf9b57304c03a150fe469d02c0f2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'3455045b364e4bd59a7ef9836ae6e893', 'jabanilson', 'unico', 1, '2013-01-02 11:06:15')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'4ac294e6a4e246e094905b9f1a87ab8a', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account4ac294e6-a4e2-46e0-9490-5b9f1a87ab8a' WHERE `accounts`.`id` = x'4ac294e6a4e246e094905b9f1a87ab8a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`subdomain` = BINARY 'account4ac294e6-a4e2-46e0-9490-5b9f1a87ab8a' AND `accounts`.`id` != x'4ac294e6a4e246e094905b9f1a87ab8a') LIMIT 1  (0.3ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2013-01-02 11:06:15' WHERE `accounts`.`id` = x'4ac294e6a4e246e094905b9f1a87ab8a'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'dcdb71b7ea1f46d8bfba9ff0e4402405', 'jabanilson', 'unico', 1, '2013-01-02 11:06:15')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'1e859e50b5c14816a6a4d823d1c70827', 'jabanilson', 'subdomainfind', 1, '2013-01-02 11:06:15')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'1e859e50b5c14816a6a4d823d1c70827' AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'1e859e50b5c14816a6a4d823d1c70827', x'bc8b10c687844d85989827ef4b88f849', NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'bc8b10c687844d85989827ef4b88f849'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'getfromdomain.account.test' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1e859e50b5c14816a6a4d823d1c70827' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'16b5bbc713ea427b92a2c8ae9e0ec813', 'jabanilson', 'unico', 1, '2013-01-02 11:06:15')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'd0e4376b9631466c9d2d71ccb76266cb', 'jabanilson', 'subdomainfind', 1, '2013-01-02 11:06:15')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd0e4376b9631466c9d2d71ccb76266cb' AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd0e4376b9631466c9d2d71ccb76266cb', x'914ecbd9215a4281b1136cb956502cc8', NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'914ecbd9215a4281b1136cb956502cc8'  (0.0ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'subdomainfind.iugusdk.dev' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'subdomainfind' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'unico' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'de690bb8fa8c4190b56edf3f7b762b1e', 'jabanilson', 'unico', 1, '2013-01-02 11:06:15')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Exists (0.2ms) SELECT 1 AS one FROM `accounts` WHERE `accounts`.`subdomain` = BINARY 'subdomainfind' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'2f84ad3631054ea9ab62456c1637a241', 'jabanilson', 'subdomainfind', 1, '2013-01-02 11:06:15')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'2f84ad3631054ea9ab62456c1637a241' AND `account_domains`.`url` = 'getfromdomain.account.test' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'2f84ad3631054ea9ab62456c1637a241', x'fdcb5d3d94cc4656983b515c41888696', NULL, 'getfromdomain.account.test', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'fdcb5d3d94cc4656983b515c41888696'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountDomain Load (0.1ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`verified` = 1 AND `account_domains`.`url` = 'notused.domain.test' LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`subdomain` = 'notused.domain.test' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'a3c56014b37744988ff4dac5722abfa7', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'accounta3c56014-b377-4498-8ff4-dac5722abfa7' WHERE `accounts`.`id` = x'a3c56014b37744988ff4dac5722abfa7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'teste@teste.com', '$2a$04$fOhrY9RCG7vres637HYdIuDQhMpl41pBfff2ZUKhqERvjy4zdsWkK', NULL, x'e5de47251c454d158a3968b215f32f0a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e5de47251c454d158a3968b215f32f0a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'5432776e935f439997d80f177f3386a4', 'b5fe60f8ca29e8cdbbb4cf80c6b0bd79', x'e5de47251c454d158a3968b215f32f0a', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e5de47251c454d158a3968b215f32f0a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'8e8315054fda4db095d9e082172b6606', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account8e831505-4fda-4db0-95d9-e082172b6606' WHERE `accounts`.`id` = x'8e8315054fda4db095d9e082172b6606' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8e8315054fda4db095d9e082172b6606' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8e8315054fda4db095d9e082172b6606', x'0b544a3e9e264f58b8a42313837b2208', x'e5de47251c454d158a3968b215f32f0a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0b544a3e9e264f58b8a42313837b2208') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0b544a3e9e264f58b8a42313837b2208' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0b544a3e9e264f58b8a42313837b2208', x'f9eb85b39c434e9bafdf35ff8fc21546', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0b544a3e9e264f58b8a42313837b2208') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0b544a3e9e264f58b8a42313837b2208' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0b544a3e9e264f58b8a42313837b2208', x'512006ff2cb945d5b605de2c1f969265', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a754f2e_107080435d48581f4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a3c56014b37744988ff4dac5722abfa7', x'c88a7c8b5489400594ce34dbd946699b', x'e5de47251c454d158a3968b215f32f0a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c88a7c8b5489400594ce34dbd946699b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c88a7c8b5489400594ce34dbd946699b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c88a7c8b5489400594ce34dbd946699b', x'420cedd49f864490808c716fe9a5ce60', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c88a7c8b5489400594ce34dbd946699b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c88a7c8b5489400594ce34dbd946699b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c88a7c8b5489400594ce34dbd946699b', x'3012063db67949bfa7f9b48813562bf2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'8491d3dd10374b9eaba2fe0fb39806d4', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account8491d3dd-1037-4b9e-aba2-fe0fb39806d4' WHERE `accounts`.`id` = x'8491d3dd10374b9eaba2fe0fb39806d4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'teste@teste.com', '$2a$04$U7Qt7s1RuVwoWHzHty2vhOK9LQyA1AsQ4sCMVpop3mhchHXS4hde6', NULL, x'bf8d6f51c6a54cef827321dd66aebd1b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bf8d6f51c6a54cef827321dd66aebd1b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'75d3d36712ef418e90cbd26d1a129277', '383e818aaef8db63b601dfd4f825c69f', x'bf8d6f51c6a54cef827321dd66aebd1b', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bf8d6f51c6a54cef827321dd66aebd1b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'30a47437cc334931b22892e270ee6109', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account30a47437-cc33-4931-b228-92e270ee6109' WHERE `accounts`.`id` = x'30a47437cc334931b22892e270ee6109' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'30a47437cc334931b22892e270ee6109' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'30a47437cc334931b22892e270ee6109', x'491648b19564402db8ab89f048650bcb', x'bf8d6f51c6a54cef827321dd66aebd1b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'491648b19564402db8ab89f048650bcb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'491648b19564402db8ab89f048650bcb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'491648b19564402db8ab89f048650bcb', x'333fb8c9231e4f0ba477072d6f058179', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'491648b19564402db8ab89f048650bcb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'491648b19564402db8ab89f048650bcb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'491648b19564402db8ab89f048650bcb', x'c000d90abce043338a5319a7b16622ee', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a77b477_107080435d485822f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8491d3dd10374b9eaba2fe0fb39806d4', x'7bb2c317b3ba496fa82e615e73e7ef74', x'bf8d6f51c6a54cef827321dd66aebd1b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7bb2c317b3ba496fa82e615e73e7ef74') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7bb2c317b3ba496fa82e615e73e7ef74' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7bb2c317b3ba496fa82e615e73e7ef74', x'b29a2378e28c48cb95ac6935529877d8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7bb2c317b3ba496fa82e615e73e7ef74') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7bb2c317b3ba496fa82e615e73e7ef74' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7bb2c317b3ba496fa82e615e73e7ef74', x'f3b6bca299744845821ffafb945e2092', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7bb2c317b3ba496fa82e615e73e7ef74'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7bb2c317b3ba496fa82e615e73e7ef74' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '„‘ÓÝ7Kž«¢þ³˜Ô' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f3b6bca299744845821ffafb945e2092'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'7bb2c317b3ba496fa82e615e73e7ef74') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7bb2c317b3ba496fa82e615e73e7ef74', x'84ef9b3391c54166bb18da9f79e9f988', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != x'84ef9b3391c54166bb18da9f79e9f988' AND `account_roles`.`account_user_id` = x'7bb2c317b3ba496fa82e615e73e7ef74') LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7bb2c317b3ba496fa82e615e73e7ef74' AND `account_roles`.`name` = 'user' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'ab9ce20269de4ae0a292e81c1b9f501c', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'accountab9ce202-69de-4ae0-a292-e81c1b9f501c' WHERE `accounts`.`id` = x'ab9ce20269de4ae0a292e81c1b9f501c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'teste@teste.com', '$2a$04$Dga0VE/h9Tb/ZxA3ezSyZuByUaiDZ7LY.gWVyDlX/2tDq8xETpvYC', NULL, x'06428037e22d4573a31f0a64176bedd7', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'06428037e22d4573a31f0a64176bedd7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'f915d1f1a664425d8ec61b5c1cc622c4', 'e6afdae8f7fd4e0a889db0d1fa34bf8b', x'06428037e22d4573a31f0a64176bedd7', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'06428037e22d4573a31f0a64176bedd7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'c4746722d10c4700809086d038557639', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'accountc4746722-d10c-4700-8090-86d038557639' WHERE `accounts`.`id` = x'c4746722d10c4700809086d038557639' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c4746722d10c4700809086d038557639' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c4746722d10c4700809086d038557639', x'bbb699fb075741398ffe1622746c7307', x'06428037e22d4573a31f0a64176bedd7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bbb699fb075741398ffe1622746c7307') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbb699fb075741398ffe1622746c7307' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbb699fb075741398ffe1622746c7307', x'c2741cf19f464aac9f7ddc83dbbeb2e8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bbb699fb075741398ffe1622746c7307') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bbb699fb075741398ffe1622746c7307' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bbb699fb075741398ffe1622746c7307', x'd1bafd1b590445fcba35ff50f1e5ca8e', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a78d6de_107080435d48583ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ab9ce20269de4ae0a292e81c1b9f501c', x'ed976de8110f41d1bf890419147d5d8a', x'06428037e22d4573a31f0a64176bedd7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ed976de8110f41d1bf890419147d5d8a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed976de8110f41d1bf890419147d5d8a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed976de8110f41d1bf890419147d5d8a', x'cea5a98dcf504986a969fec9ba05b485', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ed976de8110f41d1bf890419147d5d8a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed976de8110f41d1bf890419147d5d8a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed976de8110f41d1bf890419147d5d8a', x'c2f363daedf8455c8f51a7a4955776ae', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed976de8110f41d1bf890419147d5d8a'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c2f363daedf8455c8f51a7a4955776ae' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ed976de8110f41d1bf890419147d5d8a' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '«œâiÞJ࢒èŸP' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'ed976de8110f41d1bf890419147d5d8a') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ed976de8110f41d1bf890419147d5d8a', x'0bfebfaaa98c4eb099807304a551199d', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != x'0bfebfaaa98c4eb099807304a551199d' AND `account_roles`.`account_user_id` = x'ed976de8110f41d1bf890419147d5d8a') LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ed976de8110f41d1bf890419147d5d8a' AND `account_roles`.`name` = 'admin' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'8a726a2f05dc49e7a3084a49e3c80c9e', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account8a726a2f-05dc-49e7-a308-4a49e3c80c9e' WHERE `accounts`.`id` = x'8a726a2f05dc49e7a3084a49e3c80c9e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'teste@teste.com', '$2a$04$UvoQw.uq1j0GO4txrCR18.FmnxIeCV6k8kD4yRPYHR68QqSu83y6G', NULL, x'4093155291e947ce8a4555f27676fc9e', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4093155291e947ce8a4555f27676fc9e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'0c1b45da8d474ca79c073e2b135d2659', 'c5ba945d206fbdd37110a2db6899f128', x'4093155291e947ce8a4555f27676fc9e', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4093155291e947ce8a4555f27676fc9e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'f65240be1e8341ae8324420acb3a2c2c', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'accountf65240be-1e83-41ae-8324-420acb3a2c2c' WHERE `accounts`.`id` = x'f65240be1e8341ae8324420acb3a2c2c' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f65240be1e8341ae8324420acb3a2c2c' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f65240be1e8341ae8324420acb3a2c2c', x'a73b4d82e0c645b98b65f4d54806f845', x'4093155291e947ce8a4555f27676fc9e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a73b4d82e0c645b98b65f4d54806f845') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a73b4d82e0c645b98b65f4d54806f845' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a73b4d82e0c645b98b65f4d54806f845', x'ed69c7e321eb44338b7d102c5c472b1d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a73b4d82e0c645b98b65f4d54806f845') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a73b4d82e0c645b98b65f4d54806f845' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a73b4d82e0c645b98b65f4d54806f845', x'2494526103574bf2aedcce8713f45aa6', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a79fc52_107080435d485845a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a726a2f05dc49e7a3084a49e3c80c9e', x'8da0ef3b2a644509bf927142d8298b14', x'4093155291e947ce8a4555f27676fc9e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8da0ef3b2a644509bf927142d8298b14') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8da0ef3b2a644509bf927142d8298b14' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8da0ef3b2a644509bf927142d8298b14', x'8cef3f9e6fc749098b61b95c3568abc9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8da0ef3b2a644509bf927142d8298b14') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8da0ef3b2a644509bf927142d8298b14' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8da0ef3b2a644509bf927142d8298b14', x'c5ee9026e7d4440780f2b9cd56ecb4be', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8da0ef3b2a644509bf927142d8298b14'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8da0ef3b2a644509bf927142d8298b14' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Šrj/ÜIç£JIãÈ ž' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c5ee9026e7d4440780f2b9cd56ecb4be'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'8da0ef3b2a644509bf927142d8298b14') LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8da0ef3b2a644509bf927142d8298b14', x'782b725122904ebcab32ad06f453ae3a', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`id` != x'782b725122904ebcab32ad06f453ae3a' AND `account_roles`.`account_user_id` = x'8da0ef3b2a644509bf927142d8298b14') LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8da0ef3b2a644509bf927142d8298b14' AND `account_roles`.`name` = 'user' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'a3907bda481542a880b292ed0354732c', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'accounta3907bda-4815-42a8-80b2-92ed0354732c' WHERE `accounts`.`id` = x'a3907bda481542a880b292ed0354732c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'teste@teste.com', '$2a$04$COKp8IrlxZ4jb42pfMa1Mu4sedA4kUNtclPA.MLOZ/KzCfg3cN/EC', NULL, x'77e9da69a0344d06a751a4b9e3720fe0', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'77e9da69a0344d06a751a4b9e3720fe0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'99d5db7b19a14ecb942be241720f273b', 'd728731f074a902631006639f4f73b08', x'77e9da69a0344d06a751a4b9e3720fe0', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'77e9da69a0344d06a751a4b9e3720fe0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'1d8fd9a62f394fedaa3b63cfd2f1f321', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account1d8fd9a6-2f39-4fed-aa3b-63cfd2f1f321' WHERE `accounts`.`id` = x'1d8fd9a62f394fedaa3b63cfd2f1f321' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1d8fd9a62f394fedaa3b63cfd2f1f321' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1d8fd9a62f394fedaa3b63cfd2f1f321', x'bd88b2eda7314dda8a657b55eb9d567d', x'77e9da69a0344d06a751a4b9e3720fe0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'bd88b2eda7314dda8a657b55eb9d567d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd88b2eda7314dda8a657b55eb9d567d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd88b2eda7314dda8a657b55eb9d567d', x'a88cf491ac0a46daa3b2268e130b2796', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'bd88b2eda7314dda8a657b55eb9d567d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd88b2eda7314dda8a657b55eb9d567d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd88b2eda7314dda8a657b55eb9d567d', x'e2ad7cc7cc93433ebda01feb9096f7fa', 'my_user') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a7b1eae_107080435d485857d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a3907bda481542a880b292ed0354732c', x'c948c60fae3d47048f900c3b4a4433bd', x'77e9da69a0344d06a751a4b9e3720fe0') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'c948c60fae3d47048f900c3b4a4433bd') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c948c60fae3d47048f900c3b4a4433bd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c948c60fae3d47048f900c3b4a4433bd', x'cb1c31de92cd46a58deebd81ed8d7d4c', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'c948c60fae3d47048f900c3b4a4433bd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c948c60fae3d47048f900c3b4a4433bd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c948c60fae3d47048f900c3b4a4433bd', x'1b9c90d49f2748e2887214afba5030a5', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'notowner@account.test', '$2a$04$HfnUou/LxG4HgGwDNqRosO7aOSWga70zdo5GorMvkC86QiBuh8zsC', NULL, x'48f462f334224a6c8ce58aaabdd5c241', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'48f462f334224a6c8ce58aaabdd5c241' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'afcebd0428c445b58fc8024993d9eaa4', '54161a759b97e395f88349b221cb8a78', x'48f462f334224a6c8ce58aaabdd5c241', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'48f462f334224a6c8ce58aaabdd5c241' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'6a2d30dfd86f45459d65cdeb4275a533', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account6a2d30df-d86f-4545-9d65-cdeb4275a533' WHERE `accounts`.`id` = x'6a2d30dfd86f45459d65cdeb4275a533' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6a2d30dfd86f45459d65cdeb4275a533' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6a2d30dfd86f45459d65cdeb4275a533', x'be3b910618bc4dab826826af9ffe902f', x'48f462f334224a6c8ce58aaabdd5c241') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'be3b910618bc4dab826826af9ffe902f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be3b910618bc4dab826826af9ffe902f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be3b910618bc4dab826826af9ffe902f', x'0fed7b986562431b94c753debec95ff2', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'be3b910618bc4dab826826af9ffe902f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be3b910618bc4dab826826af9ffe902f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be3b910618bc4dab826826af9ffe902f', x'79731805c17e481aab38c8a17b2913e4', 'my_user') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414a7d6b32_107080435d485865f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'10f94c562744493fa8e46b6a28982704', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account10f94c56-2744-493f-a8e4-6b6a28982704' WHERE `accounts`.`id` = x'10f94c562744493fa8e46b6a28982704'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'10f94c562744493fa8e46b6a28982704', x'235069a8fae44acbab3d5e863a274397', x'48f462f334224a6c8ce58aaabdd5c241') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'235069a8fae44acbab3d5e863a274397') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'235069a8fae44acbab3d5e863a274397' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'235069a8fae44acbab3d5e863a274397', x'5404ce79ea4f4b2b8b811f9ea908ab3f', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'235069a8fae44acbab3d5e863a274397') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'235069a8fae44acbab3d5e863a274397' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'235069a8fae44acbab3d5e863a274397', x'e5bd458091d345ff8010872d90894e5a', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a3907bda481542a880b292ed0354732c' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'a3907bda481542a880b292ed0354732c' WHERE `account_users`.`id` = x'235069a8fae44acbab3d5e863a274397'  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c948c60fae3d47048f900c3b4a4433bd'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1b9c90d49f2748e2887214afba5030a5' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c948c60fae3d47048f900c3b4a4433bd' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '£{ÚHB¨€²’íTs,' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'c948c60fae3d47048f900c3b4a4433bd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c948c60fae3d47048f900c3b4a4433bd' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c948c60fae3d47048f900c3b4a4433bd' AND `account_roles`.`name` = 'my_owner' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'a6af9e40123044e3b075fb3fd6a32606', 'jabanilson', NULL, 1, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'accounta6af9e40-1230-44e3-b075-fb3fd6a32606' WHERE `accounts`.`id` = x'a6af9e40123044e3b075fb3fd6a32606'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'teste@teste.com', '$2a$04$R6qCcIZekLpXgq1uQ2gqLOYwjNXvnvKmwGPLk56aeVDWUnfh8ftWK', NULL, x'a6b570dad0184c6692636540e5fc9ec6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a6b570dad0184c6692636540e5fc9ec6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'86e5bd4367524a7296fb983dc7b22a30', '5823eb86378a3bb3948582713c77c31f', x'a6b570dad0184c6692636540e5fc9ec6', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a6b570dad0184c6692636540e5fc9ec6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'21d83eb65a5847f4b4736f28a696e59d', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account21d83eb6-5a58-47f4-b473-6f28a696e59d' WHERE `accounts`.`id` = x'21d83eb65a5847f4b4736f28a696e59d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'21d83eb65a5847f4b4736f28a696e59d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'21d83eb65a5847f4b4736f28a696e59d', x'1cd5844fbd62477aa46cb3203eb44c2a', x'a6b570dad0184c6692636540e5fc9ec6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'1cd5844fbd62477aa46cb3203eb44c2a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1cd5844fbd62477aa46cb3203eb44c2a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1cd5844fbd62477aa46cb3203eb44c2a', x'c4bb36a9392243a6be295cb4e29744d1', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'1cd5844fbd62477aa46cb3203eb44c2a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1cd5844fbd62477aa46cb3203eb44c2a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1cd5844fbd62477aa46cb3203eb44c2a', x'b7d8c5ee176144b38cee550a2206de4a', 'my_user') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:15 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a7ea938_107080435d48587e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a6af9e40123044e3b075fb3fd6a32606', x'0a313d81f5e747f78708ce84fcb1d625', x'a6b570dad0184c6692636540e5fc9ec6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'0a313d81f5e747f78708ce84fcb1d625') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a313d81f5e747f78708ce84fcb1d625' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a313d81f5e747f78708ce84fcb1d625', x'dbe776f6464444e7b671b01cafe824c2', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'0a313d81f5e747f78708ce84fcb1d625') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a313d81f5e747f78708ce84fcb1d625' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a313d81f5e747f78708ce84fcb1d625', x'2ce73517aec94b17b0470bdef5a19765', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:15', 'notowner@account.test', '$2a$04$gzWQ1KYA0jTEW1g0sDhIv.umIB.DAOCq0aK5HSTbTUEYeqzjs6jyS', NULL, x'e9b7baa07db44a468bf9d09387720e2e', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:15') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e9b7baa07db44a468bf9d09387720e2e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:15', 'User', x'464ff6ef6a1a42a1bf840761c9618c56', '78b16bd344ae64835b1ad2541abced10', x'e9b7baa07db44a468bf9d09387720e2e', 'User', '2013-01-02 11:06:15') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e9b7baa07db44a468bf9d09387720e2e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:15', x'3151bd7e85df408580977df5b866582e', NULL, NULL, NULL, '2013-01-02 11:06:15')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:15', `updated_at` = '2013-01-02 11:06:15', `subdomain` = 'account3151bd7e-85df-4085-8097-7df5b866582e' WHERE `accounts`.`id` = x'3151bd7e85df408580977df5b866582e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3151bd7e85df408580977df5b866582e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3151bd7e85df408580977df5b866582e', x'4b181d0076d743c7a8b9ab30ec22a765', x'e9b7baa07db44a468bf9d09387720e2e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'4b181d0076d743c7a8b9ab30ec22a765') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b181d0076d743c7a8b9ab30ec22a765' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b181d0076d743c7a8b9ab30ec22a765', x'21abdce82914489d85e26f693e9762df', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'4b181d0076d743c7a8b9ab30ec22a765') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b181d0076d743c7a8b9ab30ec22a765' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b181d0076d743c7a8b9ab30ec22a765', x'98d86c337b4d4cf49a4a05c4579fc752', 'my_user') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414a844c4_107080435d4858889@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'3e505e057e9b4b71af3ead6625333ec5', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account3e505e05-7e9b-4b71-af3e-ad6625333ec5' WHERE `accounts`.`id` = x'3e505e057e9b4b71af3ead6625333ec5'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3e505e057e9b4b71af3ead6625333ec5', x'8787678ccfbe4e29b6d52c94ec3b6ce9', x'e9b7baa07db44a468bf9d09387720e2e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'8787678ccfbe4e29b6d52c94ec3b6ce9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8787678ccfbe4e29b6d52c94ec3b6ce9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8787678ccfbe4e29b6d52c94ec3b6ce9', x'4a2c634888924fcaa3b7054fe46e9ae3', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'8787678ccfbe4e29b6d52c94ec3b6ce9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8787678ccfbe4e29b6d52c94ec3b6ce9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8787678ccfbe4e29b6d52c94ec3b6ce9', x'05ca5c4c1ee44ac1af74481d3b511110', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a6af9e40123044e3b075fb3fd6a32606' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'a6af9e40123044e3b075fb3fd6a32606' WHERE `account_users`.`id` = x'8787678ccfbe4e29b6d52c94ec3b6ce9'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0a313d81f5e747f78708ce84fcb1d625'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2ce73517aec94b17b0470bdef5a19765' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a313d81f5e747f78708ce84fcb1d625' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¦¯ž@0Dã°uû?Ö£&' AND name = 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'0a313d81f5e747f78708ce84fcb1d625') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0a313d81f5e747f78708ce84fcb1d625' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0a313d81f5e747f78708ce84fcb1d625', x'7f02230044cb4d54941de16d2b51483e', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0a313d81f5e747f78708ce84fcb1d625' AND `account_roles`.`name` = 'my_user' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'ebbf30ce1e95486fa02bb626a9a34395', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accountebbf30ce-1e95-486f-a02b-b626a9a34395' WHERE `accounts`.`id` = x'ebbf30ce1e95486fa02bb626a9a34395'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$scYb7O4lquSFsxz.VclmZ.Pg/Jm/T4EH/uuMJMpdQVv2sOtNCsaYq', NULL, x'e9b4af70016b4a66a90300929f85237f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e9b4af70016b4a66a90300929f85237f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'cc3c103fee324a7eaefd99125df0a2f3', 'd5cebe62b9bc14eb560ea20aa2d03bfe', x'e9b4af70016b4a66a90300929f85237f', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e9b4af70016b4a66a90300929f85237f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'da17c8fab56242afba545b055c685a79', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accountda17c8fa-b562-42af-ba54-5b055c685a79' WHERE `accounts`.`id` = x'da17c8fab56242afba545b055c685a79' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da17c8fab56242afba545b055c685a79' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'da17c8fab56242afba545b055c685a79', x'279672ce40524aab90fd13587143f1f9', x'e9b4af70016b4a66a90300929f85237f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'279672ce40524aab90fd13587143f1f9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'279672ce40524aab90fd13587143f1f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'279672ce40524aab90fd13587143f1f9', x'e9823174c9bd40aba80977743399474b', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'279672ce40524aab90fd13587143f1f9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'279672ce40524aab90fd13587143f1f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'279672ce40524aab90fd13587143f1f9', x'224553f4ac864c48a5c68c96888891d4', 'my_user') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a82eeea_107080435d485891e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ebbf30ce1e95486fa02bb626a9a34395', x'c18dea8be2ff4b7089a4da582e9a3dce', x'e9b4af70016b4a66a90300929f85237f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'c18dea8be2ff4b7089a4da582e9a3dce') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c18dea8be2ff4b7089a4da582e9a3dce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c18dea8be2ff4b7089a4da582e9a3dce', x'e2d2a3a4ebc54d4383abfa430eae22cf', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'c18dea8be2ff4b7089a4da582e9a3dce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c18dea8be2ff4b7089a4da582e9a3dce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c18dea8be2ff4b7089a4da582e9a3dce', x'e610d18b38a04b1fb8dc7b42b6b6f9ec', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c18dea8be2ff4b7089a4da582e9a3dce'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c18dea8be2ff4b7089a4da582e9a3dce' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ë¿0ΕHo +¶&©£C•' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e610d18b38a04b1fb8dc7b42b6b6f9ec'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_guest' AND `account_roles`.`account_user_id` = x'c18dea8be2ff4b7089a4da582e9a3dce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c18dea8be2ff4b7089a4da582e9a3dce' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c18dea8be2ff4b7089a4da582e9a3dce', x'aeb0400df8a14a5f9e69e9fafb3dc002', 'my_guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c18dea8be2ff4b7089a4da582e9a3dce' AND `account_roles`.`name` = 'my_guest' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'c4792f1c8b4f4c5a8b1927a41e0807cd', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accountc4792f1c-8b4f-4c5a-8b19-27a41e0807cd' WHERE `accounts`.`id` = x'c4792f1c8b4f4c5a8b1927a41e0807cd'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$zTCGeq0u9TU.3G13bdtz2OFi7ZGO47LKuZWT/AsHHuZnzRqYxfrvq', NULL, x'eac895e1495d4abb867e92d066e185fe', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'eac895e1495d4abb867e92d066e185fe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'9924fa6ce74540aaac8893398267ddc1', 'e0bb0a017fbc9f0140dd86cf5ea1674e', x'eac895e1495d4abb867e92d066e185fe', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'eac895e1495d4abb867e92d066e185fe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'241750b0cc5241ecbb868da1ddb77f43', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account241750b0-cc52-41ec-bb86-8da1ddb77f43' WHERE `accounts`.`id` = x'241750b0cc5241ecbb868da1ddb77f43' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'241750b0cc5241ecbb868da1ddb77f43' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'241750b0cc5241ecbb868da1ddb77f43', x'2f37b0cb170f4513bbe12ee0da8dbe12', x'eac895e1495d4abb867e92d066e185fe') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'2f37b0cb170f4513bbe12ee0da8dbe12') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2f37b0cb170f4513bbe12ee0da8dbe12' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2f37b0cb170f4513bbe12ee0da8dbe12', x'440f24c47d29497ca638c47a415e49d4', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'2f37b0cb170f4513bbe12ee0da8dbe12') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2f37b0cb170f4513bbe12ee0da8dbe12' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2f37b0cb170f4513bbe12ee0da8dbe12', x'892d54f81cfd4af68e2575dfc389d400', 'my_user') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a840ef9_107080435d4859023@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c4792f1c8b4f4c5a8b1927a41e0807cd', x'9f6e874f288847e3a4eef9c7248bf305', x'eac895e1495d4abb867e92d066e185fe') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'9f6e874f288847e3a4eef9c7248bf305') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f6e874f288847e3a4eef9c7248bf305' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f6e874f288847e3a4eef9c7248bf305', x'a3948ee74b334976864afe54fca00228', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'9f6e874f288847e3a4eef9c7248bf305') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f6e874f288847e3a4eef9c7248bf305' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f6e874f288847e3a4eef9c7248bf305', x'1243b71ec7564190b13949feca36c5a7', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9f6e874f288847e3a4eef9c7248bf305'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1243b71ec7564190b13949feca36c5a7' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f6e874f288847e3a4eef9c7248bf305' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'9f6e874f288847e3a4eef9c7248bf305') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9f6e874f288847e3a4eef9c7248bf305' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9f6e874f288847e3a4eef9c7248bf305', x'379c26c139be48ddbc889e11c116f309', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'30b6eba71c2d42778f2c699c7198e1db', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account30b6eba7-1c2d-4277-8f2c-699c7198e1db' WHERE `accounts`.`id` = x'30b6eba71c2d42778f2c699c7198e1db'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$V.5kY0M6m9fo9FC1hsWJiO7BKIclK1uHlM.TONZanQPBC4ZgiX5AS', NULL, x'a8da3e4784c34f13bbc62156f5afca77', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a8da3e4784c34f13bbc62156f5afca77' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'7ff078ae3d8847ab8d22243c5e8023fb', '3581ff374a2339248f9d00f231cd996e', x'a8da3e4784c34f13bbc62156f5afca77', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a8da3e4784c34f13bbc62156f5afca77' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'a8b0da4cfb20421483259a9f200df8b4', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accounta8b0da4c-fb20-4214-8325-9a9f200df8b4' WHERE `accounts`.`id` = x'a8b0da4cfb20421483259a9f200df8b4' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a8b0da4cfb20421483259a9f200df8b4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a8b0da4cfb20421483259a9f200df8b4', x'370b9f87f3bd4a0a90e35d7fff59ffb3', x'a8da3e4784c34f13bbc62156f5afca77') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'370b9f87f3bd4a0a90e35d7fff59ffb3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'370b9f87f3bd4a0a90e35d7fff59ffb3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'370b9f87f3bd4a0a90e35d7fff59ffb3', x'051032b46d9945cf84a5cb0a2cae8872', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'370b9f87f3bd4a0a90e35d7fff59ffb3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'370b9f87f3bd4a0a90e35d7fff59ffb3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'370b9f87f3bd4a0a90e35d7fff59ffb3', x'a0431e6428d2406a81b54fa2cba87470', 'my_user') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a85310a_107080435d4859194@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'30b6eba71c2d42778f2c699c7198e1db', x'1a159828ac1d4a40af830b2b31132790', x'a8da3e4784c34f13bbc62156f5afca77') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'1a159828ac1d4a40af830b2b31132790') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a159828ac1d4a40af830b2b31132790' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a159828ac1d4a40af830b2b31132790', x'5f753bc06e634e23a5e39c1576c30122', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'1a159828ac1d4a40af830b2b31132790') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a159828ac1d4a40af830b2b31132790' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1a159828ac1d4a40af830b2b31132790', x'6326199087554e76891ee92bb912967f', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1a159828ac1d4a40af830b2b31132790'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1a159828ac1d4a40af830b2b31132790' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '0¶ë§-Bw,iœq˜áÛ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'6326199087554e76891ee92bb912967f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'7a53bf195719473daf4124582ae8db9d', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account7a53bf19-5719-473d-af41-24582ae8db9d' WHERE `accounts`.`id` = x'7a53bf195719473daf4124582ae8db9d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$Ho8fVxfPJjGWAgJ0yFmwVesr/7BRPQm/meq.shzUexYk3PXgN3cXu', NULL, x'068269ea0be6403892f6d7d6944298bc', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'068269ea0be6403892f6d7d6944298bc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'6016edec17d4484d96cb2abbcfffdfe5', '2664152a79ad69ac13317cf060e7d254', x'068269ea0be6403892f6d7d6944298bc', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'068269ea0be6403892f6d7d6944298bc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'0d7a3aa12737485bbdc4a03b21aae474', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account0d7a3aa1-2737-485b-bdc4-a03b21aae474' WHERE `accounts`.`id` = x'0d7a3aa12737485bbdc4a03b21aae474' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0d7a3aa12737485bbdc4a03b21aae474' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0d7a3aa12737485bbdc4a03b21aae474', x'a196d45cc2b84c97b40297d67e6b3d6a', x'068269ea0be6403892f6d7d6944298bc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'a196d45cc2b84c97b40297d67e6b3d6a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a196d45cc2b84c97b40297d67e6b3d6a' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a196d45cc2b84c97b40297d67e6b3d6a', x'832e4339cc1346a482626f1349c5cead', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'a196d45cc2b84c97b40297d67e6b3d6a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a196d45cc2b84c97b40297d67e6b3d6a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a196d45cc2b84c97b40297d67e6b3d6a', x'eb58676d16f24b35b46af087c424db22', 'my_user') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a8636ad_107080435d48592a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7a53bf195719473daf4124582ae8db9d', x'6b15a6ab73464a3da95903d10e9f43fa', x'068269ea0be6403892f6d7d6944298bc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'6b15a6ab73464a3da95903d10e9f43fa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b15a6ab73464a3da95903d10e9f43fa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6b15a6ab73464a3da95903d10e9f43fa', x'b4e2458d7c4048c995811eb0aa763e2a', 'my_owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'6b15a6ab73464a3da95903d10e9f43fa') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b15a6ab73464a3da95903d10e9f43fa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6b15a6ab73464a3da95903d10e9f43fa', x'e808b2fceab7400c8e0df5d3e60d3111', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6b15a6ab73464a3da95903d10e9f43fa'  (0.0ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6b15a6ab73464a3da95903d10e9f43fa' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'zS¿WG=¯A$X*èÛ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e808b2fceab7400c8e0df5d3e60d3111'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'b6778ee4ca79471e9508bdba056f4575', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accountb6778ee4-ca79-471e-9508-bdba056f4575' WHERE `accounts`.`id` = x'b6778ee4ca79471e9508bdba056f4575'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$9TSxR709ipaevPibkYP1letu4HC7ds//rriNkVWsTTsRq.O0AnuFC', NULL, x'2f23e05e2fc14834bb5e3244fd5f3848', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2f23e05e2fc14834bb5e3244fd5f3848' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.6ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'f4cbf09e6ef44734bc491d4be529dbcb', 'e6e58637a9189eb0ef05a3c91f26cf31', x'2f23e05e2fc14834bb5e3244fd5f3848', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2f23e05e2fc14834bb5e3244fd5f3848' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'60563a44ef2d42a692d146c7f4ae3d90', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account60563a44-ef2d-42a6-92d1-46c7f4ae3d90' WHERE `accounts`.`id` = x'60563a44ef2d42a692d146c7f4ae3d90' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'60563a44ef2d42a692d146c7f4ae3d90' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'60563a44ef2d42a692d146c7f4ae3d90', x'6aaca11a15034a95ad6a44654083ca70', x'2f23e05e2fc14834bb5e3244fd5f3848') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'6aaca11a15034a95ad6a44654083ca70') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6aaca11a15034a95ad6a44654083ca70' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6aaca11a15034a95ad6a44654083ca70', x'f97765bf1e70471b9133cfc23caebc67', 'my_owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'6aaca11a15034a95ad6a44654083ca70') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6aaca11a15034a95ad6a44654083ca70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6aaca11a15034a95ad6a44654083ca70', x'd5a170afae5440e59028ed37c6e525f1', 'my_user') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a88ae1f_107080435d485938d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b6778ee4ca79471e9508bdba056f4575', x'f635e2556ebc4328b016c7442ea137a5', x'2f23e05e2fc14834bb5e3244fd5f3848') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_owner' AND `account_roles`.`account_user_id` = x'f635e2556ebc4328b016c7442ea137a5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f635e2556ebc4328b016c7442ea137a5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f635e2556ebc4328b016c7442ea137a5', x'dbf4fdd2dbb84cb580f97edc6229f8e2', 'my_owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'my_user' AND `account_roles`.`account_user_id` = x'f635e2556ebc4328b016c7442ea137a5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f635e2556ebc4328b016c7442ea137a5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f635e2556ebc4328b016c7442ea137a5', x'a46fbd55ff6f4c88a851995ec1cdca3b', 'my_user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f635e2556ebc4328b016c7442ea137a5'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a46fbd55ff6f4c88a851995ec1cdca3b' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f635e2556ebc4328b016c7442ea137a5' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '¶wŽäÊyG•½ºoEu' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'47b557c6f47443a882be2f57504c743c', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account47b557c6-f474-43a8-82be-2f57504c743c' WHERE `accounts`.`id` = x'47b557c6f47443a882be2f57504c743c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$J65RsVUkQH9Usrf1Xt9AWOK8jYNCH54KDHQ/uHeV1OQJ9oxMBuG6m', NULL, x'b0e32a394514480a98c61dc945499f41', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b0e32a394514480a98c61dc945499f41' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'e8c20875c9c7412facaabf59febdc4c5', '61b7279faa13a4e7fce283558c8bbabc', x'b0e32a394514480a98c61dc945499f41', 'User', '2013-01-02 11:06:16') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b0e32a394514480a98c61dc945499f41' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'34fd324dbab94079b1b2e3fa66930776', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account34fd324d-bab9-4079-b1b2-e3fa66930776' WHERE `accounts`.`id` = x'34fd324dbab94079b1b2e3fa66930776' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'34fd324dbab94079b1b2e3fa66930776' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'34fd324dbab94079b1b2e3fa66930776', x'03ed6b177e4d4585b1981dd6cf26bfec', x'b0e32a394514480a98c61dc945499f41') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'03ed6b177e4d4585b1981dd6cf26bfec') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03ed6b177e4d4585b1981dd6cf26bfec' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03ed6b177e4d4585b1981dd6cf26bfec', x'40cbf7ad8eff4a0f9e8858e2a3d0e5fb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'03ed6b177e4d4585b1981dd6cf26bfec') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'03ed6b177e4d4585b1981dd6cf26bfec' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'03ed6b177e4d4585b1981dd6cf26bfec', x'f9230fd290d24386bc66f529e57266a3', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a89bafa_107080435d4859489@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'47b557c6f47443a882be2f57504c743c', x'c4920423e89843f3ab7922740edbb0b6', x'b0e32a394514480a98c61dc945499f41') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c4920423e89843f3ab7922740edbb0b6') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4920423e89843f3ab7922740edbb0b6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4920423e89843f3ab7922740edbb0b6', x'34ca89bf5eec4f1ba59ddc425f8e9d1e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c4920423e89843f3ab7922740edbb0b6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4920423e89843f3ab7922740edbb0b6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4920423e89843f3ab7922740edbb0b6', x'daa13f699d2547ae9d2d91f8cb1eb375', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:16', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: c4920423-e898-43f3-ab79-22740edbb0b6\n', NULL, NULL, NULL, 0, 'account_user_c4920423-e898-43f3-ab79-22740edbb0b6_destroy', '2013-01-02 11:06:16', '2013-01-02 11:06:16')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_c4920423-e898-43f3-ab79-22740edbb0b6_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'075955ea39654c5bbe6519c1b789c8e0', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account075955ea-3965-4c5b-be65-19c1b789c8e0' WHERE `accounts`.`id` = x'075955ea39654c5bbe6519c1b789c8e0'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$EmSlBZ8AEd9vSoKgnbvZWe99lZENIIT4rbw4gA3spU1v3t1UkVYXm', NULL, x'78ccdc7bfadd4511ba9370d5bdbfac06', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'78ccdc7bfadd4511ba9370d5bdbfac06' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'03fe1230f30c4e4493470876b272bba7', '118b833b2484ec1928e25c549b8372de', x'78ccdc7bfadd4511ba9370d5bdbfac06', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'78ccdc7bfadd4511ba9370d5bdbfac06' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'9162f184696b416c8b26d2f8918630f0', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account9162f184-696b-416c-8b26-d2f8918630f0' WHERE `accounts`.`id` = x'9162f184696b416c8b26d2f8918630f0' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9162f184696b416c8b26d2f8918630f0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9162f184696b416c8b26d2f8918630f0', x'9624da88ff0044a5b19adb0d924aa3f1', x'78ccdc7bfadd4511ba9370d5bdbfac06') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9624da88ff0044a5b19adb0d924aa3f1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9624da88ff0044a5b19adb0d924aa3f1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9624da88ff0044a5b19adb0d924aa3f1', x'b08729f411d1458ba6fafe161de542d5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9624da88ff0044a5b19adb0d924aa3f1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9624da88ff0044a5b19adb0d924aa3f1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9624da88ff0044a5b19adb0d924aa3f1', x'aa006df5f56b4005a6cb0a84c6e06cc1', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a8acf0d_107080435d4859548@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'075955ea39654c5bbe6519c1b789c8e0', x'c4203f198feb4ac1b490a2a040461914', x'78ccdc7bfadd4511ba9370d5bdbfac06') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c4203f198feb4ac1b490a2a040461914') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4203f198feb4ac1b490a2a040461914' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4203f198feb4ac1b490a2a040461914', x'a4afd3117a16491f807ea925e98c1260', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c4203f198feb4ac1b490a2a040461914') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c4203f198feb4ac1b490a2a040461914' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c4203f198feb4ac1b490a2a040461914', x'07982270d3b04f3fbd56523f5b3bf349', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_c4203f19-8feb-4ac1-b490-a2a040461914_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'd3a0be15385b48afa275e9157328f3a5', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accountd3a0be15-385b-48af-a275-e9157328f3a5' WHERE `accounts`.`id` = x'd3a0be15385b48afa275e9157328f3a5'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$zNLvEYUAH2lAXm5cH7kYZ.c4HSMco7EZlLHJcBN/x5NmjPYQE.dtS', NULL, x'87a0ce8041cb4606bc9b20b940ab0591', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'87a0ce8041cb4606bc9b20b940ab0591' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'8aeddba40ead49df83c0b55e3f86a875', 'c2a51619d1854496cfa2fccf726e29ea', x'87a0ce8041cb4606bc9b20b940ab0591', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'87a0ce8041cb4606bc9b20b940ab0591' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'f44a82ea977d4d688125038d9c588165', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accountf44a82ea-977d-4d68-8125-038d9c588165' WHERE `accounts`.`id` = x'f44a82ea977d4d688125038d9c588165' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f44a82ea977d4d688125038d9c588165' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f44a82ea977d4d688125038d9c588165', x'ee93a279e5014af685a6727d7460df29', x'87a0ce8041cb4606bc9b20b940ab0591') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ee93a279e5014af685a6727d7460df29') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ee93a279e5014af685a6727d7460df29' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ee93a279e5014af685a6727d7460df29', x'ed3019ec731f4777bb812d9f860d1267', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ee93a279e5014af685a6727d7460df29') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ee93a279e5014af685a6727d7460df29' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ee93a279e5014af685a6727d7460df29', x'81ffb36f231046d08794450d1404ec4c', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a8bcd73_107080435d4859663@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd3a0be15385b48afa275e9157328f3a5', x'0301a8644c024dff9dbe341215d05ab7', x'87a0ce8041cb4606bc9b20b940ab0591') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0301a8644c024dff9dbe341215d05ab7') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0301a8644c024dff9dbe341215d05ab7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0301a8644c024dff9dbe341215d05ab7', x'6a3ef867d5c244a3a826c7cc1a9204be', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0301a8644c024dff9dbe341215d05ab7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0301a8644c024dff9dbe341215d05ab7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0301a8644c024dff9dbe341215d05ab7', x'7c072505b246410cafcadecddfc8195a', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'0843aa3b44a84f8493600f8a0f503010', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.5ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account0843aa3b-44a8-4f84-9360-0f8a0f503010' WHERE `accounts`.`id` = x'0843aa3b44a84f8493600f8a0f503010'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:16', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 0301a864-4c02-4dff-9dbe-341215d05ab7\n', NULL, NULL, NULL, 0, 'account_user_0301a864-4c02-4dff-9dbe-341215d05ab7_destroy', '2013-01-02 11:06:16', '2013-01-02 11:06:16')  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_0301a864-4c02-4dff-9dbe-341215d05ab7_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'170446c9d5714c63823c025319502aaa', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account170446c9-d571-4c63-823c-025319502aaa' WHERE `accounts`.`id` = x'170446c9d5714c63823c025319502aaa'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$m1bKAoWmHgieeLls5IwX1utpR/iivl2p5F5buC/2D5P/S26Swbmg6', NULL, x'9c15ce01e5fe4272b65f41dc0b7631d0', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9c15ce01e5fe4272b65f41dc0b7631d0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'82eeb58499b54656a9f442734f9feb23', 'bf5966c04d475cbdf6890d1649cb9e45', x'9c15ce01e5fe4272b65f41dc0b7631d0', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9c15ce01e5fe4272b65f41dc0b7631d0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'd57a42c76e1b468b985580a18f00073e', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accountd57a42c7-6e1b-468b-9855-80a18f00073e' WHERE `accounts`.`id` = x'd57a42c76e1b468b985580a18f00073e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd57a42c76e1b468b985580a18f00073e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd57a42c76e1b468b985580a18f00073e', x'08d0ff887448419a8ab0bc3dd238d224', x'9c15ce01e5fe4272b65f41dc0b7631d0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'08d0ff887448419a8ab0bc3dd238d224') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08d0ff887448419a8ab0bc3dd238d224' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08d0ff887448419a8ab0bc3dd238d224', x'3f047e507e9445118566f1c1b69e8f56', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'08d0ff887448419a8ab0bc3dd238d224') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08d0ff887448419a8ab0bc3dd238d224' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08d0ff887448419a8ab0bc3dd238d224', x'4445a673142343c3a4497353790e3a79', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:16 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a8e6896_107080435d485972e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'170446c9d5714c63823c025319502aaa', x'588237b94a96404d86c4e3fe470df5b3', x'9c15ce01e5fe4272b65f41dc0b7631d0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'588237b94a96404d86c4e3fe470df5b3') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'588237b94a96404d86c4e3fe470df5b3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'588237b94a96404d86c4e3fe470df5b3', x'855d3f93baab48189f36122936422bb6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'588237b94a96404d86c4e3fe470df5b3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'588237b94a96404d86c4e3fe470df5b3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'588237b94a96404d86c4e3fe470df5b3', x'8bb42ec37f4a4ebc843ddb400f0645bd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'9fef2712df2743b3b083faf304f9b57a', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account9fef2712-df27-43b3-b083-faf304f9b57a' WHERE `accounts`.`id` = x'9fef2712df2743b3b083faf304f9b57a'  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_588237b9-4a96-404d-86c4-e3fe470df5b3_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'a30bbc9f552942a3aa652ab02c1598f6', 'jabanilson', NULL, 1, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'accounta30bbc9f-5529-42a3-aa65-2ab02c1598f6' WHERE `accounts`.`id` = x'a30bbc9f552942a3aa652ab02c1598f6'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:16', 'teste@teste.com', '$2a$04$qaj3idMj1rAiKz1CFvaCXuiaXrVIL7H/DNqJxF/HA33uJXpv5Bnle', NULL, x'6135caee95e740deb4dbe35d3306c72d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:16') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6135caee95e740deb4dbe35d3306c72d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:16', 'User', x'4bf5f457480a40bdaabb5944a6d24f1f', 'e70a2142519d51e799f5500aced1a12a', x'6135caee95e740deb4dbe35d3306c72d', 'User', '2013-01-02 11:06:16') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6135caee95e740deb4dbe35d3306c72d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:16', x'833ad963f2b2462c89c1db7862fd2112', NULL, NULL, NULL, '2013-01-02 11:06:16')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:16', `updated_at` = '2013-01-02 11:06:16', `subdomain` = 'account833ad963-f2b2-462c-89c1-db7862fd2112' WHERE `accounts`.`id` = x'833ad963f2b2462c89c1db7862fd2112' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'833ad963f2b2462c89c1db7862fd2112' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'833ad963f2b2462c89c1db7862fd2112', x'89e735e3d66447f6a2acac0068bb7195', x'6135caee95e740deb4dbe35d3306c72d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'89e735e3d66447f6a2acac0068bb7195') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'89e735e3d66447f6a2acac0068bb7195' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'89e735e3d66447f6a2acac0068bb7195', x'38b6bb5bb2fe43199a198a76e011a026', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'89e735e3d66447f6a2acac0068bb7195') LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'89e735e3d66447f6a2acac0068bb7195' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'89e735e3d66447f6a2acac0068bb7195', x'509be08f00d14890afad8acea7c621bc', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a938e3_107080435d48598e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a30bbc9f552942a3aa652ab02c1598f6', x'cd7f2d5a0af64a8f93df2e893dc6d8fa', x'6135caee95e740deb4dbe35d3306c72d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cd7f2d5a0af64a8f93df2e893dc6d8fa') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd7f2d5a0af64a8f93df2e893dc6d8fa' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd7f2d5a0af64a8f93df2e893dc6d8fa', x'555df9a17d704fc7b6cef5442dc1ebf8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cd7f2d5a0af64a8f93df2e893dc6d8fa') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd7f2d5a0af64a8f93df2e893dc6d8fa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd7f2d5a0af64a8f93df2e893dc6d8fa', x'0bff85a7db7349d6aa88c97d054261a8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'1488eb5f30fe41569934ab2373aa0609', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account1488eb5f-30fe-4156-9934-ab2373aa0609' WHERE `accounts`.`id` = x'1488eb5f30fe41569934ab2373aa0609'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:17', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: cd7f2d5a-0af6-4a8f-93df-2e893dc6d8fa\n', NULL, NULL, NULL, 0, 'account_user_cd7f2d5a-0af6-4a8f-93df-2e893dc6d8fa_destroy', '2013-01-02 11:06:17', '2013-01-02 11:06:17')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_cd7f2d5a-0af6-4a8f-93df-2e893dc6d8fa_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_cd7f2d5a-0af6-4a8f-93df-2e893dc6d8fa_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 26  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_cd7f2d5a-0af6-4a8f-93df-2e893dc6d8fa_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'dc7c2c0ef1bd49feba48afb61671b595', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accountdc7c2c0e-f1bd-49fe-ba48-afb61671b595' WHERE `accounts`.`id` = x'dc7c2c0ef1bd49feba48afb61671b595'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:17', 'teste@teste.com', '$2a$04$T8KaDIVtoSBsF4xoMFJGQuy5tPbiEH.8VZsN2U8Kje4VGLRrMzFD6', NULL, x'9efdfd0875a344138f5a6e13f89efa4c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9efdfd0875a344138f5a6e13f89efa4c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:17', 'User', x'd858b000bf184f3e9d19883535e9ec7a', 'beb885109308d53666c330d1d38fe0ab', x'9efdfd0875a344138f5a6e13f89efa4c', 'User', '2013-01-02 11:06:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9efdfd0875a344138f5a6e13f89efa4c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.1ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'ebbc196cb3fa42039ab22f67569616fd', NULL, NULL, NULL, '2013-01-02 11:06:17')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accountebbc196c-b3fa-4203-9ab2-2f67569616fd' WHERE `accounts`.`id` = x'ebbc196cb3fa42039ab22f67569616fd' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ebbc196cb3fa42039ab22f67569616fd' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ebbc196cb3fa42039ab22f67569616fd', x'b86dd1d6303445f1906bea4dde7d3567', x'9efdfd0875a344138f5a6e13f89efa4c') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b86dd1d6303445f1906bea4dde7d3567') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b86dd1d6303445f1906bea4dde7d3567' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b86dd1d6303445f1906bea4dde7d3567', x'10101fe484ce435192e718e5b2bc10d0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b86dd1d6303445f1906bea4dde7d3567') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b86dd1d6303445f1906bea4dde7d3567' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b86dd1d6303445f1906bea4dde7d3567', x'838e520eb13344209565ebeff66f1637', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a916718_107080435d4859993@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dc7c2c0ef1bd49feba48afb61671b595', x'75ad98b75eb24ed8b9e3936049e7ce5f', x'9efdfd0875a344138f5a6e13f89efa4c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'75ad98b75eb24ed8b9e3936049e7ce5f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'75ad98b75eb24ed8b9e3936049e7ce5f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'75ad98b75eb24ed8b9e3936049e7ce5f', x'e06044e28bcf4a27bccd8f315b3164a2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'75ad98b75eb24ed8b9e3936049e7ce5f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'75ad98b75eb24ed8b9e3936049e7ce5f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'75ad98b75eb24ed8b9e3936049e7ce5f', x'c887e62246ee459891037565c2722c45', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'f927acc6f57b4c7bbe4679d71b726c5e', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accountf927acc6-f57b-4c7b-be46-79d71b726c5e' WHERE `accounts`.`id` = x'f927acc6f57b4c7bbe4679d71b726c5e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:17', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 75ad98b7-5eb2-4ed8-b9e3-936049e7ce5f\n', NULL, NULL, NULL, 0, 'account_user_75ad98b7-5eb2-4ed8-b9e3-936049e7ce5f_destroy', '2013-01-02 11:06:17', '2013-01-02 11:06:17')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_75ad98b7-5eb2-4ed8-b9e3-936049e7ce5f_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_75ad98b7-5eb2-4ed8-b9e3-936049e7ce5f_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 27  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'f4e55f3e37a34c70b054c6d6145fbdc1', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accountf4e55f3e-37a3-4c70-b054-c6d6145fbdc1' WHERE `accounts`.`id` = x'f4e55f3e37a34c70b054c6d6145fbdc1'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:17', 'teste@teste.com', '$2a$04$5Lsm0EzavVNLnJhMc3W8qeJQU4y9vq03btD6qLOgVEZk3kKR92IQa', NULL, x'4e775e9515074c88b99c32ef75f01744', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4e775e9515074c88b99c32ef75f01744' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:17', 'User', x'3fe450c04f464943bfee519eb86fee01', 'c0ef9cd9c1edf776e76dec54baa7f0ad', x'4e775e9515074c88b99c32ef75f01744', 'User', '2013-01-02 11:06:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4e775e9515074c88b99c32ef75f01744' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'd604a642c3ad44aa82fd6a12a84cf726', NULL, NULL, NULL, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accountd604a642-c3ad-44aa-82fd-6a12a84cf726' WHERE `accounts`.`id` = x'd604a642c3ad44aa82fd6a12a84cf726' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd604a642c3ad44aa82fd6a12a84cf726' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd604a642c3ad44aa82fd6a12a84cf726', x'1d7dff67573a4aa1ab4e568802cb409a', x'4e775e9515074c88b99c32ef75f01744') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1d7dff67573a4aa1ab4e568802cb409a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1d7dff67573a4aa1ab4e568802cb409a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1d7dff67573a4aa1ab4e568802cb409a', x'8336a1ec019441eaba71d15b34558852', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1d7dff67573a4aa1ab4e568802cb409a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1d7dff67573a4aa1ab4e568802cb409a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1d7dff67573a4aa1ab4e568802cb409a', x'381d805642634db0b9aa4f63fa5cb54a', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a9406fc_107080435d48600b1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f4e55f3e37a34c70b054c6d6145fbdc1', x'c3cd01bcdc1e4a19b10e5b96a926224f', x'4e775e9515074c88b99c32ef75f01744') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c3cd01bcdc1e4a19b10e5b96a926224f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3cd01bcdc1e4a19b10e5b96a926224f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3cd01bcdc1e4a19b10e5b96a926224f', x'c4ebb6cde2c74ad394546270e387ec93', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c3cd01bcdc1e4a19b10e5b96a926224f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3cd01bcdc1e4a19b10e5b96a926224f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3cd01bcdc1e4a19b10e5b96a926224f', x'b0807111447d4a58ac016945c7f3671a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'50ec8fbb4ad74a49b9919089510c1634', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account50ec8fbb-4ad7-4a49-b991-9089510c1634' WHERE `accounts`.`id` = x'50ec8fbb4ad74a49b9919089510c1634'  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_c3cd01bc-dc1e-4a19-b10e-5b96a926224f_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_c3cd01bc-dc1e-4a19-b10e-5b96a926224f_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'8f8efa26252b454a907b9d4bc28f2df3', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account8f8efa26-252b-454a-907b-9d4bc28f2df3' WHERE `accounts`.`id` = x'8f8efa26252b454a907b9d4bc28f2df3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:17', 'teste@teste.com', '$2a$04$DVSWz7DKvicLVTHKENhg6eU7.eqyn0gCkM2IDCi1n4.PJZumKZdX2', NULL, x'9c6c0112d92f4a97b22d64fcc6f4249b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9c6c0112d92f4a97b22d64fcc6f4249b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:17', 'User', x'5b1c148b005a40998cea6542257ccd6f', '6c196f5e1c3234618be922be75e34dc5', x'9c6c0112d92f4a97b22d64fcc6f4249b', 'User', '2013-01-02 11:06:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9c6c0112d92f4a97b22d64fcc6f4249b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'e28cc27d69d441a3872a8878ba7e2bfd', NULL, NULL, NULL, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accounte28cc27d-69d4-41a3-872a-8878ba7e2bfd' WHERE `accounts`.`id` = x'e28cc27d69d441a3872a8878ba7e2bfd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e28cc27d69d441a3872a8878ba7e2bfd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e28cc27d69d441a3872a8878ba7e2bfd', x'78f7c076a45a4c0eaaf82f66b1a81a06', x'9c6c0112d92f4a97b22d64fcc6f4249b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'78f7c076a45a4c0eaaf82f66b1a81a06') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78f7c076a45a4c0eaaf82f66b1a81a06' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78f7c076a45a4c0eaaf82f66b1a81a06', x'951e47487d804be2be24cf7197d7e992', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'78f7c076a45a4c0eaaf82f66b1a81a06') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78f7c076a45a4c0eaaf82f66b1a81a06' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78f7c076a45a4c0eaaf82f66b1a81a06', x'2dde6fc222e444728f951e580e14997f', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a95160a_107080435d4860138@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8f8efa26252b454a907b9d4bc28f2df3', x'0582fcc6b2834845be97469dc86754f8', x'9c6c0112d92f4a97b22d64fcc6f4249b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0582fcc6b2834845be97469dc86754f8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0582fcc6b2834845be97469dc86754f8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0582fcc6b2834845be97469dc86754f8', x'46f370c0bea643edbc13f76520a13067', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0582fcc6b2834845be97469dc86754f8') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0582fcc6b2834845be97469dc86754f8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0582fcc6b2834845be97469dc86754f8', x'e36b6a22c6f84679b0af1bf32e5a9309', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'9686949a4ba54e68a4b7b727443521e3', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account9686949a-4ba5-4e68-a4b7-b727443521e3' WHERE `accounts`.`id` = x'9686949a4ba54e68a4b7b727443521e3'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:17', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 0582fcc6-b283-4845-be97-469dc86754f8\n', NULL, NULL, NULL, 0, 'account_user_0582fcc6-b283-4845-be97-469dc86754f8_destroy', '2013-01-02 11:06:17', '2013-01-02 11:06:17')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_0582fcc6-b283-4845-be97-469dc86754f8_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `delayed_jobs` SET `locked_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17' WHERE `delayed_jobs`.`id` = 28  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_0582fcc6-b283-4845-be97-469dc86754f8_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'7d656c9aa42246bf8aa89a6fe730c83b', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account7d656c9a-a422-46bf-8aa8-9a6fe730c83b' WHERE `accounts`.`id` = x'7d656c9aa42246bf8aa89a6fe730c83b'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'7d656c9aa42246bf8aa89a6fe730c83b' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:06:17', 'api token', x'03dd72dbfee74d7791c265358ecebe82', 'c8ed7afc9ff85367550e91c1006f684a', x'7d656c9aa42246bf8aa89a6fe730c83b', 'Account', '2013-01-02 11:06:17')  (0.0ms) RELEASE SAVEPOINT active_record_1 ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY 'c8ed7afc9ff85367550e91c1006f684a' LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` = BINARY 'c8ed7afc9ff85367550e91c1006f684a' LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'599def1b5b6041239ea090e564248ece', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account599def1b-5b60-4123-9ea0-90e564248ece' WHERE `accounts`.`id` = x'599def1b5b6041239ea090e564248ece'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'599def1b5b6041239ea090e564248ece' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:06:17', 'api token', x'74bb5c8f55e24c2db01eac113e4d15f8', 'c4e9852c5a724a25ce11daf4eb8d7544', x'599def1b5b6041239ea090e564248ece', 'Account', '2013-01-02 11:06:17')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'f0a582e3687f456ba7fa344a08fbb288', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accountf0a582e3-687f-456b-a7fa-344a08fbb288' WHERE `accounts`.`id` = x'f0a582e3687f456ba7fa344a08fbb288'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'f0a582e3687f456ba7fa344a08fbb288' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:06:17', 'api token', x'0527c64475f247e99cde31105c9434b1', '8452f396fd6896bedc6334000cab96b2', x'f0a582e3687f456ba7fa344a08fbb288', 'Account', '2013-01-02 11:06:17')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` IS NULL AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` IS NULL) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'4e8f3037a360439699d2f85a3a6bac66', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account4e8f3037-a360-4396-99d2-f85a3a6bac66' WHERE `accounts`.`id` = x'4e8f3037a360439699d2f85a3a6bac66'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'4e8f3037a360439699d2f85a3a6bac66' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:06:17', 'api token', x'11ab3926d99844948b3a4fe493f855ad', 'e3c3b65850174a807525778924f7543b', x'4e8f3037a360439699d2f85a3a6bac66', 'Account', '2013-01-02 11:06:17')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'e95f129b367d4e2c9e8dfa7c13476968', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accounte95f129b-367d-4e2c-9e8d-fa7c13476968' WHERE `accounts`.`id` = x'e95f129b367d4e2c9e8dfa7c13476968'  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = x'e95f129b367d4e2c9e8dfa7c13476968' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e95f129b367d4e2c9e8dfa7c13476968' LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:06:17', 'token 1', x'b58c35ad83224906b1b7c18acf226804', '729655533dc2b9bc9c72c12211a9525a', x'e95f129b367d4e2c9e8dfa7c13476968', 'Account', '2013-01-02 11:06:17')  (0.1ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`token` = BINARY '729655533dc2b9bc9c72c12211a9525a' AND `api_tokens`.`id` != x'b58c35ad83224906b1b7c18acf226804') LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`id` != x'b58c35ad83224906b1b7c18acf226804' AND `api_tokens`.`tokenable_id` = x'e95f129b367d4e2c9e8dfa7c13476968' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = x'e95f129b367d4e2c9e8dfa7c13476968' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e95f129b367d4e2c9e8dfa7c13476968' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'token 1' AND `api_tokens`.`tokenable_id` = x'e95f129b367d4e2c9e8dfa7c13476968' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'246a1c5c5061495d8f4e367db4dced93', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account246a1c5c-5061-495d-8f4e-367db4dced93' WHERE `accounts`.`id` = x'246a1c5c5061495d8f4e367db4dced93'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` = x'246a1c5c5061495d8f4e367db4dced93' AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('test', '2013-01-02 11:06:17', 'api token', x'c9bfd2de572d46b3884610618f121077', '736d4c296aebb5a40b6a99cda8039118', x'246a1c5c5061495d8f4e367db4dced93', 'Account', '2013-01-02 11:06:17')  (0.2ms) RELEASE SAVEPOINT active_record_1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'api token' AND `api_tokens`.`tokenable_id` IS NULL AND `api_tokens`.`tokenable_type` = 'Account') LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:17', '2013-01-02 11:06:17', '', '$2a$04$Af5kpru5o4EMOQ2sjtdXI.nL5ou87lfVb04gUL89b4q0BfaIl9Pwu', NULL, x'269ec51ce5a344c19c0ad05e06543f8f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'269ec51ce5a344c19c0ad05e06543f8f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:17', 'User', x'ea1f3237538746338d8db5e20a2f76e1', 'd7bca724109674869fb3527aa9637c85', x'269ec51ce5a344c19c0ad05e06543f8f', 'User', '2013-01-02 11:06:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'269ec51ce5a344c19c0ad05e06543f8f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'33ce28c861874c58b79d695c84fb889e', NULL, NULL, NULL, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account33ce28c8-6187-4c58-b79d-695c84fb889e' WHERE `accounts`.`id` = x'33ce28c861874c58b79d695c84fb889e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'33ce28c861874c58b79d695c84fb889e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'33ce28c861874c58b79d695c84fb889e', x'd98572b074d94721be726e907f00cfac', x'269ec51ce5a344c19c0ad05e06543f8f') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd98572b074d94721be726e907f00cfac') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd98572b074d94721be726e907f00cfac' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd98572b074d94721be726e907f00cfac', x'705f1ebb757148cfa58fd747ec2b3064', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd98572b074d94721be726e907f00cfac') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd98572b074d94721be726e907f00cfac' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd98572b074d94721be726e907f00cfac', x'f16877f8120d4e04ab3c78f42a925006', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8f767c0c95b240fda8a635074732c257', 'twitter', NULL, '123123123', NULL, NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `user_id` = x'269ec51ce5a344c19c0ad05e06543f8f' WHERE `social_accounts`.`id` = x'8f767c0c95b240fda8a635074732c257'  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'269ec51ce5a344c19c0ad05e06543f8f' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'269ec51ce5a344c19c0ad05e06543f8f' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'269ec51ce5a344c19c0ad05e06543f8f' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'269ec51ce5a344c19c0ad05e06543f8f'  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:17', 'teste@teste.com', '$2a$04$FNjEMlKItO5aI29lTKeiQOb5gsTKYEIXwJcMk7aGc/O/.icNL1elq', NULL, x'c5e0811658514e7081dc4341d3cac9b5', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:17') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c5e0811658514e7081dc4341d3cac9b5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:17', 'User', x'17c71012ec7a4aa38d7c7b4e8093a697', '553e2dbf4bccb27252f53394fd0e3930', x'c5e0811658514e7081dc4341d3cac9b5', 'User', '2013-01-02 11:06:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c5e0811658514e7081dc4341d3cac9b5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'dbe51ab7fcde43b0a51ac93e33d3fe23', NULL, NULL, NULL, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'accountdbe51ab7-fcde-43b0-a51a-c93e33d3fe23' WHERE `accounts`.`id` = x'dbe51ab7fcde43b0a51ac93e33d3fe23' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dbe51ab7fcde43b0a51ac93e33d3fe23' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dbe51ab7fcde43b0a51ac93e33d3fe23', x'c140d858d73d4ba1aa4d0e8e97f9f5da', x'c5e0811658514e7081dc4341d3cac9b5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c140d858d73d4ba1aa4d0e8e97f9f5da') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c140d858d73d4ba1aa4d0e8e97f9f5da' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c140d858d73d4ba1aa4d0e8e97f9f5da', x'bad0d4dc8b73417eb9e48b48a19883ca', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c140d858d73d4ba1aa4d0e8e97f9f5da') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c140d858d73d4ba1aa4d0e8e97f9f5da' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c140d858d73d4ba1aa4d0e8e97f9f5da', x'65536b2ae4284df5874f3ad0b3724700', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a99c9f2_107080435d4860240@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'82828c658b66433b93e744e6e29b4041', 'twitter', NULL, '123123123', NULL, x'c5e0811658514e7081dc4341d3cac9b5')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `encrypted_password` = '', `unconfirmed_email` = 'testing@email.test', `updated_at` = '2013-01-02 11:06:17' WHERE `users`.`id` = x'c5e0811658514e7081dc4341d3cac9b5' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'hv5MMRnDA6376xWFz2dq' LIMIT 1  (0.4ms) UPDATE `users` SET `encrypted_password` = '', `unconfirmed_email` = 'testing@email.test', `updated_at` = '2013-01-02 11:06:17', `confirmation_token` = 'hv5MMRnDA6376xWFz2dq', `confirmation_sent_at` = '2013-01-02 11:06:17' WHERE `users`.`id` = x'c5e0811658514e7081dc4341d3cac9b5' Sent mail to testing@email.test (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: testing@email.test Message-ID: <50e414a9a2b40_107080435d4860370@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome teste@teste.com!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c5e0811658514e7081dc4341d3cac9b5'  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:17', 'teste@teste.com', '$2a$04$yZdpyAgjD4183VUAIslxaepYbbTmfIb36DizXsOx9H8IbpE.v6SiC', NULL, x'2db4243cf6214b37bc99fdf691b0dc6a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2db4243cf6214b37bc99fdf691b0dc6a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:17', 'User', x'3dd68273c48c4b2faac5e88531754504', 'f62adae10dff1c927838a5601855723c', x'2db4243cf6214b37bc99fdf691b0dc6a', 'User', '2013-01-02 11:06:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2db4243cf6214b37bc99fdf691b0dc6a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'965570773786422bb1c888165d7ca6a8', NULL, NULL, NULL, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account96557077-3786-422b-b1c8-88165d7ca6a8' WHERE `accounts`.`id` = x'965570773786422bb1c888165d7ca6a8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'965570773786422bb1c888165d7ca6a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'965570773786422bb1c888165d7ca6a8', x'f3c6979213904903b42875302cdac593', x'2db4243cf6214b37bc99fdf691b0dc6a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f3c6979213904903b42875302cdac593') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f3c6979213904903b42875302cdac593' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f3c6979213904903b42875302cdac593', x'23f9af147f8c460b882ed39880e7f0ed', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f3c6979213904903b42875302cdac593') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f3c6979213904903b42875302cdac593' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f3c6979213904903b42875302cdac593', x'94448e0fa5ad4770863ed7b9f6666096', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414a9af3fc_107080435d48604cb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'348b9db4c35f4ab38486e1c858196a71', 'twitter', NULL, '123123123', NULL, x'2db4243cf6214b37bc99fdf691b0dc6a')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2db4243cf6214b37bc99fdf691b0dc6a' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'testing@email.test' AND `users`.`id` != x'2db4243cf6214b37bc99fdf691b0dc6a') LIMIT 1  (0.3ms) UPDATE `users` SET `encrypted_password` = '$2a$04$t0l3OBuRhvB/3qoQiBngKOELF7qVjnCMfd4KUgKmtu7M.ZZp68opi', `unconfirmed_email` = 'testing@email.test', `updated_at` = '2013-01-02 11:06:17' WHERE `users`.`id` = x'2db4243cf6214b37bc99fdf691b0dc6a' User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'TxpkphAXxuigxMsvGjiP' LIMIT 1  (0.4ms) UPDATE `users` SET `encrypted_password` = '$2a$04$t0l3OBuRhvB/3qoQiBngKOELF7qVjnCMfd4KUgKmtu7M.ZZp68opi', `unconfirmed_email` = 'testing@email.test', `updated_at` = '2013-01-02 11:06:17', `confirmation_token` = 'TxpkphAXxuigxMsvGjiP', `confirmation_sent_at` = '2013-01-02 11:06:17' WHERE `users`.`id` = x'2db4243cf6214b37bc99fdf691b0dc6a' Sent mail to testing@email.test (7ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: testing@email.test Message-ID: <50e414a9b6f2f_107080435d48605b@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome teste@teste.com!

You can confirm your account email through the link below

Confirm my account

 (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2db4243cf6214b37bc99fdf691b0dc6a'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `social_accounts` WHERE `social_accounts`.`id` = x'348b9db4c35f4ab38486e1c858196a71'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'15f10ffba75c49a5a485a30e8f201cf6', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account15f10ffb-a75c-49a5-a485-a30e8f201cf6' WHERE `accounts`.`id` = x'15f10ffba75c49a5a485a30e8f201cf6'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'invited@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:17', 'invited@test.test', '$2a$04$0DikOtw3kVv24ef9jO81kusCiDGNJFiSgv/ig5vW.eJa1K.mOwarW', NULL, x'ab745934a36b4d8585b25dede94eeda1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:17') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ab745934a36b4d8585b25dede94eeda1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:17', 'User', x'52cd815270854a2abe03551ce0a6b0bc', '83d36779c853388ccb44f195186d49e4', x'ab745934a36b4d8585b25dede94eeda1', 'User', '2013-01-02 11:06:17') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ab745934a36b4d8585b25dede94eeda1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'6881314ab140405b8b19bfdd60b5de35', NULL, NULL, NULL, '2013-01-02 11:06:17')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account6881314a-b140-405b-8b19-bfdd60b5de35' WHERE `accounts`.`id` = x'6881314ab140405b8b19bfdd60b5de35' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6881314ab140405b8b19bfdd60b5de35' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6881314ab140405b8b19bfdd60b5de35', x'ee2f33e1b6504e5096468e032060fb7d', x'ab745934a36b4d8585b25dede94eeda1') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ee2f33e1b6504e5096468e032060fb7d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ee2f33e1b6504e5096468e032060fb7d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ee2f33e1b6504e5096468e032060fb7d', x'f888f6e7ac3b44efb9a639acc929f943', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ee2f33e1b6504e5096468e032060fb7d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ee2f33e1b6504e5096468e032060fb7d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ee2f33e1b6504e5096468e032060fb7d', x'128d5c2a522946178e4a870b4359d780', 'admin') Sent mail to invited@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: invited@test.test Message-ID: <50e414a9c4a28_107080435d486065a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'15f10ffba75c49a5a485a30e8f201cf6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'15f10ffba75c49a5a485a30e8f201cf6', x'49f19d5a3ac84740abfb3df6f115e878', x'ab745934a36b4d8585b25dede94eeda1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'49f19d5a3ac84740abfb3df6f115e878') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'49f19d5a3ac84740abfb3df6f115e878' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'49f19d5a3ac84740abfb3df6f115e878', x'd68ae642bc534856a51b04d44ab8c501', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'49f19d5a3ac84740abfb3df6f115e878') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'49f19d5a3ac84740abfb3df6f115e878' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'49f19d5a3ac84740abfb3df6f115e878', x'12b180ad38a341f08fc3a2ed0d2d1d50', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'15f10ffba75c49a5a485a30e8f201cf6' AND `users`.`email` = 'invited@test.test'  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'2da796435f1041549a7e6df8d30f938a', NULL, 'user', '2013-01-02 11:06:17', 'kRmy5Hov4vTQPA6C_nNeUBLMLoM') Sent mail to test@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: test@test.test Message-ID: <50e414a9ced45_107080435d486070@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/2da79643-5f10-4154-9a7e-6df8d30f938akRmy5Hov4vTQPA6C_nNeUBLMLoM  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'02c3e64bd6294cd1b402be14d49aa02b', NULL, NULL, '2013-01-02 11:06:17', 'oiaa09s1jiUHAS8danja9sja0') Sent mail to test@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: test@test.test Message-ID: <50e414a9d537e_107080435d48608e0@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/02c3e64b-d629-4cd1-b402-be14d49aa02boiaa09s1jiUHAS8danja9sja0  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.5ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'02c3e64bd6294cd1b402be14d49aa02b' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.4ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'519efac98ea2409185cfcb2bb3cb19cf', NULL, 'user', '2013-01-02 11:06:17', 'TvZyr3czCQilKt3e3NjgnJjcBr0') Sent mail to test@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: test@test.test Message-ID: <50e414a9dba0a_107080435d486097b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/519efac9-8ea2-4091-85cf-cb2bb3cb19cfTvZyr3czCQilKt3e3NjgnJjcBr0  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` IS NULL AND `users`.`email` = 'test@test.test' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (NULL, 'test@test.test', x'0934e24401d14c05ba20fb650d99b277', NULL, 'user', '2013-01-02 11:06:17', 'THNhYtcunrwmTxaYu6XfgmatHQ0') Sent mail to test@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:17 -0200 From: iugu Reply-To: iugu To: test@test.test Message-ID: <50e414a9e1fab_107080435d48610f9@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/0934e244-01d1-4c05-ba20-fb650d99b277THNhYtcunrwmTxaYu6XfgmatHQ0  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:17', x'0deecc2c6c8a47809c442f2f83787ba4', 'jabanilson', NULL, 1, '2013-01-02 11:06:17')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:17', `updated_at` = '2013-01-02 11:06:17', `subdomain` = 'account0deecc2c-6c8a-4780-9c44-2f2f83787ba4' WHERE `accounts`.`id` = x'0deecc2c6c8a47809c442f2f83787ba4'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0deecc2c6c8a47809c442f2f83787ba4' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'0deecc2c6c8a47809c442f2f83787ba4', 'teste@teste.teste', x'b241de75d396467281d00be68a7e07ad', NULL, NULL, '2013-01-02 11:06:17', '1Icplizm_NVhD7Jo2g-J3E_Xop4') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414aae0f3_107080435d486112c@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/b241de75-d396-4672-81d0-0be68a7e07ad1Icplizm_NVhD7Jo2g-J3E_Xop4  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.5ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'b241de75d396467281d00be68a7e07ad' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'4482d6cda9654a03be50f2792a4d4bc8', 'jabanilson', NULL, 1, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account4482d6cd-a965-4a03-be50-f2792a4d4bc8' WHERE `accounts`.`id` = x'4482d6cda9654a03be50f2792a4d4bc8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'4482d6cda9654a03be50f2792a4d4bc8' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'4482d6cda9654a03be50f2792a4d4bc8', 'teste@teste.teste', x'a0e0a35337444465a31350593e4374a7', NULL, NULL, '2013-01-02 11:06:18', '9ZF7KRldbU1dMWt4XdwoURIvtkI') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414aa15d61_107080435d486128b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/a0e0a353-3744-4465-a313-50593e4374a79ZF7KRldbU1dMWt4XdwoURIvtkI  (0.3ms) RELEASE SAVEPOINT active_record_1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'00000000000000000000000031323338' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'0cb5dd8f116b4b578fb91f0f9fc8fe1a', 'jabanilson', NULL, 1, '2013-01-02 11:06:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account0cb5dd8f-116b-4b57-8fb9-1f0f9fc8fe1a' WHERE `accounts`.`id` = x'0cb5dd8f116b4b578fb91f0f9fc8fe1a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0cb5dd8f116b4b578fb91f0f9fc8fe1a' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'0cb5dd8f116b4b578fb91f0f9fc8fe1a', 'teste@teste.teste', x'125b8d3c3ed74066b7567e79e3585d8c', NULL, NULL, '2013-01-02 11:06:18', '6blSjAnAzRO5gRuZPNO77Txli_c') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414aa1d93f_107080435d4861371@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/125b8d3c-3ed7-4066-b756-7e79e3585d8c6blSjAnAzRO5gRuZPNO77Txli_c  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$0Mbc/R5Cjfi12TxbnJa0o.d71JGtQsPF2JrIH0r3j8DLIusdiQkiu', NULL, x'fcfcac2d0736468bbd0d688a5e7b4bbe', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fcfcac2d0736468bbd0d688a5e7b4bbe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'fb38a809adb14584994a595ac46651e2', 'd007e39d76d3408907bcba46d22acfb8', x'fcfcac2d0736468bbd0d688a5e7b4bbe', 'User', '2013-01-02 11:06:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fcfcac2d0736468bbd0d688a5e7b4bbe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'0bf190214f204dc4808a6492e18d337e', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account0bf19021-4f20-4dc4-808a-6492e18d337e' WHERE `accounts`.`id` = x'0bf190214f204dc4808a6492e18d337e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0bf190214f204dc4808a6492e18d337e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0bf190214f204dc4808a6492e18d337e', x'cd64ade378bd481e8d698996fad438b4', x'fcfcac2d0736468bbd0d688a5e7b4bbe') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cd64ade378bd481e8d698996fad438b4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd64ade378bd481e8d698996fad438b4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd64ade378bd481e8d698996fad438b4', x'7b021afc46be4d9f8a28e0f83e5419a7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cd64ade378bd481e8d698996fad438b4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cd64ade378bd481e8d698996fad438b4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cd64ade378bd481e8d698996fad438b4', x'09a2d590d3fa493a9016780598b3ff7e', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aa28c9a_107080435d486147d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0cb5dd8f116b4b578fb91f0f9fc8fe1a' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'0cb5dd8f116b4b578fb91f0f9fc8fe1a' AND `account_users`.`user_id` = x'fcfcac2d0736468bbd0d688a5e7b4bbe'  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0cb5dd8f116b4b578fb91f0f9fc8fe1a' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0cb5dd8f116b4b578fb91f0f9fc8fe1a', x'dac4168084224752a601a8cfb8dc8714', x'fcfcac2d0736468bbd0d688a5e7b4bbe') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dac4168084224752a601a8cfb8dc8714') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dac4168084224752a601a8cfb8dc8714' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dac4168084224752a601a8cfb8dc8714', x'826b466e8c8647238833c12bb7015ea7', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dac4168084224752a601a8cfb8dc8714') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dac4168084224752a601a8cfb8dc8714' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dac4168084224752a601a8cfb8dc8714', x'30b710be66f84c89a348d116b3e001e6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0cb5dd8f116b4b578fb91f0f9fc8fe1a' AND `account_users`.`user_id` = x'fcfcac2d0736468bbd0d688a5e7b4bbe' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'0bbe138f5e914ef6a9fa773d9718aabd', 'jabanilson', NULL, 1, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account0bbe138f-5e91-4ef6-a9fa-773d9718aabd' WHERE `accounts`.`id` = x'0bbe138f5e914ef6a9fa773d9718aabd'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0bbe138f5e914ef6a9fa773d9718aabd' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'0bbe138f5e914ef6a9fa773d9718aabd', 'teste@teste.teste', x'ead4e74b76e54bffa65db021ceb3ae82', NULL, NULL, '2013-01-02 11:06:18', 'Yyj93oQdOrYlvMG5N7N_LHp7JE4') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414aa34c78_107080435d48615f2@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/ead4e74b-76e5-4bff-a65d-b021ceb3ae82Yyj93oQdOrYlvMG5N7N_LHp7JE4  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$w/FWLC4no.TOAFSJ4wBnb.bWSjaqk8FNBBWwdI0C4sMTwH2W0RFvC', NULL, x'80bf9315188a4cd6a80d98deacbbc12d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'80bf9315188a4cd6a80d98deacbbc12d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'9a7f9c0e4e6242caa49cca92c080826e', '4d8ede733e7e2f43df0823ad95644274', x'80bf9315188a4cd6a80d98deacbbc12d', 'User', '2013-01-02 11:06:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'80bf9315188a4cd6a80d98deacbbc12d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'40e605aee9104b8e9b67d83280c63672', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account40e605ae-e910-4b8e-9b67-d83280c63672' WHERE `accounts`.`id` = x'40e605aee9104b8e9b67d83280c63672' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'40e605aee9104b8e9b67d83280c63672' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'40e605aee9104b8e9b67d83280c63672', x'0d5d2f34d4cd47548d3a7cf5225b1596', x'80bf9315188a4cd6a80d98deacbbc12d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0d5d2f34d4cd47548d3a7cf5225b1596') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d5d2f34d4cd47548d3a7cf5225b1596' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d5d2f34d4cd47548d3a7cf5225b1596', x'387e0b8e62a14dc2a7e62e6ef563e2fa', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0d5d2f34d4cd47548d3a7cf5225b1596') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d5d2f34d4cd47548d3a7cf5225b1596' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d5d2f34d4cd47548d3a7cf5225b1596', x'78717d9c9eb8427d916f4f974ebd6090', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aa40452_107080435d4861657@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0bbe138f5e914ef6a9fa773d9718aabd' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `roles` = 'user,guest' WHERE `user_invitations`.`id` = x'ead4e74b76e54bffa65db021ceb3ae82'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'0bbe138f5e914ef6a9fa773d9718aabd' AND `account_users`.`user_id` = x'80bf9315188a4cd6a80d98deacbbc12d'  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0bbe138f5e914ef6a9fa773d9718aabd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0bbe138f5e914ef6a9fa773d9718aabd', x'c0f49f7af1c64dc297627a0305d83890', x'80bf9315188a4cd6a80d98deacbbc12d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c0f49f7af1c64dc297627a0305d83890') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0f49f7af1c64dc297627a0305d83890' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0f49f7af1c64dc297627a0305d83890', x'5f8cd371e04f40518c785050d727ffe6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c0f49f7af1c64dc297627a0305d83890') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0f49f7af1c64dc297627a0305d83890' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0f49f7af1c64dc297627a0305d83890', x'32f1f5175b9149e68c045661ad951f4a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c0f49f7af1c64dc297627a0305d83890'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'32f1f5175b9149e68c045661ad951f4a' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0f49f7af1c64dc297627a0305d83890' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = ' ¾^‘Nö©úw=—ª½' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'c0f49f7af1c64dc297627a0305d83890') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0f49f7af1c64dc297627a0305d83890' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0f49f7af1c64dc297627a0305d83890', x'f0da5de26666432aadfdcfc3afda0cf5', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'guest' AND `account_roles`.`account_user_id` = x'c0f49f7af1c64dc297627a0305d83890') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c0f49f7af1c64dc297627a0305d83890' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c0f49f7af1c64dc297627a0305d83890', x'2bc8bcdcab66403b8f3390b97e913662', 'guest')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0bbe138f5e914ef6a9fa773d9718aabd' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0bbe138f5e914ef6a9fa773d9718aabd' AND `account_users`.`user_id` = x'80bf9315188a4cd6a80d98deacbbc12d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c0f49f7af1c64dc297627a0305d83890' AND `account_roles`.`name` = 'user' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'0bbe138f5e914ef6a9fa773d9718aabd' AND `account_users`.`user_id` = x'80bf9315188a4cd6a80d98deacbbc12d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c0f49f7af1c64dc297627a0305d83890' AND `account_roles`.`name` = 'guest' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'0768b3ec38e54a4ab9adcb89ae78d0ca', 'jabanilson', NULL, 1, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account0768b3ec-38e5-4a4a-b9ad-cb89ae78d0ca' WHERE `accounts`.`id` = x'0768b3ec38e54a4ab9adcb89ae78d0ca'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0768b3ec38e54a4ab9adcb89ae78d0ca' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'0768b3ec38e54a4ab9adcb89ae78d0ca', 'teste@teste.teste', x'c0436daf3d6240b3ad98a01d0185f017', NULL, NULL, '2013-01-02 11:06:18', 'ozcMT0i1kd5KY9dCE77YIuHYMdA') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414aa50c46_107080435d486173b@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/c0436daf-3d62-40b3-ad98-a01d0185f017ozcMT0i1kd5KY9dCE77YIuHYMdA  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$3Q2kK6Q4aj6xyrwy9E5fsOWSTUu04OhL11A1zGPjlyeApm1PXXTq2', NULL, x'26705be744d14e618c10d9d6141587e5', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'26705be744d14e618c10d9d6141587e5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'7ef6e08e386a49cf87440be44fc788a8', 'c32edafb40113bbedd51345ac8634043', x'26705be744d14e618c10d9d6141587e5', 'User', '2013-01-02 11:06:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'26705be744d14e618c10d9d6141587e5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'904fa1e40cea46bfbcfb0d44902391db', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account904fa1e4-0cea-46bf-bcfb-0d44902391db' WHERE `accounts`.`id` = x'904fa1e40cea46bfbcfb0d44902391db' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'904fa1e40cea46bfbcfb0d44902391db' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'904fa1e40cea46bfbcfb0d44902391db', x'de6dcb9d15574e19934501272b031fc6', x'26705be744d14e618c10d9d6141587e5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'de6dcb9d15574e19934501272b031fc6') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de6dcb9d15574e19934501272b031fc6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de6dcb9d15574e19934501272b031fc6', x'40aabed0f56e402c8de07957309cea1b', 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'de6dcb9d15574e19934501272b031fc6') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'de6dcb9d15574e19934501272b031fc6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'de6dcb9d15574e19934501272b031fc6', x'0e07c89ccf0e4f5488bc815b791de0cf', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aa759e7_107080435d48618c9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'0768b3ec38e54a4ab9adcb89ae78d0ca' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'0768b3ec38e54a4ab9adcb89ae78d0ca' AND `account_users`.`user_id` = x'26705be744d14e618c10d9d6141587e5'  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0768b3ec38e54a4ab9adcb89ae78d0ca' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0768b3ec38e54a4ab9adcb89ae78d0ca', x'ab8dc4a3b12a445fb77e230ae2ac4ec9', x'26705be744d14e618c10d9d6141587e5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ab8dc4a3b12a445fb77e230ae2ac4ec9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab8dc4a3b12a445fb77e230ae2ac4ec9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab8dc4a3b12a445fb77e230ae2ac4ec9', x'09adc5934f534d678d50f3c1895dd84e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ab8dc4a3b12a445fb77e230ae2ac4ec9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ab8dc4a3b12a445fb77e230ae2ac4ec9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ab8dc4a3b12a445fb77e230ae2ac4ec9', x'cea6e1259eed471392f9f7670601c53f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'dc9eaef953bb40abb3dfffdeb9872416', 'jabanilson', NULL, 1, '2013-01-02 11:06:18')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'accountdc9eaef9-53bb-40ab-b3df-ffdeb9872416' WHERE `accounts`.`id` = x'dc9eaef953bb40abb3dfffdeb9872416'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'dc9eaef953bb40abb3dfffdeb9872416' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'dc9eaef953bb40abb3dfffdeb9872416', 'teste@teste.teste', x'4dc26a6561ff4a41978e544c1b7073e2', NULL, NULL, '2013-01-02 11:06:18', '9nfvV4hGpLdyhENc6Wk1JLqxLHA') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414aa81fdc_107080435d48619f9@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/4dc26a65-61ff-4a41-978e-544c1b7073e29nfvV4hGpLdyhENc6Wk1JLqxLHA  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$kZ0nbKZhDpl1lGBCLdCRt.KDbntfgjfcY9XHr.RtZV7G2aV7rSfcu', NULL, x'a1e1c5cfc6a14a9799bfb3d2fcd942a4', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a1e1c5cfc6a14a9799bfb3d2fcd942a4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'f1655697a1b84e0f81e4530ef16d7b69', '0337257851fefc690c1f1e3aaa48f560', x'a1e1c5cfc6a14a9799bfb3d2fcd942a4', 'User', '2013-01-02 11:06:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a1e1c5cfc6a14a9799bfb3d2fcd942a4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'd4f9d88a5a224e2a8272fe1192fb7d44', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'accountd4f9d88a-5a22-4e2a-8272-fe1192fb7d44' WHERE `accounts`.`id` = x'd4f9d88a5a224e2a8272fe1192fb7d44' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd4f9d88a5a224e2a8272fe1192fb7d44' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd4f9d88a5a224e2a8272fe1192fb7d44', x'2cc864afd93e404d88058d0fb4932b5f', x'a1e1c5cfc6a14a9799bfb3d2fcd942a4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2cc864afd93e404d88058d0fb4932b5f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2cc864afd93e404d88058d0fb4932b5f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2cc864afd93e404d88058d0fb4932b5f', x'c6d9a73e3e61457a9269b11fbe5274db', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2cc864afd93e404d88058d0fb4932b5f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2cc864afd93e404d88058d0fb4932b5f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2cc864afd93e404d88058d0fb4932b5f', x'4adf5f32cd7246d1b83abbe351bc78a2', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aa8d8d2_107080435d4862033@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.6ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'dc9eaef953bb40abb3dfffdeb9872416' AND `users`.`email` = 'teste@teste.teste'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dc9eaef953bb40abb3dfffdeb9872416' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dc9eaef953bb40abb3dfffdeb9872416', x'60d6af43f2e54a5eb3445be2afa961b0', x'a1e1c5cfc6a14a9799bfb3d2fcd942a4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'60d6af43f2e54a5eb3445be2afa961b0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'60d6af43f2e54a5eb3445be2afa961b0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'60d6af43f2e54a5eb3445be2afa961b0', x'6c1dca6ca9a0461e815036a2fa50acdd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'60d6af43f2e54a5eb3445be2afa961b0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'60d6af43f2e54a5eb3445be2afa961b0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'60d6af43f2e54a5eb3445be2afa961b0', x'082d260330a64cf2ab5798a2523ff2d3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'dc9eaef953bb40abb3dfffdeb9872416' AND `account_users`.`user_id` = x'a1e1c5cfc6a14a9799bfb3d2fcd942a4'  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$6kiRpj2HFT8vt3ZCi2OA7.zjivQ5ZCaTuGd3NDUI1iGYh1lLuQaxq', NULL, x'c4c411cb21ce4acb851d2aa2d3787767', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c4c411cb21ce4acb851d2aa2d3787767' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'82329c081d1643bd9c4907f465f02bb7', 'f87881718125655c53e3b0b98971f0bc', x'c4c411cb21ce4acb851d2aa2d3787767', 'User', '2013-01-02 11:06:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c4c411cb21ce4acb851d2aa2d3787767' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'ce9be07a1f4b4b4e8636c78fdbc0ae92', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'accountce9be07a-1f4b-4b4e-8636-c78fdbc0ae92' WHERE `accounts`.`id` = x'ce9be07a1f4b4b4e8636c78fdbc0ae92' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ce9be07a1f4b4b4e8636c78fdbc0ae92' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ce9be07a1f4b4b4e8636c78fdbc0ae92', x'4303ed6df8ab428e8c2b32ecc1e7d58d', x'c4c411cb21ce4acb851d2aa2d3787767') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4303ed6df8ab428e8c2b32ecc1e7d58d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4303ed6df8ab428e8c2b32ecc1e7d58d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4303ed6df8ab428e8c2b32ecc1e7d58d', x'73356acbfadd405d9250da31d8200107', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4303ed6df8ab428e8c2b32ecc1e7d58d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4303ed6df8ab428e8c2b32ecc1e7d58d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4303ed6df8ab428e8c2b32ecc1e7d58d', x'2074d0a6b5534afb8fe6a80b08a4b19d', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aa9dec7_107080435d4862168@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$IsTuARIjgSNvuba4eUFP0.sCznuddG8a62Yftcc5QV3Lou2vp2xtS', NULL, x'645f75ddfcc3429c8699da0eca1d18d9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'645f75ddfcc3429c8699da0eca1d18d9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'c2f315122e90446b9fdd5a6e8d6bcb8e', 'd62a1471539ff95f2ff85348b0a2522b', x'645f75ddfcc3429c8699da0eca1d18d9', 'User', '2013-01-02 11:06:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'645f75ddfcc3429c8699da0eca1d18d9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'4c6f3ede012948d08c7e041c31ef66e8', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account4c6f3ede-0129-48d0-8c7e-041c31ef66e8' WHERE `accounts`.`id` = x'4c6f3ede012948d08c7e041c31ef66e8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c6f3ede012948d08c7e041c31ef66e8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4c6f3ede012948d08c7e041c31ef66e8', x'73b0e643ebba4dc0b11b881ee03ffd7e', x'645f75ddfcc3429c8699da0eca1d18d9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'73b0e643ebba4dc0b11b881ee03ffd7e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'73b0e643ebba4dc0b11b881ee03ffd7e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'73b0e643ebba4dc0b11b881ee03ffd7e', x'ac37d9091a214637b7a24eefa10b97a9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'73b0e643ebba4dc0b11b881ee03ffd7e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'73b0e643ebba4dc0b11b881ee03ffd7e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'73b0e643ebba4dc0b11b881ee03ffd7e', x'833966696b21414a8a7caa778ab931a4', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aaa980b_107080435d486226f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$SRAvbfxteBvrsgrN5kGCDu.tkppJ880YZ8GGsVAn9NTAYuc/CQ5Au', NULL, x'1b07f048afd249cda554dc69fd4fd121', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1b07f048afd249cda554dc69fd4fd121' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'00c659b0a31b4e329a643146d83ea50a', '1d8a14a131d73e63c95a92dd266beb0a', x'1b07f048afd249cda554dc69fd4fd121', 'User', '2013-01-02 11:06:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1b07f048afd249cda554dc69fd4fd121' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'163bdd789b5c49629bccdce8bc135b68', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account163bdd78-9b5c-4962-9bcc-dce8bc135b68' WHERE `accounts`.`id` = x'163bdd789b5c49629bccdce8bc135b68' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'163bdd789b5c49629bccdce8bc135b68' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'163bdd789b5c49629bccdce8bc135b68', x'07d8ddd14e5f4b8d8936398bb2e1af74', x'1b07f048afd249cda554dc69fd4fd121') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'07d8ddd14e5f4b8d8936398bb2e1af74') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'07d8ddd14e5f4b8d8936398bb2e1af74' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'07d8ddd14e5f4b8d8936398bb2e1af74', x'0b3d299e7cf544cebdadbe58f046b07e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'07d8ddd14e5f4b8d8936398bb2e1af74') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'07d8ddd14e5f4b8d8936398bb2e1af74' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'07d8ddd14e5f4b8d8936398bb2e1af74', x'6d4c9cc33b0e439e9bdffc5ebfc94b49', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aab5b97_107080435d48623a9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$NVSWvX4YeXNUMadPDzWQWewFfDA/2fDPfbLWOFSnPBGzZFX6aCyYy', NULL, x'30fabebead3d4bd49f49c80bb3d62616', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'30fabebead3d4bd49f49c80bb3d62616' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'd2d695472d67426da829671d752e2bae', '386664bc69b8caae4331ad4c17ec30db', x'30fabebead3d4bd49f49c80bb3d62616', 'User', '2013-01-02 11:06:18') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'30fabebead3d4bd49f49c80bb3d62616' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'54cd25ddb0734ad8a2af2af0089a5d81', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account54cd25dd-b073-4ad8-a2af-2af0089a5d81' WHERE `accounts`.`id` = x'54cd25ddb0734ad8a2af2af0089a5d81' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'54cd25ddb0734ad8a2af2af0089a5d81' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'54cd25ddb0734ad8a2af2af0089a5d81', x'c75dad2e39ec4d52a61bf13e5f9d1951', x'30fabebead3d4bd49f49c80bb3d62616') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c75dad2e39ec4d52a61bf13e5f9d1951') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c75dad2e39ec4d52a61bf13e5f9d1951' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c75dad2e39ec4d52a61bf13e5f9d1951', x'3ca92e9fd3524cdd8e6ad5034c4fafb7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c75dad2e39ec4d52a61bf13e5f9d1951') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c75dad2e39ec4d52a61bf13e5f9d1951' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c75dad2e39ec4d52a61bf13e5f9d1951', x'bee0cbc26824499b8d9b30771f5ad0e6', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aadaac9_107080435d4862448@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'30fabebead3d4bd49f49c80bb3d62616'  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$r1K6zZpfxR3HJiOAfWLeK.9nRnwuaUVZJsqsfKlmOyTtiRLC2NRsS', NULL, x'4769d27c8b9044a580a78758b4daec1a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4769d27c8b9044a580a78758b4daec1a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'7bf52ce535684a43bf0aefc30e3b3cfa', 'ccce20581c143c29b212bb0631ac40e0', x'4769d27c8b9044a580a78758b4daec1a', 'User', '2013-01-02 11:06:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4769d27c8b9044a580a78758b4daec1a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'86c56bc3875a427dafa518541466e904', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account86c56bc3-875a-427d-afa5-18541466e904' WHERE `accounts`.`id` = x'86c56bc3875a427dafa518541466e904' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'86c56bc3875a427dafa518541466e904' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'86c56bc3875a427dafa518541466e904', x'21ab99ba47994c38b035034778dcbbb5', x'4769d27c8b9044a580a78758b4daec1a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'21ab99ba47994c38b035034778dcbbb5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21ab99ba47994c38b035034778dcbbb5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21ab99ba47994c38b035034778dcbbb5', x'412818445e3a490b84292bd8510d99f3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'21ab99ba47994c38b035034778dcbbb5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'21ab99ba47994c38b035034778dcbbb5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'21ab99ba47994c38b035034778dcbbb5', x'243d55566c0e4fa498b4ee0139036a17', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:18 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aae8562_107080435d48625cc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:18', 'teste@teste.com', '$2a$04$RnxNutyeZfh2TmsmJqrkxu93w.noUmhWvJmy/OpIeoUnzyY4dVvd2', NULL, x'36ba3298579a4d358e037a261ff7dea1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:18') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'36ba3298579a4d358e037a261ff7dea1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:18', 'User', x'dafdcce681a24ad59611ce7e3c7a579b', '3f37d41671e0103cab70e83a9ebc4fe8', x'36ba3298579a4d358e037a261ff7dea1', 'User', '2013-01-02 11:06:18') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'36ba3298579a4d358e037a261ff7dea1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:18', x'8d6434279bd24ac5966f5541db31f0c6', NULL, NULL, NULL, '2013-01-02 11:06:18')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:18', `updated_at` = '2013-01-02 11:06:18', `subdomain` = 'account8d643427-9bd2-4ac5-966f-5541db31f0c6' WHERE `accounts`.`id` = x'8d6434279bd24ac5966f5541db31f0c6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8d6434279bd24ac5966f5541db31f0c6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8d6434279bd24ac5966f5541db31f0c6', x'5acb41d3cc214b2286317c37f34e4604', x'36ba3298579a4d358e037a261ff7dea1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5acb41d3cc214b2286317c37f34e4604') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5acb41d3cc214b2286317c37f34e4604' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5acb41d3cc214b2286317c37f34e4604', x'cecd7d8731334610ade1fff9f7adf826', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5acb41d3cc214b2286317c37f34e4604') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5acb41d3cc214b2286317c37f34e4604' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5acb41d3cc214b2286317c37f34e4604', x'790ec121d7aa44caad0d8bc425d73454', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ab2d4_107080435d48626f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:19', 'account1@before.destroy', '$2a$04$SDXxkzQvjKCQ0rF/Sw6xQuLpg562LZ2/oEAuc1I3EIiiLvWbt/SHe', NULL, x'650b7efdd3c54944a83fef403581a2ae', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'650b7efdd3c54944a83fef403581a2ae' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'5b77bd9dc0684b6a89535e317e0b554e', '4fd6b252d6df49211159fc34b3e1d246', x'650b7efdd3c54944a83fef403581a2ae', 'User', '2013-01-02 11:06:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'650b7efdd3c54944a83fef403581a2ae' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'dd95461d6f60447d874d3ba23ab0714d', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'accountdd95461d-6f60-447d-874d-3ba23ab0714d' WHERE `accounts`.`id` = x'dd95461d6f60447d874d3ba23ab0714d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dd95461d6f60447d874d3ba23ab0714d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dd95461d6f60447d874d3ba23ab0714d', x'44aa7a7cf0064bdeabdc4fee0248a578', x'650b7efdd3c54944a83fef403581a2ae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'44aa7a7cf0064bdeabdc4fee0248a578') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44aa7a7cf0064bdeabdc4fee0248a578' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44aa7a7cf0064bdeabdc4fee0248a578', x'553cad854d4247208c73be07d3bfb2ea', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'44aa7a7cf0064bdeabdc4fee0248a578') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'44aa7a7cf0064bdeabdc4fee0248a578' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'44aa7a7cf0064bdeabdc4fee0248a578', x'62d9eb37376b4293b58af5f7ce8cba33', 'admin') Sent mail to account1@before.destroy (7ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: account1@before.destroy Message-ID: <50e414abc024_107080435d48627e9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'650b7efdd3c54944a83fef403581a2ae' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyUserJob\nid: 650b7efd-d3c5-4944-a83f-ef403581a2ae\n', NULL, NULL, NULL, 0, 'user_650b7efd-d3c5-4944-a83f-ef403581a2ae_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_650b7efd-d3c5-4944-a83f-ef403581a2ae_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'650b7efdd3c54944a83fef403581a2ae' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'650b7efdd3c54944a83fef403581a2ae' SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 44aa7a7c-f006-4bde-abdc-4fee0248a578\n', NULL, NULL, NULL, 0, 'account_user_44aa7a7c-f006-4bde-abdc-4fee0248a578_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19') SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'650b7efdd3c54944a83fef403581a2ae' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'650b7efdd3c54944a83fef403581a2ae'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'dd95461d6f60447d874d3ba23ab0714d' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyAccountJob\nid: dd95461d-6f60-447d-874d-3ba23ab0714d\n', NULL, NULL, NULL, 0, 'account_dd95461d-6f60-447d-874d-3ba23ab0714d_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = x'650b7efdd3c54944a83fef403581a2ae'  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_dd95461d-6f60-447d-874d-3ba23ab0714d_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:19', 'account1@before.destroy', '$2a$04$TE5VGfqOW/jYdpCGphSXAeOXjgoJ9hS4cNJwZlp/4FFP/32mjFXeO', NULL, x'7d6bf6aed0c04a3692c15ab82f8b953b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7d6bf6aed0c04a3692c15ab82f8b953b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'6860f7ab678948feae6a6406d631e368', 'd38d2c499a9fee53023c9e6379c15ff7', x'7d6bf6aed0c04a3692c15ab82f8b953b', 'User', '2013-01-02 11:06:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7d6bf6aed0c04a3692c15ab82f8b953b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'29b5aecccf50409783c5054c05c25d91', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'account29b5aecc-cf50-4097-83c5-054c05c25d91' WHERE `accounts`.`id` = x'29b5aecccf50409783c5054c05c25d91' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'29b5aecccf50409783c5054c05c25d91' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'29b5aecccf50409783c5054c05c25d91', x'eb9601fc51514863a804d1e1e8b9c54b', x'7d6bf6aed0c04a3692c15ab82f8b953b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eb9601fc51514863a804d1e1e8b9c54b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb9601fc51514863a804d1e1e8b9c54b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb9601fc51514863a804d1e1e8b9c54b', x'3cf509b9ea204608983709458f8b1fed', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eb9601fc51514863a804d1e1e8b9c54b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb9601fc51514863a804d1e1e8b9c54b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb9601fc51514863a804d1e1e8b9c54b', x'42a40b581ba84f14bb16df0dc2da3371', 'admin') Sent mail to account1@before.destroy (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: account1@before.destroy Message-ID: <50e414ab1f544_107080435d48628bb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'9d00b35cfac54ebaa38185e5b73e7cfd', 'jabanilson', NULL, 1, '2013-01-02 11:06:19')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'account9d00b35c-fac5-4eba-a381-85e5b73e7cfd' WHERE `accounts`.`id` = x'9d00b35cfac54ebaa38185e5b73e7cfd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7d6bf6aed0c04a3692c15ab82f8b953b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9d00b35cfac54ebaa38185e5b73e7cfd', x'377a846a46a8439b851cd5ffb0a76449', x'7d6bf6aed0c04a3692c15ab82f8b953b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'377a846a46a8439b851cd5ffb0a76449') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'377a846a46a8439b851cd5ffb0a76449' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'377a846a46a8439b851cd5ffb0a76449', x'2c6e941a413d4300a7a9b94c0905f53b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'377a846a46a8439b851cd5ffb0a76449') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'377a846a46a8439b851cd5ffb0a76449' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'377a846a46a8439b851cd5ffb0a76449', x'3ff77f39b2474e488c8e55fc20a56682', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7d6bf6aed0c04a3692c15ab82f8b953b' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyUserJob\nid: 7d6bf6ae-d0c0-4a36-92c1-5ab82f8b953b\n', NULL, NULL, NULL, 0, 'user_7d6bf6ae-d0c0-4a36-92c1-5ab82f8b953b_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7d6bf6ae-d0c0-4a36-92c1-5ab82f8b953b_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7d6bf6aed0c04a3692c15ab82f8b953b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7d6bf6aed0c04a3692c15ab82f8b953b' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 377a846a-46a8-439b-851c-d5ffb0a76449\n', NULL, NULL, NULL, 0, 'account_user_377a846a-46a8-439b-851c-d5ffb0a76449_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19') SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: eb9601fc-5151-4863-a804-d1e1e8b9c54b\n', NULL, NULL, NULL, 0, 'account_user_eb9601fc-5151-4863-a804-d1e1e8b9c54b_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'7d6bf6aed0c04a3692c15ab82f8b953b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7d6bf6aed0c04a3692c15ab82f8b953b'  (0.3ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'29b5aecccf50409783c5054c05c25d91' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 29b5aecc-cf50-4097-83c5-054c05c25d91\n', NULL, NULL, NULL, 0, 'account_29b5aecc-cf50-4097-83c5-054c05c25d91_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19')  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'9d00b35cfac54ebaa38185e5b73e7cfd' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 9d00b35c-fac5-4eba-a381-85e5b73e7cfd\n', NULL, NULL, NULL, 0, 'account_9d00b35c-fac5-4eba-a381-85e5b73e7cfd_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19') SQL (0.4ms) DELETE FROM `users` WHERE `users`.`id` = x'7d6bf6aed0c04a3692c15ab82f8b953b'  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_9d00b35c-fac5-4eba-a381-85e5b73e7cfd_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account1@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:19', 'account1@before.destroy', '$2a$04$ZwfLogKLcojyfc7/DE9D5OjpEog7gR9lWGAO7tqaRCi3wNsESVh/2', NULL, x'4117e4a882df40f895c199f24ae8ae29', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4117e4a882df40f895c199f24ae8ae29' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'fbb235963f034813b2ffd5d7daffdee4', 'd52f00802fe24c24e8788a606cb6f481', x'4117e4a882df40f895c199f24ae8ae29', 'User', '2013-01-02 11:06:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4117e4a882df40f895c199f24ae8ae29' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'd5272427b0934a479e3bd1438f13ee75', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'accountd5272427-b093-4a47-9e3b-d1438f13ee75' WHERE `accounts`.`id` = x'd5272427b0934a479e3bd1438f13ee75' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd5272427b0934a479e3bd1438f13ee75' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd5272427b0934a479e3bd1438f13ee75', x'b9d66048f67845699dcc9748ea62b58b', x'4117e4a882df40f895c199f24ae8ae29') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b9d66048f67845699dcc9748ea62b58b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9d66048f67845699dcc9748ea62b58b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9d66048f67845699dcc9748ea62b58b', x'62186c61611f43fda69d64e324a1ec51', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b9d66048f67845699dcc9748ea62b58b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9d66048f67845699dcc9748ea62b58b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9d66048f67845699dcc9748ea62b58b', x'68046328935147a78c0a3d531a567798', 'admin') Sent mail to account1@before.destroy (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: account1@before.destroy Message-ID: <50e414ab514f0_107080435d48629ec@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4117e4a882df40f895c199f24ae8ae29' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'account2@before.destroy' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:19', 'account2@before.destroy', '$2a$04$jl0kFlr3jk2/dls2FcFhJOUOOSiIr2ff9U0G3T7CtShFyfJ9H7RD.', NULL, x'ff2fe18618e24157a09d39d647a25f46', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ff2fe18618e24157a09d39d647a25f46' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'7a373ffbe837451e93684b8f3c1ede22', '89d0aeb124e9b925404b612015075db2', x'ff2fe18618e24157a09d39d647a25f46', 'User', '2013-01-02 11:06:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ff2fe18618e24157a09d39d647a25f46' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'4b34088ae51540edac6b02773702bd52', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'account4b34088a-e515-40ed-ac6b-02773702bd52' WHERE `accounts`.`id` = x'4b34088ae51540edac6b02773702bd52' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4b34088ae51540edac6b02773702bd52' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4b34088ae51540edac6b02773702bd52', x'463e628cbd904a9780e4086a28b55593', x'ff2fe18618e24157a09d39d647a25f46') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'463e628cbd904a9780e4086a28b55593') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'463e628cbd904a9780e4086a28b55593' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'463e628cbd904a9780e4086a28b55593', x'0f5e62aa05504fe1b353223c5624c50b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'463e628cbd904a9780e4086a28b55593') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'463e628cbd904a9780e4086a28b55593' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'463e628cbd904a9780e4086a28b55593', x'b61a5d258f7143f0b71260c994ceb35f', 'admin') Sent mail to account2@before.destroy (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: account2@before.destroy Message-ID: <50e414ab5d3bf_107080435d4863050@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd5272427b0934a479e3bd1438f13ee75' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd5272427b0934a479e3bd1438f13ee75', x'12f4fd3e333743d78b6c690faf1c3241', x'ff2fe18618e24157a09d39d647a25f46') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'12f4fd3e333743d78b6c690faf1c3241') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'12f4fd3e333743d78b6c690faf1c3241' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'12f4fd3e333743d78b6c690faf1c3241', x'ed86a54ee50b4d688e09c1836fcdda80', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'12f4fd3e333743d78b6c690faf1c3241') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'12f4fd3e333743d78b6c690faf1c3241' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'12f4fd3e333743d78b6c690faf1c3241', x'661787ede0a8488da50a16c524bac340', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyUserJob\nid: 4117e4a8-82df-40f8-95c1-99f24ae8ae29\n', NULL, NULL, NULL, 0, 'user_4117e4a8-82df-40f8-95c1-99f24ae8ae29_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_4117e4a8-82df-40f8-95c1-99f24ae8ae29_destroy' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4117e4a882df40f895c199f24ae8ae29' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4117e4a882df40f895c199f24ae8ae29' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: b9d66048-f678-4569-9dcc-9748ea62b58b\n', NULL, NULL, NULL, 0, 'account_user_b9d66048-f678-4569-9dcc-9748ea62b58b_destroy', '2013-01-02 11:06:19', '2013-01-02 11:06:19') SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'4117e4a882df40f895c199f24ae8ae29' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4117e4a882df40f895c199f24ae8ae29'  (0.4ms) SELECT COUNT(*) FROM `account_users` WHERE `account_users`.`account_id` = x'd5272427b0934a479e3bd1438f13ee75' SQL (0.2ms) DELETE FROM `users` WHERE `users`.`id` = x'4117e4a882df40f895c199f24ae8ae29'  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d5272427-b093-4a47-9e3b-d1438f13ee75_destroy' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:19', '2013-01-02 11:06:19', '', '', 1, x'a83f9ac88bad4c1a903ca6dde14a5ee0', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a83f9ac88bad4c1a903ca6dde14a5ee0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'301d83f70f204efe8a2cf8ae9329b7f8', 'f771bb6fa9c07824b92381e606278213', x'a83f9ac88bad4c1a903ca6dde14a5ee0', 'User', '2013-01-02 11:06:19') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a83f9ac88bad4c1a903ca6dde14a5ee0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'1eed0fc4f1234e2893877075db9656d4', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'account1eed0fc4-f123-4e28-9387-7075db9656d4' WHERE `accounts`.`id` = x'1eed0fc4f1234e2893877075db9656d4' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1eed0fc4f1234e2893877075db9656d4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1eed0fc4f1234e2893877075db9656d4', x'3d0738153015482aa163e9bd0406b47c', x'a83f9ac88bad4c1a903ca6dde14a5ee0') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3d0738153015482aa163e9bd0406b47c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d0738153015482aa163e9bd0406b47c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d0738153015482aa163e9bd0406b47c', x'495860c18f9c471fa4adc958af5d3486', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3d0738153015482aa163e9bd0406b47c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3d0738153015482aa163e9bd0406b47c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3d0738153015482aa163e9bd0406b47c', x'e0958d11e8614a119fa5dcab578bda88', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyUserJob\nid: a83f9ac8-8bad-4c1a-903c-a6dde14a5ee0\n', NULL, NULL, NULL, 0, 'guest_a83f9ac8-8bad-4c1a-903c-a6dde14a5ee0_destroy', '2013-01-09 11:06:19', '2013-01-02 11:06:19')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'a83f9ac88bad4c1a903ca6dde14a5ee0' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'regular@user.now' AND `users`.`id` != x'a83f9ac88bad4c1a903ca6dde14a5ee0') LIMIT 1  (0.5ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$KbWf.BnINplIzOmmwLWjv.1V2aK7nsSD0oPFJ2c88sIWlS3gHHkL6', `unconfirmed_email` = 'regular@user.now', `updated_at` = '2013-01-02 11:06:19' WHERE `users`.`id` = x'a83f9ac88bad4c1a903ca6dde14a5ee0' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'GutRd9rtbq6CCksR1zTj' LIMIT 1  (0.4ms) UPDATE `users` SET `guest` = 0, `encrypted_password` = '$2a$04$KbWf.BnINplIzOmmwLWjv.1V2aK7nsSD0oPFJ2c88sIWlS3gHHkL6', `unconfirmed_email` = 'regular@user.now', `updated_at` = '2013-01-02 11:06:19', `confirmation_token` = 'GutRd9rtbq6CCksR1zTj', `confirmation_sent_at` = '2013-01-02 11:06:19' WHERE `users`.`id` = x'a83f9ac88bad4c1a903ca6dde14a5ee0' Sent mail to regular@user.now (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: regular@user.now Message-ID: <50e414ab74431_107080435d486317e@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome !

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'guest_a83f9ac8-8bad-4c1a-903c-a6dde14a5ee0_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 39  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:19', '2013-01-02 11:06:19', '', '', 1, x'84d6a01e8a94463a8b9455cb05bcae71', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'84d6a01e8a94463a8b9455cb05bcae71' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'848986a7a1c64141b134aca3a4c325cb', '8677422c6fa82a2d440e2b988d247882', x'84d6a01e8a94463a8b9455cb05bcae71', 'User', '2013-01-02 11:06:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'84d6a01e8a94463a8b9455cb05bcae71' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'18cc6cfa909d446aae3b9d5ae0a5fec7', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'account18cc6cfa-909d-446a-ae3b-9d5ae0a5fec7' WHERE `accounts`.`id` = x'18cc6cfa909d446aae3b9d5ae0a5fec7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'18cc6cfa909d446aae3b9d5ae0a5fec7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'18cc6cfa909d446aae3b9d5ae0a5fec7', x'8a0ca7505f3c44b08d8c8da1729cbbe4', x'84d6a01e8a94463a8b9455cb05bcae71') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8a0ca7505f3c44b08d8c8da1729cbbe4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a0ca7505f3c44b08d8c8da1729cbbe4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a0ca7505f3c44b08d8c8da1729cbbe4', x'f142716d9f5e41c8aa9e68e2fb501c9d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8a0ca7505f3c44b08d8c8da1729cbbe4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8a0ca7505f3c44b08d8c8da1729cbbe4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8a0ca7505f3c44b08d8c8da1729cbbe4', x'ddb72124e23e40248d0318ac56a835d1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyUserJob\nid: 84d6a01e-8a94-463a-8b94-55cb05bcae71\n', NULL, NULL, NULL, 0, 'guest_84d6a01e-8a94-463a-8b94-55cb05bcae71_destroy', '2013-01-09 11:06:19', '2013-01-02 11:06:19')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'84d6a01e8a94463a8b9455cb05bcae71' User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'notvalid.email' AND `users`.`id` != x'84d6a01e8a94463a8b9455cb05bcae71') LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:19', '2013-01-02 11:06:19', '', '', 1, x'c81bc62b0c81413ca8142049ee4c875e', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c81bc62b0c81413ca8142049ee4c875e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'7c4ab20c68a04517a9eecb2a9cd8da18', 'cd5197451f9c522a1d548f0200696255', x'c81bc62b0c81413ca8142049ee4c875e', 'User', '2013-01-02 11:06:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c81bc62b0c81413ca8142049ee4c875e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'bd4ca94681cc400aa4b2d53801446db7', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'accountbd4ca946-81cc-400a-a4b2-d53801446db7' WHERE `accounts`.`id` = x'bd4ca94681cc400aa4b2d53801446db7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bd4ca94681cc400aa4b2d53801446db7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bd4ca94681cc400aa4b2d53801446db7', x'b3089005c4254811a3d82de2ac59e097', x'c81bc62b0c81413ca8142049ee4c875e') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b3089005c4254811a3d82de2ac59e097') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3089005c4254811a3d82de2ac59e097' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3089005c4254811a3d82de2ac59e097', x'ee700df3d92a4fd69fc2a445f717035b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b3089005c4254811a3d82de2ac59e097') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3089005c4254811a3d82de2ac59e097' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3089005c4254811a3d82de2ac59e097', x'1f7685cfce16442f9297b2e164316a5b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:19', NULL, '--- !ruby/struct:DestroyUserJob\nid: c81bc62b-0c81-413c-a814-2049ee4c875e\n', NULL, NULL, NULL, 0, 'guest_c81bc62b-0c81-413c-a814-2049ee4c875e_destroy', '2013-01-09 11:06:19', '2013-01-02 11:06:19')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c81bc62b0c81413ca8142049ee4c875e'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@skip.test' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'XZ7dKSs96Qakt3gqQq1f' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2013-01-02 11:06:19', 'XZ7dKSs96Qakt3gqQq1f', '2013-01-02 11:06:19', '2013-01-02 11:06:19', 'confirmation@skip.test', '$2a$04$g66VzxUXURziqCTc5.JS/uxPSxXmcRY1z75SgROzu3TUJ4tk.VZHm', NULL, x'1c14d2cbb3e649e0a5dd81067307f523', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.1ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1c14d2cbb3e649e0a5dd81067307f523' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'bdf0ac32bc8f4b498d8a38a7527d551a', '057ee4a9e0217e637ea033b07c155810', x'1c14d2cbb3e649e0a5dd81067307f523', 'User', '2013-01-02 11:06:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1c14d2cbb3e649e0a5dd81067307f523' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'fedf9ab672094032bacb13d662b282d9', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'accountfedf9ab6-7209-4032-bacb-13d662b282d9' WHERE `accounts`.`id` = x'fedf9ab672094032bacb13d662b282d9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fedf9ab672094032bacb13d662b282d9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fedf9ab672094032bacb13d662b282d9', x'b6950205fba44b279f27d12946b6b914', x'1c14d2cbb3e649e0a5dd81067307f523') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b6950205fba44b279f27d12946b6b914') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6950205fba44b279f27d12946b6b914' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6950205fba44b279f27d12946b6b914', x'e8fcff07e840485dae8c34813c7bbffc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b6950205fba44b279f27d12946b6b914') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b6950205fba44b279f27d12946b6b914' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b6950205fba44b279f27d12946b6b914', x'906e1a8575c44646a7688922f66262c0', 'admin') Sent mail to confirmation@skip.test (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: confirmation@skip.test Message-ID: <50e414abab738_107080435d486328@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'confirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'aWkCgqGevDzA63jgyCBo' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2013-01-02 11:06:19', 'aWkCgqGevDzA63jgyCBo', NULL, '2013-01-02 11:06:19', 'confirmation@needed.test', '$2a$04$1ciW.S2OzcmmWCkvHvy7pOWr0Ms2MzPoEXN77DwJdwsH2rp4ZXlhS', NULL, x'3fc11999f49e408aa2e94e0bdbcfff75', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') Sent mail to confirmation@needed.test (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: confirmation@needed.test Message-ID: <50e414abb2bf4_107080435d4863364@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome confirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3fc11999f49e408aa2e94e0bdbcfff75' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'dd2ae490edfc4802ab77ace91f1f3222', 'fd95def57f4c3d541fdc0efff7eff256', x'3fc11999f49e408aa2e94e0bdbcfff75', 'User', '2013-01-02 11:06:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3fc11999f49e408aa2e94e0bdbcfff75' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'e77587ae739e45b797e2690a39e3de64', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'accounte77587ae-739e-45b7-97e2-690a39e3de64' WHERE `accounts`.`id` = x'e77587ae739e45b797e2690a39e3de64' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e77587ae739e45b797e2690a39e3de64' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e77587ae739e45b797e2690a39e3de64', x'f541c8bc217a4109a031b18f1faee150', x'3fc11999f49e408aa2e94e0bdbcfff75') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f541c8bc217a4109a031b18f1faee150') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f541c8bc217a4109a031b18f1faee150' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f541c8bc217a4109a031b18f1faee150', x'297b1f12eef64709b5f139a0cd378e1f', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f541c8bc217a4109a031b18f1faee150') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f541c8bc217a4109a031b18f1faee150' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f541c8bc217a4109a031b18f1faee150', x'9a878b69b4004cd8a3e77df0ccca0d5d', 'admin') Sent mail to confirmation@needed.test (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: confirmation@needed.test Message-ID: <50e414abbc302_107080435d486347b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'QvWcppKNhQMpk1kmttSq' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2013-01-02 11:06:19', 'QvWcppKNhQMpk1kmttSq', NULL, '2013-01-02 11:06:19', 'reconfirmation@needed.test', '$2a$04$lm64ojhfEAuxvmmrJLOcgugBhasfTOOFyuiBa6YOo5g9BuP5tuxfC', NULL, x'340f9a88c74c49e6b753b2a630681d58', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: reconfirmation@needed.test Message-ID: <50e414abc3782_107080435d48635d5@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'340f9a88c74c49e6b753b2a630681d58' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'6849d06609184aa79406a8d01d9ea3b0', '6db58f901c8074339e93a73c8e2d50a1', x'340f9a88c74c49e6b753b2a630681d58', 'User', '2013-01-02 11:06:19') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'340f9a88c74c49e6b753b2a630681d58' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'2a988c2b6ee6439fba6b85c228aa2890', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'account2a988c2b-6ee6-439f-ba6b-85c228aa2890' WHERE `accounts`.`id` = x'2a988c2b6ee6439fba6b85c228aa2890' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2a988c2b6ee6439fba6b85c228aa2890' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2a988c2b6ee6439fba6b85c228aa2890', x'be119a1cceea4e4ba3c2b177bf6f238a', x'340f9a88c74c49e6b753b2a630681d58') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'be119a1cceea4e4ba3c2b177bf6f238a') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be119a1cceea4e4ba3c2b177bf6f238a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be119a1cceea4e4ba3c2b177bf6f238a', x'09a47440f36a4fefb30074b05a3350a0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'be119a1cceea4e4ba3c2b177bf6f238a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be119a1cceea4e4ba3c2b177bf6f238a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be119a1cceea4e4ba3c2b177bf6f238a', x'b6006eddd93b43a7abdd6fd4d3d0365b', 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: reconfirmation@needed.test Message-ID: <50e414abccf17_107080435d48636e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'340f9a88c74c49e6b753b2a630681d58' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != x'340f9a88c74c49e6b753b2a630681d58') LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2013-01-02 11:06:19' WHERE `users`.`id` = x'340f9a88c74c49e6b753b2a630681d58' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'BnfVwWjyYxKAJrjEZM9m' LIMIT 1  (0.4ms) UPDATE `users` SET `unconfirmed_email` = 'new@email.test', `updated_at` = '2013-01-02 11:06:19', `confirmation_token` = 'BnfVwWjyYxKAJrjEZM9m' WHERE `users`.`id` = x'340f9a88c74c49e6b753b2a630681d58' Sent mail to new@email.test (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: new@email.test Message-ID: <50e414abd37a5_107080435d4863760@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

 (0.3ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'reconfirmation@needed.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'P5nwzuAihZHpfy1NAFSY' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2013-01-02 11:06:19', 'P5nwzuAihZHpfy1NAFSY', NULL, '2013-01-02 11:06:19', 'reconfirmation@needed.test', '$2a$04$oTVS6Ag79gOWzuXcdfxYOOAbasa/9qyrMgs.Xf.ALbnBuxhYxIpzK', NULL, x'c65725b2bd6e4a5db5e6ce080d78f122', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: reconfirmation@needed.test Message-ID: <50e414abda9a3_107080435d48638b1@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome reconfirmation@needed.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c65725b2bd6e4a5db5e6ce080d78f122' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'fed9a8488c174d338fe9d4ff4b945b7a', '3310d227e81ec979ca756c013da7942c', x'c65725b2bd6e4a5db5e6ce080d78f122', 'User', '2013-01-02 11:06:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c65725b2bd6e4a5db5e6ce080d78f122' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'8578bf3bb21c46b29ea11b46258f4840', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'account8578bf3b-b21c-46b2-9ea1-1b46258f4840' WHERE `accounts`.`id` = x'8578bf3bb21c46b29ea11b46258f4840' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8578bf3bb21c46b29ea11b46258f4840' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8578bf3bb21c46b29ea11b46258f4840', x'891c64dd3d9745de98773467e074fd73', x'c65725b2bd6e4a5db5e6ce080d78f122') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'891c64dd3d9745de98773467e074fd73') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'891c64dd3d9745de98773467e074fd73' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'891c64dd3d9745de98773467e074fd73', x'd5d8dcca0e634ce9aa73889e7a3694c6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'891c64dd3d9745de98773467e074fd73') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'891c64dd3d9745de98773467e074fd73' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'891c64dd3d9745de98773467e074fd73', x'd3497702254f4ca29b343e7c98464c76', 'admin') Sent mail to reconfirmation@needed.test (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: reconfirmation@needed.test Message-ID: <50e414abe3dc7_107080435d48639c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c65725b2bd6e4a5db5e6ce080d78f122' User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'new@email.test' AND `users`.`id` != x'c65725b2bd6e4a5db5e6ce080d78f122') LIMIT 1  (0.4ms) UPDATE `users` SET `email` = 'new@email.test', `updated_at` = '2013-01-02 11:06:19' WHERE `users`.`id` = x'c65725b2bd6e4a5db5e6ce080d78f122'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:19', 'teste@teste.com', '$2a$04$8X4Z1jvBISOMDuyh.74.n.9ZUjghJm0/aHdV544PHSol9sxNq8jPO', NULL, x'dd75515c48a744c2921f78f3401cf23b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:19') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dd75515c48a744c2921f78f3401cf23b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:19', 'User', x'12548c25934841ceba11559923cdebbd', 'd1201657cddb2d4086009ddb02767b6f', x'dd75515c48a744c2921f78f3401cf23b', 'User', '2013-01-02 11:06:19') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dd75515c48a744c2921f78f3401cf23b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:19', x'65d08257e81c45e8a77908bc8b76fc81', NULL, NULL, NULL, '2013-01-02 11:06:19')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:19', `updated_at` = '2013-01-02 11:06:19', `subdomain` = 'account65d08257-e81c-45e8-a779-08bc8b76fc81' WHERE `accounts`.`id` = x'65d08257e81c45e8a77908bc8b76fc81' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'65d08257e81c45e8a77908bc8b76fc81' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'65d08257e81c45e8a77908bc8b76fc81', x'f8c71948b6e54a3799b38fd9c46fc630', x'dd75515c48a744c2921f78f3401cf23b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f8c71948b6e54a3799b38fd9c46fc630') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f8c71948b6e54a3799b38fd9c46fc630' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f8c71948b6e54a3799b38fd9c46fc630', x'76635e4d6e324b018963da13a19f7563', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f8c71948b6e54a3799b38fd9c46fc630') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f8c71948b6e54a3799b38fd9c46fc630' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f8c71948b6e54a3799b38fd9c46fc630', x'd9dadf5eaf65409ab3911bcc339e4256', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:19 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414abf14a3_107080435d48640cc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'5997ec4fbc094017afad85b84f1dbba9', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'dd75515c48a744c2921f78f3401cf23b')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'dd75515c48a744c2921f78f3401cf23b'  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$foD9/UU0HCP520XdzASM.u1L3yWVNj5vGhiUs5qWACosasEC2fI5C', NULL, x'66332201f5b84c5e9c4bc7ee200f8957', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'66332201f5b84c5e9c4bc7ee200f8957' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'0bc9b4dd10524632969ce85126c604f9', 'b365fdaecb858b7b577a4eb2087fb74f', x'66332201f5b84c5e9c4bc7ee200f8957', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'66332201f5b84c5e9c4bc7ee200f8957' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'7918f390db2c480b824143814cea3221', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account7918f390-db2c-480b-8241-43814cea3221' WHERE `accounts`.`id` = x'7918f390db2c480b824143814cea3221' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7918f390db2c480b824143814cea3221' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7918f390db2c480b824143814cea3221', x'c070a59dc12e4379bf5051c878ea6599', x'66332201f5b84c5e9c4bc7ee200f8957') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c070a59dc12e4379bf5051c878ea6599') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c070a59dc12e4379bf5051c878ea6599' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c070a59dc12e4379bf5051c878ea6599', x'f58fe494352d461292cfafafd0a7e862', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c070a59dc12e4379bf5051c878ea6599') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c070a59dc12e4379bf5051c878ea6599' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c070a59dc12e4379bf5051c878ea6599', x'25ea94d7ea084274a8b27d8662f4ee6d', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ac2423b_107080435d48641bf@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'b391b49626fd49b9a11b812a086e74b3', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'66332201f5b84c5e9c4bc7ee200f8957')  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'66332201f5b84c5e9c4bc7ee200f8957' AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:20', '2013-01-02 11:06:20', '', '', NULL, x'4f29fd9999d549d78eabdb9516ba02f1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4f29fd9999d549d78eabdb9516ba02f1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'42e0cfb7485a4324ace851b3c0c81f20', '528d43527d2151929a1d6b697a872a74', x'4f29fd9999d549d78eabdb9516ba02f1', 'User', '2013-01-02 11:06:20') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4f29fd9999d549d78eabdb9516ba02f1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'1eeb3660d77c4c539ac124e55cf272b3', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account1eeb3660-d77c-4c53-9ac1-24e55cf272b3' WHERE `accounts`.`id` = x'1eeb3660d77c4c539ac124e55cf272b3' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1eeb3660d77c4c539ac124e55cf272b3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1eeb3660d77c4c539ac124e55cf272b3', x'3dbd0ecf7bec47c7aef21dfc1dae8521', x'4f29fd9999d549d78eabdb9516ba02f1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3dbd0ecf7bec47c7aef21dfc1dae8521') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3dbd0ecf7bec47c7aef21dfc1dae8521' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3dbd0ecf7bec47c7aef21dfc1dae8521', x'2841b10d1a1b46e585944b78b3173329', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3dbd0ecf7bec47c7aef21dfc1dae8521') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3dbd0ecf7bec47c7aef21dfc1dae8521' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3dbd0ecf7bec47c7aef21dfc1dae8521', x'370bf2be082545419ce237bcabf7e24d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'c57372405df64aed92f1d4a4e18f226e', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'4f29fd9999d549d78eabdb9516ba02f1')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'4f29fd9999d549d78eabdb9516ba02f1' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:20', '2013-01-02 11:06:20', 'facebook@test.test', '', NULL, x'382e67ce62f04f68becd79bb7d52ec21', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'382e67ce62f04f68becd79bb7d52ec21' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'49d22070bf46425299c6ae7a7ac3cfd7', '60559b896742632d525053b93c95542b', x'382e67ce62f04f68becd79bb7d52ec21', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'382e67ce62f04f68becd79bb7d52ec21' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'66fe3afeb41347da95517523649b3b0b', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account66fe3afe-b413-47da-9551-7523649b3b0b' WHERE `accounts`.`id` = x'66fe3afeb41347da95517523649b3b0b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'66fe3afeb41347da95517523649b3b0b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'66fe3afeb41347da95517523649b3b0b', x'1eff146b84d24c3295aabe65a83b9b73', x'382e67ce62f04f68becd79bb7d52ec21') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1eff146b84d24c3295aabe65a83b9b73') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1eff146b84d24c3295aabe65a83b9b73' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1eff146b84d24c3295aabe65a83b9b73', x'e435df84669f42c0b5729d0faa8bd984', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1eff146b84d24c3295aabe65a83b9b73') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1eff146b84d24c3295aabe65a83b9b73' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1eff146b84d24c3295aabe65a83b9b73', x'0f8f2f9b5520413985fc03c8aa16c9d1', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414ac377f7_107080435d4864229@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'862bff825a914d43afe42354b17637b5', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'382e67ce62f04f68becd79bb7d52ec21')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'382e67ce62f04f68becd79bb7d52ec21' LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$ca1KdB7SsoRMu6kI75.0i.IRyxeDo7x/oT4kQdxJublc8iwbV1AqG', NULL, x'c9afcddb0d3a45968ff1c5b0970b524c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c9afcddb0d3a45968ff1c5b0970b524c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'307e5fb4dffc4b489eaf4523bafd7437', '3502523b440db2b126b6a19c6a5896a5', x'c9afcddb0d3a45968ff1c5b0970b524c', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c9afcddb0d3a45968ff1c5b0970b524c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'999c2d5df0e14fdfb214078cf442d30d', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account999c2d5d-f0e1-4fdf-b214-078cf442d30d' WHERE `accounts`.`id` = x'999c2d5df0e14fdfb214078cf442d30d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'999c2d5df0e14fdfb214078cf442d30d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'999c2d5df0e14fdfb214078cf442d30d', x'78816e9bd8374fc4a96691659b39d578', x'c9afcddb0d3a45968ff1c5b0970b524c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'78816e9bd8374fc4a96691659b39d578') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78816e9bd8374fc4a96691659b39d578' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78816e9bd8374fc4a96691659b39d578', x'76cf41ec43014d77a3f4b64651322635', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'78816e9bd8374fc4a96691659b39d578') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'78816e9bd8374fc4a96691659b39d578' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'78816e9bd8374fc4a96691659b39d578', x'48b83aae8dbe4fc2ad2c4f6796b4bcf6', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ac44631_107080435d4864360@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'48fa98f2a54d46f58b1e9dd55d034349', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'c9afcddb0d3a45968ff1c5b0970b524c')  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c9afcddb0d3a45968ff1c5b0970b524c' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$l8UwCogelPosGYNnTw8kwuIDaMfYsRMJ6.S7WsK4fMdEOnyPXEgFW', NULL, x'7045fd2d093d489fb7f9fbf8c23c65f8', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7045fd2d093d489fb7f9fbf8c23c65f8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'4776bded92dd48e78c1425b8d3a15507', '9966a9803a91d8252f899d171a58bbcf', x'7045fd2d093d489fb7f9fbf8c23c65f8', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7045fd2d093d489fb7f9fbf8c23c65f8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'309c3fcdf19e4f1c87e0ac04aaef4f8e', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account309c3fcd-f19e-4f1c-87e0-ac04aaef4f8e' WHERE `accounts`.`id` = x'309c3fcdf19e4f1c87e0ac04aaef4f8e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'309c3fcdf19e4f1c87e0ac04aaef4f8e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'309c3fcdf19e4f1c87e0ac04aaef4f8e', x'f0f90ccb502d431a94770bc8185175cb', x'7045fd2d093d489fb7f9fbf8c23c65f8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f0f90ccb502d431a94770bc8185175cb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0f90ccb502d431a94770bc8185175cb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0f90ccb502d431a94770bc8185175cb', x'6092e28d4b1a4f7a8398a82c49530c23', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f0f90ccb502d431a94770bc8185175cb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f0f90ccb502d431a94770bc8185175cb' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f0f90ccb502d431a94770bc8185175cb', x'6a04c907c2ab4511bdd71de979d36f4e', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ac51a0c_107080435d48644f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'59c629bb523a42a084c2a0cf167d8409', 'twitter', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'7045fd2d093d489fb7f9fbf8c23c65f8')  (0.2ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7045fd2d093d489fb7f9fbf8c23c65f8' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `social_accounts` SET `token` = 'newtoken' WHERE `social_accounts`.`id` = x'59c629bb523a42a084c2a0cf167d8409'  (0.1ms) RELEASE SAVEPOINT active_record_1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`id` = x'59c629bb523a42a084c2a0cf167d8409' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'UWycruuZzy4ugYmFyyoV' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2013-01-02 11:06:20', 'UWycruuZzy4ugYmFyyoV', NULL, '2013-01-02 11:06:20', 'test@email.test', '$2a$04$hwQkly4n.KsMRIypEO6e3Oo2n2DOAul3dQqSoau5H.vUeU/qCpOoe', NULL, x'cfa7a0cd726a40ceb7b7128a0acbec43', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') Sent mail to test@email.test (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: test@email.test Message-ID: <50e414ac5acfc_107080435d486451a@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cfa7a0cd726a40ceb7b7128a0acbec43' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'0bf5e9a44b6d4ea387312475e13da963', 'ec335abaaaa7a4194a24030af6ba452e', x'cfa7a0cd726a40ceb7b7128a0acbec43', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cfa7a0cd726a40ceb7b7128a0acbec43' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'1e30838d7e5244bab4ea2a55997bf46a', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account1e30838d-7e52-44ba-b4ea-2a55997bf46a' WHERE `accounts`.`id` = x'1e30838d7e5244bab4ea2a55997bf46a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1e30838d7e5244bab4ea2a55997bf46a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1e30838d7e5244bab4ea2a55997bf46a', x'0e1658d1818f460ab5ee64b9d3c177a0', x'cfa7a0cd726a40ceb7b7128a0acbec43') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0e1658d1818f460ab5ee64b9d3c177a0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e1658d1818f460ab5ee64b9d3c177a0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e1658d1818f460ab5ee64b9d3c177a0', x'48cd7517568441c49afaa7397c585608', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0e1658d1818f460ab5ee64b9d3c177a0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0e1658d1818f460ab5ee64b9d3c177a0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0e1658d1818f460ab5ee64b9d3c177a0', x'0864fb3a48024699b1d56904b9d5126b', 'admin') Sent mail to test@email.test (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: test@email.test Message-ID: <50e414ac6401f_107080435d4864674@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cfa7a0cd726a40ceb7b7128a0acbec43'  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@email.test' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'uAzw7nXvJSyVj1ryUgCz' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, '2013-01-02 11:06:20', 'uAzw7nXvJSyVj1ryUgCz', NULL, '2013-01-02 11:06:20', 'test@email.test', '$2a$04$X3f/e5S4/KI/qVXHPscFC.S7cSAgpsNAp0jWq7PStDOl9Diyu7T9G', NULL, x'b746970b151341f8b09e9680c847d96f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') Sent mail to test@email.test (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: test@email.test Message-ID: <50e414ac85387_107080435d4864720@iMac-de-Patrick.local.mail> Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Welcome test@email.test!

You can confirm your account email through the link below

Confirm my account

ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b746970b151341f8b09e9680c847d96f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'5e95a78ebbba47508548face2e9e70f9', 'fbcbb0da22b1a4ca63b56d52bc320aa7', x'b746970b151341f8b09e9680c847d96f', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b746970b151341f8b09e9680c847d96f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Sent mail to test@email.test (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: test@email.test Message-ID: <50e414ac8ada7_107080435d48648d2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b746970b151341f8b09e9680c847d96f'  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$.ofs4NWveQhg.9LrKK3YquubyKwuuKSC3Ii/JXCz5SB6Jv5rJOd0a', NULL, x'67d188e523fa4dd4afb251e5846035d2', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'67d188e523fa4dd4afb251e5846035d2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'aaec659b2c49449d8271d34c1228a5ad', '18900bd0555ce22c86ae169f33a273c5', x'67d188e523fa4dd4afb251e5846035d2', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'67d188e523fa4dd4afb251e5846035d2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'2dee03772a1548a0b416e146705833c6', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account2dee0377-2a15-48a0-b416-e146705833c6' WHERE `accounts`.`id` = x'2dee03772a1548a0b416e146705833c6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2dee03772a1548a0b416e146705833c6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2dee03772a1548a0b416e146705833c6', x'4eca82930c164df49a3ed80d67d01f67', x'67d188e523fa4dd4afb251e5846035d2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4eca82930c164df49a3ed80d67d01f67') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4eca82930c164df49a3ed80d67d01f67' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4eca82930c164df49a3ed80d67d01f67', x'0fd0a55aa896484e8cd1451c577a220c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4eca82930c164df49a3ed80d67d01f67') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4eca82930c164df49a3ed80d67d01f67' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4eca82930c164df49a3ed80d67d01f67', x'4b1845ea65c2433fa54454f63d475d4e', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ac9736b_107080435d48649b0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'67d188e523fa4dd4afb251e5846035d2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'67d188e523fa4dd4afb251e5846035d2' LIMIT 1  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$31WistH/H8JSH8/z0Jm6qOzUKk2PgcqOSONxz5kmkAS7sRJQOGp8y', NULL, x'0bf39b6d70294d03ac8c8a19a86271c3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0bf39b6d70294d03ac8c8a19a86271c3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'0e9a0521d1bb4c568ba1453ecdbbf41d', '6426fd7618f5909614c28e1f43d3e0ff', x'0bf39b6d70294d03ac8c8a19a86271c3', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0bf39b6d70294d03ac8c8a19a86271c3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'3cd6449b1f9b476690e2f308eb8243e5', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account3cd6449b-1f9b-4766-90e2-f308eb8243e5' WHERE `accounts`.`id` = x'3cd6449b1f9b476690e2f308eb8243e5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3cd6449b1f9b476690e2f308eb8243e5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3cd6449b1f9b476690e2f308eb8243e5', x'4c94cb2695b9401b82f3af5c482f2d05', x'0bf39b6d70294d03ac8c8a19a86271c3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4c94cb2695b9401b82f3af5c482f2d05') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c94cb2695b9401b82f3af5c482f2d05' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c94cb2695b9401b82f3af5c482f2d05', x'60c1933276654b7b8a79fda7509f6d1c', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4c94cb2695b9401b82f3af5c482f2d05') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4c94cb2695b9401b82f3af5c482f2d05' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4c94cb2695b9401b82f3af5c482f2d05', x'7f6159c4dd724a598da4fae9a33df424', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414aca446d_107080435d48650e2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0bf39b6d70294d03ac8c8a19a86271c3' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0bf39b6d70294d03ac8c8a19a86271c3' AND (accounts.id = x'3cd6449b1f9b476690e2f308eb8243e5') LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$EpPoG5r0u1cJqhLFlk5ZnuU7CRsDHPb5GO.zhZJ.Wqw.xUl4JzpbW', NULL, x'5c3e2b0424f14ab8a1655f1604a29aae', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5c3e2b0424f14ab8a1655f1604a29aae' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'2b3267ce21b04ec8916bb26a6e7a4527', 'ac0606712da6bcec491ac99e224845a6', x'5c3e2b0424f14ab8a1655f1604a29aae', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5c3e2b0424f14ab8a1655f1604a29aae' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'caf92f983498443291ef0554de2881b7', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'accountcaf92f98-3498-4432-91ef-0554de2881b7' WHERE `accounts`.`id` = x'caf92f983498443291ef0554de2881b7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'caf92f983498443291ef0554de2881b7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'caf92f983498443291ef0554de2881b7', x'ac3d1e8b76df4d39bd0314cd53595b8e', x'5c3e2b0424f14ab8a1655f1604a29aae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ac3d1e8b76df4d39bd0314cd53595b8e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac3d1e8b76df4d39bd0314cd53595b8e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac3d1e8b76df4d39bd0314cd53595b8e', x'90417e7be52042688b5ff2df3f0e2e67', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ac3d1e8b76df4d39bd0314cd53595b8e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac3d1e8b76df4d39bd0314cd53595b8e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac3d1e8b76df4d39bd0314cd53595b8e', x'e5f33e27a1064eb69a7b4b6596172c88', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414acb15c5_107080435d48651db@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5c3e2b0424f14ab8a1655f1604a29aae' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5c3e2b0424f14ab8a1655f1604a29aae' AND (accounts.id = x'caf92f983498443291ef0554de2881b7') LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$xaDyd6r9ZwJhQ10GlW7Em.Vh9a2oHKC0EjarbWbxIrwLXiIlv1oYm', NULL, x'bd61adbb0f244d01a508b2fa4110a279', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bd61adbb0f244d01a508b2fa4110a279' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'0578424df88b4ddf825628f5f771188c', '49f8277fa8b220aa26734079216ab494', x'bd61adbb0f244d01a508b2fa4110a279', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bd61adbb0f244d01a508b2fa4110a279' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'5f9b31f09c3f494ca7a05a8af7af6b36', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account5f9b31f0-9c3f-494c-a7a0-5a8af7af6b36' WHERE `accounts`.`id` = x'5f9b31f09c3f494ca7a05a8af7af6b36' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5f9b31f09c3f494ca7a05a8af7af6b36' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5f9b31f09c3f494ca7a05a8af7af6b36', x'5cc1474dd0f24c0ab9a7a2a6965ee27a', x'bd61adbb0f244d01a508b2fa4110a279') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5cc1474dd0f24c0ab9a7a2a6965ee27a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5cc1474dd0f24c0ab9a7a2a6965ee27a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5cc1474dd0f24c0ab9a7a2a6965ee27a', x'29240228635744da8219133592e03073', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5cc1474dd0f24c0ab9a7a2a6965ee27a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5cc1474dd0f24c0ab9a7a2a6965ee27a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5cc1474dd0f24c0ab9a7a2a6965ee27a', x'255b8559f83c49ca8081ad64d26eb2ff', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414acbe4af_107080435d48652f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:20', NULL, '--- !ruby/struct:DestroyUserJob\nid: bd61adbb-0f24-4d01-a508-b2fa4110a279\n', NULL, NULL, NULL, 0, 'user_bd61adbb-0f24-4d01-a508-b2fa4110a279_destroy', '2013-01-02 11:06:20', '2013-01-02 11:06:20')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_bd61adbb-0f24-4d01-a508-b2fa4110a279_destroy' LIMIT 1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$OHC1mt1MMI0SDCzLiH/LZeDJS8MRrQvpYrvMmTDA2NUyc6EYtLGEm', NULL, x'a6c5ce079c9445479f7d133808414607', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a6c5ce079c9445479f7d133808414607' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'89cab29590b449a19096579eb23930b7', 'f6d62d4db5d912653df35fd2104d6021', x'a6c5ce079c9445479f7d133808414607', 'User', '2013-01-02 11:06:20') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a6c5ce079c9445479f7d133808414607' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'a4f555531edc4fbfa59e6d7f49f506cd', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'accounta4f55553-1edc-4fbf-a59e-6d7f49f506cd' WHERE `accounts`.`id` = x'a4f555531edc4fbfa59e6d7f49f506cd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4f555531edc4fbfa59e6d7f49f506cd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a4f555531edc4fbfa59e6d7f49f506cd', x'978a4ba9f0034f0e8d75b108c0b267bc', x'a6c5ce079c9445479f7d133808414607') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'978a4ba9f0034f0e8d75b108c0b267bc') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'978a4ba9f0034f0e8d75b108c0b267bc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'978a4ba9f0034f0e8d75b108c0b267bc', x'15c6fee448d949bebe1d54acbce84174', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'978a4ba9f0034f0e8d75b108c0b267bc') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'978a4ba9f0034f0e8d75b108c0b267bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'978a4ba9f0034f0e8d75b108c0b267bc', x'bce5ef0db0c04cbb8a7ecf2561c23722', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ace5133_107080435d48653f8@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a6c5ce07-9c94-4547-9f7d-133808414607_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:20', 'teste@teste.com', '$2a$04$Sm..jZvA8QUU4M09Pt9H5OlPDD7joOWYFYHBOi01ltCYaRy15ywFC', NULL, x'3efbd34a54f240018a71211b7777077d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:20') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3efbd34a54f240018a71211b7777077d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:20', 'User', x'cb12e2d2961a404796fd1c9a0245b043', '53c451a164605edb12c944b2e5a007e5', x'3efbd34a54f240018a71211b7777077d', 'User', '2013-01-02 11:06:20') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3efbd34a54f240018a71211b7777077d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:20', x'82de85e3308148f4bfb752f62946b8e8', NULL, NULL, NULL, '2013-01-02 11:06:20')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:20', `updated_at` = '2013-01-02 11:06:20', `subdomain` = 'account82de85e3-3081-48f4-bfb7-52f62946b8e8' WHERE `accounts`.`id` = x'82de85e3308148f4bfb752f62946b8e8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'82de85e3308148f4bfb752f62946b8e8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'82de85e3308148f4bfb752f62946b8e8', x'70fe2dfe1fd34b28a416707bb4977e4a', x'3efbd34a54f240018a71211b7777077d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'70fe2dfe1fd34b28a416707bb4977e4a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'70fe2dfe1fd34b28a416707bb4977e4a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'70fe2dfe1fd34b28a416707bb4977e4a', x'ed49a708fd3f44b3b6ecc07ccf93eb77', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'70fe2dfe1fd34b28a416707bb4977e4a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'70fe2dfe1fd34b28a416707bb4977e4a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'70fe2dfe1fd34b28a416707bb4977e4a', x'2d86f4b205b649ebbebd5149aeddba29', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:20 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414acf12a7_107080435d4865432@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:20', NULL, '--- !ruby/struct:DestroyUserJob\nid: 3efbd34a-54f2-4001-8a71-211b7777077d\n', NULL, NULL, NULL, 0, 'user_3efbd34a-54f2-4001-8a71-211b7777077d_destroy', '2013-01-02 11:06:20', '2013-01-02 11:06:20')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_3efbd34a-54f2-4001-8a71-211b7777077d_destroy' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:21', 'teste@teste.com', '$2a$04$nOWMwy6LDXbQAjvK9kkPAeSj/I524l/CEiWvwzyz.2e.ZCAGCv5W6', NULL, x'751725bd5b964904b48cb2e3ea1d93cf', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'751725bd5b964904b48cb2e3ea1d93cf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'28c9f994c11b405bb55c7a03ccd4bb44', '6b9a3a494c5d2ad6ca41b4023b5506df', x'751725bd5b964904b48cb2e3ea1d93cf', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'751725bd5b964904b48cb2e3ea1d93cf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'0f883c2b5f5d4a5a8d5be78621d5e29f', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account0f883c2b-5f5d-4a5a-8d5b-e78621d5e29f' WHERE `accounts`.`id` = x'0f883c2b5f5d4a5a8d5be78621d5e29f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0f883c2b5f5d4a5a8d5be78621d5e29f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0f883c2b5f5d4a5a8d5be78621d5e29f', x'e64d2e5fe11647aabaac4156ede042b1', x'751725bd5b964904b48cb2e3ea1d93cf') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e64d2e5fe11647aabaac4156ede042b1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e64d2e5fe11647aabaac4156ede042b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e64d2e5fe11647aabaac4156ede042b1', x'd07c0cb5a91449a588d78f2a48784684', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e64d2e5fe11647aabaac4156ede042b1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e64d2e5fe11647aabaac4156ede042b1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e64d2e5fe11647aabaac4156ede042b1', x'eb99a4b5bac647429a06bca7b29d0cd3', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:21 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414adb02f_107080435d48655cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_751725bd-5b96-4904-b48c-b2e3ea1d93cf_destroy' LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:21', 'teste@teste.com', '$2a$04$xqB73p.AdCjv5LsEsUEQgergNqelGjSe0gd0sAzB70k587q6dP/jm', NULL, x'9e2ba4aeb1854006ad07cac2cbb50d00', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9e2ba4aeb1854006ad07cac2cbb50d00' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'df79a6afe9404cc5b8d7f2cff3a45c09', '44098ac730b1c8425426ee076cc35513', x'9e2ba4aeb1854006ad07cac2cbb50d00', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9e2ba4aeb1854006ad07cac2cbb50d00' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'217358e0902e41e99be646564d8a2ba7', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account217358e0-902e-41e9-9be6-46564d8a2ba7' WHERE `accounts`.`id` = x'217358e0902e41e99be646564d8a2ba7' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'217358e0902e41e99be646564d8a2ba7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'217358e0902e41e99be646564d8a2ba7', x'860123512d3b4fbb8f6219b0ee1dce29', x'9e2ba4aeb1854006ad07cac2cbb50d00') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'860123512d3b4fbb8f6219b0ee1dce29') LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'860123512d3b4fbb8f6219b0ee1dce29' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'860123512d3b4fbb8f6219b0ee1dce29', x'b99f27f349f042219ffa8399107efabc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'860123512d3b4fbb8f6219b0ee1dce29') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'860123512d3b4fbb8f6219b0ee1dce29' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'860123512d3b4fbb8f6219b0ee1dce29', x'3d965438c5ac4932946c1a4372507a44', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:21 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ad17832_107080435d4865674@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: 9e2ba4ae-b185-4006-ad07-cac2cbb50d00\n', NULL, NULL, NULL, 0, 'user_9e2ba4ae-b185-4006-ad07-cac2cbb50d00_destroy', '2013-01-02 11:06:21', '2013-01-02 11:06:21')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_9e2ba4ae-b185-4006-ad07-cac2cbb50d00_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_9e2ba4ae-b185-4006-ad07-cac2cbb50d00_destroy' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 44  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_9e2ba4ae-b185-4006-ad07-cac2cbb50d00_destroy' LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:21', 'teste@teste.com', '$2a$04$VapJmYQ/7Hba2H9aCTagBetXEW8d763rJsg2avq6Gs3QbQ9k6BoHS', NULL, x'7eeba6a9ce884c9ca9669e2f426d8346', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7eeba6a9ce884c9ca9669e2f426d8346' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'6f7d5fb58da34304a8ae4ccff56ba616', 'e4c23bda9348a43cbcef0abf834fca07', x'7eeba6a9ce884c9ca9669e2f426d8346', 'User', '2013-01-02 11:06:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7eeba6a9ce884c9ca9669e2f426d8346' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'f469370cc0a44bcc87dd87e86bdcad84', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'accountf469370c-c0a4-4bcc-87dd-87e86bdcad84' WHERE `accounts`.`id` = x'f469370cc0a44bcc87dd87e86bdcad84' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f469370cc0a44bcc87dd87e86bdcad84' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f469370cc0a44bcc87dd87e86bdcad84', x'57c2c78bdcf440fcbcccce540cd8a632', x'7eeba6a9ce884c9ca9669e2f426d8346') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'57c2c78bdcf440fcbcccce540cd8a632') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57c2c78bdcf440fcbcccce540cd8a632' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57c2c78bdcf440fcbcccce540cd8a632', x'44ae5546edb9407083f99e1cf71c8bdb', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'57c2c78bdcf440fcbcccce540cd8a632') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57c2c78bdcf440fcbcccce540cd8a632' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57c2c78bdcf440fcbcccce540cd8a632', x'e871916ecac6429e8df1a53166a7297d', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:21 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ad2586c_107080435d48657da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: 7eeba6a9-ce88-4c9c-a966-9e2f426d8346\n', NULL, NULL, NULL, 0, 'user_7eeba6a9-ce88-4c9c-a966-9e2f426d8346_destroy', '2013-01-02 11:06:21', '2013-01-02 11:06:21')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7eeba6a9-ce88-4c9c-a966-9e2f426d8346_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_7eeba6a9-ce88-4c9c-a966-9e2f426d8346_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `delayed_jobs` WHERE `delayed_jobs`.`id` = 45  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:21', 'teste@teste.com', '$2a$04$QnL9tKvw3AvxmPo2kalW3uSiUIOyECW.gnEg0/T1qzbExknRbbFm2', NULL, x'f1e08e6ddcac4fbb974f1116f679900e', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f1e08e6ddcac4fbb974f1116f679900e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'56176b0c34874fdebc6d7652bb06a877', 'c6238d02b77cd3718240d300bd2952d6', x'f1e08e6ddcac4fbb974f1116f679900e', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f1e08e6ddcac4fbb974f1116f679900e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'0935db3dd95148548c59307e75434b95', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account0935db3d-d951-4854-8c59-307e75434b95' WHERE `accounts`.`id` = x'0935db3dd95148548c59307e75434b95' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0935db3dd95148548c59307e75434b95' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0935db3dd95148548c59307e75434b95', x'06e882a0e2d14f0abd69308f13c5ba33', x'f1e08e6ddcac4fbb974f1116f679900e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'06e882a0e2d14f0abd69308f13c5ba33') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06e882a0e2d14f0abd69308f13c5ba33' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'06e882a0e2d14f0abd69308f13c5ba33', x'2aaf3226b96245bea4d6e003cfa5ad4d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'06e882a0e2d14f0abd69308f13c5ba33') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'06e882a0e2d14f0abd69308f13c5ba33' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'06e882a0e2d14f0abd69308f13c5ba33', x'7f7c1381dce449ec99fa5c8d73dabe6c', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:21 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ad338be_107080435d48658a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_f1e08e6d-dcac-4fbb-974f-1116f679900e_destroy' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_f1e08e6d-dcac-4fbb-974f-1116f679900e_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:21', 'teste@teste.com', '$2a$04$nmUtEBDqEj4styK/IQMZZuBCBk19f8Z01D.tuOBsftqy9N7ZyL926', NULL, x'a1b29ea310c946d08fe2d30fbdd7410a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a1b29ea310c946d08fe2d30fbdd7410a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'4b4e2ff9bee947b9974a9184def8f137', '62194e4811bd6d6660c6761cb9306c23', x'a1b29ea310c946d08fe2d30fbdd7410a', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a1b29ea310c946d08fe2d30fbdd7410a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'f416a297b79a4863a576e0eb898caf52', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'accountf416a297-b79a-4863-a576-e0eb898caf52' WHERE `accounts`.`id` = x'f416a297b79a4863a576e0eb898caf52' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f416a297b79a4863a576e0eb898caf52' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f416a297b79a4863a576e0eb898caf52', x'57c8e9eb13414c53b84592a524df8fb1', x'a1b29ea310c946d08fe2d30fbdd7410a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'57c8e9eb13414c53b84592a524df8fb1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57c8e9eb13414c53b84592a524df8fb1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57c8e9eb13414c53b84592a524df8fb1', x'2aeacfc27f364878aedb167a6cf87503', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'57c8e9eb13414c53b84592a524df8fb1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57c8e9eb13414c53b84592a524df8fb1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57c8e9eb13414c53b84592a524df8fb1', x'9d8510969e15436c969447752a179102', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:21 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ad5a675_107080435d4865961@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: a1b29ea3-10c9-46d0-8fe2-d30fbdd7410a\n', NULL, NULL, NULL, 0, 'user_a1b29ea3-10c9-46d0-8fe2-d30fbdd7410a_destroy', '2013-01-02 11:06:21', '2013-01-02 11:06:21')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a1b29ea3-10c9-46d0-8fe2-d30fbdd7410a_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21' WHERE `delayed_jobs`.`id` = 46  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_a1b29ea3-10c9-46d0-8fe2-d30fbdd7410a_destroy' LIMIT 1  (3.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:21', 'teste@teste.com', '$2a$04$NmXshE8p1ZF1mcP9EERz..xLCkUw8Cnxna3MT15lHqbMJIDd8D3wK', NULL, x'763d8d2d3995469b9779d37742102b0a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'763d8d2d3995469b9779d37742102b0a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'0de449724525418f869b02a9f0015033', 'e25e95c3f7ef2f24926363e6d9898330', x'763d8d2d3995469b9779d37742102b0a', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'763d8d2d3995469b9779d37742102b0a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'5a052417e3794426ae31b8bf94368ada', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account5a052417-e379-4426-ae31-b8bf94368ada' WHERE `accounts`.`id` = x'5a052417e3794426ae31b8bf94368ada' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5a052417e3794426ae31b8bf94368ada' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5a052417e3794426ae31b8bf94368ada', x'd44098aa23cc455c92e3b9e5520bce11', x'763d8d2d3995469b9779d37742102b0a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd44098aa23cc455c92e3b9e5520bce11') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd44098aa23cc455c92e3b9e5520bce11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd44098aa23cc455c92e3b9e5520bce11', x'40c279260f8c4bae8065ae0e73717564', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd44098aa23cc455c92e3b9e5520bce11') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd44098aa23cc455c92e3b9e5520bce11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd44098aa23cc455c92e3b9e5520bce11', x'b44b9bb66258487da567236d29031607', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:21 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ad6960e_107080435d486605a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'763d8d2d3995469b9779d37742102b0a' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5a052417e3794426ae31b8bf94368ada' AND `account_users`.`user_id` = x'763d8d2d3995469b9779d37742102b0a' LIMIT 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd44098aa23cc455c92e3b9e5520bce11'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd44098aa23cc455c92e3b9e5520bce11' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Z$ãyD&®1¸¿”6ŠÚ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b44b9bb66258487da567236d29031607'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.1ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'd44098aa23cc455c92e3b9e5520bce11') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd44098aa23cc455c92e3b9e5520bce11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd44098aa23cc455c92e3b9e5520bce11', x'54f14a84479a4284a9d157e405f9d01c', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5a052417e3794426ae31b8bf94368ada' AND `account_users`.`user_id` = x'763d8d2d3995469b9779d37742102b0a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd44098aa23cc455c92e3b9e5520bce11' AND `account_roles`.`name` = 'user' LIMIT 1  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:21', 'teste@teste.com', '$2a$04$riOyaK/pDk8fUTqFxfiOU.rGoELQ5SW5bV4vt3gCEmgAiRG3cDwOW', NULL, x'b4c609ec98df427bb84e89fc59199a3a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b4c609ec98df427bb84e89fc59199a3a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'38225646c683447dad22e7c1c99994e4', 'dad407798725a99275bbd56a9596055e', x'b4c609ec98df427bb84e89fc59199a3a', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b4c609ec98df427bb84e89fc59199a3a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'7dd1545b5d6a48aeb99c7c9d2b040c51', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account7dd1545b-5d6a-48ae-b99c-7c9d2b040c51' WHERE `accounts`.`id` = x'7dd1545b5d6a48aeb99c7c9d2b040c51' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7dd1545b5d6a48aeb99c7c9d2b040c51' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7dd1545b5d6a48aeb99c7c9d2b040c51', x'30c91a54c3234e34a8c2217a6375e032', x'b4c609ec98df427bb84e89fc59199a3a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'30c91a54c3234e34a8c2217a6375e032') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'30c91a54c3234e34a8c2217a6375e032' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'30c91a54c3234e34a8c2217a6375e032', x'0bdae763ac5b4478aadc8c2ae3d41d08', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'30c91a54c3234e34a8c2217a6375e032') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'30c91a54c3234e34a8c2217a6375e032' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'30c91a54c3234e34a8c2217a6375e032', x'8280cf6bdf9b4b2194a65a2c40eb558e', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:21 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ad797d0_107080435d486619d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b4c609ec98df427bb84e89fc59199a3a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7dd1545b5d6a48aeb99c7c9d2b040c51' AND `account_users`.`user_id` = x'b4c609ec98df427bb84e89fc59199a3a' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'30c91a54c3234e34a8c2217a6375e032'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'30c91a54c3234e34a8c2217a6375e032' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '}ÑT[]jH®¹œ|+ Q' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8280cf6bdf9b4b2194a65a2c40eb558e'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'30c91a54c3234e34a8c2217a6375e032') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'30c91a54c3234e34a8c2217a6375e032' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'30c91a54c3234e34a8c2217a6375e032', x'301158c1901946acadda3091838037cf', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7dd1545b5d6a48aeb99c7c9d2b040c51' AND `account_users`.`user_id` = x'b4c609ec98df427bb84e89fc59199a3a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'30c91a54c3234e34a8c2217a6375e032' AND `account_roles`.`name` = 'admin' LIMIT 1  (9.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:21', '2013-01-02 11:06:21', '', '', 1, x'24d7f8c784074b62996dc6fb6386daff', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'24d7f8c784074b62996dc6fb6386daff' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'1de2a25f962e4c9690c43746f49a7764', '584030d2fb56c70a79de7b9f9078a83d', x'24d7f8c784074b62996dc6fb6386daff', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'24d7f8c784074b62996dc6fb6386daff' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'6ab05f20318c487b87ba42ecbc785629', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account6ab05f20-318c-487b-87ba-42ecbc785629' WHERE `accounts`.`id` = x'6ab05f20318c487b87ba42ecbc785629' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6ab05f20318c487b87ba42ecbc785629' LIMIT 1 SQL (0.1ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6ab05f20318c487b87ba42ecbc785629', x'833eb6927b6b4a19a43a3bddf2644b56', x'24d7f8c784074b62996dc6fb6386daff') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'833eb6927b6b4a19a43a3bddf2644b56') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'833eb6927b6b4a19a43a3bddf2644b56' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'833eb6927b6b4a19a43a3bddf2644b56', x'db00c3ff4c2a44be858f1c217b400297', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'833eb6927b6b4a19a43a3bddf2644b56') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'833eb6927b6b4a19a43a3bddf2644b56' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'833eb6927b6b4a19a43a3bddf2644b56', x'1f433567e8404875a9f202e8f3c36981', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: 24d7f8c7-8407-4b62-996d-c6fb6386daff\n', NULL, NULL, NULL, 0, 'guest_24d7f8c7-8407-4b62-996d-c6fb6386daff_destroy', '2013-01-09 11:06:21', '2013-01-02 11:06:21')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:21', '2013-01-02 11:06:21', '', '', 1, x'd5b246518744487886d63fc8a91dbc57', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd5b246518744487886d63fc8a91dbc57' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'819913f4f6764d5ea9e89c7cb2f3f522', '3b2ff5f21d668108a266faf819ded30c', x'd5b246518744487886d63fc8a91dbc57', 'User', '2013-01-02 11:06:21') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd5b246518744487886d63fc8a91dbc57' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'727a5c7ec4234c83a44a9e5dbf62c3aa', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account727a5c7e-c423-4c83-a44a-9e5dbf62c3aa' WHERE `accounts`.`id` = x'727a5c7ec4234c83a44a9e5dbf62c3aa' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'727a5c7ec4234c83a44a9e5dbf62c3aa' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'727a5c7ec4234c83a44a9e5dbf62c3aa', x'f00a3672302640c290a0a98b636d9ee8', x'd5b246518744487886d63fc8a91dbc57') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f00a3672302640c290a0a98b636d9ee8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f00a3672302640c290a0a98b636d9ee8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f00a3672302640c290a0a98b636d9ee8', x'f89c4442d7ea465781d8a55ca8c5855e', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f00a3672302640c290a0a98b636d9ee8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f00a3672302640c290a0a98b636d9ee8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f00a3672302640c290a0a98b636d9ee8', x'b2585f21b2c049c9b8e487c83f72002c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: d5b24651-8744-4878-86d6-3fc8a91dbc57\n', NULL, NULL, NULL, 0, 'guest_d5b24651-8744-4878-86d6-3fc8a91dbc57_destroy', '2013-01-09 11:06:21', '2013-01-02 11:06:21')  (0.2ms) RELEASE SAVEPOINT active_record_1  (12.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:21', '2013-01-02 11:06:21', '', '', 1, x'edfb0d94ec9e453dbb7f1f29bcd10c04', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'edfb0d94ec9e453dbb7f1f29bcd10c04' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'232743c84f90462090cde57ca45708ab', '78ef42f033e80586b260c4e05e28ce91', x'edfb0d94ec9e453dbb7f1f29bcd10c04', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'edfb0d94ec9e453dbb7f1f29bcd10c04' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'8e2cddc8e8864bf0a6deb880b74c5e48', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account8e2cddc8-e886-4bf0-a6de-b880b74c5e48' WHERE `accounts`.`id` = x'8e2cddc8e8864bf0a6deb880b74c5e48' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8e2cddc8e8864bf0a6deb880b74c5e48' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8e2cddc8e8864bf0a6deb880b74c5e48', x'eb4a1d940539481fa0f04f2d9e65b47c', x'edfb0d94ec9e453dbb7f1f29bcd10c04') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eb4a1d940539481fa0f04f2d9e65b47c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb4a1d940539481fa0f04f2d9e65b47c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb4a1d940539481fa0f04f2d9e65b47c', x'606eefbcf0be4bb180e9e6ecf2cb25f6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eb4a1d940539481fa0f04f2d9e65b47c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eb4a1d940539481fa0f04f2d9e65b47c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eb4a1d940539481fa0f04f2d9e65b47c', x'ace10f0f880f4b8b92c218f883dce8f1', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: edfb0d94-ec9e-453d-bb7f-1f29bcd10c04\n', NULL, NULL, NULL, 0, 'guest_edfb0d94-ec9e-453d-bb7f-1f29bcd10c04_destroy', '2013-01-09 11:06:21', '2013-01-02 11:06:21')  (0.2ms) RELEASE SAVEPOINT active_record_1  (4.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:21', '2013-01-02 11:06:21', '', '', 1, x'1fbc86ca27c14e5fb1321b8ca481b1ad', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1fbc86ca27c14e5fb1321b8ca481b1ad' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'7925010e95a24daeb48a3d425b810556', '41bb1033fc524d824b2c6a22d8441583', x'1fbc86ca27c14e5fb1321b8ca481b1ad', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1fbc86ca27c14e5fb1321b8ca481b1ad' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'9218d0fcecbe4bb1b22bbe2ac4e49380', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account9218d0fc-ecbe-4bb1-b22b-be2ac4e49380' WHERE `accounts`.`id` = x'9218d0fcecbe4bb1b22bbe2ac4e49380' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9218d0fcecbe4bb1b22bbe2ac4e49380' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9218d0fcecbe4bb1b22bbe2ac4e49380', x'8b1922bf862845feb5b1f8e306e681af', x'1fbc86ca27c14e5fb1321b8ca481b1ad') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8b1922bf862845feb5b1f8e306e681af') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b1922bf862845feb5b1f8e306e681af' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b1922bf862845feb5b1f8e306e681af', x'28bcd41b2dc4443c9aaa3e1d3e90d6ca', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8b1922bf862845feb5b1f8e306e681af') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b1922bf862845feb5b1f8e306e681af' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b1922bf862845feb5b1f8e306e681af', x'cb64b8bea63b447db790cec88b7952ae', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: 1fbc86ca-27c1-4e5f-b132-1b8ca481b1ad\n', NULL, NULL, NULL, 0, 'guest_1fbc86ca-27c1-4e5f-b132-1b8ca481b1ad_destroy', '2013-01-09 11:06:21', '2013-01-02 11:06:21')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:21', '2013-01-02 11:06:21', '', '', 1, x'aadc09e0b536423e9cd98eb974d34989', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'aadc09e0b536423e9cd98eb974d34989' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'09c074410f9a4dcaab98d50c1912386e', '3c8e6ca21b0e3bb6f368a07ccc3633d5', x'aadc09e0b536423e9cd98eb974d34989', 'User', '2013-01-02 11:06:21') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'aadc09e0b536423e9cd98eb974d34989' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'ba0aebf1b5b441f9adc19dc60621762b', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'accountba0aebf1-b5b4-41f9-adc1-9dc60621762b' WHERE `accounts`.`id` = x'ba0aebf1b5b441f9adc19dc60621762b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ba0aebf1b5b441f9adc19dc60621762b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ba0aebf1b5b441f9adc19dc60621762b', x'1b1389584e4c41abb52e62e88a5ec290', x'aadc09e0b536423e9cd98eb974d34989') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1b1389584e4c41abb52e62e88a5ec290') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b1389584e4c41abb52e62e88a5ec290' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b1389584e4c41abb52e62e88a5ec290', x'5264c3f34a9f4fc9b40db26d4b977c1a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1b1389584e4c41abb52e62e88a5ec290') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1b1389584e4c41abb52e62e88a5ec290' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1b1389584e4c41abb52e62e88a5ec290', x'6dcc1ca40db54b909f81c2e4b2b9fe3d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: aadc09e0-b536-423e-9cd9-8eb974d34989\n', NULL, NULL, NULL, 0, 'guest_aadc09e0-b536-423e-9cd9-8eb974d34989_destroy', '2013-01-09 11:06:21', '2013-01-02 11:06:21')  (0.2ms) RELEASE SAVEPOINT active_record_1  (13.7ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:21', '2013-01-02 11:06:21', '', '', 1, x'e34b84f124a1434394da0367d1f08e34', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e34b84f124a1434394da0367d1f08e34' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'936e32cf243841f3b3e9f53bfd6ae39c', 'fa085ba227d6416ec792c318875543aa', x'e34b84f124a1434394da0367d1f08e34', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e34b84f124a1434394da0367d1f08e34' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'5846e8b039e44336ba8d50709bbd17db', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account5846e8b0-39e4-4336-ba8d-50709bbd17db' WHERE `accounts`.`id` = x'5846e8b039e44336ba8d50709bbd17db' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5846e8b039e44336ba8d50709bbd17db' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5846e8b039e44336ba8d50709bbd17db', x'f42e6ce3c24c4d5fb086c1839fd0dd78', x'e34b84f124a1434394da0367d1f08e34') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f42e6ce3c24c4d5fb086c1839fd0dd78') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f42e6ce3c24c4d5fb086c1839fd0dd78' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f42e6ce3c24c4d5fb086c1839fd0dd78', x'b590d92f8c134342bf4eedbaca242a04', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f42e6ce3c24c4d5fb086c1839fd0dd78') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f42e6ce3c24c4d5fb086c1839fd0dd78' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f42e6ce3c24c4d5fb086c1839fd0dd78', x'59c65efb8e0842b3a21a2a74a7fa509e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: e34b84f1-24a1-4343-94da-0367d1f08e34\n', NULL, NULL, NULL, 0, 'guest_e34b84f1-24a1-4343-94da-0367d1f08e34_destroy', '2013-01-09 11:06:21', '2013-01-02 11:06:21')  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:21', '2013-01-02 11:06:21', '', '', 1, x'413b2ec2ace0424ca494ef68b9bba5bf', 'pt-BR', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'413b2ec2ace0424ca494ef68b9bba5bf' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'e4ae63676592490db6157f9b99862b96', '69b171173a7d42349feaa1d6eb2627ec', x'413b2ec2ace0424ca494ef68b9bba5bf', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'413b2ec2ace0424ca494ef68b9bba5bf' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'ab7669a574ee4d259f2a29201ffd4ce5', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'accountab7669a5-74ee-4d25-9f2a-29201ffd4ce5' WHERE `accounts`.`id` = x'ab7669a574ee4d259f2a29201ffd4ce5' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ab7669a574ee4d259f2a29201ffd4ce5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ab7669a574ee4d259f2a29201ffd4ce5', x'a657d499a49c42bc82323237883113b0', x'413b2ec2ace0424ca494ef68b9bba5bf') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a657d499a49c42bc82323237883113b0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a657d499a49c42bc82323237883113b0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a657d499a49c42bc82323237883113b0', x'1ded9095948e451aa69cfb27ff56abbd', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a657d499a49c42bc82323237883113b0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a657d499a49c42bc82323237883113b0' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a657d499a49c42bc82323237883113b0', x'8137f47dd08a44449111acfa2bb1ffc3', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: 413b2ec2-ace0-424c-a494-ef68b9bba5bf\n', NULL, NULL, NULL, 0, 'guest_413b2ec2-ace0-424c-a494-ef68b9bba5bf_destroy', '2013-01-09 11:06:21', '2013-01-02 11:06:21')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `delayed_jobs`  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:21', '2013-01-02 11:06:21', '', '', 1, x'c2a2ed2a8ba2489cb514da4eeb7866ed', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:21') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c2a2ed2a8ba2489cb514da4eeb7866ed' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:21', 'User', x'1eeff0f105bf4afdad33d6a34430615a', '263d8948b8acdf7ef15daa11c53dadd7', x'c2a2ed2a8ba2489cb514da4eeb7866ed', 'User', '2013-01-02 11:06:21') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c2a2ed2a8ba2489cb514da4eeb7866ed' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:21', x'9f788b4f789243d3bf3274935ca5f1c8', NULL, NULL, NULL, '2013-01-02 11:06:21')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:21', `updated_at` = '2013-01-02 11:06:21', `subdomain` = 'account9f788b4f-7892-43d3-bf32-74935ca5f1c8' WHERE `accounts`.`id` = x'9f788b4f789243d3bf3274935ca5f1c8' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f788b4f789243d3bf3274935ca5f1c8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9f788b4f789243d3bf3274935ca5f1c8', x'b64c0bc3f7d243b79049828d2f965983', x'c2a2ed2a8ba2489cb514da4eeb7866ed') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b64c0bc3f7d243b79049828d2f965983') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b64c0bc3f7d243b79049828d2f965983' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b64c0bc3f7d243b79049828d2f965983', x'd23000c345c24214a1af75228e5f20c8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b64c0bc3f7d243b79049828d2f965983') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b64c0bc3f7d243b79049828d2f965983' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b64c0bc3f7d243b79049828d2f965983', x'ee8618c019b648af884066c5ca1f4bd0', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:21', NULL, '--- !ruby/struct:DestroyUserJob\nid: c2a2ed2a-8ba2-489c-b514-da4eeb7866ed\n', NULL, NULL, NULL, 0, 'guest_c2a2ed2a-8ba2-489c-b514-da4eeb7866ed_destroy', '2013-01-09 11:06:21', '2013-01-02 11:06:21')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM `delayed_jobs`   (1.6ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:22 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:22 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:22', '2013-01-02 11:06:22', 'facebook@test.test', '', NULL, x'c47d7f7315454e3b92b8c9a5ea733ab8', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:22') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c47d7f7315454e3b92b8c9a5ea733ab8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:22', 'User', x'5363270c763b42debd26483c4cd65424', 'a34adc4b3ce011cefb57cecb1836c7f5', x'c47d7f7315454e3b92b8c9a5ea733ab8', 'User', '2013-01-02 11:06:22') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c47d7f7315454e3b92b8c9a5ea733ab8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:22', x'8287e144490e4bcd9e8e715d369f90ea', NULL, NULL, NULL, '2013-01-02 11:06:22')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:22', `updated_at` = '2013-01-02 11:06:22', `subdomain` = 'account8287e144-490e-4bcd-9e8e-715d369f90ea' WHERE `accounts`.`id` = x'8287e144490e4bcd9e8e715d369f90ea' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8287e144490e4bcd9e8e715d369f90ea' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8287e144490e4bcd9e8e715d369f90ea', x'10886a01b56d48548912da8d8979366b', x'c47d7f7315454e3b92b8c9a5ea733ab8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'10886a01b56d48548912da8d8979366b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10886a01b56d48548912da8d8979366b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10886a01b56d48548912da8d8979366b', x'c3e6f091dd0b41b7b7c3586adee575bb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'10886a01b56d48548912da8d8979366b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10886a01b56d48548912da8d8979366b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10886a01b56d48548912da8d8979366b', x'0af90d4eb29e418fb48b3b9a75a06901', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:22 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414ae305dd_107080435d48662a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'c40bd62cfbf846bc8a3f38dc5f74c732', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'c47d7f7315454e3b92b8c9a5ea733ab8')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c47d7f7315454e3b92b8c9a5ea733ab8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c47d7f7315454e3b92b8c9a5ea733ab8' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 8.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:22 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c47d7f7315454e3b92b8c9a5ea733ab8' LIMIT 1 Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'8287e144490e4bcd9e8e715d369f90ea' AND `account_domains`.`url` = 'index.test.net' SQL (0.4ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'8287e144490e4bcd9e8e715d369f90ea', x'fa81300071c746cead544e3983394efb', NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/8287E144490E4BCD9E8E715D369F90EA/domains" for 127.0.0.1 at 2013-01-02 09:06:22 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"8287E144490E4BCD9E8E715D369F90EA"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c47d7f7315454e3b92b8c9a5ea733ab8' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8287e144490e4bcd9e8e715d369f90ea' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8287e144-490e-4bcd-9e8e-715d369f90ea_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c47d7f7315454e3b92b8c9a5ea733ab8' AND `account_users`.`account_id` = x'8287e144490e4bcd9e8e715d369f90ea' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'10886a01b56d48548912da8d8979366b' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'10886a01b56d48548912da8d8979366b' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c47d7f7315454e3b92b8c9a5ea733ab8' AND `accounts`.`id` = x'8287e144490e4bcd9e8e715d369f90ea' LIMIT 1 Completed 200 OK in 893ms (Views: 881.9ms | ActiveRecord: 2.4ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:23', '2013-01-02 11:06:23', 'facebook@test.test', '', NULL, x'a4dde67127064195905b317efd44bf14', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a4dde67127064195905b317efd44bf14' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:23', 'User', x'bdbf571ddcfa46dc890b35456336c098', '0f651005b1fc7c17d589e33bfe4b5a95', x'a4dde67127064195905b317efd44bf14', 'User', '2013-01-02 11:06:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a4dde67127064195905b317efd44bf14' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:23', x'22e77250e857421baf8d06cf4a8fe083', NULL, NULL, NULL, '2013-01-02 11:06:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:23', `updated_at` = '2013-01-02 11:06:23', `subdomain` = 'account22e77250-e857-421b-af8d-06cf4a8fe083' WHERE `accounts`.`id` = x'22e77250e857421baf8d06cf4a8fe083' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'22e77250e857421baf8d06cf4a8fe083' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'22e77250e857421baf8d06cf4a8fe083', x'0ff61c0dfee6424abba32d89e1aae645', x'a4dde67127064195905b317efd44bf14') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0ff61c0dfee6424abba32d89e1aae645') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0ff61c0dfee6424abba32d89e1aae645' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0ff61c0dfee6424abba32d89e1aae645', x'3fe55123fa844cddb7edcab7571d123c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0ff61c0dfee6424abba32d89e1aae645') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0ff61c0dfee6424abba32d89e1aae645' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0ff61c0dfee6424abba32d89e1aae645', x'6b512e2fc9994f18b95db9e42c9eb77b', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:23 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414af71e26_107080435d486637c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'c01a4371fc474a3faab27edc37ae238e', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'a4dde67127064195905b317efd44bf14')  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a4dde67127064195905b317efd44bf14' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a4dde67127064195905b317efd44bf14' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 8.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a4dde67127064195905b317efd44bf14' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'22e77250e857421baf8d06cf4a8fe083' AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'22e77250e857421baf8d06cf4a8fe083', x'ff6a8f08ed774d50bc5c97e1c4cb1a5a', NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/22E77250E857421BAF8D06CF4A8FE083/domains" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"22E77250E857421BAF8D06CF4A8FE083"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a4dde67127064195905b317efd44bf14' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'22e77250e857421baf8d06cf4a8fe083' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_22e77250-e857-421b-af8d-06cf4a8fe083_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a4dde67127064195905b317efd44bf14' AND `account_users`.`account_id` = x'22e77250e857421baf8d06cf4a8fe083' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0ff61c0dfee6424abba32d89e1aae645' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0ff61c0dfee6424abba32d89e1aae645' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a4dde67127064195905b317efd44bf14' AND `accounts`.`id` = x'22e77250e857421baf8d06cf4a8fe083' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'22e77250e857421baf8d06cf4a8fe083' AND `account_domains`.`account_id` = x'22e77250e857421baf8d06cf4a8fe083' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'22e77250e857421baf8d06cf4a8fe083' AND `account_users`.`user_id` = x'a4dde67127064195905b317efd44bf14' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0ff61c0dfee6424abba32d89e1aae645' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 8.6ms | ActiveRecord: 3.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:23', '2013-01-02 11:06:23', 'facebook@test.test', '', NULL, x'ffa42df416d74d65b9d5b0c8b938e44f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ffa42df416d74d65b9d5b0c8b938e44f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:23', 'User', x'c03e88cfb42449ed914e57d791eac047', '3c178c0937975e943ea7292557e4271a', x'ffa42df416d74d65b9d5b0c8b938e44f', 'User', '2013-01-02 11:06:23') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ffa42df416d74d65b9d5b0c8b938e44f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:23', x'67997f9612cb42d690b760262357d124', NULL, NULL, NULL, '2013-01-02 11:06:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:23', `updated_at` = '2013-01-02 11:06:23', `subdomain` = 'account67997f96-12cb-42d6-90b7-60262357d124' WHERE `accounts`.`id` = x'67997f9612cb42d690b760262357d124' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'67997f9612cb42d690b760262357d124' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'67997f9612cb42d690b760262357d124', x'0b28629f052f492fa9d56140b97e4ddf', x'ffa42df416d74d65b9d5b0c8b938e44f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0b28629f052f492fa9d56140b97e4ddf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0b28629f052f492fa9d56140b97e4ddf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0b28629f052f492fa9d56140b97e4ddf', x'84ccff974ae7472a9b93463049f0474f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0b28629f052f492fa9d56140b97e4ddf') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0b28629f052f492fa9d56140b97e4ddf' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0b28629f052f492fa9d56140b97e4ddf', x'5051b3d0520e45438d15e229770c2456', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:23 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414afa50bf_107080435d486643c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'7998201531e2420395248252e7fd8daa', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'ffa42df416d74d65b9d5b0c8b938e44f')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ffa42df416d74d65b9d5b0c8b938e44f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ffa42df416d74d65b9d5b0c8b938e44f' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 160ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ffa42df416d74d65b9d5b0c8b938e44f' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'67997f9612cb42d690b760262357d124' AND `account_domains`.`url` = 'index.test.net' SQL (0.4ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'67997f9612cb42d690b760262357d124', x'e12f69626b494e07ad1de4fe1b7181f1', NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 1 WHERE `account_domains`.`id` = x'e12f69626b494e07ad1de4fe1b7181f1'  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/67997F9612CB42D690B760262357D124/domains" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"67997F9612CB42D690B760262357D124"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ffa42df416d74d65b9d5b0c8b938e44f' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'67997f9612cb42d690b760262357d124' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_67997f96-12cb-42d6-90b7-60262357d124_destroy' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ffa42df416d74d65b9d5b0c8b938e44f' AND `account_users`.`account_id` = x'67997f9612cb42d690b760262357d124' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0b28629f052f492fa9d56140b97e4ddf' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0b28629f052f492fa9d56140b97e4ddf' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ffa42df416d74d65b9d5b0c8b938e44f' AND `accounts`.`id` = x'67997f9612cb42d690b760262357d124' LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'67997f9612cb42d690b760262357d124' AND `account_domains`.`account_id` = x'67997f9612cb42d690b760262357d124' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'67997f9612cb42d690b760262357d124' AND `account_users`.`user_id` = x'ffa42df416d74d65b9d5b0c8b938e44f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0b28629f052f492fa9d56140b97e4ddf' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 8.8ms | ActiveRecord: 3.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:23', '2013-01-02 11:06:23', 'facebook@test.test', '', NULL, x'4433885c59cb4008b4b39c79e8f8d45a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4433885c59cb4008b4b39c79e8f8d45a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:23', 'User', x'92bff0cd35b144e9a4fae041f28d7575', '9c4e34a4daf5ed48caab18944a9f22cc', x'4433885c59cb4008b4b39c79e8f8d45a', 'User', '2013-01-02 11:06:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4433885c59cb4008b4b39c79e8f8d45a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:23', x'4bec7fd121f049cbad1e7d65ac83e776', NULL, NULL, NULL, '2013-01-02 11:06:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:23', `updated_at` = '2013-01-02 11:06:23', `subdomain` = 'account4bec7fd1-21f0-49cb-ad1e-7d65ac83e776' WHERE `accounts`.`id` = x'4bec7fd121f049cbad1e7d65ac83e776' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4bec7fd121f049cbad1e7d65ac83e776' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4bec7fd121f049cbad1e7d65ac83e776', x'a6f6e6b8651842b2905275798e058780', x'4433885c59cb4008b4b39c79e8f8d45a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a6f6e6b8651842b2905275798e058780') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a6f6e6b8651842b2905275798e058780' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a6f6e6b8651842b2905275798e058780', x'f3ab6f9cc35a460db2cd5efa5287ba3a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a6f6e6b8651842b2905275798e058780') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a6f6e6b8651842b2905275798e058780' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a6f6e6b8651842b2905275798e058780', x'a6b92b4737f84c088b4eeaa408be9461', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:23 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414afbec6a_107080435d4866544@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'5bae23851dc749a0bc40966224f34f27', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'4433885c59cb4008b4b39c79e8f8d45a')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4433885c59cb4008b4b39c79e8f8d45a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4433885c59cb4008b4b39c79e8f8d45a' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4433885c59cb4008b4b39c79e8f8d45a' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'4bec7fd121f049cbad1e7d65ac83e776' AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'4bec7fd121f049cbad1e7d65ac83e776', x'd7d0fe67d3274b69a0c066c80c6f3984', NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = x'd7d0fe67d3274b69a0c066c80c6f3984'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'd7d0fe67d3274b69a0c066c80c6f3984'  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4BEC7FD121F049CBAD1E7D65AC83E776/domains" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"4BEC7FD121F049CBAD1E7D65AC83E776"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4433885c59cb4008b4b39c79e8f8d45a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4bec7fd121f049cbad1e7d65ac83e776' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4bec7fd1-21f0-49cb-ad1e-7d65ac83e776_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'4433885c59cb4008b4b39c79e8f8d45a' AND `account_users`.`account_id` = x'4bec7fd121f049cbad1e7d65ac83e776' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a6f6e6b8651842b2905275798e058780' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a6f6e6b8651842b2905275798e058780' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'4433885c59cb4008b4b39c79e8f8d45a' AND `accounts`.`id` = x'4bec7fd121f049cbad1e7d65ac83e776' LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4bec7fd121f049cbad1e7d65ac83e776' AND `account_domains`.`account_id` = x'4bec7fd121f049cbad1e7d65ac83e776' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4bec7fd121f049cbad1e7d65ac83e776' AND `account_users`.`user_id` = x'4433885c59cb4008b4b39c79e8f8d45a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a6f6e6b8651842b2905275798e058780' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 8.9ms | ActiveRecord: 3.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:23 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:23', '2013-01-02 11:06:23', 'facebook@test.test', '', NULL, x'c3cbacf8fc9945f5a964953a13707cbe', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:23') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c3cbacf8fc9945f5a964953a13707cbe' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:23', 'User', x'aafbbf53b3bd4054b1c5fd7160d290d6', '1371f6123692519056fdbc64d6c16727', x'c3cbacf8fc9945f5a964953a13707cbe', 'User', '2013-01-02 11:06:23') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c3cbacf8fc9945f5a964953a13707cbe' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:23', x'36b1acc1fb464080b28654000a959945', NULL, NULL, NULL, '2013-01-02 11:06:23')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:23', `updated_at` = '2013-01-02 11:06:23', `subdomain` = 'account36b1acc1-fb46-4080-b286-54000a959945' WHERE `accounts`.`id` = x'36b1acc1fb464080b28654000a959945' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'36b1acc1fb464080b28654000a959945' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'36b1acc1fb464080b28654000a959945', x'2b9439fd8ebf4832a43308e69ebc7f0d', x'c3cbacf8fc9945f5a964953a13707cbe') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2b9439fd8ebf4832a43308e69ebc7f0d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b9439fd8ebf4832a43308e69ebc7f0d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b9439fd8ebf4832a43308e69ebc7f0d', x'9356137585294b22aae25ef5336b2547', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2b9439fd8ebf4832a43308e69ebc7f0d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2b9439fd8ebf4832a43308e69ebc7f0d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2b9439fd8ebf4832a43308e69ebc7f0d', x'8a24ce5a6ed54d7cb8e01f87f1e9a720', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:23 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414aff2962_107080435d48666ed@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'e2f09870fbb842eca1de3ffa638f23de', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'c3cbacf8fc9945f5a964953a13707cbe')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c3cbacf8fc9945f5a964953a13707cbe' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c3cbacf8fc9945f5a964953a13707cbe' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 161ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c3cbacf8fc9945f5a964953a13707cbe' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'36b1acc1fb464080b28654000a959945' AND `account_domains`.`url` = 'index.test.net' SQL (0.2ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'36b1acc1fb464080b28654000a959945', x'a38f994faad341b09bfd851c1be63ad9', NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `account_domains` SET `primary` = 0 WHERE `account_domains`.`id` = x'a38f994faad341b09bfd851c1be63ad9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'a38f994faad341b09bfd851c1be63ad9'  (0.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/36B1ACC1FB464080B28654000A959945/domains" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"36B1ACC1FB464080B28654000A959945"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c3cbacf8fc9945f5a964953a13707cbe' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'36b1acc1fb464080b28654000a959945' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_36b1acc1-fb46-4080-b286-54000a959945_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c3cbacf8fc9945f5a964953a13707cbe' AND `account_users`.`account_id` = x'36b1acc1fb464080b28654000a959945' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b9439fd8ebf4832a43308e69ebc7f0d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b9439fd8ebf4832a43308e69ebc7f0d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c3cbacf8fc9945f5a964953a13707cbe' AND `accounts`.`id` = x'36b1acc1fb464080b28654000a959945' LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'36b1acc1fb464080b28654000a959945' AND `account_domains`.`account_id` = x'36b1acc1fb464080b28654000a959945' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'36b1acc1fb464080b28654000a959945' AND `account_users`.`user_id` = x'c3cbacf8fc9945f5a964953a13707cbe' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2b9439fd8ebf4832a43308e69ebc7f0d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 8.7ms | ActiveRecord: 3.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:24', '2013-01-02 11:06:24', 'facebook@test.test', '', NULL, x'd00eb2bd6a3f4e8d9d05ab8f2a150082', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:24', 'User', x'9c9ef189a9104741a5b7466699da1441', '539973da0fa5cc0b57fcd19fd620e9a2', x'd00eb2bd6a3f4e8d9d05ab8f2a150082', 'User', '2013-01-02 11:06:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:24', x'ec0d48c849f9470682a30923e3a0883b', NULL, NULL, NULL, '2013-01-02 11:06:24')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:24', `updated_at` = '2013-01-02 11:06:24', `subdomain` = 'accountec0d48c8-49f9-4706-82a3-0923e3a0883b' WHERE `accounts`.`id` = x'ec0d48c849f9470682a30923e3a0883b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ec0d48c849f9470682a30923e3a0883b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ec0d48c849f9470682a30923e3a0883b', x'c5d80177130847a2b0acd46ac161769a', x'd00eb2bd6a3f4e8d9d05ab8f2a150082') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c5d80177130847a2b0acd46ac161769a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c5d80177130847a2b0acd46ac161769a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c5d80177130847a2b0acd46ac161769a', x'8ad3802f9c894048b469469bdd88fa5b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c5d80177130847a2b0acd46ac161769a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c5d80177130847a2b0acd46ac161769a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c5d80177130847a2b0acd46ac161769a', x'75545e0d9a2b446ea333c337e4315cd2', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:24 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b019171_107080435d486672b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'de2a26d5c3c743e69c4bf6c794dfacaa', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'd00eb2bd6a3f4e8d9d05ab8f2a150082')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 8.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ec0d48c849f9470682a30923e3a0883b' AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ec0d48c849f9470682a30923e3a0883b', x'0c40aa9278074ff2bf0af44acbabbbd0', NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 1 WHERE `account_domains`.`id` = x'0c40aa9278074ff2bf0af44acbabbbd0'  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/EC0D48C849F9470682A30923E3A0883B/domains" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"EC0D48C849F9470682A30923E3A0883B"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ec0d48c849f9470682a30923e3a0883b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ec0d48c8-49f9-4706-82a3-0923e3a0883b_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' AND `account_users`.`account_id` = x'ec0d48c849f9470682a30923e3a0883b' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c5d80177130847a2b0acd46ac161769a' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c5d80177130847a2b0acd46ac161769a' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' AND `accounts`.`id` = x'ec0d48c849f9470682a30923e3a0883b' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'ec0d48c849f9470682a30923e3a0883b' AND `account_domains`.`account_id` = x'ec0d48c849f9470682a30923e3a0883b' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ec0d48c849f9470682a30923e3a0883b' AND `account_users`.`user_id` = x'd00eb2bd6a3f4e8d9d05ab8f2a150082' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c5d80177130847a2b0acd46ac161769a' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 8.7ms | ActiveRecord: 3.2ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:24', '2013-01-02 11:06:24', 'facebook@test.test', '', NULL, x'6b6a0034274342de90e70b60cb9304e6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6b6a0034274342de90e70b60cb9304e6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:24', 'User', x'6988d26b1f1e47f08ecac21fe5ef652e', 'ce57075562287c2a43d8e524e5f8020d', x'6b6a0034274342de90e70b60cb9304e6', 'User', '2013-01-02 11:06:24') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6b6a0034274342de90e70b60cb9304e6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:24', x'd2a427fad6834da99334e1bb1b1fc7b9', NULL, NULL, NULL, '2013-01-02 11:06:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:24', `updated_at` = '2013-01-02 11:06:24', `subdomain` = 'accountd2a427fa-d683-4da9-9334-e1bb1b1fc7b9' WHERE `accounts`.`id` = x'd2a427fad6834da99334e1bb1b1fc7b9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd2a427fad6834da99334e1bb1b1fc7b9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd2a427fad6834da99334e1bb1b1fc7b9', x'08aabbc0beb24b4f953d6716e9462315', x'6b6a0034274342de90e70b60cb9304e6') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'08aabbc0beb24b4f953d6716e9462315') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08aabbc0beb24b4f953d6716e9462315' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08aabbc0beb24b4f953d6716e9462315', x'1dbca47528b94a0cbea30c894c5e07ad', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'08aabbc0beb24b4f953d6716e9462315') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'08aabbc0beb24b4f953d6716e9462315' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'08aabbc0beb24b4f953d6716e9462315', x'14d2e831b1044dc0b69e0d14151f65bf', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:24 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b04d024_107080435d4866825@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'5c3b6c9d6e8247f29ef4701cd6fda9aa', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'6b6a0034274342de90e70b60cb9304e6')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b6a0034274342de90e70b60cb9304e6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b6a0034274342de90e70b60cb9304e6' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 163ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6b6a0034274342de90e70b60cb9304e6' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'd2a427fad6834da99334e1bb1b1fc7b9' AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'd2a427fad6834da99334e1bb1b1fc7b9', x'3c524d2a337440ed81d778a507f12e28', NULL, 'index.test.net', NULL)  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `account_domains` SET `verified` = 0 WHERE `account_domains`.`id` = x'3c524d2a337440ed81d778a507f12e28'  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/D2A427FAD6834DA99334E1BB1B1FC7B9/domains" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"D2A427FAD6834DA99334E1BB1B1FC7B9"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6b6a0034274342de90e70b60cb9304e6' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd2a427fad6834da99334e1bb1b1fc7b9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d2a427fa-d683-4da9-9334-e1bb1b1fc7b9_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6b6a0034274342de90e70b60cb9304e6' AND `account_users`.`account_id` = x'd2a427fad6834da99334e1bb1b1fc7b9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'08aabbc0beb24b4f953d6716e9462315' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'08aabbc0beb24b4f953d6716e9462315' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6b6a0034274342de90e70b60cb9304e6' AND `accounts`.`id` = x'd2a427fad6834da99334e1bb1b1fc7b9' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd2a427fad6834da99334e1bb1b1fc7b9' AND `account_domains`.`account_id` = x'd2a427fad6834da99334e1bb1b1fc7b9' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd2a427fad6834da99334e1bb1b1fc7b9' AND `account_users`.`user_id` = x'6b6a0034274342de90e70b60cb9304e6' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'08aabbc0beb24b4f953d6716e9462315' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 8.7ms | ActiveRecord: 3.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:24', '2013-01-02 11:06:24', 'facebook@test.test', '', NULL, x'a1f24be9ccc64e6c81c71db24b04ea15', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a1f24be9ccc64e6c81c71db24b04ea15' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:24', 'User', x'01e5bf94c0724fe4a962d40017865f56', 'c064d2f5474abff0b297abb499dab98c', x'a1f24be9ccc64e6c81c71db24b04ea15', 'User', '2013-01-02 11:06:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a1f24be9ccc64e6c81c71db24b04ea15' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:24', x'ceb196f4d0f942c4bad77a02554ef929', NULL, NULL, NULL, '2013-01-02 11:06:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:24', `updated_at` = '2013-01-02 11:06:24', `subdomain` = 'accountceb196f4-d0f9-42c4-bad7-7a02554ef929' WHERE `accounts`.`id` = x'ceb196f4d0f942c4bad77a02554ef929' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ceb196f4d0f942c4bad77a02554ef929' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ceb196f4d0f942c4bad77a02554ef929', x'ac0f93f8f1684d6e957226fd6a705506', x'a1f24be9ccc64e6c81c71db24b04ea15') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ac0f93f8f1684d6e957226fd6a705506') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac0f93f8f1684d6e957226fd6a705506' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac0f93f8f1684d6e957226fd6a705506', x'ebbc2ac351064b61bb2b9861e1d2c483', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ac0f93f8f1684d6e957226fd6a705506') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac0f93f8f1684d6e957226fd6a705506' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac0f93f8f1684d6e957226fd6a705506', x'3fce95075c084bd0aced8e8c89816463', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:24 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b066e44_107080435d4866927@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'9b5c8329573a4c3a83193ee84e7e7f8b', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'a1f24be9ccc64e6c81c71db24b04ea15')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1f24be9ccc64e6c81c71db24b04ea15' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1f24be9ccc64e6c81c71db24b04ea15' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a1f24be9ccc64e6c81c71db24b04ea15' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_domains` WHERE `account_domains`.`account_id` = x'ceb196f4d0f942c4bad77a02554ef929' AND `account_domains`.`url` = 'index.test.net' SQL (0.3ms) INSERT INTO `account_domains` (`account_id`, `id`, `primary`, `url`, `verified`) VALUES (x'ceb196f4d0f942c4bad77a02554ef929', x'bcb0b6a900d240b6921868057adabcaa', NULL, 'index.test.net', NULL)  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a1f24be9ccc64e6c81c71db24b04ea15' AND `account_users`.`account_id` = x'ceb196f4d0f942c4bad77a02554ef929' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ac0f93f8f1684d6e957226fd6a705506'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'3fce95075c084bd0aced8e8c89816463' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac0f93f8f1684d6e957226fd6a705506' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'α–ôÐùBĺ×zUNù)' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ac0f93f8f1684d6e957226fd6a705506') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac0f93f8f1684d6e957226fd6a705506' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/CEB196F4D0F942C4BAD77A02554EF929/domains" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"CEB196F4D0F942C4BAD77A02554EF929"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a1f24be9ccc64e6c81c71db24b04ea15' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ceb196f4d0f942c4bad77a02554ef929' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_ceb196f4-d0f9-42c4-bad7-7a02554ef929_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a1f24be9ccc64e6c81c71db24b04ea15' AND `account_users`.`account_id` = x'ceb196f4d0f942c4bad77a02554ef929' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ac0f93f8f1684d6e957226fd6a705506' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ac0f93f8f1684d6e957226fd6a705506' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a1f24be9ccc64e6c81c71db24b04ea15' AND `accounts`.`id` = x'ceb196f4d0f942c4bad77a02554ef929' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'ceb196f4d0f942c4bad77a02554ef929' AND `account_domains`.`account_id` = x'ceb196f4d0f942c4bad77a02554ef929' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ceb196f4d0f942c4bad77a02554ef929' AND `account_users`.`user_id` = x'a1f24be9ccc64e6c81c71db24b04ea15' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ac0f93f8f1684d6e957226fd6a705506' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 20ms (Views: 8.6ms | ActiveRecord: 3.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:24', '2013-01-02 11:06:24', 'facebook@test.test', '', NULL, x'7d870d66a6064836a51e0b3902f808a9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7d870d66a6064836a51e0b3902f808a9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:24', 'User', x'43ed50a006e548c4ac5aaf40cf2854db', '28b758a1ad6b4a8dbf20e67e50680dc6', x'7d870d66a6064836a51e0b3902f808a9', 'User', '2013-01-02 11:06:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7d870d66a6064836a51e0b3902f808a9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:24', x'b79ca10bfb5f4fc99d0a5f8fd986d413', NULL, NULL, NULL, '2013-01-02 11:06:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:24', `updated_at` = '2013-01-02 11:06:24', `subdomain` = 'accountb79ca10b-fb5f-4fc9-9d0a-5f8fd986d413' WHERE `accounts`.`id` = x'b79ca10bfb5f4fc99d0a5f8fd986d413' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b79ca10bfb5f4fc99d0a5f8fd986d413' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b79ca10bfb5f4fc99d0a5f8fd986d413', x'895193c6693b4b4d84adcc3fc5a09ab5', x'7d870d66a6064836a51e0b3902f808a9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'895193c6693b4b4d84adcc3fc5a09ab5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'895193c6693b4b4d84adcc3fc5a09ab5', x'e955b4e4a225427baad1a2955d6e3aea', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'895193c6693b4b4d84adcc3fc5a09ab5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'895193c6693b4b4d84adcc3fc5a09ab5', x'06a2562761a144c1a48a3d20802bb78c', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:24 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b09d60e_107080435d4867032@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'24876d82f1754d7ba458f93ab15aa754', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'7d870d66a6064836a51e0b3902f808a9')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7d870d66a6064836a51e0b3902f808a9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7d870d66a6064836a51e0b3902f808a9' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 165ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7d870d66a6064836a51e0b3902f808a9' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7d870d66a6064836a51e0b3902f808a9' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b79ca10bfb5f4fc99d0a5f8fd986d413' AND `account_users`.`user_id` = x'7d870d66a6064836a51e0b3902f808a9' LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'06a2562761a144c1a48a3d20802bb78c' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'895193c6693b4b4d84adcc3fc5a09ab5' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'895193c6693b4b4d84adcc3fc5a09ab5' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/B79CA10BFB5F4FC99D0A5F8FD986D413/user/7D870D66A6064836A51E0B3902F808A9/roles" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"B79CA10BFB5F4FC99D0A5F8FD986D413", "user_id"=>"7D870D66A6064836A51E0B3902F808A9"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7d870d66a6064836a51e0b3902f808a9' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7d870d66a6064836a51e0b3902f808a9' AND `account_users`.`account_id` = x'b79ca10bfb5f4fc99d0a5f8fd986d413' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7d870d66a6064836a51e0b3902f808a9' AND `accounts`.`id` = x'b79ca10bfb5f4fc99d0a5f8fd986d413' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b79ca10bfb5f4fc99d0a5f8fd986d413' AND `account_users`.`user_id` = x'7d870d66a6064836a51e0b3902f808a9' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7d870d66a6064836a51e0b3902f808a9' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b79ca10bfb5f4fc99d0a5f8fd986d413' AND `account_users`.`user_id` = x'7d870d66a6064836a51e0b3902f808a9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'895193c6693b4b4d84adcc3fc5a09ab5' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 26ms (Views: 14.7ms | ActiveRecord: 3.4ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:24', '2013-01-02 11:06:24', 'facebook@test.test', '', NULL, x'db5228f51d024238b17b4fba0308678f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'db5228f51d024238b17b4fba0308678f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:24', 'User', x'1e360359f38d4264a1b9c216543d6cbd', 'e8a89330106f10b0f263ad1e304348f8', x'db5228f51d024238b17b4fba0308678f', 'User', '2013-01-02 11:06:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'db5228f51d024238b17b4fba0308678f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:24', x'5c56eb9ab621439eaa3b0caff500bd7d', NULL, NULL, NULL, '2013-01-02 11:06:24')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:24', `updated_at` = '2013-01-02 11:06:24', `subdomain` = 'account5c56eb9a-b621-439e-aa3b-0caff500bd7d' WHERE `accounts`.`id` = x'5c56eb9ab621439eaa3b0caff500bd7d' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5c56eb9ab621439eaa3b0caff500bd7d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5c56eb9ab621439eaa3b0caff500bd7d', x'5f9d78144dac45a78089adedce9454bc', x'db5228f51d024238b17b4fba0308678f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f9d78144dac45a78089adedce9454bc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f9d78144dac45a78089adedce9454bc', x'a465f4bb397040bca189a03c9466fc81', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f9d78144dac45a78089adedce9454bc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f9d78144dac45a78089adedce9454bc', x'b85d65e179ae4b1398029525f32265f0', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:24 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b0b9f8d_107080435d486716a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'837ad3df8c18444883788b13fb32bde1', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'db5228f51d024238b17b4fba0308678f')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'db5228f51d024238b17b4fba0308678f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'db5228f51d024238b17b4fba0308678f' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 8.3ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'db5228f51d024238b17b4fba0308678f' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'db5228f51d024238b17b4fba0308678f' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5c56eb9ab621439eaa3b0caff500bd7d' AND `account_users`.`user_id` = x'db5228f51d024238b17b4fba0308678f' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f9d78144dac45a78089adedce9454bc' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b85d65e179ae4b1398029525f32265f0'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f9d78144dac45a78089adedce9454bc' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/5C56EB9AB621439EAA3B0CAFF500BD7D/user/DB5228F51D024238B17B4FBA0308678F/roles" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"5C56EB9AB621439EAA3B0CAFF500BD7D", "user_id"=>"DB5228F51D024238B17B4FBA0308678F"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'db5228f51d024238b17b4fba0308678f' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'db5228f51d024238b17b4fba0308678f' AND `account_users`.`account_id` = x'5c56eb9ab621439eaa3b0caff500bd7d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'db5228f51d024238b17b4fba0308678f' AND `accounts`.`id` = x'5c56eb9ab621439eaa3b0caff500bd7d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5c56eb9ab621439eaa3b0caff500bd7d' AND `account_users`.`user_id` = x'db5228f51d024238b17b4fba0308678f' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'db5228f51d024238b17b4fba0308678f' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5c56eb9ab621439eaa3b0caff500bd7d' AND `account_users`.`user_id` = x'db5228f51d024238b17b4fba0308678f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5f9d78144dac45a78089adedce9454bc' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 12.1ms | ActiveRecord: 3.3ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:24 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:24', '2013-01-02 11:06:24', 'facebook@test.test', '', NULL, x'439faaadf6f94b91a54d2abca6fe73dd', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:24') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'439faaadf6f94b91a54d2abca6fe73dd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:24', 'User', x'a71adc5b6aa44ea78be6e3212d50c9d7', 'fbfc5e47d79959aa87c707ff50e52767', x'439faaadf6f94b91a54d2abca6fe73dd', 'User', '2013-01-02 11:06:24') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'439faaadf6f94b91a54d2abca6fe73dd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:24', x'598ba911b1b54068a54358d8f6853bb4', NULL, NULL, NULL, '2013-01-02 11:06:24')  (0.6ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:24', `updated_at` = '2013-01-02 11:06:24', `subdomain` = 'account598ba911-b1b5-4068-a543-58d8f6853bb4' WHERE `accounts`.`id` = x'598ba911b1b54068a54358d8f6853bb4' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'598ba911b1b54068a54358d8f6853bb4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'598ba911b1b54068a54358d8f6853bb4', x'6289aa7f9e1e498f9cefa7bcf5e8f921', x'439faaadf6f94b91a54d2abca6fe73dd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6289aa7f9e1e498f9cefa7bcf5e8f921', x'455048738c6d4a8faaf783380d6d9d69', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6289aa7f9e1e498f9cefa7bcf5e8f921', x'cef63dced8f040b7bdecd4e6c407f093', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:24 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b0f08f9_107080435d48672cc@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'bc29ceba2de947dcaec18b0d07c08573', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'439faaadf6f94b91a54d2abca6fe73dd')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'439faaadf6f94b91a54d2abca6fe73dd' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'439faaadf6f94b91a54d2abca6fe73dd' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 166ms (ActiveRecord: 8.1ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'439faaadf6f94b91a54d2abca6fe73dd' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'439faaadf6f94b91a54d2abca6fe73dd' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'598ba911b1b54068a54358d8f6853bb4' AND `account_users`.`user_id` = x'439faaadf6f94b91a54d2abca6fe73dd' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Y‹©±µ@h¥CXØö…;´' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'cef63dced8f040b7bdecd4e6c407f093'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/598BA911B1B54068A54358D8F6853BB4/user/439FAAADF6F94B91A54D2ABCA6FE73DD/roles" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"598BA911B1B54068A54358D8F6853BB4", "user_id"=>"439FAAADF6F94B91A54D2ABCA6FE73DD"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'439faaadf6f94b91a54d2abca6fe73dd' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'439faaadf6f94b91a54d2abca6fe73dd' AND `account_users`.`account_id` = x'598ba911b1b54068a54358d8f6853bb4' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'439faaadf6f94b91a54d2abca6fe73dd' AND `accounts`.`id` = x'598ba911b1b54068a54358d8f6853bb4' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'598ba911b1b54068a54358d8f6853bb4' AND `account_users`.`user_id` = x'439faaadf6f94b91a54d2abca6fe73dd' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'439faaadf6f94b91a54d2abca6fe73dd' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'598ba911b1b54068a54358d8f6853bb4' AND `account_users`.`user_id` = x'439faaadf6f94b91a54d2abca6fe73dd' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6289aa7f9e1e498f9cefa7bcf5e8f921' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 11.9ms | ActiveRecord: 3.0ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:25', '2013-01-02 11:06:25', 'facebook@test.test', '', NULL, x'fee127e943e743ec9d5f8cdfda533297', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fee127e943e743ec9d5f8cdfda533297' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:25', 'User', x'19185d1f8dd64f2faeb19a025b145777', 'e901176ba0eaf92a5b21895fe1292de6', x'fee127e943e743ec9d5f8cdfda533297', 'User', '2013-01-02 11:06:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fee127e943e743ec9d5f8cdfda533297' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'ed63d96a54784c2cb252340f158db9b1', NULL, NULL, NULL, '2013-01-02 11:06:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'accounted63d96a-5478-4c2c-b252-340f158db9b1' WHERE `accounts`.`id` = x'ed63d96a54784c2cb252340f158db9b1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ed63d96a54784c2cb252340f158db9b1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ed63d96a54784c2cb252340f158db9b1', x'2754e3449ce9499e91d47f8454ca9156', x'fee127e943e743ec9d5f8cdfda533297') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2754e3449ce9499e91d47f8454ca9156' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2754e3449ce9499e91d47f8454ca9156', x'd7c07b1a50be48bea3863dc1b4303f60', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2754e3449ce9499e91d47f8454ca9156' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2754e3449ce9499e91d47f8454ca9156', x'2d51db592df944ae8de19958d23c6471', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:25 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b118725_107080435d4867366@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'39829fa31be848a48a57149f253061d9', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'fee127e943e743ec9d5f8cdfda533297')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fee127e943e743ec9d5f8cdfda533297' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fee127e943e743ec9d5f8cdfda533297' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 58ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fee127e943e743ec9d5f8cdfda533297' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fee127e943e743ec9d5f8cdfda533297' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ed63d96a54784c2cb252340f158db9b1' AND `account_users`.`user_id` = x'fee127e943e743ec9d5f8cdfda533297' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2d51db592df944ae8de19958d23c6471' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2754e3449ce9499e91d47f8454ca9156' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ícÙjTxL,²R4¹±' AND name = 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2754e3449ce9499e91d47f8454ca9156' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/ED63D96A54784C2CB252340F158DB9B1/user/FEE127E943E743EC9D5F8CDFDA533297/roles" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"ED63D96A54784C2CB252340F158DB9B1", "user_id"=>"FEE127E943E743EC9D5F8CDFDA533297"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fee127e943e743ec9d5f8cdfda533297' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'fee127e943e743ec9d5f8cdfda533297' AND `account_users`.`account_id` = x'ed63d96a54784c2cb252340f158db9b1' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fee127e943e743ec9d5f8cdfda533297' AND `accounts`.`id` = x'ed63d96a54784c2cb252340f158db9b1' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ed63d96a54784c2cb252340f158db9b1' AND `account_users`.`user_id` = x'fee127e943e743ec9d5f8cdfda533297' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fee127e943e743ec9d5f8cdfda533297' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ed63d96a54784c2cb252340f158db9b1' AND `account_users`.`user_id` = x'fee127e943e743ec9d5f8cdfda533297' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2754e3449ce9499e91d47f8454ca9156' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 11.8ms | ActiveRecord: 3.2ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:25', '2013-01-02 11:06:25', 'facebook@test.test', '', NULL, x'f4760e22f2914e6c92fb788195acc51c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f4760e22f2914e6c92fb788195acc51c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:25', 'User', x'dafb87969f2b46139b00fe8bf9ca88e5', 'b7a6c99ff6ecc7a654cf7e5ad08dcabb', x'f4760e22f2914e6c92fb788195acc51c', 'User', '2013-01-02 11:06:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f4760e22f2914e6c92fb788195acc51c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'6ace35aaec0b4444a9921f152bd179e2', NULL, NULL, NULL, '2013-01-02 11:06:25')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'account6ace35aa-ec0b-4444-a992-1f152bd179e2' WHERE `accounts`.`id` = x'6ace35aaec0b4444a9921f152bd179e2' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6ace35aaec0b4444a9921f152bd179e2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6ace35aaec0b4444a9921f152bd179e2', x'c709e41deb7e471db430c01ebfbbd5f9', x'f4760e22f2914e6c92fb788195acc51c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c709e41deb7e471db430c01ebfbbd5f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c709e41deb7e471db430c01ebfbbd5f9', x'2e908dc5c5c141b6a3c6084624ef5e12', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c709e41deb7e471db430c01ebfbbd5f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c709e41deb7e471db430c01ebfbbd5f9', x'b2dd53e016224225a33392d09037cf02', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:25 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b14f5fb_107080435d48674ce@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'031f79c1d3cd46978539ad026c6f05c2', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'f4760e22f2914e6c92fb788195acc51c')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 167ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6ace35aaec0b4444a9921f152bd179e2' AND `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:25', 'notowner@account.test', '$2a$04$zm6dreXLgr09zpImkMPLQefeDUufbLAJRXgNczzNEo32hqYyEP3u2', NULL, x'5530129c101c42f885c14faff53aacc5', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5530129c101c42f885c14faff53aacc5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:25', 'User', x'b21e833923ba45b991cff30264f9c57c', '284400480c1f908bcbe918ad726c124d', x'5530129c101c42f885c14faff53aacc5', 'User', '2013-01-02 11:06:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5530129c101c42f885c14faff53aacc5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'6b0025ac92d74034b8653e74946ce81d', NULL, NULL, NULL, '2013-01-02 11:06:25')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'account6b0025ac-92d7-4034-b865-3e74946ce81d' WHERE `accounts`.`id` = x'6b0025ac92d74034b8653e74946ce81d' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6b0025ac92d74034b8653e74946ce81d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6b0025ac92d74034b8653e74946ce81d', x'f061ab0bb627421fbc0d78979de81b13', x'5530129c101c42f885c14faff53aacc5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f061ab0bb627421fbc0d78979de81b13') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f061ab0bb627421fbc0d78979de81b13' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f061ab0bb627421fbc0d78979de81b13', x'5b0b74156def4e0ea8582cf0ba1c4725', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f061ab0bb627421fbc0d78979de81b13') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f061ab0bb627421fbc0d78979de81b13' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f061ab0bb627421fbc0d78979de81b13', x'2ca2407b31ee4d518ec8240b95c1f668', 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:25 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414b160152_107080435d486753e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'b9be13d2d6574b9ab9171119cde12b10', 'jabanilson', NULL, 1, '2013-01-02 11:06:25')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'accountb9be13d2-d657-4b9a-b917-1119cde12b10' WHERE `accounts`.`id` = x'b9be13d2d6574b9ab9171119cde12b10'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b9be13d2d6574b9ab9171119cde12b10', x'6ee1bad12d8f4bad97f1a6ad37022234', x'5530129c101c42f885c14faff53aacc5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6ee1bad12d8f4bad97f1a6ad37022234') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ee1bad12d8f4bad97f1a6ad37022234' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ee1bad12d8f4bad97f1a6ad37022234', x'181a2c9083bd4c4fa41dae2d5698b098', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6ee1bad12d8f4bad97f1a6ad37022234') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ee1bad12d8f4bad97f1a6ad37022234' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ee1bad12d8f4bad97f1a6ad37022234', x'3e0ff67ea79a48e2be90638814d8ca7c', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6ace35aaec0b4444a9921f152bd179e2' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'6ace35aaec0b4444a9921f152bd179e2' WHERE `account_users`.`id` = x'6ee1bad12d8f4bad97f1a6ad37022234'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c709e41deb7e471db430c01ebfbbd5f9' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'jÎ5ªì DD©’+Ñyâ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2e908dc5c5c141b6a3c6084624ef5e12' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b2dd53e016224225a33392d09037cf02'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c709e41deb7e471db430c01ebfbbd5f9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c709e41deb7e471db430c01ebfbbd5f9', x'76114c02fbb147518bb31b5515593eb8', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/6ACE35AAEC0B4444A9921F152BD179E2/user/F4760E22F2914E6C92FB788195ACC51C/roles" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"6ACE35AAEC0B4444A9921F152BD179E2", "user_id"=>"F4760E22F2914E6C92FB788195ACC51C"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' AND `account_users`.`account_id` = x'6ace35aaec0b4444a9921f152bd179e2' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' AND `accounts`.`id` = x'6ace35aaec0b4444a9921f152bd179e2' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6ace35aaec0b4444a9921f152bd179e2' AND `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6ace35aaec0b4444a9921f152bd179e2' AND `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6ace35aaec0b4444a9921f152bd179e2' AND `account_users`.`user_id` = x'f4760e22f2914e6c92fb788195acc51c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c709e41deb7e471db430c01ebfbbd5f9' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 11.7ms | ActiveRecord: 3.2ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:25', '2013-01-02 11:06:25', 'facebook@test.test', '', NULL, x'8b4d1752b51e4e4a91093ae3ff3bb6d5', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:25', 'User', x'bf6b0f3eabad4719a09a7f29fc3d79e7', '5a63799d6370a4e468f10175c7e019ea', x'8b4d1752b51e4e4a91093ae3ff3bb6d5', 'User', '2013-01-02 11:06:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'139133e74dde46938b6ef5a9a9b7a6bd', NULL, NULL, NULL, '2013-01-02 11:06:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'account139133e7-4dde-4693-8b6e-f5a9a9b7a6bd' WHERE `accounts`.`id` = x'139133e74dde46938b6ef5a9a9b7a6bd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'139133e74dde46938b6ef5a9a9b7a6bd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'139133e74dde46938b6ef5a9a9b7a6bd', x'6bb35ae1e65b4fc98f3f70ff9d4dd35f', x'8b4d1752b51e4e4a91093ae3ff3bb6d5') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6bb35ae1e65b4fc98f3f70ff9d4dd35f', x'67e41e2d72df4293adeb60d836fd752a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6bb35ae1e65b4fc98f3f70ff9d4dd35f', x'204ac423e6d44a0da575790f7487b3a5', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:25 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b17a838_107080435d48676c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'beebd7bff6b947b39b6cd27bcd86a81d', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'8b4d1752b51e4e4a91093ae3ff3bb6d5')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'139133e74dde46938b6ef5a9a9b7a6bd' AND `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:25', 'notowner@account.test', '$2a$04$7kUBj0ch6mm7JdfaQrgGwuV.ckgaQBANNUNIZicwdFHzJsDBeMqYa', NULL, x'2532e48b58394bea9622dd3beab39cae', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2532e48b58394bea9622dd3beab39cae' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:25', 'User', x'b61e13af21a84d61ae64185abb98f373', '8136b7b06ffd90c5fbc8e2e9aaf8a39a', x'2532e48b58394bea9622dd3beab39cae', 'User', '2013-01-02 11:06:25') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2532e48b58394bea9622dd3beab39cae' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'6b966c8a219e4ac3acff24358613bb10', NULL, NULL, NULL, '2013-01-02 11:06:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'account6b966c8a-219e-4ac3-acff-24358613bb10' WHERE `accounts`.`id` = x'6b966c8a219e4ac3acff24358613bb10' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6b966c8a219e4ac3acff24358613bb10' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6b966c8a219e4ac3acff24358613bb10', x'159ba77c053347558a2515aa2d2cc1e5', x'2532e48b58394bea9622dd3beab39cae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'159ba77c053347558a2515aa2d2cc1e5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'159ba77c053347558a2515aa2d2cc1e5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'159ba77c053347558a2515aa2d2cc1e5', x'3f63a193465742778ad9ece1622ee7d5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'159ba77c053347558a2515aa2d2cc1e5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'159ba77c053347558a2515aa2d2cc1e5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'159ba77c053347558a2515aa2d2cc1e5', x'ec934113e3964f2080e4aa97443231d2', 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:25 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414b1a5cff_107080435d486774a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'bb647a4cd67845709afef900be065573', 'jabanilson', NULL, 1, '2013-01-02 11:06:25')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'accountbb647a4c-d678-4570-9afe-f900be065573' WHERE `accounts`.`id` = x'bb647a4cd67845709afef900be065573'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bb647a4cd67845709afef900be065573', x'da3c656011274d3e84eeab99a2c02968', x'2532e48b58394bea9622dd3beab39cae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'da3c656011274d3e84eeab99a2c02968') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da3c656011274d3e84eeab99a2c02968' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da3c656011274d3e84eeab99a2c02968', x'a76f6e8325f04c7ab1ca49c735120943', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'da3c656011274d3e84eeab99a2c02968') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'da3c656011274d3e84eeab99a2c02968' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'da3c656011274d3e84eeab99a2c02968', x'43b5f973c4064b6f8c64cf0167c3e7b8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'139133e74dde46938b6ef5a9a9b7a6bd' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'139133e74dde46938b6ef5a9a9b7a6bd' WHERE `account_users`.`id` = x'da3c656011274d3e84eeab99a2c02968'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'204ac423e6d44a0da575790f7487b3a5' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '‘3çMÞF“‹nõ©©·¦½' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'67e41e2d72df4293adeb60d836fd752a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6bb35ae1e65b4fc98f3f70ff9d4dd35f', x'a8be8af0b91340079a51727c7fccab3f', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/139133E74DDE46938B6EF5A9A9B7A6BD/user/8B4D1752B51E4E4A91093AE3FF3BB6D5/roles" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"139133E74DDE46938B6EF5A9A9B7A6BD", "user_id"=>"8B4D1752B51E4E4A91093AE3FF3BB6D5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' AND `account_users`.`account_id` = x'139133e74dde46938b6ef5a9a9b7a6bd' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' AND `accounts`.`id` = x'139133e74dde46938b6ef5a9a9b7a6bd' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'139133e74dde46938b6ef5a9a9b7a6bd' AND `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'139133e74dde46938b6ef5a9a9b7a6bd' AND `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'139133e74dde46938b6ef5a9a9b7a6bd' AND `account_users`.`user_id` = x'8b4d1752b51e4e4a91093ae3ff3bb6d5' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6bb35ae1e65b4fc98f3f70ff9d4dd35f' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 11.7ms | ActiveRecord: 3.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:25', '2013-01-02 11:06:25', 'facebook@test.test', '', NULL, x'f3addda2ebd64bc2b1b8099f6dd9488a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:25', 'User', x'70d3f3fa711c404e9c1620420a4f4bd4', 'f46b6710e7417671d9f76eb6ba178520', x'f3addda2ebd64bc2b1b8099f6dd9488a', 'User', '2013-01-02 11:06:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'4923abca02cd4d80a65d81d5a4a58ba9', NULL, NULL, NULL, '2013-01-02 11:06:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'account4923abca-02cd-4d80-a65d-81d5a4a58ba9' WHERE `accounts`.`id` = x'4923abca02cd4d80a65d81d5a4a58ba9' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4923abca02cd4d80a65d81d5a4a58ba9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4923abca02cd4d80a65d81d5a4a58ba9', x'ecadb7c069c2492db37c3b3f42755b2c', x'f3addda2ebd64bc2b1b8099f6dd9488a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecadb7c069c2492db37c3b3f42755b2c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ecadb7c069c2492db37c3b3f42755b2c', x'a0c5a6ade2a945c3a71f0dd17276b572', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecadb7c069c2492db37c3b3f42755b2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ecadb7c069c2492db37c3b3f42755b2c', x'030ccd1354c242b99c327ef4656573b4', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:25 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b1c02c5_107080435d486783e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'd4b01764c6bb44a89ff81f71feb7bd57', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'f3addda2ebd64bc2b1b8099f6dd9488a')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4923abca02cd4d80a65d81d5a4a58ba9' AND `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:25', 'notowner@account.test', '$2a$04$7XUJlYRrK0zpHbvGa8l1AOzjOzzsUhC4zDx.3pQDrLJS5GR/mFYYm', NULL, x'820e560bafeb4ee9995f34ad764730ea', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:25') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'820e560bafeb4ee9995f34ad764730ea' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:25', 'User', x'ede642c9aa2a417aa77527b8d7d4bf00', '4b546d8039ebc29544d5b1c9df708031', x'820e560bafeb4ee9995f34ad764730ea', 'User', '2013-01-02 11:06:25') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'820e560bafeb4ee9995f34ad764730ea' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'b51805904310408ab642568b1b759b27', NULL, NULL, NULL, '2013-01-02 11:06:25')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'accountb5180590-4310-408a-b642-568b1b759b27' WHERE `accounts`.`id` = x'b51805904310408ab642568b1b759b27' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b51805904310408ab642568b1b759b27' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b51805904310408ab642568b1b759b27', x'4b0793d43647478198cb0879a0eda02f', x'820e560bafeb4ee9995f34ad764730ea') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4b0793d43647478198cb0879a0eda02f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b0793d43647478198cb0879a0eda02f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b0793d43647478198cb0879a0eda02f', x'e520bf3d5dc94e70bf75c9a3042b2ec4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4b0793d43647478198cb0879a0eda02f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b0793d43647478198cb0879a0eda02f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b0793d43647478198cb0879a0eda02f', x'139a7f6b12d247118f0e2c6f119e913e', 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:25 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414b1d0b7e_107080435d4867986@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:25', x'e3af034cfb7f4f4a805a07c61d062115', 'jabanilson', NULL, 1, '2013-01-02 11:06:25')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:25', `updated_at` = '2013-01-02 11:06:25', `subdomain` = 'accounte3af034c-fb7f-4f4a-805a-07c61d062115' WHERE `accounts`.`id` = x'e3af034cfb7f4f4a805a07c61d062115'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e3af034cfb7f4f4a805a07c61d062115', x'baeb5881748d4c828b3be75e83ae2108', x'820e560bafeb4ee9995f34ad764730ea') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'baeb5881748d4c828b3be75e83ae2108') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'baeb5881748d4c828b3be75e83ae2108' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'baeb5881748d4c828b3be75e83ae2108', x'63aba8ffa0c04ebd95856661800124c5', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'baeb5881748d4c828b3be75e83ae2108') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'baeb5881748d4c828b3be75e83ae2108' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'baeb5881748d4c828b3be75e83ae2108', x'e37850b5085243da926eb6663e9b6551', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4923abca02cd4d80a65d81d5a4a58ba9' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'4923abca02cd4d80a65d81d5a4a58ba9' WHERE `account_users`.`id` = x'baeb5881748d4c828b3be75e83ae2108'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c'  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'030ccd1354c242b99c327ef4656573b4' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecadb7c069c2492db37c3b3f42755b2c' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'I#«ÊÍM€¦]Õ¤¥‹©' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a0c5a6ade2a945c3a71f0dd17276b572'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ecadb7c069c2492db37c3b3f42755b2c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ecadb7c069c2492db37c3b3f42755b2c', x'543102191a644dbbbaaaf2d0cbfb4f1e', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4923ABCA02CD4D80A65D81D5A4A58BA9/user/F3ADDDA2EBD64BC2B1B8099F6DD9488A/roles" for 127.0.0.1 at 2013-01-02 09:06:25 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"4923ABCA02CD4D80A65D81D5A4A58BA9", "user_id"=>"F3ADDDA2EBD64BC2B1B8099F6DD9488A"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' AND `account_users`.`account_id` = x'4923abca02cd4d80a65d81d5a4a58ba9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' AND `accounts`.`id` = x'4923abca02cd4d80a65d81d5a4a58ba9' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4923abca02cd4d80a65d81d5a4a58ba9' AND `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4923abca02cd4d80a65d81d5a4a58ba9' AND `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4923abca02cd4d80a65d81d5a4a58ba9' AND `account_users`.`user_id` = x'f3addda2ebd64bc2b1b8099f6dd9488a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ecadb7c069c2492db37c3b3f42755b2c' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 11.9ms | ActiveRecord: 3.1ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:26', '2013-01-02 11:06:26', 'facebook@test.test', '', NULL, x'c5639dd0365b41a9a7e6c37ceccd2a25', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:26', 'User', x'b1ba7c7f3ce34258979c473a3bbc726f', '2bc575be862ed0ca4e0744e1347cd4d9', x'c5639dd0365b41a9a7e6c37ceccd2a25', 'User', '2013-01-02 11:06:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:26', x'840018fff82042c5a05ee39978bc8751', NULL, NULL, NULL, '2013-01-02 11:06:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:26', `updated_at` = '2013-01-02 11:06:26', `subdomain` = 'account840018ff-f820-42c5-a05e-e39978bc8751' WHERE `accounts`.`id` = x'840018fff82042c5a05ee39978bc8751' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'840018fff82042c5a05ee39978bc8751' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'840018fff82042c5a05ee39978bc8751', x'305327af531b46a69b93ec361b114d26', x'c5639dd0365b41a9a7e6c37ceccd2a25') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'305327af531b46a69b93ec361b114d26' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'305327af531b46a69b93ec361b114d26', x'888683ce9e634dae87163fe68a4e0287', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'305327af531b46a69b93ec361b114d26' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'305327af531b46a69b93ec361b114d26', x'3db1ab93d4bc4a9aa48c185056b4648c', 'admin') Sent mail to facebook@test.test (8ms) Date: Wed, 02 Jan 2013 09:06:26 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414b21222d_107080435d4868046@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ccae8d77b25746a58041ce9bcfaff712', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'c5639dd0365b41a9a7e6c37ceccd2a25')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 59ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'840018fff82042c5a05ee39978bc8751' AND `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:26', 'notowner@account.test', '$2a$04$MTcZmRnbw0Am6tyPA1x9eOnvf1cOtSa4r.VcPv72VXn9v7uQ9fOae', NULL, x'4d557402a35a437fb46f01955d002c89', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4d557402a35a437fb46f01955d002c89' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:26', 'User', x'f869cbd3f19342b3b5bd6c11faa655a2', '1760b716476fb3480039e8d3c8f32e15', x'4d557402a35a437fb46f01955d002c89', 'User', '2013-01-02 11:06:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4d557402a35a437fb46f01955d002c89' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:26', x'1563ec90e2ab4d68bd6ebd33e9ac6e9b', NULL, NULL, NULL, '2013-01-02 11:06:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:26', `updated_at` = '2013-01-02 11:06:26', `subdomain` = 'account1563ec90-e2ab-4d68-bd6e-bd33e9ac6e9b' WHERE `accounts`.`id` = x'1563ec90e2ab4d68bd6ebd33e9ac6e9b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'1563ec90e2ab4d68bd6ebd33e9ac6e9b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'1563ec90e2ab4d68bd6ebd33e9ac6e9b', x'0b02e3de34e74debba3278e26ea0abea', x'4d557402a35a437fb46f01955d002c89') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0b02e3de34e74debba3278e26ea0abea') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0b02e3de34e74debba3278e26ea0abea' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0b02e3de34e74debba3278e26ea0abea', x'56af9b644fa0403caaa4f6b78b1be790', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0b02e3de34e74debba3278e26ea0abea') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0b02e3de34e74debba3278e26ea0abea' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0b02e3de34e74debba3278e26ea0abea', x'5d43bdce9fa842bb81709eb42a7e8f36', 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:26 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414b22343c_107080435d4868150@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:26', x'04de5eaadec94cb6a1f7c4d69d274c6d', 'jabanilson', NULL, 1, '2013-01-02 11:06:26')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:26', `updated_at` = '2013-01-02 11:06:26', `subdomain` = 'account04de5eaa-dec9-4cb6-a1f7-c4d69d274c6d' WHERE `accounts`.`id` = x'04de5eaadec94cb6a1f7c4d69d274c6d'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'04de5eaadec94cb6a1f7c4d69d274c6d', x'ea24ef1e7c6342dd8a569a9429af575c', x'4d557402a35a437fb46f01955d002c89') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ea24ef1e7c6342dd8a569a9429af575c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ea24ef1e7c6342dd8a569a9429af575c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ea24ef1e7c6342dd8a569a9429af575c', x'fb875125515741e284c0d888f29fd9fa', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ea24ef1e7c6342dd8a569a9429af575c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ea24ef1e7c6342dd8a569a9429af575c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ea24ef1e7c6342dd8a569a9429af575c', x'463ea5c827fb464a8d00d6b89e821dc8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'840018fff82042c5a05ee39978bc8751' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'840018fff82042c5a05ee39978bc8751' WHERE `account_users`.`id` = x'ea24ef1e7c6342dd8a569a9429af575c'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'3db1ab93d4bc4a9aa48c185056b4648c' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'305327af531b46a69b93ec361b114d26' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'888683ce9e634dae87163fe68a4e0287'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'305327af531b46a69b93ec361b114d26' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'305327af531b46a69b93ec361b114d26', x'd4dbe27be074416e8842a7613e1c729a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/840018FFF82042C5A05EE39978BC8751/user/C5639DD0365B41A9A7E6C37CECCD2A25/roles" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::AccountRolesController#edit as HTML Parameters: {"id"=>"840018FFF82042C5A05EE39978BC8751", "user_id"=>"C5639DD0365B41A9A7E6C37CECCD2A25"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' AND `account_users`.`account_id` = x'840018fff82042c5a05ee39978bc8751' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' AND `accounts`.`id` = x'840018fff82042c5a05ee39978bc8751' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'840018fff82042c5a05ee39978bc8751' AND `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'840018fff82042c5a05ee39978bc8751' AND `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'840018fff82042c5a05ee39978bc8751' AND `account_users`.`user_id` = x'c5639dd0365b41a9a7e6c37ceccd2a25' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26' AND `account_roles`.`name` = 'user' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'305327af531b46a69b93ec361b114d26' AND `account_roles`.`name` = 'guest' LIMIT 1 Completed 200 OK in 23ms (Views: 11.6ms | ActiveRecord: 3.1ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:26', 'teste@teste.com', '$2a$04$Kw6qSPzOZKzmXg88hBOiZeShur58xGLMI.Do3b.RfuG5Fc2AbmzjC', NULL, x'09a68bd024fd456e8b54cc3d6cddda01', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'09a68bd024fd456e8b54cc3d6cddda01' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:26', 'User', x'14c80a47788342d1ad5ded571346b546', '0d629997fe372283d175879ebbcef5ce', x'09a68bd024fd456e8b54cc3d6cddda01', 'User', '2013-01-02 11:06:26') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'09a68bd024fd456e8b54cc3d6cddda01' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:26', x'cef70e18fc024e6c96f27d5ed35b5a55', NULL, NULL, NULL, '2013-01-02 11:06:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:26', `updated_at` = '2013-01-02 11:06:26', `subdomain` = 'accountcef70e18-fc02-4e6c-96f2-7d5ed35b5a55' WHERE `accounts`.`id` = x'cef70e18fc024e6c96f27d5ed35b5a55' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cef70e18fc024e6c96f27d5ed35b5a55' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cef70e18fc024e6c96f27d5ed35b5a55', x'0774571cd4844ae8b13bad1a3818462a', x'09a68bd024fd456e8b54cc3d6cddda01') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0774571cd4844ae8b13bad1a3818462a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0774571cd4844ae8b13bad1a3818462a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0774571cd4844ae8b13bad1a3818462a', x'01d31f9948e34cf0abe066c19cec7299', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0774571cd4844ae8b13bad1a3818462a') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0774571cd4844ae8b13bad1a3818462a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0774571cd4844ae8b13bad1a3818462a', x'012e4d9b275f4cfaa2851ae85136c9a5', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:26 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b25802c_107080435d48682c7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'09a68bd024fd456e8b54cc3d6cddda01' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (1.5ms) Completed 200 OK in 51ms (Views: 49.1ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'09a68bd024fd456e8b54cc3d6cddda01' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'09a68bd024fd456e8b54cc3d6cddda01' LIMIT 1 Completed 302 Found in 35ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'09a68bd024fd456e8b54cc3d6cddda01' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:26', 'teste@teste.com', '$2a$04$WYRmFAIJDCQr6QI6uFoANu8khYZPh6K3.XvEUtxgQrFugt5KpwPNK', NULL, x'a0cce27c786c4916bd61e05e22161324', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:26') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a0cce27c786c4916bd61e05e22161324' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:26', 'User', x'83248e1ef21a49188911d55259c3f1be', '776c0687ade96be56fcdfe5a5107a988', x'a0cce27c786c4916bd61e05e22161324', 'User', '2013-01-02 11:06:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a0cce27c786c4916bd61e05e22161324' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:26', x'19e908c8c08b4c45a2f90b39f4763b27', NULL, NULL, NULL, '2013-01-02 11:06:26')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:26', `updated_at` = '2013-01-02 11:06:26', `subdomain` = 'account19e908c8-c08b-4c45-a2f9-0b39f4763b27' WHERE `accounts`.`id` = x'19e908c8c08b4c45a2f90b39f4763b27' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'19e908c8c08b4c45a2f90b39f4763b27' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'19e908c8c08b4c45a2f90b39f4763b27', x'09b8e2ad1db34b0d9a2656c8d9be3981', x'a0cce27c786c4916bd61e05e22161324') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'09b8e2ad1db34b0d9a2656c8d9be3981') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09b8e2ad1db34b0d9a2656c8d9be3981' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09b8e2ad1db34b0d9a2656c8d9be3981', x'1f8a460353934e01bb3c747cc9dd031b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'09b8e2ad1db34b0d9a2656c8d9be3981') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'09b8e2ad1db34b0d9a2656c8d9be3981' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'09b8e2ad1db34b0d9a2656c8d9be3981', x'c58cce5891c243af80771d33ae071da1', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:26 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b2a93f0_107080435d48683da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a0cce27c786c4916bd61e05e22161324' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a0cce27c786c4916bd61e05e22161324' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a0cce27c786c4916bd61e05e22161324' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a0cce27c786c4916bd61e05e22161324' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a0cce27c786c4916bd61e05e22161324' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a0cce27c786c4916bd61e05e22161324' CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a0cce27c786c4916bd61e05e22161324' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a0cce27c786c4916bd61e05e22161324' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a0cce27c786c4916bd61e05e22161324' AND `account_users`.`account_id` = x'19e908c8c08b4c45a2f90b39f4763b27' LIMIT 1 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a0cce27c786c4916bd61e05e22161324' Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 1.8ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:26', 'teste@teste.com', '$2a$04$OzOvAsIg3P/lcko6Ks8n5ulxdu/pZgtL3sb4.ZEwv1R/O99eTXgnq', NULL, x'93082a2c1b424843b6d0e61144647483', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:26') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'93082a2c1b424843b6d0e61144647483' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:26', 'User', x'da1811c132694fe2b1cdd98c11ce9433', 'd2d3bf14e7a68d39c33850dafa6c9efe', x'93082a2c1b424843b6d0e61144647483', 'User', '2013-01-02 11:06:26') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'93082a2c1b424843b6d0e61144647483' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:26', x'56d9e63b1dd34212b3b6f687a74f73e1', NULL, NULL, NULL, '2013-01-02 11:06:26')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:26', `updated_at` = '2013-01-02 11:06:26', `subdomain` = 'account56d9e63b-1dd3-4212-b3b6-f687a74f73e1' WHERE `accounts`.`id` = x'56d9e63b1dd34212b3b6f687a74f73e1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'56d9e63b1dd34212b3b6f687a74f73e1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'56d9e63b1dd34212b3b6f687a74f73e1', x'31bd36cb8b6540fe8c916ab4f429508f', x'93082a2c1b424843b6d0e61144647483') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'31bd36cb8b6540fe8c916ab4f429508f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'31bd36cb8b6540fe8c916ab4f429508f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'31bd36cb8b6540fe8c916ab4f429508f', x'48204878236a472b996aafe50969e4c2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'31bd36cb8b6540fe8c916ab4f429508f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'31bd36cb8b6540fe8c916ab4f429508f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'31bd36cb8b6540fe8c916ab4f429508f', x'd505565f9f234dc1bb2cc9139ec677bc', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:26 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b2c4932_107080435d486849a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'93082a2c1b424843b6d0e61144647483' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/accounts" for 127.0.0.1 at 2013-01-02 09:06:26 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'93082a2c1b424843b6d0e61144647483' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' AND `account_users`.`account_id` = x'56d9e63b1dd34212b3b6f687a74f73e1' LIMIT 1 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 1.7ms) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' AND `account_users`.`account_id` = x'56d9e63b1dd34212b3b6f687a74f73e1' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:26', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 31bd36cb-8b65-40fe-8c91-6ab4f429508f\n', NULL, NULL, NULL, 0, 'account_user_31bd36cb-8b65-40fe-8c91-6ab4f429508f_destroy', '2013-01-02 11:06:26', '2013-01-02 11:06:26')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:26', x'b4d1d1a42a214935a208f96117ecd9aa', 'jabanilson', NULL, 1, '2013-01-02 11:06:26')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:26', `updated_at` = '2013-01-02 11:06:26', `subdomain` = 'accountb4d1d1a4-2a21-4935-a208-f96117ecd9aa' WHERE `accounts`.`id` = x'b4d1d1a42a214935a208f96117ecd9aa'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'93082a2c1b424843b6d0e61144647483' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b4d1d1a42a214935a208f96117ecd9aa', x'9e5009be54004da39824d6e5483af00b', x'93082a2c1b424843b6d0e61144647483') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9e5009be54004da39824d6e5483af00b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e5009be54004da39824d6e5483af00b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e5009be54004da39824d6e5483af00b', x'e051fb6e53504a7ea44391ab778741b1', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9e5009be54004da39824d6e5483af00b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e5009be54004da39824d6e5483af00b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e5009be54004da39824d6e5483af00b', x'1dd8770399ce47629d768ae764c3cf40', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'93082a2c1b424843b6d0e61144647483' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' AND `account_users`.`account_id` = x'56d9e63b1dd34212b3b6f687a74f73e1' LIMIT 1 CACHE (0.0ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'93082a2c1b424843b6d0e61144647483' Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 1.7ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:27', 'teste@teste.com', '$2a$04$3livtmb4eTESJBPFgykg0.enfHlOz7HPJI4qHrp4Isbp96g6JgNAy', NULL, x'61b9fd14364a48a7ae9e617ca7c39d5c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:27', 'User', x'41a2271a35aa47409f5ca8076ee9bdcb', '5ecceb28b72d227f9047215a3cf88ca8', x'61b9fd14364a48a7ae9e617ca7c39d5c', 'User', '2013-01-02 11:06:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'7142752e04ed445396143990ed7b2842', NULL, NULL, NULL, '2013-01-02 11:06:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'account7142752e-04ed-4453-9614-3990ed7b2842' WHERE `accounts`.`id` = x'7142752e04ed445396143990ed7b2842' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7142752e04ed445396143990ed7b2842' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7142752e04ed445396143990ed7b2842', x'a068b9624ca94ac4a32bc8b272b029b6', x'61b9fd14364a48a7ae9e617ca7c39d5c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a068b9624ca94ac4a32bc8b272b029b6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a068b9624ca94ac4a32bc8b272b029b6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a068b9624ca94ac4a32bc8b272b029b6', x'50f0e41f05974f03a0fc01cb64f961b0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a068b9624ca94ac4a32bc8b272b029b6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a068b9624ca94ac4a32bc8b272b029b6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a068b9624ca94ac4a32bc8b272b029b6', x'642e2dfd5fc744b8aeb47db740fd18dc', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:27 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b3ff58_107080435d486857e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c'  (0.3ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' AND `account_users`.`account_id` = x'7142752e04ed445396143990ed7b2842' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:27', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: a068b962-4ca9-4ac4-a32b-c8b272b029b6\n', NULL, NULL, NULL, 0, 'account_user_a068b962-4ca9-4ac4-a32b-c8b272b029b6_destroy', '2013-01-02 11:06:27', '2013-01-02 11:06:27')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'90afa1761e6b4eb9a7c1ada204fc3401', 'jabanilson', NULL, 1, '2013-01-02 11:06:27')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'account90afa176-1e6b-4eb9-a7c1-ada204fc3401' WHERE `accounts`.`id` = x'90afa1761e6b4eb9a7c1ada204fc3401'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'90afa1761e6b4eb9a7c1ada204fc3401', x'7d00504880c34245ba3a485301c31f16', x'61b9fd14364a48a7ae9e617ca7c39d5c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7d00504880c34245ba3a485301c31f16') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d00504880c34245ba3a485301c31f16' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d00504880c34245ba3a485301c31f16', x'1f591fa8953d4760af0e58499ae80ae4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7d00504880c34245ba3a485301c31f16') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d00504880c34245ba3a485301c31f16' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d00504880c34245ba3a485301c31f16', x'65e1d054931c4f17844c153252fd1f20', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'6ab3e172e27e4fbe91bfe0a0150e3b31', 'jabanilson', NULL, 1, '2013-01-02 11:06:27')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'account6ab3e172-e27e-4fbe-91bf-e0a0150e3b31' WHERE `accounts`.`id` = x'6ab3e172e27e4fbe91bfe0a0150e3b31'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6ab3e172e27e4fbe91bfe0a0150e3b31', x'70de5196997742d78658bda8db57fda3', x'61b9fd14364a48a7ae9e617ca7c39d5c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'70de5196997742d78658bda8db57fda3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'70de5196997742d78658bda8db57fda3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'70de5196997742d78658bda8db57fda3', x'ae9ab7f84226468b946d3f131dd093e1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'70de5196997742d78658bda8db57fda3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'70de5196997742d78658bda8db57fda3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'70de5196997742d78658bda8db57fda3', x'fb5a55ae97a944f5834fa7bf2c3b348f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'61b9fd14364a48a7ae9e617ca7c39d5c' AND `account_users`.`account_id` = x'7142752e04ed445396143990ed7b2842' LIMIT 1 Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 1.6ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:27', 'teste@teste.com', '$2a$04$D/Ci.Bj1TLxAHKS6Ax2E8.5CaLA7SCVW53aHMHDp.PLjgJr/JFlNy', NULL, x'a7e7f059810b46b082d2957657e2882f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a7e7f059810b46b082d2957657e2882f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:27', 'User', x'4612f4c263c94cb5b8b3387c1ff2083e', '714fffa969a0d851d0e5ed8f8a86c142', x'a7e7f059810b46b082d2957657e2882f', 'User', '2013-01-02 11:06:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a7e7f059810b46b082d2957657e2882f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'f4a9058506994e858a6ce2ebe1f87be6', NULL, NULL, NULL, '2013-01-02 11:06:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'accountf4a90585-0699-4e85-8a6c-e2ebe1f87be6' WHERE `accounts`.`id` = x'f4a9058506994e858a6ce2ebe1f87be6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f4a9058506994e858a6ce2ebe1f87be6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f4a9058506994e858a6ce2ebe1f87be6', x'bb98370ca8994aa3bbfb1648669cb65b', x'a7e7f059810b46b082d2957657e2882f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bb98370ca8994aa3bbfb1648669cb65b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb98370ca8994aa3bbfb1648669cb65b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb98370ca8994aa3bbfb1648669cb65b', x'd0b5ad00e8794846b8d644c2bcc3d4ff', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bb98370ca8994aa3bbfb1648669cb65b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bb98370ca8994aa3bbfb1648669cb65b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bb98370ca8994aa3bbfb1648669cb65b', x'8585bc74a89d4308af6a4bdfcb4ee589', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:27 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b333e40_107080435d48686da@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a7e7f059810b46b082d2957657e2882f' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a7e7f059810b46b082d2957657e2882f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a7e7f059810b46b082d2957657e2882f' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a7e7f059810b46b082d2957657e2882f' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a7e7f059810b46b082d2957657e2882f'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a7e7f059810b46b082d2957657e2882f' AND `account_users`.`account_id` = x'f4a9058506994e858a6ce2ebe1f87be6' SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:27', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: bb98370c-a899-4aa3-bbfb-1648669cb65b\n', NULL, NULL, NULL, 0, 'account_user_bb98370c-a899-4aa3-bbfb-1648669cb65b_destroy', '2013-01-02 11:06:27', '2013-01-02 11:06:27')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'8013769fe9124a8690f44f644426abfc', 'jabanilson', NULL, 1, '2013-01-02 11:06:27')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'account8013769f-e912-4a86-90f4-4f644426abfc' WHERE `accounts`.`id` = x'8013769fe9124a8690f44f644426abfc'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a7e7f059810b46b082d2957657e2882f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8013769fe9124a8690f44f644426abfc', x'7495a2a6c1884f518091e1fd9cfc51d3', x'a7e7f059810b46b082d2957657e2882f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7495a2a6c1884f518091e1fd9cfc51d3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7495a2a6c1884f518091e1fd9cfc51d3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7495a2a6c1884f518091e1fd9cfc51d3', x'f49a8706cb2e4c5e98beaab5c567b9cf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7495a2a6c1884f518091e1fd9cfc51d3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7495a2a6c1884f518091e1fd9cfc51d3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7495a2a6c1884f518091e1fd9cfc51d3', x'd4dbc80edcf647fdaf592ac14d57b24c', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'aec2ef00a8a04802ac752dfc63cf5cd8', 'jabanilson', NULL, 1, '2013-01-02 11:06:27')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'accountaec2ef00-a8a0-4802-ac75-2dfc63cf5cd8' WHERE `accounts`.`id` = x'aec2ef00a8a04802ac752dfc63cf5cd8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a7e7f059810b46b082d2957657e2882f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aec2ef00a8a04802ac752dfc63cf5cd8', x'b9e1d5de4cf44f6ab0f8f8c5f3f0631c', x'a7e7f059810b46b082d2957657e2882f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b9e1d5de4cf44f6ab0f8f8c5f3f0631c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9e1d5de4cf44f6ab0f8f8c5f3f0631c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9e1d5de4cf44f6ab0f8f8c5f3f0631c', x'a55b811da0064efda2a8e685a312e2f7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b9e1d5de4cf44f6ab0f8f8c5f3f0631c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b9e1d5de4cf44f6ab0f8f8c5f3f0631c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b9e1d5de4cf44f6ab0f8f8c5f3f0631c', x'48b3d6fd5e0242efa32822ddbed5cee8', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/accounts" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a7e7f059810b46b082d2957657e2882f' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a7e7f059810b46b082d2957657e2882f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a7e7f059810b46b082d2957657e2882f' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a7e7f059810b46b082d2957657e2882f' AND `account_users`.`account_id` = x'f4a9058506994e858a6ce2ebe1f87be6' LIMIT 1 Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 1.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:27', 'teste@teste.com', '$2a$04$f7v03A5VzWRL86ehI0daEuCdBgkDC2SSWRKJYasvaHtp10DouBS2a', NULL, x'46147add1344416c9ffe12b3df228eb3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'46147add1344416c9ffe12b3df228eb3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:27', 'User', x'2147a907fd934b7eb12868755dad5728', 'd533a62378df7e2db5578b23c05d1de4', x'46147add1344416c9ffe12b3df228eb3', 'User', '2013-01-02 11:06:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'46147add1344416c9ffe12b3df228eb3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'8869fa194acb4643b9569c11c76e134e', NULL, NULL, NULL, '2013-01-02 11:06:27')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'account8869fa19-4acb-4643-b956-9c11c76e134e' WHERE `accounts`.`id` = x'8869fa194acb4643b9569c11c76e134e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8869fa194acb4643b9569c11c76e134e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8869fa194acb4643b9569c11c76e134e', x'e087ddb25e0246beb280787c88be196e', x'46147add1344416c9ffe12b3df228eb3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e087ddb25e0246beb280787c88be196e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e087ddb25e0246beb280787c88be196e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e087ddb25e0246beb280787c88be196e', x'a189e01cff0345ce95969c6151fdc2cc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e087ddb25e0246beb280787c88be196e') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e087ddb25e0246beb280787c88be196e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e087ddb25e0246beb280787c88be196e', x'8d2289e5ca7f4d098afe0323c9acef72', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:27 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b372c17_107080435d4868760@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'46147add1344416c9ffe12b3df228eb3' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/8869fa19-4acb-4643-b956-9c11c76e134e" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"8869fa19-4acb-4643-b956-9c11c76e134e"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'46147add1344416c9ffe12b3df228eb3' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' AND `accounts`.`id` = x'8869fa194acb4643b9569c11c76e134e' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8869fa194acb4643b9569c11c76e134e' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8869fa194acb4643b9569c11c76e134e' AND `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e087ddb25e0246beb280787c88be196e' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8869fa194acb4643b9569c11c76e134e' AND `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e087ddb25e0246beb280787c88be196e' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8869fa194acb4643b9569c11c76e134e' AND `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e087ddb25e0246beb280787c88be196e' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8869fa194acb4643b9569c11c76e134e' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8869fa194acb4643b9569c11c76e134e' AND `account_users`.`user_id` = x'46147add1344416c9ffe12b3df228eb3' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e087ddb25e0246beb280787c88be196e' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8869fa19-4acb-4643-b956-9c11c76e134e_destroy' LIMIT 1 Completed 200 OK in 34ms (Views: 26.3ms | ActiveRecord: 3.1ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:27', 'teste@teste.com', '$2a$04$5kGeD4FTxXfrgHvGzXhU2.rhQGBebKv4FBkw5sUl1UXsUvM1TTKzS', NULL, x'3e4607eccb0c4ca2916f481151669930', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3e4607eccb0c4ca2916f481151669930' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:27', 'User', x'88afb6643d154d2288c6e5bf9b538c42', 'ba1ce15b449e6cdbc359901249a3dbec', x'3e4607eccb0c4ca2916f481151669930', 'User', '2013-01-02 11:06:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3e4607eccb0c4ca2916f481151669930' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'f099b32189814aafb3abc4e6c0576891', NULL, NULL, NULL, '2013-01-02 11:06:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'accountf099b321-8981-4aaf-b3ab-c4e6c0576891' WHERE `accounts`.`id` = x'f099b32189814aafb3abc4e6c0576891' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f099b32189814aafb3abc4e6c0576891' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f099b32189814aafb3abc4e6c0576891', x'e84d967c385249c7872e79d4f42f2f91', x'3e4607eccb0c4ca2916f481151669930') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e84d967c385249c7872e79d4f42f2f91') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e84d967c385249c7872e79d4f42f2f91' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e84d967c385249c7872e79d4f42f2f91', x'e2a8083eb5a342ebb50c52291c2b35d5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e84d967c385249c7872e79d4f42f2f91') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e84d967c385249c7872e79d4f42f2f91' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e84d967c385249c7872e79d4f42f2f91', x'081070dc2d604f77b29477ab2c775bfd', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:27 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b3adfa5_107080435d48688c4@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3e4607eccb0c4ca2916f481151669930' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e84d967c385249c7872e79d4f42f2f91'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'081070dc2d604f77b29477ab2c775bfd' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e84d967c385249c7872e79d4f42f2f91' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ð™³!‰J¯³«ÄæÀWh‘' AND name = 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e84d967c385249c7872e79d4f42f2f91') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e84d967c385249c7872e79d4f42f2f91' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e84d967c385249c7872e79d4f42f2f91', x'85ab61e46e874cbab8e0a93f8d4456bf', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/f099b321-8981-4aaf-b3ab-c4e6c0576891" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"f099b321-8981-4aaf-b3ab-c4e6c0576891"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3e4607eccb0c4ca2916f481151669930' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' AND `accounts`.`id` = x'f099b32189814aafb3abc4e6c0576891' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'f099b32189814aafb3abc4e6c0576891' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f099b32189814aafb3abc4e6c0576891' AND `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e84d967c385249c7872e79d4f42f2f91' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f099b32189814aafb3abc4e6c0576891' AND `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e84d967c385249c7872e79d4f42f2f91' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f099b32189814aafb3abc4e6c0576891' AND `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e84d967c385249c7872e79d4f42f2f91' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f099b32189814aafb3abc4e6c0576891' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f099b32189814aafb3abc4e6c0576891' AND `account_users`.`user_id` = x'3e4607eccb0c4ca2916f481151669930' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e84d967c385249c7872e79d4f42f2f91' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f099b321-8981-4aaf-b3ab-c4e6c0576891_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 17.6ms | ActiveRecord: 2.8ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:27', 'teste@teste.com', '$2a$04$LXNzUSq0sng92P4IMowVFuCfaIhAj/631AQZAfeKuH1mdlTiQk06y', NULL, x'8934922561794499a847475833998e6f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:27') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8934922561794499a847475833998e6f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:27', 'User', x'6927b6af6acf4b178dbd3b055d0758c5', 'c7a7931cac0be0e920654901ca9e23b9', x'8934922561794499a847475833998e6f', 'User', '2013-01-02 11:06:27') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8934922561794499a847475833998e6f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:27', x'c00c797c60684f298644f1636a0d19a5', NULL, NULL, NULL, '2013-01-02 11:06:27')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:27', `updated_at` = '2013-01-02 11:06:27', `subdomain` = 'accountc00c797c-6068-4f29-8644-f1636a0d19a5' WHERE `accounts`.`id` = x'c00c797c60684f298644f1636a0d19a5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c00c797c60684f298644f1636a0d19a5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c00c797c60684f298644f1636a0d19a5', x'f29a9ca0e50448eabbcf44c9be11ddfb', x'8934922561794499a847475833998e6f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f29a9ca0e50448eabbcf44c9be11ddfb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f29a9ca0e50448eabbcf44c9be11ddfb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f29a9ca0e50448eabbcf44c9be11ddfb', x'e4e9b5b99d4c4f648cbf74a772fc3b46', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f29a9ca0e50448eabbcf44c9be11ddfb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f29a9ca0e50448eabbcf44c9be11ddfb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f29a9ca0e50448eabbcf44c9be11ddfb', x'b2770ab624464f2389bfa063eb1f7b1e', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:27 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b3cd786_107080435d48689bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8934922561794499a847475833998e6f' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8934922561794499a847475833998e6f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8934922561794499a847475833998e6f' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8934922561794499a847475833998e6f' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8934922561794499a847475833998e6f' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f29a9ca0e50448eabbcf44c9be11ddfb'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'b2770ab624464f2389bfa063eb1f7b1e' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f29a9ca0e50448eabbcf44c9be11ddfb' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f29a9ca0e50448eabbcf44c9be11ddfb') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f29a9ca0e50448eabbcf44c9be11ddfb' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/c00c797c-6068-4f29-8644-f1636a0d19a5" for 127.0.0.1 at 2013-01-02 09:06:27 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"c00c797c-6068-4f29-8644-f1636a0d19a5"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8934922561794499a847475833998e6f' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8934922561794499a847475833998e6f' AND `accounts`.`id` = x'c00c797c60684f298644f1636a0d19a5' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'c00c797c60684f298644f1636a0d19a5' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c00c797c60684f298644f1636a0d19a5' AND `account_users`.`user_id` = x'8934922561794499a847475833998e6f' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f29a9ca0e50448eabbcf44c9be11ddfb' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c00c797c60684f298644f1636a0d19a5' AND `account_users`.`user_id` = x'8934922561794499a847475833998e6f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f29a9ca0e50448eabbcf44c9be11ddfb' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c00c797c60684f298644f1636a0d19a5' AND `account_users`.`user_id` = x'8934922561794499a847475833998e6f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f29a9ca0e50448eabbcf44c9be11ddfb' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c00c797c60684f298644f1636a0d19a5' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c00c797c60684f298644f1636a0d19a5' AND `account_users`.`user_id` = x'8934922561794499a847475833998e6f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f29a9ca0e50448eabbcf44c9be11ddfb' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c00c797c-6068-4f29-8644-f1636a0d19a5_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 17.5ms | ActiveRecord: 2.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:27', 'teste@teste.com', '$2a$04$YAfJs6peBPSmdWg/iTOMz.Ng6NaxWfH1fTAyqgYoX6PVGzFfC57bW', NULL, x'1d77f471952e4ed7b966d57d86be93ad', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:27') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1d77f471952e4ed7b966d57d86be93ad' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:28', 'User', x'a05b26f8d8714d098e1d431835b9c809', 'e705f3d867acd67583fa87747b54cdaf', x'1d77f471952e4ed7b966d57d86be93ad', 'User', '2013-01-02 11:06:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1d77f471952e4ed7b966d57d86be93ad' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:28', x'd08ab27c496348fbae20dd29f32268b1', NULL, NULL, NULL, '2013-01-02 11:06:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:28', `updated_at` = '2013-01-02 11:06:28', `subdomain` = 'accountd08ab27c-4963-48fb-ae20-dd29f32268b1' WHERE `accounts`.`id` = x'd08ab27c496348fbae20dd29f32268b1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd08ab27c496348fbae20dd29f32268b1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd08ab27c496348fbae20dd29f32268b1', x'cedf86f8aec646779c58586211e75c81', x'1d77f471952e4ed7b966d57d86be93ad') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cedf86f8aec646779c58586211e75c81') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cedf86f8aec646779c58586211e75c81' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cedf86f8aec646779c58586211e75c81', x'50fd78dd7c904a0ebfbd8cf5e6cd011a', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cedf86f8aec646779c58586211e75c81') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cedf86f8aec646779c58586211e75c81' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cedf86f8aec646779c58586211e75c81', x'2a29839e13304c119fae0f5272f62e48', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:28 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b4157a5_107080435d4869029@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1d77f471952e4ed7b966d57d86be93ad' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cedf86f8aec646779c58586211e75c81'  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2a29839e13304c119fae0f5272f62e48' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cedf86f8aec646779c58586211e75c81' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cedf86f8aec646779c58586211e75c81') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cedf86f8aec646779c58586211e75c81' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/d08ab27c-4963-48fb-ae20-dd29f32268b1" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"d08ab27c-4963-48fb-ae20-dd29f32268b1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1d77f471952e4ed7b966d57d86be93ad' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' AND `accounts`.`id` = x'd08ab27c496348fbae20dd29f32268b1' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd08ab27c496348fbae20dd29f32268b1' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd08ab27c496348fbae20dd29f32268b1' AND `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cedf86f8aec646779c58586211e75c81' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd08ab27c496348fbae20dd29f32268b1' AND `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cedf86f8aec646779c58586211e75c81' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd08ab27c496348fbae20dd29f32268b1' AND `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cedf86f8aec646779c58586211e75c81' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd08ab27c496348fbae20dd29f32268b1' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd08ab27c496348fbae20dd29f32268b1' AND `account_users`.`user_id` = x'1d77f471952e4ed7b966d57d86be93ad' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cedf86f8aec646779c58586211e75c81' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d08ab27c-4963-48fb-ae20-dd29f32268b1_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 17.5ms | ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:28', 'teste@teste.com', '$2a$04$lOBtkFP68jIe9DqeHJd1weaOe0YTRT1YNRRXLm/.V/NiowynAi8QC', NULL, x'c673715271bd40c0a4477a3cf835acd5', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c673715271bd40c0a4477a3cf835acd5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:28', 'User', x'738fae9850fd45e3947be0066f4cb924', '186518cf2e629793a8cb2ae6c248caad', x'c673715271bd40c0a4477a3cf835acd5', 'User', '2013-01-02 11:06:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c673715271bd40c0a4477a3cf835acd5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:28', x'6e020b26990d43dbae53f039ef809b5c', NULL, NULL, NULL, '2013-01-02 11:06:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:28', `updated_at` = '2013-01-02 11:06:28', `subdomain` = 'account6e020b26-990d-43db-ae53-f039ef809b5c' WHERE `accounts`.`id` = x'6e020b26990d43dbae53f039ef809b5c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6e020b26990d43dbae53f039ef809b5c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6e020b26990d43dbae53f039ef809b5c', x'a4e13e9ccf404ecc8d9e0b910e0eba4d', x'c673715271bd40c0a4477a3cf835acd5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a4e13e9ccf404ecc8d9e0b910e0eba4d', x'13dcd5f7bf9743b9a97f24b83a6736bf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a4e13e9ccf404ecc8d9e0b910e0eba4d', x'c4b5b71d10b5499bbb06d07f0d06ee3a', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:28 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b4352a2_107080435d486915f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c673715271bd40c0a4477a3cf835acd5' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c4b5b71d10b5499bbb06d07f0d06ee3a'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d' LIMIT 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/6e020b26-990d-43db-ae53-f039ef809b5c" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"6e020b26-990d-43db-ae53-f039ef809b5c"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c673715271bd40c0a4477a3cf835acd5' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' AND `accounts`.`id` = x'6e020b26990d43dbae53f039ef809b5c' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6e020b26990d43dbae53f039ef809b5c' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6e020b26990d43dbae53f039ef809b5c' AND `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6e020b26990d43dbae53f039ef809b5c' AND `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6e020b26990d43dbae53f039ef809b5c' AND `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6e020b26990d43dbae53f039ef809b5c' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6e020b26990d43dbae53f039ef809b5c' AND `account_users`.`user_id` = x'c673715271bd40c0a4477a3cf835acd5' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a4e13e9ccf404ecc8d9e0b910e0eba4d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.6ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6e020b26-990d-43db-ae53-f039ef809b5c_destroy' LIMIT 1 Completed 200 OK in 140ms (Views: 133.0ms | ActiveRecord: 2.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:28', 'teste@teste.com', '$2a$04$Czz7AUnwjMIilRa8TWI5PuwKnNSEfg0nBpoEekzNVuckyQ5zhnNa6', NULL, x'ebefcf6b96df4501be5232327da62f4c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ebefcf6b96df4501be5232327da62f4c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:28', 'User', x'f161516cd2b14dc4b29ddc5148bcfda7', 'b6faa75f8976a5591b140841e6929867', x'ebefcf6b96df4501be5232327da62f4c', 'User', '2013-01-02 11:06:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ebefcf6b96df4501be5232327da62f4c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:28', x'd30411ef7a3c4db9ac9243dc3db7cce7', NULL, NULL, NULL, '2013-01-02 11:06:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:28', `updated_at` = '2013-01-02 11:06:28', `subdomain` = 'accountd30411ef-7a3c-4db9-ac92-43dc3db7cce7' WHERE `accounts`.`id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd30411ef7a3c4db9ac9243dc3db7cce7', x'4a9041c7577d4f6d9ca31442af801303', x'ebefcf6b96df4501be5232327da62f4c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4a9041c7577d4f6d9ca31442af801303' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4a9041c7577d4f6d9ca31442af801303', x'e150f0ca5ade416abf54733b96e73549', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4a9041c7577d4f6d9ca31442af801303' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4a9041c7577d4f6d9ca31442af801303', x'793c1e77c522491b93a8801e67a020d4', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:28 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b47126f_107080435d486921d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'793c1e77c522491b93a8801e67a020d4' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4a9041c7577d4f6d9ca31442af801303' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Óïz"d30411ef-7a3c-4db9-ac92-43dc3db7cce7"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' AND `accounts`.`id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d30411ef-7a3c-4db9-ac92-43dc3db7cce7_destroy' LIMIT 1 Completed 200 OK in 24ms (Views: 17.1ms | ActiveRecord: 2.9ms) Started GET "/settings/account/d30411ef-7a3c-4db9-ac92-43dc3db7cce7" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"d30411ef-7a3c-4db9-ac92-43dc3db7cce7"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' AND `accounts`.`id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd30411ef7a3c4db9ac9243dc3db7cce7' AND `account_users`.`user_id` = x'ebefcf6b96df4501be5232327da62f4c' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4a9041c7577d4f6d9ca31442af801303' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_d30411ef-7a3c-4db9-ac92-43dc3db7cce7_destroy' LIMIT 1 Completed 200 OK in 24ms (Views: 17.3ms | ActiveRecord: 2.9ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:28', 'teste@teste.com', '$2a$04$NXjBLh/pTjSqEL2WwEVGz.u1XXrEKjxmAsvAdV4lHnFCruhn2EZ7q', NULL, x'75c71682b56b4ad8a24a3c63da7b09e9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:28') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:28', 'User', x'92e320de14bf445eaae8e08f4ced525d', '67883c6c3bae2ab36c1524193ab999a4', x'75c71682b56b4ad8a24a3c63da7b09e9', 'User', '2013-01-02 11:06:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:28', x'5e0f739c0e454eb082e5fa8f277b2ef3', NULL, NULL, NULL, '2013-01-02 11:06:28')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:28', `updated_at` = '2013-01-02 11:06:28', `subdomain` = 'account5e0f739c-0e45-4eb0-82e5-fa8f277b2ef3' WHERE `accounts`.`id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e0f739c0e454eb082e5fa8f277b2ef3', x'0660932793dc4133980829016f68129c', x'75c71682b56b4ad8a24a3c63da7b09e9') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0660932793dc4133980829016f68129c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0660932793dc4133980829016f68129c', x'5a5d9ff13fee4f6db05bc6463c00b704', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0660932793dc4133980829016f68129c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0660932793dc4133980829016f68129c', x'ba038c54b6a54b4d9bf9b46e91624d59', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:28 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b4973d8_107080435d48693c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0660932793dc4133980829016f68129c' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ba038c54b6a54b4d9bf9b46e91624d59'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0660932793dc4133980829016f68129c' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/5e0f739c-0e45-4eb0-82e5-fa8f277b2ef3" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"5e0f739c-0e45-4eb0-82e5-fa8f277b2ef3"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' AND `accounts`.`id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5e0f739c-0e45-4eb0-82e5-fa8f277b2ef3_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 17.5ms | ActiveRecord: 2.9ms) Started GET "/settings/account/5e0f739c-0e45-4eb0-82e5-fa8f277b2ef3" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"5e0f739c-0e45-4eb0-82e5-fa8f277b2ef3"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' AND `accounts`.`id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5e0f739c0e454eb082e5fa8f277b2ef3' AND `account_users`.`user_id` = x'75c71682b56b4ad8a24a3c63da7b09e9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0660932793dc4133980829016f68129c' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5e0f739c-0e45-4eb0-82e5-fa8f277b2ef3_destroy' LIMIT 1 Completed 200 OK in 24ms (Views: 17.0ms | ActiveRecord: 2.9ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:28', 'teste@teste.com', '$2a$04$EUAaOswdCFcSshOF5xb2JOU9yltiWtdjdueSC/e54A/DdA/ygyOGC', NULL, x'ff490ecbb26b4617a7775466a4fb934d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:28') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ff490ecbb26b4617a7775466a4fb934d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:28', 'User', x'2640eaaebd87451eb7b17fbb6cea8341', '1d3b16ad4a7267f62429a8c26899d246', x'ff490ecbb26b4617a7775466a4fb934d', 'User', '2013-01-02 11:06:28') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ff490ecbb26b4617a7775466a4fb934d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:28', x'093ad56505d04c958d9cdfb2e177ad07', NULL, NULL, NULL, '2013-01-02 11:06:28')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:28', `updated_at` = '2013-01-02 11:06:28', `subdomain` = 'account093ad565-05d0-4c95-8d9c-dfb2e177ad07' WHERE `accounts`.`id` = x'093ad56505d04c958d9cdfb2e177ad07' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'093ad56505d04c958d9cdfb2e177ad07' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'093ad56505d04c958d9cdfb2e177ad07', x'5a8b347dc94d49e1a1accd7e390af403', x'ff490ecbb26b4617a7775466a4fb934d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5a8b347dc94d49e1a1accd7e390af403' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5a8b347dc94d49e1a1accd7e390af403', x'113ad607f7a84502be21c3515a312ace', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5a8b347dc94d49e1a1accd7e390af403' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5a8b347dc94d49e1a1accd7e390af403', x'4b63225063174fd38425e354cbd1480f', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:28 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b4d9ba3_107080435d4869446@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5a8b347dc94d49e1a1accd7e390af403' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = ' :ÕeÐL•œß²áw­' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4b63225063174fd38425e354cbd1480f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5a8b347dc94d49e1a1accd7e390af403' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/093ad565-05d0-4c95-8d9c-dfb2e177ad07" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"093ad565-05d0-4c95-8d9c-dfb2e177ad07"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' AND `accounts`.`id` = x'093ad56505d04c958d9cdfb2e177ad07' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_093ad565-05d0-4c95-8d9c-dfb2e177ad07_destroy' LIMIT 1 Completed 200 OK in 24ms (Views: 17.1ms | ActiveRecord: 3.0ms) Started DELETE "/settings/account/093ad565-05d0-4c95-8d9c-dfb2e177ad07" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"093ad565-05d0-4c95-8d9c-dfb2e177ad07"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' AND `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' AND `accounts`.`id` = x'093ad56505d04c958d9cdfb2e177ad07' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:28', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 093ad565-05d0-4c95-8d9c-dfb2e177ad07\n', NULL, NULL, NULL, 0, 'account_093ad565-05d0-4c95-8d9c-dfb2e177ad07_destroy', '2013-01-02 11:06:28', '2013-01-02 11:06:28')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_093ad565-05d0-4c95-8d9c-dfb2e177ad07_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 3.1ms) Started GET "/settings/accounts" for 127.0.0.1 at 2013-01-02 09:06:28 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' AND `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' LIMIT 1 Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 1.7ms) Started GET "/settings/account/093AD56505D04C958D9CDFB2E177AD07" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"093AD56505D04C958D9CDFB2E177AD07"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' AND `accounts`.`id` = x'093ad56505d04c958d9cdfb2e177ad07' LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'093ad56505d04c958d9cdfb2e177ad07' AND `account_users`.`user_id` = x'ff490ecbb26b4617a7775466a4fb934d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5a8b347dc94d49e1a1accd7e390af403' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_093ad565-05d0-4c95-8d9c-dfb2e177ad07_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_093ad565-05d0-4c95-8d9c-dfb2e177ad07_destroy' LIMIT 1 Completed 200 OK in 142ms (Views: 18.5ms | ActiveRecord: 3.2ms) Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_093ad565-05d0-4c95-8d9c-dfb2e177ad07_destroy' LIMIT 1  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:29', 'teste@teste.com', '$2a$04$Po2bv4qkLw1vkeVL6/mDGOE0p5zEPbrLZLhVmuqm8dSa/0/OKIiEi', NULL, x'87a0e5f7d7dc4de3935947007782cdb0', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:29', 'User', x'605f24e1207d49d489bf4c57b34c7b6d', '6a955231f885183706f1718b227999ce', x'87a0e5f7d7dc4de3935947007782cdb0', 'User', '2013-01-02 11:06:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:29', x'4630bb6ff19c4b3b8d7b7ddd4e10458e', NULL, NULL, NULL, '2013-01-02 11:06:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:29', `updated_at` = '2013-01-02 11:06:29', `subdomain` = 'account4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e' WHERE `accounts`.`id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4630bb6ff19c4b3b8d7b7ddd4e10458e', x'26fcffed5bf94419b033de4705586911', x'87a0e5f7d7dc4de3935947007782cdb0') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'26fcffed5bf94419b033de4705586911' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'26fcffed5bf94419b033de4705586911', x'255510ef52454f6d83cf96b92d453382', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'26fcffed5bf94419b033de4705586911' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'26fcffed5bf94419b033de4705586911', x'51bf31a83fa24517834d7159948627ef', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:29 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b531d88_107080435d4869598@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' ORDER BY `account_users`.`id` DESC LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'26fcffed5bf94419b033de4705586911' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'F0»oñœK;{}ÝNEŽ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'51bf31a83fa24517834d7159948627ef'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'26fcffed5bf94419b033de4705586911' LIMIT 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AND `accounts`.`id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 17.4ms | ActiveRecord: 3.0ms) Started DELETE "/settings/account/4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::AccountController#destroy as HTML Parameters: {"id"=>"4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AND `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AND `accounts`.`id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:29', NULL, '--- !ruby/struct:DestroyAccountJob\nid: 4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e\n', NULL, NULL, NULL, 0, 'account_4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e_destroy', '2013-01-03 11:06:29', '2013-01-02 11:06:29')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 16ms (ActiveRecord: 2.9ms) Started GET "/settings/accounts" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AND `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' LIMIT 1 Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 1.5ms) Started GET "/settings/account/4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' AND `accounts`.`id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4630bb6ff19c4b3b8d7b7ddd4e10458e' AND `account_users`.`user_id` = x'87a0e5f7d7dc4de3935947007782cdb0' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'26fcffed5bf94419b033de4705586911' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4630bb6f-f19c-4b3b-8d7b-7ddd4e10458e_destroy' LIMIT 1 Completed 200 OK in 25ms (Views: 17.4ms | ActiveRecord: 3.0ms)  (1.0ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:29', 'teste@teste.com', '$2a$04$G/LeJG6EaWq.oOgXasDheO7KD7Sc.qIiLvvjxAPCW.vVknY0UbFnC', NULL, x'3a594831328d48e0b80e9881bf2ec68a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'3a594831328d48e0b80e9881bf2ec68a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:29', 'User', x'c3b518ffa3c249de867444b2af86932a', '0a8f78d52a8f016fcda2c8e0c31f608e', x'3a594831328d48e0b80e9881bf2ec68a', 'User', '2013-01-02 11:06:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'3a594831328d48e0b80e9881bf2ec68a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:29', x'976191c800e642c4920a7638099092bd', NULL, NULL, NULL, '2013-01-02 11:06:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:29', `updated_at` = '2013-01-02 11:06:29', `subdomain` = 'account976191c8-00e6-42c4-920a-7638099092bd' WHERE `accounts`.`id` = x'976191c800e642c4920a7638099092bd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'976191c800e642c4920a7638099092bd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'976191c800e642c4920a7638099092bd', x'2ce74e2d3fe242a6a05f8812dc74ee7b', x'3a594831328d48e0b80e9881bf2ec68a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2ce74e2d3fe242a6a05f8812dc74ee7b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ce74e2d3fe242a6a05f8812dc74ee7b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ce74e2d3fe242a6a05f8812dc74ee7b', x'5ebcb0c95fdb4a3cba15ea1cb43a7b78', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2ce74e2d3fe242a6a05f8812dc74ee7b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ce74e2d3fe242a6a05f8812dc74ee7b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ce74e2d3fe242a6a05f8812dc74ee7b', x'75de1c6cb77c4adc94cf17eadb38aeb5', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:29 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b57d8c1_107080435d486961b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3a594831328d48e0b80e9881bf2ec68a' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:29', 'notowner@account.test', '$2a$04$ZQk0vicVBr24U/UiQM4GMeoymZk2m3TSdpmFCWsLI03NSITCUTcbm', NULL, x'e8ccea8a7ab7480e897961f2a6c9ce4d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e8ccea8a7ab7480e897961f2a6c9ce4d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:29', 'User', x'93468f56aae14db6bdf6fdf735bdcde2', '82a0dbfa0d9ae513de27303086a8b228', x'e8ccea8a7ab7480e897961f2a6c9ce4d', 'User', '2013-01-02 11:06:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e8ccea8a7ab7480e897961f2a6c9ce4d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:29', x'8c0a488e158a41248d50b54a7a9c512b', NULL, NULL, NULL, '2013-01-02 11:06:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:29', `updated_at` = '2013-01-02 11:06:29', `subdomain` = 'account8c0a488e-158a-4124-8d50-b54a7a9c512b' WHERE `accounts`.`id` = x'8c0a488e158a41248d50b54a7a9c512b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8c0a488e158a41248d50b54a7a9c512b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8c0a488e158a41248d50b54a7a9c512b', x'5f6a7ff358104f49b8e757257534dc02', x'e8ccea8a7ab7480e897961f2a6c9ce4d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5f6a7ff358104f49b8e757257534dc02') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f6a7ff358104f49b8e757257534dc02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f6a7ff358104f49b8e757257534dc02', x'6bea793b204c4d84bb12d6295b26e47e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5f6a7ff358104f49b8e757257534dc02') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5f6a7ff358104f49b8e757257534dc02' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5f6a7ff358104f49b8e757257534dc02', x'a4278d44e4fe42c194654a2c209e71ed', 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:29 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414b592a86_107080435d486974b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:29', x'ebcf8a9591424008b479ecfc9e9b2819', 'jabanilson', NULL, 1, '2013-01-02 11:06:29')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:29', `updated_at` = '2013-01-02 11:06:29', `subdomain` = 'accountebcf8a95-9142-4008-b479-ecfc9e9b2819' WHERE `accounts`.`id` = x'ebcf8a9591424008b479ecfc9e9b2819'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ebcf8a9591424008b479ecfc9e9b2819', x'91591c4505b64780be39a039c9afb05e', x'3a594831328d48e0b80e9881bf2ec68a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91591c4505b64780be39a039c9afb05e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91591c4505b64780be39a039c9afb05e', x'a04d659f22c24b8ab22ad63ce5cce291', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91591c4505b64780be39a039c9afb05e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91591c4505b64780be39a039c9afb05e', x'c90c46d2bf664d81b26b76557e657aff', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e8ccea8a7ab7480e897961f2a6c9ce4d' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8c0a488e158a41248d50b54a7a9c512b' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'8c0a488e158a41248d50b54a7a9c512b' WHERE `account_users`.`id` = x'91591c4505b64780be39a039c9afb05e'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91591c4505b64780be39a039c9afb05e' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a04d659f22c24b8ab22ad63ce5cce291' SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c90c46d2bf664d81b26b76557e657aff'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'91591c4505b64780be39a039c9afb05e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'91591c4505b64780be39a039c9afb05e', x'e493d69cf77a4166a2872d06f934883c', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/8c0a488e-158a-4124-8d50-b54a7a9c512b" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"8c0a488e-158a-4124-8d50-b54a7a9c512b"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'3a594831328d48e0b80e9881bf2ec68a' LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' AND `accounts`.`id` = x'8c0a488e158a41248d50b54a7a9c512b' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'8c0a488e158a41248d50b54a7a9c512b' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8c0a488e158a41248d50b54a7a9c512b' AND `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8c0a488e158a41248d50b54a7a9c512b' AND `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8c0a488e158a41248d50b54a7a9c512b' AND `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8c0a488e158a41248d50b54a7a9c512b' AND `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8c0a488e158a41248d50b54a7a9c512b' AND `account_users`.`user_id` = x'3a594831328d48e0b80e9881bf2ec68a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'91591c4505b64780be39a039c9afb05e' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 14.6ms | ActiveRecord: 2.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:29', 'teste@teste.com', '$2a$04$yD1S95XkHY0EMq0oWSqrM.U.T789HbbBNnXszdbHR85GZzQ4cMqlC', NULL, x'a48f385978a54389a8dff7e7d01983ad', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a48f385978a54389a8dff7e7d01983ad' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:29', 'User', x'ea3e8d660f8a4aa49a8abafed1a770e4', '5f47d68f1f10bb2347464dd419a10d26', x'a48f385978a54389a8dff7e7d01983ad', 'User', '2013-01-02 11:06:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a48f385978a54389a8dff7e7d01983ad' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:29', x'8bbbb5b351e8423a881722a925fa7134', NULL, NULL, NULL, '2013-01-02 11:06:29')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:29', `updated_at` = '2013-01-02 11:06:29', `subdomain` = 'account8bbbb5b3-51e8-423a-8817-22a925fa7134' WHERE `accounts`.`id` = x'8bbbb5b351e8423a881722a925fa7134' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8bbbb5b351e8423a881722a925fa7134' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8bbbb5b351e8423a881722a925fa7134', x'dac909bd0fef41a1b61a463e8c4a710d', x'a48f385978a54389a8dff7e7d01983ad') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dac909bd0fef41a1b61a463e8c4a710d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dac909bd0fef41a1b61a463e8c4a710d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dac909bd0fef41a1b61a463e8c4a710d', x'42e25b482ae34a59b4379e606d8d50e3', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dac909bd0fef41a1b61a463e8c4a710d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dac909bd0fef41a1b61a463e8c4a710d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dac909bd0fef41a1b61a463e8c4a710d', x'c28201ace8d14dbe8c89b3e45a5f0042', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:29 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b5ac869_107080435d4869848@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a48f385978a54389a8dff7e7d01983ad' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:29', 'notowner@account.test', '$2a$04$EqOPSb7.z9BxSuSuSrIE4O9Dsdo3ogjIUm9IZZ.T2Hp89tZPT.fjO', NULL, x'a93d1e4d52374c26b56af96937190cd4', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:29') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a93d1e4d52374c26b56af96937190cd4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:29', 'User', x'ee832707269f4b2fa4a460773636f0de', 'c75768acc50a209c6d91d2831b411a81', x'a93d1e4d52374c26b56af96937190cd4', 'User', '2013-01-02 11:06:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a93d1e4d52374c26b56af96937190cd4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:29', x'ab01d00722df4f75ae2d62a675af2089', NULL, NULL, NULL, '2013-01-02 11:06:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:29', `updated_at` = '2013-01-02 11:06:29', `subdomain` = 'accountab01d007-22df-4f75-ae2d-62a675af2089' WHERE `accounts`.`id` = x'ab01d00722df4f75ae2d62a675af2089' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ab01d00722df4f75ae2d62a675af2089' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ab01d00722df4f75ae2d62a675af2089', x'5cc79d83367b451a95f657a423323deb', x'a93d1e4d52374c26b56af96937190cd4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5cc79d83367b451a95f657a423323deb') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5cc79d83367b451a95f657a423323deb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5cc79d83367b451a95f657a423323deb', x'61113efd47bb4dfa87f5c617a6183ff1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5cc79d83367b451a95f657a423323deb') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5cc79d83367b451a95f657a423323deb' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5cc79d83367b451a95f657a423323deb', x'03b2bcfb495649cf8ae7315de3eb44f8', 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:29 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414b5dda73_107080435d4869970@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:29', x'95835f5932034dd39e7502805d82f875', 'jabanilson', NULL, 1, '2013-01-02 11:06:29')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:29', `updated_at` = '2013-01-02 11:06:29', `subdomain` = 'account95835f59-3203-4dd3-9e75-02805d82f875' WHERE `accounts`.`id` = x'95835f5932034dd39e7502805d82f875'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'95835f5932034dd39e7502805d82f875', x'e29d9d400f4d47288292f971e1e018cd', x'a48f385978a54389a8dff7e7d01983ad') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e29d9d400f4d47288292f971e1e018cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e29d9d400f4d47288292f971e1e018cd', x'dacacd907be94983a61c91854ad6addb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e29d9d400f4d47288292f971e1e018cd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e29d9d400f4d47288292f971e1e018cd', x'7cf0bf504e40405a83c66a1a9d3b53d2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a93d1e4d52374c26b56af96937190cd4' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ab01d00722df4f75ae2d62a675af2089' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'ab01d00722df4f75ae2d62a675af2089' WHERE `account_users`.`id` = x'e29d9d400f4d47288292f971e1e018cd'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7cf0bf504e40405a83c66a1a9d3b53d2' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e29d9d400f4d47288292f971e1e018cd' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'dacacd907be94983a61c91854ad6addb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e29d9d400f4d47288292f971e1e018cd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e29d9d400f4d47288292f971e1e018cd', x'64401204a9464cee8c9efabcbafa8b61', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/ab01d007-22df-4f75-ae2d-62a675af2089" for 127.0.0.1 at 2013-01-02 09:06:29 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"ab01d007-22df-4f75-ae2d-62a675af2089"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a48f385978a54389a8dff7e7d01983ad' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' AND `accounts`.`id` = x'ab01d00722df4f75ae2d62a675af2089' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'ab01d00722df4f75ae2d62a675af2089' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ab01d00722df4f75ae2d62a675af2089' AND `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ab01d00722df4f75ae2d62a675af2089' AND `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ab01d00722df4f75ae2d62a675af2089' AND `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ab01d00722df4f75ae2d62a675af2089' AND `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'ab01d00722df4f75ae2d62a675af2089' AND `account_users`.`user_id` = x'a48f385978a54389a8dff7e7d01983ad' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e29d9d400f4d47288292f971e1e018cd' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 21ms (Views: 14.6ms | ActiveRecord: 2.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:29', 'teste@teste.com', '$2a$04$S782DwquEfK7I5JnOuEXhuLHw/2g2mghdl5/p0AI2hBl9kGucldMa', NULL, x'86876e7afb2b4b04920942f2d0084338', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:29') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'86876e7afb2b4b04920942f2d0084338' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:29', 'User', x'936d4ee8c5fb42d28b7ef35e13423cae', '020fe09f79eb657edf6c266315061828', x'86876e7afb2b4b04920942f2d0084338', 'User', '2013-01-02 11:06:29') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'86876e7afb2b4b04920942f2d0084338' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:29', x'27790b7e4af544d8a4d10269de3c2420', NULL, NULL, NULL, '2013-01-02 11:06:29')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:29', `updated_at` = '2013-01-02 11:06:29', `subdomain` = 'account27790b7e-4af5-44d8-a4d1-0269de3c2420' WHERE `accounts`.`id` = x'27790b7e4af544d8a4d10269de3c2420' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'27790b7e4af544d8a4d10269de3c2420' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'27790b7e4af544d8a4d10269de3c2420', x'808d79ed021c4329ad4c16dfeb7a84d2', x'86876e7afb2b4b04920942f2d0084338') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'808d79ed021c4329ad4c16dfeb7a84d2') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'808d79ed021c4329ad4c16dfeb7a84d2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'808d79ed021c4329ad4c16dfeb7a84d2', x'a3b5049ca9fb43b0bb187b9090ae15fc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'808d79ed021c4329ad4c16dfeb7a84d2') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'808d79ed021c4329ad4c16dfeb7a84d2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'808d79ed021c4329ad4c16dfeb7a84d2', x'66ee9c03788f418c831fc1769c4706ba', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:30 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b63acf_107080435d487005e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'86876e7afb2b4b04920942f2d0084338' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:30', 'notowner@account.test', '$2a$04$y5/yAbrNWXfiy.x5zuiOm.Nzzl4r1ZdOEAJfytHDEZz95FDZ.ZpFa', NULL, x'2c6306f0a9054dbba2e89c219fed7540', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2c6306f0a9054dbba2e89c219fed7540' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:30', 'User', x'bdbda707e44f4d66a82bd9d34035aa83', '3334646291cf28e7afe2cb1bc09e21a6', x'2c6306f0a9054dbba2e89c219fed7540', 'User', '2013-01-02 11:06:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2c6306f0a9054dbba2e89c219fed7540' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:30', x'e0ed4d7ee2a940d28d132241f60a9d0a', NULL, NULL, NULL, '2013-01-02 11:06:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:30', `updated_at` = '2013-01-02 11:06:30', `subdomain` = 'accounte0ed4d7e-e2a9-40d2-8d13-2241f60a9d0a' WHERE `accounts`.`id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e0ed4d7ee2a940d28d132241f60a9d0a', x'd91e5755c69a4a55804f3ca85eed720e', x'2c6306f0a9054dbba2e89c219fed7540') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd91e5755c69a4a55804f3ca85eed720e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd91e5755c69a4a55804f3ca85eed720e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd91e5755c69a4a55804f3ca85eed720e', x'c947f972a2874d069de231a437d3289c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd91e5755c69a4a55804f3ca85eed720e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd91e5755c69a4a55804f3ca85eed720e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd91e5755c69a4a55804f3ca85eed720e', x'9201c29d61bb4474ad9573f2a5f9ddb2', 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:30 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414b619592_107080435d48701e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:30', x'0a32dccdc90e42cca4a16cd533a081fb', 'jabanilson', NULL, 1, '2013-01-02 11:06:30')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:30', `updated_at` = '2013-01-02 11:06:30', `subdomain` = 'account0a32dccd-c90e-42cc-a4a1-6cd533a081fb' WHERE `accounts`.`id` = x'0a32dccdc90e42cca4a16cd533a081fb'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0a32dccdc90e42cca4a16cd533a081fb', x'cdea4cf06b3d49f9bbce69803de37db4', x'86876e7afb2b4b04920942f2d0084338') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cdea4cf06b3d49f9bbce69803de37db4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cdea4cf06b3d49f9bbce69803de37db4', x'4f96ae2e2f53421b81f614f90f726a61', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cdea4cf06b3d49f9bbce69803de37db4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cdea4cf06b3d49f9bbce69803de37db4', x'c2082703f38a44bdaf689766345a389c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2c6306f0a9054dbba2e89c219fed7540' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' WHERE `account_users`.`id` = x'cdea4cf06b3d49f9bbce69803de37db4'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cdea4cf06b3d49f9bbce69803de37db4' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4f96ae2e2f53421b81f614f90f726a61' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c2082703f38a44bdaf689766345a389c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cdea4cf06b3d49f9bbce69803de37db4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cdea4cf06b3d49f9bbce69803de37db4', x'7159f6d87f344816af8870807beb0827', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/e0ed4d7e-e2a9-40d2-8d13-2241f60a9d0a" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"e0ed4d7e-e2a9-40d2-8d13-2241f60a9d0a"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'86876e7afb2b4b04920942f2d0084338' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' AND `accounts`.`id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' AND `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' AND `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' AND `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' LIMIT 1 AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' AND `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'e0ed4d7ee2a940d28d132241f60a9d0a' AND `account_users`.`user_id` = x'86876e7afb2b4b04920942f2d0084338' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cdea4cf06b3d49f9bbce69803de37db4' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 14.8ms | ActiveRecord: 2.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:30', 'teste@teste.com', '$2a$04$GJAh6PrsDAeLn1UezWxNT.17pb.c.p2N2iswUDRbtafZlMOH1xtui', NULL, x'865f3aa2452f42ecb951e685a96bd768', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'865f3aa2452f42ecb951e685a96bd768' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:30', 'User', x'8951496ac3244cedb7cab6d169d3ae8e', 'df43fb018c0c6c571fed9d7b023a5f63', x'865f3aa2452f42ecb951e685a96bd768', 'User', '2013-01-02 11:06:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'865f3aa2452f42ecb951e685a96bd768' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:30', x'7f5d485d4a774fd9874a9fed3b3ed54e', NULL, NULL, NULL, '2013-01-02 11:06:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:30', `updated_at` = '2013-01-02 11:06:30', `subdomain` = 'account7f5d485d-4a77-4fd9-874a-9fed3b3ed54e' WHERE `accounts`.`id` = x'7f5d485d4a774fd9874a9fed3b3ed54e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7f5d485d4a774fd9874a9fed3b3ed54e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7f5d485d4a774fd9874a9fed3b3ed54e', x'054b3192d3314d2dbc3578b55c56dc32', x'865f3aa2452f42ecb951e685a96bd768') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'054b3192d3314d2dbc3578b55c56dc32') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'054b3192d3314d2dbc3578b55c56dc32' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'054b3192d3314d2dbc3578b55c56dc32', x'2034fac967604a1eacf82d266151fe21', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'054b3192d3314d2dbc3578b55c56dc32') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'054b3192d3314d2dbc3578b55c56dc32' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'054b3192d3314d2dbc3578b55c56dc32', x'677640577567460c80689c819329b365', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:30 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b64fb12_107080435d48702be@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'865f3aa2452f42ecb951e685a96bd768' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' ORDER BY `account_users`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notowner@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:30', 'notowner@account.test', '$2a$04$ztHR4BtGA8GkONwzw5mU5e/EVIGTqAu1WR9cEGObexuSnA/QExR2i', NULL, x'80396cb334fa447cbb7e9f0a223a4ad8', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'80396cb334fa447cbb7e9f0a223a4ad8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:30', 'User', x'3e78a634b3e948caa1311a3b44531e48', '169b73afb61ec9bb5442cd81919dfe1c', x'80396cb334fa447cbb7e9f0a223a4ad8', 'User', '2013-01-02 11:06:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'80396cb334fa447cbb7e9f0a223a4ad8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:30', x'2e9b648b152a42f0802bc89e40edd961', NULL, NULL, NULL, '2013-01-02 11:06:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:30', `updated_at` = '2013-01-02 11:06:30', `subdomain` = 'account2e9b648b-152a-42f0-802b-c89e40edd961' WHERE `accounts`.`id` = x'2e9b648b152a42f0802bc89e40edd961' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2e9b648b152a42f0802bc89e40edd961' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2e9b648b152a42f0802bc89e40edd961', x'6ce666a11f7c46d1875c9e7cc7e49845', x'80396cb334fa447cbb7e9f0a223a4ad8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6ce666a11f7c46d1875c9e7cc7e49845') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ce666a11f7c46d1875c9e7cc7e49845' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ce666a11f7c46d1875c9e7cc7e49845', x'7ceabc3b9b044cf5adade13e4462c169', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6ce666a11f7c46d1875c9e7cc7e49845') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6ce666a11f7c46d1875c9e7cc7e49845' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6ce666a11f7c46d1875c9e7cc7e49845', x'0cf590c48eda496ca92a4411e592dbad', 'admin') Sent mail to notowner@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:30 -0200 From: iugu Reply-To: iugu To: notowner@account.test Message-ID: <50e414b664a08_107080435d48703e0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:30', x'28d2fc2395eb4efeafc464422d988ab3', 'jabanilson', NULL, 1, '2013-01-02 11:06:30')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:30', `updated_at` = '2013-01-02 11:06:30', `subdomain` = 'account28d2fc23-95eb-4efe-afc4-64422d988ab3' WHERE `accounts`.`id` = x'28d2fc2395eb4efeafc464422d988ab3'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'28d2fc2395eb4efeafc464422d988ab3', x'4b4401e410b749a2bf8011dda396ea12', x'865f3aa2452f42ecb951e685a96bd768') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b4401e410b749a2bf8011dda396ea12' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b4401e410b749a2bf8011dda396ea12', x'8f5b0e85f4c940d9b474a6287d50e412', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b4401e410b749a2bf8011dda396ea12' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b4401e410b749a2bf8011dda396ea12', x'62fb02c8ce26477caa7d49a8175846d2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'80396cb334fa447cbb7e9f0a223a4ad8' ORDER BY `accounts`.`id` DESC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2e9b648b152a42f0802bc89e40edd961' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'2e9b648b152a42f0802bc89e40edd961' WHERE `account_users`.`id` = x'4b4401e410b749a2bf8011dda396ea12'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'62fb02c8ce26477caa7d49a8175846d2' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b4401e410b749a2bf8011dda396ea12' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '.›d‹*Bð€+Èž@íÙa' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8f5b0e85f4c940d9b474a6287d50e412'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4b4401e410b749a2bf8011dda396ea12' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4b4401e410b749a2bf8011dda396ea12', x'bca5da898a364e11b5dff7337b142da0', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/2e9b648b-152a-42f0-802b-c89e40edd961" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"2e9b648b-152a-42f0-802b-c89e40edd961"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'865f3aa2452f42ecb951e685a96bd768' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' AND `accounts`.`id` = x'2e9b648b152a42f0802bc89e40edd961' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'2e9b648b152a42f0802bc89e40edd961' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2e9b648b152a42f0802bc89e40edd961' AND `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2e9b648b152a42f0802bc89e40edd961' AND `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2e9b648b152a42f0802bc89e40edd961' AND `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2e9b648b152a42f0802bc89e40edd961' AND `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2e9b648b152a42f0802bc89e40edd961' AND `account_users`.`user_id` = x'865f3aa2452f42ecb951e685a96bd768' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4b4401e410b749a2bf8011dda396ea12' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 14.9ms | ActiveRecord: 2.5ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:30', 'teste@teste.com', '$2a$04$RyZMMpiYJxYiEmbrnakKcOLFHVvfoRT0GMKDk.xCIZC6ef.9h37yG', NULL, x'51e996072a754fcc81e3afb6866ae2b9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'51e996072a754fcc81e3afb6866ae2b9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:30', 'User', x'1c913353c83f4b3f9bfb996d34e8e825', '570c51d6aa8c3246dd4eb38e7b92ceb0', x'51e996072a754fcc81e3afb6866ae2b9', 'User', '2013-01-02 11:06:30') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'51e996072a754fcc81e3afb6866ae2b9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:30', x'4953f349351048d1b8c0446fae6dcfe1', NULL, NULL, NULL, '2013-01-02 11:06:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:30', `updated_at` = '2013-01-02 11:06:30', `subdomain` = 'account4953f349-3510-48d1-b8c0-446fae6dcfe1' WHERE `accounts`.`id` = x'4953f349351048d1b8c0446fae6dcfe1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4953f349351048d1b8c0446fae6dcfe1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4953f349351048d1b8c0446fae6dcfe1', x'0b6994e3e03440f29d1eca94f76e38c3', x'51e996072a754fcc81e3afb6866ae2b9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0b6994e3e03440f29d1eca94f76e38c3') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0b6994e3e03440f29d1eca94f76e38c3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0b6994e3e03440f29d1eca94f76e38c3', x'3cd9a3c1a8314fabadb4f96dbb516c98', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0b6994e3e03440f29d1eca94f76e38c3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0b6994e3e03440f29d1eca94f76e38c3' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0b6994e3e03440f29d1eca94f76e38c3', x'4424926a5dce4f95b4858077b5164a64', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:30 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b69b55b_107080435d487049a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51e996072a754fcc81e3afb6866ae2b9' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51e996072a754fcc81e3afb6866ae2b9' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51e996072a754fcc81e3afb6866ae2b9' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'51e996072a754fcc81e3afb6866ae2b9' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'51e996072a754fcc81e3afb6866ae2b9' ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/4953f349-3510-48d1-b8c0-446fae6dcfe1" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"4953f349-3510-48d1-b8c0-446fae6dcfe1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'51e996072a754fcc81e3afb6866ae2b9' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'51e996072a754fcc81e3afb6866ae2b9' AND `accounts`.`id` = x'4953f349351048d1b8c0446fae6dcfe1' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'4953f349351048d1b8c0446fae6dcfe1' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4953f349351048d1b8c0446fae6dcfe1' AND `account_users`.`user_id` = x'51e996072a754fcc81e3afb6866ae2b9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0b6994e3e03440f29d1eca94f76e38c3' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4953f349351048d1b8c0446fae6dcfe1' AND `account_users`.`user_id` = x'51e996072a754fcc81e3afb6866ae2b9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0b6994e3e03440f29d1eca94f76e38c3' AND `account_roles`.`name` = 'owner' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4953f349351048d1b8c0446fae6dcfe1' AND `api_tokens`.`tokenable_type` = 'Account' CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4953f349351048d1b8c0446fae6dcfe1' AND `account_users`.`user_id` = x'51e996072a754fcc81e3afb6866ae2b9' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0b6994e3e03440f29d1eca94f76e38c3' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4953f349-3510-48d1-b8c0-446fae6dcfe1_destroy' LIMIT 1 Completed 200 OK in 22ms (Views: 15.4ms | ActiveRecord: 2.8ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:30', 'teste@teste.com', '$2a$04$cS1dxft/6a3bYH1UIyDVROn21a9aAHSjPhPbyb/D5CEKIPjOrlyfq', NULL, x'53a07d4589684bcfa841fdb1404984a4', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:30') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'53a07d4589684bcfa841fdb1404984a4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:30', 'User', x'23caa36e66c347aba5981d9389a6e5bc', '324749d554356661f7ddad839e40dc95', x'53a07d4589684bcfa841fdb1404984a4', 'User', '2013-01-02 11:06:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'53a07d4589684bcfa841fdb1404984a4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:30', x'6b2601cd6eda4ee7b8fb32305a9f8e9b', NULL, NULL, NULL, '2013-01-02 11:06:30')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:30', `updated_at` = '2013-01-02 11:06:30', `subdomain` = 'account6b2601cd-6eda-4ee7-b8fb-32305a9f8e9b' WHERE `accounts`.`id` = x'6b2601cd6eda4ee7b8fb32305a9f8e9b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6b2601cd6eda4ee7b8fb32305a9f8e9b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6b2601cd6eda4ee7b8fb32305a9f8e9b', x'9d1490ccc6f140a39f8c7a679dc6430c', x'53a07d4589684bcfa841fdb1404984a4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9d1490ccc6f140a39f8c7a679dc6430c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d1490ccc6f140a39f8c7a679dc6430c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d1490ccc6f140a39f8c7a679dc6430c', x'a7dd5d8807bd437da790a7ac5c986b1f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9d1490ccc6f140a39f8c7a679dc6430c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d1490ccc6f140a39f8c7a679dc6430c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d1490ccc6f140a39f8c7a679dc6430c', x'35f25af601f146789759e5b837f5926b', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:30 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b6b7dfe_107080435d4870540@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'53a07d4589684bcfa841fdb1404984a4' ORDER BY `accounts`.`id` DESC LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'53a07d4589684bcfa841fdb1404984a4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'53a07d4589684bcfa841fdb1404984a4' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'53a07d4589684bcfa841fdb1404984a4' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'53a07d4589684bcfa841fdb1404984a4' ORDER BY `account_users`.`id` DESC LIMIT 1 Started GET "/settings/account/6b2601cd-6eda-4ee7-b8fb-32305a9f8e9b" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"6b2601cd-6eda-4ee7-b8fb-32305a9f8e9b"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'53a07d4589684bcfa841fdb1404984a4' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'53a07d4589684bcfa841fdb1404984a4' AND `accounts`.`id` = x'6b2601cd6eda4ee7b8fb32305a9f8e9b' LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = x'6b2601cd6eda4ee7b8fb32305a9f8e9b' AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6b2601cd6eda4ee7b8fb32305a9f8e9b' AND `account_users`.`user_id` = x'53a07d4589684bcfa841fdb1404984a4' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9d1490ccc6f140a39f8c7a679dc6430c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6b2601cd6eda4ee7b8fb32305a9f8e9b' AND `account_users`.`user_id` = x'53a07d4589684bcfa841fdb1404984a4' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9d1490ccc6f140a39f8c7a679dc6430c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'6b2601cd6eda4ee7b8fb32305a9f8e9b' AND `account_users`.`user_id` = x'53a07d4589684bcfa841fdb1404984a4' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9d1490ccc6f140a39f8c7a679dc6430c' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_6b2601cd-6eda-4ee7-b8fb-32305a9f8e9b_destroy' LIMIT 1 Completed 200 OK in 20ms (Views: 13.0ms | ActiveRecord: 2.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:30', 'teste@teste.com', '$2a$04$.RWIKWxbLROhXR6ax7/gdOwZsYhaDAlEtM1HymyoniVPHaPeVsXTC', NULL, x'6933d79c1d0d4d4d8ff6f9d20d665215', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:30') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:30', 'User', x'c8ca21ebcab749f3921ba2a0b129b3ea', 'a9c258ab7a015c615132fe7ef9b6f193', x'6933d79c1d0d4d4d8ff6f9d20d665215', 'User', '2013-01-02 11:06:30') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:30', x'9f67fdeed3974b4baccd80d726c0e8c7', NULL, NULL, NULL, '2013-01-02 11:06:30')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:30', `updated_at` = '2013-01-02 11:06:30', `subdomain` = 'account9f67fdee-d397-4b4b-accd-80d726c0e8c7' WHERE `accounts`.`id` = x'9f67fdeed3974b4baccd80d726c0e8c7' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f67fdeed3974b4baccd80d726c0e8c7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9f67fdeed3974b4baccd80d726c0e8c7', x'eed33ba622c24a9dad06be928ec7da56', x'6933d79c1d0d4d4d8ff6f9d20d665215') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'eed33ba622c24a9dad06be928ec7da56') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eed33ba622c24a9dad06be928ec7da56' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eed33ba622c24a9dad06be928ec7da56', x'fb3c7daa0ea74981b7ad15e90523206f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'eed33ba622c24a9dad06be928ec7da56') LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'eed33ba622c24a9dad06be928ec7da56' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'eed33ba622c24a9dad06be928ec7da56', x'e70f5dc0aa7746ad91f7c3d9906266d4', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:30 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b6f0c95_107080435d48706f1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:30 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:31', 'xpto@account.test', '$2a$04$dc.hP.g3rJHUHTbXKkaLjOkO0z0TMl9ECOYHmlNO.Q7tAIfrhkF1O', NULL, x'd494e447726a44439e15dc743e7661d7', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd494e447726a44439e15dc743e7661d7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:31', 'User', x'd31dba16a89047f69e5327b459d8fbca', 'de366c0439b487cb122c67036b6b9ecb', x'd494e447726a44439e15dc743e7661d7', 'User', '2013-01-02 11:06:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd494e447726a44439e15dc743e7661d7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'7df2157284014eac890f36683c359908', NULL, NULL, NULL, '2013-01-02 11:06:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'account7df21572-8401-4eac-890f-36683c359908' WHERE `accounts`.`id` = x'7df2157284014eac890f36683c359908' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7df2157284014eac890f36683c359908' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7df2157284014eac890f36683c359908', x'a4c6cafd1e724f708d2b1f9bbb0c1cd0', x'd494e447726a44439e15dc743e7661d7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a4c6cafd1e724f708d2b1f9bbb0c1cd0') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a4c6cafd1e724f708d2b1f9bbb0c1cd0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a4c6cafd1e724f708d2b1f9bbb0c1cd0', x'b6f61c7257f6478cb1508ce2c3d81e3a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a4c6cafd1e724f708d2b1f9bbb0c1cd0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a4c6cafd1e724f708d2b1f9bbb0c1cd0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a4c6cafd1e724f708d2b1f9bbb0c1cd0', x'80e7a1c55a36401992654175b5d56acf', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:31 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b711d48_107080435d4870789@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'6ff783a7bfb44fdd9b5dbda33455d3e3', 'jabanilson', NULL, 1, '2013-01-02 11:06:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'account6ff783a7-bfb4-4fdd-9b5d-bda33455d3e3' WHERE `accounts`.`id` = x'6ff783a7bfb44fdd9b5dbda33455d3e3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6ff783a7bfb44fdd9b5dbda33455d3e3', x'69b01088e67b48ef9637b24d550f46ce', x'd494e447726a44439e15dc743e7661d7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'69b01088e67b48ef9637b24d550f46ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'69b01088e67b48ef9637b24d550f46ce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'69b01088e67b48ef9637b24d550f46ce', x'72e12d5c99c44c7daeab9fecdb1ea118', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'69b01088e67b48ef9637b24d550f46ce') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'69b01088e67b48ef9637b24d550f46ce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'69b01088e67b48ef9637b24d550f46ce', x'bdcf4bc4961f43509fe3387875e1db9b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f67fdeed3974b4baccd80d726c0e8c7' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'9f67fdeed3974b4baccd80d726c0e8c7' WHERE `account_users`.`id` = x'69b01088e67b48ef9637b24d550f46ce'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'69b01088e67b48ef9637b24d550f46ce'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'69b01088e67b48ef9637b24d550f46ce' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ŸgýîÓ—KK¬Í€×&ÀèÇ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'72e12d5c99c44c7daeab9fecdb1ea118' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'bdcf4bc4961f43509fe3387875e1db9b'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'69b01088e67b48ef9637b24d550f46ce') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'69b01088e67b48ef9637b24d550f46ce' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'69b01088e67b48ef9637b24d550f46ce', x'b5ce198fbce94d77853c2996ac6cc7b4', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/9f67fdee-d397-4b4b-accd-80d726c0e8c7/users" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"9f67fdee-d397-4b4b-accd-80d726c0e8c7"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f67fdeed3974b4baccd80d726c0e8c7' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_9f67fdee-d397-4b4b-accd-80d726c0e8c7_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9f67fdeed3974b4baccd80d726c0e8c7' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9f67fdeed3974b4baccd80d726c0e8c7' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd494e447726a44439e15dc743e7661d7' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9f67fdeed3974b4baccd80d726c0e8c7' AND `account_users`.`user_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eed33ba622c24a9dad06be928ec7da56' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_69b01088-e67b-48ef-9637-b24d550f46ce_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'69b01088e67b48ef9637b24d550f46ce' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9f67fdeed3974b4baccd80d726c0e8c7' AND `account_users`.`user_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eed33ba622c24a9dad06be928ec7da56' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_eed33ba6-22c2-4a9d-ad06-be928ec7da56_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eed33ba622c24a9dad06be928ec7da56' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9f67fdeed3974b4baccd80d726c0e8c7' AND `account_users`.`user_id` = x'6933d79c1d0d4d4d8ff6f9d20d665215' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'eed33ba622c24a9dad06be928ec7da56' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 30ms (Views: 21.7ms | ActiveRecord: 4.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:31', 'teste@teste.com', '$2a$04$DOW2OE8Y72P1fGLQLhh0Q.cAw0T3c/T9RTHCB7M/ub2f4GmVeNBkO', NULL, x'cd5e7da7bf214df9a6cfc29b3f92163a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:31', 'User', x'6e9d89e4964546c0a4eb2646c0e2f4e3', '7db91e618ba0f62b69cd63cc4a773164', x'cd5e7da7bf214df9a6cfc29b3f92163a', 'User', '2013-01-02 11:06:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'df4f30b0fa294021a7ff9b74eba5e0ca', NULL, NULL, NULL, '2013-01-02 11:06:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'accountdf4f30b0-fa29-4021-a7ff-9b74eba5e0ca' WHERE `accounts`.`id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'df4f30b0fa294021a7ff9b74eba5e0ca', x'7858b9ad5b44423e916aa0284edaa9e3', x'cd5e7da7bf214df9a6cfc29b3f92163a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7858b9ad5b44423e916aa0284edaa9e3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7858b9ad5b44423e916aa0284edaa9e3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7858b9ad5b44423e916aa0284edaa9e3', x'3bcf40ec09ac42f0a01530f402ec8a20', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7858b9ad5b44423e916aa0284edaa9e3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7858b9ad5b44423e916aa0284edaa9e3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7858b9ad5b44423e916aa0284edaa9e3', x'19856df6007c4f3baced8b6397d4355d', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:31 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b72d283_107080435d487085e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:31', 'xpto@account.test', '$2a$04$3sczUr6UP3WZ6QjqJJ8L.egrLxhhrgSEWcAWMEb28QXneD1ls.F2m', NULL, x'788788dfe80b440d91d171bb95957711', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'788788dfe80b440d91d171bb95957711' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:31', 'User', x'8ea718e17ff34625a7152e411dddf2fd', 'de9100ec784532f63f4907aefb137749', x'788788dfe80b440d91d171bb95957711', 'User', '2013-01-02 11:06:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'788788dfe80b440d91d171bb95957711' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'fd6b988b793a44f09900a0ac92812d17', NULL, NULL, NULL, '2013-01-02 11:06:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'accountfd6b988b-793a-44f0-9900-a0ac92812d17' WHERE `accounts`.`id` = x'fd6b988b793a44f09900a0ac92812d17' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fd6b988b793a44f09900a0ac92812d17' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fd6b988b793a44f09900a0ac92812d17', x'55fe107c7b90437584633072ada266d4', x'788788dfe80b440d91d171bb95957711') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'55fe107c7b90437584633072ada266d4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55fe107c7b90437584633072ada266d4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55fe107c7b90437584633072ada266d4', x'c13ba1d9f18d4a97b5b5fbcbe2050f2d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'55fe107c7b90437584633072ada266d4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'55fe107c7b90437584633072ada266d4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'55fe107c7b90437584633072ada266d4', x'5411822bbebd4d329058651eb3451b21', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:31 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b75f15f_107080435d48709d9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'7a10e122ebea4bf8abe179e94fdf919c', 'jabanilson', NULL, 1, '2013-01-02 11:06:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'account7a10e122-ebea-4bf8-abe1-79e94fdf919c' WHERE `accounts`.`id` = x'7a10e122ebea4bf8abe179e94fdf919c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7a10e122ebea4bf8abe179e94fdf919c', x'266216266fbf4feb900730c7e4269f78', x'788788dfe80b440d91d171bb95957711') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'266216266fbf4feb900730c7e4269f78') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'266216266fbf4feb900730c7e4269f78' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'266216266fbf4feb900730c7e4269f78', x'f5db357cda0f4450b1878113411b1cf3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'266216266fbf4feb900730c7e4269f78') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'266216266fbf4feb900730c7e4269f78' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'266216266fbf4feb900730c7e4269f78', x'dacf693a3926457e8e3f23bdf44bf7a7', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' WHERE `account_users`.`id` = x'266216266fbf4feb900730c7e4269f78'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'266216266fbf4feb900730c7e4269f78'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'dacf693a3926457e8e3f23bdf44bf7a7' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'266216266fbf4feb900730c7e4269f78' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ßO0°ú)@!§ÿ›të¥àÊ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f5db357cda0f4450b1878113411b1cf3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'266216266fbf4feb900730c7e4269f78') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'266216266fbf4feb900730c7e4269f78' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'266216266fbf4feb900730c7e4269f78', x'3e748a180a5d4e4d9bd57010e593fec0', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/df4f30b0-fa29-4021-a7ff-9b74eba5e0ca/users" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"df4f30b0-fa29-4021-a7ff-9b74eba5e0ca"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_df4f30b0-fa29-4021-a7ff-9b74eba5e0ca_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'788788dfe80b440d91d171bb95957711' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' AND `account_users`.`user_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7858b9ad5b44423e916aa0284edaa9e3' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_26621626-6fbf-4feb-9007-30c7e4269f78_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'266216266fbf4feb900730c7e4269f78' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' AND `account_users`.`user_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7858b9ad5b44423e916aa0284edaa9e3' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7858b9ad-5b44-423e-916a-a0284edaa9e3_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7858b9ad5b44423e916aa0284edaa9e3' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'df4f30b0fa294021a7ff9b74eba5e0ca' AND `account_users`.`user_id` = x'cd5e7da7bf214df9a6cfc29b3f92163a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7858b9ad5b44423e916aa0284edaa9e3' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 27ms (Views: 18.7ms | ActiveRecord: 4.1ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:31', 'teste@teste.com', '$2a$04$KnlsJjO3Ey82uWNnftQWNONqcx7Z0cF1eVFswKPxOix8g5fkDAN3O', NULL, x'363596e7f59743b6893874c322b9dfda', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'363596e7f59743b6893874c322b9dfda' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:31', 'User', x'eafd896eb3254d109c25a2d9676d059b', '83779cf348b5e97f5f168d61e06e6aac', x'363596e7f59743b6893874c322b9dfda', 'User', '2013-01-02 11:06:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'363596e7f59743b6893874c322b9dfda' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'fdc7edf1ee684ba1aca54be8c41c1458', NULL, NULL, NULL, '2013-01-02 11:06:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'accountfdc7edf1-ee68-4ba1-aca5-4be8c41c1458' WHERE `accounts`.`id` = x'fdc7edf1ee684ba1aca54be8c41c1458' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fdc7edf1ee684ba1aca54be8c41c1458' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fdc7edf1ee684ba1aca54be8c41c1458', x'f87097c42e5f496c987ba5ed7fcb7fef', x'363596e7f59743b6893874c322b9dfda') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f87097c42e5f496c987ba5ed7fcb7fef') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f87097c42e5f496c987ba5ed7fcb7fef' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f87097c42e5f496c987ba5ed7fcb7fef', x'4968454b29ce49f3988d669c06211381', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f87097c42e5f496c987ba5ed7fcb7fef') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f87097c42e5f496c987ba5ed7fcb7fef' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f87097c42e5f496c987ba5ed7fcb7fef', x'3ea043787c4c4afa8b5b4a93d7fb0d09', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:31 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b77a1c6_107080435d48710b7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'363596e7f59743b6893874c322b9dfda' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:31', 'xpto@account.test', '$2a$04$xvEZUBUE2g6xdAp5x0uxn.HGF5NHskvXyAaZgIPZZ/dB8V2xa7MRi', NULL, x'8fb2fd7c6cd94afea755df38e6d7f779', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:31') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8fb2fd7c6cd94afea755df38e6d7f779' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:31', 'User', x'ea283eaba0a24ce7bad5179e4921f8f7', '2715866a1a56adc58e2eea18e835190d', x'8fb2fd7c6cd94afea755df38e6d7f779', 'User', '2013-01-02 11:06:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8fb2fd7c6cd94afea755df38e6d7f779' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'8f55ad5df26843f6bc1b964dd4e78248', NULL, NULL, NULL, '2013-01-02 11:06:31')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'account8f55ad5d-f268-43f6-bc1b-964dd4e78248' WHERE `accounts`.`id` = x'8f55ad5df26843f6bc1b964dd4e78248' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f55ad5df26843f6bc1b964dd4e78248' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8f55ad5df26843f6bc1b964dd4e78248', x'9dee65eda9aa485da6349bf14e1b02b9', x'8fb2fd7c6cd94afea755df38e6d7f779') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9dee65eda9aa485da6349bf14e1b02b9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9dee65eda9aa485da6349bf14e1b02b9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9dee65eda9aa485da6349bf14e1b02b9', x'e16051e5bcbb4f43bbe8d210a34d23d3', 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9dee65eda9aa485da6349bf14e1b02b9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9dee65eda9aa485da6349bf14e1b02b9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9dee65eda9aa485da6349bf14e1b02b9', x'b57dc262bb5b44b1aed95f087b031bde', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:31 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b7aba93_107080435d487118a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'40c8d798032342b295ca2d81d5d47621', 'jabanilson', NULL, 1, '2013-01-02 11:06:31')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'account40c8d798-0323-42b2-95ca-2d81d5d47621' WHERE `accounts`.`id` = x'40c8d798032342b295ca2d81d5d47621'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'40c8d798032342b295ca2d81d5d47621', x'b07e4edae11b45c7ad0858c1f774f144', x'8fb2fd7c6cd94afea755df38e6d7f779') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b07e4edae11b45c7ad0858c1f774f144') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b07e4edae11b45c7ad0858c1f774f144' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b07e4edae11b45c7ad0858c1f774f144', x'ee5a457f62ad4bf9a4cbba81bbcde58c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b07e4edae11b45c7ad0858c1f774f144') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b07e4edae11b45c7ad0858c1f774f144' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b07e4edae11b45c7ad0858c1f774f144', x'c94ab7afd476490e8c25f1716ffc6c93', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fdc7edf1ee684ba1aca54be8c41c1458' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'fdc7edf1ee684ba1aca54be8c41c1458' WHERE `account_users`.`id` = x'b07e4edae11b45c7ad0858c1f774f144'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b07e4edae11b45c7ad0858c1f774f144'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c94ab7afd476490e8c25f1716ffc6c93' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b07e4edae11b45c7ad0858c1f774f144' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'ýÇíñîhK¡¬¥KèÄX' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ee5a457f62ad4bf9a4cbba81bbcde58c'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'b07e4edae11b45c7ad0858c1f774f144') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b07e4edae11b45c7ad0858c1f774f144' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b07e4edae11b45c7ad0858c1f774f144', x'7af2851f8e884641b4d23105f63fbf4d', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/fdc7edf1-ee68-4ba1-aca5-4be8c41c1458/users" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"fdc7edf1-ee68-4ba1-aca5-4be8c41c1458"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fdc7edf1ee684ba1aca54be8c41c1458' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_fdc7edf1-ee68-4ba1-aca5-4be8c41c1458_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fdc7edf1ee684ba1aca54be8c41c1458' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fdc7edf1ee684ba1aca54be8c41c1458' User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8fb2fd7c6cd94afea755df38e6d7f779' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fdc7edf1ee684ba1aca54be8c41c1458' AND `account_users`.`user_id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f87097c42e5f496c987ba5ed7fcb7fef' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_b07e4eda-e11b-45c7-ad08-58c1f774f144_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'b07e4edae11b45c7ad0858c1f774f144' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fdc7edf1ee684ba1aca54be8c41c1458' AND `account_users`.`user_id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f87097c42e5f496c987ba5ed7fcb7fef' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_f87097c4-2e5f-496c-987b-a5ed7fcb7fef_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f87097c42e5f496c987ba5ed7fcb7fef' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fdc7edf1ee684ba1aca54be8c41c1458' AND `account_users`.`user_id` = x'363596e7f59743b6893874c322b9dfda' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f87097c42e5f496c987ba5ed7fcb7fef' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 45ms (Views: 35.4ms | ActiveRecord: 3.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:31', 'teste@teste.com', '$2a$04$s4gFYhlV5XZOi4yv.gfDIehhlwOA04J/4XOt9mXsXWr5cXuc7OI/y', NULL, x'1a457ebd98944484af087f2f8d6ecc8a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1a457ebd98944484af087f2f8d6ecc8a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:31', 'User', x'274e0dbb3a2c4d32b34a0665a9a9ad86', 'ac150316cb6eb028b0360a7583c8e9aa', x'1a457ebd98944484af087f2f8d6ecc8a', 'User', '2013-01-02 11:06:31') ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1a457ebd98944484af087f2f8d6ecc8a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'7a2b8f7f81dc46a5854c8580703eb61b', NULL, NULL, NULL, '2013-01-02 11:06:31')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'account7a2b8f7f-81dc-46a5-854c-8580703eb61b' WHERE `accounts`.`id` = x'7a2b8f7f81dc46a5854c8580703eb61b' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a2b8f7f81dc46a5854c8580703eb61b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7a2b8f7f81dc46a5854c8580703eb61b', x'3985baffacbc4150bc353bf32cddf779', x'1a457ebd98944484af087f2f8d6ecc8a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3985baffacbc4150bc353bf32cddf779') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3985baffacbc4150bc353bf32cddf779' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3985baffacbc4150bc353bf32cddf779', x'ca6b4d56d0804ea0864497a1f8441fe3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3985baffacbc4150bc353bf32cddf779') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3985baffacbc4150bc353bf32cddf779' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3985baffacbc4150bc353bf32cddf779', x'0251fb7bb41d49d9a2e404bce9f29d52', 'admin') Sent mail to teste@teste.com (11ms) Date: Wed, 02 Jan 2013 09:06:31 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b7d1992_107080435d4871270@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.3ms) Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a457ebd98944484af087f2f8d6ecc8a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:31 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:31', 'xpto@account.test', '$2a$04$7nZpPGNjPY4Mc6t1PnrAVeF6jbrbfJR2B4DxmnHailtKJPXQAM/9e', NULL, x'0be71ea77bbc4305932e2dd3d3e9a45b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:31') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0be71ea77bbc4305932e2dd3d3e9a45b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:31', 'User', x'a6dcd61ee9aa4bd189ca45ae582590ff', '2d4486cda549184bf211ae50516c2b35', x'0be71ea77bbc4305932e2dd3d3e9a45b', 'User', '2013-01-02 11:06:31') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0be71ea77bbc4305932e2dd3d3e9a45b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'7af33e1ab66b4a5782f6dda8a1a14404', NULL, NULL, NULL, '2013-01-02 11:06:31')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'account7af33e1a-b66b-4a57-82f6-dda8a1a14404' WHERE `accounts`.`id` = x'7af33e1ab66b4a5782f6dda8a1a14404' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7af33e1ab66b4a5782f6dda8a1a14404' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7af33e1ab66b4a5782f6dda8a1a14404', x'372275160bd4445ebeb887ab8f9d117d', x'0be71ea77bbc4305932e2dd3d3e9a45b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'372275160bd4445ebeb887ab8f9d117d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'372275160bd4445ebeb887ab8f9d117d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'372275160bd4445ebeb887ab8f9d117d', x'07635d9cdeb342b8b7612ad928f6a8de', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'372275160bd4445ebeb887ab8f9d117d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'372275160bd4445ebeb887ab8f9d117d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'372275160bd4445ebeb887ab8f9d117d', x'ae0cd32a5ce34946b8113e167335cddd', 'admin') Sent mail to xpto@account.test (7ms) Date: Wed, 02 Jan 2013 09:06:31 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b7ebbe9_107080435d4871327@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:31', x'690aeb9638fc45c2b7ff4352da2404ce', 'jabanilson', NULL, 1, '2013-01-02 11:06:31')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:31', `updated_at` = '2013-01-02 11:06:31', `subdomain` = 'account690aeb96-38fc-45c2-b7ff-4352da2404ce' WHERE `accounts`.`id` = x'690aeb9638fc45c2b7ff4352da2404ce'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'690aeb9638fc45c2b7ff4352da2404ce', x'6d61fe66b34044b19083ba0b3097931a', x'0be71ea77bbc4305932e2dd3d3e9a45b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6d61fe66b34044b19083ba0b3097931a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d61fe66b34044b19083ba0b3097931a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d61fe66b34044b19083ba0b3097931a', x'dee528210f824720a3e0beeaf64d5d2d', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6d61fe66b34044b19083ba0b3097931a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d61fe66b34044b19083ba0b3097931a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d61fe66b34044b19083ba0b3097931a', x'ec0db137cc3a4cbdb6012cf902240892', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a2b8f7f81dc46a5854c8580703eb61b' LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = x'7a2b8f7f81dc46a5854c8580703eb61b' WHERE `account_users`.`id` = x'6d61fe66b34044b19083ba0b3097931a'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6d61fe66b34044b19083ba0b3097931a'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d61fe66b34044b19083ba0b3097931a' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'z+ÜF¥…L…€p>¶' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'dee528210f824720a3e0beeaf64d5d2d' SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ec0db137cc3a4cbdb6012cf902240892'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'6d61fe66b34044b19083ba0b3097931a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6d61fe66b34044b19083ba0b3097931a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6d61fe66b34044b19083ba0b3097931a', x'd09143f789424d03a3879d35921ad29c', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/7a2b8f7f-81dc-46a5-854c-8580703eb61b/users" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"7a2b8f7f-81dc-46a5-854c-8580703eb61b"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a2b8f7f81dc46a5854c8580703eb61b' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_7a2b8f7f-81dc-46a5-854c-8580703eb61b_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7a2b8f7f81dc46a5854c8580703eb61b' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a2b8f7f81dc46a5854c8580703eb61b' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a2b8f7f81dc46a5854c8580703eb61b' AND `account_users`.`user_id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3985baffacbc4150bc353bf32cddf779' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_3985baff-acbc-4150-bc35-3bf32cddf779_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3985baffacbc4150bc353bf32cddf779' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0be71ea77bbc4305932e2dd3d3e9a45b' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a2b8f7f81dc46a5854c8580703eb61b' AND `account_users`.`user_id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3985baffacbc4150bc353bf32cddf779' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_6d61fe66-b340-44b1-9083-ba0b3097931a_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6d61fe66b34044b19083ba0b3097931a' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'7a2b8f7f81dc46a5854c8580703eb61b' AND `account_users`.`user_id` = x'1a457ebd98944484af087f2f8d6ecc8a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3985baffacbc4150bc353bf32cddf779' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 173ms (Views: 165.7ms | ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:32', 'teste@teste.com', '$2a$04$gsnnwdzJZukYuNxlA3LvieqAScKexaqYIcql0CEQSv28llGHahxay', NULL, x'7e649230733844acb537a4104175e971', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:32') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7e649230733844acb537a4104175e971' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:32', 'User', x'e7432c9aa218431691d165e5a7ad56ba', '943b8dd956628d037a7c4b3308a7065b', x'7e649230733844acb537a4104175e971', 'User', '2013-01-02 11:06:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7e649230733844acb537a4104175e971' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'3a44b4476dde4aa1b6996cd64d8a96d9', NULL, NULL, NULL, '2013-01-02 11:06:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'account3a44b447-6dde-4aa1-b699-6cd64d8a96d9' WHERE `accounts`.`id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3a44b4476dde4aa1b6996cd64d8a96d9', x'5b1184c6d16144528b24d00bbeb75cc1', x'7e649230733844acb537a4104175e971') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5b1184c6d16144528b24d00bbeb75cc1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b1184c6d16144528b24d00bbeb75cc1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b1184c6d16144528b24d00bbeb75cc1', x'5bcfbda5ef704474b84128a6e36e0483', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5b1184c6d16144528b24d00bbeb75cc1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5b1184c6d16144528b24d00bbeb75cc1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5b1184c6d16144528b24d00bbeb75cc1', x'769e9c7ffb82456fb5fb4b2d64639da0', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:32 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b836e04_107080435d48714c2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7e649230733844acb537a4104175e971' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7e649230733844acb537a4104175e971' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7e649230733844acb537a4104175e971' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7e649230733844acb537a4104175e971' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7e649230733844acb537a4104175e971' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:32', 'xpto@account.test', '$2a$04$WtFLm2Nm9nhSnib62zwN8uTmam1wdmadPog.vPxV40FAkcizXv1ku', NULL, x'cbf18548bae24cee86f1b7ed31158248', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cbf18548bae24cee86f1b7ed31158248' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:32', 'User', x'b8cb2c103f2c489188c9ca8ac39748f1', 'd3b408ce222a6fa8157381658985296d', x'cbf18548bae24cee86f1b7ed31158248', 'User', '2013-01-02 11:06:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cbf18548bae24cee86f1b7ed31158248' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'9db9288f0b554042abb2ff7c14fc2648', NULL, NULL, NULL, '2013-01-02 11:06:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'account9db9288f-0b55-4042-abb2-ff7c14fc2648' WHERE `accounts`.`id` = x'9db9288f0b554042abb2ff7c14fc2648' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9db9288f0b554042abb2ff7c14fc2648' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9db9288f0b554042abb2ff7c14fc2648', x'7d70b1ae254749e6860deb7dc576d493', x'cbf18548bae24cee86f1b7ed31158248') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7d70b1ae254749e6860deb7dc576d493') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d70b1ae254749e6860deb7dc576d493' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d70b1ae254749e6860deb7dc576d493', x'7d4c9e0efabb4a8e818e19ec3e42f541', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7d70b1ae254749e6860deb7dc576d493') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7d70b1ae254749e6860deb7dc576d493' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7d70b1ae254749e6860deb7dc576d493', x'7786488db8a34973a2baf64b46896f09', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:32 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b84c335_107080435d48715e3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'2024721ca3db4f60876a40c483b43af5', 'jabanilson', NULL, 1, '2013-01-02 11:06:32')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'account2024721c-a3db-4f60-876a-40c483b43af5' WHERE `accounts`.`id` = x'2024721ca3db4f60876a40c483b43af5'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2024721ca3db4f60876a40c483b43af5', x'5fae351bf9784a1cae64382cd4fd9218', x'cbf18548bae24cee86f1b7ed31158248') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5fae351bf9784a1cae64382cd4fd9218') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5fae351bf9784a1cae64382cd4fd9218' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5fae351bf9784a1cae64382cd4fd9218', x'4c9eae3bbc16472a8c937f4c14b0311a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5fae351bf9784a1cae64382cd4fd9218') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5fae351bf9784a1cae64382cd4fd9218' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5fae351bf9784a1cae64382cd4fd9218', x'729960ded8e7452c80a9ac60e22f3e40', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' WHERE `account_users`.`id` = x'5fae351bf9784a1cae64382cd4fd9218'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5fae351bf9784a1cae64382cd4fd9218'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5fae351bf9784a1cae64382cd4fd9218' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = ':D´GmÞJ¡¶™lÖMŠ–Ù' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4c9eae3bbc16472a8c937f4c14b0311a' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'729960ded8e7452c80a9ac60e22f3e40'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'5fae351bf9784a1cae64382cd4fd9218') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5fae351bf9784a1cae64382cd4fd9218' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5fae351bf9784a1cae64382cd4fd9218', x'2c8209b289b84338a04e3bca0d421eb4', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/3a44b447-6dde-4aa1-b699-6cd64d8a96d9/users" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"3a44b447-6dde-4aa1-b699-6cd64d8a96d9"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7e649230733844acb537a4104175e971' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3a44b447-6dde-4aa1-b699-6cd64d8a96d9_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7e649230733844acb537a4104175e971' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' AND `account_users`.`user_id` = x'7e649230733844acb537a4104175e971' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5b1184c6d16144528b24d00bbeb75cc1' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_5b1184c6-d161-4452-8b24-d00bbeb75cc1_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5b1184c6d16144528b24d00bbeb75cc1' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cbf18548bae24cee86f1b7ed31158248' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' AND `account_users`.`user_id` = x'7e649230733844acb537a4104175e971' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5b1184c6d16144528b24d00bbeb75cc1' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_5fae351b-f978-4a1c-ae64-382cd4fd9218_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5fae351bf9784a1cae64382cd4fd9218' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3a44b4476dde4aa1b6996cd64d8a96d9' AND `account_users`.`user_id` = x'7e649230733844acb537a4104175e971' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5b1184c6d16144528b24d00bbeb75cc1' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.7ms | ActiveRecord: 3.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:32', 'teste@teste.com', '$2a$04$9z/sNmk6SZv1bYEPFchYFOojasA5e4c9VLWG4tJpAwVYs.37MWdMi', NULL, x'ba1bcb8c429b4d27aca4827f9ca94cd6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:32', 'User', x'990abcae0c01478d8db2f6ae4c79ded8', 'c7c3c746b5e2ac33f19d52d4c73db1ac', x'ba1bcb8c429b4d27aca4827f9ca94cd6', 'User', '2013-01-02 11:06:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'5c6334c001b844f39f58011ef4e66555', NULL, NULL, NULL, '2013-01-02 11:06:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'account5c6334c0-01b8-44f3-9f58-011ef4e66555' WHERE `accounts`.`id` = x'5c6334c001b844f39f58011ef4e66555' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5c6334c001b844f39f58011ef4e66555' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5c6334c001b844f39f58011ef4e66555', x'5e6dba5f33e146ad8b7f13b558959e10', x'ba1bcb8c429b4d27aca4827f9ca94cd6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5e6dba5f33e146ad8b7f13b558959e10') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5e6dba5f33e146ad8b7f13b558959e10' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5e6dba5f33e146ad8b7f13b558959e10', x'8b2b594805c649dbb77a495c2d7072d1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5e6dba5f33e146ad8b7f13b558959e10') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5e6dba5f33e146ad8b7f13b558959e10' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5e6dba5f33e146ad8b7f13b558959e10', x'aef629ef9fab4c11b7d833bbf64f1862', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:32 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b88409d_107080435d48716e5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:32', 'xpto@account.test', '$2a$04$J6HdBLQc5YxNvTo1SMfKa.453Kn6VUi4FBLE/PJCy06JAxcXIjzIG', NULL, x'b1dbb3c9e9454cdea0a2b192d98b34ac', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b1dbb3c9e9454cdea0a2b192d98b34ac' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:32', 'User', x'5cd7b6bb350f450d8d74aed227e30258', 'e12662e7769403d958ad91f4d9a1a3dc', x'b1dbb3c9e9454cdea0a2b192d98b34ac', 'User', '2013-01-02 11:06:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b1dbb3c9e9454cdea0a2b192d98b34ac' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'a2981fb1cb424d5785cd4a3a70e1e042', NULL, NULL, NULL, '2013-01-02 11:06:32')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'accounta2981fb1-cb42-4d57-85cd-4a3a70e1e042' WHERE `accounts`.`id` = x'a2981fb1cb424d5785cd4a3a70e1e042' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a2981fb1cb424d5785cd4a3a70e1e042' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a2981fb1cb424d5785cd4a3a70e1e042', x'6e7c561e44a94b92b4259c0707d5121b', x'b1dbb3c9e9454cdea0a2b192d98b34ac') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6e7c561e44a94b92b4259c0707d5121b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e7c561e44a94b92b4259c0707d5121b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e7c561e44a94b92b4259c0707d5121b', x'a9d45a698cc84e2e88e4720ce10090c4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6e7c561e44a94b92b4259c0707d5121b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6e7c561e44a94b92b4259c0707d5121b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6e7c561e44a94b92b4259c0707d5121b', x'86c6a388636646968ba6887dd91c943c', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:32 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b898cd7_107080435d487178f@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'5c9d8933e5a449f2a76902b3a855a191', 'jabanilson', NULL, 1, '2013-01-02 11:06:32')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'account5c9d8933-e5a4-49f2-a769-02b3a855a191' WHERE `accounts`.`id` = x'5c9d8933e5a449f2a76902b3a855a191'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5c9d8933e5a449f2a76902b3a855a191', x'3b2edbb3b4584d16a0458a28f9d47a11', x'b1dbb3c9e9454cdea0a2b192d98b34ac') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3b2edbb3b4584d16a0458a28f9d47a11') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b2edbb3b4584d16a0458a28f9d47a11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b2edbb3b4584d16a0458a28f9d47a11', x'1a0346a6349b4173bf551323838cd142', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3b2edbb3b4584d16a0458a28f9d47a11') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b2edbb3b4584d16a0458a28f9d47a11' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b2edbb3b4584d16a0458a28f9d47a11', x'4489ade9b2674187a4e78ca19773cb58', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5c6334c001b844f39f58011ef4e66555' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'5c6334c001b844f39f58011ef4e66555' WHERE `account_users`.`id` = x'3b2edbb3b4584d16a0458a28f9d47a11'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3b2edbb3b4584d16a0458a28f9d47a11'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b2edbb3b4584d16a0458a28f9d47a11' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1a0346a6349b4173bf551323838cd142' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'4489ade9b2674187a4e78ca19773cb58'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'3b2edbb3b4584d16a0458a28f9d47a11') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3b2edbb3b4584d16a0458a28f9d47a11' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3b2edbb3b4584d16a0458a28f9d47a11', x'66d3432e167540a18388f2a27f6b77ba', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/5c6334c0-01b8-44f3-9f58-011ef4e66555/users" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"5c6334c0-01b8-44f3-9f58-011ef4e66555"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5c6334c001b844f39f58011ef4e66555' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_5c6334c0-01b8-44f3-9f58-011ef4e66555_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5c6334c001b844f39f58011ef4e66555' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5c6334c001b844f39f58011ef4e66555' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b1dbb3c9e9454cdea0a2b192d98b34ac' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5c6334c001b844f39f58011ef4e66555' AND `account_users`.`user_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5e6dba5f33e146ad8b7f13b558959e10' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_3b2edbb3-b458-4d16-a045-8a28f9d47a11_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3b2edbb3b4584d16a0458a28f9d47a11' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5c6334c001b844f39f58011ef4e66555' AND `account_users`.`user_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5e6dba5f33e146ad8b7f13b558959e10' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_5e6dba5f-33e1-46ad-8b7f-13b558959e10_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5e6dba5f33e146ad8b7f13b558959e10' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5c6334c001b844f39f58011ef4e66555' AND `account_users`.`user_id` = x'ba1bcb8c429b4d27aca4827f9ca94cd6' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'5e6dba5f33e146ad8b7f13b558959e10' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.5ms | ActiveRecord: 3.8ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:32', 'teste@teste.com', '$2a$04$IMUu7w1OmFGM7zrdz6S.suR4KnE0QvepFvdu53tkPK2VT1M49zMpC', NULL, x'e3baf883a8b14cfaa74a1b3571c2e147', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:32') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:32', 'User', x'7ea43a8ba2c84e6b8c0ae0eab2edb209', '63130cf16ba7ff1e8b5b187eb0212cb5', x'e3baf883a8b14cfaa74a1b3571c2e147', 'User', '2013-01-02 11:06:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'00c35ae364684dbb859903f781318158', NULL, NULL, NULL, '2013-01-02 11:06:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'account00c35ae3-6468-4dbb-8599-03f781318158' WHERE `accounts`.`id` = x'00c35ae364684dbb859903f781318158' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00c35ae364684dbb859903f781318158' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'00c35ae364684dbb859903f781318158', x'c3a2b21f2d1a48c3b8204a20d4fceb4e', x'e3baf883a8b14cfaa74a1b3571c2e147') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c3a2b21f2d1a48c3b8204a20d4fceb4e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3a2b21f2d1a48c3b8204a20d4fceb4e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3a2b21f2d1a48c3b8204a20d4fceb4e', x'59cbfc2ea3bd438da27a25d19cb8cebc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c3a2b21f2d1a48c3b8204a20d4fceb4e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c3a2b21f2d1a48c3b8204a20d4fceb4e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c3a2b21f2d1a48c3b8204a20d4fceb4e', x'37953c06d1b643f581eff7dc7369866b', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:32 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b8b2ea2_107080435d4871819@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:32', 'xpto@account.test', '$2a$04$u6k71iIa6rr/GvzBtfQk6Ool.eqxEuaGq0.3XhvoAg4Huro0HraXe', NULL, x'7798435ec8ef4a98986b7cad5fe78b25', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:32') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7798435ec8ef4a98986b7cad5fe78b25' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:32', 'User', x'f5a8db1bc12f4d74bce7fb68bbfcc494', 'b840f24d97ebfcb05ce01ec5c6aa084d', x'7798435ec8ef4a98986b7cad5fe78b25', 'User', '2013-01-02 11:06:32') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7798435ec8ef4a98986b7cad5fe78b25' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'2ce4ea75b59945d1862bcf97b33f5273', NULL, NULL, NULL, '2013-01-02 11:06:32')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'account2ce4ea75-b599-45d1-862b-cf97b33f5273' WHERE `accounts`.`id` = x'2ce4ea75b59945d1862bcf97b33f5273' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2ce4ea75b59945d1862bcf97b33f5273' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2ce4ea75b59945d1862bcf97b33f5273', x'7e745b5a03774a6c9552aa7c59596a5b', x'7798435ec8ef4a98986b7cad5fe78b25') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7e745b5a03774a6c9552aa7c59596a5b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7e745b5a03774a6c9552aa7c59596a5b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7e745b5a03774a6c9552aa7c59596a5b', x'0f0be3bfbd0d43dda7ad73cd5550a423', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7e745b5a03774a6c9552aa7c59596a5b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7e745b5a03774a6c9552aa7c59596a5b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7e745b5a03774a6c9552aa7c59596a5b', x'e2c7b6e9553042bc97ad4896ee51f60d', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:32 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b8e49ac_107080435d48719de@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:32', x'687b244b08484ec1a8dfd1324c8e13ac', 'jabanilson', NULL, 1, '2013-01-02 11:06:32')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:32', `updated_at` = '2013-01-02 11:06:32', `subdomain` = 'account687b244b-0848-4ec1-a8df-d1324c8e13ac' WHERE `accounts`.`id` = x'687b244b08484ec1a8dfd1324c8e13ac'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'687b244b08484ec1a8dfd1324c8e13ac', x'214b71216c554458bc001ac4574157e4', x'7798435ec8ef4a98986b7cad5fe78b25') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'214b71216c554458bc001ac4574157e4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'214b71216c554458bc001ac4574157e4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'214b71216c554458bc001ac4574157e4', x'12b0d26572934afbb0e99dcc71efc7f4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'214b71216c554458bc001ac4574157e4') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'214b71216c554458bc001ac4574157e4' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'214b71216c554458bc001ac4574157e4', x'1d13dafb9d9446eeb2b56d33167a95df', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00c35ae364684dbb859903f781318158' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'00c35ae364684dbb859903f781318158' WHERE `account_users`.`id` = x'214b71216c554458bc001ac4574157e4'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'214b71216c554458bc001ac4574157e4'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'214b71216c554458bc001ac4574157e4' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'12b0d26572934afbb0e99dcc71efc7f4' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1d13dafb9d9446eeb2b56d33167a95df'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'214b71216c554458bc001ac4574157e4') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'214b71216c554458bc001ac4574157e4' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'214b71216c554458bc001ac4574157e4', x'7d054d6d0670478782e40d7390f19f84', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/00c35ae3-6468-4dbb-8599-03f781318158/users" for 127.0.0.1 at 2013-01-02 09:06:32 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"00c35ae3-6468-4dbb-8599-03f781318158"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00c35ae364684dbb859903f781318158' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_00c35ae3-6468-4dbb-8599-03f781318158_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'00c35ae364684dbb859903f781318158' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'00c35ae364684dbb859903f781318158' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7798435ec8ef4a98986b7cad5fe78b25' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'00c35ae364684dbb859903f781318158' AND `account_users`.`user_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c3a2b21f2d1a48c3b8204a20d4fceb4e' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_214b7121-6c55-4458-bc00-1ac4574157e4_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'214b71216c554458bc001ac4574157e4' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'00c35ae364684dbb859903f781318158' AND `account_users`.`user_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c3a2b21f2d1a48c3b8204a20d4fceb4e' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_c3a2b21f-2d1a-48c3-b820-4a20d4fceb4e_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c3a2b21f2d1a48c3b8204a20d4fceb4e' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'00c35ae364684dbb859903f781318158' AND `account_users`.`user_id` = x'e3baf883a8b14cfaa74a1b3571c2e147' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c3a2b21f2d1a48c3b8204a20d4fceb4e' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 28ms (Views: 20.8ms | ActiveRecord: 3.7ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:33', 'teste@teste.com', '$2a$04$PP1pLoBF4h9/GP6We5MTguBxk.g80YfIKmYmU4.2IppTSUrB0XYdq', NULL, x'ecce04b45e6545d8834e51342efe2e89', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ecce04b45e6545d8834e51342efe2e89' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:33', 'User', x'f36176813696472395cb7aaac46d97f5', '93e4b4c425445f7db34fa893ecf6020b', x'ecce04b45e6545d8834e51342efe2e89', 'User', '2013-01-02 11:06:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ecce04b45e6545d8834e51342efe2e89' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'8f78f165796c4055848cca3ab2b48576', NULL, NULL, NULL, '2013-01-02 11:06:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'account8f78f165-796c-4055-848c-ca3ab2b48576' WHERE `accounts`.`id` = x'8f78f165796c4055848cca3ab2b48576' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f78f165796c4055848cca3ab2b48576' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8f78f165796c4055848cca3ab2b48576', x'a8e374b1cb09422abb423514cbabb90b', x'ecce04b45e6545d8834e51342efe2e89') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a8e374b1cb09422abb423514cbabb90b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a8e374b1cb09422abb423514cbabb90b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a8e374b1cb09422abb423514cbabb90b', x'83ddd2af0e6f4147b3fdc4df1d01e89d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a8e374b1cb09422abb423514cbabb90b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a8e374b1cb09422abb423514cbabb90b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a8e374b1cb09422abb423514cbabb90b', x'b1ac4fed0e6d41f98c3c80d4a8a4ad53', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:33 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b9b76b_107080435d4872036@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ecce04b45e6545d8834e51342efe2e89' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:33', 'xpto@account.test', '$2a$04$mRIn8Mns2gsMOmwI/FCqu.dodwGMaLz2hjVYzJVTK07Q7207iOeIu', NULL, x'9bef27807e45493ebb94ef9b8274b6b1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:33') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'9bef27807e45493ebb94ef9b8274b6b1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:33', 'User', x'99e89002f50e433caeef53e14d3efa3f', '1121904df81791747340112d86f8e95b', x'9bef27807e45493ebb94ef9b8274b6b1', 'User', '2013-01-02 11:06:33') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'9bef27807e45493ebb94ef9b8274b6b1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'2801940d2cc94905b88855361305ae02', NULL, NULL, NULL, '2013-01-02 11:06:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'account2801940d-2cc9-4905-b888-55361305ae02' WHERE `accounts`.`id` = x'2801940d2cc94905b88855361305ae02' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2801940d2cc94905b88855361305ae02' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2801940d2cc94905b88855361305ae02', x'f1e4cf785d6a446faf02464cabc16fbe', x'9bef27807e45493ebb94ef9b8274b6b1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f1e4cf785d6a446faf02464cabc16fbe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f1e4cf785d6a446faf02464cabc16fbe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f1e4cf785d6a446faf02464cabc16fbe', x'e5f74cdde0344aa0b98fab70fdb40936', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f1e4cf785d6a446faf02464cabc16fbe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f1e4cf785d6a446faf02464cabc16fbe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f1e4cf785d6a446faf02464cabc16fbe', x'960a02fc18704b77a74b86427807c8cf', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:33 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b93d79f_107080435d48721f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'3c6e797c753449e3a436360b41f00124', 'jabanilson', NULL, 1, '2013-01-02 11:06:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'account3c6e797c-7534-49e3-a436-360b41f00124' WHERE `accounts`.`id` = x'3c6e797c753449e3a436360b41f00124'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3c6e797c753449e3a436360b41f00124', x'1aae4ce946e34bed8de4362b2a485bcf', x'9bef27807e45493ebb94ef9b8274b6b1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1aae4ce946e34bed8de4362b2a485bcf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1aae4ce946e34bed8de4362b2a485bcf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1aae4ce946e34bed8de4362b2a485bcf', x'd3f365f607de40e7820c596806eff8c3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1aae4ce946e34bed8de4362b2a485bcf') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1aae4ce946e34bed8de4362b2a485bcf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1aae4ce946e34bed8de4362b2a485bcf', x'598b3b9d8e724ff2b7335f4086d63400', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f78f165796c4055848cca3ab2b48576' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'8f78f165796c4055848cca3ab2b48576' WHERE `account_users`.`id` = x'1aae4ce946e34bed8de4362b2a485bcf'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1aae4ce946e34bed8de4362b2a485bcf'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'598b3b9d8e724ff2b7335f4086d63400' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1aae4ce946e34bed8de4362b2a485bcf' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'xñeyl@U„ŒÊ:²´…v' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd3f365f607de40e7820c596806eff8c3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'1aae4ce946e34bed8de4362b2a485bcf') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1aae4ce946e34bed8de4362b2a485bcf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1aae4ce946e34bed8de4362b2a485bcf', x'2fb8192842ec4f0e8ca8cd238fb633e3', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/8f78f165-796c-4055-848c-ca3ab2b48576/users" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"8f78f165-796c-4055-848c-ca3ab2b48576"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f78f165796c4055848cca3ab2b48576' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_8f78f165-796c-4055-848c-ca3ab2b48576_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f78f165796c4055848cca3ab2b48576' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8f78f165796c4055848cca3ab2b48576' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'9bef27807e45493ebb94ef9b8274b6b1' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8f78f165796c4055848cca3ab2b48576' AND `account_users`.`user_id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a8e374b1cb09422abb423514cbabb90b' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_1aae4ce9-46e3-4bed-8de4-362b2a485bcf_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1aae4ce946e34bed8de4362b2a485bcf' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8f78f165796c4055848cca3ab2b48576' AND `account_users`.`user_id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a8e374b1cb09422abb423514cbabb90b' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_a8e374b1-cb09-422a-bb42-3514cbabb90b_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a8e374b1cb09422abb423514cbabb90b' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'8f78f165796c4055848cca3ab2b48576' AND `account_users`.`user_id` = x'ecce04b45e6545d8834e51342efe2e89' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a8e374b1cb09422abb423514cbabb90b' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 27ms (Views: 19.4ms | ActiveRecord: 3.8ms)  (1.6ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:33', 'teste@teste.com', '$2a$04$uOUl7Pctmfzkfb2H4DhXk.o5ic8RvCfpY9kzPuz0sWr3OMqDm61ZO', NULL, x'41d93a86ebc14760ab38490f231e9d55', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'41d93a86ebc14760ab38490f231e9d55' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:33', 'User', x'9f3ac5968a01402e8c1930ee42edc25f', '494a88f039257d82906b45578646d8b9', x'41d93a86ebc14760ab38490f231e9d55', 'User', '2013-01-02 11:06:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'41d93a86ebc14760ab38490f231e9d55' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'213c64d03bec4e03918168c4f02e5099', NULL, NULL, NULL, '2013-01-02 11:06:33')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'account213c64d0-3bec-4e03-9181-68c4f02e5099' WHERE `accounts`.`id` = x'213c64d03bec4e03918168c4f02e5099' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'213c64d03bec4e03918168c4f02e5099' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'213c64d03bec4e03918168c4f02e5099', x'cbcb152956cb464e835989bdd604a313', x'41d93a86ebc14760ab38490f231e9d55') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cbcb152956cb464e835989bdd604a313') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cbcb152956cb464e835989bdd604a313' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cbcb152956cb464e835989bdd604a313', x'adb3526e8aef4d3e967cf329f7a50b4a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cbcb152956cb464e835989bdd604a313') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cbcb152956cb464e835989bdd604a313' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cbcb152956cb464e835989bdd604a313', x'9b8b25d9dcbb482384110c6d737be266', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:33 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b9586a0_107080435d487222@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:33', 'xpto@account.test', '$2a$04$V3THcJX7K8pJdm4nqtM5de/ytREvXWGXYUTMvinQRwoZmaQkkYSgu', NULL, x'0cd99c3518844c0f89dc01a052a243c6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0cd99c3518844c0f89dc01a052a243c6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:33', 'User', x'c4ab8b9f3d194cb4892bd71aa173b8bc', '8180f861c60e8b72e111f62e03d70db2', x'0cd99c3518844c0f89dc01a052a243c6', 'User', '2013-01-02 11:06:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0cd99c3518844c0f89dc01a052a243c6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'8f512f5553c94302a13f305c2fad6600', NULL, NULL, NULL, '2013-01-02 11:06:33')  (0.2ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'account8f512f55-53c9-4302-a13f-305c2fad6600' WHERE `accounts`.`id` = x'8f512f5553c94302a13f305c2fad6600' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8f512f5553c94302a13f305c2fad6600' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8f512f5553c94302a13f305c2fad6600', x'7b7171dec45b4a23bd8649e1aad5d03f', x'0cd99c3518844c0f89dc01a052a243c6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7b7171dec45b4a23bd8649e1aad5d03f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b7171dec45b4a23bd8649e1aad5d03f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b7171dec45b4a23bd8649e1aad5d03f', x'149715d4393e43848ebde41119c1dc35', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7b7171dec45b4a23bd8649e1aad5d03f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7b7171dec45b4a23bd8649e1aad5d03f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7b7171dec45b4a23bd8649e1aad5d03f', x'e05060c9f07d4ea5ad387e3bcbf95aaf', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:33 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b96d1e3_107080435d48723b2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'6e85ecb407584e64ac9d85ebc7e58aa6', 'jabanilson', NULL, 1, '2013-01-02 11:06:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'account6e85ecb4-0758-4e64-ac9d-85ebc7e58aa6' WHERE `accounts`.`id` = x'6e85ecb407584e64ac9d85ebc7e58aa6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6e85ecb407584e64ac9d85ebc7e58aa6', x'c2a0dcbf071e44a58b2b92461106e158', x'0cd99c3518844c0f89dc01a052a243c6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c2a0dcbf071e44a58b2b92461106e158') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c2a0dcbf071e44a58b2b92461106e158' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c2a0dcbf071e44a58b2b92461106e158', x'20443b83d33142c4a8811439c5b920d7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c2a0dcbf071e44a58b2b92461106e158') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c2a0dcbf071e44a58b2b92461106e158' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c2a0dcbf071e44a58b2b92461106e158', x'dab4c7a6e07c4a759894669797efef1c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'213c64d03bec4e03918168c4f02e5099' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'213c64d03bec4e03918168c4f02e5099' WHERE `account_users`.`id` = x'c2a0dcbf071e44a58b2b92461106e158'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'c2a0dcbf071e44a58b2b92461106e158'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c2a0dcbf071e44a58b2b92461106e158' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '!"213c64d0-3bec-4e03-9181-68c4f02e5099"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'213c64d03bec4e03918168c4f02e5099' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_213c64d0-3bec-4e03-9181-68c4f02e5099_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'213c64d03bec4e03918168c4f02e5099' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'213c64d03bec4e03918168c4f02e5099' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0cd99c3518844c0f89dc01a052a243c6' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'213c64d03bec4e03918168c4f02e5099' AND `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cbcb152956cb464e835989bdd604a313' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'213c64d03bec4e03918168c4f02e5099' AND `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cbcb152956cb464e835989bdd604a313' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'213c64d03bec4e03918168c4f02e5099' AND `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cbcb152956cb464e835989bdd604a313' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'213c64d03bec4e03918168c4f02e5099' AND `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cbcb152956cb464e835989bdd604a313' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'213c64d03bec4e03918168c4f02e5099' AND `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cbcb152956cb464e835989bdd604a313' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'213c64d03bec4e03918168c4f02e5099' AND `account_users`.`user_id` = x'41d93a86ebc14760ab38490f231e9d55' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cbcb152956cb464e835989bdd604a313' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 144ms (Views: 136.8ms | ActiveRecord: 3.3ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:33', 'teste@teste.com', '$2a$04$LMPdd2XZYnq/sD/ldSyl3u97ehIvCIwiRQkh4A55ZfxPLdMpiYmsC', NULL, x'881c104e3be04492850f0359d99e5af7', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'881c104e3be04492850f0359d99e5af7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:33', 'User', x'7af15b5ffd564835a0ca049148289e0e', 'ac4f60774d7b96db14d1c5dea066c298', x'881c104e3be04492850f0359d99e5af7', 'User', '2013-01-02 11:06:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'881c104e3be04492850f0359d99e5af7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'4c83eaacd2884ca7a8c8818090848e4c', NULL, NULL, NULL, '2013-01-02 11:06:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'account4c83eaac-d288-4ca7-a8c8-818090848e4c' WHERE `accounts`.`id` = x'4c83eaacd2884ca7a8c8818090848e4c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c83eaacd2884ca7a8c8818090848e4c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4c83eaacd2884ca7a8c8818090848e4c', x'28d30e37fb6b4d738fa8a29c86049471', x'881c104e3be04492850f0359d99e5af7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'28d30e37fb6b4d738fa8a29c86049471' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'28d30e37fb6b4d738fa8a29c86049471', x'c91e1630f09d4723b7c887bcc35fb110', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'28d30e37fb6b4d738fa8a29c86049471' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'28d30e37fb6b4d738fa8a29c86049471', x'5c603a13589141c1a81acb46ae58762f', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:33 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414b9a6f25_107080435d48724b9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:33', 'xpto@account.test', '$2a$04$AmEqRTug2ge8vcZokZ3gGegtWz.DGCPnOjw7jRyPYsmXh0hPtdxk2', NULL, x'd6dad53e1a91483fbf16af74388a8337', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd6dad53e1a91483fbf16af74388a8337' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:33', 'User', x'ca4e33c66386438aaaa59e862dbcba84', 'b3a690046ce42441a82e5831508eb65a', x'd6dad53e1a91483fbf16af74388a8337', 'User', '2013-01-02 11:06:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd6dad53e1a91483fbf16af74388a8337' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'10125a4c7f674974895523625840f5ed', NULL, NULL, NULL, '2013-01-02 11:06:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'account10125a4c-7f67-4974-8955-23625840f5ed' WHERE `accounts`.`id` = x'10125a4c7f674974895523625840f5ed' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'10125a4c7f674974895523625840f5ed' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'10125a4c7f674974895523625840f5ed', x'006050367186455fad59e7d7816bc489', x'd6dad53e1a91483fbf16af74388a8337') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'006050367186455fad59e7d7816bc489') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'006050367186455fad59e7d7816bc489' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'006050367186455fad59e7d7816bc489', x'b590cd9a8d314172990ca828ee7e5bbb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'006050367186455fad59e7d7816bc489') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'006050367186455fad59e7d7816bc489' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'006050367186455fad59e7d7816bc489', x'ffe427c074724ea3bc9783408c6fa02a', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:33 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414b9bbe98_107080435d4872532@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'adf378286a524b72a96849e1358695c3', 'jabanilson', NULL, 1, '2013-01-02 11:06:33')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'accountadf37828-6a52-4b72-a968-49e1358695c3' WHERE `accounts`.`id` = x'adf378286a524b72a96849e1358695c3'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'adf378286a524b72a96849e1358695c3', x'87062a06a5ca469db0928776de5917f2', x'd6dad53e1a91483fbf16af74388a8337') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'87062a06a5ca469db0928776de5917f2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87062a06a5ca469db0928776de5917f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'87062a06a5ca469db0928776de5917f2', x'f98c379d145a49b7b7b710779d3f63e6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'87062a06a5ca469db0928776de5917f2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87062a06a5ca469db0928776de5917f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'87062a06a5ca469db0928776de5917f2', x'7dc20281813942aa8bdeb5de50cf9604', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c83eaacd2884ca7a8c8818090848e4c' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'4c83eaacd2884ca7a8c8818090848e4c' WHERE `account_users`.`id` = x'87062a06a5ca469db0928776de5917f2'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'87062a06a5ca469db0928776de5917f2'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7dc20281813942aa8bdeb5de50cf9604' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87062a06a5ca469db0928776de5917f2' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Lƒê¬ÒˆL§¨È€„ŽL' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'f98c379d145a49b7b7b710779d3f63e6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'87062a06a5ca469db0928776de5917f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87062a06a5ca469db0928776de5917f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'87062a06a5ca469db0928776de5917f2', x'9a38af79d18447c49054c81218aca5df', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9a38af79d18447c49054c81218aca5df'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'87062a06a5ca469db0928776de5917f2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'87062a06a5ca469db0928776de5917f2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'87062a06a5ca469db0928776de5917f2', x'c4547236c3ca4a94a95273fd203afbcc', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'5c603a13589141c1a81acb46ae58762f' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'28d30e37fb6b4d738fa8a29c86049471' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Lƒê¬ÒˆL§¨È€„ŽL' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c91e1630f09d4723b7c887bcc35fb110'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'28d30e37fb6b4d738fa8a29c86049471' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'28d30e37fb6b4d738fa8a29c86049471', x'4af8d9beed3d44e5872a720d0f6ef06f', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/4c83eaac-d288-4ca7-a8c8-818090848e4c/users" for 127.0.0.1 at 2013-01-02 09:06:33 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"4c83eaac-d288-4ca7-a8c8-818090848e4c"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c83eaacd2884ca7a8c8818090848e4c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_4c83eaac-d288-4ca7-a8c8-818090848e4c_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4c83eaacd2884ca7a8c8818090848e4c' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c83eaacd2884ca7a8c8818090848e4c' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c83eaacd2884ca7a8c8818090848e4c' AND `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c83eaacd2884ca7a8c8818090848e4c' AND `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471' AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd6dad53e1a91483fbf16af74388a8337' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c83eaacd2884ca7a8c8818090848e4c' AND `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c83eaacd2884ca7a8c8818090848e4c' AND `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c83eaacd2884ca7a8c8818090848e4c' AND `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'4c83eaacd2884ca7a8c8818090848e4c' AND `account_users`.`user_id` = x'881c104e3be04492850f0359d99e5af7' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'28d30e37fb6b4d738fa8a29c86049471' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 25ms (Views: 18.4ms | ActiveRecord: 3.1ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:33', 'teste@teste.com', '$2a$04$PcHSnANnnEhP67xxb4CwaeE5Gy4gaD68Vxee0we53xNN37hiFsud6', NULL, x'5c63c92797c2422c9efb382461bda759', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:33') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5c63c92797c2422c9efb382461bda759' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:33', 'User', x'b4ff274057884b7a97d3b9d1574cb364', 'e2609fa4ba85d3ddb8d54c822a7205f6', x'5c63c92797c2422c9efb382461bda759', 'User', '2013-01-02 11:06:33') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5c63c92797c2422c9efb382461bda759' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:33', x'bdac6d46f5f44706a27c0ea11b4b1700', NULL, NULL, NULL, '2013-01-02 11:06:33')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:33', `updated_at` = '2013-01-02 11:06:33', `subdomain` = 'accountbdac6d46-f5f4-4706-a27c-0ea11b4b1700' WHERE `accounts`.`id` = x'bdac6d46f5f44706a27c0ea11b4b1700' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bdac6d46f5f44706a27c0ea11b4b1700' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bdac6d46f5f44706a27c0ea11b4b1700', x'ce5395885c394e359a3b1b4fa0c6ac47', x'5c63c92797c2422c9efb382461bda759') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce5395885c394e359a3b1b4fa0c6ac47' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce5395885c394e359a3b1b4fa0c6ac47', x'43bc0e5d3b5340eeac4c7a94ae4dbea1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce5395885c394e359a3b1b4fa0c6ac47' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce5395885c394e359a3b1b4fa0c6ac47', x'bf0d3db719584d74b117d2593d0ebf8f', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:34 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ba1f5b_107080435d487265b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:34', 'xpto@account.test', '$2a$04$gThaee1Ffezt4RzbwstpwO.ujP3sLoUviYmMUdiTyoSOOw/Eb34qW', NULL, x'1f68ae101aee4e1f8a71a41518d5b3ea', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1f68ae101aee4e1f8a71a41518d5b3ea' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:34', 'User', x'ab5f3a0fccb24fddb41215860282e295', '2c10be397716cf61ee5a25895799bcb6', x'1f68ae101aee4e1f8a71a41518d5b3ea', 'User', '2013-01-02 11:06:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1f68ae101aee4e1f8a71a41518d5b3ea' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'4b052392601c4e9083ea5f60ee0cc673', NULL, NULL, NULL, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'account4b052392-601c-4e90-83ea-5f60ee0cc673' WHERE `accounts`.`id` = x'4b052392601c4e9083ea5f60ee0cc673' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'4b052392601c4e9083ea5f60ee0cc673' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'4b052392601c4e9083ea5f60ee0cc673', x'195f6e93c87c4afb93b02802033f2d59', x'1f68ae101aee4e1f8a71a41518d5b3ea') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'195f6e93c87c4afb93b02802033f2d59') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'195f6e93c87c4afb93b02802033f2d59' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'195f6e93c87c4afb93b02802033f2d59', x'375f0a17a32d4c449629d3a41ce95767', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'195f6e93c87c4afb93b02802033f2d59') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'195f6e93c87c4afb93b02802033f2d59' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'195f6e93c87c4afb93b02802033f2d59', x'92e90876089b4bc7b99cbc7f45dd5e85', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:34 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414ba17764_107080435d487277c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'c42301dca26f43248f423c7181ebf3ec', 'jabanilson', NULL, 1, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'accountc42301dc-a26f-4324-8f42-3c7181ebf3ec' WHERE `accounts`.`id` = x'c42301dca26f43248f423c7181ebf3ec'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c42301dca26f43248f423c7181ebf3ec', x'518c8fa1d7644339a674b13c89514936', x'1f68ae101aee4e1f8a71a41518d5b3ea') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'518c8fa1d7644339a674b13c89514936') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'518c8fa1d7644339a674b13c89514936' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'518c8fa1d7644339a674b13c89514936', x'0d428da17e1d4feeab689b4d50819e6e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'518c8fa1d7644339a674b13c89514936') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'518c8fa1d7644339a674b13c89514936' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'518c8fa1d7644339a674b13c89514936', x'406b8a8de08941d0932dc4adfb2d73cc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bdac6d46f5f44706a27c0ea11b4b1700' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'bdac6d46f5f44706a27c0ea11b4b1700' WHERE `account_users`.`id` = x'518c8fa1d7644339a674b13c89514936'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'518c8fa1d7644339a674b13c89514936'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'518c8fa1d7644339a674b13c89514936' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0d428da17e1d4feeab689b4d50819e6e' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'406b8a8de08941d0932dc4adfb2d73cc'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'518c8fa1d7644339a674b13c89514936') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'518c8fa1d7644339a674b13c89514936' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'518c8fa1d7644339a674b13c89514936', x'25ca8e11afd44d13b6d487068003e748', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'25ca8e11afd44d13b6d487068003e748'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'518c8fa1d7644339a674b13c89514936') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'518c8fa1d7644339a674b13c89514936' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'518c8fa1d7644339a674b13c89514936', x'b4485d17130a4b14a1525a988398c9f6', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce5395885c394e359a3b1b4fa0c6ac47' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'43bc0e5d3b5340eeac4c7a94ae4dbea1' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'bf0d3db719584d74b117d2593d0ebf8f'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ce5395885c394e359a3b1b4fa0c6ac47' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ce5395885c394e359a3b1b4fa0c6ac47', x'93c5f94a5b25478ab11b4d6fcc70ac63', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/bdac6d46-f5f4-4706-a27c-0ea11b4b1700/users" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"bdac6d46-f5f4-4706-a27c-0ea11b4b1700"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bdac6d46f5f44706a27c0ea11b4b1700' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bdac6d46-f5f4-4706-a27c-0ea11b4b1700_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bdac6d46f5f44706a27c0ea11b4b1700' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bdac6d46f5f44706a27c0ea11b4b1700' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1f68ae101aee4e1f8a71a41518d5b3ea' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bdac6d46f5f44706a27c0ea11b4b1700' AND `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bdac6d46f5f44706a27c0ea11b4b1700' AND `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bdac6d46f5f44706a27c0ea11b4b1700' AND `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bdac6d46f5f44706a27c0ea11b4b1700' AND `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bdac6d46f5f44706a27c0ea11b4b1700' AND `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bdac6d46f5f44706a27c0ea11b4b1700' AND `account_users`.`user_id` = x'5c63c92797c2422c9efb382461bda759' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ce5395885c394e359a3b1b4fa0c6ac47' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 26ms (Views: 18.7ms | ActiveRecord: 3.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:34', 'teste@teste.com', '$2a$04$xc/bZ9K.4rP.XsfGRTXV2.jVJo0ZyWXYIDh/S2HzOi0MMzoo6WfGO', NULL, x'f187e30fffa64093abcc47049e66ff7a', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f187e30fffa64093abcc47049e66ff7a' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:34', 'User', x'e6a6cc08f7aa40f09963e6659f53a58c', '6a76e8d68efb60e95ced4899ffc9c8ec', x'f187e30fffa64093abcc47049e66ff7a', 'User', '2013-01-02 11:06:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f187e30fffa64093abcc47049e66ff7a' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'393ff08b20ae4ab185bef0754dde1f1c', NULL, NULL, NULL, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'account393ff08b-20ae-4ab1-85be-f0754dde1f1c' WHERE `accounts`.`id` = x'393ff08b20ae4ab185bef0754dde1f1c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'393ff08b20ae4ab185bef0754dde1f1c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'393ff08b20ae4ab185bef0754dde1f1c', x'aed61a5e879645f1ae1c4fd082a06d98', x'f187e30fffa64093abcc47049e66ff7a') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aed61a5e879645f1ae1c4fd082a06d98' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aed61a5e879645f1ae1c4fd082a06d98', x'74f2ba1c19e74bff8f0a4599f2d19bfb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aed61a5e879645f1ae1c4fd082a06d98' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aed61a5e879645f1ae1c4fd082a06d98', x'ceff35189bf9436b8ad17df6237a40b3', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:34 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ba35259_107080435d487288a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 Completed 302 Found in 131ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:34', 'xpto@account.test', '$2a$04$IEOwqiubeKoYGwN6gps31efrnXAtStWqJX8/q22vjmSxttJvEsbSq', NULL, x'6f4e9e27a74345dcb8fa50256a91a9b8', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'6f4e9e27a74345dcb8fa50256a91a9b8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:34', 'User', x'009427b3ba414b8d8b46146e0418f4b3', '4d75b69b862d9f51f6198b27446b8716', x'6f4e9e27a74345dcb8fa50256a91a9b8', 'User', '2013-01-02 11:06:34') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'6f4e9e27a74345dcb8fa50256a91a9b8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'd33fe68a4a284cdcbb4061d1a719ac35', NULL, NULL, NULL, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'accountd33fe68a-4a28-4cdc-bb40-61d1a719ac35' WHERE `accounts`.`id` = x'd33fe68a4a284cdcbb4061d1a719ac35' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd33fe68a4a284cdcbb4061d1a719ac35' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd33fe68a4a284cdcbb4061d1a719ac35', x'dc737ef39f1f4a588eb216bbf72bef4f', x'6f4e9e27a74345dcb8fa50256a91a9b8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dc737ef39f1f4a588eb216bbf72bef4f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dc737ef39f1f4a588eb216bbf72bef4f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dc737ef39f1f4a588eb216bbf72bef4f', x'2f918056791b403389e211dbca12ddf0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dc737ef39f1f4a588eb216bbf72bef4f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dc737ef39f1f4a588eb216bbf72bef4f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dc737ef39f1f4a588eb216bbf72bef4f', x'589361907cc0451caaec704d9f17e851', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:34 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414ba67b76_107080435d487298d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'e46d48fc22964f7b8a136a6a8f3c4a2f', 'jabanilson', NULL, 1, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'accounte46d48fc-2296-4f7b-8a13-6a6a8f3c4a2f' WHERE `accounts`.`id` = x'e46d48fc22964f7b8a136a6a8f3c4a2f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e46d48fc22964f7b8a136a6a8f3c4a2f', x'd3b9115a15354520887d94c12c7f33d7', x'6f4e9e27a74345dcb8fa50256a91a9b8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd3b9115a15354520887d94c12c7f33d7') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3b9115a15354520887d94c12c7f33d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3b9115a15354520887d94c12c7f33d7', x'd54c4f61a10b4c21a226b10dc63601ef', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd3b9115a15354520887d94c12c7f33d7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3b9115a15354520887d94c12c7f33d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3b9115a15354520887d94c12c7f33d7', x'e04f7c97b79d4234af8ecc1a47146d1a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'393ff08b20ae4ab185bef0754dde1f1c' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'393ff08b20ae4ab185bef0754dde1f1c' WHERE `account_users`.`id` = x'd3b9115a15354520887d94c12c7f33d7'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd3b9115a15354520887d94c12c7f33d7'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3b9115a15354520887d94c12c7f33d7' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '9?ð‹ ®J±…¾ðuMÞ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'd54c4f61a10b4c21a226b10dc63601ef' SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'e04f7c97b79d4234af8ecc1a47146d1a'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'd3b9115a15354520887d94c12c7f33d7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3b9115a15354520887d94c12c7f33d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3b9115a15354520887d94c12c7f33d7', x'8b8b90a10bda4475a6d91002156f4b87', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8b8b90a10bda4475a6d91002156f4b87'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd3b9115a15354520887d94c12c7f33d7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd3b9115a15354520887d94c12c7f33d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd3b9115a15354520887d94c12c7f33d7', x'd1cc6cd6a91e4ef2b06b2a51abef2c70', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aed61a5e879645f1ae1c4fd082a06d98' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '9?ð‹ ®J±…¾ðuMÞ' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'74f2ba1c19e74bff8f0a4599f2d19bfb' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ceff35189bf9436b8ad17df6237a40b3'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'aed61a5e879645f1ae1c4fd082a06d98' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'aed61a5e879645f1ae1c4fd082a06d98', x'a8efd9d3f52547c4a0a93081cc43901f', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/393ff08b-20ae-4ab1-85be-f0754dde1f1c/users" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"393ff08b-20ae-4ab1-85be-f0754dde1f1c"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'393ff08b20ae4ab185bef0754dde1f1c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_393ff08b-20ae-4ab1-85be-f0754dde1f1c_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'393ff08b20ae4ab185bef0754dde1f1c' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'393ff08b20ae4ab185bef0754dde1f1c' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'393ff08b20ae4ab185bef0754dde1f1c' AND `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'393ff08b20ae4ab185bef0754dde1f1c' AND `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98' AND `account_roles`.`name` = 'admin' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'6f4e9e27a74345dcb8fa50256a91a9b8' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'393ff08b20ae4ab185bef0754dde1f1c' AND `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'393ff08b20ae4ab185bef0754dde1f1c' AND `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98' AND `account_roles`.`name` = 'admin' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'393ff08b20ae4ab185bef0754dde1f1c' AND `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'393ff08b20ae4ab185bef0754dde1f1c' AND `account_users`.`user_id` = x'f187e30fffa64093abcc47049e66ff7a' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'aed61a5e879645f1ae1c4fd082a06d98' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 27ms (Views: 19.5ms | ActiveRecord: 3.2ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:34', 'teste@teste.com', '$2a$04$lRyloF.s9nDGDbbZrFgM..nnDZeAQxAcaFfvkXuAWTJa.xs1MLv2C', NULL, x'22c5f5a769784bbaaaa1b305ad33e665', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'22c5f5a769784bbaaaa1b305ad33e665' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:34', 'User', x'ac6f87cf12924735b2cd3db1f2f67c58', '4176ef5b815fa6ed2d77a9b926005e0e', x'22c5f5a769784bbaaaa1b305ad33e665', 'User', '2013-01-02 11:06:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'22c5f5a769784bbaaaa1b305ad33e665' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'a94e1b1410eb42d28aecf50b11246a7f', NULL, NULL, NULL, '2013-01-02 11:06:34')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'accounta94e1b14-10eb-42d2-8aec-f50b11246a7f' WHERE `accounts`.`id` = x'a94e1b1410eb42d28aecf50b11246a7f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a94e1b1410eb42d28aecf50b11246a7f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a94e1b1410eb42d28aecf50b11246a7f', x'3051f0547f444ea4bc981dd47e72ef59', x'22c5f5a769784bbaaaa1b305ad33e665') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3051f0547f444ea4bc981dd47e72ef59') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3051f0547f444ea4bc981dd47e72ef59' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3051f0547f444ea4bc981dd47e72ef59', x'981e25067d174d84b1305711af00be3b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3051f0547f444ea4bc981dd47e72ef59') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3051f0547f444ea4bc981dd47e72ef59' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3051f0547f444ea4bc981dd47e72ef59', x'f4b066cfd0064c23a4074e7fe7111516', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:34 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414ba85782_107080435d4873069@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22c5f5a769784bbaaaa1b305ad33e665' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:34', 'xpto@account.test', '$2a$04$zsSPqezI3B3vk4Wmbr.y2Or4tA8zI0NkELVKJ5kGOqtEZFiFF4YwS', NULL, x'ed163450293143a5b2c42a79b361006f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ed163450293143a5b2c42a79b361006f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:34', 'User', x'ebcab375d442412dab9e769b23830b59', '940f7caec2527350b41685c8dbad0beb', x'ed163450293143a5b2c42a79b361006f', 'User', '2013-01-02 11:06:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ed163450293143a5b2c42a79b361006f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'e50319be489844c289114baf053edb15', NULL, NULL, NULL, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'accounte50319be-4898-44c2-8911-4baf053edb15' WHERE `accounts`.`id` = x'e50319be489844c289114baf053edb15' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e50319be489844c289114baf053edb15' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e50319be489844c289114baf053edb15', x'af691ec984fe406ebd220b50fca8a177', x'ed163450293143a5b2c42a79b361006f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'af691ec984fe406ebd220b50fca8a177') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'af691ec984fe406ebd220b50fca8a177' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'af691ec984fe406ebd220b50fca8a177', x'0450fd9c806240e0aa3bb2a5df3db556', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'af691ec984fe406ebd220b50fca8a177') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'af691ec984fe406ebd220b50fca8a177' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'af691ec984fe406ebd220b50fca8a177', x'b4d86ff81c3a4392b53dc74991be300e', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:34 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414bab8a3b_107080435d4873131@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'41af66b1d7fd4802a428eff767192070', 'jabanilson', NULL, 1, '2013-01-02 11:06:34')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'account41af66b1-d7fd-4802-a428-eff767192070' WHERE `accounts`.`id` = x'41af66b1d7fd4802a428eff767192070'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'41af66b1d7fd4802a428eff767192070', x'2ebb79787d7a4ff4acf26a0f6b4e0864', x'ed163450293143a5b2c42a79b361006f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ebb79787d7a4ff4acf26a0f6b4e0864', x'410d8e3cd2f9437281517348e764ed3f', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ebb79787d7a4ff4acf26a0f6b4e0864', x'89d8f2de331e4c609bf741cc3fa885fc', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a94e1b1410eb42d28aecf50b11246a7f' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'a94e1b1410eb42d28aecf50b11246a7f' WHERE `account_users`.`id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '©NëBÒŠìõ $j' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'410d8e3cd2f9437281517348e764ed3f' SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'89d8f2de331e4c609bf741cc3fa885fc'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ebb79787d7a4ff4acf26a0f6b4e0864', x'0cba0ae8cb3d4a9aa272d7edf2dd71e2', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'0cba0ae8cb3d4a9aa272d7edf2dd71e2'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2ebb79787d7a4ff4acf26a0f6b4e0864', x'67b4f057eadb4b7e9eb82c49152945e2', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/a94e1b14-10eb-42d2-8aec-f50b11246a7f/users" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"a94e1b14-10eb-42d2-8aec-f50b11246a7f"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a94e1b1410eb42d28aecf50b11246a7f' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a94e1b14-10eb-42d2-8aec-f50b11246a7f_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a94e1b1410eb42d28aecf50b11246a7f' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a94e1b1410eb42d28aecf50b11246a7f' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ed163450293143a5b2c42a79b361006f' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a94e1b1410eb42d28aecf50b11246a7f' AND `account_users`.`user_id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3051f0547f444ea4bc981dd47e72ef59' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_2ebb7978-7d7a-4ff4-acf2-6a0f6b4e0864_destroy' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2ebb79787d7a4ff4acf26a0f6b4e0864' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a94e1b1410eb42d28aecf50b11246a7f' AND `account_users`.`user_id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3051f0547f444ea4bc981dd47e72ef59' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_3051f054-7f44-4ea4-bc98-1dd47e72ef59_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3051f0547f444ea4bc981dd47e72ef59' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a94e1b1410eb42d28aecf50b11246a7f' AND `account_users`.`user_id` = x'22c5f5a769784bbaaaa1b305ad33e665' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3051f0547f444ea4bc981dd47e72ef59' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 25ms (Views: 17.8ms | ActiveRecord: 3.7ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:34', 'teste@teste.com', '$2a$04$.m4mAtzv3P/t9ZDC/8alSOxGgzkyUGVgi78lIIeTbwTMb/I90gy3i', NULL, x'e7cad487cbf04243b81aba8d6b9fad37', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:34') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e7cad487cbf04243b81aba8d6b9fad37' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:34', 'User', x'b4749cb00a5a426b95eae63fda6e7f31', 'eb7b4c44657324628845bd329f5cf376', x'e7cad487cbf04243b81aba8d6b9fad37', 'User', '2013-01-02 11:06:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e7cad487cbf04243b81aba8d6b9fad37' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'da7297c71c5c450f9d015ef8b840a523', NULL, NULL, NULL, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'accountda7297c7-1c5c-450f-9d01-5ef8b840a523' WHERE `accounts`.`id` = x'da7297c71c5c450f9d015ef8b840a523' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da7297c71c5c450f9d015ef8b840a523' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'da7297c71c5c450f9d015ef8b840a523', x'118b119592e9467a9f54c5af167fdd68', x'e7cad487cbf04243b81aba8d6b9fad37') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'118b119592e9467a9f54c5af167fdd68') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'118b119592e9467a9f54c5af167fdd68' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'118b119592e9467a9f54c5af167fdd68', x'315fa0bda1c844ad99008d789cd3dfd0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'118b119592e9467a9f54c5af167fdd68') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'118b119592e9467a9f54c5af167fdd68' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'118b119592e9467a9f54c5af167fdd68', x'53a68dc3e61d4eb6b3b9945c217aae22', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:34 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bad40d5_107080435d4873274@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e7cad487cbf04243b81aba8d6b9fad37' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:34', 'xpto@account.test', '$2a$04$ytC5PtcjnXgws0x0pbP4QO.OyXH/ZwSFhn.6TdHpHjmymib4EUMSW', NULL, x'd329f46245724dc984437d9f619f8f2d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:34') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd329f46245724dc984437d9f619f8f2d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:34', 'User', x'eacd759e88834051835e772d646f7528', '0f7e4d76d1ee68bc984f6a922d0201db', x'd329f46245724dc984437d9f619f8f2d', 'User', '2013-01-02 11:06:34') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd329f46245724dc984437d9f619f8f2d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'93cf370627144dfc95541a714c80ff9b', NULL, NULL, NULL, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'account93cf3706-2714-4dfc-9554-1a714c80ff9b' WHERE `accounts`.`id` = x'93cf370627144dfc95541a714c80ff9b' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'93cf370627144dfc95541a714c80ff9b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'93cf370627144dfc95541a714c80ff9b', x'02a1a60496594be69c395f2bbc139805', x'd329f46245724dc984437d9f619f8f2d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'02a1a60496594be69c395f2bbc139805') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'02a1a60496594be69c395f2bbc139805' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'02a1a60496594be69c395f2bbc139805', x'90f5719f116c4102809cdf3d930a507e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'02a1a60496594be69c395f2bbc139805') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'02a1a60496594be69c395f2bbc139805' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'02a1a60496594be69c395f2bbc139805', x'0b170f689cc54afaa2f75f8e7620ebc2', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:34 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414bae96b9_107080435d4873361@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:34', x'7b30f266334d47d19843f919815cd6e8', 'jabanilson', NULL, 1, '2013-01-02 11:06:34')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:34', `updated_at` = '2013-01-02 11:06:34', `subdomain` = 'account7b30f266-334d-47d1-9843-f919815cd6e8' WHERE `accounts`.`id` = x'7b30f266334d47d19843f919815cd6e8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7b30f266334d47d19843f919815cd6e8', x'ac28374510aa439581bb9222a668ea30', x'd329f46245724dc984437d9f619f8f2d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ac28374510aa439581bb9222a668ea30') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac28374510aa439581bb9222a668ea30' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac28374510aa439581bb9222a668ea30', x'c9b3981a10fd46b4a480e64747225c87', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ac28374510aa439581bb9222a668ea30') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac28374510aa439581bb9222a668ea30' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac28374510aa439581bb9222a668ea30', x'bd1e6df1066445d596cfd44c57fcf493', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da7297c71c5c450f9d015ef8b840a523' LIMIT 1  (0.4ms) UPDATE `account_users` SET `account_id` = x'da7297c71c5c450f9d015ef8b840a523' WHERE `account_users`.`id` = x'ac28374510aa439581bb9222a668ea30'  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ac28374510aa439581bb9222a668ea30'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'bd1e6df1066445d596cfd44c57fcf493' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac28374510aa439581bb9222a668ea30' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c9b3981a10fd46b4a480e64747225c87'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'ac28374510aa439581bb9222a668ea30') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac28374510aa439581bb9222a668ea30' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac28374510aa439581bb9222a668ea30', x'43154ed625834476ae2361b80aa78a00', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'43154ed625834476ae2361b80aa78a00'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ac28374510aa439581bb9222a668ea30') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ac28374510aa439581bb9222a668ea30' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ac28374510aa439581bb9222a668ea30', x'098bb0c114194ac6a6f6df5fa2cf2746', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/da7297c7-1c5c-450f-9d01-5ef8b840a523/users" for 127.0.0.1 at 2013-01-02 09:06:34 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"da7297c7-1c5c-450f-9d01-5ef8b840a523"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da7297c71c5c450f9d015ef8b840a523' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_da7297c7-1c5c-450f-9d01-5ef8b840a523_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'da7297c71c5c450f9d015ef8b840a523' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'da7297c71c5c450f9d015ef8b840a523' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'da7297c71c5c450f9d015ef8b840a523' AND `account_users`.`user_id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'118b119592e9467a9f54c5af167fdd68' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_118b1195-92e9-467a-9f54-c5af167fdd68_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'118b119592e9467a9f54c5af167fdd68' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd329f46245724dc984437d9f619f8f2d' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'da7297c71c5c450f9d015ef8b840a523' AND `account_users`.`user_id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'118b119592e9467a9f54c5af167fdd68' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ac283745-10aa-4395-81bb-9222a668ea30_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ac28374510aa439581bb9222a668ea30' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'da7297c71c5c450f9d015ef8b840a523' AND `account_users`.`user_id` = x'e7cad487cbf04243b81aba8d6b9fad37' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'118b119592e9467a9f54c5af167fdd68' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 17.7ms | ActiveRecord: 3.8ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:35', 'teste@teste.com', '$2a$04$PBvRxvg2okdno0A0YreibOiSMV6XIRy2dqjxuSVtUuGCt7W6dU3sK', NULL, x'f217dd3c99da4a528093af4c22a80533', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f217dd3c99da4a528093af4c22a80533' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:35', 'User', x'ca8e05c2feed4d26a8621e5e8184cb2e', '3bccdee437dfffc10730499d883e0e27', x'f217dd3c99da4a528093af4c22a80533', 'User', '2013-01-02 11:06:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f217dd3c99da4a528093af4c22a80533' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:35', x'68469fcb9e5548289664111cb46eea67', NULL, NULL, NULL, '2013-01-02 11:06:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:35', `updated_at` = '2013-01-02 11:06:35', `subdomain` = 'account68469fcb-9e55-4828-9664-111cb46eea67' WHERE `accounts`.`id` = x'68469fcb9e5548289664111cb46eea67' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68469fcb9e5548289664111cb46eea67' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'68469fcb9e5548289664111cb46eea67', x'90d15929a7434a6a907c8d129a53e3fd', x'f217dd3c99da4a528093af4c22a80533') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'90d15929a7434a6a907c8d129a53e3fd') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90d15929a7434a6a907c8d129a53e3fd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90d15929a7434a6a907c8d129a53e3fd', x'be34534a3c41429ca4e8b2fd0d3f9d30', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'90d15929a7434a6a907c8d129a53e3fd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'90d15929a7434a6a907c8d129a53e3fd' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'90d15929a7434a6a907c8d129a53e3fd', x'49057722fff840e5aaa2885fc380888a', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:35 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bb2ee14_107080435d48734d3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f217dd3c99da4a528093af4c22a80533' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:35', 'xpto@account.test', '$2a$04$kqw/b7wnHOiOx9.TNFpRYu4XYwMVJmJIvD68/V5ophx/sDe5hfafS', NULL, x'00a907596f6746f1942dd07cd3338625', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'00a907596f6746f1942dd07cd3338625' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:35', 'User', x'7dfbd99520bf45d0b92c37296bd4afff', 'd93bd51caf5d2159fc7b197c0edb0b83', x'00a907596f6746f1942dd07cd3338625', 'User', '2013-01-02 11:06:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'00a907596f6746f1942dd07cd3338625' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:35', x'78a7435f3a4d492d95c3b21694b2d82c', NULL, NULL, NULL, '2013-01-02 11:06:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:35', `updated_at` = '2013-01-02 11:06:35', `subdomain` = 'account78a7435f-3a4d-492d-95c3-b21694b2d82c' WHERE `accounts`.`id` = x'78a7435f3a4d492d95c3b21694b2d82c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'78a7435f3a4d492d95c3b21694b2d82c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'78a7435f3a4d492d95c3b21694b2d82c', x'5e0ea43c49c641c9acbf5ea1e258ac2a', x'00a907596f6746f1942dd07cd3338625') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5e0ea43c49c641c9acbf5ea1e258ac2a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5e0ea43c49c641c9acbf5ea1e258ac2a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5e0ea43c49c641c9acbf5ea1e258ac2a', x'115ed85f250e46ae91887286d2fac24b', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5e0ea43c49c641c9acbf5ea1e258ac2a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5e0ea43c49c641c9acbf5ea1e258ac2a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5e0ea43c49c641c9acbf5ea1e258ac2a', x'400d6344f0c74818a1c322f524df630c', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:35 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414bb43854_107080435d487356e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:35', x'56f98ef9a02b4ef7bc7076432c6f9244', 'jabanilson', NULL, 1, '2013-01-02 11:06:35')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:35', `updated_at` = '2013-01-02 11:06:35', `subdomain` = 'account56f98ef9-a02b-4ef7-bc70-76432c6f9244' WHERE `accounts`.`id` = x'56f98ef9a02b4ef7bc7076432c6f9244'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'56f98ef9a02b4ef7bc7076432c6f9244', x'ad91cd8ea7d142499e8e0ae226619b4b', x'00a907596f6746f1942dd07cd3338625') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ad91cd8ea7d142499e8e0ae226619b4b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad91cd8ea7d142499e8e0ae226619b4b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad91cd8ea7d142499e8e0ae226619b4b', x'a435f718b46a4b99a21ae1a8b50ba670', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ad91cd8ea7d142499e8e0ae226619b4b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad91cd8ea7d142499e8e0ae226619b4b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad91cd8ea7d142499e8e0ae226619b4b', x'51dd5306385c4988ba768c2a1f23e820', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68469fcb9e5548289664111cb46eea67' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'68469fcb9e5548289664111cb46eea67' WHERE `account_users`.`id` = x'ad91cd8ea7d142499e8e0ae226619b4b'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ad91cd8ea7d142499e8e0ae226619b4b'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'51dd5306385c4988ba768c2a1f23e820' AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad91cd8ea7d142499e8e0ae226619b4b' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'hFŸËžUH(–d´nêg' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a435f718b46a4b99a21ae1a8b50ba670'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'ad91cd8ea7d142499e8e0ae226619b4b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad91cd8ea7d142499e8e0ae226619b4b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad91cd8ea7d142499e8e0ae226619b4b', x'a4ff8efb05cb4f77bb898ec183402b8d', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a4ff8efb05cb4f77bb898ec183402b8d'  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ad91cd8ea7d142499e8e0ae226619b4b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ad91cd8ea7d142499e8e0ae226619b4b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ad91cd8ea7d142499e8e0ae226619b4b', x'b544846ecf544f3194e8352c04ee618f', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/68469fcb-9e55-4828-9664-111cb46eea67/users" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"68469fcb-9e55-4828-9664-111cb46eea67"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68469fcb9e5548289664111cb46eea67' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_68469fcb-9e55-4828-9664-111cb46eea67_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'68469fcb9e5548289664111cb46eea67' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'68469fcb9e5548289664111cb46eea67' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'68469fcb9e5548289664111cb46eea67' AND `account_users`.`user_id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90d15929a7434a6a907c8d129a53e3fd' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_90d15929-a743-4a6a-907c-8d129a53e3fd_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90d15929a7434a6a907c8d129a53e3fd' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'00a907596f6746f1942dd07cd3338625' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'68469fcb9e5548289664111cb46eea67' AND `account_users`.`user_id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90d15929a7434a6a907c8d129a53e3fd' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_ad91cd8e-a7d1-4249-9e8e-0ae226619b4b_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'ad91cd8ea7d142499e8e0ae226619b4b' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'68469fcb9e5548289664111cb46eea67' AND `account_users`.`user_id` = x'f217dd3c99da4a528093af4c22a80533' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'90d15929a7434a6a907c8d129a53e3fd' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 25ms (Views: 17.6ms | ActiveRecord: 4.0ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:35', 'teste@teste.com', '$2a$04$P0cyVfy68VwykjjD134xPejRJ.3nf45rzrA.1S8F7.iEzbDnV.EH6', NULL, x'5e691961c08047b2b23883baa2e119ae', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5e691961c08047b2b23883baa2e119ae' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:35', 'User', x'83989bfc7e45422393c28ff42fd6c33c', 'eb540f9ae235c6f9f5a0ed273a6a2f36', x'5e691961c08047b2b23883baa2e119ae', 'User', '2013-01-02 11:06:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5e691961c08047b2b23883baa2e119ae' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:35', x'c8aaf77e261844258736d574a07eaa60', NULL, NULL, NULL, '2013-01-02 11:06:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:35', `updated_at` = '2013-01-02 11:06:35', `subdomain` = 'accountc8aaf77e-2618-4425-8736-d574a07eaa60' WHERE `accounts`.`id` = x'c8aaf77e261844258736d574a07eaa60' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c8aaf77e261844258736d574a07eaa60' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c8aaf77e261844258736d574a07eaa60', x'25ba97f90d804c83a47e742b081d547d', x'5e691961c08047b2b23883baa2e119ae') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'25ba97f90d804c83a47e742b081d547d') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25ba97f90d804c83a47e742b081d547d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25ba97f90d804c83a47e742b081d547d', x'98f713941add4027a0d1cf49f27c826b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'25ba97f90d804c83a47e742b081d547d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'25ba97f90d804c83a47e742b081d547d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'25ba97f90d804c83a47e742b081d547d', x'ca1e319ae8d440a8b928c2a74c8a7d4d', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:35 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bb5f6da_107080435d48736d0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 132ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5e691961c08047b2b23883baa2e119ae' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 Completed 302 Found in 11ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:35', 'xpto@account.test', '$2a$04$M2P3SumG2I2RrxoYL4cXV.0MfVOzAbIOwo.gdkNKRvNRiqmQQvLo.', NULL, x'8f50f3cb8b29488c9c04c03f3b05e76f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:35') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8f50f3cb8b29488c9c04c03f3b05e76f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:35', 'User', x'4338929c985b417da473131e53eb462f', '388452bc9b302c3ce8d136fbb24c5e87', x'8f50f3cb8b29488c9c04c03f3b05e76f', 'User', '2013-01-02 11:06:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8f50f3cb8b29488c9c04c03f3b05e76f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:35', x'c9a3f16e9ea54fd4821feae9ef83894a', NULL, NULL, NULL, '2013-01-02 11:06:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:35', `updated_at` = '2013-01-02 11:06:35', `subdomain` = 'accountc9a3f16e-9ea5-4fd4-821f-eae9ef83894a' WHERE `accounts`.`id` = x'c9a3f16e9ea54fd4821feae9ef83894a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c9a3f16e9ea54fd4821feae9ef83894a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c9a3f16e9ea54fd4821feae9ef83894a', x'f8e682bc982a49f5b89d14ed8c5c2ef8', x'8f50f3cb8b29488c9c04c03f3b05e76f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f8e682bc982a49f5b89d14ed8c5c2ef8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f8e682bc982a49f5b89d14ed8c5c2ef8' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f8e682bc982a49f5b89d14ed8c5c2ef8', x'4ca3bb377989462dbf37ccac68a625cb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f8e682bc982a49f5b89d14ed8c5c2ef8') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f8e682bc982a49f5b89d14ed8c5c2ef8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f8e682bc982a49f5b89d14ed8c5c2ef8', x'b56ebb1a70754e11ad53a2ef836b3496', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:35 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414bb9330e_107080435d4873755@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:35', x'abd161e8a8f0446db65ef5d1cbb90432', 'jabanilson', NULL, 1, '2013-01-02 11:06:35')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:35', `updated_at` = '2013-01-02 11:06:35', `subdomain` = 'accountabd161e8-a8f0-446d-b65e-f5d1cbb90432' WHERE `accounts`.`id` = x'abd161e8a8f0446db65ef5d1cbb90432'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'abd161e8a8f0446db65ef5d1cbb90432', x'820d12997f0340b999da5daa8f0f8ca7', x'8f50f3cb8b29488c9c04c03f3b05e76f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'820d12997f0340b999da5daa8f0f8ca7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820d12997f0340b999da5daa8f0f8ca7' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'820d12997f0340b999da5daa8f0f8ca7', x'7fd5f89625ed4251adf455ec90f36f05', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'820d12997f0340b999da5daa8f0f8ca7') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820d12997f0340b999da5daa8f0f8ca7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'820d12997f0340b999da5daa8f0f8ca7', x'7ed1694650ab4a94a3ea2f68ead3735c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c8aaf77e261844258736d574a07eaa60' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'c8aaf77e261844258736d574a07eaa60' WHERE `account_users`.`id` = x'820d12997f0340b999da5daa8f0f8ca7'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'820d12997f0340b999da5daa8f0f8ca7'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7ed1694650ab4a94a3ea2f68ead3735c' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820d12997f0340b999da5daa8f0f8ca7' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'Ȫ÷~&D%‡6Õt ~ª`' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7fd5f89625ed4251adf455ec90f36f05'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'820d12997f0340b999da5daa8f0f8ca7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820d12997f0340b999da5daa8f0f8ca7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'820d12997f0340b999da5daa8f0f8ca7', x'979f8d6308434997bb4f701fbee6d7b1', 'user')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'979f8d6308434997bb4f701fbee6d7b1'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'820d12997f0340b999da5daa8f0f8ca7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'820d12997f0340b999da5daa8f0f8ca7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'820d12997f0340b999da5daa8f0f8ca7', x'5d3d65ac0a214cb6b01cc48980933633', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/c8aaf77e-2618-4425-8736-d574a07eaa60/users" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"c8aaf77e-2618-4425-8736-d574a07eaa60"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c8aaf77e261844258736d574a07eaa60' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_c8aaf77e-2618-4425-8736-d574a07eaa60_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c8aaf77e261844258736d574a07eaa60' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c8aaf77e261844258736d574a07eaa60' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c8aaf77e261844258736d574a07eaa60' AND `account_users`.`user_id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'25ba97f90d804c83a47e742b081d547d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_25ba97f9-0d80-4c83-a47e-742b081d547d_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'25ba97f90d804c83a47e742b081d547d' AND `account_roles`.`name` = 'owner' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8f50f3cb8b29488c9c04c03f3b05e76f' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c8aaf77e261844258736d574a07eaa60' AND `account_users`.`user_id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'25ba97f90d804c83a47e742b081d547d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_820d1299-7f03-40b9-99da-5daa8f0f8ca7_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'820d12997f0340b999da5daa8f0f8ca7' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'c8aaf77e261844258736d574a07eaa60' AND `account_users`.`user_id` = x'5e691961c08047b2b23883baa2e119ae' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'25ba97f90d804c83a47e742b081d547d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.2ms | ActiveRecord: 3.9ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:35', 'teste@teste.com', '$2a$04$JgsKybncG/WqEBkytMM.veq/EFlvnrC/vWMwZ5AozgqExU3o6nO3.', NULL, x'e80e801f563946549787677d794f4d74', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e80e801f563946549787677d794f4d74' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:35', 'User', x'55c7fcaac8014ea1a45fb542fecb11d3', 'a4163ae377c90a9455f31d6a69787b42', x'e80e801f563946549787677d794f4d74', 'User', '2013-01-02 11:06:35') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e80e801f563946549787677d794f4d74' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:35', x'2cbb2b8446674a8db568c58180142c9c', NULL, NULL, NULL, '2013-01-02 11:06:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:35', `updated_at` = '2013-01-02 11:06:35', `subdomain` = 'account2cbb2b84-4667-4a8d-b568-c58180142c9c' WHERE `accounts`.`id` = x'2cbb2b8446674a8db568c58180142c9c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2cbb2b8446674a8db568c58180142c9c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2cbb2b8446674a8db568c58180142c9c', x'0cab4626f4754e77b1b7fe3618372738', x'e80e801f563946549787677d794f4d74') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0cab4626f4754e77b1b7fe3618372738') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0cab4626f4754e77b1b7fe3618372738' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0cab4626f4754e77b1b7fe3618372738', x'6ce0187317ba45a699044c1d770591d8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0cab4626f4754e77b1b7fe3618372738') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0cab4626f4754e77b1b7fe3618372738' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0cab4626f4754e77b1b7fe3618372738', x'990018318d85482fa57588d589cbf455', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:35 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bbaeea1_107080435d4873873@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e80e801f563946549787677d794f4d74' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e80e801f563946549787677d794f4d74' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e80e801f563946549787677d794f4d74' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e80e801f563946549787677d794f4d74' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e80e801f563946549787677d794f4d74' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/account/2cbb2b84-4667-4a8d-b568-c58180142c9c/users" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"2cbb2b84-4667-4a8d-b568-c58180142c9c"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e80e801f563946549787677d794f4d74' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2cbb2b8446674a8db568c58180142c9c' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_2cbb2b84-4667-4a8d-b568-c58180142c9c_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2cbb2b8446674a8db568c58180142c9c' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2cbb2b8446674a8db568c58180142c9c' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e80e801f563946549787677d794f4d74' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2cbb2b8446674a8db568c58180142c9c' AND `account_users`.`user_id` = x'e80e801f563946549787677d794f4d74' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0cab4626f4754e77b1b7fe3618372738' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_0cab4626-f475-4e77-b1b7-fe3618372738_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0cab4626f4754e77b1b7fe3618372738' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'2cbb2b8446674a8db568c58180142c9c' AND `account_users`.`user_id` = x'e80e801f563946549787677d794f4d74' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0cab4626f4754e77b1b7fe3618372738' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 139ms (Views: 132.5ms | ActiveRecord: 2.6ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:35', 'teste@teste.com', '$2a$04$kRkXaJm1fCnqyb61V66OO.F138UG1CD8SKTrzOwQAi5RuTE4Effdm', NULL, x'd41c947720cf44bb8965eae1a8cf4077', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:35') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd41c947720cf44bb8965eae1a8cf4077' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:35', 'User', x'76431a5e1cd847a6abb20dcbf9aee79c', '7123145a7aa140e165bac71c870277a5', x'd41c947720cf44bb8965eae1a8cf4077', 'User', '2013-01-02 11:06:35') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd41c947720cf44bb8965eae1a8cf4077' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:35', x'bc5315927cc14663928448f1b00a8b2a', NULL, NULL, NULL, '2013-01-02 11:06:35')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:35', `updated_at` = '2013-01-02 11:06:35', `subdomain` = 'accountbc531592-7cc1-4663-9284-48f1b00a8b2a' WHERE `accounts`.`id` = x'bc5315927cc14663928448f1b00a8b2a' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bc5315927cc14663928448f1b00a8b2a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'bc5315927cc14663928448f1b00a8b2a', x'4fa727a631cb4b7c8632263cad531e2d', x'd41c947720cf44bb8965eae1a8cf4077') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4fa727a631cb4b7c8632263cad531e2d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4fa727a631cb4b7c8632263cad531e2d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4fa727a631cb4b7c8632263cad531e2d', x'0a0545892abb4960986965db9e7c653d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4fa727a631cb4b7c8632263cad531e2d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4fa727a631cb4b7c8632263cad531e2d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4fa727a631cb4b7c8632263cad531e2d', x'8e807da6a30a4c8f9c8a2341c8ec6a62', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:35 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bbe80a9_107080435d48739ba@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd41c947720cf44bb8965eae1a8cf4077' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'd41c947720cf44bb8965eae1a8cf4077' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd41c947720cf44bb8965eae1a8cf4077' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'd41c947720cf44bb8965eae1a8cf4077' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd41c947720cf44bb8965eae1a8cf4077' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/account/bc531592-7cc1-4663-9284-48f1b00a8b2a/users" for 127.0.0.1 at 2013-01-02 09:06:35 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"bc531592-7cc1-4663-9284-48f1b00a8b2a"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd41c947720cf44bb8965eae1a8cf4077' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bc5315927cc14663928448f1b00a8b2a' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_bc531592-7cc1-4663-9284-48f1b00a8b2a_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'bc5315927cc14663928448f1b00a8b2a' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc5315927cc14663928448f1b00a8b2a' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd41c947720cf44bb8965eae1a8cf4077' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc5315927cc14663928448f1b00a8b2a' AND `account_users`.`user_id` = x'd41c947720cf44bb8965eae1a8cf4077' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4fa727a631cb4b7c8632263cad531e2d' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_4fa727a6-31cb-4b7c-8632-263cad531e2d_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4fa727a631cb4b7c8632263cad531e2d' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'bc5315927cc14663928448f1b00a8b2a' AND `account_users`.`user_id` = x'd41c947720cf44bb8965eae1a8cf4077' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'4fa727a631cb4b7c8632263cad531e2d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 12.1ms | ActiveRecord: 2.8ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:36', 'teste@teste.com', '$2a$04$R3Qx4fRGCPZSeXxZtq7r0Oc2Z5kH2G4TSWekOXKt5apCHKRe3pbLi', NULL, x'b987d32abe104fd2ab273e262aeea477', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b987d32abe104fd2ab273e262aeea477' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:36', 'User', x'8faed78522ec4aeaa08e24258e63c27b', 'a7e9cf09601f8cee7dd969bc49aa3669', x'b987d32abe104fd2ab273e262aeea477', 'User', '2013-01-02 11:06:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b987d32abe104fd2ab273e262aeea477' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:36', x'a4e97c73aaa242dfaefb1a72c6440b66', NULL, NULL, NULL, '2013-01-02 11:06:36')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:36', `updated_at` = '2013-01-02 11:06:36', `subdomain` = 'accounta4e97c73-aaa2-42df-aefb-1a72c6440b66' WHERE `accounts`.`id` = x'a4e97c73aaa242dfaefb1a72c6440b66' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4e97c73aaa242dfaefb1a72c6440b66' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a4e97c73aaa242dfaefb1a72c6440b66', x'7fbb65d473914c09ad96f81f2f9b60a8', x'b987d32abe104fd2ab273e262aeea477') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7fbb65d473914c09ad96f81f2f9b60a8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7fbb65d473914c09ad96f81f2f9b60a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7fbb65d473914c09ad96f81f2f9b60a8', x'd3604144cbd64eb8aad5e2cec117f214', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7fbb65d473914c09ad96f81f2f9b60a8') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7fbb65d473914c09ad96f81f2f9b60a8' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7fbb65d473914c09ad96f81f2f9b60a8', x'016b24537cd94f89bcda3de8b7577d33', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:36 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bcfec3_107080435d4874011@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b987d32abe104fd2ab273e262aeea477' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b987d32abe104fd2ab273e262aeea477' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b987d32abe104fd2ab273e262aeea477' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b987d32abe104fd2ab273e262aeea477' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b987d32abe104fd2ab273e262aeea477' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/account/a4e97c73-aaa2-42df-aefb-1a72c6440b66/users" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"a4e97c73-aaa2-42df-aefb-1a72c6440b66"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b987d32abe104fd2ab273e262aeea477' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4e97c73aaa242dfaefb1a72c6440b66' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a4e97c73-aaa2-42df-aefb-1a72c6440b66_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4e97c73aaa242dfaefb1a72c6440b66' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4e97c73aaa242dfaefb1a72c6440b66' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b987d32abe104fd2ab273e262aeea477' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4e97c73aaa242dfaefb1a72c6440b66' AND `account_users`.`user_id` = x'b987d32abe104fd2ab273e262aeea477' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7fbb65d473914c09ad96f81f2f9b60a8' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7fbb65d4-7391-4c09-ad96-f81f2f9b60a8_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7fbb65d473914c09ad96f81f2f9b60a8' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4e97c73aaa242dfaefb1a72c6440b66' AND `account_users`.`user_id` = x'b987d32abe104fd2ab273e262aeea477' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7fbb65d473914c09ad96f81f2f9b60a8' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 19ms (Views: 12.1ms | ActiveRecord: 2.8ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:36', 'teste@teste.com', '$2a$04$z/pAbWXhLw9uoHRp8E.UEugopmHWyVSyrBsYKTeNE9uSyqYy8ovfm', NULL, x'aca9b3bdc9074b26b0b429768f3a5fde', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:36') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'aca9b3bdc9074b26b0b429768f3a5fde' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:36', 'User', x'782884e3ea4842d2bf62cdf939963e54', '17eb711e7fdcd92ba2233b0630dfb082', x'aca9b3bdc9074b26b0b429768f3a5fde', 'User', '2013-01-02 11:06:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'aca9b3bdc9074b26b0b429768f3a5fde' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:36', x'a56dfdf22a934b90a3098634a8283e8d', NULL, NULL, NULL, '2013-01-02 11:06:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:36', `updated_at` = '2013-01-02 11:06:36', `subdomain` = 'accounta56dfdf2-2a93-4b90-a309-8634a8283e8d' WHERE `accounts`.`id` = x'a56dfdf22a934b90a3098634a8283e8d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a56dfdf22a934b90a3098634a8283e8d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a56dfdf22a934b90a3098634a8283e8d', x'7a6f83e93f9c4e42abb5f70fab793e73', x'aca9b3bdc9074b26b0b429768f3a5fde') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7a6f83e93f9c4e42abb5f70fab793e73') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a6f83e93f9c4e42abb5f70fab793e73' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a6f83e93f9c4e42abb5f70fab793e73', x'22eb252042144c07b9bb05614873a6b1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7a6f83e93f9c4e42abb5f70fab793e73') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7a6f83e93f9c4e42abb5f70fab793e73' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7a6f83e93f9c4e42abb5f70fab793e73', x'3d16f46d7b4a415c9823e649d4de286c', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:36 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bc49ec9_107080435d48741ed@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'aca9b3bdc9074b26b0b429768f3a5fde' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'aca9b3bdc9074b26b0b429768f3a5fde' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'aca9b3bdc9074b26b0b429768f3a5fde' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'aca9b3bdc9074b26b0b429768f3a5fde' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'aca9b3bdc9074b26b0b429768f3a5fde' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/account/a56dfdf2-2a93-4b90-a309-8634a8283e8d/users" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"a56dfdf2-2a93-4b90-a309-8634a8283e8d"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'aca9b3bdc9074b26b0b429768f3a5fde' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a56dfdf22a934b90a3098634a8283e8d' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_a56dfdf2-2a93-4b90-a309-8634a8283e8d_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a56dfdf22a934b90a3098634a8283e8d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a56dfdf22a934b90a3098634a8283e8d' CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'aca9b3bdc9074b26b0b429768f3a5fde' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a56dfdf22a934b90a3098634a8283e8d' AND `account_users`.`user_id` = x'aca9b3bdc9074b26b0b429768f3a5fde' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7a6f83e93f9c4e42abb5f70fab793e73' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7a6f83e9-3f9c-4e42-abb5-f70fab793e73_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7a6f83e93f9c4e42abb5f70fab793e73' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a56dfdf22a934b90a3098634a8283e8d' AND `account_users`.`user_id` = x'aca9b3bdc9074b26b0b429768f3a5fde' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7a6f83e93f9c4e42abb5f70fab793e73' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 18ms (Views: 11.9ms | ActiveRecord: 2.7ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:36', 'teste@teste.com', '$2a$04$ouiMAQIayFzDCOVRFWjrI.fg1wtG5v2APGwIvNZX0y0OHZhh3lYCe', NULL, x'8c0a281a9e4a41ec90814aa729935107', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8c0a281a9e4a41ec90814aa729935107' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:36', 'User', x'dea79719864c498ebe07f17d88bef045', '52bfa9837b0fd67bb139b86e84a15516', x'8c0a281a9e4a41ec90814aa729935107', 'User', '2013-01-02 11:06:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8c0a281a9e4a41ec90814aa729935107' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:36', x'72a1f0a07409472ba3a6311377ffcbfa', NULL, NULL, NULL, '2013-01-02 11:06:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:36', `updated_at` = '2013-01-02 11:06:36', `subdomain` = 'account72a1f0a0-7409-472b-a3a6-311377ffcbfa' WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'72a1f0a07409472ba3a6311377ffcbfa', x'be961f995eb3427c8da5af75fdc02955', x'8c0a281a9e4a41ec90814aa729935107') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be961f995eb3427c8da5af75fdc02955' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be961f995eb3427c8da5af75fdc02955', x'c66147809c4542b6b89af70c89b08225', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'be961f995eb3427c8da5af75fdc02955' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'be961f995eb3427c8da5af75fdc02955', x'1e0bb8a5406548efb68bbb3bdcecd1c5', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:36 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bc654fb_107080435d48742e1@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:36', 'xpto@account.test', '$2a$04$DgsL4L11mcwq0HprcJy00e9j6hm5Hvvo6IRGjZBNJnVmyh6r.MeN2', NULL, x'cc27e2329f774b1b96c0210cc0d813bb', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cc27e2329f774b1b96c0210cc0d813bb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:36', 'User', x'bbe42f118bf147e3b8577d7ccadc19d1', '09ce870e8edf3740da5deea258a773ef', x'cc27e2329f774b1b96c0210cc0d813bb', 'User', '2013-01-02 11:06:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cc27e2329f774b1b96c0210cc0d813bb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:36', x'a4dbb6aea51d45a2bf5298d52a2761a1', NULL, NULL, NULL, '2013-01-02 11:06:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:36', `updated_at` = '2013-01-02 11:06:36', `subdomain` = 'accounta4dbb6ae-a51d-45a2-bf52-98d52a2761a1' WHERE `accounts`.`id` = x'a4dbb6aea51d45a2bf5298d52a2761a1' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4dbb6aea51d45a2bf5298d52a2761a1' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a4dbb6aea51d45a2bf5298d52a2761a1', x'fcdaeac7304b4ba09acc8fcca7424f54', x'cc27e2329f774b1b96c0210cc0d813bb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fcdaeac7304b4ba09acc8fcca7424f54') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fcdaeac7304b4ba09acc8fcca7424f54' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fcdaeac7304b4ba09acc8fcca7424f54', x'60d5dc5bfd714871a874d2835785d156', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fcdaeac7304b4ba09acc8fcca7424f54') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fcdaeac7304b4ba09acc8fcca7424f54' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fcdaeac7304b4ba09acc8fcca7424f54', x'f1a9cb21a85b487389713cb69978bcf3', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:36 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414bc985f8_107080435d487433c@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:36', x'39ec6aad474a43df968294b3f488f322', 'jabanilson', NULL, 1, '2013-01-02 11:06:36')  (0.2ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:36', `updated_at` = '2013-01-02 11:06:36', `subdomain` = 'account39ec6aad-474a-43df-9682-94b3f488f322' WHERE `accounts`.`id` = x'39ec6aad474a43df968294b3f488f322'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'39ec6aad474a43df968294b3f488f322', x'7c9e2832d36246ad9ffb4b4962c1fdc3', x'cc27e2329f774b1b96c0210cc0d813bb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c9e2832d36246ad9ffb4b4962c1fdc3', x'45124e8dc88349589d23e3b90672340c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c9e2832d36246ad9ffb4b4962c1fdc3', x'1fdd1c1a61564505a58d6021de508136', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1  (0.3ms) UPDATE `account_users` SET `account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' WHERE `account_users`.`id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3'  (0.2ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1fdd1c1a61564505a58d6021de508136' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'r¡ð t G+£¦1wÿËú' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'45124e8dc88349589d23e3b90672340c'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7c9e2832d36246ad9ffb4b4962c1fdc3', x'8417b04115aa43599d85804c51b75571', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/72a1f0a0-7409-472b-a3a6-311377ffcbfa/users" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"72a1f0a0-7409-472b-a3a6-311377ffcbfa"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_72a1f0a0-7409-472b-a3a6-311377ffcbfa_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cc27e2329f774b1b96c0210cc0d813bb' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' AND `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7c9e2832-d362-46ad-9ffb-4b4962c1fdc3_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' AND `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_be961f99-5eb3-427c-8da5-af75fdc02955_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' AND `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.6ms | ActiveRecord: 4.0ms) Started DELETE "/settings/account/72a1f0a0-7409-472b-a3a6-311377ffcbfa/user/cc27e232-9f77-4b1b-96c0-210cc0d813bb" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"72a1f0a0-7409-472b-a3a6-311377ffcbfa", "user_id"=>"cc27e232-9f77-4b1b-96c0-210cc0d813bb"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_72a1f0a0-7409-472b-a3a6-311377ffcbfa_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' AND `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' AND `account_users`.`user_id` = x'cc27e2329f774b1b96c0210cc0d813bb' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cc27e2329f774b1b96c0210cc0d813bb' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7c9e2832d36246ad9ffb4b4962c1fdc3' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:36', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 7c9e2832-d362-46ad-9ffb-4b4962c1fdc3\n', NULL, NULL, NULL, 0, 'account_user_7c9e2832-d362-46ad-9ffb-4b4962c1fdc3_destroy', '2013-01-02 11:06:36', '2013-01-02 11:06:36')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7c9e2832-d362-46ad-9ffb-4b4962c1fdc3_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/72a1f0a0-7409-472b-a3a6-311377ffcbfa/users Completed 302 Found in 22ms (ActiveRecord: 4.3ms) Started GET "/settings/account/72a1f0a0-7409-472b-a3a6-311377ffcbfa/users" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"72a1f0a0-7409-472b-a3a6-311377ffcbfa"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_72a1f0a0-7409-472b-a3a6-311377ffcbfa_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72a1f0a07409472ba3a6311377ffcbfa' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cc27e2329f774b1b96c0210cc0d813bb' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' AND `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7c9e2832-d362-46ad-9ffb-4b4962c1fdc3_destroy' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' AND `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_be961f99-5eb3-427c-8da5-af75fdc02955_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72a1f0a07409472ba3a6311377ffcbfa' AND `account_users`.`user_id` = x'8c0a281a9e4a41ec90814aa729935107' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'be961f995eb3427c8da5af75fdc02955' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 24ms (Views: 16.9ms | ActiveRecord: 3.3ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:36', 'teste@teste.com', '$2a$04$3Yh3XY2.BrO2HpXK.d0/u.cbKoUiAn2bvflG6pQLUntAp3G2OYyh.', NULL, x'c264037ddef14d60ab4fd96fb94db3cb', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c264037ddef14d60ab4fd96fb94db3cb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:36', 'User', x'c3db55c6831c470daff847676eca034b', '03893726ddee030e188e66bb400874de', x'c264037ddef14d60ab4fd96fb94db3cb', 'User', '2013-01-02 11:06:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c264037ddef14d60ab4fd96fb94db3cb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:36', x'45293c5c8c2e46b08360db67263f0c55', NULL, NULL, NULL, '2013-01-02 11:06:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:36', `updated_at` = '2013-01-02 11:06:36', `subdomain` = 'account45293c5c-8c2e-46b0-8360-db67263f0c55' WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'45293c5c8c2e46b08360db67263f0c55', x'cf60828029cd4cf8bb4a341f4b5f7d3f', x'c264037ddef14d60ab4fd96fb94db3cb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf60828029cd4cf8bb4a341f4b5f7d3f', x'4f9abcda95a4453c9d66522e697b5ca3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cf60828029cd4cf8bb4a341f4b5f7d3f', x'f89acc07401944d6a575e8ea414225f3', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:36 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bcc0901_107080435d48744c0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:36 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:36', 'xpto@account.test', '$2a$04$EQBwP/rEUetWzPoGKYmAI.bpHPPJvoThEZq6M/XxFrRHNcvU5lXV.', NULL, x'e1f707ddab2a4f44abc3815591f336c5', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:36') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e1f707ddab2a4f44abc3815591f336c5' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:36', 'User', x'88061a4d320d476495c30153a1953a09', 'e1b3bc9e55635e35acad2f1e96ffa553', x'e1f707ddab2a4f44abc3815591f336c5', 'User', '2013-01-02 11:06:36') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e1f707ddab2a4f44abc3815591f336c5' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:36', x'499aeb4cfb0e4fc8b9b62b4d1db1c3fa', NULL, NULL, NULL, '2013-01-02 11:06:36')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:36', `updated_at` = '2013-01-02 11:06:36', `subdomain` = 'account499aeb4c-fb0e-4fc8-b9b6-2b4d1db1c3fa' WHERE `accounts`.`id` = x'499aeb4cfb0e4fc8b9b62b4d1db1c3fa' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'499aeb4cfb0e4fc8b9b62b4d1db1c3fa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'499aeb4cfb0e4fc8b9b62b4d1db1c3fa', x'7f7360cb335b435aab6794bbeb023711', x'e1f707ddab2a4f44abc3815591f336c5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7f7360cb335b435aab6794bbeb023711') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f7360cb335b435aab6794bbeb023711' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f7360cb335b435aab6794bbeb023711', x'247d266d0f804312bafcebe9eca532c0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7f7360cb335b435aab6794bbeb023711') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f7360cb335b435aab6794bbeb023711' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f7360cb335b435aab6794bbeb023711', x'a5e63495f8bf44fc9b788071182bedc1', 'admin') Sent mail to xpto@account.test (132ms) Date: Wed, 02 Jan 2013 09:06:36 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414bcd575c_107080435d487455@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'8a43d6801c94412f8b621caf8c98b979', 'jabanilson', NULL, 1, '2013-01-02 11:06:37')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'account8a43d680-1c94-412f-8b62-1caf8c98b979' WHERE `accounts`.`id` = x'8a43d6801c94412f8b621caf8c98b979'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8a43d6801c94412f8b621caf8c98b979', x'089c938bbfb347cda852b39d2e773815', x'e1f707ddab2a4f44abc3815591f336c5') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'089c938bbfb347cda852b39d2e773815') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'089c938bbfb347cda852b39d2e773815' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'089c938bbfb347cda852b39d2e773815', x'9f4a494b01524a2499688db0b3b9a6fd', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'089c938bbfb347cda852b39d2e773815') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'089c938bbfb347cda852b39d2e773815' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'089c938bbfb347cda852b39d2e773815', x'8a0aa790a2fd486bbf1fdb652b1cc162', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'45293c5c8c2e46b08360db67263f0c55' WHERE `account_users`.`id` = x'089c938bbfb347cda852b39d2e773815'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'089c938bbfb347cda852b39d2e773815'  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8a0aa790a2fd486bbf1fdb652b1cc162' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'089c938bbfb347cda852b39d2e773815' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9f4a494b01524a2499688db0b3b9a6fd'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'089c938bbfb347cda852b39d2e773815') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'089c938bbfb347cda852b39d2e773815' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'089c938bbfb347cda852b39d2e773815', x'3b0e5abae8164f62ad5ff14a4872b4fb', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/45293c5c-8c2e-46b0-8360-db67263f0c55/users" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"45293c5c-8c2e-46b0-8360-db67263f0c55"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_45293c5c-8c2e-46b0-8360-db67263f0c55_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e1f707ddab2a4f44abc3815591f336c5' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' AND `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_089c938b-bfb3-47cd-a852-b39d2e773815_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'089c938bbfb347cda852b39d2e773815' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' AND `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_cf608280-29cd-4cf8-bb4a-341f4b5f7d3f_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' AND `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.3ms | ActiveRecord: 4.1ms) Started DELETE "/settings/account/45293c5c-8c2e-46b0-8360-db67263f0c55/user/e1f707dd-ab2a-4f44-abc3-815591f336c5" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"45293c5c-8c2e-46b0-8360-db67263f0c55", "user_id"=>"e1f707dd-ab2a-4f44-abc3-815591f336c5"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_45293c5c-8c2e-46b0-8360-db67263f0c55_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' AND `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' AND `account_users`.`user_id` = x'e1f707ddab2a4f44abc3815591f336c5' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1 User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e1f707ddab2a4f44abc3815591f336c5' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'089c938bbfb347cda852b39d2e773815' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:37', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 089c938b-bfb3-47cd-a852-b39d2e773815\n', NULL, NULL, NULL, 0, 'account_user_089c938b-bfb3-47cd-a852-b39d2e773815_destroy', '2013-01-02 11:06:37', '2013-01-02 11:06:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_089c938b-bfb3-47cd-a852-b39d2e773815_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/45293c5c-8c2e-46b0-8360-db67263f0c55/users Completed 302 Found in 22ms (ActiveRecord: 4.0ms) Started GET "/settings/account/45293c5c-8c2e-46b0-8360-db67263f0c55/users" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"45293c5c-8c2e-46b0-8360-db67263f0c55"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_45293c5c-8c2e-46b0-8360-db67263f0c55_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'45293c5c8c2e46b08360db67263f0c55' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e1f707ddab2a4f44abc3815591f336c5' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' AND `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_089c938b-bfb3-47cd-a852-b39d2e773815_destroy' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' AND `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_cf608280-29cd-4cf8-bb4a-341f4b5f7d3f_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'45293c5c8c2e46b08360db67263f0c55' AND `account_users`.`user_id` = x'c264037ddef14d60ab4fd96fb94db3cb' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'cf60828029cd4cf8bb4a341f4b5f7d3f' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 24ms (Views: 16.4ms | ActiveRecord: 3.6ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:37', 'teste@teste.com', '$2a$04$R3lOspziXRKEAlS2OUyNBOmfi7CZWdR4JupQAVifK7dGJC0g/CMXS', NULL, x'0a7f209618ae449297dbcae2ea0a673d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:37') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0a7f209618ae449297dbcae2ea0a673d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:37', 'User', x'284dd9c0f4664cb3880023708b049085', 'd2adc8f03910099adccb795f5d86287a', x'0a7f209618ae449297dbcae2ea0a673d', 'User', '2013-01-02 11:06:37') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0a7f209618ae449297dbcae2ea0a673d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'f57e8a0d96d84eec9e5634ad8cc6f855', NULL, NULL, NULL, '2013-01-02 11:06:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'accountf57e8a0d-96d8-4eec-9e56-34ad8cc6f855' WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f57e8a0d96d84eec9e5634ad8cc6f855', x'f4ade85f44174995a9858e955790d657', x'0a7f209618ae449297dbcae2ea0a673d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4ade85f44174995a9858e955790d657' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f4ade85f44174995a9858e955790d657', x'f2239b1f683047f4945f03bc26628628', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f4ade85f44174995a9858e955790d657' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f4ade85f44174995a9858e955790d657', x'54ec2e3966cc49efb35d949d9ca60753', 'admin') Sent mail to teste@teste.com (7ms) Date: Wed, 02 Jan 2013 09:06:37 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bd28a56_107080435d48746c3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:37', 'xpto@account.test', '$2a$04$GGLccUVSY5BfsP1jEX36TO0eTUTELQ5HID3osy5lhkQKflEiV2.d2', NULL, x'1862a4e069ee4881b1a140391b1b4f77', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1862a4e069ee4881b1a140391b1b4f77' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:37', 'User', x'7ddc88ea51db40ecb7aa7d64ee80f748', 'f58225d1cc7b7ad311e8312c2b39dba4', x'1862a4e069ee4881b1a140391b1b4f77', 'User', '2013-01-02 11:06:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1862a4e069ee4881b1a140391b1b4f77' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'f043b078459c42fb98726bdd984a7897', NULL, NULL, NULL, '2013-01-02 11:06:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'accountf043b078-459c-42fb-9872-6bdd984a7897' WHERE `accounts`.`id` = x'f043b078459c42fb98726bdd984a7897' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f043b078459c42fb98726bdd984a7897' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f043b078459c42fb98726bdd984a7897', x'48cb3df040584e8e9d2a63e59a32ca8d', x'1862a4e069ee4881b1a140391b1b4f77') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'48cb3df040584e8e9d2a63e59a32ca8d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'48cb3df040584e8e9d2a63e59a32ca8d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'48cb3df040584e8e9d2a63e59a32ca8d', x'5467df3a069d4cdc99a9cf665a12ffe0', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'48cb3df040584e8e9d2a63e59a32ca8d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'48cb3df040584e8e9d2a63e59a32ca8d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'48cb3df040584e8e9d2a63e59a32ca8d', x'e9472be527434f5e9fe9a7fa8089d0a3', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:37 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414bd3da5a_107080435d4874715@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'd010890c2c514d58b727ff0b2c74973e', 'jabanilson', NULL, 1, '2013-01-02 11:06:37')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'accountd010890c-2c51-4d58-b727-ff0b2c74973e' WHERE `accounts`.`id` = x'd010890c2c514d58b727ff0b2c74973e'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd010890c2c514d58b727ff0b2c74973e', x'f2416c6dfab845cb84722a07c557e6f1', x'1862a4e069ee4881b1a140391b1b4f77') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f2416c6dfab845cb84722a07c557e6f1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f2416c6dfab845cb84722a07c557e6f1' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f2416c6dfab845cb84722a07c557e6f1', x'115f8b02e4864e5287994e264aac5e80', 'owner') AccountRole Exists (0.6ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f2416c6dfab845cb84722a07c557e6f1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f2416c6dfab845cb84722a07c557e6f1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f2416c6dfab845cb84722a07c557e6f1', x'76233335ac9348d9af609dbb010ffca6', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' WHERE `account_users`.`id` = x'f2416c6dfab845cb84722a07c557e6f1'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f2416c6dfab845cb84722a07c557e6f1'  (0.1ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f2416c6dfab845cb84722a07c557e6f1' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'115f8b02e4864e5287994e264aac5e80' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'76233335ac9348d9af609dbb010ffca6'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'f2416c6dfab845cb84722a07c557e6f1') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f2416c6dfab845cb84722a07c557e6f1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f2416c6dfab845cb84722a07c557e6f1', x'669967923add4363953de64e4b4bbd59', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/f57e8a0d-96d8-4eec-9e56-34ad8cc6f855/users" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"f57e8a0d-96d8-4eec-9e56-34ad8cc6f855"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f57e8a0d-96d8-4eec-9e56-34ad8cc6f855_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1862a4e069ee4881b1a140391b1b4f77' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' AND `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_f2416c6d-fab8-45cb-8472-2a07c557e6f1_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f2416c6dfab845cb84722a07c557e6f1' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' AND `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_f4ade85f-4417-4995-a985-8e955790d657_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' AND `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 26ms (Views: 18.6ms | ActiveRecord: 4.0ms) Started DELETE "/settings/account/f57e8a0d-96d8-4eec-9e56-34ad8cc6f855/user/1862a4e0-69ee-4881-b1a1-40391b1b4f77" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"f57e8a0d-96d8-4eec-9e56-34ad8cc6f855", "user_id"=>"1862a4e0-69ee-4881-b1a1-40391b1b4f77"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f57e8a0d-96d8-4eec-9e56-34ad8cc6f855_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' AND `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' AND `account_users`.`user_id` = x'1862a4e069ee4881b1a140391b1b4f77' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1862a4e069ee4881b1a140391b1b4f77' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f2416c6dfab845cb84722a07c557e6f1' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:37', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: f2416c6d-fab8-45cb-8472-2a07c557e6f1\n', NULL, NULL, NULL, 0, 'account_user_f2416c6d-fab8-45cb-8472-2a07c557e6f1_destroy', '2013-01-03 11:06:37', '2013-01-02 11:06:37')  (0.1ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_f2416c6d-fab8-45cb-8472-2a07c557e6f1_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/f57e8a0d-96d8-4eec-9e56-34ad8cc6f855/users Completed 302 Found in 22ms (ActiveRecord: 4.4ms) Started GET "/settings/account/f57e8a0d-96d8-4eec-9e56-34ad8cc6f855/users" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"f57e8a0d-96d8-4eec-9e56-34ad8cc6f855"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_f57e8a0d-96d8-4eec-9e56-34ad8cc6f855_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1862a4e069ee4881b1a140391b1b4f77' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' AND `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_f2416c6d-fab8-45cb-8472-2a07c557e6f1_destroy' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' AND `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_f4ade85f-4417-4995-a985-8e955790d657_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f57e8a0d96d84eec9e5634ad8cc6f855' AND `account_users`.`user_id` = x'0a7f209618ae449297dbcae2ea0a673d' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f4ade85f44174995a9858e955790d657' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 24ms (Views: 17.2ms | ActiveRecord: 3.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:37', 'teste@teste.com', '$2a$04$SRN4v0DqcfH8sVGQSRjicONV4ujZ5X.tWAkplDwNsT456Cjfj.JgW', NULL, x'b33f024ab7564e48ac350a5bd25cec39', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b33f024ab7564e48ac350a5bd25cec39' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:37', 'User', x'f11ecb33976a48949364df7a965f57d3', '691bf2423065f848ee667fd4481f1fe9', x'b33f024ab7564e48ac350a5bd25cec39', 'User', '2013-01-02 11:06:37') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b33f024ab7564e48ac350a5bd25cec39' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'3876708fb9254807ad9a3fab675014bf', NULL, NULL, NULL, '2013-01-02 11:06:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'account3876708f-b925-4807-ad9a-3fab675014bf' WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3876708fb9254807ad9a3fab675014bf', x'7256528e743148aa8896ea30c47886aa', x'b33f024ab7564e48ac350a5bd25cec39') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7256528e743148aa8896ea30c47886aa' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7256528e743148aa8896ea30c47886aa', x'7bea15d937984f01ae0b49f8aad16cbb', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7256528e743148aa8896ea30c47886aa' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7256528e743148aa8896ea30c47886aa', x'fa2408ab18b745849bd35c3d22895444', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:37 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bd85075_107080435d48748f9@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'teste@teste.com' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'xpto@account.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:37', 'xpto@account.test', '$2a$04$1TDNg5vUt7DssUU/wY8DMuGsfbMb06TddgXGIcRwoI6IwmwztzuAC', NULL, x'4c99771ff8b242d98a9743c36f024389', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'4c99771ff8b242d98a9743c36f024389' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:37', 'User', x'351a8c43cce7486b88bf14f011153649', '0dc7b801705b16e54ff5fa9780bafe0f', x'4c99771ff8b242d98a9743c36f024389', 'User', '2013-01-02 11:06:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'4c99771ff8b242d98a9743c36f024389' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'5e69fb5b20bc4da699e9e58d6c4b9b45', NULL, NULL, NULL, '2013-01-02 11:06:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'account5e69fb5b-20bc-4da6-99e9-e58d6c4b9b45' WHERE `accounts`.`id` = x'5e69fb5b20bc4da699e9e58d6c4b9b45' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5e69fb5b20bc4da699e9e58d6c4b9b45' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5e69fb5b20bc4da699e9e58d6c4b9b45', x'bd5cd3af1a6947f2ace7009fa080887b', x'4c99771ff8b242d98a9743c36f024389') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'bd5cd3af1a6947f2ace7009fa080887b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd5cd3af1a6947f2ace7009fa080887b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd5cd3af1a6947f2ace7009fa080887b', x'4cf849b2c7aa42f48ece92c9b2c2967b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'bd5cd3af1a6947f2ace7009fa080887b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'bd5cd3af1a6947f2ace7009fa080887b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'bd5cd3af1a6947f2ace7009fa080887b', x'76467cfd8cb448cfbba1b90c79613f43', 'admin') Sent mail to xpto@account.test (6ms) Date: Wed, 02 Jan 2013 09:06:37 -0200 From: iugu Reply-To: iugu To: xpto@account.test Message-ID: <50e414bd9a067_107080435d48749ca@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'14a4444468a6471b94107e1608206b81', 'jabanilson', NULL, 1, '2013-01-02 11:06:37')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'account14a44444-68a6-471b-9410-7e1608206b81' WHERE `accounts`.`id` = x'14a4444468a6471b94107e1608206b81'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'14a4444468a6471b94107e1608206b81', x'2355c8db756948d490ab95742d67743c', x'4c99771ff8b242d98a9743c36f024389') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2355c8db756948d490ab95742d67743c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2355c8db756948d490ab95742d67743c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2355c8db756948d490ab95742d67743c', x'70efec7b53eb44ac8da672290497aca9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2355c8db756948d490ab95742d67743c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2355c8db756948d490ab95742d67743c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2355c8db756948d490ab95742d67743c', x'2f82da5f288f41fa90a009ddc826c458', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1  (0.2ms) UPDATE `account_users` SET `account_id` = x'3876708fb9254807ad9a3fab675014bf' WHERE `account_users`.`id` = x'2355c8db756948d490ab95742d67743c'  (0.1ms) RELEASE SAVEPOINT active_record_1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2355c8db756948d490ab95742d67743c'  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'2f82da5f288f41fa90a009ddc826c458' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2355c8db756948d490ab95742d67743c' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '8vp¹%H­š?«gP¿' AND name = 'owner') SQL (0.1ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'70efec7b53eb44ac8da672290497aca9'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'user' AND `account_roles`.`account_user_id` = x'2355c8db756948d490ab95742d67743c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2355c8db756948d490ab95742d67743c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2355c8db756948d490ab95742d67743c', x'0471345969b94f8ba2894426df437acb', 'user')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/3876708f-b925-4807-ad9a-3fab675014bf/users" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"3876708f-b925-4807-ad9a-3fab675014bf"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3876708f-b925-4807-ad9a-3fab675014bf_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4c99771ff8b242d98a9743c36f024389' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' AND `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_2355c8db-7569-48d4-90ab-95742d67743c_destroy' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2355c8db756948d490ab95742d67743c' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' AND `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7256528e-7431-48aa-8896-ea30c47886aa_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' AND `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 154ms (Views: 18.9ms | ActiveRecord: 4.2ms) Started DELETE "/settings/account/3876708f-b925-4807-ad9a-3fab675014bf/user/4c99771f-f8b2-42d9-8a97-43c36f024389" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#destroy as HTML Parameters: {"account_id"=>"3876708f-b925-4807-ad9a-3fab675014bf", "user_id"=>"4c99771f-f8b2-42d9-8a97-43c36f024389"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3876708f-b925-4807-ad9a-3fab675014bf_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' AND `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'admin' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' AND `account_users`.`user_id` = x'4c99771ff8b242d98a9743c36f024389' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4c99771ff8b242d98a9743c36f024389' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'2355c8db756948d490ab95742d67743c' AND `account_roles`.`name` = 'owner' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:37', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 2355c8db-7569-48d4-90ab-95742d67743c\n', NULL, NULL, NULL, 0, 'account_user_2355c8db-7569-48d4-90ab-95742d67743c_destroy', '2013-01-03 11:06:37', '2013-01-02 11:06:37')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_2355c8db-7569-48d4-90ab-95742d67743c_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/account/3876708f-b925-4807-ad9a-3fab675014bf/users Completed 302 Found in 22ms (ActiveRecord: 4.8ms) Started GET "/settings/account/3876708f-b925-4807-ad9a-3fab675014bf/users" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"3876708f-b925-4807-ad9a-3fab675014bf"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_3876708f-b925-4807-ad9a-3fab675014bf_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3876708fb9254807ad9a3fab675014bf' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'4c99771ff8b242d98a9743c36f024389' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' AND `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_2355c8db-7569-48d4-90ab-95742d67743c_destroy' LIMIT 1 CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' AND `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_7256528e-7431-48aa-8896-ea30c47886aa_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'3876708fb9254807ad9a3fab675014bf' AND `account_users`.`user_id` = x'b33f024ab7564e48ac350a5bd25cec39' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'7256528e743148aa8896ea30c47886aa' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 24ms (Views: 17.1ms | ActiveRecord: 3.6ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/orkut" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::OmniauthCallbacksController#passthru as HTML Parameters: {"provider"=>"orkut"} Completed 404 Not Found in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Completed 404 Not Found in 1ms  (0.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:37', '2013-01-02 11:06:37', 'facebook@test.test', '', NULL, x'eab9015433c6456c924f1ef9cf3186dc', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'eab9015433c6456c924f1ef9cf3186dc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:37', 'User', x'fc640e0d06384759bd933536bf959696', '772c4daf0c075da4ea82f79b736109e6', x'eab9015433c6456c924f1ef9cf3186dc', 'User', '2013-01-02 11:06:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'eab9015433c6456c924f1ef9cf3186dc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'299a5f5aa6dc4beaa5f72d78a0a1e343', NULL, NULL, NULL, '2013-01-02 11:06:37')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'account299a5f5a-a6dc-4bea-a5f7-2d78a0a1e343' WHERE `accounts`.`id` = x'299a5f5aa6dc4beaa5f72d78a0a1e343' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'299a5f5aa6dc4beaa5f72d78a0a1e343' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'299a5f5aa6dc4beaa5f72d78a0a1e343', x'e9c90c9692e44828b3b2ea8385615bb5', x'eab9015433c6456c924f1ef9cf3186dc') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e9c90c9692e44828b3b2ea8385615bb5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9c90c9692e44828b3b2ea8385615bb5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9c90c9692e44828b3b2ea8385615bb5', x'ed7f5306daeb4649892c435169d4b0b5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e9c90c9692e44828b3b2ea8385615bb5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e9c90c9692e44828b3b2ea8385615bb5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e9c90c9692e44828b3b2ea8385615bb5', x'4fc5467fb644475eb0d30be4776ad6f5', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:37 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414bde5fa9_107080435d487503b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'4a04ac3291dd4f6d85fcf1826471144a', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'eab9015433c6456c924f1ef9cf3186dc')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eab9015433c6456c924f1ef9cf3186dc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'eab9015433c6456c924f1ef9cf3186dc' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 7.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'eab9015433c6456c924f1ef9cf3186dc' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'eab9015433c6456c924f1ef9cf3186dc' LIMIT 1 Completed 404 Not Found in 2ms  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:37 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:37', '2013-01-02 11:06:37', 'facebook@test.test', '', NULL, x'c609a7b584584c61a5ffbaad4b7155d4', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:37') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c609a7b584584c61a5ffbaad4b7155d4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:37', 'User', x'e684587a9ac2453e8ea27fe430fbb69b', '8e5e90aa5fd9d0c58e996dd1efeb1a65', x'c609a7b584584c61a5ffbaad4b7155d4', 'User', '2013-01-02 11:06:37') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c609a7b584584c61a5ffbaad4b7155d4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:37', x'cacaca5e4bf44f2f96d11067d371ce02', NULL, NULL, NULL, '2013-01-02 11:06:37')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:37', `updated_at` = '2013-01-02 11:06:37', `subdomain` = 'accountcacaca5e-4bf4-4f2f-96d1-1067d371ce02' WHERE `accounts`.`id` = x'cacaca5e4bf44f2f96d11067d371ce02' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cacaca5e4bf44f2f96d11067d371ce02' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cacaca5e4bf44f2f96d11067d371ce02', x'f683e5efbce5443abdf5d3fc785297b5', x'c609a7b584584c61a5ffbaad4b7155d4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f683e5efbce5443abdf5d3fc785297b5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f683e5efbce5443abdf5d3fc785297b5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f683e5efbce5443abdf5d3fc785297b5', x'2b500a2e3cc6470ca84c088340822359', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f683e5efbce5443abdf5d3fc785297b5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f683e5efbce5443abdf5d3fc785297b5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f683e5efbce5443abdf5d3fc785297b5', x'824b91e4df5c46f7a2ec6d719e1a071c', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:38 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414be22d3f_107080435d48751c7@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'b8f91a2ddfce4202a80e7a392b1d97df', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'c609a7b584584c61a5ffbaad4b7155d4')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c609a7b584584c61a5ffbaad4b7155d4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c609a7b584584c61a5ffbaad4b7155d4' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 179ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c609a7b584584c61a5ffbaad4b7155d4' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:38', 'test@test.test', '$2a$04$vduUDWzwxF2zZJPlu8qSI.I.qfktKj6O5qIe/j5nzYVZPyvnRPw1S', NULL, x'ddcd003470ef4eda9a0d927999956fcc', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ddcd003470ef4eda9a0d927999956fcc' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:38', 'User', x'970b144c1aee465cb95204dd161ce708', '177e5560b5bc2c8f64ee96e8efc9067d', x'ddcd003470ef4eda9a0d927999956fcc', 'User', '2013-01-02 11:06:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ddcd003470ef4eda9a0d927999956fcc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:38', x'2f4f4cc9b61f4a4286e46bca09e78275', NULL, NULL, NULL, '2013-01-02 11:06:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:38', `updated_at` = '2013-01-02 11:06:38', `subdomain` = 'account2f4f4cc9-b61f-4a42-86e4-6bca09e78275' WHERE `accounts`.`id` = x'2f4f4cc9b61f4a4286e46bca09e78275' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2f4f4cc9b61f4a4286e46bca09e78275' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2f4f4cc9b61f4a4286e46bca09e78275', x'5ae4ce9c00ae4c93927e809a572b270c', x'ddcd003470ef4eda9a0d927999956fcc') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5ae4ce9c00ae4c93927e809a572b270c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5ae4ce9c00ae4c93927e809a572b270c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5ae4ce9c00ae4c93927e809a572b270c', x'5d5a3a66cfb44c5291e48526009c0cff', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5ae4ce9c00ae4c93927e809a572b270c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5ae4ce9c00ae4c93927e809a572b270c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5ae4ce9c00ae4c93927e809a572b270c', x'b3cc9d5e7f8d4e3f82c78f82ae946547', 'admin') Sent mail to test@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:38 -0200 From: iugu Reply-To: iugu To: test@test.test Message-ID: <50e414be363f6_107080435d4875276@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ddcd003470ef4eda9a0d927999956fcc' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ddcd003470ef4eda9a0d927999956fcc' LIMIT 1 Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ddcd003470ef4eda9a0d927999956fcc' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ddcd003470ef4eda9a0d927999956fcc' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ddcd003470ef4eda9a0d927999956fcc' AND (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ab7a8e7bb3fd49ba87345e06fcea1e92', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'ddcd003470ef4eda9a0d927999956fcc')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ddcd003470ef4eda9a0d927999956fcc' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ddcd003470ef4eda9a0d927999956fcc' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ddcd003470ef4eda9a0d927999956fcc' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_ddcd0034-70ef-4eda-9a0d-927999956fcc_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ddcd003470ef4eda9a0d927999956fcc' SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ddcd003470ef4eda9a0d927999956fcc' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ddcd003470ef4eda9a0d927999956fcc' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 45ms (Views: 41.0ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'facebook@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:38', 'facebook@test.test', '$2a$04$Jc7TGYtoUc4ZyLd2MdIwVOUnnPCXxgqvOGcJIh.eeDN2hARQ.fCbG', NULL, x'fdf96789694d497690d4a77430616051', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fdf96789694d497690d4a77430616051' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:38', 'User', x'bcf5896c5c36487e91bb1936c22183a5', 'eeccb7ef371a44431de27d9b973aa6ff', x'fdf96789694d497690d4a77430616051', 'User', '2013-01-02 11:06:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fdf96789694d497690d4a77430616051' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:38', x'b5603f3d6466484e876e221b80f1a065', NULL, NULL, NULL, '2013-01-02 11:06:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:38', `updated_at` = '2013-01-02 11:06:38', `subdomain` = 'accountb5603f3d-6466-484e-876e-221b80f1a065' WHERE `accounts`.`id` = x'b5603f3d6466484e876e221b80f1a065' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b5603f3d6466484e876e221b80f1a065' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b5603f3d6466484e876e221b80f1a065', x'014fbecff1644960b806665c1628a6a0', x'fdf96789694d497690d4a77430616051') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'014fbecff1644960b806665c1628a6a0') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'014fbecff1644960b806665c1628a6a0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'014fbecff1644960b806665c1628a6a0', x'b073d07d971947faa075eb9805349c81', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'014fbecff1644960b806665c1628a6a0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'014fbecff1644960b806665c1628a6a0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'014fbecff1644960b806665c1628a6a0', x'1224d8e0095242dcb8ae1d14d52aa0f2', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:38 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414be77630_107080435d48753e3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test' Redirected to http://iugusdk.dev/ Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/twitter" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:38', '2013-01-02 11:06:38', '', '', NULL, x'296953c907a64f7394dd34a6a7c80b1c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'296953c907a64f7394dd34a6a7c80b1c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:38', 'User', x'cce0399ed0444351913fa190938c6b0b', '815093f136a530b07415a749c02f0da9', x'296953c907a64f7394dd34a6a7c80b1c', 'User', '2013-01-02 11:06:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'296953c907a64f7394dd34a6a7c80b1c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:38', x'009a905011d34aaf99b5f14a2ad5164d', NULL, NULL, NULL, '2013-01-02 11:06:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:38', `updated_at` = '2013-01-02 11:06:38', `subdomain` = 'account009a9050-11d3-4aaf-99b5-f14a2ad5164d' WHERE `accounts`.`id` = x'009a905011d34aaf99b5f14a2ad5164d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'009a905011d34aaf99b5f14a2ad5164d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'009a905011d34aaf99b5f14a2ad5164d', x'689da974ef064be18846e5e2dae641ed', x'296953c907a64f7394dd34a6a7c80b1c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'689da974ef064be18846e5e2dae641ed') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'689da974ef064be18846e5e2dae641ed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'689da974ef064be18846e5e2dae641ed', x'dd17426923c543e9a1b8d52c7ec6ef58', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'689da974ef064be18846e5e2dae641ed') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'689da974ef064be18846e5e2dae641ed' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'689da974ef064be18846e5e2dae641ed', x'1f2ccc0306b94466a2ef02b997fdb545', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'461276d274e64b85a3c9d3b6b641273c', 'twitter', NULL, '1234', 'newtoken', x'296953c907a64f7394dd34a6a7c80b1c')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'296953c907a64f7394dd34a6a7c80b1c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'296953c907a64f7394dd34a6a7c80b1c' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 38ms (ActiveRecord: 7.3ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'296953c907a64f7394dd34a6a7c80b1c' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.9ms) ROLLBACK  (0.1ms) BEGIN Started GET "/login" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_responsive-dialog.header.html.haml (0.2ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test@test.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:38', 'test@test.test', '$2a$04$niP2IaFHzm5Kk8c/TuCzkehyD3Zc.vgxncoDZfbvSx/zCPRzVwLnK', NULL, x'ba3dca162cd847bba6efae00652a690c', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:38') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'ba3dca162cd847bba6efae00652a690c' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:38', 'User', x'21c554e5abc0430d9892f89fc1571d61', '6be53efc09eb04da4c7ce78c3a20e47a', x'ba3dca162cd847bba6efae00652a690c', 'User', '2013-01-02 11:06:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ba3dca162cd847bba6efae00652a690c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:38', x'7913c016c3cd4bb69d2c43a96c90a7d5', NULL, NULL, NULL, '2013-01-02 11:06:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:38', `updated_at` = '2013-01-02 11:06:38', `subdomain` = 'account7913c016-c3cd-4bb6-9d2c-43a96c90a7d5' WHERE `accounts`.`id` = x'7913c016c3cd4bb69d2c43a96c90a7d5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7913c016c3cd4bb69d2c43a96c90a7d5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7913c016c3cd4bb69d2c43a96c90a7d5', x'beda7ae6612646e3b061fc6d9742e077', x'ba3dca162cd847bba6efae00652a690c') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'beda7ae6612646e3b061fc6d9742e077') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'beda7ae6612646e3b061fc6d9742e077' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'beda7ae6612646e3b061fc6d9742e077', x'01f64ee307b4420297d9d21e62b109b2', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'beda7ae6612646e3b061fc6d9742e077') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'beda7ae6612646e3b061fc6d9742e077' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'beda7ae6612646e3b061fc6d9742e077', x'00cc204f05134a35892f8b7f2e362025', 'admin') Sent mail to test@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:38 -0200 From: iugu Reply-To: iugu To: test@test.test Message-ID: <50e414be985ef_107080435d487547a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/login" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "user"=>{"email"=>"test@test.test", "password"=>"[FILTERED]"}, "commit"=>"Sign in"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test@test.test' LIMIT 1 Redirected to http://iugusdk.dev/ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ba3dca162cd847bba6efae00652a690c' AND (accounts.id = NULL) LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'ba3dca162cd847bba6efae00652a690c' LIMIT 1 Completed 302 Found in 132ms (ActiveRecord: 1.1ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ba3dca162cd847bba6efae00652a690c' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET "/account/auth/twitter" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Started GET "/account/auth/twitter/callback" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::OmniauthCallbacksController#twitter as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ba3dca162cd847bba6efae00652a690c' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ba3dca162cd847bba6efae00652a690c' AND (provider = 'twitter' AND social_id = '1234') LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'fca119fd656f42f98d317bc9e6d46019', 'twitter', NULL, '1234', 'newtoken', x'ba3dca162cd847bba6efae00652a690c')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ba3dca162cd847bba6efae00652a690c' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'ba3dca162cd847bba6efae00652a690c' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'ba3dca162cd847bba6efae00652a690c' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_ba3dca16-2cd8-47bb-a6ef-ae00652a690c_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ba3dca162cd847bba6efae00652a690c' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ba3dca162cd847bba6efae00652a690c' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'ba3dca162cd847bba6efae00652a690c' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.8ms | ActiveRecord: 2.7ms)  (0.7ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:38', '2013-01-02 11:06:38', 'facebook@test.test', '', NULL, x'bd9d8507c163476696279f0ff41c72cb', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:38') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bd9d8507c163476696279f0ff41c72cb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:38', 'User', x'1943f2d4141747a6af33787421a7d034', 'b3e44e94b0943e83b85a4eab2cf24115', x'bd9d8507c163476696279f0ff41c72cb', 'User', '2013-01-02 11:06:38') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bd9d8507c163476696279f0ff41c72cb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:38', x'6813bbf326884bd3b4d8d75857b9ee95', NULL, NULL, NULL, '2013-01-02 11:06:38')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:38', `updated_at` = '2013-01-02 11:06:38', `subdomain` = 'account6813bbf3-2688-4bd3-b4d8-d75857b9ee95' WHERE `accounts`.`id` = x'6813bbf326884bd3b4d8d75857b9ee95' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6813bbf326884bd3b4d8d75857b9ee95' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6813bbf326884bd3b4d8d75857b9ee95', x'34f8e86da0294d9bbeb6a151c105b4b0', x'bd9d8507c163476696279f0ff41c72cb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'34f8e86da0294d9bbeb6a151c105b4b0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'34f8e86da0294d9bbeb6a151c105b4b0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'34f8e86da0294d9bbeb6a151c105b4b0', x'009127348f8a4ad5980fc878653e7bf4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'34f8e86da0294d9bbeb6a151c105b4b0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'34f8e86da0294d9bbeb6a151c105b4b0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'34f8e86da0294d9bbeb6a151c105b4b0', x'eea950b908a84dad86588d95caf22f52', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:38 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414bed5810_107080435d48755af@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'22ac52752b044bbab25532b9ab6961a6', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'bd9d8507c163476696279f0ff41c72cb')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bd9d8507c163476696279f0ff41c72cb' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bd9d8507c163476696279f0ff41c72cb' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bd9d8507c163476696279f0ff41c72cb' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bd9d8507c163476696279f0ff41c72cb'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'bd9d8507c163476696279f0ff41c72cb' AND `account_users`.`account_id` = x'6813bbf326884bd3b4d8d75857b9ee95' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:38', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 34f8e86d-a029-4d9b-beb6-a151c105b4b0\n', NULL, NULL, NULL, 0, 'account_user_34f8e86d-a029-4d9b-beb6-a151c105b4b0_destroy', '2013-01-03 11:06:38', '2013-01-02 11:06:38')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:38', x'15bb33584a59427388175a6f540edd4f', 'jabanilson', NULL, 1, '2013-01-02 11:06:38')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:38', `updated_at` = '2013-01-02 11:06:38', `subdomain` = 'account15bb3358-4a59-4273-8817-5a6f540edd4f' WHERE `accounts`.`id` = x'15bb33584a59427388175a6f540edd4f'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bd9d8507c163476696279f0ff41c72cb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'15bb33584a59427388175a6f540edd4f', x'9b588a36217c4d76b09baaf1b821ee5e', x'bd9d8507c163476696279f0ff41c72cb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9b588a36217c4d76b09baaf1b821ee5e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9b588a36217c4d76b09baaf1b821ee5e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9b588a36217c4d76b09baaf1b821ee5e', x'b06ab0e840934a9d842af37bca147bfc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9b588a36217c4d76b09baaf1b821ee5e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9b588a36217c4d76b09baaf1b821ee5e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9b588a36217c4d76b09baaf1b821ee5e', x'859d4a617a0348a99d4649f4be0d88e2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bd9d8507c163476696279f0ff41c72cb' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:38 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bd9d8507c163476696279f0ff41c72cb' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bd9d8507c163476696279f0ff41c72cb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_bd9d8507-c163-4766-9627-9f0ff41c72cb_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'bd9d8507c163476696279f0ff41c72cb' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'bd9d8507c163476696279f0ff41c72cb' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'bd9d8507c163476696279f0ff41c72cb' AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bd9d8507c163476696279f0ff41c72cb' Completed 200 OK in 146ms (Views: 141.0ms | ActiveRecord: 3.0ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:39', '2013-01-02 11:06:39', 'facebook@test.test', '', NULL, x'5e8ed13699414a84ace9bee56c69552b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5e8ed13699414a84ace9bee56c69552b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:39', 'User', x'1659f6135eca4fc9b89e8dd90e53437b', '7948475708d1d0c86532d6da8fc1ca5f', x'5e8ed13699414a84ace9bee56c69552b', 'User', '2013-01-02 11:06:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5e8ed13699414a84ace9bee56c69552b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'2891eaf87fab4dcd8e333b2c6c929369', NULL, NULL, NULL, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account2891eaf8-7fab-4dcd-8e33-3b2c6c929369' WHERE `accounts`.`id` = x'2891eaf87fab4dcd8e333b2c6c929369' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2891eaf87fab4dcd8e333b2c6c929369' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2891eaf87fab4dcd8e333b2c6c929369', x'37ed8160f2634c028ec4165ae38afb7a', x'5e8ed13699414a84ace9bee56c69552b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'37ed8160f2634c028ec4165ae38afb7a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37ed8160f2634c028ec4165ae38afb7a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37ed8160f2634c028ec4165ae38afb7a', x'c5c45256904640fd99dd53077e3636ba', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'37ed8160f2634c028ec4165ae38afb7a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37ed8160f2634c028ec4165ae38afb7a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37ed8160f2634c028ec4165ae38afb7a', x'6c4ad09baf99411ea196107f3be19c78', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:39 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414bf203a9_107080435d48756ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'99968639da6d452db69bd70926dabc7e', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'5e8ed13699414a84ace9bee56c69552b')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5e8ed13699414a84ace9bee56c69552b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5e8ed13699414a84ace9bee56c69552b' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5e8ed13699414a84ace9bee56c69552b' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5e8ed13699414a84ace9bee56c69552b'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5e8ed13699414a84ace9bee56c69552b' AND `account_users`.`account_id` = x'2891eaf87fab4dcd8e333b2c6c929369' SQL (0.5ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:39', NULL, '--- !ruby/struct:DestroyAccountUserJob\nid: 37ed8160-f263-4c02-8ec4-165ae38afb7a\n', NULL, NULL, NULL, 0, 'account_user_37ed8160-f263-4c02-8ec4-165ae38afb7a_destroy', '2013-01-03 11:06:39', '2013-01-02 11:06:39')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'301e9d98d7514d7396252abaf9ef0edf', 'jabanilson', NULL, 1, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account301e9d98-d751-4d73-9625-2abaf9ef0edf' WHERE `accounts`.`id` = x'301e9d98d7514d7396252abaf9ef0edf'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5e8ed13699414a84ace9bee56c69552b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'301e9d98d7514d7396252abaf9ef0edf', x'52b4f93548c14ecd80fcb3fc187e83b3', x'5e8ed13699414a84ace9bee56c69552b') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'52b4f93548c14ecd80fcb3fc187e83b3') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52b4f93548c14ecd80fcb3fc187e83b3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52b4f93548c14ecd80fcb3fc187e83b3', x'c4ceaf2a4cf0413b8e4b5387639d5592', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'52b4f93548c14ecd80fcb3fc187e83b3') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'52b4f93548c14ecd80fcb3fc187e83b3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'52b4f93548c14ecd80fcb3fc187e83b3', x'0b89fbe6e5d545bb8fac4f2c2bc3272b', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'310d7104f5b54d238bc442d3117fd0df', 'jabanilson', NULL, 1, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account310d7104-f5b5-4d23-8bc4-42d3117fd0df' WHERE `accounts`.`id` = x'310d7104f5b54d238bc442d3117fd0df'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5e8ed13699414a84ace9bee56c69552b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'310d7104f5b54d238bc442d3117fd0df', x'73c8e035f73a48aaafc5c07bb6aa1f03', x'5e8ed13699414a84ace9bee56c69552b') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'73c8e035f73a48aaafc5c07bb6aa1f03') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'73c8e035f73a48aaafc5c07bb6aa1f03' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'73c8e035f73a48aaafc5c07bb6aa1f03', x'4ed23b0d64194e24894040d465dee3c2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'73c8e035f73a48aaafc5c07bb6aa1f03') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'73c8e035f73a48aaafc5c07bb6aa1f03' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'73c8e035f73a48aaafc5c07bb6aa1f03', x'923dfcae95bd4685912c47ca060bb67a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5e8ed13699414a84ace9bee56c69552b' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5e8ed13699414a84ace9bee56c69552b' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5e8ed13699414a84ace9bee56c69552b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_5e8ed136-9941-4a84-ace9-bee56c69552b_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5e8ed13699414a84ace9bee56c69552b' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5e8ed13699414a84ace9bee56c69552b' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'5e8ed13699414a84ace9bee56c69552b' AND `social_accounts`.`provider` = 'twitter' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5e8ed13699414a84ace9bee56c69552b' Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 3.1ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:39', '2013-01-02 11:06:39', 'facebook@test.test', '', NULL, x'2b914fccacdf439da4129a3e07a70517', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'2b914fccacdf439da4129a3e07a70517' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:39', 'User', x'a48613105a8549818093b48e97dd18b1', 'a22b8d1d34bb34151956db7e5bcbf94b', x'2b914fccacdf439da4129a3e07a70517', 'User', '2013-01-02 11:06:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2b914fccacdf439da4129a3e07a70517' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'cddd2e0a8c0442d98be32eb1517778fb', NULL, NULL, NULL, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'accountcddd2e0a-8c04-42d9-8be3-2eb1517778fb' WHERE `accounts`.`id` = x'cddd2e0a8c0442d98be32eb1517778fb' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'cddd2e0a8c0442d98be32eb1517778fb' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'cddd2e0a8c0442d98be32eb1517778fb', x'3c3790a7156e48049e57208fe56afb88', x'2b914fccacdf439da4129a3e07a70517') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c3790a7156e48049e57208fe56afb88') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c3790a7156e48049e57208fe56afb88' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c3790a7156e48049e57208fe56afb88', x'8837381cf1464a4080a9c494831fd843', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c3790a7156e48049e57208fe56afb88') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c3790a7156e48049e57208fe56afb88' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c3790a7156e48049e57208fe56afb88', x'a65a9fa558894d389f803201c91318f2', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:39 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414bf62861_107080435d48757ac@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'cf686b3e6b404057ad42bf93584939be', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'2b914fccacdf439da4129a3e07a70517')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2b914fccacdf439da4129a3e07a70517' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'2b914fccacdf439da4129a3e07a70517' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 179ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2b914fccacdf439da4129a3e07a70517' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2b914fccacdf439da4129a3e07a70517' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'2b914fccacdf439da4129a3e07a70517' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'2b914fccacdf439da4129a3e07a70517' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_2b914fcc-acdf-439d-a412-9a3e07a70517_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2b914fccacdf439da4129a3e07a70517' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2b914fccacdf439da4129a3e07a70517' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'2b914fccacdf439da4129a3e07a70517' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.6ms | ActiveRecord: 2.5ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:39', '2013-01-02 11:06:39', 'facebook@test.test', '', NULL, x'5434290aafe2424e9ca065e0b1fcc1a1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5434290aafe2424e9ca065e0b1fcc1a1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:39', 'User', x'5171ecbda06645898efe38d2959f2873', '4163e179c8b881ed18a3b36616e0f35c', x'5434290aafe2424e9ca065e0b1fcc1a1', 'User', '2013-01-02 11:06:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5434290aafe2424e9ca065e0b1fcc1a1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'7306ceb2234b4d5990c6781dc572f20f', NULL, NULL, NULL, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account7306ceb2-234b-4d59-90c6-781dc572f20f' WHERE `accounts`.`id` = x'7306ceb2234b4d5990c6781dc572f20f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'7306ceb2234b4d5990c6781dc572f20f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'7306ceb2234b4d5990c6781dc572f20f', x'37d731fda301401fab3c87d805c54791', x'5434290aafe2424e9ca065e0b1fcc1a1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'37d731fda301401fab3c87d805c54791') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37d731fda301401fab3c87d805c54791' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37d731fda301401fab3c87d805c54791', x'ddad6846200240fe8e9ed1e96a013036', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'37d731fda301401fab3c87d805c54791') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'37d731fda301401fab3c87d805c54791' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'37d731fda301401fab3c87d805c54791', x'a49b732df5964512810229264800db39', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:39 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414bf7bcc7_107080435d487581b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'947a86b38d704718b063cecda8b512d2', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'5434290aafe2424e9ca065e0b1fcc1a1')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5434290aafe2424e9ca065e0b1fcc1a1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5434290aafe2424e9ca065e0b1fcc1a1' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5434290aafe2424e9ca065e0b1fcc1a1' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:39', 'teste@teste.com', '$2a$04$usEg4pIuaqbf7lp85OJN6uE9Izcvu909kOJll3Rw4jNhcHORi9CHW', NULL, x'd8650cb1796740b4b80971dbeaf344b9', 'en', 'fulano', NULL, NULL, NULL, NULL, '2013-01-02 11:06:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'd8650cb1796740b4b80971dbeaf344b9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:39', 'User', x'99abb8a9d4f9462f86cf85124de42e1f', '59ed3b4fbd9b07522e10065a9087dce4', x'd8650cb1796740b4b80971dbeaf344b9', 'User', '2013-01-02 11:06:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'd8650cb1796740b4b80971dbeaf344b9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'ebeac5df9308401dada217a7567eb144', NULL, NULL, NULL, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'accountebeac5df-9308-401d-ada2-17a7567eb144' WHERE `accounts`.`id` = x'ebeac5df9308401dada217a7567eb144' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ebeac5df9308401dada217a7567eb144' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ebeac5df9308401dada217a7567eb144', x'6aedea94ec02478f87412ef5ce852cf0', x'd8650cb1796740b4b80971dbeaf344b9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6aedea94ec02478f87412ef5ce852cf0') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6aedea94ec02478f87412ef5ce852cf0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6aedea94ec02478f87412ef5ce852cf0', x'323bb9af67944fe6bdbad3ed458f7499', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6aedea94ec02478f87412ef5ce852cf0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6aedea94ec02478f87412ef5ce852cf0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6aedea94ec02478f87412ef5ce852cf0', x'3d43e9a57b9f40cfabe6bd07147ba226', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:39 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bfa957f_107080435d48759cd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'839233aaf7a144fcac5652c1ef002cfb', 'jabanilson', NULL, 1, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account839233aa-f7a1-44fc-ac56-52c1ef002cfb' WHERE `accounts`.`id` = x'839233aaf7a144fcac5652c1ef002cfb'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'4e672955170a426684f217cd40a236b8', 'jabanilson', NULL, 1, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account4e672955-170a-4266-84f2-17cd40a236b8' WHERE `accounts`.`id` = x'4e672955170a426684f217cd40a236b8'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'4e672955170a426684f217cd40a236b8' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'4e672955170a426684f217cd40a236b8', 'teste@teste.teste', x'c97c48c6de9547cca286aef10c5659ad', NULL, NULL, '2013-01-02 11:06:39', '_YwpVDLmXPyrHWRN3XQY3a9npTM') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:39 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414bfb13fc_107080435d4876038@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/c97c48c6-de95-47cc-a286-aef10c5659ad_YwpVDLmXPyrHWRN3XQY3a9npTM  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'839233aaf7a144fcac5652c1ef002cfb' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = x'839233aaf7a144fcac5652c1ef002cfb', `invited_by` = x'd8650cb1796740b4b80971dbeaf344b9' WHERE `user_invitations`.`id` = x'c97c48c6de9547cca286aef10c5659ad'  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/c97c48c6-de95-47cc-a286-aef10c5659ad_YwpVDLmXPyrHWRN3XQY3a9npTM" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"c97c48c6-de95-47cc-a286-aef10c5659ad_YwpVDLmXPyrHWRN3XQY3a9npTM"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5434290aafe2424e9ca065e0b1fcc1a1' LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'c97c48c6de9547cca286aef10c5659ad' LIMIT 1 User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'd8650cb1796740b4b80971dbeaf344b9' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'839233aaf7a144fcac5652c1ef002cfb' LIMIT 1 Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 1.7ms)  (1.6ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:39', '2013-01-02 11:06:39', 'facebook@test.test', '', NULL, x'56120572e3c44ed288340f4e1d5be7d3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'56120572e3c44ed288340f4e1d5be7d3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:39', 'User', x'11375a50ceb545eaa56ce943004b7fd2', '7f622a7852cba9634089936a138dde57', x'56120572e3c44ed288340f4e1d5be7d3', 'User', '2013-01-02 11:06:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'56120572e3c44ed288340f4e1d5be7d3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'9a23327b984a44fab31e79b0a027abdc', NULL, NULL, NULL, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account9a23327b-984a-44fa-b31e-79b0a027abdc' WHERE `accounts`.`id` = x'9a23327b984a44fab31e79b0a027abdc' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9a23327b984a44fab31e79b0a027abdc' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9a23327b984a44fab31e79b0a027abdc', x'47111a54922a49b99034097fd144cc32', x'56120572e3c44ed288340f4e1d5be7d3') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'47111a54922a49b99034097fd144cc32') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'47111a54922a49b99034097fd144cc32' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'47111a54922a49b99034097fd144cc32', x'25787a4e922648c5978ee58d8c2d988d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'47111a54922a49b99034097fd144cc32') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'47111a54922a49b99034097fd144cc32' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'47111a54922a49b99034097fd144cc32', x'668b5bb91bb54962991c5c8a1e2f2ce5', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:39 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414bfc3a02_107080435d4876145@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'cd19b59fac754d62a6da08a5118e1837', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'56120572e3c44ed288340f4e1d5be7d3')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56120572e3c44ed288340f4e1d5be7d3' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'56120572e3c44ed288340f4e1d5be7d3' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'56120572e3c44ed288340f4e1d5be7d3' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:39', 'teste@teste.com', '$2a$04$ezDDWjnyD9yjvcuAJuOxLu7VLiIAVO4Dn.Q6UxzerT2MFPaFM0qPa', NULL, x'c769d400e5474c958420e5c34f728860', 'en', 'fulano', NULL, NULL, NULL, NULL, '2013-01-02 11:06:39') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c769d400e5474c958420e5c34f728860' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:39', 'User', x'90f7314d9a434c3d90fbedff9683524d', 'cec474cf341821b8fe4147d5ceabb714', x'c769d400e5474c958420e5c34f728860', 'User', '2013-01-02 11:06:39') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c769d400e5474c958420e5c34f728860' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'deb46fbcabc44dcda9f6e718340a007c', NULL, NULL, NULL, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'accountdeb46fbc-abc4-4dcd-a9f6-e718340a007c' WHERE `accounts`.`id` = x'deb46fbcabc44dcda9f6e718340a007c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'deb46fbcabc44dcda9f6e718340a007c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'deb46fbcabc44dcda9f6e718340a007c', x'5d8e3f0aae174ea8a8b9e727e0328a84', x'c769d400e5474c958420e5c34f728860') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5d8e3f0aae174ea8a8b9e727e0328a84') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d8e3f0aae174ea8a8b9e727e0328a84' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d8e3f0aae174ea8a8b9e727e0328a84', x'70b3c84eea37445599d6244d333bcf0e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5d8e3f0aae174ea8a8b9e727e0328a84') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5d8e3f0aae174ea8a8b9e727e0328a84' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5d8e3f0aae174ea8a8b9e727e0328a84', x'191733557e0b465ca4f16e4e2d0bd9d5', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:39 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414bfd3465_107080435d48762a6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'920ed1791efd40a39381635d6e1a60c4', 'jabanilson', NULL, 1, '2013-01-02 11:06:39')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account920ed179-1efd-40a3-9381-635d6e1a60c4' WHERE `accounts`.`id` = x'920ed1791efd40a39381635d6e1a60c4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:39', x'859efb768c5d4c2db9409a639f9bb4eb', 'jabanilson', NULL, 1, '2013-01-02 11:06:39')  (0.3ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:39', `updated_at` = '2013-01-02 11:06:39', `subdomain` = 'account859efb76-8c5d-4c2d-b940-9a639f9bb4eb' WHERE `accounts`.`id` = x'859efb768c5d4c2db9409a639f9bb4eb'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'859efb768c5d4c2db9409a639f9bb4eb' AND `users`.`email` = 'teste@teste.teste' SQL (0.2ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'859efb768c5d4c2db9409a639f9bb4eb', 'teste@teste.teste', x'abfbf1c7416b42868a5e013b93e7125c', NULL, NULL, '2013-01-02 11:06:39', '9uQxO2j2m5OuX1zOupg0VMBpYbM') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:39 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414bfdb098_107080435d4876357@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/abfbf1c7-416b-4286-8a5e-013b93e7125c9uQxO2j2m5OuX1zOupg0VMBpYbM  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'920ed1791efd40a39381635d6e1a60c4' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = x'920ed1791efd40a39381635d6e1a60c4', `invited_by` = x'c769d400e5474c958420e5c34f728860' WHERE `user_invitations`.`id` = x'abfbf1c7416b42868a5e013b93e7125c'  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/abfbf1c7-416b-4286-8a5e-013b93e7125c9uQxO2j2m5OuX1zOupg0VMBpYbM" for 127.0.0.1 at 2013-01-02 09:06:39 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"abfbf1c7-416b-4286-8a5e-013b93e7125c9uQxO2j2m5OuX1zOupg0VMBpYbM"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'56120572e3c44ed288340f4e1d5be7d3' LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'abfbf1c7416b42868a5e013b93e7125c' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c769d400e5474c958420e5c34f728860' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'920ed1791efd40a39381635d6e1a60c4' LIMIT 1 Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 1.4ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:40', '2013-01-02 11:06:40', 'facebook@test.test', '', NULL, x'a83b4f245ac34fed8b3c5df81df80fe2', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a83b4f245ac34fed8b3c5df81df80fe2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'6cb68a8934f14ee6bf5ba9231425d5a6', 'ca09191b01a8e121b05c97cdf879e0dd', x'a83b4f245ac34fed8b3c5df81df80fe2', 'User', '2013-01-02 11:06:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a83b4f245ac34fed8b3c5df81df80fe2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'dc48c36e830e4d7fae059763f90ee21f', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'accountdc48c36e-830e-4d7f-ae05-9763f90ee21f' WHERE `accounts`.`id` = x'dc48c36e830e4d7fae059763f90ee21f' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'dc48c36e830e4d7fae059763f90ee21f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'dc48c36e830e4d7fae059763f90ee21f', x'2fb21624aff14afe8dc2541e4bd60aa5', x'a83b4f245ac34fed8b3c5df81df80fe2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2fb21624aff14afe8dc2541e4bd60aa5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2fb21624aff14afe8dc2541e4bd60aa5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2fb21624aff14afe8dc2541e4bd60aa5', x'bc2674011ac34d22b50e627695f52163', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2fb21624aff14afe8dc2541e4bd60aa5') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2fb21624aff14afe8dc2541e4bd60aa5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2fb21624aff14afe8dc2541e4bd60aa5', x'eba11880ec854c88b6134465287c1695', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c0176da_107080435d487645@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'af541f6947f4407bb6aec2266cc2bcc8', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'a83b4f245ac34fed8b3c5df81df80fe2')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a83b4f245ac34fed8b3c5df81df80fe2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a83b4f245ac34fed8b3c5df81df80fe2' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a83b4f245ac34fed8b3c5df81df80fe2' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.3ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'teste@teste.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:40', 'teste@teste.com', '$2a$04$GMmt9QPL0einTFwMehpdB.R.HMRdIOkXLfEZdaYMzogTTcCkzgEL6', NULL, x'0bbbc465502e4b4e83684fa2ebd6d35d', 'en', 'fulano', NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0bbbc465502e4b4e83684fa2ebd6d35d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'a14463c4f5fb4b43a7cfa49eb622c95f', 'fc0028fcc91398286c480a7822404dfa', x'0bbbc465502e4b4e83684fa2ebd6d35d', 'User', '2013-01-02 11:06:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0bbbc465502e4b4e83684fa2ebd6d35d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'0049258bce834da3852f8692a03fc792', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'account0049258b-ce83-4da3-852f-8692a03fc792' WHERE `accounts`.`id` = x'0049258bce834da3852f8692a03fc792' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0049258bce834da3852f8692a03fc792' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0049258bce834da3852f8692a03fc792', x'e1e1ec59d6df47ffaf3501d441a29ff7', x'0bbbc465502e4b4e83684fa2ebd6d35d') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e1e1ec59d6df47ffaf3501d441a29ff7') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1e1ec59d6df47ffaf3501d441a29ff7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1e1ec59d6df47ffaf3501d441a29ff7', x'9152a7499cea4222bb343e7e49c2912d', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e1e1ec59d6df47ffaf3501d441a29ff7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1e1ec59d6df47ffaf3501d441a29ff7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1e1ec59d6df47ffaf3501d441a29ff7', x'cd981de4e43c467680fde33f52a25da6', 'admin') Sent mail to teste@teste.com (6ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: teste@teste.com Message-ID: <50e414c0277c8_107080435d48765fd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'a147ac509a8f42e38ac42c1d4748f9a4', 'jabanilson', NULL, 1, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'accounta147ac50-9a8f-42e3-8ac4-2c1d4748f9a4' WHERE `accounts`.`id` = x'a147ac509a8f42e38ac42c1d4748f9a4'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'83c4562afc814286ad012527d9d2fbd0', 'jabanilson', NULL, 1, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `name` = 'jabanilson', `subscription_id` = 1, `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'account83c4562a-fc81-4286-ad01-2527d9d2fbd0' WHERE `accounts`.`id` = x'83c4562afc814286ad012527d9d2fbd0'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'83c4562afc814286ad012527d9d2fbd0' AND `users`.`email` = 'teste@teste.teste' SQL (0.3ms) INSERT INTO `user_invitations` (`account_id`, `email`, `id`, `invited_by`, `roles`, `sent_at`, `token`) VALUES (x'83c4562afc814286ad012527d9d2fbd0', 'teste@teste.teste', x'65675e2c787547edb5462dc04aa478ac', NULL, NULL, '2013-01-02 11:06:40', 'KIa25I6A08rviSyyxrw29Y8LtCQ') Sent mail to teste@teste.teste (6ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: teste@teste.teste Message-ID: <50e414c02f6f8_107080435d487668@iMac-de-Patrick.local.mail> Subject: Convite para sua conta Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit http://iugusdk.dev:3000/accept_invite/65675e2c-7875-47ed-b546-2dc04aa478acKIa25I6A08rviSyyxrw29Y8LtCQ  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `account_users` INNER JOIN `users` ON `users`.`id` = `account_users`.`user_id` WHERE `account_users`.`account_id` = x'a147ac509a8f42e38ac42c1d4748f9a4' AND `users`.`email` = 'teste@teste.teste'  (0.4ms) UPDATE `user_invitations` SET `account_id` = x'a147ac509a8f42e38ac42c1d4748f9a4', `invited_by` = x'0bbbc465502e4b4e83684fa2ebd6d35d' WHERE `user_invitations`.`id` = x'65675e2c787547edb5462dc04aa478ac'  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/accept_invite/65675e2c-7875-47ed-b546-2dc04aa478acKIa25I6A08rviSyyxrw29Y8LtCQ" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::InvitationsController#edit as HTML Parameters: {"invitation_token"=>"65675e2c-7875-47ed-b546-2dc04aa478acKIa25I6A08rviSyyxrw29Y8LtCQ"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a83b4f245ac34fed8b3c5df81df80fe2' LIMIT 1 UserInvitation Load (0.4ms) SELECT `user_invitations`.* FROM `user_invitations` WHERE `user_invitations`.`id` = x'65675e2c787547edb5462dc04aa478ac' LIMIT 1 User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0bbbc465502e4b4e83684fa2ebd6d35d' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a147ac509a8f42e38ac42c1d4748f9a4' LIMIT 1 Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 1.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:40', '2013-01-02 11:06:40', 'facebook@test.test', '', NULL, x'347c3ebeddf740a5994bec4e9963a0b7', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'347c3ebeddf740a5994bec4e9963a0b7' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'b6de6f01c8aa4595bafee8549d0ec390', 'a0888e4050b849f07cbf656aee1ad79e', x'347c3ebeddf740a5994bec4e9963a0b7', 'User', '2013-01-02 11:06:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'347c3ebeddf740a5994bec4e9963a0b7' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'72bd291ee6a04eccab82bfc528e94372', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'account72bd291e-e6a0-4ecc-ab82-bfc528e94372' WHERE `accounts`.`id` = x'72bd291ee6a04eccab82bfc528e94372' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72bd291ee6a04eccab82bfc528e94372' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'72bd291ee6a04eccab82bfc528e94372', x'6099ca92da0541bc9e2b2b2f0e672918', x'347c3ebeddf740a5994bec4e9963a0b7') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6099ca92da0541bc9e2b2b2f0e672918') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6099ca92da0541bc9e2b2b2f0e672918' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6099ca92da0541bc9e2b2b2f0e672918', x'3154b1d0300749c79bba10313f1f8f60', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6099ca92da0541bc9e2b2b2f0e672918') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6099ca92da0541bc9e2b2b2f0e672918' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6099ca92da0541bc9e2b2b2f0e672918', x'5b951d4b15264c2d98129570fe447927', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c05fa0a_107080435d48767ab@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'4d5843fbded740fcb487235e0b4c7e35', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'347c3ebeddf740a5994bec4e9963a0b7')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'347c3ebeddf740a5994bec4e9963a0b7' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'347c3ebeddf740a5994bec4e9963a0b7' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 179ms (ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'347c3ebeddf740a5994bec4e9963a0b7' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'347c3ebeddf740a5994bec4e9963a0b7' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:40', 'tester@roles.test', '$2a$04$9yfvlkn/4s8WipNPkF0RD.oXZ4mw.IWZV.yV2D0FBaxn/s1gaHE.K', NULL, x'b10adfd2805547c9beccd56f178ecd64', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b10adfd2805547c9beccd56f178ecd64' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'3b6a1af04526476ba099d4f82731df04', '34c149b68a4a5bb9df9f9d5e595fd5c3', x'b10adfd2805547c9beccd56f178ecd64', 'User', '2013-01-02 11:06:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b10adfd2805547c9beccd56f178ecd64' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'42823689e3b24f0ea3e75738a5ef3b0e', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'account42823689-e3b2-4f0e-a3e7-5738a5ef3b0e' WHERE `accounts`.`id` = x'42823689e3b24f0ea3e75738a5ef3b0e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'42823689e3b24f0ea3e75738a5ef3b0e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'42823689e3b24f0ea3e75738a5ef3b0e', x'908caa85df5e4d26b034b0568345d244', x'b10adfd2805547c9beccd56f178ecd64') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'908caa85df5e4d26b034b0568345d244') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'908caa85df5e4d26b034b0568345d244' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'908caa85df5e4d26b034b0568345d244', x'24f108e9a07b47719f664d0f91939cc1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'908caa85df5e4d26b034b0568345d244') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'908caa85df5e4d26b034b0568345d244' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'908caa85df5e4d26b034b0568345d244', x'a517bfeed44948b6b2e82e803dd36a1e', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c06fc9a_107080435d48768eb@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72bd291ee6a04eccab82bfc528e94372' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'72bd291ee6a04eccab82bfc528e94372', x'92bf77878d4f49978e0fa846e4554db1', x'b10adfd2805547c9beccd56f178ecd64') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'92bf77878d4f49978e0fa846e4554db1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'92bf77878d4f49978e0fa846e4554db1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'92bf77878d4f49978e0fa846e4554db1', x'9943026cb8f14329a517207199a5a93b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'92bf77878d4f49978e0fa846e4554db1') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'92bf77878d4f49978e0fa846e4554db1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'92bf77878d4f49978e0fa846e4554db1', x'525350d6fc0b40b9a9a38d510b9f196a', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/72BD291EE6A04ECCAB82BFC528E94372/invite" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"72BD291EE6A04ECCAB82BFC528E94372"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'347c3ebeddf740a5994bec4e9963a0b7' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'347c3ebeddf740a5994bec4e9963a0b7' AND `account_users`.`account_id` = x'72bd291ee6a04eccab82bfc528e94372' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6099ca92da0541bc9e2b2b2f0e672918' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6099ca92da0541bc9e2b2b2f0e672918' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'72bd291ee6a04eccab82bfc528e94372' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'72bd291ee6a04eccab82bfc528e94372' AND `account_users`.`user_id` = x'347c3ebeddf740a5994bec4e9963a0b7' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6099ca92da0541bc9e2b2b2f0e672918' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 22ms (Views: 13.5ms | ActiveRecord: 2.3ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:40', '2013-01-02 11:06:40', 'facebook@test.test', '', NULL, x'1470822604ab426cb13164873ca46d73', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1470822604ab426cb13164873ca46d73' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'c396c2a8681149c386d453690df397c3', '638faed73e0d43a4a1c12847c044c2aa', x'1470822604ab426cb13164873ca46d73', 'User', '2013-01-02 11:06:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1470822604ab426cb13164873ca46d73' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'f182799db0c14fe7930a994331d99738', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'accountf182799d-b0c1-4fe7-930a-994331d99738' WHERE `accounts`.`id` = x'f182799db0c14fe7930a994331d99738' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f182799db0c14fe7930a994331d99738' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f182799db0c14fe7930a994331d99738', x'd952a02e67be47868162797d8a29f186', x'1470822604ab426cb13164873ca46d73') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd952a02e67be47868162797d8a29f186') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd952a02e67be47868162797d8a29f186' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd952a02e67be47868162797d8a29f186', x'8814ee82e542407db757eab68ab14d6b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd952a02e67be47868162797d8a29f186') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd952a02e67be47868162797d8a29f186' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd952a02e67be47868162797d8a29f186', x'7231a92e9be44d72bef9be47da4858ad', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c086b97_107080435d48769a2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'69cdb6b375da445d89a49b10443fe295', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'1470822604ab426cb13164873ca46d73')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1470822604ab426cb13164873ca46d73' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1470822604ab426cb13164873ca46d73' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1470822604ab426cb13164873ca46d73' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'1470822604ab426cb13164873ca46d73' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:40', 'tester@roles.test', '$2a$04$MNg8YcglmEmf680m2Sfmr.cx8LXpcxIZJsTmBJCWBh4fZXNQYOenm', NULL, x'e084578edb764765a51345fd0c615246', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e084578edb764765a51345fd0c615246' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'a3a8502c0a8d47239045970c06c7c99c', '85f2137a17bab0a34818e1369b558967', x'e084578edb764765a51345fd0c615246', 'User', '2013-01-02 11:06:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e084578edb764765a51345fd0c615246' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'3cd44cec5916433f9a0b23cbc9a2e94d', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'account3cd44cec-5916-433f-9a0b-23cbc9a2e94d' WHERE `accounts`.`id` = x'3cd44cec5916433f9a0b23cbc9a2e94d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'3cd44cec5916433f9a0b23cbc9a2e94d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'3cd44cec5916433f9a0b23cbc9a2e94d', x'280e11eece0f47e89408a7888954f73a', x'e084578edb764765a51345fd0c615246') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'280e11eece0f47e89408a7888954f73a') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'280e11eece0f47e89408a7888954f73a' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'280e11eece0f47e89408a7888954f73a', x'36489edf1b754bda889d3da799e7f564', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'280e11eece0f47e89408a7888954f73a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'280e11eece0f47e89408a7888954f73a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'280e11eece0f47e89408a7888954f73a', x'1713becd16a04940a09a6520a0abca67', 'admin') Sent mail to tester@roles.test (132ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c097088_107080435d4877086@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f182799db0c14fe7930a994331d99738' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f182799db0c14fe7930a994331d99738', x'd055fa18eb2e4bf5b9fafcc0288543f9', x'e084578edb764765a51345fd0c615246') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'd055fa18eb2e4bf5b9fafcc0288543f9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd055fa18eb2e4bf5b9fafcc0288543f9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd055fa18eb2e4bf5b9fafcc0288543f9', x'2cfd4d4131a34c6a97001b0a48b3074e', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'd055fa18eb2e4bf5b9fafcc0288543f9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'd055fa18eb2e4bf5b9fafcc0288543f9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'd055fa18eb2e4bf5b9fafcc0288543f9', x'a2ce7e524b284915b974790204336fa9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/F182799DB0C14FE7930A994331D99738/invite" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"F182799DB0C14FE7930A994331D99738"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'1470822604ab426cb13164873ca46d73' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'1470822604ab426cb13164873ca46d73' AND `account_users`.`account_id` = x'f182799db0c14fe7930a994331d99738' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd952a02e67be47868162797d8a29f186' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd952a02e67be47868162797d8a29f186' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f182799db0c14fe7930a994331d99738' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f182799db0c14fe7930a994331d99738' AND `account_users`.`user_id` = x'1470822604ab426cb13164873ca46d73' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'd952a02e67be47868162797d8a29f186' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.5ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:40', '2013-01-02 11:06:40', 'facebook@test.test', '', NULL, x'22d9ff610677406db74820db42648591', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'22d9ff610677406db74820db42648591' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'd8c3782bcdf44c00af8116e36ad33eea', 'f04ee0510f554fdde4923c428904b31a', x'22d9ff610677406db74820db42648591', 'User', '2013-01-02 11:06:40') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'22d9ff610677406db74820db42648591' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'fd7489ca297941f4bdf791eb67d7d8e6', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'accountfd7489ca-2979-41f4-bdf7-91eb67d7d8e6' WHERE `accounts`.`id` = x'fd7489ca297941f4bdf791eb67d7d8e6' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fd7489ca297941f4bdf791eb67d7d8e6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fd7489ca297941f4bdf791eb67d7d8e6', x'6064ea9fac944a91afb049d6f8859249', x'22d9ff610677406db74820db42648591') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6064ea9fac944a91afb049d6f8859249') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6064ea9fac944a91afb049d6f8859249' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6064ea9fac944a91afb049d6f8859249', x'58de8c633f9f41f0bfd375c3d453f902', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6064ea9fac944a91afb049d6f8859249') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6064ea9fac944a91afb049d6f8859249' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6064ea9fac944a91afb049d6f8859249', x'c6f32c254f164edeb0dd22b32a5c09cd', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c0cb12d_107080435d48771df@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'4707ac5175ee48e8b67501706e85802b', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'22d9ff610677406db74820db42648591')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22d9ff610677406db74820db42648591' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22d9ff610677406db74820db42648591' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22d9ff610677406db74820db42648591' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'22d9ff610677406db74820db42648591' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:40', 'tester@roles.test', '$2a$04$2OcH2/2Ut2rMq0vjXE.MBOCI0FpLmSwhgjr/.vB4qg0lOaFz2PYN6', NULL, x'606d9c718b6a449abb08fbbfdf363962', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'606d9c718b6a449abb08fbbfdf363962' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'1168e5fa8d2c4c35b2540f569cb734d1', 'f82a60087f5549a92b61282836c0021e', x'606d9c718b6a449abb08fbbfdf363962', 'User', '2013-01-02 11:06:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'606d9c718b6a449abb08fbbfdf363962' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'16ab2403bb55401f9c33d63986bd6988', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'account16ab2403-bb55-401f-9c33-d63986bd6988' WHERE `accounts`.`id` = x'16ab2403bb55401f9c33d63986bd6988' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'16ab2403bb55401f9c33d63986bd6988' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'16ab2403bb55401f9c33d63986bd6988', x'2fddeec5de524775957114fb70e7f30f', x'606d9c718b6a449abb08fbbfdf363962') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2fddeec5de524775957114fb70e7f30f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2fddeec5de524775957114fb70e7f30f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2fddeec5de524775957114fb70e7f30f', x'31e22c6b79a4427abb21f7308203d54c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2fddeec5de524775957114fb70e7f30f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2fddeec5de524775957114fb70e7f30f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2fddeec5de524775957114fb70e7f30f', x'295a4d5bfdc348968a2c774701665ad7', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:40 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c0db2ad_107080435d4877269@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fd7489ca297941f4bdf791eb67d7d8e6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'fd7489ca297941f4bdf791eb67d7d8e6', x'2c0ee3213c4d414c895b0469793d9348', x'606d9c718b6a449abb08fbbfdf363962') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2c0ee3213c4d414c895b0469793d9348') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2c0ee3213c4d414c895b0469793d9348' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2c0ee3213c4d414c895b0469793d9348', x'e68b34afcc6b4b2f8060fa4afa65d7e9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2c0ee3213c4d414c895b0469793d9348') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2c0ee3213c4d414c895b0469793d9348' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2c0ee3213c4d414c895b0469793d9348', x'bf54eac6c63b493f83b46e828d99ac71', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/FD7489CA297941F4BDF791EB67D7D8E6/invite" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"FD7489CA297941F4BDF791EB67D7D8E6"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'22d9ff610677406db74820db42648591' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'22d9ff610677406db74820db42648591' AND `account_users`.`account_id` = x'fd7489ca297941f4bdf791eb67d7d8e6' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6064ea9fac944a91afb049d6f8859249' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6064ea9fac944a91afb049d6f8859249' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'fd7489ca297941f4bdf791eb67d7d8e6' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'fd7489ca297941f4bdf791eb67d7d8e6' AND `account_users`.`user_id` = x'22d9ff610677406db74820db42648591' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'6064ea9fac944a91afb049d6f8859249' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.4ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:40 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:40', '2013-01-02 11:06:40', 'facebook@test.test', '', NULL, x'570e3de96fde4710a67514e8043bd353', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:40') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'570e3de96fde4710a67514e8043bd353' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:40', 'User', x'36fa24fbc02c4151b33212f37d828d88', '4c17f7009b01f5c8307125dae8c45531', x'570e3de96fde4710a67514e8043bd353', 'User', '2013-01-02 11:06:40') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'570e3de96fde4710a67514e8043bd353' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:40', x'a8b0c07be3124955ad66573f2a7432d9', NULL, NULL, NULL, '2013-01-02 11:06:40')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:40', `updated_at` = '2013-01-02 11:06:40', `subdomain` = 'accounta8b0c07b-e312-4955-ad66-573f2a7432d9' WHERE `accounts`.`id` = x'a8b0c07be3124955ad66573f2a7432d9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a8b0c07be3124955ad66573f2a7432d9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a8b0c07be3124955ad66573f2a7432d9', x'1e915a4d223a4e27b711e79af5292580', x'570e3de96fde4710a67514e8043bd353') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1e915a4d223a4e27b711e79af5292580') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1e915a4d223a4e27b711e79af5292580' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1e915a4d223a4e27b711e79af5292580', x'2554d3b7ce8445948e79d06fb5d28ed8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1e915a4d223a4e27b711e79af5292580') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1e915a4d223a4e27b711e79af5292580' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1e915a4d223a4e27b711e79af5292580', x'9f271654d30c4a009b34488f79ba366e', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:41 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c11c780_107080435d48773bd@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'fba450bf47b747528187c2021a76513c', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'570e3de96fde4710a67514e8043bd353')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'570e3de96fde4710a67514e8043bd353' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'570e3de96fde4710a67514e8043bd353' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 186ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'570e3de96fde4710a67514e8043bd353' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'570e3de96fde4710a67514e8043bd353' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:41', 'tester@roles.test', '$2a$04$kb.NsZiZP9YQcTVk1pZq7.GAwf5yHAkWJ8D6qlnzqbphbU.dN1C52', NULL, x'b94fe386557842d8b9bda43946ee77f4', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:41') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b94fe386557842d8b9bda43946ee77f4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:41', 'User', x'18802836a44648e0a3edefddba5d1729', '6e249a22d5d4dda99ef6a2eb48734bf4', x'b94fe386557842d8b9bda43946ee77f4', 'User', '2013-01-02 11:06:41') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b94fe386557842d8b9bda43946ee77f4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:41', x'af1345a4a1dc413e84854b2f12a914a1', NULL, NULL, NULL, '2013-01-02 11:06:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:41', `updated_at` = '2013-01-02 11:06:41', `subdomain` = 'accountaf1345a4-a1dc-413e-8485-4b2f12a914a1' WHERE `accounts`.`id` = x'af1345a4a1dc413e84854b2f12a914a1' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'af1345a4a1dc413e84854b2f12a914a1' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'af1345a4a1dc413e84854b2f12a914a1', x'9138b5e82fa744eda005d74a86df75dd', x'b94fe386557842d8b9bda43946ee77f4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9138b5e82fa744eda005d74a86df75dd') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9138b5e82fa744eda005d74a86df75dd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9138b5e82fa744eda005d74a86df75dd', x'3fcb194da6c74cba99a8a85e6e1413f1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9138b5e82fa744eda005d74a86df75dd') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9138b5e82fa744eda005d74a86df75dd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9138b5e82fa744eda005d74a86df75dd', x'2a10a50f5c2d4e5cbf4feeb0b0213a5b', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:41 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c12c6d6_107080435d48774f6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a8b0c07be3124955ad66573f2a7432d9' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a8b0c07be3124955ad66573f2a7432d9', x'696b5198384c40059b84cc894a4e1a2a', x'b94fe386557842d8b9bda43946ee77f4') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'696b5198384c40059b84cc894a4e1a2a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'696b5198384c40059b84cc894a4e1a2a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'696b5198384c40059b84cc894a4e1a2a', x'f0e79ebb1d5e49fd9201b42fc075772f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'696b5198384c40059b84cc894a4e1a2a') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'696b5198384c40059b84cc894a4e1a2a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'696b5198384c40059b84cc894a4e1a2a', x'719f13193aaa4f358c43379b6feb5177', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/A8B0C07BE3124955AD66573F2A7432D9/invite" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"A8B0C07BE3124955AD66573F2A7432D9"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'570e3de96fde4710a67514e8043bd353' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'570e3de96fde4710a67514e8043bd353' AND `account_users`.`account_id` = x'a8b0c07be3124955ad66573f2a7432d9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1e915a4d223a4e27b711e79af5292580' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1e915a4d223a4e27b711e79af5292580' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a8b0c07be3124955ad66573f2a7432d9' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a8b0c07be3124955ad66573f2a7432d9' AND `account_users`.`user_id` = x'570e3de96fde4710a67514e8043bd353' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'1e915a4d223a4e27b711e79af5292580' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.3ms | ActiveRecord: 2.4ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:41', '2013-01-02 11:06:41', 'facebook@test.test', '', NULL, x'dab4f011881645188889522a6cdcaa47', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dab4f011881645188889522a6cdcaa47' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:41', 'User', x'd9b231b4e6ca4543867693065f17a97c', 'a609c475c6609ea75a0f71f941d9fa8f', x'dab4f011881645188889522a6cdcaa47', 'User', '2013-01-02 11:06:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dab4f011881645188889522a6cdcaa47' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:41', x'9db9f714e5854d0285a1bef6a9290bc0', NULL, NULL, NULL, '2013-01-02 11:06:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:41', `updated_at` = '2013-01-02 11:06:41', `subdomain` = 'account9db9f714-e585-4d02-85a1-bef6a9290bc0' WHERE `accounts`.`id` = x'9db9f714e5854d0285a1bef6a9290bc0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9db9f714e5854d0285a1bef6a9290bc0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9db9f714e5854d0285a1bef6a9290bc0', x'a47127295e1e4b488f5580963d61efb0', x'dab4f011881645188889522a6cdcaa47') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'a47127295e1e4b488f5580963d61efb0') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a47127295e1e4b488f5580963d61efb0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a47127295e1e4b488f5580963d61efb0', x'166adb6bb2ee4729a80a248874aeefe4', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'a47127295e1e4b488f5580963d61efb0') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'a47127295e1e4b488f5580963d61efb0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'a47127295e1e4b488f5580963d61efb0', x'1544ec00573142229a1cf2adccaf73b5', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:41 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c141dea_107080435d4877517@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'b41771009ce048c2a84a6c23bc764e61', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'dab4f011881645188889522a6cdcaa47')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dab4f011881645188889522a6cdcaa47' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dab4f011881645188889522a6cdcaa47' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'dab4f011881645188889522a6cdcaa47' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'dab4f011881645188889522a6cdcaa47' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:41', 'tester@roles.test', '$2a$04$Fv42/Vtdua.v/SXnStBuJ.YWI6Nlrt6NjbT/uZn87yU6OkAwIEriC', NULL, x'fe21e2cffcb1499c9c8137d02107e2b3', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fe21e2cffcb1499c9c8137d02107e2b3' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:41', 'User', x'2f81aedc633f4eb0b544a8d5dfd8a468', '5da8de969ac503b48a7747d0d8d2d026', x'fe21e2cffcb1499c9c8137d02107e2b3', 'User', '2013-01-02 11:06:41') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fe21e2cffcb1499c9c8137d02107e2b3' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:41', x'8cf19d162b294139ab8fb8929a8b41b5', NULL, NULL, NULL, '2013-01-02 11:06:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:41', `updated_at` = '2013-01-02 11:06:41', `subdomain` = 'account8cf19d16-2b29-4139-ab8f-b8929a8b41b5' WHERE `accounts`.`id` = x'8cf19d162b294139ab8fb8929a8b41b5' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8cf19d162b294139ab8fb8929a8b41b5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8cf19d162b294139ab8fb8929a8b41b5', x'0d5a2235c9ff49c1a95d4d072dfd2ed2', x'fe21e2cffcb1499c9c8137d02107e2b3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0d5a2235c9ff49c1a95d4d072dfd2ed2') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d5a2235c9ff49c1a95d4d072dfd2ed2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d5a2235c9ff49c1a95d4d072dfd2ed2', x'5a72ba61735b4a89a2f5063f6d23f60f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0d5a2235c9ff49c1a95d4d072dfd2ed2') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d5a2235c9ff49c1a95d4d072dfd2ed2' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d5a2235c9ff49c1a95d4d072dfd2ed2', x'b52741832ae249e895eded0d2326787e', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:41 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c171103_107080435d4877686@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9db9f714e5854d0285a1bef6a9290bc0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'9db9f714e5854d0285a1bef6a9290bc0', x'10b548f3216140319ad309a606767db3', x'fe21e2cffcb1499c9c8137d02107e2b3') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'10b548f3216140319ad309a606767db3') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10b548f3216140319ad309a606767db3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10b548f3216140319ad309a606767db3', x'9cce264666d842e9b4abc86230596a3c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'10b548f3216140319ad309a606767db3') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'10b548f3216140319ad309a606767db3' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'10b548f3216140319ad309a606767db3', x'5bd6f7a572cb478f96a74d28931597dd', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/9DB9F714E5854D0285A1BEF6A9290BC0/invite" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"9DB9F714E5854D0285A1BEF6A9290BC0"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'dab4f011881645188889522a6cdcaa47' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'dab4f011881645188889522a6cdcaa47' AND `account_users`.`account_id` = x'9db9f714e5854d0285a1bef6a9290bc0' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a47127295e1e4b488f5580963d61efb0' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a47127295e1e4b488f5580963d61efb0' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'9db9f714e5854d0285a1bef6a9290bc0' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'9db9f714e5854d0285a1bef6a9290bc0' AND `account_users`.`user_id` = x'dab4f011881645188889522a6cdcaa47' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'a47127295e1e4b488f5580963d61efb0' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.5ms | ActiveRecord: 2.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:41', '2013-01-02 11:06:41', 'facebook@test.test', '', NULL, x'b57f06512cb742a49daccd14806a10ed', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b57f06512cb742a49daccd14806a10ed' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:41', 'User', x'633869e6cace4edabdc69db4005fa59d', '228e0576e8ca08419a68a450c0683440', x'b57f06512cb742a49daccd14806a10ed', 'User', '2013-01-02 11:06:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b57f06512cb742a49daccd14806a10ed' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:41', x'aba225f807ce4cfcad4c1495989fae67', NULL, NULL, NULL, '2013-01-02 11:06:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:41', `updated_at` = '2013-01-02 11:06:41', `subdomain` = 'accountaba225f8-07ce-4cfc-ad4c-1495989fae67' WHERE `accounts`.`id` = x'aba225f807ce4cfcad4c1495989fae67' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aba225f807ce4cfcad4c1495989fae67' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aba225f807ce4cfcad4c1495989fae67', x'57a34a06d65c4acda2675e9f339b7c2d', x'b57f06512cb742a49daccd14806a10ed') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'57a34a06d65c4acda2675e9f339b7c2d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57a34a06d65c4acda2675e9f339b7c2d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57a34a06d65c4acda2675e9f339b7c2d', x'ac4c1a35624c4685a131ef7ecaf55b5a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'57a34a06d65c4acda2675e9f339b7c2d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'57a34a06d65c4acda2675e9f339b7c2d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'57a34a06d65c4acda2675e9f339b7c2d', x'9ae0b53767254a78bd8f0328735e933f', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:41 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c18636f_107080435d487779b@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ef68dedac7d7488095677e6e2041d8cc', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'b57f06512cb742a49daccd14806a10ed')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b57f06512cb742a49daccd14806a10ed' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b57f06512cb742a49daccd14806a10ed' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b57f06512cb742a49daccd14806a10ed' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b57f06512cb742a49daccd14806a10ed' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:41', 'tester@roles.test', '$2a$04$u30rWoXtwTa.uPw6HGlteuO1YEjaplGEQdrpHDy8CgvPRyFOo72ey', NULL, x'eabd333dbdec4ccbaf3e11a1d52daa7f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'eabd333dbdec4ccbaf3e11a1d52daa7f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.2ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:41', 'User', x'd921bbd7528a4f468428e3162fad3deb', '54025d1d32a345eb29264934020f0a78', x'eabd333dbdec4ccbaf3e11a1d52daa7f', 'User', '2013-01-02 11:06:41') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'eabd333dbdec4ccbaf3e11a1d52daa7f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:41', x'2c932cc3b0df4808a8d3cc2dddd599dc', NULL, NULL, NULL, '2013-01-02 11:06:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:41', `updated_at` = '2013-01-02 11:06:41', `subdomain` = 'account2c932cc3-b0df-4808-a8d3-cc2dddd599dc' WHERE `accounts`.`id` = x'2c932cc3b0df4808a8d3cc2dddd599dc' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'2c932cc3b0df4808a8d3cc2dddd599dc' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'2c932cc3b0df4808a8d3cc2dddd599dc', x'1856046df38c411ab3f54ecc669bb369', x'eabd333dbdec4ccbaf3e11a1d52daa7f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'1856046df38c411ab3f54ecc669bb369') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1856046df38c411ab3f54ecc669bb369' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1856046df38c411ab3f54ecc669bb369', x'959ada945dd141aa89bc459fa74a5fcd', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'1856046df38c411ab3f54ecc669bb369') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'1856046df38c411ab3f54ecc669bb369' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'1856046df38c411ab3f54ecc669bb369', x'7f964c75bf2e43508488578b0c6eafe4', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:41 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c196028_107080435d487785e@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aba225f807ce4cfcad4c1495989fae67' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'aba225f807ce4cfcad4c1495989fae67', x'7f1bd132530342099e3963a7ff08d8d6', x'eabd333dbdec4ccbaf3e11a1d52daa7f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7f1bd132530342099e3963a7ff08d8d6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f1bd132530342099e3963a7ff08d8d6' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f1bd132530342099e3963a7ff08d8d6', x'c1ccd5501f2347e5bb081dafa063b65c', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7f1bd132530342099e3963a7ff08d8d6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7f1bd132530342099e3963a7ff08d8d6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7f1bd132530342099e3963a7ff08d8d6', x'6b92b028b87c4a8eac6430515f0750d9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/ABA225F807CE4CFCAD4C1495989FAE67/invite" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"ABA225F807CE4CFCAD4C1495989FAE67"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b57f06512cb742a49daccd14806a10ed' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b57f06512cb742a49daccd14806a10ed' AND `account_users`.`account_id` = x'aba225f807ce4cfcad4c1495989fae67' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'57a34a06d65c4acda2675e9f339b7c2d' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'57a34a06d65c4acda2675e9f339b7c2d' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'aba225f807ce4cfcad4c1495989fae67' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'aba225f807ce4cfcad4c1495989fae67' AND `account_users`.`user_id` = x'b57f06512cb742a49daccd14806a10ed' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'57a34a06d65c4acda2675e9f339b7c2d' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.6ms | ActiveRecord: 2.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:41', '2013-01-02 11:06:41', 'facebook@test.test', '', NULL, x'e318291c498f413a8801cba3d821f2ea', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'e318291c498f413a8801cba3d821f2ea' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:41', 'User', x'58c1bd09b16e445dbce7543e50ac388f', '59a0ca9500a7d55874a7499b84fe0f7f', x'e318291c498f413a8801cba3d821f2ea', 'User', '2013-01-02 11:06:41') ApiToken Load (0.2ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'e318291c498f413a8801cba3d821f2ea' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:41', x'324403fa5c8441eaa191b4e1809dde8d', NULL, NULL, NULL, '2013-01-02 11:06:41')  (0.6ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:41', `updated_at` = '2013-01-02 11:06:41', `subdomain` = 'account324403fa-5c84-41ea-a191-b4e1809dde8d' WHERE `accounts`.`id` = x'324403fa5c8441eaa191b4e1809dde8d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'324403fa5c8441eaa191b4e1809dde8d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'324403fa5c8441eaa191b4e1809dde8d', x'e1173b41eb5b43abb133d86eae276901', x'e318291c498f413a8801cba3d821f2ea') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1173b41eb5b43abb133d86eae276901' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1173b41eb5b43abb133d86eae276901', x'abf087a919f440e1a14cdba8dd4d30e7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1173b41eb5b43abb133d86eae276901' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1173b41eb5b43abb133d86eae276901', x'74557670ad3946e8a1e99021e9c12a8f', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:41 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c1cb47c_107080435d487795a@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'54e1a8698389459394ef4acbca86bb54', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'e318291c498f413a8801cba3d821f2ea')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e318291c498f413a8801cba3d821f2ea' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e318291c498f413a8801cba3d821f2ea' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 186ms (ActiveRecord: 8.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e318291c498f413a8801cba3d821f2ea' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'e318291c498f413a8801cba3d821f2ea' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:41', 'tester@roles.test', '$2a$04$vTgAS5tjVPy4aaS9o0JMEuTIXqxgXDUa1D2Ky3mzzBBB5MMlLeAY2', NULL, x'b895f7ed282d43b68f2d53ff9b69c2f2', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:41') ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b895f7ed282d43b68f2d53ff9b69c2f2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:41', 'User', x'7561f5bd48ce4197a9ca4098b1142aae', '25ed5e9456268675b72cc0ddcd3a1a70', x'b895f7ed282d43b68f2d53ff9b69c2f2', 'User', '2013-01-02 11:06:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b895f7ed282d43b68f2d53ff9b69c2f2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:41', x'f4018d23564a4e2cb964f3d65220fece', NULL, NULL, NULL, '2013-01-02 11:06:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:41', `updated_at` = '2013-01-02 11:06:41', `subdomain` = 'accountf4018d23-564a-4e2c-b964-f3d65220fece' WHERE `accounts`.`id` = x'f4018d23564a4e2cb964f3d65220fece' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f4018d23564a4e2cb964f3d65220fece' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f4018d23564a4e2cb964f3d65220fece', x'e2533f32ccda44c3bbed47999899c2c7', x'b895f7ed282d43b68f2d53ff9b69c2f2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e2533f32ccda44c3bbed47999899c2c7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e2533f32ccda44c3bbed47999899c2c7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e2533f32ccda44c3bbed47999899c2c7', x'0c3c1250f8fa4d848225c308fb475fe3', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e2533f32ccda44c3bbed47999899c2c7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e2533f32ccda44c3bbed47999899c2c7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e2533f32ccda44c3bbed47999899c2c7', x'e893b3c953034ebcaf473bc181728068', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:41 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c1db298_107080435d4878088@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'324403fa5c8441eaa191b4e1809dde8d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'324403fa5c8441eaa191b4e1809dde8d', x'13fd59e336ba4ecabb9c995d0c2fc8e9', x'b895f7ed282d43b68f2d53ff9b69c2f2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'13fd59e336ba4ecabb9c995d0c2fc8e9') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'13fd59e336ba4ecabb9c995d0c2fc8e9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'13fd59e336ba4ecabb9c995d0c2fc8e9', x'009835e4101d46f19a345140e4d59402', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'13fd59e336ba4ecabb9c995d0c2fc8e9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'13fd59e336ba4ecabb9c995d0c2fc8e9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'13fd59e336ba4ecabb9c995d0c2fc8e9', x'39979492a7b74d5f899f3adda4b643ad', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/324403FA5C8441EAA191B4E1809DDE8D/invite" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"324403FA5C8441EAA191B4E1809DDE8D"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e318291c498f413a8801cba3d821f2ea' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e318291c498f413a8801cba3d821f2ea' AND `account_users`.`account_id` = x'324403fa5c8441eaa191b4e1809dde8d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'324403fa5c8441eaa191b4e1809dde8d' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'324403fa5c8441eaa191b4e1809dde8d' AND `account_users`.`user_id` = x'e318291c498f413a8801cba3d821f2ea' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.7ms | ActiveRecord: 2.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e318291c498f413a8801cba3d821f2ea' AND `account_users`.`account_id` = x'324403fa5c8441eaa191b4e1809dde8d' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'74557670ad3946e8a1e99021e9c12a8f' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1173b41eb5b43abb133d86eae276901' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'abf087a919f440e1a14cdba8dd4d30e7'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e1173b41eb5b43abb133d86eae276901' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e1173b41eb5b43abb133d86eae276901', x'9ff9311507c74c0bab66f6f595c1cfb9', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/324403FA5C8441EAA191B4E1809DDE8D/invite" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"324403FA5C8441EAA191B4E1809DDE8D"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'e318291c498f413a8801cba3d821f2ea' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'e318291c498f413a8801cba3d821f2ea' AND `account_users`.`account_id` = x'324403fa5c8441eaa191b4e1809dde8d' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'324403fa5c8441eaa191b4e1809dde8d' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'324403fa5c8441eaa191b4e1809dde8d' AND `account_users`.`user_id` = x'e318291c498f413a8801cba3d821f2ea' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'e1173b41eb5b43abb133d86eae276901' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.4ms | ActiveRecord: 2.4ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:41 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:41', '2013-01-02 11:06:41', 'facebook@test.test', '', NULL, x'7eaa0f32e7c14909833b0124d0b318e8', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:41') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'7eaa0f32e7c14909833b0124d0b318e8' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:41', 'User', x'1a4870d57e134bb4b7c6f9ddede95401', '64201cea8aed3ec16c7bd655c67c5c4c', x'7eaa0f32e7c14909833b0124d0b318e8', 'User', '2013-01-02 11:06:41') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'7eaa0f32e7c14909833b0124d0b318e8' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:41', x'f71d62f8c8334b0393bc73a35a57a963', NULL, NULL, NULL, '2013-01-02 11:06:41')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:41', `updated_at` = '2013-01-02 11:06:41', `subdomain` = 'accountf71d62f8-c833-4b03-93bc-73a35a57a963' WHERE `accounts`.`id` = x'f71d62f8c8334b0393bc73a35a57a963' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f71d62f8c8334b0393bc73a35a57a963' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f71d62f8c8334b0393bc73a35a57a963', x'128fcbe788ac455599faece27662fc9e', x'7eaa0f32e7c14909833b0124d0b318e8') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'128fcbe788ac455599faece27662fc9e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'128fcbe788ac455599faece27662fc9e', x'7865623027c14758bf31340e838604fc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'128fcbe788ac455599faece27662fc9e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'128fcbe788ac455599faece27662fc9e', x'c5da214364f043a6b0477418b4b40908', 'admin') Sent mail to facebook@test.test (141ms) Date: Wed, 02 Jan 2013 09:06:42 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c2467c_107080435d4878172@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8906e78e621a4529a0dabf7901da6287', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'7eaa0f32e7c14909833b0124d0b318e8')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7eaa0f32e7c14909833b0124d0b318e8' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7eaa0f32e7c14909833b0124d0b318e8' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 191ms (ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7eaa0f32e7c14909833b0124d0b318e8' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'7eaa0f32e7c14909833b0124d0b318e8' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:42', 'tester@roles.test', '$2a$04$Q3lvhSHxrcktSqm5fjISUu.qiGfVb3KkoTP89nwkbxSB1nMfQFh3C', NULL, x'693829f87e994039a8b2f76fe2a5c9cd', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'693829f87e994039a8b2f76fe2a5c9cd' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:42', 'User', x'9e27e6926b4d4178a63f6695df81128a', '2e88210889b08db61ed2a3afa59d60d5', x'693829f87e994039a8b2f76fe2a5c9cd', 'User', '2013-01-02 11:06:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'693829f87e994039a8b2f76fe2a5c9cd' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:42', x'e36678fdea4c46ea82bd13bba7970f70', NULL, NULL, NULL, '2013-01-02 11:06:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:42', `updated_at` = '2013-01-02 11:06:42', `subdomain` = 'accounte36678fd-ea4c-46ea-82bd-13bba7970f70' WHERE `accounts`.`id` = x'e36678fdea4c46ea82bd13bba7970f70' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'e36678fdea4c46ea82bd13bba7970f70' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'e36678fdea4c46ea82bd13bba7970f70', x'7ece8f4677694a3e82b30f6377daaa50', x'693829f87e994039a8b2f76fe2a5c9cd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7ece8f4677694a3e82b30f6377daaa50') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7ece8f4677694a3e82b30f6377daaa50' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7ece8f4677694a3e82b30f6377daaa50', x'0c885057006a4ae8a569a49b8c33db67', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7ece8f4677694a3e82b30f6377daaa50') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7ece8f4677694a3e82b30f6377daaa50' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7ece8f4677694a3e82b30f6377daaa50', x'11a631ef844b432682541dc492a8c48e', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:42 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c2358a7_107080435d48782f3@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f71d62f8c8334b0393bc73a35a57a963' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f71d62f8c8334b0393bc73a35a57a963', x'fedd875ba0424b3eac96ba886ffcfaed', x'693829f87e994039a8b2f76fe2a5c9cd') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'fedd875ba0424b3eac96ba886ffcfaed') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fedd875ba0424b3eac96ba886ffcfaed' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fedd875ba0424b3eac96ba886ffcfaed', x'e8a9540f170d4c1eaec4260c75036297', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'fedd875ba0424b3eac96ba886ffcfaed') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'fedd875ba0424b3eac96ba886ffcfaed' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'fedd875ba0424b3eac96ba886ffcfaed', x'ae1b5498a24441bdb7d4b1b9e84e8665', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/F71D62F8C8334B0393BC73A35A57A963/invite" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"F71D62F8C8334B0393BC73A35A57A963"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7eaa0f32e7c14909833b0124d0b318e8' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7eaa0f32e7c14909833b0124d0b318e8' AND `account_users`.`account_id` = x'f71d62f8c8334b0393bc73a35a57a963' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f71d62f8c8334b0393bc73a35a57a963' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f71d62f8c8334b0393bc73a35a57a963' AND `account_users`.`user_id` = x'7eaa0f32e7c14909833b0124d0b318e8' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 16ms (Views: 8.3ms | ActiveRecord: 2.2ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7eaa0f32e7c14909833b0124d0b318e8' AND `account_users`.`account_id` = x'f71d62f8c8334b0393bc73a35a57a963' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'128fcbe788ac455599faece27662fc9e' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '÷bøÈ3K“¼s£ZW©c' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7865623027c14758bf31340e838604fc' SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'c5da214364f043a6b0477418b4b40908'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'128fcbe788ac455599faece27662fc9e' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'128fcbe788ac455599faece27662fc9e', x'c1aa906496314acbb434771e96944d54', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/F71D62F8C8334B0393BC73A35A57A963/invite" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"F71D62F8C8334B0393BC73A35A57A963"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'7eaa0f32e7c14909833b0124d0b318e8' LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'7eaa0f32e7c14909833b0124d0b318e8' AND `account_users`.`account_id` = x'f71d62f8c8334b0393bc73a35a57a963' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f71d62f8c8334b0393bc73a35a57a963' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f71d62f8c8334b0393bc73a35a57a963' AND `account_users`.`user_id` = x'7eaa0f32e7c14909833b0124d0b318e8' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'128fcbe788ac455599faece27662fc9e' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.5ms | ActiveRecord: 2.2ms)  (1.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:42', '2013-01-02 11:06:42', 'facebook@test.test', '', NULL, x'deef360c7c3a45aeabba65b06a90f552', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:42') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'deef360c7c3a45aeabba65b06a90f552' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:42', 'User', x'747aca6d8e4b4f2e921eef45695a023d', '382ca08d9edf5079b40b17ed054cfd44', x'deef360c7c3a45aeabba65b06a90f552', 'User', '2013-01-02 11:06:42') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'deef360c7c3a45aeabba65b06a90f552' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:42', x'5dde0953ac4e4b76a909f558b82ecdf3', NULL, NULL, NULL, '2013-01-02 11:06:42')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:42', `updated_at` = '2013-01-02 11:06:42', `subdomain` = 'account5dde0953-ac4e-4b76-a909-f558b82ecdf3' WHERE `accounts`.`id` = x'5dde0953ac4e4b76a909f558b82ecdf3' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5dde0953ac4e4b76a909f558b82ecdf3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5dde0953ac4e4b76a909f558b82ecdf3', x'8b0b9eac85464c8dac74a0046d73f12c', x'deef360c7c3a45aeabba65b06a90f552') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b0b9eac85464c8dac74a0046d73f12c' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b0b9eac85464c8dac74a0046d73f12c', x'3423527367914acfa32e0c9ecf860e47', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b0b9eac85464c8dac74a0046d73f12c' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b0b9eac85464c8dac74a0046d73f12c', x'1ee66fffcc4c4afcaf4b6f44ae79e37b', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:42 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c25308a_107080435d4878380@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'7baa4c45d1cf411583b7e97cba1656e8', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'deef360c7c3a45aeabba65b06a90f552')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'deef360c7c3a45aeabba65b06a90f552' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'deef360c7c3a45aeabba65b06a90f552' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'deef360c7c3a45aeabba65b06a90f552' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'deef360c7c3a45aeabba65b06a90f552' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:42', 'tester@roles.test', '$2a$04$U.MyMqmj6bM/8kXO1hz3mODqRFgTVrQVfPYE7AXP0cQHdKlPnoPzS', NULL, x'1e85e2f33ec84202bc463d6dfe738406', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'1e85e2f33ec84202bc463d6dfe738406' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:42', 'User', x'9d66d38e00174b508434413031b8dc13', 'b93684ef4d1893d9b7d3a40d6d47bb45', x'1e85e2f33ec84202bc463d6dfe738406', 'User', '2013-01-02 11:06:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'1e85e2f33ec84202bc463d6dfe738406' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:42', x'440a48fe0e1c445c8ecf3b6452feebf3', NULL, NULL, NULL, '2013-01-02 11:06:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:42', `updated_at` = '2013-01-02 11:06:42', `subdomain` = 'account440a48fe-0e1c-445c-8ecf-3b6452feebf3' WHERE `accounts`.`id` = x'440a48fe0e1c445c8ecf3b6452feebf3' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'440a48fe0e1c445c8ecf3b6452feebf3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'440a48fe0e1c445c8ecf3b6452feebf3', x'dcec49dfc4de4c609d476e6eb0516304', x'1e85e2f33ec84202bc463d6dfe738406') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'dcec49dfc4de4c609d476e6eb0516304') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dcec49dfc4de4c609d476e6eb0516304' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dcec49dfc4de4c609d476e6eb0516304', x'421f9cb0b8d3460994297473ff04a4b1', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'dcec49dfc4de4c609d476e6eb0516304') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'dcec49dfc4de4c609d476e6eb0516304' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'dcec49dfc4de4c609d476e6eb0516304', x'a17ff11e099b4e689214b25056adc92e', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:42 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c282a2a_107080435d4878498@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5dde0953ac4e4b76a909f558b82ecdf3' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'5dde0953ac4e4b76a909f558b82ecdf3', x'4dff415b9ab5466a8b2bba0b31f11c4b', x'1e85e2f33ec84202bc463d6dfe738406') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'4dff415b9ab5466a8b2bba0b31f11c4b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4dff415b9ab5466a8b2bba0b31f11c4b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4dff415b9ab5466a8b2bba0b31f11c4b', x'623ac80a513c43c0958dda5a13b97472', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'4dff415b9ab5466a8b2bba0b31f11c4b') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'4dff415b9ab5466a8b2bba0b31f11c4b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'4dff415b9ab5466a8b2bba0b31f11c4b', x'22ed39118e1748b49aaf1119ee731c8d', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/5DDE0953AC4E4B76A909F558B82ECDF3/invite" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"5DDE0953AC4E4B76A909F558B82ECDF3"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'deef360c7c3a45aeabba65b06a90f552' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'deef360c7c3a45aeabba65b06a90f552' AND `account_users`.`account_id` = x'5dde0953ac4e4b76a909f558b82ecdf3' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5dde0953ac4e4b76a909f558b82ecdf3' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5dde0953ac4e4b76a909f558b82ecdf3' AND `account_users`.`user_id` = x'deef360c7c3a45aeabba65b06a90f552' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.3ms | ActiveRecord: 2.4ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'deef360c7c3a45aeabba65b06a90f552' AND `account_users`.`account_id` = x'5dde0953ac4e4b76a909f558b82ecdf3' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'1ee66fffcc4c4afcaf4b6f44ae79e37b' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b0b9eac85464c8dac74a0046d73f12c' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = ']Þ S¬NKv© õX¸.Íó' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'3423527367914acfa32e0c9ecf860e47'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'8b0b9eac85464c8dac74a0046d73f12c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'8b0b9eac85464c8dac74a0046d73f12c', x'85ca782b79ce4fd7aecaf400951965aa', 'owner')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/5DDE0953AC4E4B76A909F558B82ECDF3/invite" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"5DDE0953AC4E4B76A909F558B82ECDF3"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'deef360c7c3a45aeabba65b06a90f552' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'deef360c7c3a45aeabba65b06a90f552' AND `account_users`.`account_id` = x'5dde0953ac4e4b76a909f558b82ecdf3' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'5dde0953ac4e4b76a909f558b82ecdf3' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'5dde0953ac4e4b76a909f558b82ecdf3' AND `account_users`.`user_id` = x'deef360c7c3a45aeabba65b06a90f552' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'8b0b9eac85464c8dac74a0046d73f12c' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 16ms (Views: 8.3ms | ActiveRecord: 2.2ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:42', '2013-01-02 11:06:42', 'facebook@test.test', '', NULL, x'8d709a3262794f458609439bbd330446', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8d709a3262794f458609439bbd330446' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:42', 'User', x'322b95b3b4554efc8477884216a88c3f', '210eba2c0650316c70fd43e944d8f22d', x'8d709a3262794f458609439bbd330446', 'User', '2013-01-02 11:06:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8d709a3262794f458609439bbd330446' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:42', x'd2f4f0ae062d4e6aaa7cebed22ab2f9c', NULL, NULL, NULL, '2013-01-02 11:06:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:42', `updated_at` = '2013-01-02 11:06:42', `subdomain` = 'accountd2f4f0ae-062d-4e6a-aa7c-ebed22ab2f9c' WHERE `accounts`.`id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd2f4f0ae062d4e6aaa7cebed22ab2f9c', x'0d35ab6793bf4e11964eba2521c6ab27', x'8d709a3262794f458609439bbd330446') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d35ab6793bf4e11964eba2521c6ab27' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d35ab6793bf4e11964eba2521c6ab27', x'cfee327b35464b76a386e1ad1e34bcf8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d35ab6793bf4e11964eba2521c6ab27' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d35ab6793bf4e11964eba2521c6ab27', x'706bde3259074e0db798533d9faa6b50', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:42 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c29fd22_107080435d487856@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'204e6af565f94499b718e666911b9d75', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'8d709a3262794f458609439bbd330446')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8d709a3262794f458609439bbd330446' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8d709a3262794f458609439bbd330446' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8d709a3262794f458609439bbd330446' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8d709a3262794f458609439bbd330446' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:42', 'tester@roles.test', '$2a$04$hIFfhU7Q09Oi3XTaZPQvq.3XJUxi1PuiPmXzRtuAXfAzXhAIUFAPC', NULL, x'dc452b198f0f4a7eb82c31fa8fe8e77e', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'dc452b198f0f4a7eb82c31fa8fe8e77e' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:42', 'User', x'8bd554cb78fa459899e36577de0b0c96', '64ac5f24a96a97b3ec6b1ab27c09bc2c', x'dc452b198f0f4a7eb82c31fa8fe8e77e', 'User', '2013-01-02 11:06:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'dc452b198f0f4a7eb82c31fa8fe8e77e' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:42', x'8b7b219a3ed54c2b85ba35becbd0fea0', NULL, NULL, NULL, '2013-01-02 11:06:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:42', `updated_at` = '2013-01-02 11:06:42', `subdomain` = 'account8b7b219a-3ed5-4c2b-85ba-35becbd0fea0' WHERE `accounts`.`id` = x'8b7b219a3ed54c2b85ba35becbd0fea0' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'8b7b219a3ed54c2b85ba35becbd0fea0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'8b7b219a3ed54c2b85ba35becbd0fea0', x'ba4c24ba9ed94035831ed433fd606406', x'dc452b198f0f4a7eb82c31fa8fe8e77e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'ba4c24ba9ed94035831ed433fd606406') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ba4c24ba9ed94035831ed433fd606406' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ba4c24ba9ed94035831ed433fd606406', x'1ca497d369ec45e8aa38352f657ff981', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'ba4c24ba9ed94035831ed433fd606406') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'ba4c24ba9ed94035831ed433fd606406' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'ba4c24ba9ed94035831ed433fd606406', x'8a807783ef1344debfccb90a7484698b', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:42 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c2b0699_107080435d48786b0@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd2f4f0ae062d4e6aaa7cebed22ab2f9c', x'097d1005c4004aa7a97a2d08e918a6b6', x'dc452b198f0f4a7eb82c31fa8fe8e77e') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'097d1005c4004aa7a97a2d08e918a6b6') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'097d1005c4004aa7a97a2d08e918a6b6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'097d1005c4004aa7a97a2d08e918a6b6', x'ae04d0ffb4534bcab519bdaab89583f8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'097d1005c4004aa7a97a2d08e918a6b6') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'097d1005c4004aa7a97a2d08e918a6b6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'097d1005c4004aa7a97a2d08e918a6b6', x'2c82e34f43a748528cbe73c43fec4bc9', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/D2F4F0AE062D4E6AAA7CEBED22AB2F9C/invite" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"D2F4F0AE062D4E6AAA7CEBED22AB2F9C"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8d709a3262794f458609439bbd330446' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8d709a3262794f458609439bbd330446' AND `account_users`.`account_id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' AND `account_users`.`user_id` = x'8d709a3262794f458609439bbd330446' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.4ms | ActiveRecord: 2.3ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8d709a3262794f458609439bbd330446' AND `account_users`.`account_id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'706bde3259074e0db798533d9faa6b50' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d35ab6793bf4e11964eba2521c6ab27' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'cfee327b35464b76a386e1ad1e34bcf8'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'0d35ab6793bf4e11964eba2521c6ab27' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'0d35ab6793bf4e11964eba2521c6ab27', x'7a3ede3b18d04e11b2f2c25a351d4473', 'owner')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/D2F4F0AE062D4E6AAA7CEBED22AB2F9C/invite" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"D2F4F0AE062D4E6AAA7CEBED22AB2F9C"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8d709a3262794f458609439bbd330446' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'8d709a3262794f458609439bbd330446' AND `account_users`.`account_id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'd2f4f0ae062d4e6aaa7cebed22ab2f9c' AND `account_users`.`user_id` = x'8d709a3262794f458609439bbd330446' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'0d35ab6793bf4e11964eba2521c6ab27' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 147ms (Views: 139.4ms | ActiveRecord: 2.2ms)  (1.5ms) ROLLBACK  (0.2ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:42', '2013-01-02 11:06:42', 'facebook@test.test', '', NULL, x'a8ba6ef5ed1a462fb434ff5d0465d1c6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:42') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:42', 'User', x'6f0f475f0528415ba3647b1681a324b5', '6928abc414c97c2f771e90531fbcbaba', x'a8ba6ef5ed1a462fb434ff5d0465d1c6', 'User', '2013-01-02 11:06:42') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:42', x'95d2e0622ce147f3970f49fe17df1181', NULL, NULL, NULL, '2013-01-02 11:06:42')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:42', `updated_at` = '2013-01-02 11:06:42', `subdomain` = 'account95d2e062-2ce1-47f3-970f-49fe17df1181' WHERE `accounts`.`id` = x'95d2e0622ce147f3970f49fe17df1181' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'95d2e0622ce147f3970f49fe17df1181' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'95d2e0622ce147f3970f49fe17df1181', x'df2aa49d49094ca68b855c4f12ac25d5', x'a8ba6ef5ed1a462fb434ff5d0465d1c6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df2aa49d49094ca68b855c4f12ac25d5' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df2aa49d49094ca68b855c4f12ac25d5', x'ed868e1604554fda81cb6f9f943cd1ab', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df2aa49d49094ca68b855c4f12ac25d5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df2aa49d49094ca68b855c4f12ac25d5', x'a14ad2be823749bfaeb076b9f82c00c1', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:42 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c2edcb1_107080435d48787f2@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'47f9b273346a42268afc3b2b66c70428', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'a8ba6ef5ed1a462fb434ff5d0465d1c6')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 8.3ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:42 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:43', 'tester@roles.test', '$2a$04$sg9E8J7YuuKR1ZbBxi4hNuuStB2Pwe.QPSCrKyogKA9NDZ19pqeb2', NULL, x'f0e509e8c7c04458b9c5bf874def7107', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'f0e509e8c7c04458b9c5bf874def7107' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:43', 'User', x'6b13751b01614d278f9f4bb1a7b144a8', 'dc2268b3a0afb390eb70bce249a97da0', x'f0e509e8c7c04458b9c5bf874def7107', 'User', '2013-01-02 11:06:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'f0e509e8c7c04458b9c5bf874def7107' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:43', x'c9104c1d7b63468d94cfa7b94677710a', NULL, NULL, NULL, '2013-01-02 11:06:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:43', `updated_at` = '2013-01-02 11:06:43', `subdomain` = 'accountc9104c1d-7b63-468d-94cf-a7b94677710a' WHERE `accounts`.`id` = x'c9104c1d7b63468d94cfa7b94677710a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'c9104c1d7b63468d94cfa7b94677710a' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'c9104c1d7b63468d94cfa7b94677710a', x'9d38a536b3bf402cb9e1d180ef686e7b', x'f0e509e8c7c04458b9c5bf874def7107') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9d38a536b3bf402cb9e1d180ef686e7b') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d38a536b3bf402cb9e1d180ef686e7b' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d38a536b3bf402cb9e1d180ef686e7b', x'ede8353534e8423e8fa25d3e02ddbb91', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9d38a536b3bf402cb9e1d180ef686e7b') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9d38a536b3bf402cb9e1d180ef686e7b' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9d38a536b3bf402cb9e1d180ef686e7b', x'67bd88fc87a642e68aab16d8fabf0f29', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:43 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c39e3c_107080435d48788a5@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'95d2e0622ce147f3970f49fe17df1181' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'95d2e0622ce147f3970f49fe17df1181', x'6dc948ecc00d4bbc9f5dda9d0ecc3a6d', x'f0e509e8c7c04458b9c5bf874def7107') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6dc948ecc00d4bbc9f5dda9d0ecc3a6d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6dc948ecc00d4bbc9f5dda9d0ecc3a6d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6dc948ecc00d4bbc9f5dda9d0ecc3a6d', x'8b7f2eafdd1b4f4388a839c8129a8bb9', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6dc948ecc00d4bbc9f5dda9d0ecc3a6d') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6dc948ecc00d4bbc9f5dda9d0ecc3a6d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6dc948ecc00d4bbc9f5dda9d0ecc3a6d', x'30f129d0e5504eacb9bc8ef4cd5c1770', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/95D2E0622CE147F3970F49FE17DF1181/invite" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"95D2E0622CE147F3970F49FE17DF1181"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' AND `account_users`.`account_id` = x'95d2e0622ce147f3970f49fe17df1181' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'95d2e0622ce147f3970f49fe17df1181' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'95d2e0622ce147f3970f49fe17df1181' AND `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.6ms | ActiveRecord: 2.5ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' AND `account_users`.`account_id` = x'95d2e0622ce147f3970f49fe17df1181' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5'  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'a14ad2be823749bfaeb076b9f82c00c1' AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df2aa49d49094ca68b855c4f12ac25d5' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '•Òàb,áGó—Iþß' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'ed868e1604554fda81cb6f9f943cd1ab'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'df2aa49d49094ca68b855c4f12ac25d5' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'df2aa49d49094ca68b855c4f12ac25d5', x'09de2b6fcd30470bbd439fc910d9f78c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/95D2E0622CE147F3970F49FE17DF1181/invite" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"95D2E0622CE147F3970F49FE17DF1181"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' AND `account_users`.`account_id` = x'95d2e0622ce147f3970f49fe17df1181' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'95d2e0622ce147f3970f49fe17df1181' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'95d2e0622ce147f3970f49fe17df1181' AND `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'95d2e0622ce147f3970f49fe17df1181' AND `account_users`.`user_id` = x'a8ba6ef5ed1a462fb434ff5d0465d1c6' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'df2aa49d49094ca68b855c4f12ac25d5' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 19ms (Views: 11.0ms | ActiveRecord: 2.3ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:43', '2013-01-02 11:06:43', 'facebook@test.test', '', NULL, x'5ed7feb5c9984bccadb7b3574244fc7f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:43', 'User', x'54fdd6a95dd5456185f92e55a23eb1c8', '545cef791f520a70324e75b1a3ee9260', x'5ed7feb5c9984bccadb7b3574244fc7f', 'User', '2013-01-02 11:06:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:43', x'b4ab69a40feb4a62a88cc087e75660cf', NULL, NULL, NULL, '2013-01-02 11:06:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:43', `updated_at` = '2013-01-02 11:06:43', `subdomain` = 'accountb4ab69a4-0feb-4a62-a88c-c087e75660cf' WHERE `accounts`.`id` = x'b4ab69a40feb4a62a88cc087e75660cf' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b4ab69a40feb4a62a88cc087e75660cf' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b4ab69a40feb4a62a88cc087e75660cf', x'3c36f1cd4e5f4be8afadc05814d9ea7f', x'5ed7feb5c9984bccadb7b3574244fc7f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' LIMIT 1 SQL (0.5ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c36f1cd4e5f4be8afadc05814d9ea7f', x'7e74f80871024e50b552df94b6298282', 'owner') AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c36f1cd4e5f4be8afadc05814d9ea7f', x'9efd167ba53846098953738500303f71', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:43 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c347c78_107080435d4878975@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'86a7bc30d55c4dacb40912b8ca6fc00b', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'5ed7feb5c9984bccadb7b3574244fc7f')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 187ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5ed7feb5c9984bccadb7b3574244fc7f' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:43', 'tester@roles.test', '$2a$04$NsEMuPeOBS7lUStwgvW0SOp0J1IIQoP65Oj9FMfWzEQuf3dl7A/Y.', NULL, x'09d6c20caf174e6b939dacbf9a2b1f43', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'09d6c20caf174e6b939dacbf9a2b1f43' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:43', 'User', x'0b26036708cb496dac5cb79e97fb79e9', 'eb31bb3cbfbbf355fc01d12e0fe1a664', x'09d6c20caf174e6b939dacbf9a2b1f43', 'User', '2013-01-02 11:06:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'09d6c20caf174e6b939dacbf9a2b1f43' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:43', x'414c7151051f42cbb5e963fbe60cff5d', NULL, NULL, NULL, '2013-01-02 11:06:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:43', `updated_at` = '2013-01-02 11:06:43', `subdomain` = 'account414c7151-051f-42cb-b5e9-63fbe60cff5d' WHERE `accounts`.`id` = x'414c7151051f42cbb5e963fbe60cff5d' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'414c7151051f42cbb5e963fbe60cff5d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'414c7151051f42cbb5e963fbe60cff5d', x'2112363faf564406a0b18fb4eb41bb7f', x'09d6c20caf174e6b939dacbf9a2b1f43') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'2112363faf564406a0b18fb4eb41bb7f') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2112363faf564406a0b18fb4eb41bb7f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2112363faf564406a0b18fb4eb41bb7f', x'4ffbad97dc2f4f0aa84485690aa57ad8', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'2112363faf564406a0b18fb4eb41bb7f') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'2112363faf564406a0b18fb4eb41bb7f' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'2112363faf564406a0b18fb4eb41bb7f', x'7bab954e62444a029569d967053b1517', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:43 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c357e8d_107080435d4879048@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b4ab69a40feb4a62a88cc087e75660cf' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'b4ab69a40feb4a62a88cc087e75660cf', x'5afa57efd770428fa0264ef2790dc1d7', x'09d6c20caf174e6b939dacbf9a2b1f43') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'5afa57efd770428fa0264ef2790dc1d7') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5afa57efd770428fa0264ef2790dc1d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5afa57efd770428fa0264ef2790dc1d7', x'acfc3718374541d1a47edf87eb0077dc', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'5afa57efd770428fa0264ef2790dc1d7') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'5afa57efd770428fa0264ef2790dc1d7' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'5afa57efd770428fa0264ef2790dc1d7', x'e11011c6ab5e412daf6328c631c21de2', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/B4AB69A40FEB4A62A88CC087E75660CF/invite" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"B4AB69A40FEB4A62A88CC087E75660CF"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5ed7feb5c9984bccadb7b3574244fc7f' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' AND `account_users`.`account_id` = x'b4ab69a40feb4a62a88cc087e75660cf' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b4ab69a40feb4a62a88cc087e75660cf' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b4ab69a40feb4a62a88cc087e75660cf' AND `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.4ms | ActiveRecord: 2.3ms) AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' AND `account_users`.`account_id` = x'b4ab69a40feb4a62a88cc087e75660cf' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = '´«i¤ëJb¨ŒÀ‡çV`Ï' AND name = 'owner') SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'7e74f80871024e50b552df94b6298282' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'9efd167ba53846098953738500303f71'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3c36f1cd4e5f4be8afadc05814d9ea7f', x'de0c9baa7a1f42619bf775e561bcea7a', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/B4AB69A40FEB4A62A88CC087E75660CF/invite" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"B4AB69A40FEB4A62A88CC087E75660CF"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'5ed7feb5c9984bccadb7b3574244fc7f' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' AND `account_users`.`account_id` = x'b4ab69a40feb4a62a88cc087e75660cf' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'b4ab69a40feb4a62a88cc087e75660cf' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b4ab69a40feb4a62a88cc087e75660cf' AND `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'b4ab69a40feb4a62a88cc087e75660cf' AND `account_users`.`user_id` = x'5ed7feb5c9984bccadb7b3574244fc7f' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'3c36f1cd4e5f4be8afadc05814d9ea7f' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 18ms (Views: 10.2ms | ActiveRecord: 2.3ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:43', '2013-01-02 11:06:43', 'facebook@test.test', '', NULL, x'a29a443f2bec40b4aac5753f5e70a957', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:43') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'a29a443f2bec40b4aac5753f5e70a957' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:43', 'User', x'4a1e52a1ecb041d98897a9e0a9bd0c80', '55c0e72f25c9ccf5a5343e16ac8f72d6', x'a29a443f2bec40b4aac5753f5e70a957', 'User', '2013-01-02 11:06:43') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'a29a443f2bec40b4aac5753f5e70a957' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:43', x'f846a41d5d384152acfb568a1d3d7739', NULL, NULL, NULL, '2013-01-02 11:06:43')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:43', `updated_at` = '2013-01-02 11:06:43', `subdomain` = 'accountf846a41d-5d38-4152-acfb-568a1d3d7739' WHERE `accounts`.`id` = x'f846a41d5d384152acfb568a1d3d7739' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f846a41d5d384152acfb568a1d3d7739' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f846a41d5d384152acfb568a1d3d7739', x'9383b15b2c4042cfab0e67ce606c3b78', x'a29a443f2bec40b4aac5753f5e70a957') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9383b15b2c4042cfab0e67ce606c3b78' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9383b15b2c4042cfab0e67ce606c3b78', x'8f0b248e365d4f71a96595b57d28b4bd', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9383b15b2c4042cfab0e67ce606c3b78' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9383b15b2c4042cfab0e67ce606c3b78', x'002b402f36734211bf13d7a16cfdf252', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:43 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c37598f_107080435d48791ad@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ac4bddfafecb4636b52beb147efea792', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'a29a443f2bec40b4aac5753f5e70a957')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 8.2ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a29a443f2bec40b4aac5753f5e70a957' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:43', 'tester@roles.test', '$2a$04$4Fn1VGbP/hgzOLKKD9A9QuRtpGzD4La1SOHHchNV896OlDBAdx4C.', NULL, x'636f9551498f45da9a35ae8f3c1194d2', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:43') ApiToken Exists (0.5ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'636f9551498f45da9a35ae8f3c1194d2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:43', 'User', x'b3db018cb51b4f2ab01af2384b04597e', 'faa517d12e5669ecfd25f28445c4366e', x'636f9551498f45da9a35ae8f3c1194d2', 'User', '2013-01-02 11:06:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'636f9551498f45da9a35ae8f3c1194d2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:43', x'6de66ba02e144774b05cb6701ec241bd', NULL, NULL, NULL, '2013-01-02 11:06:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:43', `updated_at` = '2013-01-02 11:06:43', `subdomain` = 'account6de66ba0-2e14-4774-b05c-b6701ec241bd' WHERE `accounts`.`id` = x'6de66ba02e144774b05cb6701ec241bd' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6de66ba02e144774b05cb6701ec241bd' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6de66ba02e144774b05cb6701ec241bd', x'7713f5fee4ff4b5eaa556c45afe46646', x'636f9551498f45da9a35ae8f3c1194d2') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'7713f5fee4ff4b5eaa556c45afe46646') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7713f5fee4ff4b5eaa556c45afe46646' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7713f5fee4ff4b5eaa556c45afe46646', x'92d6b2eb8b3541f6a0d9487a8e8b5ef8', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'7713f5fee4ff4b5eaa556c45afe46646') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'7713f5fee4ff4b5eaa556c45afe46646' LIMIT 1 SQL (0.4ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'7713f5fee4ff4b5eaa556c45afe46646', x'08323cfbadc141138d23b2d9659e98d3', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:43 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c3a9ffe_107080435d48792c6@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f846a41d5d384152acfb568a1d3d7739' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'f846a41d5d384152acfb568a1d3d7739', x'e973de9786484e5aa025914756d13e52', x'636f9551498f45da9a35ae8f3c1194d2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e973de9786484e5aa025914756d13e52') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e973de9786484e5aa025914756d13e52' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e973de9786484e5aa025914756d13e52', x'df21bb7cf2c6439bbe75fd2da18797e2', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e973de9786484e5aa025914756d13e52') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e973de9786484e5aa025914756d13e52' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e973de9786484e5aa025914756d13e52', x'f2cc6f042aa94fa5b437b1ad673f3c6a', 'admin')  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/F846A41D5D384152ACFB568A1D3D7739/invite" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"F846A41D5D384152ACFB568A1D3D7739"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a29a443f2bec40b4aac5753f5e70a957' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' AND `account_users`.`account_id` = x'f846a41d5d384152acfb568a1d3d7739' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f846a41d5d384152acfb568a1d3d7739' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f846a41d5d384152acfb568a1d3d7739' AND `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 17ms (Views: 8.5ms | ActiveRecord: 2.3ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' AND `account_users`.`account_id` = x'f846a41d5d384152acfb568a1d3d7739' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'002b402f36734211bf13d7a16cfdf252' AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9383b15b2c4042cfab0e67ce606c3b78' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `account_roles` INNER JOIN `account_users` ON `account_users`.`id` = `account_roles`.`account_user_id` WHERE (account_users.account_id = 'øF¤]8AR¬ûVŠ=w9' AND name = 'owner') SQL (0.3ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8f0b248e365d4f71a96595b57d28b4bd'  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9383b15b2c4042cfab0e67ce606c3b78' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9383b15b2c4042cfab0e67ce606c3b78', x'26b1bec6bc22450fb97850001bf32ea2', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/F846A41D5D384152ACFB568A1D3D7739/invite" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"F846A41D5D384152ACFB568A1D3D7739"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'a29a443f2bec40b4aac5753f5e70a957' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' AND `account_users`.`account_id` = x'f846a41d5d384152acfb568a1d3d7739' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'f846a41d5d384152acfb568a1d3d7739' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f846a41d5d384152acfb568a1d3d7739' AND `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'f846a41d5d384152acfb568a1d3d7739' AND `account_users`.`user_id` = x'a29a443f2bec40b4aac5753f5e70a957' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'9383b15b2c4042cfab0e67ce606c3b78' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 18ms (Views: 10.0ms | ActiveRecord: 2.5ms)  (31.4ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:43', '2013-01-02 11:06:43', 'facebook@test.test', '', NULL, x'b8166841d5bd481c83a085584d05ae2b', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b8166841d5bd481c83a085584d05ae2b' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:43', 'User', x'2250110858294dfaa698a50715602f58', '6cad821f9e685b98a2af02f1994d8ca6', x'b8166841d5bd481c83a085584d05ae2b', 'User', '2013-01-02 11:06:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b8166841d5bd481c83a085584d05ae2b' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:43', x'a4aa049c0a184a1ca81018860aa6aec9', NULL, NULL, NULL, '2013-01-02 11:06:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:43', `updated_at` = '2013-01-02 11:06:43', `subdomain` = 'accounta4aa049c-0a18-4a1c-a810-18860aa6aec9' WHERE `accounts`.`id` = x'a4aa049c0a184a1ca81018860aa6aec9' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4aa049c0a184a1ca81018860aa6aec9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a4aa049c0a184a1ca81018860aa6aec9', x'f3e21674320442b195be7bb2fc248bc9', x'b8166841d5bd481c83a085584d05ae2b') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9') LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f3e21674320442b195be7bb2fc248bc9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f3e21674320442b195be7bb2fc248bc9', x'213e220841a14273b9d7b5c4240c4bb0', 'owner') AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f3e21674320442b195be7bb2fc248bc9' LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f3e21674320442b195be7bb2fc248bc9', x'8198060e6efe41748759a667670085cb', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:43 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c3cef42_107080435d4879317@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a6f3e32ab0894503b9a547c352ae4f33', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'b8166841d5bd481c83a085584d05ae2b')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 55ms (ActiveRecord: 6.7ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b8166841d5bd481c83a085584d05ae2b' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) User Load (0.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'tester@roles.test' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:43', 'tester@roles.test', '$2a$04$oiapWjCNvxujPU9affHxSerIlORsIY0AnTPMjlfggpJQsnxqQw5wm', NULL, x'55a504095092404aaa4fa8b204e854e9', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:43') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'55a504095092404aaa4fa8b204e854e9' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:43', 'User', x'b16eca23e8244e5a942ecd7f935348ff', '7087e81a13c014d169e6401a477a5eee', x'55a504095092404aaa4fa8b204e854e9', 'User', '2013-01-02 11:06:43') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'55a504095092404aaa4fa8b204e854e9' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:43', x'249fa2c24f4845848537ece7c3586c8e', NULL, NULL, NULL, '2013-01-02 11:06:43')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:43', `updated_at` = '2013-01-02 11:06:43', `subdomain` = 'account249fa2c2-4f48-4584-8537-ece7c3586c8e' WHERE `accounts`.`id` = x'249fa2c24f4845848537ece7c3586c8e' Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'249fa2c24f4845848537ece7c3586c8e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'249fa2c24f4845848537ece7c3586c8e', x'e38432a3551f47bfb0539b8587d0805d', x'55a504095092404aaa4fa8b204e854e9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'e38432a3551f47bfb0539b8587d0805d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e38432a3551f47bfb0539b8587d0805d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e38432a3551f47bfb0539b8587d0805d', x'7913f0faae2c43dd964bfa2b2895a6c7', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'e38432a3551f47bfb0539b8587d0805d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'e38432a3551f47bfb0539b8587d0805d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'e38432a3551f47bfb0539b8587d0805d', x'78472a8c1b774402be0bd0a8dd8675c6', 'admin') Sent mail to tester@roles.test (6ms) Date: Wed, 02 Jan 2013 09:06:43 -0200 From: iugu Reply-To: iugu To: tester@roles.test Message-ID: <50e414c3df6a0_107080435d4879465@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4aa049c0a184a1ca81018860aa6aec9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a4aa049c0a184a1ca81018860aa6aec9', x'728e6b51e4d24c57ae22f59071c7f122', x'55a504095092404aaa4fa8b204e854e9') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'728e6b51e4d24c57ae22f59071c7f122') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'728e6b51e4d24c57ae22f59071c7f122' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'728e6b51e4d24c57ae22f59071c7f122', x'89100c4a8f704e42b3ff1aa291340eaf', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'728e6b51e4d24c57ae22f59071c7f122') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'728e6b51e4d24c57ae22f59071c7f122' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'728e6b51e4d24c57ae22f59071c7f122', x'ebe419703cb04775ba56d603c9a5e35f', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/A4AA049C0A184A1CA81018860AA6AEC9/invite" for 127.0.0.1 at 2013-01-02 09:06:43 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"A4AA049C0A184A1CA81018860AA6AEC9"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b8166841d5bd481c83a085584d05ae2b' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' AND `account_users`.`account_id` = x'a4aa049c0a184a1ca81018860aa6aec9' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4aa049c0a184a1ca81018860aa6aec9' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4aa049c0a184a1ca81018860aa6aec9' AND `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9' AND `account_roles`.`name` = 'owner' LIMIT 1 Completed 200 OK in 148ms (Views: 8.6ms | ActiveRecord: 2.3ms) AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' AND `account_users`.`account_id` = x'a4aa049c0a184a1ca81018860aa6aec9' LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9'  (0.2ms) SAVEPOINT active_record_1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f3e21674320442b195be7bb2fc248bc9' LIMIT 1 Could not log "sql.active_record" event. ArgumentError: invalid byte sequence in UTF-8 SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'213e220841a14273b9d7b5c4240c4bb0' SQL (0.2ms) DELETE FROM `account_roles` WHERE `account_roles`.`id` = x'8198060e6efe41748759a667670085cb'  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'f3e21674320442b195be7bb2fc248bc9' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'f3e21674320442b195be7bb2fc248bc9', x'f69f1c1c0dad4625901e3730fa1f374c', 'admin')  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/account/A4AA049C0A184A1CA81018860AA6AEC9/invite" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::InvitationsController#new as HTML Parameters: {"account_id"=>"A4AA049C0A184A1CA81018860AA6AEC9"} User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b8166841d5bd481c83a085584d05ae2b' LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' AND `account_users`.`account_id` = x'a4aa049c0a184a1ca81018860aa6aec9' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9' AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9' AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a4aa049c0a184a1ca81018860aa6aec9' LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4aa049c0a184a1ca81018860aa6aec9' AND `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9' AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = x'a4aa049c0a184a1ca81018860aa6aec9' AND `account_users`.`user_id` = x'b8166841d5bd481c83a085584d05ae2b' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = x'f3e21674320442b195be7bb2fc248bc9' AND `account_roles`.`name` = 'admin' LIMIT 1 Completed 200 OK in 20ms (Views: 10.6ms | ActiveRecord: 2.2ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:44', '2013-01-02 11:06:44', 'facebook@test.test', '', NULL, x'be790ef8673241de843ccc9583e0fce2', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'be790ef8673241de843ccc9583e0fce2' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:44', 'User', x'0ecea56148bf4306acd35a04af8d95dd', '24ae81e0947392c6a104347fa7ad65fa', x'be790ef8673241de843ccc9583e0fce2', 'User', '2013-01-02 11:06:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'be790ef8673241de843ccc9583e0fce2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:44', x'6bdb630687fc41e989a17bff92189579', NULL, NULL, NULL, '2013-01-02 11:06:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:44', `updated_at` = '2013-01-02 11:06:44', `subdomain` = 'account6bdb6306-87fc-41e9-89a1-7bff92189579' WHERE `accounts`.`id` = x'6bdb630687fc41e989a17bff92189579' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'6bdb630687fc41e989a17bff92189579' LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'6bdb630687fc41e989a17bff92189579', x'c41e119725294df7a224113b50a9a969', x'be790ef8673241de843ccc9583e0fce2') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'c41e119725294df7a224113b50a9a969') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c41e119725294df7a224113b50a9a969' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c41e119725294df7a224113b50a9a969', x'ac4fa2d42b7f4e658f2d623b5c7d6a01', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'c41e119725294df7a224113b50a9a969') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'c41e119725294df7a224113b50a9a969' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'c41e119725294df7a224113b50a9a969', x'fff8283d494c4699aa34f2906b5ea0f9', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:44 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c4294a3_107080435d4879592@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'e5049aaf808c4aa2aa2acd3f0e9d6843', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'be790ef8673241de843ccc9583e0fce2')  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'be790ef8673241de843ccc9583e0fce2' AND (accounts.id = NULL) LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'be790ef8673241de843ccc9583e0fce2' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 54ms (ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'be790ef8673241de843ccc9583e0fce2' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'be790ef8673241de843ccc9583e0fce2' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'be790ef8673241de843ccc9583e0fce2' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_be790ef8-6732-41de-843c-cc9583e0fce2_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'be790ef8673241de843ccc9583e0fce2' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'be790ef8673241de843ccc9583e0fce2' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'be790ef8673241de843ccc9583e0fce2' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.2ms | ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:44', '2013-01-02 11:06:44', 'facebook@test.test', '', NULL, x'fcba3dc2a1f14a24b24e361acb61ee5f', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:44', 'User', x'031e86047f6848929ab7942d1fef5d22', '74a31161ba4fc58c12984cedeb386ce5', x'fcba3dc2a1f14a24b24e361acb61ee5f', 'User', '2013-01-02 11:06:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:44', x'390001e62b304a4999f0e01357d6a35a', NULL, NULL, NULL, '2013-01-02 11:06:44')  (0.5ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:44', `updated_at` = '2013-01-02 11:06:44', `subdomain` = 'account390001e6-2b30-4a49-99f0-e01357d6a35a' WHERE `accounts`.`id` = x'390001e62b304a4999f0e01357d6a35a' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'390001e62b304a4999f0e01357d6a35a' LIMIT 1 SQL (0.4ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'390001e62b304a4999f0e01357d6a35a', x'372c0397e1bb4a989c5df3089963b9a6', x'fcba3dc2a1f14a24b24e361acb61ee5f') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'372c0397e1bb4a989c5df3089963b9a6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'372c0397e1bb4a989c5df3089963b9a6' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'372c0397e1bb4a989c5df3089963b9a6', x'609f6c69cfbe4e9c93809e25ccef9234', 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'372c0397e1bb4a989c5df3089963b9a6') LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'372c0397e1bb4a989c5df3089963b9a6' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'372c0397e1bb4a989c5df3089963b9a6', x'c5f8f737257148048548436be82361f6', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:44 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c461916_107080435d487964d@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a5ba11daa5234251a368e3c3dbe90b70', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'fcba3dc2a1f14a24b24e361acb61ee5f')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 187ms (ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_fcba3dc2-a1f1-4a24-b24e-361acb61ee5f_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 2.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_fcba3dc2-a1f1-4a24-b24e-361acb61ee5f_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'fcba3dc2a1f14a24b24e361acb61ee5f' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 18.2ms | ActiveRecord: 2.6ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:44', '2013-01-02 11:06:44', 'facebook@test.test', '', NULL, x'36a11f01f0a04225b4f9931489c728e4', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'36a11f01f0a04225b4f9931489c728e4' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:44', 'User', x'1d427bf76b004b21b700cbe5b720823e', '19faddf4872e9d31f885db8fd1e7e65c', x'36a11f01f0a04225b4f9931489c728e4', 'User', '2013-01-02 11:06:44') ApiToken Load (0.3ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'36a11f01f0a04225b4f9931489c728e4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:44', x'70ba9c19ae6a412c9748fe3df72e050e', NULL, NULL, NULL, '2013-01-02 11:06:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:44', `updated_at` = '2013-01-02 11:06:44', `subdomain` = 'account70ba9c19-ae6a-412c-9748-fe3df72e050e' WHERE `accounts`.`id` = x'70ba9c19ae6a412c9748fe3df72e050e' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'70ba9c19ae6a412c9748fe3df72e050e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'70ba9c19ae6a412c9748fe3df72e050e', x'6f746f35a7604a1d8e6842aa8a4461e0', x'36a11f01f0a04225b4f9931489c728e4') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'6f746f35a7604a1d8e6842aa8a4461e0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f746f35a7604a1d8e6842aa8a4461e0' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f746f35a7604a1d8e6842aa8a4461e0', x'4be9e48be0c64c63b726b6de778efa1a', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'6f746f35a7604a1d8e6842aa8a4461e0') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'6f746f35a7604a1d8e6842aa8a4461e0' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'6f746f35a7604a1d8e6842aa8a4461e0', x'7544a4c1cae6443083de7ea9cb968346', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:44 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c4806bd_107080435d48797ea@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'ccfecaf67e274a5885ed3628be68dbbd', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'36a11f01f0a04225b4f9931489c728e4')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'36a11f01f0a04225b4f9931489c728e4' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'36a11f01f0a04225b4f9931489c728e4' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 57ms (ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'36a11f01f0a04225b4f9931489c728e4' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'36a11f01f0a04225b4f9931489c728e4' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'36a11f01f0a04225b4f9931489c728e4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_36a11f01-f0a0-4225-b4f9-931489c728e4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'36a11f01f0a04225b4f9931489c728e4' SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'36a11f01f0a04225b4f9931489c728e4' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'36a11f01f0a04225b4f9931489c728e4' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 153ms (Views: 149.0ms | ActiveRecord: 2.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'36a11f01f0a04225b4f9931489c728e4' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'36a11f01f0a04225b4f9931489c728e4' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_36a11f01-f0a0-4225-b4f9-931489c728e4_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'36a11f01f0a04225b4f9931489c728e4' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'36a11f01f0a04225b4f9931489c728e4' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'36a11f01f0a04225b4f9931489c728e4' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.5ms)  (1.2ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:44', '2013-01-02 11:06:44', 'facebook@test.test', '', NULL, x'8a130aacea464585bda23768c1a4efb6', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:44') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'8a130aacea464585bda23768c1a4efb6' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:44', 'User', x'cff9363e79654b40b150452e0accd21e', '307c7b396463452ef6d0c5275e44fd84', x'8a130aacea464585bda23768c1a4efb6', 'User', '2013-01-02 11:06:44') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8a130aacea464585bda23768c1a4efb6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:44', x'ae2c16329b3d46668c35615a5c613580', NULL, NULL, NULL, '2013-01-02 11:06:44')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:44', `updated_at` = '2013-01-02 11:06:44', `subdomain` = 'accountae2c1632-9b3d-4666-8c35-615a5c613580' WHERE `accounts`.`id` = x'ae2c16329b3d46668c35615a5c613580' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ae2c16329b3d46668c35615a5c613580' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ae2c16329b3d46668c35615a5c613580', x'9e20a7e83d4e4b29a271e4aa8c3fa23d', x'8a130aacea464585bda23768c1a4efb6') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9e20a7e83d4e4b29a271e4aa8c3fa23d') LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e20a7e83d4e4b29a271e4aa8c3fa23d' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e20a7e83d4e4b29a271e4aa8c3fa23d', x'044fd78b3fff4211abfa6546cb59835b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9e20a7e83d4e4b29a271e4aa8c3fa23d') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9e20a7e83d4e4b29a271e4aa8c3fa23d' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9e20a7e83d4e4b29a271e4aa8c3fa23d', x'8b1c9502b83e4e0fb8e73354076d0280', 'admin') Sent mail to facebook@test.test (7ms) Date: Wed, 02 Jan 2013 09:06:44 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c4bef67_107080435d4879815@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.8ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a9fe43a1ebb34829a64132544164fc7d', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'8a130aacea464585bda23768c1a4efb6')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a130aacea464585bda23768c1a4efb6' AND (accounts.id = NULL) LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'8a130aacea464585bda23768c1a4efb6' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 63ms (ActiveRecord: 13.6ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8a130aacea464585bda23768c1a4efb6' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8a130aacea464585bda23768c1a4efb6' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8a130aacea464585bda23768c1a4efb6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8a130aac-ea46-4585-bda2-3768c1a4efb6_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8a130aacea464585bda23768c1a4efb6' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8a130aacea464585bda23768c1a4efb6' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8a130aacea464585bda23768c1a4efb6' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 24ms (Views: 20.0ms | ActiveRecord: 2.0ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8a130aacea464585bda23768c1a4efb6' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:44', NULL, '--- !ruby/struct:DestroyUserJob\nid: 8a130aac-ea46-4585-bda2-3768c1a4efb6\n', NULL, NULL, NULL, 0, 'user_8a130aac-ea46-4585-bda2-3768c1a4efb6_destroy', '2013-01-02 11:06:44', '2013-01-02 11:06:44')  (0.0ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8a130aac-ea46-4585-bda2-3768c1a4efb6_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 11ms (ActiveRecord: 1.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:44 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'8a130aacea464585bda23768c1a4efb6' LIMIT 1 ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'8a130aacea464585bda23768c1a4efb6' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8a130aac-ea46-4585-bda2-3768c1a4efb6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8a130aac-ea46-4585-bda2-3768c1a4efb6_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_8a130aac-ea46-4585-bda2-3768c1a4efb6_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8a130aacea464585bda23768c1a4efb6' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8a130aacea464585bda23768c1a4efb6' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'8a130aacea464585bda23768c1a4efb6' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 157ms (Views: 152.7ms | ActiveRecord: 2.5ms)  (1.0ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:45', '2013-01-02 11:06:45', 'facebook@test.test', '', NULL, x'0f4677c9b70b4d9dad8bd3b9f492dce1', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:45', 'User', x'aa9f6d93c2cd4775ba0cb3e63fc8d290', '30c0f8f6895e4c033012620d8d5e53d3', x'0f4677c9b70b4d9dad8bd3b9f492dce1', 'User', '2013-01-02 11:06:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.4ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:45', x'0046267ab0134787ba7caadd032cde8c', NULL, NULL, NULL, '2013-01-02 11:06:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:45', `updated_at` = '2013-01-02 11:06:45', `subdomain` = 'account0046267a-b013-4787-ba7c-aadd032cde8c' WHERE `accounts`.`id` = x'0046267ab0134787ba7caadd032cde8c' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'0046267ab0134787ba7caadd032cde8c' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'0046267ab0134787ba7caadd032cde8c', x'80f5fdb3304b4af0986d6d369785eb08', x'0f4677c9b70b4d9dad8bd3b9f492dce1') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'80f5fdb3304b4af0986d6d369785eb08') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'80f5fdb3304b4af0986d6d369785eb08' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'80f5fdb3304b4af0986d6d369785eb08', x'92cc9b86a7ed40ee9c0ee1815b91367b', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'80f5fdb3304b4af0986d6d369785eb08') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'80f5fdb3304b4af0986d6d369785eb08' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'80f5fdb3304b4af0986d6d369785eb08', x'87fb9b624f424cd68bb2231f495ca611', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:45 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c510483_107080435d4879948@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'92d308594b6340bd9dc9557676bdd728', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'0f4677c9b70b4d9dad8bd3b9f492dce1')  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 8.3ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_0f4677c9-b70b-4d9d-ad8b-d3b9f492dce1_destroy' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 19.3ms | ActiveRecord: 2.1ms) Started GET "/settings/profile/destroy" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::ProfileController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:45', NULL, '--- !ruby/struct:DestroyUserJob\nid: 0f4677c9-b70b-4d9d-ad8b-d3b9f492dce1\n', NULL, NULL, NULL, 0, 'user_0f4677c9-b70b-4d9d-ad8b-d3b9f492dce1_destroy', '2013-01-02 11:06:45', '2013-01-02 11:06:45')  (0.2ms) RELEASE SAVEPOINT active_record_1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_0f4677c9-b70b-4d9d-ad8b-d3b9f492dce1_destroy' LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 11ms (ActiveRecord: 1.9ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' LIMIT 1 ApiToken Load (0.6ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_0f4677c9-b70b-4d9d-ad8b-d3b9f492dce1_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_0f4677c9-b70b-4d9d-ad8b-d3b9f492dce1_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_0f4677c9-b70b-4d9d-ad8b-d3b9f492dce1_destroy' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'0f4677c9b70b4d9dad8bd3b9f492dce1' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 154ms (Views: 150.4ms | ActiveRecord: 2.4ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.6ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:45', '2013-01-02 11:06:45', 'facebook@test.test', '', NULL, x'c91d75ac4b0446cbbb6ba42b70bd3555', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.4ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:45', 'User', x'644c9c7c1dbf4cbdaa103613af8bdab2', 'd20e96a7a04404ee75eb486fd52694a9', x'c91d75ac4b0446cbbb6ba42b70bd3555', 'User', '2013-01-02 11:06:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:45', x'd079f24d3a95435c956b62c4f9001162', NULL, NULL, NULL, '2013-01-02 11:06:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:45', `updated_at` = '2013-01-02 11:06:45', `subdomain` = 'accountd079f24d-3a95-435c-956b-62c4f9001162' WHERE `accounts`.`id` = x'd079f24d3a95435c956b62c4f9001162' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd079f24d3a95435c956b62c4f9001162' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd079f24d3a95435c956b62c4f9001162', x'b3bf755c0b684175b491f4bff7f8ac13', x'c91d75ac4b0446cbbb6ba42b70bd3555') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'b3bf755c0b684175b491f4bff7f8ac13') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3bf755c0b684175b491f4bff7f8ac13' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3bf755c0b684175b491f4bff7f8ac13', x'5c1e3202b90b40dfbbc41ffa5e08745f', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'b3bf755c0b684175b491f4bff7f8ac13') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'b3bf755c0b684175b491f4bff7f8ac13' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'b3bf755c0b684175b491f4bff7f8ac13', x'f0b3aa5858234511bddea873045daefe', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:45 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c55379e_107080435d4880025@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'da6ce8fc978347c3b6203ff66699f3cd', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'c91d75ac4b0446cbbb6ba42b70bd3555')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 56ms (ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_c91d75ac-4b04-46cb-bb6b-a42b70bd3555_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.5ms) User Load (0.4ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:45', NULL, '--- !ruby/struct:DestroyUserJob\nid: c91d75ac-4b04-46cb-bb6b-a42b70bd3555\n', NULL, NULL, NULL, 0, 'user_c91d75ac-4b04-46cb-bb6b-a42b70bd3555_destroy', '2013-01-02 11:06:45', '2013-01-02 11:06:45')  (0.2ms) RELEASE SAVEPOINT active_record_1 User Load (0.3ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_c91d75ac-4b04-46cb-bb6b-a42b70bd3555_destroy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.2ms) UPDATE `delayed_jobs` SET `locked_at` = '2013-01-02 11:06:45', `updated_at` = '2013-01-02 11:06:45' WHERE `delayed_jobs`.`id` = 68  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_c91d75ac-4b04-46cb-bb6b-a42b70bd3555_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_c91d75ac-4b04-46cb-bb6b-a42b70bd3555_destroy' LIMIT 1 CACHE (0.0ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_c91d75ac-4b04-46cb-bb6b-a42b70bd3555_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'c91d75ac4b0446cbbb6ba42b70bd3555' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 2.5ms)  (1.1ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:45', '2013-01-02 11:06:45', 'facebook@test.test', '', NULL, x'b2f3c793cb3347efa53b5c22ee23da64', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:45') ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.3ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'b2f3c793cb3347efa53b5c22ee23da64' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:45', 'User', x'5deafbfcf4e145d88bea176c981ba96b', '8326ed9b49741a03417131aa291ea5f2', x'b2f3c793cb3347efa53b5c22ee23da64', 'User', '2013-01-02 11:06:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b2f3c793cb3347efa53b5c22ee23da64' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:45', x'd80350437c0e4d73a74e16ad8ede8f7e', NULL, NULL, NULL, '2013-01-02 11:06:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:45', `updated_at` = '2013-01-02 11:06:45', `subdomain` = 'accountd8035043-7c0e-4d73-a74e-16ad8ede8f7e' WHERE `accounts`.`id` = x'd80350437c0e4d73a74e16ad8ede8f7e' Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'd80350437c0e4d73a74e16ad8ede8f7e' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'd80350437c0e4d73a74e16ad8ede8f7e', x'3da9aa248a9840a2add6051f0588e905', x'b2f3c793cb3347efa53b5c22ee23da64') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'3da9aa248a9840a2add6051f0588e905') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3da9aa248a9840a2add6051f0588e905' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3da9aa248a9840a2add6051f0588e905', x'787e3a330c72452080bcf6b08be70eb5', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'3da9aa248a9840a2add6051f0588e905') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'3da9aa248a9840a2add6051f0588e905' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'3da9aa248a9840a2add6051f0588e905', x'61f770ea477246f78643c1eb1d1368cf', 'admin') Sent mail to facebook@test.test (6ms) Date: Wed, 02 Jan 2013 09:06:45 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c59517a_107080435d4880121@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'a82ab1c0fb104a83bfc23bef5dd347df', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'b2f3c793cb3347efa53b5c22ee23da64')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b2f3c793cb3347efa53b5c22ee23da64' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'b2f3c793cb3347efa53b5c22ee23da64' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 188ms (ActiveRecord: 8.8ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by DashboardController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b2f3c793cb3347efa53b5c22ee23da64' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b2f3c793cb3347efa53b5c22ee23da64' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b2f3c793cb3347efa53b5c22ee23da64' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_b2f3c793-cb33-47ef-a53b-5c22ee23da64_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2f3c793cb3347efa53b5c22ee23da64' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2f3c793cb3347efa53b5c22ee23da64' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'b2f3c793cb3347efa53b5c22ee23da64' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 2.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'b2f3c793cb3347efa53b5c22ee23da64' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'b2f3c793cb3347efa53b5c22ee23da64' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_b2f3c793-cb33-47ef-a53b-5c22ee23da64_destroy' LIMIT 1 Completed 200 OK in 18ms (Views: 14.8ms | ActiveRecord: 1.5ms)  (1.3ms) ROLLBACK  (0.1ms) BEGIN Started GET "/account/auth/facebook" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Started GET "/account/auth/facebook/callback" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::OmniauthCallbacksController#facebook as HTML SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1234') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'facebook@test.test'  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:45', '2013-01-02 11:06:45', 'facebook@test.test', '', NULL, x'bdca03a5b7cc414785a458c46c93888d', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.2ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'bdca03a5b7cc414785a458c46c93888d' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:45', 'User', x'fefb988835584593875448c7d93db43a', '4f82c86e648c1fa78fe2ddf397a58ae4', x'bdca03a5b7cc414785a458c46c93888d', 'User', '2013-01-02 11:06:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bdca03a5b7cc414785a458c46c93888d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:45', x'71ab8af1c30f4184b165c1d39bac6414', NULL, NULL, NULL, '2013-01-02 11:06:45')  (0.4ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:45', `updated_at` = '2013-01-02 11:06:45', `subdomain` = 'account71ab8af1-c30f-4184-b165-c1d39bac6414' WHERE `accounts`.`id` = x'71ab8af1c30f4184b165c1d39bac6414' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'71ab8af1c30f4184b165c1d39bac6414' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'71ab8af1c30f4184b165c1d39bac6414', x'cfeda06f29cb4bcebc84a108b78bc8c2', x'bdca03a5b7cc414785a458c46c93888d') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'cfeda06f29cb4bcebc84a108b78bc8c2') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfeda06f29cb4bcebc84a108b78bc8c2' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfeda06f29cb4bcebc84a108b78bc8c2', x'32a4dea32457430183ccc4370a7c10ba', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'cfeda06f29cb4bcebc84a108b78bc8c2') LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'cfeda06f29cb4bcebc84a108b78bc8c2' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'cfeda06f29cb4bcebc84a108b78bc8c2', x'6ef6b365863f43b38e540765940fcf91', 'admin') Sent mail to facebook@test.test (135ms) Date: Wed, 02 Jan 2013 09:06:45 -0200 From: iugu Reply-To: iugu To: facebook@test.test Message-ID: <50e414c5b2a2f_107080435d4880257@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `social_accounts` (`id`, `provider`, `secret`, `social_id`, `token`, `user_id`) VALUES (x'8fe38f77eb0d45a8bd68eb9e39e54364', 'facebook', NULL, '1234', 'lk2j3lkjasldkjflk3ljsdf', x'bdca03a5b7cc414785a458c46c93888d')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bdca03a5b7cc414785a458c46c93888d' AND (accounts.id = NULL) LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'bdca03a5b7cc414785a458c46c93888d' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 185ms (ActiveRecord: 8.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bdca03a5b7cc414785a458c46c93888d' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bdca03a5b7cc414785a458c46c93888d' LIMIT 1 ApiToken Load (0.5ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'bdca03a5b7cc414785a458c46c93888d' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_bdca03a5-b7cc-4147-85a4-58c46c93888d_destroy' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'bdca03a5b7cc414785a458c46c93888d' SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'bdca03a5b7cc414785a458c46c93888d' AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'bdca03a5b7cc414785a458c46c93888d' AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Completed 200 OK in 22ms (Views: 17.9ms | ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bdca03a5b7cc414785a458c46c93888d' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.5ms) Started DELETE "/logout" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::SessionsController#destroy as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'bdca03a5b7cc414785a458c46c93888d' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (0.4ms) UPDATE `users` SET `updated_at` = '2013-01-02 11:06:45' WHERE `users`.`id` = x'bdca03a5b7cc414785a458c46c93888d'  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://iugusdk.dev/ Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by DashboardController#index as HTML Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started GET "/signup" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::RegistrationsController#new as HTML Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_signup_fields.haml (0.6ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/shared/_links.haml (4.0ms) Completed 200 OK in 40ms (Views: 38.7ms | ActiveRecord: 0.0ms) Started POST "/try_first" for 127.0.0.1 at 2013-01-02 09:06:45 -0200 Processing by Iugu::RegistrationsController#try_first as HTML  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:06:45', '2013-01-02 11:06:45', '', '', 1, x'cb95f6e41d6c45b3b97e96fe64470948', 'en', 'Guest', NULL, NULL, NULL, NULL, '2013-01-02 11:06:45') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'cb95f6e41d6c45b3b97e96fe64470948' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:45', 'User', x'b134f2a07b4e4d7db88d58ea94140d8d', 'ece9fa71c53e8989272fca7193b1e854', x'cb95f6e41d6c45b3b97e96fe64470948', 'User', '2013-01-02 11:06:45') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'cb95f6e41d6c45b3b97e96fe64470948' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:45', x'a8312aaa5f4249dd9f28d7a180754445', NULL, NULL, NULL, '2013-01-02 11:06:45')  (0.3ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:45', `updated_at` = '2013-01-02 11:06:45', `subdomain` = 'accounta8312aaa-5f42-49dd-9f28-d7a180754445' WHERE `accounts`.`id` = x'a8312aaa5f4249dd9f28d7a180754445' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'a8312aaa5f4249dd9f28d7a180754445' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'a8312aaa5f4249dd9f28d7a180754445', x'9528e4d326c3453fae5a3304a3b8a890', x'cb95f6e41d6c45b3b97e96fe64470948') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'9528e4d326c3453fae5a3304a3b8a890') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9528e4d326c3453fae5a3304a3b8a890' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9528e4d326c3453fae5a3304a3b8a890', x'a2e3cf2922fc4468b96392aef54044f6', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'9528e4d326c3453fae5a3304a3b8a890') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'9528e4d326c3453fae5a3304a3b8a890' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'9528e4d326c3453fae5a3304a3b8a890', x'a4a87a031a5b4757bccdc9823d1eab73', 'admin')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-01-02 11:06:46', NULL, '--- !ruby/struct:DestroyUserJob\nid: cb95f6e4-1d6c-45b3-b97e-96fe64470948\n', NULL, NULL, NULL, 0, 'guest_cb95f6e4-1d6c-45b3-b97e-96fe64470948_destroy', '2013-01-09 11:06:46', '2013-01-02 11:06:46')  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1  (0.3ms) UPDATE `users` SET `remember_created_at` = '2013-01-02 11:06:46', `updated_at` = '2013-01-02 11:06:46' WHERE `users`.`id` = x'cb95f6e41d6c45b3b97e96fe64470948'  (0.1ms) RELEASE SAVEPOINT active_record_1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cb95f6e41d6c45b3b97e96fe64470948' AND (accounts.id = '71ab8af1-c30f-4184-b165-c1d39bac6414') LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = x'cb95f6e41d6c45b3b97e96fe64470948' LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 40ms (ActiveRecord: 8.0ms) Started GET "/" for 127.0.0.1 at 2013-01-02 09:06:46 -0200 Processing by DashboardController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cb95f6e41d6c45b3b97e96fe64470948' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2013-01-02 09:06:46 -0200 Processing by Iugu::ProfileController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = x'cb95f6e41d6c45b3b97e96fe64470948' LIMIT 1 Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.6ms)  (1.5ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'good@email.com' LIMIT 1 SQL (0.4ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `guest`, `id`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2013-01-02 11:05:54', '2013-01-02 11:06:46', 'good@email.com', '$2a$04$3DdVIjhui76n/Z0OQudUCOlBtz0IVtpaTGfiSliSj1z4InC0fXTjG', NULL, x'fe2f99aab4be45c599d9e6dcaa2b0cdb', 'en', NULL, NULL, NULL, NULL, NULL, '2013-01-02 11:06:46') ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE `api_tokens`.`token` IS NULL LIMIT 1 ApiToken Exists (0.4ms) SELECT 1 AS one FROM `api_tokens` WHERE (`api_tokens`.`description` = BINARY 'User' AND `api_tokens`.`tokenable_id` = x'fe2f99aab4be45c599d9e6dcaa2b0cdb' AND `api_tokens`.`tokenable_type` = 'User') LIMIT 1 SQL (0.3ms) INSERT INTO `api_tokens` (`api_type`, `created_at`, `description`, `id`, `token`, `tokenable_id`, `tokenable_type`, `updated_at`) VALUES ('USER', '2013-01-02 11:06:46', 'User', x'a94874415e564702bcb23a4d6439fdb1', '3b4337dfc3e50655476b1a0ee42a0e76', x'fe2f99aab4be45c599d9e6dcaa2b0cdb', 'User', '2013-01-02 11:06:46') ApiToken Load (0.4ms) SELECT `api_tokens`.* FROM `api_tokens` WHERE `api_tokens`.`tokenable_id` = x'fe2f99aab4be45c599d9e6dcaa2b0cdb' AND `api_tokens`.`tokenable_type` = 'User' LIMIT 1 SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `id`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('2013-01-02 11:06:46', x'ecdda13ff3ec430aa0583ad3e39d8274', NULL, NULL, NULL, '2013-01-02 11:06:46')  (0.6ms) UPDATE `accounts` SET `created_at` = '2013-01-02 11:06:46', `updated_at` = '2013-01-02 11:06:46', `subdomain` = 'accountecdda13f-f3ec-430a-a058-3ad3e39d8274' WHERE `accounts`.`id` = x'ecdda13ff3ec430aa0583ad3e39d8274' Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = x'ecdda13ff3ec430aa0583ad3e39d8274' LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `id`, `user_id`) VALUES (x'ecdda13ff3ec430aa0583ad3e39d8274', x'199072384bf24e0bb9546a68068dabbe', x'fe2f99aab4be45c599d9e6dcaa2b0cdb') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = x'199072384bf24e0bb9546a68068dabbe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'199072384bf24e0bb9546a68068dabbe' LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'199072384bf24e0bb9546a68068dabbe', x'78388be4668b42c0a817e59565773276', 'owner') AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = x'199072384bf24e0bb9546a68068dabbe') LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = x'199072384bf24e0bb9546a68068dabbe' LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `id`, `name`) VALUES (x'199072384bf24e0bb9546a68068dabbe', x'83725698988e47ecab0efc8581fc6b27', 'admin') Sent mail to good@email.com (6ms) Date: Wed, 02 Jan 2013 09:06:46 -0200 From: iugu Reply-To: iugu To: good@email.com Message-ID: <50e414c6372b8_107080435d4880398@iMac-de-Patrick.local.mail> Subject: Bem vindo! Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Bem vindo a Dummy  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `social_accounts` WHERE `social_accounts`.`user_id` = x'fe2f99aab4be45c599d9e6dcaa2b0cdb'  (1.3ms) ROLLBACK  (0.1ms) BEGIN User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'notanemail' LIMIT 1  (0.3ms) ROLLBACK